
此合约定义的数据结构。
cancellock中的操作参数
{ "name": "cancellock", "base": "", "fields": [ { "name": "lock_ID", "type": "uint64" } ] }-
{ "name": "config", "base": "", "fields": [ { "name": "ID", "type": "uint64" }, { "name": "last_lock", "type": "uint64" } ] } createlock中的操作参数
{ "name": "createlock", "base": "", "fields": [ { "name": "creator", "type": "name" }, { "name": "receiver", "type": "name" }, { "name": "amount", "type": "asset" }, { "name": "token_contract", "type": "name" }, { "name": "unlock_time", "type": "uint64" } ] }-
{ "name": "locks", "base": "", "fields": [ { "name": "ID", "type": "uint64" }, { "name": "creator", "type": "name" }, { "name": "receiver", "type": "name" }, { "name": "amount", "type": "asset" }, { "name": "token_contract", "type": "name" }, { "name": "time_of_creation", "type": "uint64" }, { "name": "time_of_deposit", "type": "uint64" }, { "name": "unlock_time", "type": "uint64" }, { "name": "status", "type": "uint8" } ] } -
{ "name": "withdraw", "base": "", "fields": [ { "name": "lock_ID", "type": "uint64" } ] }