Skip to content

Commit

Permalink
[ONT-848] fix native tx abi error (#340)
Browse files Browse the repository at this point in the history
add native abi

signed-off-by:[email protected]
  • Loading branch information
gasby88 authored and Arbio5zt committed Jun 13, 2018
1 parent 057823b commit 0007bed
Show file tree
Hide file tree
Showing 7 changed files with 1,275 additions and 156 deletions.
296 changes: 296 additions & 0 deletions cmd/abi/native/auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
{
"hash":"0600000000000000000000000000000000000000",
"functions":[
{
"name":"initContractAdmin",
"parameters":[
{
"name":"adminOntID",
"type":"ByteArray"
}
],
"returntype":"Bool"
},
{
"name":"transfer",
"parameters":[
{
"name":"contractAddr",
"type":"Address"
},
{
"name":"newAdminOntID",
"type":"ByteArray"
},
{
"name":"keyNo",
"type":"Int"
}
],
"returntype":"Bool"
},
{
"name":"assignFuncsToRole",
"parameters":[
{
"name":"contractAddr",
"type":"Address"
},
{
"name":"adminOntID",
"type":"ByteArray"
},
{
"name":"role",
"type":"ByteArray"
},
{
"name":"funcNames",
"type":"Array",
"subType": [
{
"name": "",
"type": "String"
}
]
},
{
"name":"keyNo",
"type":"Int"
}
],
"returntype":"Bool"
},
{
"name":"assignOntIDsToRole",
"parameters":[
{
"name":"contractAddr",
"type":"Address"
},
{
"name":"adminOntID",
"type":"ByteArray"
},
{
"name":"role",
"type":"ByteArray"
},
{
"name":"persons",
"type":"Array",
"subType": [
{
"name": "",
"type": "ByteArray"
}
]
},
{
"name":"keyNo",
"type":"Int"
}
],
"returntype":"Bool"
},
{
"name":"delegate",
"parameters":[
{
"name":"contractAddr",
"type":"Address"
},
{
"name":"from",
"type":"ByteArray"
},
{
"name":"to",
"type":"ByteArray"
},
{
"name":"role",
"type":"ByteArray"
},
{
"name":"period",
"type":"Int"
},
{
"name":"level",
"type":"Int"
},
{
"name":"keyNo",
"type":"Int"
}
],
"returntype":"Bool"
},
{
"name":"withdraw",
"parameters":[
{
"name":"contractAddr",
"type":"Address"
},
{
"name":"initiator",
"type":"ByteArray"
},
{
"name":"delegate",
"type":"ByteArray"
},
{
"name":"role",
"type":"ByteArray"
},
{
"name":"keyNo",
"type":"Int"
}
],
"returntype":"Bool"
},
{
"name":"verifyToken",
"parameters":[
{
"name":"contractAddr",
"type":"Address"
},
{
"name":"caller",
"type":"ByteArray"
},
{
"name":"fn",
"type":"String"
},
{
"name":"keyNo",
"type":"Int"
}
],
"returntype":"Bool"
}
],
"events": [
{
"name": "initContractAdmin",
"parameters": [
{
"name": "contractAddr",
"type": "String"
},
{
"name": "adminOntID",
"type": "ByteArray"
}
]
},
{
"name": "transfer",
"parameters": [
{
"name": "contractAddr",
"type": "String"
},
{
"name": "ret",
"type": "Bool"
}
]
},
{
"name": "assignFuncsToRole",
"parameters": [
{
"name": "contractAddr",
"type": "String"
},
{
"name": "ret",
"type": "Bool"
}
]
},
{
"name": "assignOntIDsToRole",
"parameters": [
{
"name": "contractAddr",
"type": "String"
},
{
"name": "ret",
"type": "Bool"
}
]
},
{
"name": "delegate",
"parameters": [
{
"name": "contractAddr",
"type": "String"
},
{
"name": "from",
"type": "ByteArray"
},
{
"name": "to",
"type": "ByteArray"
},
{
"name": "ret",
"type": "Bool"
}
]
},
{
"name": "withdraw",
"parameters": [
{
"name": "contractAddr",
"type": "String"
},
{
"name": "initiator",
"type": "ByteArray"
},
{
"name": "delegate",
"type": "ByteArray"
},
{
"name": "ret",
"type": "Bool"
}
]
},
{
"name": "verifyToken",
"parameters": [
{
"name": "contractAddr",
"type": "String"
},
{
"name": "caller",
"type": "ByteArray"
},
{
"name": "function",
"type": "String"
},
{
"name": "ret",
"type": "Bool"
}
]
}
]
}
Loading

0 comments on commit 0007bed

Please sign in to comment.