Skip to content

Commit

Permalink
Fabric ts sample contract
Browse files Browse the repository at this point in the history
  • Loading branch information
nime-sha256 committed Jun 4, 2020
1 parent 8d6cdc7 commit 8b2c02f
Show file tree
Hide file tree
Showing 14 changed files with 4,695 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Fabric/demo-contract/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# SPDX-License-Identifier: Apache-2.0
#

root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
81 changes: 81 additions & 0 deletions Fabric/demo-contract/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#
# SPDX-License-Identifier: Apache-2.0
#

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# Compiled TypeScript files
dist

20 changes: 20 additions & 0 deletions Fabric/demo-contract/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# SPDX-License-Identifier: Apache-2.0
#

# don't package the connection details
local_fabric

# don't package the tests
test
functionalTests

# don't package config files
.vscode
.gitignore
.npmignore
tsconfig.json
tslint.json
.editorconfig
.nyc_output
coverage
5 changes: 5 additions & 0 deletions Fabric/demo-contract/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"ibmblockchain.ibm-blockchain-platform"
]
}
17 changes: 17 additions & 0 deletions Fabric/demo-contract/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "fabric:node",
"request": "launch",
"name": "Debug Smart Contract",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
}
]
}
Loading

0 comments on commit 8b2c02f

Please sign in to comment.