FISCO BCOS 2.7.2 中文文档部署及调用HelloWorld合约 ## 3.3.1 第一步. 编写HelloWorld合约 HelloWorld合约提供两个接口,分别是get()和set(),用于获取/设置合约变量name。合约内容如下: ```javascript pragma solidity ^0.4.24; contract HelloWorld { string name; function HelloWorld() { BCOS Java SDK的引用。 ```javascript repositories { mavenCentral() maven { url "http://maven.aliyun.com/nexus/content/groups/public/" ``` (下页继续) (续上页) ```javascript } maven { asset = Asset.load(contractAddress, client, cryptoKeyPair); - 接口调用 使用合约对象调用对应的接口,处理返回结果。 ```javascript // select接口调用 Tuple2result = asset.select(assetAccount); // register接口调用 0 码力 | 1422 页 | 91.91 MB | 2 年前3
FISCO BCOS 2.9.0 中文文档# 并键入wq保存退出。 ``` Asset.sol的内容如下: pragma solidity ^0.4.24; import "./Table.sol"; ```javascript contract Asset { // event event RegisterEvent(int256 ret, string account, uint256 asset_value); % ## 第三步. 引入FISCO BCOS Java SDK 在build.gradle文件中的dependencies下加入对FISCO BCOS Java SDK的引用。 ```javascript repositories { mavenCentral() maven { allowInsecureProtocol = true url "http://maven asset = Asset.load(contractAddress, client, cryptoKeyPair); ## 接口调用 使用合约对象调用对应的接口,处理返回结果。 ```javascript // select接口调用 Tuple2result = asset.select(assetAccount); // register接口调用 0 码力 | 2585 页 | 166.09 MB | 2 年前3
FISCO BCOS 2.7.0 中文文档# 并键入wq保存退出。 ``` Asset.sol的内容如下: pragma solidity ^0.4.24; import "./Table.sol"; ```javascript contract Asset { // event event RegisterEvent(int256 ret, string account, uint256 asset_value); % ## 第三步. 引入FISCO BCOS Java SDK 在build.gradle文件中的dependencies下加入对FISCO BCOS Java SDK的引用。 ```javascript repositories { mavenCentral() maven { url "http://maven.aliyun.com/nex asset = Asset.load(contractAddress, client, cryptoKeyPair); ## 接口调用 使用合约对象调用对应的接口,处理返回结果。 ```javascript // select接口调用 Tuple2result = asset.select(assetAccount); // register接口调用 0 码力 | 2538 页 | 212.43 MB | 2 年前3
FISCO BCOS 2.0 中文文档# 创建Asset.sol合约文件 vi Asset.sol # 将Assert.sol合约内容写入。 # 并键入wq保存退出。 ``` Asset.sol的内容如下: ```javascript pragma solidity ^0.4.24; import "./Table.sol"; contract Asset { // event event asset = Asset.load(contractAddress, client, cryptoKeyPair); ## 接口调用 使用合约对象调用对应的接口,处理返回结果。 ```javascript // select接口调用 Tuple2result = asset.select(assetAccount); // register接口调用 时存放合约地址。  ```javascript dependencies { testCompile group: 'junit', name: 'junit', version: '4 0 码力 | 2649 页 | 201.08 MB | 2 年前3
Hyperledger Fabric 2.2.1 Documentationhere [https://github.com/hyperledger/fabric-samples/blob/release-2.2/assettransfer-basic/chaincode-javascript/lib/assetTransfer.js#L67], where you can see a smart contract transaction that creates a new asset: prices or delivery conditions, and express it as a smart contract in a programming language such as JavaScript, Go, or Java. The legal and technical skills required to convert centuries of legal language into secured -ccl- the programming language of the chaincode to deploy: go (default), java, javascript, typescript -ccv - chaincode version.1.0 (default) -ccs - chaincode definition 0 码力 | 848 页 | 11.56 MB | 2 年前3
Hyperledger Fabric 2.2.1 Documentationprices or delivery conditions, and express it as a smart contract in a programming language such as JavaScript, Go, or Java. The legal and technical skills required to convert centuries of legal language into secured -ccl- the programming language of the chaincode to deploy: go →(default), java, javascript, typescript -ccv - chaincode version.1.0 (default) -ccs - chaincode definition -s couchdb -i 2.0.0 network.sh createChannel -c channelName network.sh deployCC -ccn basic -ccl javascript From inside the test-network directory, run the following command to remove any containers or 0 码力 | 601 页 | 9.48 MB | 2 年前3
Hyperledger Fabric 2.2.0 Documentationat fabcar.js here [https://github.com/hyperledger/fabric- samples/blob/master/chaincode/fabcar/javascript/lib/fabcar.js#L93], where you can see a smart contract transaction that creates a new car: async prices or delivery conditions, and express it as a smart contract in a programming language such as JavaScript, Go, or Java. The legal and technical skills required to convert centuries of legal language into to 3) -l- the programming language of the chaincode to deploy: go (default), java, javascript, typescript -v - chaincode version. Must be a round number, 1, 2, 3, etc -i 0 码力 | 820 页 | 10.90 MB | 2 年前3
Hyperledger Fabric 2.1.1 Documentationlook at fabcar.js [https://github.com/hyperledger/fabric- samples/blob/master/chaincode/fabcar/javascript/lib/fabcar.js#L93], where you can see a smart contract transaction that creates a new car: async prices or delivery conditions, and express it as a smart contract in a programming language such as JavaScript, Go, or Java. The legal and technical skills required to convert centuries of legal language into to 3) -l- the programming language of the chaincode to deploy: go (default), java, javascript, typescript -v - chaincode version. Must be a round number, 1, 2, 3, etc -i 0 码力 | 816 页 | 10.25 MB | 2 年前3
Hyperledger Fabric 2.0 Documentationprices or delivery conditions, and express it as a smart contract in a programming language such as JavaScript, GOLANG or Java. The legal and technical skills required to convert centuries of legal language (defaults to 3) -l- the programming language of the chaincode to deploy: go (default), ˓→ javascript, or java (continues on next page) 128 Chapter 5. Getting Started hyperledger-fabricdocs Documentation -c mychannel -s couchdb -i 2.0.0 network.sh createChannel -c channelName network.sh deployCC -l javascript From inside the test-network directory, run the following command to remove any containers or artifacts 0 码力 | 573 页 | 8.52 MB | 2 年前3
Hyperledger Fabric 2.0 Documentationfabcar.js here [https://github.com/hyperledger/fabric-samples/blob/release-2.0/chaincode/fabcar/javascript/lib/fabcar.js#L93], where you can see a smart contract transaction that creates a new car: async prices or delivery conditions, and express it as a smart contract in a programming language such as JavaScript, GOLANG or Java. The legal and technical skills required to convert centuries of legal language (defaults to 3) -l- the programming language of the chaincode to deploy: go (default), javascript, or java -v - chaincode version. Must be a round number, 1, 2, 3, etc -i - 0 码力 | 821 页 | 10.22 MB | 2 年前3
共 68 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
相关搜索词
群组架构分布式存储并行计算模型预编译合约CRUD接口版本兼容性兼容性升级Hyperledger Fabric区块链网络智能合约隐私治理模块化架构升级到v2.x链码生命周期应用程序SDK权限区块链平台分布式分类账本Blockchain networkSmart ContractsMembership Service Provider (MSP)ChaincodeHyperledger Fabric 2.0Chaincode lifecyclePrivate dataExternal chaincode launcherAlpine-based Docker imagesPermissioned Distributed LedgerBlockchain NetworkChannel













