mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-11-29 18:28:27 +08:00
feat: 将ManageNodeCert合约部署到创世块中, 该合约用来管理组网节点信任证书列表
This commit is contained in:
parent
5aa0af3e15
commit
10df276f75
@ -339,57 +339,23 @@ system {
|
||||
custom-contracts = [
|
||||
{
|
||||
deploy {
|
||||
contract-name = "ContractAssetsTPL"
|
||||
contract-name = "ManageNodeCert"
|
||||
contract-version = 1 //版本号需要配置为整数
|
||||
contract-code-path = "src/main/scala/rep/sc/tpl/ContractAssetsTPL.scala"
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
contract-code-path = "src/main/scala/rep/sc/tpl/ManageNodeCert.scala"
|
||||
transaction-signer = "951002007l78123233.super_admin"
|
||||
}
|
||||
operate-registration = [
|
||||
{
|
||||
operate-name = "ContractAssetsTPL.transfer"
|
||||
operate-desc = "转账交易"
|
||||
is-publish = true
|
||||
is-contract-operate = true
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
},
|
||||
{
|
||||
operate-name = "ContractAssetsTPL.set"
|
||||
operate-desc = "初始化账户"
|
||||
operate-name = "ManageNodeCert.updateNodeCert"
|
||||
operate-desc = "管理组网节点的信任证书列表"
|
||||
is-publish = false
|
||||
is-contract-operate = true
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
},
|
||||
{
|
||||
operate-name = "ContractAssetsTPL.putProof"
|
||||
operate-desc = "存证"
|
||||
is-publish = true
|
||||
is-contract-operate = true
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
}
|
||||
]
|
||||
custom-contract-invokes = [
|
||||
{
|
||||
contract-name = "ContractAssetsTPL"
|
||||
contract-version = 1 //版本号需要配置为整数
|
||||
method-name = "set"
|
||||
method-parameter = ""api_req/json/set.json"" //调用合约的参数从json文件中读取
|
||||
transaction-signer = "951002007l78123233.super_admin"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
deploy {
|
||||
contract-name = "ParallelPutProofTPL"
|
||||
contract-version = 1 //版本号需要配置为整数
|
||||
contract-code-path = "src/main/scala/rep/sc/tpl/ParallelPutProofTPL.scala"
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
is-called-by-other-contracts = true
|
||||
}
|
||||
operate-registration = [
|
||||
{
|
||||
operate-name = "ParallelPutProofTPL.putProofSingle"
|
||||
operate-desc = "单个存证"
|
||||
is-publish = true
|
||||
operate-name = "ManageNodeCert.updateVoleList"
|
||||
operate-desc = "更新投票(节点)列表"
|
||||
is-publish = false
|
||||
is-contract-operate = true
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
}
|
||||
@ -613,6 +579,66 @@ system {
|
||||
]
|
||||
custom-contract-invokes = [
|
||||
]
|
||||
},
|
||||
{
|
||||
deploy {
|
||||
contract-name = "ContractAssetsTPL"
|
||||
contract-version = 1 //版本号需要配置为整数
|
||||
contract-code-path = "src/main/scala/rep/sc/tpl/ContractAssetsTPL.scala"
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
}
|
||||
operate-registration = [
|
||||
{
|
||||
operate-name = "ContractAssetsTPL.transfer"
|
||||
operate-desc = "转账交易"
|
||||
is-publish = true
|
||||
is-contract-operate = true
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
},
|
||||
{
|
||||
operate-name = "ContractAssetsTPL.set"
|
||||
operate-desc = "初始化账户"
|
||||
is-publish = false
|
||||
is-contract-operate = true
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
},
|
||||
{
|
||||
operate-name = "ContractAssetsTPL.putProof"
|
||||
operate-desc = "存证"
|
||||
is-publish = true
|
||||
is-contract-operate = true
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
}
|
||||
]
|
||||
custom-contract-invokes = [
|
||||
{
|
||||
contract-name = "ContractAssetsTPL"
|
||||
contract-version = 1 //版本号需要配置为整数
|
||||
method-name = "set"
|
||||
method-parameter = ""api_req/json/set.json"" //调用合约的参数从json文件中读取
|
||||
transaction-signer = "951002007l78123233.super_admin"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
deploy {
|
||||
contract-name = "ParallelPutProofTPL"
|
||||
contract-version = 1 //版本号需要配置为整数
|
||||
contract-code-path = "src/main/scala/rep/sc/tpl/ParallelPutProofTPL.scala"
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
is-called-by-other-contracts = true
|
||||
}
|
||||
operate-registration = [
|
||||
{
|
||||
operate-name = "ParallelPutProofTPL.putProofSingle"
|
||||
operate-desc = "单个存证"
|
||||
is-publish = true
|
||||
is-contract-operate = true
|
||||
transaction-signer = "121000005l35120456.node1"
|
||||
}
|
||||
]
|
||||
custom-contract-invokes = [
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user