mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-11-15 10:57:05 +00:00
Rebrand: polkadot → pezkuwi, substrate → bizinikiwi, kusama → dicle
This commit is contained in:
commit
d5f038faea
1383 files changed
+1088018
No files matched your search
@@ -0,0 +1,20 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import ink from './ink/index.js';
|
||||
import solang from './solang/index.js';
|
||||
import user from './user/index.js';
|
||||
|
||||
const all: Record<string, Record<string, unknown>> = {};
|
||||
|
||||
Object
|
||||
.entries({ ink, solang, user })
|
||||
.forEach(([type, abis]) =>
|
||||
Object
|
||||
.entries(abis)
|
||||
.forEach(([name, abi]): void => {
|
||||
all[`${type}_${name}`] = abi;
|
||||
})
|
||||
);
|
||||
|
||||
export default all;
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { createVersionedExport } from '../util.js';
|
||||
import * as v0 from './v0/index.js';
|
||||
import * as v1 from './v1/index.js';
|
||||
import * as v2 from './v2/index.js';
|
||||
import * as v3 from './v3/index.js';
|
||||
import * as v4 from './v4/index.js';
|
||||
import * as v5 from './v5/index.js';
|
||||
import * as v6 from './v6/index.js';
|
||||
|
||||
export default createVersionedExport({ v0, v1, v2, v3, v4, v5, v6 });
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,252 @@
|
||||
{
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"hash": "0x939d1823be952b4d7114448bb1a27fa13bafb8c4b33149efc24e826d8e54035e",
|
||||
"language": "ink! 3.0.0-rc1",
|
||||
"compiler": "rustc 1.48.0-nightly"
|
||||
},
|
||||
"contract": {
|
||||
"name": "delegator",
|
||||
"version": "3.0.0-rc1",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "init_value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"i32"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "accumulator_code_hash",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "adder_code_hash",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "subber_code_hash",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Instantiate a delegator with the given sub-contract codes."
|
||||
],
|
||||
"name": [
|
||||
"new"
|
||||
],
|
||||
"selector": "0xd183512b"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Returns the accumulator's value."
|
||||
],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"get"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"i32"
|
||||
],
|
||||
"type": 4
|
||||
},
|
||||
"selector": "0x1e5ca456"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "by",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"i32"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Delegates the call to either `Adder` or `Subber`."
|
||||
],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"change"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": null,
|
||||
"selector": "0x0af938f2"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Switches the delegator."
|
||||
],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"switch"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": null,
|
||||
"selector": "0x5d37c38d"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"enum": {
|
||||
"dispatchKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"variants": {
|
||||
"0": {
|
||||
"fields": []
|
||||
},
|
||||
"1": {
|
||||
"fields": []
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "which"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0100000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "account_id"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "accumulator"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "account_id"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "adder"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0300000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "account_id"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "subber"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 3
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "i32"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"Hash"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,713 @@
|
||||
{
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"hash": "0xcf3eee6ac5d38f6f503293735a72b011960e09ec1dd09185ab3c3d28e7770009",
|
||||
"language": "ink! 3.0.0-rc1",
|
||||
"compiler": "rustc 1.48.0-nightly"
|
||||
},
|
||||
"contract": {
|
||||
"name": "dns",
|
||||
"version": "3.0.0-rc1",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Creates a new domain name service contract."
|
||||
],
|
||||
"name": [
|
||||
"new"
|
||||
],
|
||||
"selector": "0xd183512b"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "name",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 9
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Emitted whenever a new name is being registered."
|
||||
],
|
||||
"name": "Register"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "name",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": false,
|
||||
"name": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 9
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "old_address",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "new_address",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 9
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Emitted whenever an address changes."
|
||||
],
|
||||
"name": "SetAddress"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "name",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": false,
|
||||
"name": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 9
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "old_owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "new_owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 9
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Emitted whenver a name is being transferred."
|
||||
],
|
||||
"name": "Transfer"
|
||||
}
|
||||
],
|
||||
"messages": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Register specific name with caller as owner."
|
||||
],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"register"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Result"
|
||||
],
|
||||
"type": 10
|
||||
},
|
||||
"selector": "0x7fb0aded"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "new_address",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 9
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Set address for specific name."
|
||||
],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"set_address"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Result"
|
||||
],
|
||||
"type": 10
|
||||
},
|
||||
"selector": "0x220ac6e3"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 9
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Transfer owner to another address."
|
||||
],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"transfer"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Result"
|
||||
],
|
||||
"type": 10
|
||||
},
|
||||
"selector": "0xfae3a09d"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Get address for specific name."
|
||||
],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"get_address"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 9
|
||||
},
|
||||
"selector": "0xb9ee7664"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "header"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0100000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 2
|
||||
}
|
||||
},
|
||||
"name": "len"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"array": {
|
||||
"cellsPerElem": 1,
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0100000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"len": 4294967295,
|
||||
"offset": "0x0200000000000000000000000000000000000000000000000000000000000000"
|
||||
}
|
||||
},
|
||||
"name": "elems"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "entries"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "keys"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"hash": {
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 8
|
||||
}
|
||||
},
|
||||
"offset": "0x0100000001000000000000000000000000000000000000000000000000000000",
|
||||
"strategy": {
|
||||
"hasher": "Blake2x256",
|
||||
"postfix": "",
|
||||
"prefix": "0x696e6b20686173686d6170"
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "values"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "name_to_address"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "header"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0300000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 2
|
||||
}
|
||||
},
|
||||
"name": "len"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"array": {
|
||||
"cellsPerElem": 1,
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0300000002000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"len": 4294967295,
|
||||
"offset": "0x0400000001000000000000000000000000000000000000000000000000000000"
|
||||
}
|
||||
},
|
||||
"name": "elems"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "entries"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "keys"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"hash": {
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0400000002000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 8
|
||||
}
|
||||
},
|
||||
"offset": "0x0300000002000000000000000000000000000000000000000000000000000000",
|
||||
"strategy": {
|
||||
"hasher": "Blake2x256",
|
||||
"postfix": "",
|
||||
"prefix": "0x696e6b20686173686d6170"
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "values"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "name_to_owner"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0400000002000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 9
|
||||
}
|
||||
},
|
||||
"name": "default_address"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "last_vacant",
|
||||
"type": 2
|
||||
},
|
||||
{
|
||||
"name": "len",
|
||||
"type": 2
|
||||
},
|
||||
{
|
||||
"name": "len_entries",
|
||||
"type": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"Header"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u32"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 7
|
||||
}
|
||||
],
|
||||
"name": "Vacant"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 4
|
||||
}
|
||||
],
|
||||
"name": "Occupied"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
4
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"Entry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"Hash"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 6
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "next",
|
||||
"type": 2
|
||||
},
|
||||
{
|
||||
"name": "prev",
|
||||
"type": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"VacantEntry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "value",
|
||||
"type": 9
|
||||
},
|
||||
{
|
||||
"name": "key_index",
|
||||
"type": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
9
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"hashmap",
|
||||
"ValueEntry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 11
|
||||
}
|
||||
],
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 12
|
||||
}
|
||||
],
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
11,
|
||||
12
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"tuple": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"discriminant": 0,
|
||||
"name": "NameAlreadyExists"
|
||||
},
|
||||
{
|
||||
"discriminant": 1,
|
||||
"name": "CallerIsNotOwner"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"dns",
|
||||
"dns",
|
||||
"Error"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"name": "None"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 9
|
||||
}
|
||||
],
|
||||
"name": "Some"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
9
|
||||
],
|
||||
"path": [
|
||||
"Option"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,704 @@
|
||||
{
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"hash": "0xe9c60864c76c770865b66c79aa304bc22d2d08cc799d36310df4256db107b8fc",
|
||||
"language": "ink! 3.0.0-rc1",
|
||||
"compiler": "rustc 1.48.0-nightly"
|
||||
},
|
||||
"contract": {
|
||||
"name": "erc20",
|
||||
"version": "3.0.0-rc1",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "initial_supply",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"name": [
|
||||
"new"
|
||||
],
|
||||
"selector": "0xd183512b"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"name": "Transfer"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"name": "Approval"
|
||||
}
|
||||
],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"total_supply"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0xdcb736b5"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"balance_of"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x56e929b2"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"allowance"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0xf3cfff66"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"transfer"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 12
|
||||
},
|
||||
"selector": "0xfae3a09d"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"approve"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 12
|
||||
},
|
||||
"selector": "0x03d0e114"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"transfer_from"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 12
|
||||
},
|
||||
"selector": "0xfcfb2ccd"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "total_supply"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0100000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 2
|
||||
}
|
||||
},
|
||||
"name": "header"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "len"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"array": {
|
||||
"cellsPerElem": 1,
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 4
|
||||
}
|
||||
},
|
||||
"len": 4294967295,
|
||||
"offset": "0x0300000000000000000000000000000000000000000000000000000000000000"
|
||||
}
|
||||
},
|
||||
"name": "elems"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "entries"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "keys"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"hash": {
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0300000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 9
|
||||
}
|
||||
},
|
||||
"offset": "0x0200000001000000000000000000000000000000000000000000000000000000",
|
||||
"strategy": {
|
||||
"hasher": "Blake2x256",
|
||||
"postfix": "",
|
||||
"prefix": "0x696e6b20686173686d6170"
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "values"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "balances"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0300000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 2
|
||||
}
|
||||
},
|
||||
"name": "header"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0400000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "len"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"array": {
|
||||
"cellsPerElem": 1,
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0400000002000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 10
|
||||
}
|
||||
},
|
||||
"len": 4294967295,
|
||||
"offset": "0x0500000001000000000000000000000000000000000000000000000000000000"
|
||||
}
|
||||
},
|
||||
"name": "elems"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "entries"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "keys"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"hash": {
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0500000002000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 9
|
||||
}
|
||||
},
|
||||
"offset": "0x0400000002000000000000000000000000000000000000000000000000000000",
|
||||
"strategy": {
|
||||
"hasher": "Blake2x256",
|
||||
"postfix": "",
|
||||
"prefix": "0x696e6b20686173686d6170"
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "values"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "allowances"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u128"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "last_vacant",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "len",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "len_entries",
|
||||
"type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"Header"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u32"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 8
|
||||
}
|
||||
],
|
||||
"name": "Vacant"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 5
|
||||
}
|
||||
],
|
||||
"name": "Occupied"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
5
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"Entry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 6
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 7
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "next",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "prev",
|
||||
"type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"VacantEntry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "value",
|
||||
"type": 1
|
||||
},
|
||||
{
|
||||
"name": "key_index",
|
||||
"type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
1
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"hashmap",
|
||||
"ValueEntry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 8
|
||||
}
|
||||
],
|
||||
"name": "Vacant"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 11
|
||||
}
|
||||
],
|
||||
"name": "Occupied"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
11
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"Entry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"tuple": [
|
||||
5,
|
||||
5
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"name": "None"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 5
|
||||
}
|
||||
],
|
||||
"name": "Some"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
5
|
||||
],
|
||||
"path": [
|
||||
"Option"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Binary file not shown.
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"hash": "0x98086d5ccadd437459b812682380250f51a3034272cd1108e499acc0cafe9f42",
|
||||
"language": "ink! 3.0.0-rc2",
|
||||
"compiler": "rustc 1.49.0-nightly",
|
||||
"wasm": "0x0061736d01000000012c0860027f7f0060037f7f7f0060017f017f60017f006000017f60037f7f7f017f60047f7f7f7f0060017f017e02880106057365616c30107365616c5f6765745f73746f726167650005057365616c30107365616c5f7365745f73746f726167650001057365616c30167365616c5f76616c75655f7472616e736665727265640000057365616c300a7365616c5f696e7075740000057365616c300b7365616c5f72657475726e000103656e76066d656d6f72790201021003121102020002000100070303060402040503010608017f01418080040b071102066465706c6f7900100463616c6c00120a8e1111c90101017f230041406a22012400200141206a200041186a290300370300200141186a200041106a290300370300200141106a200041086a2903003703002001420037032820012000290300370308200141086a1006200141808001360234200141a4800436023020014180800136023841a48004200141386a10002100200141306a20012802381007024002400240024020000e0401000002000b000b20012001290330370338200141386a100841ff017122004102470d01000b000b200141406b240020004100470b6001037e200029032021012000420137032020002001200029030022027c22013703002000200029030822032001200254ad7c22013703082000200029031022022001200354ad7c2201370310200020002903182001200254ad7c37031820000b4901037f230041106b22022400200028020421032000410036020420002802002104200041a48004360200200241086a200120042003100f20002002290308370200200241106a24000b4201027f230041106b22012400200141086a2000100b20012d0009210020012d00082102200141106a240041024101410220004101461b410020001b20024101711b0b8f0101017f230041406a22022400200241206a200141186a290300370300200241186a200141106a290300370300200241106a200141086a2903003703002002420037032820022001290300370308200241086a1006200241386a41808001360200200241a48004360234200241003602302002200241306a2000100a200228020020022802041001200241406b24000b9d0101037f230041106b22032400200141086a220428020021052004410036020020012802042104200141a48004360204200320023a000f2003410120042005100f024020032802044101460440200328020020032d000f3a000020014100360208200141a480043602042005450d0120012005417f6a3602082001200441016a3602042000410136020420002004360200200341106a24000f0b000b000b4801027f230041106b22022400200241003a000f024020012002410f6a4101101345044020022d000f21010c010b410121030b200020013a0001200020033a0000200241106a24000b890101027f230041106b22012400200142003c000c200142003e0208027f0340200241044604402001280208210241000c020b20012000100b20012d0000410171450440200141086a20026a20012d00013a00002001200241016a22023a000c0c010b0b200241ff01710440200141003a000c0b4100210241010b200141106a2400ad2002ad420886840b2201017f230041106b220124002001200036020c2001410c6a2802002d0000100e000b4601017f230041206b22012400200141186a41808001360200200141a4800436021420014100360210200141086a200141106a2000100a41002001280208200128020c1004000b2300410020014d0440200320014f044020002001360204200020023602000f0b000b000b15004100101141ff0171410274418080046a2802000bd80502057f017e230041306b220124000240027f024002402000044020014180800136020c200141a48004360208200141086a10142001200129030837031041012103200141106a100c2206a722054101710440410121020c030b200642ffffffffff1f832206422088a721002006421888a721042006421088a72102200541087641ff01712205411e470440200541c00147200041f3014772200241ff017141960147720d0241002102200441ff017141a501460d030c020b200041d60047200241ff017141dc0047720d014100210241002103200441ff017141a401470d010c020b20014180800136020c200141a48004360208200141086a101420012001290308370310410321020240200141106a100c2206a722044101710d00200642ffffffffff1f832206422088a721002006421888a721032006421088a7210202400240200441087641ff0171220441ea00470440200441d101472000412b4772200241ff017141830147720d02200341ff017141d100460d010c020b200041e20147200241ff0171413747720d0141022102200341ff01714112470d010c020b41032102200141106a100841ff017122004102460d01200041004721020c010b410321020b4106200241034622030d021a4106200220031b22024102460440200141286a4200370300200141206a4200370300200141186a4200370300200142003703104100200141106a100941080c030b200141286a4200370300200141206a4200370300200141186a4200370300200142003703102002410171200141106a100941080c020b41012102410121030b410620020d001a2003450d01200141286a4200370300200141206a4200370300200141186a420037030020014200370310200141106a1005410173200141106a100941080b200141306a24000f0b200141286a4200370300200141206a4200370300200141186a4200370300200142003703102001200141106a10053a0008200141086a100d000ba90102027f027e230041206b22002400200041808001360204200041a4800436020020004180800136021041a48004200041106a100220002000280210100720002000290300370308200041186a2201420037030020004200370310027f4101200041086a200041106a411010130d001a200129030021022000290310210341000b200220038450457245044041011011200041206a240041ff0171410274418080046a2802000f0b000b45000240200028020420024f047f2001200028020020021015200028020422012002490d012000200120026b3602042000200028020020026a36020041000541010b0f0b000b3301017f230041106b220124002001200028020436020c20002802002001410c6a10032000200128020c1007200141106a24000b2c01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b1a0b0b250100418080040b1d0100000002000000030000000400000005000000060000000700000008"
|
||||
},
|
||||
"contract": {
|
||||
"name": "flipper",
|
||||
"version": "3.0.0-rc2",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "init_value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Creates a new flipper smart contract initialized with the given value."
|
||||
],
|
||||
"name": [
|
||||
"new"
|
||||
],
|
||||
"selector": "0xd183512b"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Creates a new flipper smart contract initialized to `false`."
|
||||
],
|
||||
"name": [
|
||||
"default"
|
||||
],
|
||||
"selector": "0x6a3712e2"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Flips the current value of the Flipper's bool."
|
||||
],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"flip"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": null,
|
||||
"selector": "0xc096a5f3"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Returns the current value of the Flipper's bool."
|
||||
],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"get"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x1e5ca456"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"hash": "0xb6b5fa9791b27da76f1046de45d57bb835a8dfc44f21b223d8d6bb88e5eb5141",
|
||||
"language": "ink! 3.0.0-rc1",
|
||||
"compiler": "rustc 1.48.0-nightly"
|
||||
},
|
||||
"contract": {
|
||||
"name": "flipper",
|
||||
"version": "3.0.0-rc1",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "init_value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Creates a new flipper smart contract initialized with the given value."
|
||||
],
|
||||
"name": [
|
||||
"new"
|
||||
],
|
||||
"selector": "0xd183512b"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Creates a new flipper smart contract initialized to `false`."
|
||||
],
|
||||
"name": [
|
||||
"default"
|
||||
],
|
||||
"selector": "0x6a3712e2"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Flips the current value of the Flipper's bool."
|
||||
],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"flip"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": null,
|
||||
"selector": "0xc096a5f3"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Returns the current value of the Flipper's bool."
|
||||
],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"get"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x1e5ca456"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"hash": "0x8b30429ee0f4dc19cec91b09d186c805eaac6615492c1edf3bc1efaff0b7fecf",
|
||||
"language": "ink! 3.0.0-rc1",
|
||||
"compiler": "rustc 1.48.0-nightly"
|
||||
},
|
||||
"contract": {
|
||||
"name": "incrementer",
|
||||
"version": "3.0.0-rc1",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "init_value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"i32"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"name": [
|
||||
"new"
|
||||
],
|
||||
"selector": "0xd183512b"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [],
|
||||
"name": [
|
||||
"default"
|
||||
],
|
||||
"selector": "0x6a3712e2"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [],
|
||||
"messages": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "by",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"i32"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"inc"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": null,
|
||||
"selector": "0x2fb8d143"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"get"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"i32"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x1e5ca456"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"primitive": "i32"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as delegator } from './delegator.json' assert { type: 'json' };
|
||||
export { default as dns } from './dns.json' assert { type: 'json' };
|
||||
export { default as erc20 } from './erc20.json' assert { type: 'json' };
|
||||
export { default as erc721 } from './erc721.json' assert { type: 'json' };
|
||||
export { default as flipperBundle } from './flipper.contract.json' assert { type: 'json' };
|
||||
export { default as flipper } from './flipper.json' assert { type: 'json' };
|
||||
export { default as incrementer } from './incrementer.json' assert { type: 'json' };
|
||||
export { default as multisigPlain } from './multisig_plain.json' assert { type: 'json' };
|
||||
File diff suppressed because it is too large.
Load diff
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"hash": "0x568432b99f4ebd39ec03c2caaf69992b248999cc857326174b220b5587c3515f",
|
||||
"language": "ink! 3.0.0-rc1",
|
||||
"compiler": "rustc 1.48.0-nightly"
|
||||
},
|
||||
"contract": {
|
||||
"name": "flipper",
|
||||
"version": "3.0.0-rc1",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Creates a new flipper smart contract initialized to `false`."
|
||||
],
|
||||
"name": [
|
||||
"default"
|
||||
],
|
||||
"selector": "0x6a3712e2"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "init_value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"name": [
|
||||
"Flip",
|
||||
"new"
|
||||
],
|
||||
"selector": "0x818482e7"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"Flip",
|
||||
"flip"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": null,
|
||||
"selector": "0xad931d5f"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"Flip",
|
||||
"get"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x6b3549bc"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"source": {
|
||||
"hash": "0x7c5ff777929185b2350605e8f0163bfa25781097ad9ee2704c67021962720135",
|
||||
"language": "ink! 3.0.0-rc5",
|
||||
"compiler": "rustc 1.57.0-nightly",
|
||||
"wasm": "0x0061736d01000000012b0860027f7f0060037f7f7f0060017f017f60000060037f7f7f017f60017f0060047f7f7f7f0060017f017e02880106057365616c30107365616c5f6765745f73746f726167650004057365616c30107365616c5f7365745f73746f726167650001057365616c30167365616c5f76616c75655f7472616e736665727265640000057365616c300a7365616c5f696e7075740000057365616c300b7365616c5f72657475726e000103656e76066d656d6f727902010210030e0d020002000100070603020304050608017f01418080040b071102066465706c6f79000d0463616c6c000f0ac60f0dc60101017f230041406a22012400200141206a200041186a290300370300200141186a200041106a290300370300200141106a200041086a2903003703002001420137032820012000290300370308200141808001360234200141808004360230200141808001360238200141086a41808004200141386a10002100200141306a2001280238100602400240024020000e0402000001000b000b000b20012001290330370338200141386a100741ff017122004102470440200141406b240020004100470f0b000b3101017f230041106b22022400200241086a200120002802002000280204100c20002002290308370200200241106a24000b4201027f230041106b22012400200141086a2000100a20012d0009210020012d00082102200141106a240041024101410220004101461b410020001b20024101711b0b8d0101017f230041406a22022400200241206a200141186a290300370300200241186a200141106a290300370300200241106a200141086a2903003703002002420137032820022001290300370308200241386a41808001360200200241808004360234200241003602302002200241306a20001009200241086a200228020020022802041001200241406b24000b9d0101037f230041106b22032400200141086a220428020021052004410036020020012802042104200141808004360204200320023a000f2003410120042005100c024020032802044101460440200328020020032d000f3a0000200141003602082001418080043602042005450d012001200541016b3602082001200441016a3602042000410136020420002004360200200341106a24000f0b000b000b3f01027f230041106b22022400200241003a000f200020012002410f6a410110102201047f41000520022d000f0b3a0001200020013a0000200241106a24000b900102027f017e230041106b220124002001420037030841042102027f02400340200241084604402001410436020820012903082203a741044f0d02000b20012000100a20012d0000410171450440200141086a20026a20012d00013a0000200241016a21020c010b0b4101210241000c010b410021022003422088a70b2100200141106a24002002ad2000ad420886840b1a00200120034d044020002001360204200020023602000f0b000b11004100100e41ff01714108470440000b0ba80602057f017e230041306b22012400027f02400240200045044020014180800136020c200141808004360208200141086a10112001200129030837031041032100200141106a100b2206a722034101710d02200642ffffffffff1f832206422088a721022006421888a721002006421088a721040240200341087641ff01712203419b01470440200341ed01460d010c030b200441ff017141ae0147200041ff0171419d014772200241de0047720d024103200141106a100741ff0171220020004102461b21000c030b200441ff017141cb0047200041ff0171419d0147720d01410221002002411b470d010c020b20014180800136020c200141808004360208200141086a101120012001290308370310410121020240200141106a100b2206a722054101710440410121000c010b200642ffffffffff1f832206422088a721042006421888a721002006421088a721030240200541087641ff01712205412f470440200541e30047200341ff0171413a4772200041ff017141a50147720d0141002100200441d100470d010c020b200341ff017141860147200041ff017141db0047720d004100210041002102200441d901460d010b41012100410121020b410620000d021a20020440200141286a4200370300200141206a4200370300200141186a420037030020014200370310200141106a1005410173200141106a100841080c030b200141286a4200370300200141206a4200370300200141186a4200370300200142003703102001200141106a10053a0008230041106b220024002000200141086a36020c2000410c6a2802002d00002101230041206b22002400200041186a4180800136020020004180800436021420004100360210200041086a200041106a2001100941002000280208200028020c1004000b410321000b4106200041034622020d001a4106200020021b22004102470440200141286a4200370300200141206a4200370300200141186a4200370300200142003703102000410171200141106a100841080c010b200141286a4200370300200141206a4200370300200141186a4200370300200142003703104100200141106a100841080b200141306a24000ba30102037f017e230041206b2200240020004180800136020420004180800436020020004180800136021041808004200041106a100220002000280210100620002000290300370308200041186a22014200370300200042003703100240200041086a200041106a411010102202047e4200052000290310210320012903000b20038450452002724504404101100e41ff01714108470d01200041206a24000f0b000b000b5701057f200028020422042002492205450440200028020022062107034020022003470440200120036a200320076a2d00003a0000200341016a21030c010b0b2000200420026b3602042000200220066a3602000b20050b3301017f230041106b220124002001200028020436020c20002802002001410c6a10032000200128020c1006200141106a24000b"
|
||||
},
|
||||
"contract": {
|
||||
"name": "flipper",
|
||||
"version": "3.0.0-rc5",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"V1": {
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "init_value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
"Creates a new flipper smart contract initialized with the given value."
|
||||
],
|
||||
"name": [
|
||||
"new"
|
||||
],
|
||||
"selector": "0x9bae9d5e"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
"Creates a new flipper smart contract initialized to `false`."
|
||||
],
|
||||
"name": [
|
||||
"default"
|
||||
],
|
||||
"selector": "0xed4b9d1b"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Flips the current value of the Flipper's boolean."
|
||||
],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"flip"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": null,
|
||||
"selector": "0x633aa551"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Returns the current value of the Flipper's boolean."
|
||||
],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"get"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 0
|
||||
},
|
||||
"selector": "0x2f865bd9"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 0
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"id": 0,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
|
||||
// A complex contract example with traits.
|
||||
export { default as psp22 } from './psp22_minter_pauser.contract.json' assert { type: 'json' };
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,630 @@
|
||||
{
|
||||
"source": {
|
||||
"hash": "0x64d9597e882480b2e2e593eccc313cdb3cdd2aece25e6f10bae98f3efb4cdea0",
|
||||
"language": "ink! 3.0.0-rc6",
|
||||
"compiler": "rustc 1.58.0-nightly",
|
||||
"wasm": "0x0061736d01000000016d1060037f7f7f017f60027f7f017f60027f7f0060037f7f7f0060047f7f7f7f0060017f0060057f7f7f7f7f0060000060017f017e60067f7f7f7f7f7f0060037e7e7f0060017f017f60047f7f7f7f017f60057f7f7f7f7f017f60077f7f7f7f7f7f7f017f60057f7f7f7e7e017f028a020b057365616c30127365616c5f64656275675f6d6573736167650001057365616c30127365616c5f636c6561725f73746f726167650005057365616c30127365616c5f6465706f7369745f6576656e740004057365616c30107365616c5f7365745f73746f726167650003057365616c30107365616c5f6765745f73746f726167650000057365616c300a7365616c5f696e7075740002057365616c300b7365616c5f72657475726e0003057365616c30147365616c5f686173685f626c616b65325f3235360003057365616c300b7365616c5f63616c6c65720002057365616c30167365616c5f76616c75655f7472616e73666572726564000203656e76066d656d6f7279020102100365640004020203030302040302020201010204040303020402060504020202020a0305030100080203050302050201030502030205070507040f0303060100000301020107020101080d010c04000309020b04010103030001010006060601010e0101010101040501700118180608017f01418080040b071102066465706c6f79003d0463616c6c003f091d010041010b171718694f2c5b5c6d4e60676a6b4f2a2a47494b2a6c2a500ab1a40164c40201087f2002410f4d047f2000052000410020006b41037122056a210620012104200021030340200320064f450440200320042d00003a0000200441016a2104200341016a21030c010b0b200220056b2202417c7121070240200120056a22054103710440200620076a21082005417c71220341046a2101200541037422044118712109410020046b411871210a20032802002104200621030340200320084f0d022003200420097620012802002204200a7472360200200141046a2101200341046a21030c000b000b200620076a210420052101200621030340200320044f0d0120032001280200360200200141046a2101200341046a21030c000b000b20024103712102200520076a2101200620076a0b2103200220036a21020340200220034d450440200320012d00003a0000200141016a2101200341016a21030c010b0b20000bf00101037f230041e0006b22042400200441186a20033602002004200236021420042001360210200441386a22014200370300200441306a22054200370300200441286a220642003703002004420037032020044100360240200442808001370254200441b6b304360250200441106a200441d0006a100c2002200441d0006a100d2003200441d0006a100d20042004290350370244200441086a200441406b2004280258100e2004280208200428020c200441206a1007200041186a2001290300370000200041106a2005290300370000200041086a200629030037000020002004290320370000200441e0006a24000b0d0020012000280200412010290b0a0020012000412010290b5e01027f200141086a220328020021042003410036020020012802042103200141ccb004360204200220044b044041e7a904412341fcaa041030000b2001200420026b3602082001200220036a36020420002002360204200020033602000bd70101037f230041d0006b220324002003200236020c20032001360208200341286a22014200370300200341206a22044200370300200341186a220542003703002003420037031020034100360230200342808001370244200341b6b304360240200341086a200341406b100c2002200341406b100d200320032903403702342003200341306a2003280248100e20032802002003280204200341106a1007200041186a2001290300370000200041106a2004290300370000200041086a200529030037000020002003290310370000200341d0006a24000b2201017f230041206b22032400200320002001100f200220031011200341206a24000b4c01017f230041206b22022400200241186a41808001360200200241b6b30436021420024100360210200241086a200241106a2000101320012002280208200228020c1003200241206a24000b2401017f230041206b220424002004200020012002100b200320041011200441206a24000b6102017f017e230041206b220324002001290204210420034100360218200320043703102002290300200241086a290300200341106a102820012003290310370204200341086a20012003280218100e20002003290308370300200341206a24000bcc0102027f057e230041306b220224000240200029030022084202510d0020012900182104200129001021052001290008210620012900002107200041186a22012d0000200141013a00004101710d0020084201520440200241286a2004370300200241206a2005370300200241186a20063703002002200737031020024201370308200241106a10010c010b200241286a2004370300200241206a2005370300200241186a20063703002002200737031020024201370308200041086a200241106a10110b200241306a24000bc70102017f027e230041e0006b220224002002200136020c200241106a2001101620022d00104101460440200220022d00113a0037200241cc006a4102360200200241dc006a41013602002002420237023c200241a48204360238200241023602542002200241d0006a3602482002200241376a36025820022002410c6a360250200241386a41f482041019000b200241186a2903002103200241206a2903002104200041106a200241286a2903003703002000200437030820002003370300200241e0006a24000be40102017f027e230041406a22022400200241808001360224200241b6b30436022002400240024002402001200241206a10360e0402010100010b200041003a0000200041086a42003703000c020b2002413c6a4100360200200241ccb0043602382002420137022c200241a8b104360228200241286a41f0b1041019000b20022002290320370328200241086a200241286a10272002290308a70440200041013b01000c010b200241186a290300210320022903102104200041003a0000200041106a2004370300200041086a4201370300200041186a20033703000b200241406b24000bd90401017f230041106b22022400024002400240024002400240024002400240024002400240024020002d000041016b0e0b0102030405060708090a0b000b4101210020012802184194ae0441062001411c6a28020028020c1100000d0b024020012d0000410471450440200128021841b08c044101200128021c28020c1100000d0d200128021841f4b204Line truncated
|
||||
},
|
||||
"contract": {
|
||||
"name": "erc20",
|
||||
"version": "3.0.0-rc6",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"V2": {
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "initial_supply",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
"Creates a new ERC-20 contract with the specified initial supply."
|
||||
],
|
||||
"label": "new",
|
||||
"selector": "0x9bae9d5e"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 11
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 11
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": false,
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Event emitted when a token transfer occurs."
|
||||
],
|
||||
"label": "Transfer"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": false,
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Event emitted when an approval occurs that `spender` is allowed to withdraw",
|
||||
" up to the amount of `value` tokens from `owner`."
|
||||
],
|
||||
"label": "Approval"
|
||||
}
|
||||
],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Returns the total token supply."
|
||||
],
|
||||
"label": "total_supply",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
},
|
||||
"selector": "0xdb6375a8"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Returns the account balance for the specified `owner`.",
|
||||
"",
|
||||
" Returns `0` if the account is non-existent."
|
||||
],
|
||||
"label": "balance_of",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
},
|
||||
"selector": "0x0f755a56"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Returns the amount which `spender` is still allowed to withdraw from `owner`.",
|
||||
"",
|
||||
" Returns `0` if no allowance has been set."
|
||||
],
|
||||
"label": "allowance",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
},
|
||||
"selector": "0x6a00165e"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Transfers `value` amount of tokens from the caller's account to account `to`.",
|
||||
"",
|
||||
" On success a `Transfer` event is emitted.",
|
||||
"",
|
||||
" # Errors",
|
||||
"",
|
||||
" Returns `InsufficientBalance` error if there are not enough tokens on",
|
||||
" the caller's account balance."
|
||||
],
|
||||
"label": "transfer",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Result"
|
||||
],
|
||||
"type": 8
|
||||
},
|
||||
"selector": "0x84a15da1"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Allows `spender` to withdraw from the caller's account multiple times, up to",
|
||||
" the `value` amount.",
|
||||
"",
|
||||
" If this function is called again it overwrites the current allowance with `value`.",
|
||||
"",
|
||||
" An `Approval` event is emitted."
|
||||
],
|
||||
"label": "approve",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Result"
|
||||
],
|
||||
"type": 8
|
||||
},
|
||||
"selector": "0x681266a0"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Transfers `value` tokens on the behalf of `from` to the account `to`.",
|
||||
"",
|
||||
" This can be used to allow a contract to transfer tokens on ones behalf and/or",
|
||||
" to charge fees in sub-currencies, for example.",
|
||||
"",
|
||||
" On success a `Transfer` event is emitted.",
|
||||
"",
|
||||
" # Errors",
|
||||
"",
|
||||
" Returns `InsufficientAllowance` error if there are not enough tokens allowed",
|
||||
" for the caller to withdraw from `from`.",
|
||||
"",
|
||||
" Returns `InsufficientBalance` error if there are not enough tokens on",
|
||||
" the account balance of `from`."
|
||||
],
|
||||
"label": "transfer_from",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Result"
|
||||
],
|
||||
"type": 8
|
||||
},
|
||||
"selector": "0x0b396f18"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 0
|
||||
}
|
||||
},
|
||||
"name": "total_supply"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0100000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "balances"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 6
|
||||
}
|
||||
},
|
||||
"name": "allowances"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"id": 0,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u128"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "offset_key",
|
||||
"type": 5,
|
||||
"typeName": "Key"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "K",
|
||||
"type": 2
|
||||
},
|
||||
{
|
||||
"name": "V",
|
||||
"type": 0
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"lazy",
|
||||
"mapping",
|
||||
"Mapping"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 3,
|
||||
"typeName": "[u8; 32]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"AccountId"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": {
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 4
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 3,
|
||||
"typeName": "[u8; 32]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"Key"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "offset_key",
|
||||
"type": 5,
|
||||
"typeName": "Key"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "K",
|
||||
"type": 7
|
||||
},
|
||||
{
|
||||
"name": "V",
|
||||
"type": 0
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"lazy",
|
||||
"mapping",
|
||||
"Mapping"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": {
|
||||
"def": {
|
||||
"tuple": [
|
||||
2,
|
||||
2
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 9
|
||||
}
|
||||
],
|
||||
"index": 0,
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 10
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 9
|
||||
},
|
||||
{
|
||||
"name": "E",
|
||||
"type": 10
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": {
|
||||
"def": {
|
||||
"tuple": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"index": 0,
|
||||
"name": "InsufficientBalance"
|
||||
},
|
||||
{
|
||||
"index": 1,
|
||||
"name": "InsufficientAllowance"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"erc20",
|
||||
"erc20",
|
||||
"Error"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"index": 0,
|
||||
"name": "None"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 2
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Some"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 2
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Option"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"source": {
|
||||
"hash": "0xaeb7dd63156e34f62a81be2f66e16410cf4dd633b591cf27dd40474ff61a352c",
|
||||
"language": "ink! 3.0.0-rc6",
|
||||
"compiler": "rustc 1.58.0-nightly",
|
||||
"wasm": "0x0061736d0100000001620f60037f7f7f017f60027f7f017f60027f7f0060037f7f7f0060057f7f7f7f7f0060017f017f60000060017f017e60017f0060047f7f7f7f0060067f7f7f7f7f7f006000017f60047f7f7f7f017f60057f7f7f7f7f017f60077f7f7f7f7f7f7f017f02a30107057365616c30107365616c5f7365745f73746f726167650003057365616c30167365616c5f76616c75655f7472616e736665727265640002057365616c30107365616c5f6765745f73746f726167650000057365616c30127365616c5f64656275675f6d6573736167650001057365616c300a7365616c5f696e7075740002057365616c300b7365616c5f72657475726e000303656e76066d656d6f7279020102100343420203080102050207030a0b02020504060806010000030102010602010301070d010c090003020509010103030001010004040401010e01010001010101010501010004050170011e1e0608017f01418080040b071102066465706c6f7900150463616c6c00170923010041010b1d092e232f4521333a4142230846081a1c1e0843082408353c3d083e3f400ac164428d0101017f230041406a22022400200241286a200141186a290000370300200241206a200141106a290000370300200241186a200141086a2900003703002002420137030820022001290000370310200241386a41808001360200200241f2ae04360234200241003602302002200241306a20001007200241106a200228020020022802041000200241406b24000b920201047f230041106b22042400200141086a220328020021052003410036020020012802042103200141bcad04360204200441086a410041012003200541a4aa04100f0240200428020c22064101460440200428020820023a000020014100360208200141bcad043602042005450d012001200541016b3602082001200341016a3602042000410136020420002003360200200441106a24000f0b230041306b2200240020004101360204200020063602002000411c6a41023602002000412c6a41033602002000420337020c200041ac9004360208200041033602242000200041206a360218200020003602282000200041046a360220200041086a41b4aa04100a000b41a7a804412341bca904100e000b0300010bc00101037f230041306b2202240041a3ad042103411921040240024002400240024020002d000041016b0e0400010203040b4187ad042103411c21040c030b41f1ac042103411621040c020b41ddac042103411421040c010b41c4ac0421030b2002411c6a41013602002002200436022c20022003360228200241023602242002420137020c200241bcac04360208200141186a2802002001411c6a2802002002200241286a3602202002200241206a360218200241086a1032200241306a24000be60301077f230041106b220224002002200136020c20022000360208200241a48804360204200241bcad04360200230041406a220324002003200236020c200341346a410136020020034202370224200341d0a9043602202003410536023c2003200341386a36023020032003410c6a360238200341106a210641002101230041206b22042400200341206a220528020422074103742102200528020022082100034020020440200241086b2102200028020420016a2101200041086a21000c010b0b024002400240024002400240200541146a280200450440200121000c010b02402007450d0020082802040d004100210220014110490d020b41002102200120016a22002001490d010b200022024100480d010b20042002102020042802002200450d0120042802042101200641003602082006200036020020062001360204200441186a200541106a290200370300200441106a200541086a290200370300200420052902003703082006200441086a10180d02200441206a24000c030b101f000b000b41a085044133200441086a41fc830441c086041014000b2003280210210020032802182101024041f0ae042d000045044041f1ae042d00004101710d010b2000200110031013410947044041f0ae0441013a00000b41f1ae0441013a00000b000b4201027f230041106b22012400200141086a2000100c20012d0009210020012d00082102200141106a240041024101410220004101461b410020001b20024101711b0b3c01017f200020012802042202047f2001200241016b36020420012001280200220141016a36020020012d00000520010b3a000120002002453a00000b9c0102027f017e230041106b220124002001420037030841042102027f02400340200241084604402001410436020820012903082203a741044f0d0241a88104411b41c48104100e000b20012000100c20012d0000410171450440200141086a20026a20012d00013a0000200241016a21020c010b0b4101210241000c010b410021022003422088a70b2100200141106a24002002ad2000ad420886840b4601017f230041206b22032400200341146a4100360200200341bcad04360210200342013702042003200136021c200320003602182003200341186a36020020032002100a000bd2010002400240200120024d0440200220044d0d01230041306b2200240020002004360204200020023602002000411c6a41023602002000412c6a41033602002000420237020c200041a88f043602080c020b230041306b2200240020002002360204200020013602002000411c6a41023602002000412c6a41033602002000420237020c200041dc8f043602080c010b2000200220016b3602042000200120036a3602000f0b200041033602242000200041206a3602182000200041046a36022820002000360220200041086a2005100a000b6c02027f027e230041206b22002400200041086a220142003703002000420037030020004110360214200020003602102000411036021c20002000411c6a1001200041106a200028021c10112001290300210220002903002103200041206a2400410541042002200384501b0b3701017f230041106b22022400200241086a41002001200028020020002802044184ab04100f20002002290308370200200241106a24000b8f0301027f230041d0006b220224004101210302402000027f20014101714504404104101041ff01714105470d011a0b200241186a4200370300200241206a4200370300200241286a42003703002002420037031020024201370308200241808001360234200241f2ae04360230200241808001360238200241106a41f2ae04200241386a10022101200241306a20022802381011024002400240200110130e0402000001000b200241cc006a4100360200200241bcad043602482002420137023c200241b08204360238200241386a41b88204100a000b230041106b220124002001411736020c20Line truncated
|
||||
},
|
||||
"contract": {
|
||||
"name": "flipper",
|
||||
"version": "3.0.0-rc6",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"V2": {
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "init_value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
"Creates a new flipper smart contract initialized with the given value."
|
||||
],
|
||||
"label": "new",
|
||||
"selector": "0x9bae9d5e"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
"Creates a new flipper smart contract initialized to `false`."
|
||||
],
|
||||
"label": "default",
|
||||
"selector": "0xed4b9d1b"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Flips the current value of the Flipper's boolean."
|
||||
],
|
||||
"label": "flip",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": null,
|
||||
"selector": "0x633aa551"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Returns the current value of the Flipper's boolean."
|
||||
],
|
||||
"label": "get",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 0
|
||||
},
|
||||
"selector": "0x2f865bd9"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 0
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"id": 0,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as erc20 } from './erc20.contract.json' assert { type: 'json' };
|
||||
export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"source": {
|
||||
"hash": "0xbb381c2fc980121b17c7b2bf2756d5964a12151cb846e0a9eff9cc337806456d",
|
||||
"language": "ink! 3.0.0-rc7",
|
||||
"compiler": "rustc 1.60.0-nightly",
|
||||
"wasm": "0x0061736d0100000001280860027f7f0060000060037f7f7f0060017f006000017f60017f017f60037f7f7f017f60017f017e02880106057365616c30107365616c5f7365745f73746f726167650002057365616c30107365616c5f6765745f73746f726167650006057365616c300a7365616c5f696e7075740000057365616c300b7365616c5f72657475726e0002057365616c30167365616c5f76616c75655f7472616e73666572726564000003656e76066d656d6f727902010210030a090400050103070001000608017f01418080040b071102066465706c6f7900080463616c6c000c0ac40b096102027f027e230041206b22002400200041106a22014200370300200042003703082000411036021c200041086a2000411c6a1004200028021c41114f0440000b2001290300210220002903082103200041206a2400410541042002200384501b0bc20101027f230041306b220224004101210302402000027f20014101714504404104100541ff01714105470d011a0b200241106a4200370300200241186a4200370300200241206a42003703002002420037030820024201370300200241808001360228200241086a41808004200241286a100120022802282201418180014f720d012002200136022c200241808004360228200241286a100741ff017122014102460d014100210320014100470b3a0001200020033a0000200241306a24000f0b000b4201027f230041106b22012400200141086a2000100d20012d0009210020012d00082102200141106a240041024101410220004101461b410020001b20024101711b0bd30202057f027e230041306b2200240020004180800136020c200041808004360208200041086a1009200020002903083703100240200041106a100a22054201832206a70d00200542807e8342002006501b22064280feffffff1f832205422088a721012005421888a721022005421088a7210302402006a741087641ff0171220441ed014704402004419b0147200341ff017141ae014772200241ff0171419d0147200141de004772720d02200041106a100741ff017122014102460d02100541ff01714105470d02200041286a4200370300200041206a4200370300200041186a4200370300200042003703102001410171200041106a100b0c010b200341ff017141cb0047200241ff0171419d0147722001411b47720d01200041286a4200370300200041206a4200370300200041186a4200370300200042003703104100200041106a100b0b200041306a24000f0b000b4101027f230041106b2201240020012000280204220236020c20002802002001410c6a10022002200128020c2202490440000b20002002360204200141106a24000b850102027f017e230041106b220124002001420437030841042102027f02400240034020012000100d20012d00004101710d01200141086a20026a20012d00013a0000200241016a22024108470d000b20012903082203a741044f0d01000b4101210241000c010b410021022003422088a70b2100200141106a24002002ad2000ad420886840b6b01017f230041306b220224004180800420003a0000200241286a200141186a290000370300200241206a200141106a290000370300200241186a200141086a2900003703002002420137030820022001290000370310200241106a4180800441011000200241306a24000b910302057f027e230041406a22002400024002400240100541ff01714105470d0020004180800136021c200041808004360218200041186a100920002000290318370320027f0240200041206a100a22054201832206a70d00200542807e8342002006501b22064280feffffff1f832205422088a721022005421888a721012005421088a721032006a741087641ff01712204412f470440200441e30047200341ff0171413a4772200141ff017141a50147200241d1004772720d014101210141000c020b200341ff017141860147200141ff017141db0047720d00410021014100200241d901460d011a0b4101210141010b0d00024020010440200041086a418002100620002d0009210120002d00084101710d01200041386a4200370300200041306a4200370300200041286a4200370300200042003703202001417f73410171200041206a100b0c040b200041106a4100100620002d0011210120002d0010410171450d020b20014105460d020b000b4180800420014101713a000041004180800441011003000b200041406b24000b3c01017f200020012802042202047f2001200241016b36020420012001280200220141016a36020020012d00000520010b3a000120002002453a00000b"
|
||||
},
|
||||
"contract": {
|
||||
"name": "flipper",
|
||||
"version": "3.0.0-rc7",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"V3": {
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "init_value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
"Creates a new flipper smart contract initialized with the given value."
|
||||
],
|
||||
"label": "new",
|
||||
"payable": false,
|
||||
"selector": "0x9bae9d5e"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
"Creates a new flipper smart contract initialized to `false`."
|
||||
],
|
||||
"label": "default",
|
||||
"payable": true,
|
||||
"selector": "0xed4b9d1b"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Flips the current value of the Flipper's boolean."
|
||||
],
|
||||
"label": "flip",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": null,
|
||||
"selector": "0x633aa551"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Returns the current value of the Flipper's boolean."
|
||||
],
|
||||
"label": "get",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 0
|
||||
},
|
||||
"selector": "0x2f865bd9"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 0
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"id": 0,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
|
||||
// A complex contract example with traits.
|
||||
export { default as traitErc20 } from './trait_erc20.contract.json' assert { type: 'json' };
|
||||
@@ -0,0 +1,631 @@
|
||||
{
|
||||
"source": {
|
||||
"hash": "0x819f50e02feb5b4413261150c77edb5fdf85877ac1da53210f1b1327f342b81a",
|
||||
"language": "ink! 3.0.0-rc7",
|
||||
"compiler": "rustc 1.58.0-nightly",
|
||||
"wasm": "0x0061736d010000000180011360037f7f7f017f60027f7f017f60027f7f0060037f7f7f0060047f7f7f7f0060017f0060057f7f7f7f7f0060000060017f017e60067f7f7f7f7f7f0060047f7f7e7e0060037e7e7f0060057f7f7f7e7e006000017f60017f017f60047f7f7f7f017f60057f7f7f7f7f017f60077f7f7f7f7f7f7f017f60057f7f7f7e7e017f028a020b057365616c30127365616c5f64656275675f6d6573736167650001057365616c30127365616c5f636c6561725f73746f726167650005057365616c30127365616c5f6465706f7369745f6576656e740004057365616c30107365616c5f7365745f73746f726167650003057365616c30107365616c5f6765745f73746f726167650000057365616c300a7365616c5f696e7075740002057365616c300b7365616c5f72657475726e0003057365616c30147365616c5f686173685f626c616b65325f3235360003057365616c300b7365616c5f63616c6c65720002057365616c30167365616c5f76616c75655f7472616e73666572726564000203656e76066d656d6f7279020102100372710004030303020203030a0b0c0a02020201010204040302030204060504020202020b0305030501000802050304020502010305020d0302020507050704120306030100000301020107020101040810010f040003090303020e040101030300010100060606060101110101010101090404040501700118180608017f01418080040b071102066465706c6f7900430463616c6c0045091d010041010b171a1b7355306465775469717475552d2d4d4f512d762d570ac8b201712b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0b3001017f2002200220016b22044f0440200020043602042000200120036a3602000f0b4180800441214188b604100c000b4601017f230041206b22032400200341146a410036020020034184be04360210200342013702042003200136021c200320003602182003200341186a36020020032002101c000b3501017f230041106b22032400200341086a410020012002100b200020032802083602002000200328020c360204200341106a24000be60101037f230041d0006b22032400200320013602082003200236020c200341286a22014200370300200341206a22044200370300200341186a220542003703002003420037031020034100360230200342808001370244200341a6c204360240200341086a200341406b100f2002280200200341406b10102002280204200341406b1010200320032903403702342003200341306a2003280248101120032802002003280204200341106a1007200041186a2001290300370000200041106a2004290300370000200041086a200529030037000020002003290310370000200341d0006a24000b0d00200120002802004120102c0b0a00200120004120102c0b5e01027f200141086a22032802002104200341003602002001280204210320014184be04360204200220044b044041ecb60441234180b804100c000b2001200420026b3602082001200220036a36020420002002360204200020033602000bda0101037f230041d0006b22032400200320013602082003200236020c200341286a22014200370300200341206a22044200370300200341186a220542003703002003420037031020034100360230200342808001370244200341a6c204360240200341086a200341406b100f2002280200200341406b1010200320032903403702342003200341306a2003280248101120032802002003280204200341106a1007200041186a2001290300370000200041106a2004290300370000200041086a200529030037000020002003290310370000200341d0006a24000b3401017f230041306b220424002004200136020c200441106a20002004410c6a101220022003200441106a1014200441306a24000b4e01017f230041206b22032400200341186a41808001360200200341a6c20436021420034100360210200341086a200341106a20002001101620022003280208200328020c1003200341206a24000b3b01017f230041306b220524002005200236020c20052001360208200541106a2000200541086a100e20032004200541106a1014200541306a24000b5802017f017e230041206b2204240020012902042105200441003602182004200537031020022003200441106a102b20012004290310370204200441086a20012004280218101120002004290308370300200441206a24000bd40102027f057e230041306b220224000240200029030022084202510d0020012900182104200129001021052001290008210620012900002107200041186a22012d0000200141013a00004101710d0020084201520440200241286a2004370300200241206a2005370300200241186a20063703002002200737031020024201370308200241106a10010c010b200241286a2004370300200241206a2005370300200241186a200637030020022007370310200242013703082000290308200041106a290300200241106a10140b200241306a24000bc70102017f027e230041e0006b220224002002200136020c200241106a2001101920022d00104101460440200220022d00113a0037200241cc006a4102360200200241dc006a41013602002002420237023c200241ec8204360238200241023602542002200241d0006a3602482002200241376a36025820022002410c6a360250200241386a41d08304101c000b200241186a2903002103200241206a2903002104200041106a200241286a2903003703002000200437030820002003370300200241e0006a24000be40102017f027e230041406a22022400200241808001360224200241a6c20436022002400240024002402001200241206a103a0e0402010100010b200041003a0000200041086a42003703000c020b2002413c6a410036020020024184be043602382002420137022c200241e0be04360228200241286a41bcbf04101c000b20022002290320370328200241086a200241286a102a2002290308a70440200041013b01000c010b200241186a290300210320022903102104200041003a0000200041106a2004370300200041086a4201370300200041186a20033703000b200241406b24000bd90401017f230041106b22022400024002400240024002400240024002400240024002400240024020002d000041016b0e0b0102030405060708090a0b000b41012100200128021841cebb0441062001411c6a28020028020c1100000d0b024020012d0000410471450440200128021841f491044101200128021c28020c1100000d0d200128021841e4c1044105200128021c28020c110000450d010c0d0b200128021841f291044102200128021c28020c1100Line truncated
|
||||
},
|
||||
"contract": {
|
||||
"name": "trait_erc20",
|
||||
"version": "3.0.0-rc7",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"V3": {
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "initial_supply",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
"Creates a new ERC-20 contract with the specified initial supply."
|
||||
],
|
||||
"label": "new",
|
||||
"payable": false,
|
||||
"selector": "0x9bae9d5e"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 11
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 11
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Event emitted when a token transfer occurs."
|
||||
],
|
||||
"label": "Transfer"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Event emitted when an approval occurs that `spender` is allowed to withdraw",
|
||||
" up to the amount of `value` tokens from `owner`."
|
||||
],
|
||||
"label": "Approval"
|
||||
}
|
||||
],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
" Returns the total token supply."
|
||||
],
|
||||
"label": "BaseErc20::total_supply",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
},
|
||||
"selector": "0x8244a1ad"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Returns the account balance for the specified `owner`.",
|
||||
"",
|
||||
" Returns `0` if the account is non-existent."
|
||||
],
|
||||
"label": "BaseErc20::balance_of",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
},
|
||||
"selector": "0x933ae3c8"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Returns the amount which `spender` is still allowed to withdraw from `owner`.",
|
||||
"",
|
||||
" Returns `0` if no allowance has been set."
|
||||
],
|
||||
"label": "BaseErc20::allowance",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
},
|
||||
"selector": "0x74a27ac8"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Transfers `value` amount of tokens from the caller's account to account `to`.",
|
||||
"",
|
||||
" On success a `Transfer` event is emitted.",
|
||||
"",
|
||||
" # Errors",
|
||||
"",
|
||||
" Returns `InsufficientBalance` error if there are not enough tokens on",
|
||||
" the caller's account balance."
|
||||
],
|
||||
"label": "BaseErc20::transfer",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Result"
|
||||
],
|
||||
"type": 8
|
||||
},
|
||||
"selector": "0xfa9833a3"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Allows `spender` to withdraw from the caller's account multiple times, up to",
|
||||
" the `value` amount.",
|
||||
"",
|
||||
" If this function is called again it overwrites the current allowance with `value`.",
|
||||
"",
|
||||
" An `Approval` event is emitted."
|
||||
],
|
||||
"label": "BaseErc20::approve",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Result"
|
||||
],
|
||||
"type": 8
|
||||
},
|
||||
"selector": "0x922e291f"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
" Transfers `value` tokens on the behalf of `from` to the account `to`.",
|
||||
"",
|
||||
" This can be used to allow a contract to transfer tokens on ones behalf and/or",
|
||||
" to charge fees in sub-currencies, for example.",
|
||||
"",
|
||||
" On success a `Transfer` event is emitted.",
|
||||
"",
|
||||
" # Errors",
|
||||
"",
|
||||
" Returns `InsufficientAllowance` error if there are not enough tokens allowed",
|
||||
" for the caller to withdraw from `from`.",
|
||||
"",
|
||||
" Returns `InsufficientBalance` error if there are not enough tokens on",
|
||||
" the account balance of `from`."
|
||||
],
|
||||
"label": "BaseErc20::transfer_from",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Result"
|
||||
],
|
||||
"type": 8
|
||||
},
|
||||
"selector": "0x839f0263"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 0
|
||||
}
|
||||
},
|
||||
"name": "total_supply"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0100000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "balances"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 6
|
||||
}
|
||||
},
|
||||
"name": "allowances"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"id": 0,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u128"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "offset_key",
|
||||
"type": 5,
|
||||
"typeName": "Key"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "K",
|
||||
"type": 2
|
||||
},
|
||||
{
|
||||
"name": "V",
|
||||
"type": 0
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"lazy",
|
||||
"mapping",
|
||||
"Mapping"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 3,
|
||||
"typeName": "[u8; 32]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"AccountId"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": {
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 4
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 3,
|
||||
"typeName": "[u8; 32]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"Key"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "offset_key",
|
||||
"type": 5,
|
||||
"typeName": "Key"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "K",
|
||||
"type": 7
|
||||
},
|
||||
{
|
||||
"name": "V",
|
||||
"type": 0
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"lazy",
|
||||
"mapping",
|
||||
"Mapping"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": {
|
||||
"def": {
|
||||
"tuple": [
|
||||
2,
|
||||
2
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 9
|
||||
}
|
||||
],
|
||||
"index": 0,
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 10
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 9
|
||||
},
|
||||
{
|
||||
"name": "E",
|
||||
"type": 10
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": {
|
||||
"def": {
|
||||
"tuple": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"index": 0,
|
||||
"name": "InsufficientBalance"
|
||||
},
|
||||
{
|
||||
"index": 1,
|
||||
"name": "InsufficientAllowance"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"trait_erc20",
|
||||
"erc20",
|
||||
"Error"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"index": 0,
|
||||
"name": "None"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 2
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Some"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 2
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Option"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"source":{"hash":"0x114f55289bcdfd0d28e0bbd1c63452b4e45901a022b1011d298fa2eb12d1711d","language":"ink! 4.3.0","compiler":"rustc 1.75.0","wasm":"0x0061736d0100000001601060037f7f7f017f60027f7f0060027f7f017f60037f7f7f0060017f0060047f7f7f7f0060047f7f7f7f017f60057f7f7f7f7f0060000060017f017f60027e7e0060047f7f7e7e0060037e7e7f0060037f7e7e006000017f60047f7f7e7e017f02c7010a057365616c310b6765745f73746f726167650006057365616c301176616c75655f7472616e736665727265640001057365616c3005696e7075740001057365616c300663616c6c65720001057365616c300d64656275675f6d6573736167650002057365616c300f686173685f626c616b65325f3235360003057365616c300d6465706f7369745f6576656e740005057365616c320b7365745f73746f726167650006057365616c300b7365616c5f72657475726e000303656e76066d656d6f7279020102100351500007030b0101030c0d0101030305030101070401010001010304070e03010409030201020004030108010a0a0104080f0408030501040801090200000202020204010202070605060105020203050205040501700110100608017f01418080040b0711020463616c6c0037066465706c6f79003a0915010041010b0f54532c2a465748272747274445424a0ad37d502b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0b2200200120034d044020002001360204200020023602000f0b200120032004100b000b0e0020002001200241cc960410580bbb0102037f017e230041306b2204240020044100360220200442808001370228200441d0a30436022441b7c380e57e200441246a2205100d20002005100e20012005100e20042004290224370218200441106a200441186a2206200428022c100f2004280214210020042802102101200429021821072004410036022c20042007370224200220032005101020042004290224370218200441086a2006200428022c100f200120002004280208200428020c10071a200441306a24000b2601017f230041106b220224002002200036020c20012002410c6a41041021200241106a24000b0a0020012000412010210b4501017f2002200128020422034b0440419ca00441234194a2041017000b2001200320026b36020420012001280200220120026a36020020002002360204200020013602000b2a01017f230041106b2203240020032001370308200320003703002002200341101021200341106a24000bb50102047f017e230041306b2203240020034100360220200342808001370228200341d0a30436022441e7b98fb102200341246a2204100d20002004100e20032003290224370218200341106a200341186a2205200328022c100f2003280214210020032802102106200329021821072003410036022c20032007370224200120022004101020032003290224370218200341086a2005200328022c100f200620002003280208200328020c10071a200341306a24000bd10102037f017e230041d0006b22022400200241186a220420001013200229021821052002410036022c2002200537022420012802002001280204200241246a2203101420012802082003100e20022002290224370218200241106a2004200228022c100f2003200228021020022802141015200241086a200028020020002802042000280208220110162002410036024c200220022903083702442003200241c4006a100e20012001200228024c6a22034b044041c08204411c41c886041017000b20002003360208200241d0006a24000b3f01027f2001280204220320012802082202490440200220034184a2041029000b200041003602082000200320026b3602042000200128020020026a3602000b100020012002101c20022000200110210b8f0201077f230041d0006b22032400200341286a22044200370300200341206a22054200370300200341186a22064200370300200342003703100240200241214f0440200341c8006a22074200370300200341406b22084200370300200341386a220942003703002003420037033020012002200341306a1005200420072903003703002005200829030037030020062009290300370300200320032903303703100c010b200341086a2002200341106a412041988204100a2003280208200328020c2001200241a88204101a0b20002003290310370000200041186a200341286a290300370000200041106a200341206a290300370000200041086a200341186a290300370000200341d0006a24000b2900200220034904402003200241b886041029000b2000200220036b3602042000200120036a3602000b4601017f230041206b220324002003410c6a420037020020034101360204200341f49f043602082003200136021c200320003602182003200341186a36020020032002102b000bd10102037f017e230041d0006b22022400200241186a220420001013200229021821052002410036022c2002200537022420012802002001280204200241246a2203101420012802082003101920022002290224370218200241106a2004200228022c100f2003200228021020022802141015200241086a200028020020002802042000280208220110162002410036024c200220022903083702442003200241c4006a100e20012001200228024c6a22034b044041c08204411c41c886041017000b20002003360208200241d0006a24000b210020002d00004504402001410010300f0b200141011030200041016a2001100e0b7b002001200346044020002002200110091a0f0b230041306b220024002000200336020420002001360200200041146a42023702002000412c6a41053602002000410336020c200041a09804360208200041053602242000200041206a360210200020003602282000200041046a360220200041086a2004102b000b6a01037f230041206b22012400200141086a200028020020002802042000280208220210162001410036021c200120012903083702144103200141146a101c20022002200128021c6a22034b044041c08204411c41c886041017000b20002003360208200141206a24000b7401017f230041106b2202240002402000413f4d04402001200041027410300c010b200041ffff004d0440200220004102744101723b010e20012002410e6a410210210c010b200041ffffffff034d044020004102744102722001100d0c010b20014103103020002001100d0b200241106a24000b8a0101047f230041206b22022400200241186a22034200370300200241106a22044200370300200241086a22054200370300200242003703002000027f200120024120101e450440Line truncated
|
||||
@@ -0,0 +1,821 @@
|
||||
{
|
||||
"source": {
|
||||
"hash": "0x114f55289bcdfd0d28e0bbd1c63452b4e45901a022b1011d298fa2eb12d1711d",
|
||||
"language": "ink! 4.3.0",
|
||||
"compiler": "rustc 1.75.0",
|
||||
"build_info": {
|
||||
"build_mode": "Debug",
|
||||
"cargo_contract_version": "3.2.0",
|
||||
"rust_toolchain": "stable-aarch64-apple-darwin",
|
||||
"wasm_opt_settings": {
|
||||
"keep_debug_symbols": false,
|
||||
"optimization_passes": "Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contract": {
|
||||
"name": "erc20",
|
||||
"version": "4.3.0",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "total_supply",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": false,
|
||||
"docs": [
|
||||
"Creates a new ERC-20 contract with the specified initial supply."
|
||||
],
|
||||
"label": "new",
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink_primitives",
|
||||
"ConstructorResult"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x9bae9d5e"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"environment": {
|
||||
"accountId": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
},
|
||||
"balance": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
},
|
||||
"blockNumber": {
|
||||
"displayName": [
|
||||
"BlockNumber"
|
||||
],
|
||||
"type": 14
|
||||
},
|
||||
"chainExtension": {
|
||||
"displayName": [
|
||||
"ChainExtension"
|
||||
],
|
||||
"type": 15
|
||||
},
|
||||
"hash": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 12
|
||||
},
|
||||
"maxEventTopics": 4,
|
||||
"timestamp": {
|
||||
"displayName": [
|
||||
"Timestamp"
|
||||
],
|
||||
"type": 13
|
||||
}
|
||||
},
|
||||
"events": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 11
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 11
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": false,
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
"Event emitted when a token transfer occurs."
|
||||
],
|
||||
"label": "Transfer"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"label": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": false,
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
"Event emitted when an approval occurs that `spender` is allowed to withdraw",
|
||||
"up to the amount of `value` tokens from `owner`."
|
||||
],
|
||||
"label": "Approval"
|
||||
}
|
||||
],
|
||||
"lang_error": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"LangError"
|
||||
],
|
||||
"type": 3
|
||||
},
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"default": false,
|
||||
"docs": [
|
||||
" Returns the total token supply."
|
||||
],
|
||||
"label": "total_supply",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"MessageResult"
|
||||
],
|
||||
"type": 4
|
||||
},
|
||||
"selector": "0xdb6375a8"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": false,
|
||||
"docs": [
|
||||
" Returns the account balance for the specified `owner`.",
|
||||
"",
|
||||
" Returns `0` if the account is non-existent."
|
||||
],
|
||||
"label": "balance_of",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"MessageResult"
|
||||
],
|
||||
"type": 4
|
||||
},
|
||||
"selector": "0x0f755a56"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": false,
|
||||
"docs": [
|
||||
" Returns the amount which `spender` is still allowed to withdraw from `owner`.",
|
||||
"",
|
||||
" Returns `0` if no allowance has been set."
|
||||
],
|
||||
"label": "allowance",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"MessageResult"
|
||||
],
|
||||
"type": 4
|
||||
},
|
||||
"selector": "0x6a00165e"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": false,
|
||||
"docs": [
|
||||
" Transfers `value` amount of tokens from the caller's account to account `to`.",
|
||||
"",
|
||||
" On success a `Transfer` event is emitted.",
|
||||
"",
|
||||
" # Errors",
|
||||
"",
|
||||
" Returns `InsufficientBalance` error if there are not enough tokens on",
|
||||
" the caller's account balance."
|
||||
],
|
||||
"label": "transfer",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"MessageResult"
|
||||
],
|
||||
"type": 8
|
||||
},
|
||||
"selector": "0x84a15da1"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": false,
|
||||
"docs": [
|
||||
" Allows `spender` to withdraw from the caller's account multiple times, up to",
|
||||
" the `value` amount.",
|
||||
"",
|
||||
" If this function is called again it overwrites the current allowance with",
|
||||
" `value`.",
|
||||
"",
|
||||
" An `Approval` event is emitted."
|
||||
],
|
||||
"label": "approve",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"MessageResult"
|
||||
],
|
||||
"type": 8
|
||||
},
|
||||
"selector": "0x681266a0"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": false,
|
||||
"docs": [
|
||||
" Transfers `value` tokens on the behalf of `from` to the account `to`.",
|
||||
"",
|
||||
" This can be used to allow a contract to transfer tokens on ones behalf and/or",
|
||||
" to charge fees in sub-currencies, for example.",
|
||||
"",
|
||||
" On success a `Transfer` event is emitted.",
|
||||
"",
|
||||
" # Errors",
|
||||
"",
|
||||
" Returns `InsufficientAllowance` error if there are not enough tokens allowed",
|
||||
" for the caller to withdraw from `from`.",
|
||||
"",
|
||||
" Returns `InsufficientBalance` error if there are not enough tokens on",
|
||||
" the account balance of `from`."
|
||||
],
|
||||
"label": "transfer_from",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"MessageResult"
|
||||
],
|
||||
"type": 8
|
||||
},
|
||||
"selector": "0x0b396f18"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"root": {
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"leaf": {
|
||||
"key": "0x00000000",
|
||||
"ty": 0
|
||||
}
|
||||
},
|
||||
"name": "total_supply"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"root": {
|
||||
"layout": {
|
||||
"leaf": {
|
||||
"key": "0x2623dce7",
|
||||
"ty": 0
|
||||
}
|
||||
},
|
||||
"root_key": "0x2623dce7"
|
||||
}
|
||||
},
|
||||
"name": "balances"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"root": {
|
||||
"layout": {
|
||||
"leaf": {
|
||||
"key": "0xeca021b7",
|
||||
"ty": 0
|
||||
}
|
||||
},
|
||||
"root_key": "0xeca021b7"
|
||||
}
|
||||
},
|
||||
"name": "allowances"
|
||||
}
|
||||
],
|
||||
"name": "Erc20"
|
||||
}
|
||||
},
|
||||
"root_key": "0x00000000"
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"id": 0,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u128"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 2
|
||||
}
|
||||
],
|
||||
"index": 0,
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 2
|
||||
},
|
||||
{
|
||||
"name": "E",
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": {
|
||||
"def": {
|
||||
"tuple": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"index": 1,
|
||||
"name": "CouldNotReadInput"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"LangError"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 0
|
||||
}
|
||||
],
|
||||
"index": 0,
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 0
|
||||
},
|
||||
{
|
||||
"name": "E",
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 6,
|
||||
"typeName": "[u8; 32]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"types",
|
||||
"AccountId"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": {
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 7
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 9
|
||||
}
|
||||
],
|
||||
"index": 0,
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 9
|
||||
},
|
||||
{
|
||||
"name": "E",
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 2
|
||||
}
|
||||
],
|
||||
"index": 0,
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 10
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 2
|
||||
},
|
||||
{
|
||||
"name": "E",
|
||||
"type": 10
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"index": 0,
|
||||
"name": "InsufficientBalance"
|
||||
},
|
||||
{
|
||||
"index": 1,
|
||||
"name": "InsufficientAllowance"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"erc20",
|
||||
"erc20",
|
||||
"Error"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"index": 0,
|
||||
"name": "None"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 5
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Some"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 5
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Option"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 6,
|
||||
"typeName": "[u8; 32]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"types",
|
||||
"Hash"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u64"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u32"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"NoChainExtension"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"version": "4"
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
{"source":{"hash":"0xa5b19cb655755feba8e34ab5b413ac6593ecc7e24e19af485a4d30036be9d577","language":"ink! 4.2.0","compiler":"rustc 1.69.0","wasm":"0x0061736d0100000001450c60027f7f017f60037f7f7f017f60027f7f0060037f7f7f0060017f0060047f7f7f7f017f60000060047f7f7f7f0060017f017f60017f017e60057f7f7f7f7f006000017f028a0107057365616c310b6765745f73746f726167650005057365616c301176616c75655f7472616e736665727265640002057365616c3005696e7075740002057365616c300d64656275675f6d6573736167650000057365616c320b7365745f73746f726167650005057365616c300b7365616c5f72657475726e000303656e76066d656d6f7279020102100337360102030b0803040002080102020604030202060600010103000300070204060202000400040900000a0507050000030a01000000000704050170010f0f0608017f01418080040b0711020463616c6c0018066465706c6f7900190914010041010b0e0d32273a29333839281c1e20372b0ac744362b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0b2601017f230041106b22022400200220003a000f20012002410f6a41011008200241106a24000b5c01037f02402000280208220420026a220320044f04402003200028020422054b0d01200028020020046a200320046b2001200241cc97041035200020033602080f0b41909604411c41ac9704101f000b2003200541bc9704100b000b5502027f027e230041206b22002400200041106a22014200370300200042003703082000411036021c200041086a2000411c6a10012001290300210220002903082103200041206a2400410541042002200384501b0b1b002000418180014f044020004180800141a88104100b000b20000b7501017f230041306b220324002003200136020420032000360200200341146a41023602002003411c6a41023602002003412c6a4103360200200341988f0436021020034100360208200341033602242003200341206a3602182003200341046a36022820032003360220200341086a2002100e000b5201017f230041206b220124002001410c6a4101360200200141146a41013602002001418c9504360208200141003602002001410136021c200120003602182001200141186a360210200141b08204100e000b910101017f230041306b22022400200241146a41013602002002411c6a41013602002002418c95043602102002410036020820024102360224200220002d0000410274220041ac9a046a28020036022c2002200041c09a046a280200360228200141046a28020021002002200241206a3602182002200241286a36022020012802002000200241086a1036200241306a24000b3c01017f230041206b22022400200241013a00182002200136021420022000360210200241d08a0436020c2002418c9604360208200241086a102a000b4001017f230041106b22012400200141003a000f20002001410f6a41011010047f4102054101410220012d000f22004101461b410020001b0b200141106a24000b6001047f230041106b22032400200028020422042002492205450440200341086a4100200220002802002206103b200120022003280208200328020c419c9a0410352003200220042006103b200020032903003702000b200341106a240020050b4701017f230041106b220224002002410036020c024020012002410c6a410410104504402000200228020c360001200041003a00000c010b200041013a00000b200241106a24000b3f01017f230041106b22022400200242808001370204200241dc9a0436020020022001047f20024101101741010541000b101720002002280208100a1016000b3701017f230041106b22002400200042808001370204200041dc9a0436020020004100101720004100101741002000280208100a1016000bae0102057f017e230041306b2201240020014100360218200142808001370224200141dc9a043602202001410036021c200141206a22022001411c6a4104100820012001290320370310200141086a200141106a220320012802281015200128020c2104200128020820012903102106200141003602282001200637032020002002100720012001290320370310200120032001280228101520042001280200200128020410041a200141306a24000b4501017f2002200128020422034b044041ac9604412341ec9704101f000b2001200320026b36020420012001280200220120026a36020020002002360204200020013602000b0d00200041dc9a0420011005000ba10101027f20002802082202200028020422034904402000200241016a360208200028020020026a20013a00000f0b230041306b220024002000200336020420002002360200200041146a41023602002000411c6a41023602002000412c6a4103360200200041a48a0436021020004100360208200041033602242000200041206a360218200020003602282000200041046a360220200041086a41dc9704100e000bab0501077f230041406a22002400024002400240024002400240100941ff0171410546044020004180800136022041dc9a04200041206a100220002802202201418180014f0d0120002001360224200041dc9a04360220200041106a200041206a101120002d00100d0520002800112201411876210220014110762104200141087621030240200141ff01712201412f470440200141e30047200341ff0171413a4772200441ff017141a50147720d0741012101200241d100460d010c070b200341ff017141860147200441ff017141db0047720d0641002101200241d901470d060b20004100360218200042808001370224200041dc9a043602202000410036023c200041206a22032000413c6a4104100820002000290320370310200041086a200041106a20002802281015200028020c210520002802082000280210210220002000280214220436022020052002200310002103200420002802202205490d02024002400240410c20032003410c4f1b0e0402000001000b2000412c6a4101360200200041346a4100360200200041d481043602282000418c960436023020004100360220200041206a41dc8104100e000b2000412c6a4101360200200041346a41003602002000418883043602280c070b2000200536022420002002360220200041206a100f41ff017122024102460d042001450d032002451014410041001012000b200041043a0020200041206a100c000b20014180800141cc8004100b000b2005200441cc8004100b000b230041106b22002400200042808001370204200041dc9a043602002000410010172002410047200010074100200028020810Line truncated
|
||||
@@ -0,0 +1,396 @@
|
||||
{
|
||||
"source": {
|
||||
"hash": "0xa5b19cb655755feba8e34ab5b413ac6593ecc7e24e19af485a4d30036be9d577",
|
||||
"language": "ink! 4.2.0",
|
||||
"compiler": "rustc 1.69.0",
|
||||
"build_info": {
|
||||
"build_mode": "Debug",
|
||||
"cargo_contract_version": "2.2.1",
|
||||
"rust_toolchain": "stable-x86_64-apple-darwin",
|
||||
"wasm_opt_settings": {
|
||||
"keep_debug_symbols": false,
|
||||
"optimization_passes": "Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contract": {
|
||||
"name": "flipper",
|
||||
"version": "4.2.0",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "init_value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": false,
|
||||
"docs": [
|
||||
"Creates a new flipper smart contract initialized with the given value."
|
||||
],
|
||||
"label": "new",
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink_primitives",
|
||||
"ConstructorResult"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x9bae9d5e"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"default": false,
|
||||
"docs": [
|
||||
"Creates a new flipper smart contract initialized to `false`."
|
||||
],
|
||||
"label": "new_default",
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink_primitives",
|
||||
"ConstructorResult"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x61ef7e3e"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"environment": {
|
||||
"accountId": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
},
|
||||
"balance": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 8
|
||||
},
|
||||
"blockNumber": {
|
||||
"displayName": [
|
||||
"BlockNumber"
|
||||
],
|
||||
"type": 11
|
||||
},
|
||||
"chainExtension": {
|
||||
"displayName": [
|
||||
"ChainExtension"
|
||||
],
|
||||
"type": 12
|
||||
},
|
||||
"hash": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 9
|
||||
},
|
||||
"maxEventTopics": 4,
|
||||
"timestamp": {
|
||||
"displayName": [
|
||||
"Timestamp"
|
||||
],
|
||||
"type": 10
|
||||
}
|
||||
},
|
||||
"events": [],
|
||||
"lang_error": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"LangError"
|
||||
],
|
||||
"type": 3
|
||||
},
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"default": false,
|
||||
"docs": [
|
||||
" Flips the current value of the Flipper's boolean."
|
||||
],
|
||||
"label": "flip",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"MessageResult"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x633aa551"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"default": false,
|
||||
"docs": [
|
||||
" Returns the current value of the Flipper's boolean."
|
||||
],
|
||||
"label": "get",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"MessageResult"
|
||||
],
|
||||
"type": 4
|
||||
},
|
||||
"selector": "0x2f865bd9"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"root": {
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"leaf": {
|
||||
"key": "0x00000000",
|
||||
"ty": 0
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
],
|
||||
"name": "Flipper"
|
||||
}
|
||||
},
|
||||
"root_key": "0x00000000"
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"id": 0,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 2
|
||||
}
|
||||
],
|
||||
"index": 0,
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 2
|
||||
},
|
||||
{
|
||||
"name": "E",
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": {
|
||||
"def": {
|
||||
"tuple": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"index": 1,
|
||||
"name": "CouldNotReadInput"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"LangError"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 0
|
||||
}
|
||||
],
|
||||
"index": 0,
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 0
|
||||
},
|
||||
{
|
||||
"name": "E",
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 6,
|
||||
"typeName": "[u8; 32]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"types",
|
||||
"AccountId"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": {
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 7
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u128"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 6,
|
||||
"typeName": "[u8; 32]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"types",
|
||||
"Hash"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u64"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u32"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"NoChainExtension"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"version": "4"
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
|
||||
export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
|
||||
export { default as flipperContract } from './flipper.contract.json' assert { type: 'json' };
|
||||
export { default as flipperMetadata } from './flipper.json' assert { type: 'json' };
|
||||
@@ -0,0 +1 @@
|
||||
{"source":{"hash":"0xf6939855fe6abe0b79cd23a154f0816d8205a5751f36b8703e9a60f31d9e48a5","language":"ink! 5.0.0-rc.1","compiler":"rustc 1.75.0","wasm":"0x0061736d0100000001691160037f7f7f017f60027f7f017f60027f7f0060037f7f7f0060017f0060047f7f7f7f0060047f7f7f7f017f60057f7f7f7f7f0060000060017f017f60027e7e0060047f7f7e7e0060037e7e7f0060037f7e7e006000017f60057f7f7f7f7f017f60047f7f7e7e017f02c7010a057365616c310b6765745f73746f726167650006057365616c3005696e7075740002057365616c300d6465706f7369745f6576656e740005057365616c320b7365745f73746f726167650006057365616c300d64656275675f6d6573736167650001057365616c300b7365616c5f72657475726e0003057365616c300663616c6c65720002057365616c301176616c75655f7472616e736665727265640002057365616c300f686173685f626c616b65325f323536000303656e76066d656d6f7279020102100356550000000007030b0202030c0d0402030305040207040202000202020403020204070e01010203040903030102010f0a02080a0208100408030502020901000001010104020101070605060201010300050101010205040501700116160616037f01418080040b7f0041809b050b7f0041fe9a050b0711020463616c6c003c066465706c6f79003f091b010041010b15555435332b2c495b4a2f2f2b2f4748454c2f57595a0afa78552b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0b6f01017f0240200020014d04402000210303402002450d02200320012d00003a0000200141016a2101200341016a2103200241016b21020c000b000b200141016b2101200041016b210303402002450d01200220036a200120026a2d00003a0000200241016b21020c000b000b20000b2501017f037f2002200346047f200005200020036a20013a0000200341016a21030c010b0b0b3f01027f0340200245044041000f0b200241016b210220012d0000210320002d00002104200041016a2100200141016a210120032004460d000b200420036b0b2200200120034d044020002001360204200020023602000f0b200120032004100e000b0e0020002001200241f89004105d0bbb0102037f017e230041306b2204240020044100360220200442808001370228200441fe9a0436022441b7c380e57e200441246a2205101020002005101120012005101120042004290224370218200441106a200441186a2206200428022c10122004280214210020042802102101200429021821072004410036022c20042007370224200220032005101320042004290224370218200441086a2006200428022c1012200120002004280208200428020c10031a200441306a24000b2601017f230041106b220224002002200036020c20012002410c6a41041017200241106a24000b0a0020012000412010170b4501017f2002200128020422034b044041a09604412341cc98041032000b2001200320026b36020420012001280200220120026a36020020002002360204200020013602000b2a01017f230041106b2203240020032001370308200320003703002002200341101017200341106a24000bb50102047f017e230041306b2203240020034100360220200342808001370228200341fe9a0436022441e7b98fb102200341246a2204101020002004101120032003290224370218200341106a200341186a2205200328022c10122003280214210020032802102106200329021821072003410036022c20032007370224200120022004101320032003290224370218200341086a2005200328022c1012200620002003280208200328020c10031a200341306a24000bbd0102047f017e230041d0006b22012400200141186a220220001016200129021821052001410036022c20012005370224200141003a0044200141246a2203200141c4006a22044101101720012001290224370218200141106a2002200128022c10122003200128021020012802141018200141086a200028020020002802042000280208220210192001410036024c2001200129030837024420032004101120022002200128024c6a22024d101a20002002360208200141d0006a24000b3f01027f20012802042203200128020822024904402002200341bc98041031000b200041003602082000200320026b3602042000200128020020026a3602000bd30101057f20002802042105200028020021062000280208220420026a220320044f220741ec9704105c0240200320044f0440200320054b0d01200420066a200320046b20012002418c9804101c2007419c9804105c200020033602080f0b230041306b220024002000200336020420002004360200200041146a42023702002000412c6a41073602002000410236020c200041ac9104360208200041073602242000200041206a3602102000200041046a36022820002000360220200041086a41fc97041034000b2003200541fc9704100e000b8f0201077f230041d0006b22032400200341286a22044200370300200341206a22054200370300200341186a22064200370300200342003703100240200241214f0440200341c8006a22074200370300200341406b22084200370300200341386a220942003703002003420037033020012002200341306a1008200420072903003703002005200829030037030020062009290300370300200320032903303703100c010b200341086a2002200341106a412041a48104100d2003280208200328020c2001200241b48104101c0b20002003290310370000200041186a200341286a290300370000200041106a200341206a290300370000200041086a200341186a290300370000200341d0006a24000b29002002200349044020032002418c84041031000b2000200220036b3602042000200120036a3602000b1500200045044041c39604412b419c84041032000b0bb20102037f017e230041d0006b22022400200241186a220420001016200229021821052002410036022c200220053702242001200241246a2203101120022002290224370218200241106a2004200228022c10122003200228021020022802141018200241086a200028020020002802042000280208220110192002410036024c200220022903083702442003200241c4006a101120012001200228024c6a22014d101a20002001360208200241d0006a24000b7b002001200346044020002002200110091a0f0b230041306b220024002000200336020420002001360200200041146a42023702002000412c6a41073602002000410336020c200041809304360208200041073602242000200041206a36021020002000360228200020004Line truncated
|
||||
File diff suppressed because it is too large.
Load diff
Binary file not shown.
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
{"source":{"hash":"0xaf1c6d2ea289d7d4f8753db2d658782f4d066544f3ee34b3d54272075ad0de99","language":"ink! 5.0.0-rc.1","compiler":"rustc 1.75.0","wasm":"0x0061736d0100000001400b60037f7f7f017f60027f7f017f60027f7f0060037f7f7f0060047f7f7f7f017f60017f0060017f017f60000060047f7f7f7f0060057f7f7f7f7f006000017f028a0107057365616c310b6765745f73746f726167650004057365616c3005696e7075740002057365616c320b7365745f73746f726167650004057365616c300d64656275675f6d6573736167650001057365616c300b7365616c5f72657475726e0003057365616c301176616c75655f7472616e73666572726564000203656e76066d656d6f7279020102100334330000000002030a060301020600070205030202070507030802020601000500010101010502010109040804030902010103010204050170010e0e0616037f01418080040b7f00419093050b7f00418693050b0711020463616c6c0019066465706c6f79001b0913010041010b0d0f34263728352327232425212a0afc3b332b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0b6f01017f0240200020014d04402000210303402002450d02200320012d00003a0000200141016a2101200341016a2103200241016b21020c000b000b200141016b2101200041016b210303402002450d01200220036a200120026a2d00003a0000200241016b21020c000b000b20000b2501017f037f2002200346047f200005200020036a20013a0000200341016a21030c010b0b0b3f01027f0340200245044041000f0b200241016b210220012d0000210320002d00002104200041016a2100200141016a210120032004460d000b200420036b0b2601017f230041106b22022400200220003a000f20012002410f6a4101100b200241106a24000bd30101057f20002802042105200028020021062000280208220420026a220320044f220741f0900410380240200320044f0440200320054b0d01200420066a200320046b20012002419091041032200741a091041038200020033602080f0b230041306b220024002000200336020420002004360200200041146a42023702002000412c6a41033602002000410236020c200041b48b04360208200041033602242000200041206a3602102000200041046a36022820002000360220200041086a418091041010000b2003200541809104100e000b4d02017f027e230041206b2200240020004200370308200042003703002000411036021c20002000411c6a10052000290308210120002903002102200041206a2400410541042001200284501b0b1b002000418180014f044020004180800141f08104100e000b20000b6b01017f230041306b220324002003200136020420032000360200200341146a42023702002003412c6a41033602002003410236020c200341808b04360208200341033602242003200341206a3602102003200341046a36022820032003360220200341086a20021010000b840101017f230041306b22022400200241146a42013702002002410136020c200241a48e0436020820024102360224200220002d0000410274220041cc92046a28020036022c2002200041e092046a2802003602282002200241206a3602102002200241286a36022020012802142001280218200241086a10222100200241306a240020000b3c01017f230041206b22022400200241013b011c2002200136021820022000360214200241908804360210200241a48f0436020c2002410c6a1029000b4701027f230041106b22012400200141003a000f20002001410f6a41011012220045044020012d000f21020b200141106a240041024101410220024101461b410020021b20001b0b3d01027f2000280204220320024922044504402001200220002802002201200241bc920410322000200320026b3602042000200120026a3602000b20040b3c01027f230041106b22002400200042808001370208200041869304360204200041046a2201410010182001410010184100200028020c100d1017000b4401027f230041106b22022400200242808001370208200241869304360204200241046a22032001047f20034101101841010541000b10182000200228020c100d1017000bb20102057f017e230041306b220124002001410036021c20014280800137022820014186930436022420014100360220200141246a2202200141206a4104100b20012001290224370214200141086a200141146a2203200128022c1016200128020c210420012802082105200129021421062001410036022c2001200637022420002002100a2001200129022437021420012003200128022c1016200520042001280200200128020410021a200141306a24000b4501017f2002200128020422034b044041a48f04412341c091041031000b2001200320026b36020420012001280200220120026a36020020002002360204200020013602000b0d0020004186930420011004000b970101027f20002802082202200028020422034904402000200241016a360208200028020020026a20013a00000f0b230041306b220024002000200336020420002002360200200041146a42023702002000412c6a41033602002000410236020c200041e08804360208200041033602242000200041206a360210200020003602282000200041046a360220200041086a41b091041010000b880501077f230041306b22002400024002400240024002400240100c41ff0171410546044020004180800136021441869304200041146a2202100120002802142201418180014f0d0120002001360218200041869304360214200041003602082002200041086a410410120d0520002d000b210120002d000a210220002d00092103024020002d00082204412f470440200441e300470d07410121042003413a47200241a5014772200141d1004772450d010c070b41002104200341860147200241db004772200141d90147720d060b200041003602102000428080013702182000418693043602142000410036022c200041146a22032000412c6a4104100b200020002902143702082000200041086a200028021c10162000280204210520002802002106200028020821012000200028020c2202360214200620052001200310002105200220002802142203490d0202400240024020050e0400060601060b2000200336021820002001360214200041146a1011220141ff017141024704402000280218450d020b200041206a420037020020004101360218200041bc83043602140c080b200041206a4200370200200041013602182000418c83043602140c070b20040d04230041106b2200240020004280800137020820004186930Line truncated
|
||||
@@ -0,0 +1,420 @@
|
||||
{
|
||||
"source": {
|
||||
"hash": "0xaf1c6d2ea289d7d4f8753db2d658782f4d066544f3ee34b3d54272075ad0de99",
|
||||
"language": "ink! 5.0.0-rc.1",
|
||||
"compiler": "rustc 1.75.0",
|
||||
"build_info": {
|
||||
"build_mode": "Debug",
|
||||
"cargo_contract_version": "4.0.0-rc.2",
|
||||
"rust_toolchain": "stable-aarch64-apple-darwin",
|
||||
"wasm_opt_settings": {
|
||||
"keep_debug_symbols": false,
|
||||
"optimization_passes": "Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contract": {
|
||||
"name": "flipper",
|
||||
"version": "5.0.0-rc.1",
|
||||
"authors": [
|
||||
"Parity Technologies <admin@parity.io>"
|
||||
]
|
||||
},
|
||||
"image": null,
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"label": "init_value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": false,
|
||||
"docs": [
|
||||
"Creates a new flipper smart contract initialized with the given value."
|
||||
],
|
||||
"label": "new",
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink_primitives",
|
||||
"ConstructorResult"
|
||||
],
|
||||
"type": 2
|
||||
},
|
||||
"selector": "0x9bae9d5e"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"default": false,
|
||||
"docs": [
|
||||
"Creates a new flipper smart contract initialized to `false`."
|
||||
],
|
||||
"label": "new_default",
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink_primitives",
|
||||
"ConstructorResult"
|
||||
],
|
||||
"type": 2
|
||||
},
|
||||
"selector": "0x61ef7e3e"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"environment": {
|
||||
"accountId": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 6
|
||||
},
|
||||
"balance": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 9
|
||||
},
|
||||
"blockNumber": {
|
||||
"displayName": [
|
||||
"BlockNumber"
|
||||
],
|
||||
"type": 12
|
||||
},
|
||||
"chainExtension": {
|
||||
"displayName": [
|
||||
"ChainExtension"
|
||||
],
|
||||
"type": 13
|
||||
},
|
||||
"hash": {
|
||||
"displayName": [
|
||||
"Hash"
|
||||
],
|
||||
"type": 10
|
||||
},
|
||||
"maxEventTopics": 4,
|
||||
"staticBufferSize": 16384,
|
||||
"timestamp": {
|
||||
"displayName": [
|
||||
"Timestamp"
|
||||
],
|
||||
"type": 11
|
||||
}
|
||||
},
|
||||
"events": [],
|
||||
"lang_error": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"LangError"
|
||||
],
|
||||
"type": 4
|
||||
},
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"default": false,
|
||||
"docs": [
|
||||
" Flips the current value of the Flipper's boolean."
|
||||
],
|
||||
"label": "flip",
|
||||
"mutates": true,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"MessageResult"
|
||||
],
|
||||
"type": 2
|
||||
},
|
||||
"selector": "0x633aa551"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"default": false,
|
||||
"docs": [
|
||||
" Returns the current value of the Flipper's boolean."
|
||||
],
|
||||
"label": "get",
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"ink",
|
||||
"MessageResult"
|
||||
],
|
||||
"type": 5
|
||||
},
|
||||
"selector": "0x2f865bd9"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"root": {
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"leaf": {
|
||||
"key": "0x00000000",
|
||||
"ty": 0
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
],
|
||||
"name": "Flipper"
|
||||
}
|
||||
},
|
||||
"root_key": "0x00000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"id": 0,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "value",
|
||||
"type": 0,
|
||||
"typeName": "<bool as::ink::storage::traits::AutoStorableHint<::ink::storage\n::traits::ManualKey<2054318728u32, ()>,>>::Type"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"flipper",
|
||||
"flipper",
|
||||
"Flipper"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"index": 0,
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 4
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "E",
|
||||
"type": 4
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": {
|
||||
"def": {
|
||||
"tuple": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"index": 1,
|
||||
"name": "CouldNotReadInput"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"LangError"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 0
|
||||
}
|
||||
],
|
||||
"index": 0,
|
||||
"name": "Ok"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 4
|
||||
}
|
||||
],
|
||||
"index": 1,
|
||||
"name": "Err"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"name": "T",
|
||||
"type": 0
|
||||
},
|
||||
{
|
||||
"name": "E",
|
||||
"type": 4
|
||||
}
|
||||
],
|
||||
"path": [
|
||||
"Result"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 7,
|
||||
"typeName": "[u8; 32]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"types",
|
||||
"AccountId"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": {
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 8
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u128"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 7,
|
||||
"typeName": "[u8; 32]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_primitives",
|
||||
"types",
|
||||
"Hash"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u64"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u32"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"type": {
|
||||
"def": {
|
||||
"variant": {}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"NoChainExtension"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"version": 5
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
|
||||
export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
|
||||
export { default as erc20AnonymousTransferMetadata } from './erc20_anonymous_transfer.json' assert { type: 'json' };
|
||||
export { default as flipperContract } from './flipper.contract.json' assert { type: 'json' };
|
||||
export { default as flipperMetadata } from './flipper.json' assert { type: 'json' };
|
||||
@@ -0,0 +1 @@
|
||||
{"source":{"hash":"0x15fa048bd28a4649ced787f88707e271f48ff04a966f525b28877c08c60ea014","language":"ink! 6.0.0-alpha","compiler":"rustc 1.86.0","contract_binary":"0x50564d0000e52400000000000001078098d01440a000028098c8000000f2000000e8000000ec000000ca000000f6000000b721a0ec63616c6ce7dc2326011ecb48b1e08876a3b5a17f9ce1350cbc5e4f264b3162dbc757be9de4b15f1e8301e4c2a1aef088c9f187a0e3f8016deaf4bdeb7954fb410c32bf8a6a033ecc3b5b00000d0000000100000002000000030000000400000005000000060000000700000008000000090000000a0000000b00000004808308000000000e00000014000000210000002c0000003b000000460000005100000063616c6c5f646174615f636f707963616c6c65726465706f7369745f6576656e746765745f73746f72616765686173685f626c616b65325f3235367365616c5f72657475726e7365745f73746f7261676576616c75655f7472616e736665727265640511028da40463616c6c975d066465706c6f7906a397809b029e8ad000f50006014e0173018401cb01e20119021e0232024b02800285029802b10221032d0365038b0319042c0464049304d60403050d053b05810592059c05ac05b605e805f205220653065e066906bd066007690777072f085c081b093909620987099809e909fd09160a2e0a880adc0afc0a470b650b9a0bf60b160c4c0c980ca30cb90cc60cd20c470d590d6d0d8d0dbb0dde0d710e890e9b0eaa0ebb0ecc0ef70e0f0f210f300f410f520f840fa611f9110a121c122b123c124c12661276129012b812e61248136f138713f6130714181429144e145a14681493149f14d1140c151a1528153515611564157415d015dc150a1611162916bd16cb16e116fb160b1755177317b717d117e117ef17cc18e418ee18121949196b198d19a819121a221a2c1af31a1c1b3d1b561bd31bec1b8b1cb31c9f1d9511e87b10107b15087b16531910688d7a84a207c8270b648c6475aeb7107cca785a95550195cc01acb5f6c82804c929028423f8844807c83b0a51085c9748038480388446f882658d88848c38956808aeab1b8286d00505cfc609d459097bb995bb089588086465acabebc834088429072805647a01c8a909ae9a107c8b78ab95aa01958801ac9af6821010821508821695111832006448aeabd382897bb995bb08958808acabf628c39511c87b10307b15287b16207b1833081400137b180849111000404911189518085010025504821518821710ac5740821608c85608c957077b18087b171049111895180882175010047e1a821718821810ac781b821a08501206441d0a068210308215288216209511383200009511b07b10487b15407b16387b1933091800017b19087b17107b181833071400137b17204911280040491130951708951820501008a103821530821728ac5740821620c85608c957077b18207b1728491130951820821750100a001a821730821828ac781b821a2050120cc61c0a068210488215408216389511503200009511a07b10587b15507b16486478827708828610ac6755aa67528285c967077b1708c8650546059517103309017b18645850100e06017b15308217087b17384911409517109518305010103207821740c86707ac671682187b87108210588215508216489511603200009511a07b10587b15507b1648827908827610ac6954501212431c5010140b19821920821718ac97418218109517105010169f0082177b17308217087b1738491140951710951830501018c906821740c86707ac67147b57108210588215508216489511603200009511a07b10587b15507b1648827908827610ac695350121adc1b50101ca418821920821718ac974082181095171050101e3882177b17308217087b17384911409517109518305010206306821740c86707ac67147b57108210588215508216489511603200009511b07b10487b15406475491118491110491108490153192138491138491130491128491120979920989a20951920648764a80a04821720821828821930821a387b177b18087b19107b1a1828096417501022e4fc64183309206457501024d8fc82104882154095115032009511f07b10087b15828a086475330920330701ac9a1d828995aae09597207b877b8a0895570864985010265c193307017b57821008821595111032009511a07b10587b15507b164864866475951720501028b1821720510708330701283c8217407b1718821738821830821928826a087b17107b18087b19330701520a1d3307821818821910821a08821b7b58207b59187b5a107b5b08017b578210588215508216489511603200951170ff7b1088007b1580007b1678828908330a146476aca9a20082879599ec957a147b8a7b89087c79117c7a107c7b127c7c1350122a621a7a19487c79017c7a7c7b027c7c0350122c4f1a7c7a057c7b047c7c067c750797aa08d4ba0a97cc10975518d45c0cd4ca0a97aa20d4a9097b19387c79097c7a087c7b0a7c7c0b50122e171a7c7a0d7c7b0c7c7c0e7c770f97aa08d4ba0a97cc10977718d4c707d4a707977720d497077b1740951750501030aafe82175051070a3307017b67283b8217708218688219607b17307b18287b1920821758821838821940811a487b17187b187b19087a1a1095670864183309385010322ffb49060182108800821580008216789511900032009511e87b10107b15087b16647582776486330034817728041682570864685010361c16825710646882101082150882169511182807169511e87b10107b15087b16648564763300383307e7dc232628cc1564676458821010821508821695111828da15951170ff7b1088007b1580007b1678647595763533071400137b17604911680040491170330925000195174895186050103a2d047c572051071095582195174850103cd9fc280a95174850103efefb7c67510710955836951748501040bffc280a951748501042e4fb7b16308217508216587b1728ac67d7008218487b18387b15209557207b1718c868077b170898650595176064585010445a0295176064585010468c028215708218687b16108467e09a767b15409755057b18c88505018218385106249587207b17383309206457501048e3f98217409577017b174095662095552028db821728821810c987078218087b18607b176849117095186082171850104a8f0495186082173050104c840495186082172050104e0a15821770821868ac782a821960821840978820988820977720987a2082170a028210880082158000821678951190003200009511c87b10307b15287b1620330514001333071400130a076417641664585010500416330705019577ff51071082689566085108f53307042806330705018210308215288216209511383200958a209Line truncated
|
||||
File diff suppressed because it is too large.
Load diff
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
|
||||
export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
|
||||
@@ -0,0 +1,7 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { createVersionedExport } from '../util.js';
|
||||
import * as v0 from './v0/index.js';
|
||||
|
||||
export default createVersionedExport({ v0 });
|
||||
@@ -0,0 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as ints256 } from './ints256.json' assert { type: 'json' };
|
||||
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"contract": {
|
||||
"authors": [
|
||||
"Sean Young <sean@mess.org>"
|
||||
],
|
||||
"description": "Test 256 bits types",
|
||||
"name": "ints256",
|
||||
"version": "0.0.1"
|
||||
},
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"compiler": "solang 0.1.4",
|
||||
"hash": "0xa85fb5c61a09d71dce84c15a8bd87e6f4eafac498a1aec3869e8cf7ea4389697",
|
||||
"language": "Solidity 0.1.4"
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"name": "new",
|
||||
"selector": "0x861731d5"
|
||||
}
|
||||
],
|
||||
"events": [],
|
||||
"messages": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "a",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"u256"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "b",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"u256"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
"Multiply two 256 bit values\n\n"
|
||||
],
|
||||
"mutates": false,
|
||||
"name": "multiply",
|
||||
"payable": false,
|
||||
"return_type": {
|
||||
"display_name": [
|
||||
"u256"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x165c4a16"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "a",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"u256"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "b",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"u256"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
"Add two 256 bit values\n\n"
|
||||
],
|
||||
"mutates": false,
|
||||
"name": "add",
|
||||
"payable": false,
|
||||
"return_type": {
|
||||
"display_name": [
|
||||
"u256"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x771602f7"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": []
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u256"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/// @title Test 256 bits types
|
||||
/// @author Sean Young <sean@mess.org>
|
||||
contract ints256 {
|
||||
/// Multiply two 256 bit values
|
||||
function multiply(uint256 a, uint256 b) public pure returns (uint256) {
|
||||
return a * b;
|
||||
}
|
||||
|
||||
/// Add two 256 bit values
|
||||
function add(uint256 a, uint256 b) public pure returns (uint256) {
|
||||
return a + b;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { createVersionedExport } from '../util.js';
|
||||
import * as v0 from './v0/index.js';
|
||||
import * as v3 from './v3/index.js';
|
||||
import * as v4 from './v4/index.js';
|
||||
|
||||
export default createVersionedExport({ v0, v3, v4 });
|
||||
@@ -0,0 +1,299 @@
|
||||
{
|
||||
"contract": {
|
||||
"authors": [
|
||||
"unknown"
|
||||
],
|
||||
"name": "AssetTransfer",
|
||||
"version": "0.0.1"
|
||||
},
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"compiler": "solang 0.1.4",
|
||||
"hash": "0x7d163f445bec3d33e90d0f60bda40acd42f2760dbc1b731616af70a6001e05c7",
|
||||
"language": "Solidity 0.1.4"
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"name": "new",
|
||||
"selector": "0x861731d5"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"indexed": false,
|
||||
"name": "_newUser",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"name": "successfulRegistration"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"indexed": false,
|
||||
"name": "sender",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"name": "_hexAsset",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"String"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"name": "addedAsset"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"indexed": false,
|
||||
"name": "sender",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"name": "receiver",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"name": "hexOfAsset",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"String"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"name": "assetSent"
|
||||
}
|
||||
],
|
||||
"messages": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "_user",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"mutates": false,
|
||||
"name": "viewBalance",
|
||||
"payable": false,
|
||||
"return_type": {
|
||||
"display_name": [
|
||||
"u256"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0xc1a13d1a"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "_assetHex",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"String"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"mutates": false,
|
||||
"name": "findOwner",
|
||||
"payable": false,
|
||||
"return_type": {
|
||||
"display_name": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 4
|
||||
},
|
||||
"selector": "0x63560a8e"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "_hexAsset",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"String"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"mutates": true,
|
||||
"name": "addAsset",
|
||||
"payable": false,
|
||||
"return_type": null,
|
||||
"selector": "0xa7c6b52e"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"mutates": true,
|
||||
"name": "receiveAsset",
|
||||
"payable": false,
|
||||
"return_type": {
|
||||
"display_name": [
|
||||
"String"
|
||||
],
|
||||
"type": 5
|
||||
},
|
||||
"selector": "0xb2f3b5bc"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "_assetHex",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"String"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "_receiver",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"mutates": true,
|
||||
"name": "sendAsset",
|
||||
"payable": false,
|
||||
"return_type": null,
|
||||
"selector": "0xd6e5288f"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "_newUser",
|
||||
"type": {
|
||||
"display_name": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
],
|
||||
"mutates": true,
|
||||
"name": "register",
|
||||
"payable": false,
|
||||
"return_type": null,
|
||||
"selector": "0x4420e486"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": []
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u256"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "str"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,528 @@
|
||||
{
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"hash": "0x1a37c380fe02fe3b670480dff1393b0401788955315d092e39fcc06047f1413c",
|
||||
"language": "ink! 3.0.0-rc2",
|
||||
"compiler": "rustc 1.49.0-nightly"
|
||||
},
|
||||
"contract": {
|
||||
"name": "enum_example",
|
||||
"version": "0.1.0",
|
||||
"authors": [
|
||||
"[your_name] <[your_email]>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [],
|
||||
"name": [
|
||||
"new"
|
||||
],
|
||||
"selector": "0xd183512b"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [],
|
||||
"messages": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "variant",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Variant"
|
||||
],
|
||||
"type": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"set_variant"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": null,
|
||||
"selector": "0x4fa6b9cf"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"get_variant"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Variant"
|
||||
],
|
||||
"type": 4
|
||||
},
|
||||
"selector": "0x1d5962d1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"enum": {
|
||||
"dispatchKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"variants": {
|
||||
"0": {
|
||||
"fields": []
|
||||
},
|
||||
"1": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"enum": {
|
||||
"dispatchKey": "0x0100000000000000000000000000000000000000000000000000000000000000",
|
||||
"variants": {
|
||||
"0": {
|
||||
"fields": []
|
||||
},
|
||||
"1": {
|
||||
"fields": []
|
||||
},
|
||||
"2": {
|
||||
"fields": []
|
||||
},
|
||||
"3": {
|
||||
"fields": []
|
||||
},
|
||||
"4": {
|
||||
"fields": []
|
||||
},
|
||||
"5": {
|
||||
"fields": []
|
||||
},
|
||||
"6": {
|
||||
"fields": []
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"enum": {
|
||||
"dispatchKey": "0x0100000000000000000000000000000000000000000000000000000000000000",
|
||||
"variants": {
|
||||
"0": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"1": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 2
|
||||
}
|
||||
},
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"enum": {
|
||||
"dispatchKey": "0x0100000000000000000000000000000000000000000000000000000000000000",
|
||||
"variants": {
|
||||
"0": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
]
|
||||
},
|
||||
"1": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 2
|
||||
}
|
||||
},
|
||||
"name": "value"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"4": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"enum": {
|
||||
"dispatchKey": "0x0100000000000000000000000000000000000000000000000000000000000000",
|
||||
"variants": {
|
||||
"0": {
|
||||
"fields": []
|
||||
},
|
||||
"1": {
|
||||
"fields": []
|
||||
},
|
||||
"2": {
|
||||
"fields": []
|
||||
},
|
||||
"3": {
|
||||
"fields": []
|
||||
},
|
||||
"4": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "r"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0300000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "g"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0400000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"5": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "r"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0300000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "g"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0400000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "b"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0500000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "last"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"primitive": "i32"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u32"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"name": "None"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 5
|
||||
}
|
||||
],
|
||||
"name": "Weekday"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 6
|
||||
}
|
||||
],
|
||||
"name": "TupleMaybeSigned"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 7
|
||||
}
|
||||
],
|
||||
"name": "NamedMaybeSigned"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 8
|
||||
}
|
||||
],
|
||||
"name": "Color"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"enum_example",
|
||||
"enum_example",
|
||||
"Variant"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"discriminant": 0,
|
||||
"name": "Monday"
|
||||
},
|
||||
{
|
||||
"discriminant": 1,
|
||||
"name": "Tuesday"
|
||||
},
|
||||
{
|
||||
"discriminant": 2,
|
||||
"name": "Wednesday"
|
||||
},
|
||||
{
|
||||
"discriminant": 3,
|
||||
"name": "Thursday"
|
||||
},
|
||||
{
|
||||
"discriminant": 4,
|
||||
"name": "Friday"
|
||||
},
|
||||
{
|
||||
"discriminant": 5,
|
||||
"name": "Saturday"
|
||||
},
|
||||
{
|
||||
"discriminant": 6,
|
||||
"name": "Sunday"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"enum_example",
|
||||
"enum_example",
|
||||
"Weekday"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 1
|
||||
}
|
||||
],
|
||||
"name": "Signed"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 2
|
||||
}
|
||||
],
|
||||
"name": "Unsigned"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"enum_example",
|
||||
"enum_example",
|
||||
"TupleMaybeSigned"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"name": "value",
|
||||
"type": 1
|
||||
}
|
||||
],
|
||||
"name": "Signed"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"name": "value",
|
||||
"type": 2
|
||||
}
|
||||
],
|
||||
"name": "Unsigned"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"enum_example",
|
||||
"enum_example",
|
||||
"NamedMaybeSigned"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"name": "Red"
|
||||
},
|
||||
{
|
||||
"name": "Blue"
|
||||
},
|
||||
{
|
||||
"name": "Green"
|
||||
},
|
||||
{
|
||||
"name": "Yellow"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"name": "r",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "g",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "b",
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"name": "Rgb"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"name": "r",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "g",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "b",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "a",
|
||||
"type": 3
|
||||
}
|
||||
],
|
||||
"name": "Rgba"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"enum_example",
|
||||
"enum_example",
|
||||
"Color"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as assetTransfer } from './assetTransfer.json' assert { type: 'json' };
|
||||
export { default as enumExample } from './enumExample.json' assert { type: 'json' };
|
||||
export { default as recursive } from './recursive.contract.json' assert { type: 'json' };
|
||||
export { default as withString } from './withString.json' assert { type: 'json' };
|
||||
@@ -0,0 +1 @@
|
||||
{"metadataVersion":"0.1.0","source":{"hash":"0xdb5366415b71e5d52af252f2be5f955f1272b7f1ec0ce3493b7a9404b3b9119c","language":"ink! 3.0.0-rc5","compiler":"rustc 1.57.0-nightly","wasm":"0x0061736d0100000001620f60037f7f7f017f60027f7f017f60027f7f0060037f7f7f0060017f017f60057f7f7f7f7f0060047f7f7f7f0060000060017f017e60017f0060047f7f7f7f017f60067f7f7f7f7f7f006000017f60057f7f7f7f7f017f60077f7f7f7f7f7f7f017f02a30107057365616c30107365616c5f6765745f73746f726167650000057365616c30107365616c5f7365745f73746f726167650003057365616c30167365616c5f76616c75655f7472616e736665727265640002057365616c30127365616c5f64656275675f6d6573736167650001057365616c300a7365616c5f696e7075740002057365616c300b7365616c5f72657475726e000303656e76066d656d6f727902010210034e4d020204030205020309030c0802020407040700090100000301020107020103010206080d010a060a030b0302040601010303000101000505050501010e01010001010401010101040101010600040501700121210608017f01418080040b071102066465706c6f7900150463616c6c00170926010041010b203534254e233941494a250e4f0e500e1c1e200e4b0e280e3b43440e4546470e4c0a9c744db50301027f230041d0006b22022400200241286a200141186a290300370300200241206a200141106a290300370300200241186a200141086a2903003703002002420137033020022001290300370310200241808001360244200241fabf04360240200241808001360248200241106a41fabf04200241c8006a10002101200241406b2002280248100702400240200110082201410b47044020014103460d0141d48304411c41f083041009000b20022002290340370348200241086a200241c8006a100a2002280208450d01200241003a0048418080044127200241c8006a41c0810441888104100b000b230041306b220024002000411736020c200041988104360208200041246a410136020020004201370214200041e88e043602102000410236022c2000200041286a3602202000200041086a360228200041106a41b081041026000b2002200228020c220336023c2002413c6a21010340200128020022010d000b200020022903103703082000200336022820004201370300200041206a200241286a290300370300200041186a200241206a290300370300200041106a200241186a290300370300200241d0006a24000b2301017f2001200028020422024b04402001200241c0bb041030000b200020013602040b2001017f410a2101200041094d047f200041027441c8bf046a28020005410a0b0b4601017f230041206b22032400200341146a410036020020034188be04360210200342013702042003200136021c200320003602182003200341186a360200200320021026000b850101037f230041106b22022400200241086a20011012410121030240024020022d00084101710d00410021030240024020022d00090e020201000b410121030c010b20022001100a4101210320022802000d002002280204210110102204450d0120042001360200410021030b2000200436020420002003360200200241106a24000f0b000b7c01017f230041406a220524002005200136020c2005200036020820052003360214200520023602102005412c6a41023602002005413c6a41013602002005420237021c2005418cbe04360218200541023602342005200541306a3602282005200541106a3602382005200541086a360230200541186a20041026000ba20101017f230041406a22022400200241206a200141186a290300370300200241186a200141106a290300370300200241106a200141086a2903003703002002420137032820022001290300370308200041286a220021010340200128020022010d000b200241386a41808001360200200241fabf04360234200241003602302002200241306a2000100d200241086a200228020020022802041001200241406b24000ba30102037f017e230041106b22032400200129020421062003410036020820032006370300034020022802000440200341011013200228020021020c010b0b2003410010132001410036020820014188be04360204200328020422052003280208220249044041a8b804412341b8b9041009000b200328020021042001200520026b3602082001200220046a3602042000200236020420002004360200200341106a24000b0300010b3c01017f230041106b22032400200041ff01714108460440200341106a24000f0b200320003a000f200120022003410f6a41d08104419c8604100b000b6e01037f024041f0bf04280200220041046a22012000490d0041f0bf0441f4bf04280200200149047f410140002200417f46200041ffff0371200047720d0120004110742200418080046a22012000490d0141f4bf04200136020020004104720520010b360200200021020b20020b9c0102027f017e230041106b220124002001420037030841042102027f02400340200241084604402001410436020820012903082203a741044f0d0241e08104411b41dc82041009000b20012000101220012d0000410171450440200141086a20026a20012d00013a0000200241016a21020c010b0b4101210241000c010b410021022003422088a70b2100200141106a24002002ad2000ad420886840b3f01027f230041106b22022400200241003a000f200020012002410f6a410110182201047f41000520022d000f0b3a0001200020013a0000200241106a24000b3901027f20002802082202200028020422034904402000200241016a360208200028020020026a20013a00000f0b2002200341c8ba04102e000b2601017f2000280200220145044041000f0b10102200044020002001101436020020000f0b000b12004100101641ff017141a485044122100f0b8d0502057f017e230041e0006b220124000240027f2000450440200141808001360244200141fabf04360240200141406b1019200120012903403703104106200141106a10114281feffffff1f834280b6baede90b520d011a2001410036023820014200370310200141d8006a4200370300200141d0006a4200370300200141c8006a420037030020014200370340200141106a200141406b100c41080c010b200141808001360244200141fabf04360240200141406b101920012001290340370310410121000240200141106a10112206a722044101710d00200642ffffffffff1f832206422088a721052006421888a721032006421088a72102200441087641ff01712204412f470440200441e80147200241ff017141c4014772200341ff0171Line truncated
|
||||
@@ -0,0 +1,777 @@
|
||||
{
|
||||
"metadataVersion": "0.1.0",
|
||||
"source": {
|
||||
"hash": "0xafcd0acf1a747cca1febe5bad81a6c0244a381ceb02635ab1069a1a396adda3f",
|
||||
"language": "ink! 3.0.0-rc1",
|
||||
"compiler": "rustc 1.49.0-nightly"
|
||||
},
|
||||
"contract": {
|
||||
"name": "erc20",
|
||||
"version": "0.1.0",
|
||||
"authors": [
|
||||
"[your_name] <[your_email]>"
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "initial_supply",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "_name",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"String"
|
||||
],
|
||||
"type": 12
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "_symbol",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"String"
|
||||
],
|
||||
"type": 12
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"name": [
|
||||
"new"
|
||||
],
|
||||
"selector": "0xd183512b"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"events": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 14
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Option"
|
||||
],
|
||||
"type": 14
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"name": "Transfer"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"docs": [],
|
||||
"indexed": true,
|
||||
"name": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"name": "Approval"
|
||||
}
|
||||
],
|
||||
"messages": [
|
||||
{
|
||||
"args": [],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"total_supply"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0xdcb736b5"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"name"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"String"
|
||||
],
|
||||
"type": 12
|
||||
},
|
||||
"selector": "0xa0a95494"
|
||||
},
|
||||
{
|
||||
"args": [],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"symbol"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"String"
|
||||
],
|
||||
"type": 12
|
||||
},
|
||||
"selector": "0x57178a4a"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"balance_of"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0x56e929b2"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "owner",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": false,
|
||||
"name": [
|
||||
"allowance"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
},
|
||||
"selector": "0xf3cfff66"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"transfer"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 13
|
||||
},
|
||||
"selector": "0xfae3a09d"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "spender",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"approve"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 13
|
||||
},
|
||||
"selector": "0x03d0e114"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"name": "from",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "to",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
],
|
||||
"type": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"type": {
|
||||
"displayName": [
|
||||
"Balance"
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"mutates": true,
|
||||
"name": [
|
||||
"transfer_from"
|
||||
],
|
||||
"payable": false,
|
||||
"returnType": {
|
||||
"displayName": [
|
||||
"bool"
|
||||
],
|
||||
"type": 13
|
||||
},
|
||||
"selector": "0xfcfb2ccd"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 1
|
||||
}
|
||||
},
|
||||
"name": "total_supply"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0100000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 2
|
||||
}
|
||||
},
|
||||
"name": "header"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000000000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "len"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"array": {
|
||||
"cellsPerElem": 1,
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0200000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 4
|
||||
}
|
||||
},
|
||||
"len": 4294967295,
|
||||
"offset": "0x0300000000000000000000000000000000000000000000000000000000000000"
|
||||
}
|
||||
},
|
||||
"name": "elems"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "entries"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "keys"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"hash": {
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0300000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 9
|
||||
}
|
||||
},
|
||||
"offset": "0x0200000001000000000000000000000000000000000000000000000000000000",
|
||||
"strategy": {
|
||||
"hasher": "Blake2x256",
|
||||
"postfix": "",
|
||||
"prefix": "0x696e6b20686173686d6170"
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "values"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "balances"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0300000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 2
|
||||
}
|
||||
},
|
||||
"name": "header"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"struct": {
|
||||
"fields": [
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0400000001000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 3
|
||||
}
|
||||
},
|
||||
"name": "len"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"array": {
|
||||
"cellsPerElem": 1,
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0400000002000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 10
|
||||
}
|
||||
},
|
||||
"len": 4294967295,
|
||||
"offset": "0x0500000001000000000000000000000000000000000000000000000000000000"
|
||||
}
|
||||
},
|
||||
"name": "elems"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "entries"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "keys"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"hash": {
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0500000002000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 9
|
||||
}
|
||||
},
|
||||
"offset": "0x0400000002000000000000000000000000000000000000000000000000000000",
|
||||
"strategy": {
|
||||
"hasher": "Blake2x256",
|
||||
"postfix": "",
|
||||
"prefix": "0x696e6b20686173686d6170"
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "values"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "allowances"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0500000002000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 12
|
||||
}
|
||||
},
|
||||
"name": "name"
|
||||
},
|
||||
{
|
||||
"layout": {
|
||||
"cell": {
|
||||
"key": "0x0600000002000000000000000000000000000000000000000000000000000000",
|
||||
"ty": 12
|
||||
}
|
||||
},
|
||||
"name": "symbol"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u128"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "last_vacant",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "len",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "len_entries",
|
||||
"type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"Header"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u32"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 8
|
||||
}
|
||||
],
|
||||
"name": "Vacant"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 5
|
||||
}
|
||||
],
|
||||
"name": "Occupied"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
5
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"Entry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"type": 6
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_env",
|
||||
"types",
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 7
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "next",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"name": "prev",
|
||||
"type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"VacantEntry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "value",
|
||||
"type": 1
|
||||
},
|
||||
{
|
||||
"name": "key_index",
|
||||
"type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
1
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"hashmap",
|
||||
"ValueEntry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 8
|
||||
}
|
||||
],
|
||||
"name": "Vacant"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 11
|
||||
}
|
||||
],
|
||||
"name": "Occupied"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
11
|
||||
],
|
||||
"path": [
|
||||
"ink_storage",
|
||||
"collections",
|
||||
"stash",
|
||||
"Entry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"tuple": [
|
||||
5,
|
||||
5
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "str"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
},
|
||||
{
|
||||
"def": {
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"name": "None"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": 5
|
||||
}
|
||||
],
|
||||
"name": "Some"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"params": [
|
||||
5
|
||||
],
|
||||
"path": [
|
||||
"Option"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,550 @@
|
||||
{
|
||||
"source": {
|
||||
"hash": "",
|
||||
"language": "Ask! 0.4.0",
|
||||
"compiler": "asc 0.19.23"
|
||||
},
|
||||
"contract": {
|
||||
"name": "",
|
||||
"version": "",
|
||||
"authors": []
|
||||
},
|
||||
"V3": {
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 1,
|
||||
"displayName": [
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"label": "name"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 1,
|
||||
"displayName": [
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"label": "symbol"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"label": "default",
|
||||
"payable": false,
|
||||
"selector": "0xed4b9d1b"
|
||||
}
|
||||
],
|
||||
"messages": [
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "to"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "amount"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"label": "mint",
|
||||
"selector": "0xcfdd9aa2"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "from"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "amount"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"label": "burn",
|
||||
"selector": "0xb1efc17b"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [],
|
||||
"returnType": {
|
||||
"type": 1,
|
||||
"displayName": [
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "name",
|
||||
"selector": "0x3adaf70d"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [],
|
||||
"returnType": {
|
||||
"type": 1,
|
||||
"displayName": [
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "symbol",
|
||||
"selector": "0x9bd1933e"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [],
|
||||
"returnType": {
|
||||
"type": 0,
|
||||
"displayName": [
|
||||
"u8"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "decimal",
|
||||
"selector": "0xcc3fec6d"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [],
|
||||
"returnType": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "totalSupply",
|
||||
"selector": "0xcae60595"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "account"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "balanceOf",
|
||||
"selector": "0xf48def67"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "recipient"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "amount"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 5,
|
||||
"displayName": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "transfer",
|
||||
"selector": "0x84a15da1"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "owner"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "spender"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "allowance",
|
||||
"selector": "0x6a00165e"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "spender"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "amount"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 5,
|
||||
"displayName": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "approve",
|
||||
"selector": "0x681266a0"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "sender"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "recipient"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "amount"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 5,
|
||||
"displayName": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "transferFrom",
|
||||
"selector": "0x02a6e0d5"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "spender"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "addedValue"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 5,
|
||||
"displayName": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "increaseAllowance",
|
||||
"selector": "0xcb005356"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "spender"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "subtractedValue"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 5,
|
||||
"displayName": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "decreaseAllowance",
|
||||
"selector": "0xe19fabb4"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"id": 1,
|
||||
"label": "Transfer",
|
||||
"args": [
|
||||
{
|
||||
"label": "from",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "to",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"label": "Approval",
|
||||
"args": [
|
||||
{
|
||||
"label": "owner",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "spender",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"id": 0,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "str"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": {
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "inner",
|
||||
"type": 2,
|
||||
"typeName": "FixedArray32<u8>"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u128"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as ask } from './ask.json' assert { type: 'json' };
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as events } from './events.contract.json' assert { type: 'json' };
|
||||
@@ -0,0 +1,14 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export function createVersionedExport (versioned: Record<string, Record<string, unknown>>): Record<string, Record<string, unknown>> {
|
||||
const result: Record<string, Record<string, unknown>> = {};
|
||||
|
||||
Object.entries(versioned).forEach(([version, contracts]) =>
|
||||
Object.entries(contracts).forEach(([name, contract]): void => {
|
||||
result[`${version}_${name}`] = contract as Record<string, unknown>;
|
||||
})
|
||||
);
|
||||
|
||||
return result;
|
||||
}
|
||||
Reference in new issue
Block a user