Created
August 9, 2023 11:00
-
-
Save moul/cc7fda42d648ceae144d9bff55a20d7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
? ./examples/gno.land/p/demo/tests/subtests [no test files] | |
=== RUN file/z0_filetest.gno | |
@############ | |
Block(ID:a7f5397443359ea76c50be82c77f1f893a060925:2,Addr:0xc00045b0e0,Source:ref(std/:0),Parent:%!p(<nil>)) | |
(RefNode names not shown) | |
{ | |
"ID": { | |
"PkgID": { | |
"Hashlet": [ | |
167, | |
245, | |
57, | |
116, | |
67, | |
53, | |
158, | |
167, | |
108, | |
80, | |
190, | |
130, | |
199, | |
127, | |
31, | |
137, | |
58, | |
6, | |
9, | |
37 | |
] | |
}, | |
"NewTime": 2 | |
}, | |
"Hash": { | |
"Hashlet": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
"OwnerID": { | |
"PkgID": { | |
"Hashlet": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
"NewTime": 0 | |
}, | |
"ModTime": 0, | |
"RefCount": 7, | |
"IsEscaped": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "", | |
"Line": 0, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Values": [ | |
{ | |
"T": {}, | |
"V": { | |
"Type": { | |
"PkgPath": "std", | |
"Name": "AddressSet", | |
"Base": { | |
"PkgPath": "std", | |
"Methods": [ | |
{ | |
"Name": "Size", | |
"Type": { | |
"Params": [], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 32, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "AddAddress", | |
"Type": { | |
"Params": [ | |
{ | |
"Name": ".arg_0", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": { | |
"ID": ".uverse.error" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "HasAddress", | |
"Type": { | |
"Params": [ | |
{ | |
"Name": ".arg_0", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 4, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Generic": "" | |
}, | |
"Methods": [] | |
} | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": {}, | |
"V": { | |
"Type": { | |
"PkgPath": "std", | |
"Name": "Address", | |
"Base": 16, | |
"Methods": [ | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "a", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "a", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "crypto.gno", | |
"Line": 5, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "String", | |
"Closure": null, | |
"FileName": "crypto.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
} | |
] | |
} | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": {}, | |
"V": { | |
"Type": { | |
"PkgPath": "std", | |
"Name": "AddressList", | |
"Base": { | |
"Elt": { | |
"ID": "std.Address" | |
}, | |
"Vrd": false | |
}, | |
"Methods": [ | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "alist", | |
"Type": { | |
"Elt": { | |
"ID": "std.AddressList" | |
} | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 32, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "alist", | |
"Type": { | |
"Elt": { | |
"ID": "std.AddressList" | |
} | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 32, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "addr_set.gno", | |
"Line": 24, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "Size", | |
"Closure": null, | |
"FileName": "addr_set.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "alist", | |
"Type": { | |
"Elt": { | |
"ID": "std.AddressList" | |
} | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "newAddr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": { | |
"ID": ".uverse.error" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "alist", | |
"Type": { | |
"Elt": { | |
"ID": "std.AddressList" | |
} | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "newAddr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": { | |
"ID": ".uverse.error" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "addr_set.gno", | |
"Line": 28, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "AddAddress", | |
"Closure": null, | |
"FileName": "addr_set.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "alist", | |
"Type": { | |
"Elt": { | |
"ID": "std.AddressList" | |
} | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "newAddr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 4, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "alist", | |
"Type": { | |
"Elt": { | |
"ID": "std.AddressList" | |
} | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "newAddr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 4, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "addr_set.gno", | |
"Line": 39, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "HasAddress", | |
"Closure": null, | |
"FileName": "addr_set.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
} | |
] | |
} | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": {}, | |
"V": { | |
"Type": { | |
"PkgPath": "std", | |
"Name": "Banker", | |
"Base": { | |
"PkgPath": "std", | |
"Methods": [ | |
{ | |
"Name": "GetCoins", | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "addr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "dst", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "SendCoins", | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "from", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "to", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "amt", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [] | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "TotalCoin", | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "IssueCoin", | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "addr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "amount", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [] | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "RemoveCoin", | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "addr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "amount", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [] | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Generic": "" | |
}, | |
"Methods": [] | |
} | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": {}, | |
"V": { | |
"Type": { | |
"PkgPath": "std", | |
"Name": "Coins", | |
"Base": { | |
"Elt": { | |
"ID": "std.Coin" | |
}, | |
"Vrd": false | |
}, | |
"Methods": [ | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "cz", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "cz", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "coins.gno", | |
"Line": 29, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "String", | |
"Closure": null, | |
"FileName": "coins.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "cz", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "cz", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "coins.gno", | |
"Line": 40, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "AmountOf", | |
"Closure": null, | |
"FileName": "coins.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "a", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "b", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "a", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "b", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "coins.gno", | |
"Line": 49, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "Add", | |
"Closure": null, | |
"FileName": "coins.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
} | |
] | |
} | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": {}, | |
"V": { | |
"Type": { | |
"PkgPath": "std", | |
"Name": "Coin", | |
"Base": { | |
"PkgPath": "std", | |
"Fields": [ | |
{ | |
"Name": "Denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "json:\"denom\"" | |
}, | |
{ | |
"Name": "Amount", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "json:\"amount\"" | |
} | |
] | |
}, | |
"Methods": [ | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "c", | |
"Type": { | |
"ID": "std.Coin" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "c", | |
"Type": { | |
"ID": "std.Coin" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "coins.gno", | |
"Line": 15, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "String", | |
"Closure": null, | |
"FileName": "coins.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "c", | |
"Type": { | |
"ID": "std.Coin" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "other", | |
"Type": { | |
"ID": "std.Coin" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 4, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "c", | |
"Type": { | |
"ID": "std.Coin" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "other", | |
"Type": { | |
"ID": "std.Coin" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 4, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "coins.gno", | |
"Line": 19, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "IsGTE", | |
"Closure": null, | |
"FileName": "coins.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
} | |
] | |
} | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": {}, | |
"V": { | |
"Type": { | |
"PkgPath": "std", | |
"Name": "BankerType", | |
"Base": 4096, | |
"Methods": [] | |
} | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": {}, | |
"V": { | |
"Type": { | |
"PkgPath": "std", | |
"Name": "bankAdapter", | |
"Base": { | |
"PkgPath": "std", | |
"Fields": [ | |
{ | |
"Name": "nativeBanker", | |
"Type": { | |
"ID": "std.Banker" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"Methods": [ | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "ba", | |
"Type": { | |
"ID": "std.bankAdapter" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "addr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "dst", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "ba", | |
"Type": { | |
"ID": "std.bankAdapter" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "addr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "dst", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "banker.gno", | |
"Line": 47, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "GetCoins", | |
"Closure": null, | |
"FileName": "banker.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "ba", | |
"Type": { | |
"ID": "std.bankAdapter" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "from", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "to", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "amt", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "ba", | |
"Type": { | |
"ID": "std.bankAdapter" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "from", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "to", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "amt", | |
"Type": { | |
"ID": "std.Coins" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "banker.gno", | |
"Line": 56, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "SendCoins", | |
"Closure": null, | |
"FileName": "banker.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "ba", | |
"Type": { | |
"ID": "std.bankAdapter" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "ba", | |
"Type": { | |
"ID": "std.bankAdapter" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "banker.gno", | |
"Line": 60, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "TotalCoin", | |
"Closure": null, | |
"FileName": "banker.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "ba", | |
"Type": { | |
"ID": "std.bankAdapter" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "addr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "amount", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "ba", | |
"Type": { | |
"ID": "std.bankAdapter" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "addr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "amount", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "banker.gno", | |
"Line": 64, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "IssueCoin", | |
"Closure": null, | |
"FileName": "banker.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "ba", | |
"Type": { | |
"ID": "std.bankAdapter" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "addr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "amount", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "ba", | |
"Type": { | |
"ID": "std.bankAdapter" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "addr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "denom", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "amount", | |
"Type": 1024, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "banker.gno", | |
"Line": 68, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "RemoveCoin", | |
"Closure": null, | |
"FileName": "banker.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
} | |
] | |
} | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": {}, | |
"V": { | |
"Type": { | |
"PkgPath": "std", | |
"Name": "RawAddress", | |
"Base": { | |
"Len": 20, | |
"Elt": 4096, | |
"Vrd": false | |
}, | |
"Methods": [] | |
} | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": 524288, | |
"V": { | |
"V": 20 | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": {}, | |
"V": { | |
"Type": { | |
"PkgPath": "std", | |
"Name": "Realm", | |
"Base": { | |
"PkgPath": "std", | |
"Fields": [ | |
{ | |
"Name": "addr", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
}, | |
{ | |
"Name": "pkgPath", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"Methods": [ | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "r", | |
"Type": { | |
"ID": "std.Realm" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "r", | |
"Type": { | |
"ID": "std.Realm" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": { | |
"ID": "std.Address" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "frame.gno", | |
"Line": 8, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "Addr", | |
"Closure": null, | |
"FileName": "frame.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "r", | |
"Type": { | |
"ID": "std.Realm" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "r", | |
"Type": { | |
"ID": "std.Realm" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 16, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "frame.gno", | |
"Line": 12, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "PkgPath", | |
"Closure": null, | |
"FileName": "frame.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [ | |
{ | |
"Name": "r", | |
"Type": { | |
"ID": "std.Realm" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 4, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [ | |
{ | |
"Name": "r", | |
"Type": { | |
"ID": "std.Realm" | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": 4, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": true, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "frame.gno", | |
"Line": 16, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "IsUser", | |
"Closure": null, | |
"FileName": "frame.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
} | |
] | |
} | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"Params": [], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": { | |
"Elt": { | |
"ID": "std.AddressList" | |
} | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"V": { | |
"Type": { | |
"Params": [], | |
"Results": [ | |
{ | |
"Name": "", | |
"Type": { | |
"Elt": { | |
"ID": "std.AddressList" | |
} | |
}, | |
"Embedded": false, | |
"Tag": "" | |
} | |
] | |
}, | |
"IsMethod": false, | |
"Source": { | |
"Location": { | |
"PkgPath": "std", | |
"File": "addr_set.gno", | |
"Line": 20, | |
"Nonce": 0 | |
}, | |
"BlockNode": null | |
}, | |
"Name": "NewAddressList", | |
"Closure": { | |
"ObjectID": { | |
"PkgID": { | |
"Hashlet": [ | |
167, | |
245, | |
57, | |
116, | |
67, | |
53, | |
158, | |
167, | |
108, | |
80, | |
190, | |
130, | |
199, | |
127, | |
31, | |
137, | |
58, | |
6, | |
9, | |
37 | |
] | |
}, | |
"NewTime": 3 | |
}, | |
"Escaped": true, | |
"Hash": { | |
"Hashlet": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
} | |
}, | |
"FileName": "addr_set.gno", | |
"PkgPath": "std" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"ID": "std.BankerType" | |
}, | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"ID": "std.BankerType" | |
}, | |
"N": [ | |
1, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"ID": "std.BankerType" | |
}, | |
"N": [ | |
2, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
}, | |
{ | |
"T": { | |
"ID": "std.BankerType" | |
}, | |
"N": [ | |
3, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
} | |
], | |
"Parent": null, | |
"Blank": { | |
"N": [ | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
] | |
} | |
} | |
@############ | |
panic: expected JSON object but got "20" | |
goroutine 1 [running]: | |
github.com/gnolang/gno/tm2/pkg/amino.(*Codec).MustMarshalJSON(0xa79e35437439f5a7?, {0xce7900, 0xc00045b0e0}) | |
/home/moul/go/src/github.com/gnolang/gno/tm2/pkg/amino/amino.go:823 +0x1a7 | |
github.com/gnolang/gno/tm2/pkg/amino.MustMarshalJSON(...) | |
/home/moul/go/src/github.com/gnolang/gno/tm2/pkg/amino/amino.go:141 | |
github.com/gnolang/gno/gnovm/pkg/gnolang.StoreOp.String({0x0, {0xf63a50, 0xc00045b0e0}, {0x0, 0x0}}) | |
/home/moul/go/src/github.com/gnolang/gno/gnovm/pkg/gnolang/store.go:654 +0xbc | |
github.com/gnolang/gno/gnovm/pkg/gnolang.(*defaultStore).SprintStoreOps(0xc0001966c0) | |
/home/moul/go/src/github.com/gnolang/gno/gnovm/pkg/gnolang/store.go:687 +0xff | |
github.com/gnolang/gno/gnovm/tests.RunFileTest({0xc00003a450, 0x28}, {0xc00003ac60, 0x2e}, {0xc0004e59e8, 0x1, 0xf50020?}) | |
/home/moul/go/src/github.com/gnolang/gno/gnovm/tests/file.go:325 +0x44e | |
main.gnoTestPkg({0xc0004c4320, 0x20}, {0x0?, 0x0, 0x1?}, {0xc00007b830, 0x1, 0xc0003fbaf8?}, 0xc0002f0440, 0xc00025c5f0) | |
/home/moul/go/src/github.com/gnolang/gno/gnovm/cmd/gno/test.go:337 +0x876 | |
main.execTest(0xc0002f0440, {0xc0002ec290, 0x1, 0x1}, 0xc000036220?) | |
/home/moul/go/src/github.com/gnolang/gno/gnovm/cmd/gno/test.go:208 +0xb67 | |
main.newTestCmd.func1({0x0?, 0x0?}, {0xc0002ec290?, 0xc0002eea38?, 0x0?}) | |
/home/moul/go/src/github.com/gnolang/gno/gnovm/cmd/gno/test.go:51 +0x32 | |
github.com/gnolang/gno/tm2/pkg/commands.(*Command).Run(0x5?, {0xf55588?, 0xc0000460c0?}) | |
/home/moul/go/src/github.com/gnolang/gno/tm2/pkg/commands/command.go:233 +0x1ac | |
github.com/gnolang/gno/tm2/pkg/commands.(*Command).Run(0xc0002ee790?, {0xf55588?, 0xc0000460c0?}) | |
/home/moul/go/src/github.com/gnolang/gno/tm2/pkg/commands/command.go:237 +0x154 | |
github.com/gnolang/gno/tm2/pkg/commands.(*Command).ParseAndRun(0x405a5c?, {0xf55588, 0xc0000460c0}, {0xc0000361f0?, 0x401250?, 0x0?}) | |
/home/moul/go/src/github.com/gnolang/gno/tm2/pkg/commands/command.go:118 +0x4f | |
main.main() | |
/home/moul/go/src/github.com/gnolang/gno/gnovm/cmd/gno/main.go:14 +0x75 | |
exit status 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment