difftreelog
refactor `proxyContract` & bench codes
in: master
10 files changed
bin/tests/src/eth/evmToSubstrate/EvmToSubstrate.abidiffbeforeafterboth--- a/bin/tests/src/eth/evmToSubstrate/EvmToSubstrate.abi
+++ /dev/null
@@ -1 +0,0 @@
-[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_toEth","type":"address"},{"indexed":false,"internalType":"uint256","name":"_toSub","type":"uint256"},{"indexed":false,"internalType":"address","name":"_collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MintToSub","type":"event"},{"inputs":[{"internalType":"address","name":"_collection","type":"address"},{"internalType":"uint256","name":"_substrateReceiver","type":"uint256"}],"name":"mintToSubstrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collection","type":"address"},{"internalType":"uint256","name":"_substrateReceiver","type":"uint256"},{"components":[{"internalType":"string","name":"field_0","type":"string"},{"internalType":"bytes","name":"field_1","type":"bytes"}],"internalType":"struct Tuple21[]","name":"_properties","type":"tuple[]"}],"name":"mintToSubstrateBulkProperty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collection","type":"address"},{"internalType":"uint256","name":"_substrateReceiver","type":"uint256"},{"components":[{"internalType":"string","name":"key","type":"string"},{"internalType":"bytes","name":"value","type":"bytes"}],"internalType":"struct Property[]","name":"properties","type":"tuple[]"}],"name":"mintToSubstrateWithProperty","outputs":[],"stateMutability":"nonpayable","type":"function"}]
\ No newline at end of file
bin/tests/src/eth/evmToSubstrate/EvmToSubstrate.bindiffbeforeafterboth--- a/bin/tests/src/eth/evmToSubstrate/EvmToSubstrate.bin
+++ /dev/null
@@ -1 +0,0 @@
-608060405234801561001057600080fd5b506111d4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80633a0dbb1a14610046578063440dff9d1461005b5780637a8d97861461006e575b600080fd5b610059610054366004610d6f565b610081565b005b610059610069366004610d6f565b610472565b61005961007c366004610dc9565b6109fb565b604051639811b0c760e01b8152336004820152849081906001600160a01b03821690639811b0c790602401602060405180830381865afa1580156100c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100ed9190610df3565b6101125760405162461bcd60e51b815260040161010990610e1c565b60405180910390fd5b82806101555760405162461bcd60e51b815260206004820152601260248201527150726f70657269657320697320656d70747960701b6044820152606401610109565b60008790506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa15801561019a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101c29190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b2958201156104165760408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b4576040516335313c2160e11b81523060048201528a906001600160a01b03821690636a627842906024016020604051808303816000875af11580156102a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c69190610f4c565b604051630a769d3760e11b81529092506001600160a01b038216906314ed3a6e906102f99085908d908d90600401610fd4565b600060405180830381600087803b15801561031357600080fd5b505af1158015610327573d6000803e3d6000fd5b5050604080518082018252308152600060208083018290528351808501855291825281018f9052915163d5cf430b60e01b81526001600160a01b038616945063d5cf430b935061037c92908790600401611088565b600060405180830381600087803b15801561039657600080fd5b505af11580156103aa573d6000803e3d6000fd5b5050505050610416565b60405162461bcd60e51b815260206004820152603160248201527f57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c6044820152701e481dda5d1a08139195081bdc88149195607a1b6064820152608401610109565b6040805160008152602081018b90526001600160a01b038c16818301526060810183905290517ffb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb75359181900360800190a150505050505050505050565b604051639811b0c760e01b8152336004820152849081906001600160a01b03821690639811b0c790602401602060405180830381865afa1580156104ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104de9190610df3565b6104fa5760405162461bcd60e51b815260040161010990610e1c565b828061053d5760405162461bcd60e51b815260206004820152601260248201527150726f70657269657320697320656d70747960701b6044820152606401610109565b60008790506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610582573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105aa9190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b29582016108065760008a9050806001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106669190610f4c565b6040516335313c2160e11b81523060048201529092506001600160a01b03821690636a627842906024016020604051808303816000875af11580156106af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d39190610f4c565b5060005b858110156107b257816001600160a01b0316631752d67b848c8c85818110610701576107016110c1565b905060200281019061071391906110d7565b61071d90806110f7565b8e8e8781811061072f5761072f6110c1565b905060200281019061074191906110d7565b61074f9060208101906110f7565b6040518663ffffffff1660e01b815260040161076f95949392919061113e565b600060405180830381600087803b15801561078957600080fd5b505af115801561079d573d6000803e3d6000fd5b50505050806107ab90611177565b90506106d7565b50604080518082018252308152600060208083018290528351808501855291825281018d9052915163d5cf430b60e01b81526001600160a01b0384169263d5cf430b9261037c929091908790600401611088565b60408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b45760008a9050806001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561088b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108af9190610f4c565b6040516335313c2160e11b81523060048201529092506001600160a01b03821690636a627842906024016020604051808303816000875af11580156108f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091c9190610f4c565b5060005b858110156107b257816001600160a01b0316631752d67b848c8c8581811061094a5761094a6110c1565b905060200281019061095c91906110d7565b61096690806110f7565b8e8e87818110610978576109786110c1565b905060200281019061098a91906110d7565b6109989060208101906110f7565b6040518663ffffffff1660e01b81526004016109b895949392919061113e565b600060405180830381600087803b1580156109d257600080fd5b505af11580156109e6573d6000803e3d6000fd5b50505050806109f490611177565b9050610920565b604051639811b0c760e01b8152336004820152829081906001600160a01b03821690639811b0c790602401602060405180830381865afa158015610a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a679190610df3565b610a835760405162461bcd60e51b815260040161010990610e1c565b60008490506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ac8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610af09190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b2958201610c3e576040516335313c2160e11b815230600482015287906001600160a01b03821690636a627842906024015b6020604051808303816000875af1158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb29190610f4c565b604080518082018252308152600060208083018290528351808501855291825281018b9052915163d5cf430b60e01b81529294506001600160a01b0384169263d5cf430b92610c0692918790600401611088565b600060405180830381600087803b158015610c2057600080fd5b505af1158015610c34573d6000803e3d6000fd5b5050505050610cae565b60408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b4576040516335313c2160e11b815230600482015287906001600160a01b03821690636a62784290602401610b6f565b6040805160008152602081018890526001600160a01b038916818301526060810183905290517ffb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb75359181900360800190a150505050505050565b80356001600160a01b0381168114610d1e57600080fd5b919050565b60008083601f840112610d3557600080fd5b50813567ffffffffffffffff811115610d4d57600080fd5b6020830191508360208260051b8501011115610d6857600080fd5b9250929050565b60008060008060608587031215610d8557600080fd5b610d8e85610d07565b935060208501359250604085013567ffffffffffffffff811115610db157600080fd5b610dbd87828801610d23565b95989497509550505050565b60008060408385031215610ddc57600080fd5b610de583610d07565b946020939093013593505050565b600060208284031215610e0557600080fd5b81518015158114610e1557600080fd5b9392505050565b60208082526030908201527f4f6e6c7920636f6c6c656374696f6e2061646d696e2f6f776e65722063616e2060408201526f18d85b1b081d1a1a5cc81b595d1a1bd960821b606082015260800190565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610e9557600080fd5b825167ffffffffffffffff80821115610ead57600080fd5b818501915085601f830112610ec157600080fd5b815181811115610ed357610ed3610e6c565b604051601f8201601f19908116603f01168101908382118183101715610efb57610efb610e6c565b816040528281528886848701011115610f1357600080fd5b600093505b82841015610f355784840186015181850187015292850192610f18565b600086848301015280965050505050505092915050565b600060208284031215610f5e57600080fd5b5051919050565b6000808335601e19843603018112610f7c57600080fd5b830160208101925035905067ffffffffffffffff811115610f9c57600080fd5b803603821315610d6857600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60006040808301868452602082818601528186835260608601905060608760051b8701019250876000805b8981101561107857888603605f190184528235368c9003603e19018112611024578283fd5b8b016110308180610f65565b8989526110408a8a018284610fab565b91505061104f87830183610f65565b9250888203888a0152611063828483610fab565b98505050938501935091840191600101610fff565b50939a9950505050505050505050565b83516001600160a01b03908116825260209485015185830152835116604082015291909201516060820152608081019190915260a00190565b634e487b7160e01b600052603260045260246000fd5b60008235603e198336030181126110ed57600080fd5b9190910192915050565b6000808335601e1984360301811261110e57600080fd5b83018035915067ffffffffffffffff82111561112957600080fd5b602001915036819003821315610d6857600080fd5b858152606060208201526000611158606083018688610fab565b828103604084015261116b818587610fab565b98975050505050505050565b60006001820161119757634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212206fee43cab49543809f191e238525b8a47306c665c42f86e318153d2b9e9d1de064736f6c63430008110033
\ No newline at end of file
bin/tests/src/eth/evmToSubstrate/EvmToSubstrate.jsondiffbeforeafterboth--- a/bin/tests/src/eth/evmToSubstrate/EvmToSubstrate.json
+++ /dev/null
@@ -1,7415 +0,0 @@
-{
- "contractName": "EvmToSubstrate",
- "abi": [
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "_toEth",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "_toSub",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "address",
- "name": "_collection",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "_tokenId",
- "type": "uint256"
- }
- ],
- "name": "MintToSub",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_collection",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "_substrateReceiver",
- "type": "uint256"
- }
- ],
- "name": "mintToSubstrate",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_collection",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "_substrateReceiver",
- "type": "uint256"
- },
- {
- "components": [
- {
- "internalType": "string",
- "name": "field_0",
- "type": "string"
- },
- {
- "internalType": "bytes",
- "name": "field_1",
- "type": "bytes"
- }
- ],
- "internalType": "struct Tuple21[]",
- "name": "_properties",
- "type": "tuple[]"
- }
- ],
- "name": "mintToSubstrateBulkProperty",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_collection",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "_substrateReceiver",
- "type": "uint256"
- },
- {
- "components": [
- {
- "internalType": "string",
- "name": "key",
- "type": "string"
- },
- {
- "internalType": "bytes",
- "name": "value",
- "type": "bytes"
- }
- ],
- "internalType": "struct Property[]",
- "name": "properties",
- "type": "tuple[]"
- }
- ],
- "name": "mintToSubstrateWithProperty",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_toEth\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_toSub\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_collection\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"MintToSub\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_collection\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_substrateReceiver\",\"type\":\"uint256\"}],\"name\":\"mintToSubstrate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_collection\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_substrateReceiver\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"field_0\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"field_1\",\"type\":\"bytes\"}],\"internalType\":\"struct Tuple21[]\",\"name\":\"_properties\",\"type\":\"tuple[]\"}],\"name\":\"mintToSubstrateBulkProperty\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_collection\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_substrateReceiver\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"struct Property[]\",\"name\":\"properties\",\"type\":\"tuple[]\"}],\"name\":\"mintToSubstrateWithProperty\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"MintToSub(address,uint256,address,uint256)\":{\"details\":\"This emits when a mint to a substrate address has been made.\"}},\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.sol\":\"EvmToSubstrate\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/CollectionHelpers.sol\":{\"keccak256\":\"0x7ded5e99243528ed63a0986417ad670c277ad42d348bf06f407fd06a12cc08a3\",\"license\":\"OTHER\",\"urls\":[\"bzz-raw://43a6299b0510c8feb55800153cee0ea845f7b06a4002bb122d99c6cc938f93c2\",\"dweb:/ipfs/QmPcgPtBkeyMe6LkTYcT6xD5WJhw8nLGaCrbEu2kUHGjgu\"]},\"/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/ContractHelpers.sol\":{\"keccak256\":\"0xbf6cbc8921b46aceef74fcb0218f8af41a5c1c8c09278cd29b055d39af4ba06c\",\"license\":\"OTHER\",\"urls\":[\"bzz-raw://cb309a7e806ab15bf7db1469c70ce547e358783a8be709d48632062600bbdf58\",\"dweb:/ipfs/QmcUViezUamzuLB9Pp5AjwNbSNLdVqnrSbvrRMkHoEb5DY\"]},\"/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/UniqueNFT.sol\":{\"keccak256\":\"0x4ea6c5371aadbfd3e928377a01f5d3c72906286e0fd544a1391d7e362a131164\",\"license\":\"OTHER\",\"urls\":[\"bzz-raw://9a6c96c943b3e49bae15ad680883f197445d25f7207fbc6142d4271e1e4029b6\",\"dweb:/ipfs/QmNb1vMoHALNcrF3pZYCJ3Y9VQjfm9Ee8osrHvyjx5Q5yj\"]},\"/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/UniqueRefungible.sol\":{\"keccak256\":\"0x43f6d5e7e68be2a64b49dd44b1f40758b9aa37cf3bf01225d1ddfc98619ef4d2\",\"license\":\"OTHER\",\"urls\":[\"bzz-raw://45d55a2b15d867662783e015bef922daf59f40734d3bf668ddfa2373731589ac\",\"dweb:/ipfs/QmaF69m8kBKzJ8Av6jmYruhRySMcLtv1myeHjeHuN3gSvG\"]},\"/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/UniqueRefungibleToken.sol\":{\"keccak256\":\"0xb59b9048e1b781ac57c466c9d323422cac264676232514a713ccacdb531d9c40\",\"license\":\"OTHER\",\"urls\":[\"bzz-raw://51ce50ac81d569f7e385b41fa1a4bb77d3358fb83ae420fae65b73dec54feb05\",\"dweb:/ipfs/QmQSpdWmxammhuDwFWn9jTAnALKCgyNUYYGDVQF8QRzB3w\"]},\"/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.sol\":{\"keccak256\":\"0x36f13dcad1a598bad13e4019319da9ca6161782448bd7fc698c1e265140e5460\",\"license\":\"Apache License\",\"urls\":[\"bzz-raw://2e32be5bdb8265a44cbdb50306ea53fb56c52dbbe7b8d742af30f46e48133e13\",\"dweb:/ipfs/QmZfaDgiXDvyERJvYuvGXWT5FeRpPSdH5UuGgDnDxP5RVk\"]}},\"version\":1}",
- "bytecode": "608060405234801561001057600080fd5b506111d4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80633a0dbb1a14610046578063440dff9d1461005b5780637a8d97861461006e575b600080fd5b610059610054366004610d6f565b610081565b005b610059610069366004610d6f565b610472565b61005961007c366004610dc9565b6109fb565b604051639811b0c760e01b8152336004820152849081906001600160a01b03821690639811b0c790602401602060405180830381865afa1580156100c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100ed9190610df3565b6101125760405162461bcd60e51b815260040161010990610e1c565b60405180910390fd5b82806101555760405162461bcd60e51b815260206004820152601260248201527150726f70657269657320697320656d70747960701b6044820152606401610109565b60008790506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa15801561019a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101c29190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b2958201156104165760408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b4576040516335313c2160e11b81523060048201528a906001600160a01b03821690636a627842906024016020604051808303816000875af11580156102a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c69190610f4c565b604051630a769d3760e11b81529092506001600160a01b038216906314ed3a6e906102f99085908d908d90600401610fd4565b600060405180830381600087803b15801561031357600080fd5b505af1158015610327573d6000803e3d6000fd5b5050604080518082018252308152600060208083018290528351808501855291825281018f9052915163d5cf430b60e01b81526001600160a01b038616945063d5cf430b935061037c92908790600401611088565b600060405180830381600087803b15801561039657600080fd5b505af11580156103aa573d6000803e3d6000fd5b5050505050610416565b60405162461bcd60e51b815260206004820152603160248201527f57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c6044820152701e481dda5d1a08139195081bdc88149195607a1b6064820152608401610109565b6040805160008152602081018b90526001600160a01b038c16818301526060810183905290517ffb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb75359181900360800190a150505050505050505050565b604051639811b0c760e01b8152336004820152849081906001600160a01b03821690639811b0c790602401602060405180830381865afa1580156104ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104de9190610df3565b6104fa5760405162461bcd60e51b815260040161010990610e1c565b828061053d5760405162461bcd60e51b815260206004820152601260248201527150726f70657269657320697320656d70747960701b6044820152606401610109565b60008790506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610582573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105aa9190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b29582016108065760008a9050806001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106669190610f4c565b6040516335313c2160e11b81523060048201529092506001600160a01b03821690636a627842906024016020604051808303816000875af11580156106af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d39190610f4c565b5060005b858110156107b257816001600160a01b0316631752d67b848c8c85818110610701576107016110c1565b905060200281019061071391906110d7565b61071d90806110f7565b8e8e8781811061072f5761072f6110c1565b905060200281019061074191906110d7565b61074f9060208101906110f7565b6040518663ffffffff1660e01b815260040161076f95949392919061113e565b600060405180830381600087803b15801561078957600080fd5b505af115801561079d573d6000803e3d6000fd5b50505050806107ab90611177565b90506106d7565b50604080518082018252308152600060208083018290528351808501855291825281018d9052915163d5cf430b60e01b81526001600160a01b0384169263d5cf430b9261037c929091908790600401611088565b60408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b45760008a9050806001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561088b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108af9190610f4c565b6040516335313c2160e11b81523060048201529092506001600160a01b03821690636a627842906024016020604051808303816000875af11580156108f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091c9190610f4c565b5060005b858110156107b257816001600160a01b0316631752d67b848c8c8581811061094a5761094a6110c1565b905060200281019061095c91906110d7565b61096690806110f7565b8e8e87818110610978576109786110c1565b905060200281019061098a91906110d7565b6109989060208101906110f7565b6040518663ffffffff1660e01b81526004016109b895949392919061113e565b600060405180830381600087803b1580156109d257600080fd5b505af11580156109e6573d6000803e3d6000fd5b50505050806109f490611177565b9050610920565b604051639811b0c760e01b8152336004820152829081906001600160a01b03821690639811b0c790602401602060405180830381865afa158015610a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a679190610df3565b610a835760405162461bcd60e51b815260040161010990610e1c565b60008490506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ac8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610af09190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b2958201610c3e576040516335313c2160e11b815230600482015287906001600160a01b03821690636a627842906024015b6020604051808303816000875af1158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb29190610f4c565b604080518082018252308152600060208083018290528351808501855291825281018b9052915163d5cf430b60e01b81529294506001600160a01b0384169263d5cf430b92610c0692918790600401611088565b600060405180830381600087803b158015610c2057600080fd5b505af1158015610c34573d6000803e3d6000fd5b5050505050610cae565b60408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b4576040516335313c2160e11b815230600482015287906001600160a01b03821690636a62784290602401610b6f565b6040805160008152602081018890526001600160a01b038916818301526060810183905290517ffb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb75359181900360800190a150505050505050565b80356001600160a01b0381168114610d1e57600080fd5b919050565b60008083601f840112610d3557600080fd5b50813567ffffffffffffffff811115610d4d57600080fd5b6020830191508360208260051b8501011115610d6857600080fd5b9250929050565b60008060008060608587031215610d8557600080fd5b610d8e85610d07565b935060208501359250604085013567ffffffffffffffff811115610db157600080fd5b610dbd87828801610d23565b95989497509550505050565b60008060408385031215610ddc57600080fd5b610de583610d07565b946020939093013593505050565b600060208284031215610e0557600080fd5b81518015158114610e1557600080fd5b9392505050565b60208082526030908201527f4f6e6c7920636f6c6c656374696f6e2061646d696e2f6f776e65722063616e2060408201526f18d85b1b081d1a1a5cc81b595d1a1bd960821b606082015260800190565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610e9557600080fd5b825167ffffffffffffffff80821115610ead57600080fd5b818501915085601f830112610ec157600080fd5b815181811115610ed357610ed3610e6c565b604051601f8201601f19908116603f01168101908382118183101715610efb57610efb610e6c565b816040528281528886848701011115610f1357600080fd5b600093505b82841015610f355784840186015181850187015292850192610f18565b600086848301015280965050505050505092915050565b600060208284031215610f5e57600080fd5b5051919050565b6000808335601e19843603018112610f7c57600080fd5b830160208101925035905067ffffffffffffffff811115610f9c57600080fd5b803603821315610d6857600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60006040808301868452602082818601528186835260608601905060608760051b8701019250876000805b8981101561107857888603605f190184528235368c9003603e19018112611024578283fd5b8b016110308180610f65565b8989526110408a8a018284610fab565b91505061104f87830183610f65565b9250888203888a0152611063828483610fab565b98505050938501935091840191600101610fff565b50939a9950505050505050505050565b83516001600160a01b03908116825260209485015185830152835116604082015291909201516060820152608081019190915260a00190565b634e487b7160e01b600052603260045260246000fd5b60008235603e198336030181126110ed57600080fd5b9190910192915050565b6000808335601e1984360301811261110e57600080fd5b83018035915067ffffffffffffffff82111561112957600080fd5b602001915036819003821315610d6857600080fd5b858152606060208201526000611158606083018688610fab565b828103604084015261116b818587610fab565b98975050505050505050565b60006001820161119757634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212206fee43cab49543809f191e238525b8a47306c665c42f86e318153d2b9e9d1de064736f6c63430008110033",
- "deployedBytecode": "608060405234801561001057600080fd5b50600436106100415760003560e01c80633a0dbb1a14610046578063440dff9d1461005b5780637a8d97861461006e575b600080fd5b610059610054366004610d6f565b610081565b005b610059610069366004610d6f565b610472565b61005961007c366004610dc9565b6109fb565b604051639811b0c760e01b8152336004820152849081906001600160a01b03821690639811b0c790602401602060405180830381865afa1580156100c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100ed9190610df3565b6101125760405162461bcd60e51b815260040161010990610e1c565b60405180910390fd5b82806101555760405162461bcd60e51b815260206004820152601260248201527150726f70657269657320697320656d70747960701b6044820152606401610109565b60008790506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa15801561019a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101c29190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b2958201156104165760408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b4576040516335313c2160e11b81523060048201528a906001600160a01b03821690636a627842906024016020604051808303816000875af11580156102a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c69190610f4c565b604051630a769d3760e11b81529092506001600160a01b038216906314ed3a6e906102f99085908d908d90600401610fd4565b600060405180830381600087803b15801561031357600080fd5b505af1158015610327573d6000803e3d6000fd5b5050604080518082018252308152600060208083018290528351808501855291825281018f9052915163d5cf430b60e01b81526001600160a01b038616945063d5cf430b935061037c92908790600401611088565b600060405180830381600087803b15801561039657600080fd5b505af11580156103aa573d6000803e3d6000fd5b5050505050610416565b60405162461bcd60e51b815260206004820152603160248201527f57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c6044820152701e481dda5d1a08139195081bdc88149195607a1b6064820152608401610109565b6040805160008152602081018b90526001600160a01b038c16818301526060810183905290517ffb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb75359181900360800190a150505050505050505050565b604051639811b0c760e01b8152336004820152849081906001600160a01b03821690639811b0c790602401602060405180830381865afa1580156104ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104de9190610df3565b6104fa5760405162461bcd60e51b815260040161010990610e1c565b828061053d5760405162461bcd60e51b815260206004820152601260248201527150726f70657269657320697320656d70747960701b6044820152606401610109565b60008790506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610582573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105aa9190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b29582016108065760008a9050806001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106669190610f4c565b6040516335313c2160e11b81523060048201529092506001600160a01b03821690636a627842906024016020604051808303816000875af11580156106af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d39190610f4c565b5060005b858110156107b257816001600160a01b0316631752d67b848c8c85818110610701576107016110c1565b905060200281019061071391906110d7565b61071d90806110f7565b8e8e8781811061072f5761072f6110c1565b905060200281019061074191906110d7565b61074f9060208101906110f7565b6040518663ffffffff1660e01b815260040161076f95949392919061113e565b600060405180830381600087803b15801561078957600080fd5b505af115801561079d573d6000803e3d6000fd5b50505050806107ab90611177565b90506106d7565b50604080518082018252308152600060208083018290528351808501855291825281018d9052915163d5cf430b60e01b81526001600160a01b0384169263d5cf430b9261037c929091908790600401611088565b60408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b45760008a9050806001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561088b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108af9190610f4c565b6040516335313c2160e11b81523060048201529092506001600160a01b03821690636a627842906024016020604051808303816000875af11580156108f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091c9190610f4c565b5060005b858110156107b257816001600160a01b0316631752d67b848c8c8581811061094a5761094a6110c1565b905060200281019061095c91906110d7565b61096690806110f7565b8e8e87818110610978576109786110c1565b905060200281019061098a91906110d7565b6109989060208101906110f7565b6040518663ffffffff1660e01b81526004016109b895949392919061113e565b600060405180830381600087803b1580156109d257600080fd5b505af11580156109e6573d6000803e3d6000fd5b50505050806109f490611177565b9050610920565b604051639811b0c760e01b8152336004820152829081906001600160a01b03821690639811b0c790602401602060405180830381865afa158015610a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a679190610df3565b610a835760405162461bcd60e51b815260040161010990610e1c565b60008490506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ac8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610af09190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b2958201610c3e576040516335313c2160e11b815230600482015287906001600160a01b03821690636a627842906024015b6020604051808303816000875af1158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb29190610f4c565b604080518082018252308152600060208083018290528351808501855291825281018b9052915163d5cf430b60e01b81529294506001600160a01b0384169263d5cf430b92610c0692918790600401611088565b600060405180830381600087803b158015610c2057600080fd5b505af1158015610c34573d6000803e3d6000fd5b5050505050610cae565b60408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b4576040516335313c2160e11b815230600482015287906001600160a01b03821690636a62784290602401610b6f565b6040805160008152602081018890526001600160a01b038916818301526060810183905290517ffb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb75359181900360800190a150505050505050565b80356001600160a01b0381168114610d1e57600080fd5b919050565b60008083601f840112610d3557600080fd5b50813567ffffffffffffffff811115610d4d57600080fd5b6020830191508360208260051b8501011115610d6857600080fd5b9250929050565b60008060008060608587031215610d8557600080fd5b610d8e85610d07565b935060208501359250604085013567ffffffffffffffff811115610db157600080fd5b610dbd87828801610d23565b95989497509550505050565b60008060408385031215610ddc57600080fd5b610de583610d07565b946020939093013593505050565b600060208284031215610e0557600080fd5b81518015158114610e1557600080fd5b9392505050565b60208082526030908201527f4f6e6c7920636f6c6c656374696f6e2061646d696e2f6f776e65722063616e2060408201526f18d85b1b081d1a1a5cc81b595d1a1bd960821b606082015260800190565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610e9557600080fd5b825167ffffffffffffffff80821115610ead57600080fd5b818501915085601f830112610ec157600080fd5b815181811115610ed357610ed3610e6c565b604051601f8201601f19908116603f01168101908382118183101715610efb57610efb610e6c565b816040528281528886848701011115610f1357600080fd5b600093505b82841015610f355784840186015181850187015292850192610f18565b600086848301015280965050505050505092915050565b600060208284031215610f5e57600080fd5b5051919050565b6000808335601e19843603018112610f7c57600080fd5b830160208101925035905067ffffffffffffffff811115610f9c57600080fd5b803603821315610d6857600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60006040808301868452602082818601528186835260608601905060608760051b8701019250876000805b8981101561107857888603605f190184528235368c9003603e19018112611024578283fd5b8b016110308180610f65565b8989526110408a8a018284610fab565b91505061104f87830183610f65565b9250888203888a0152611063828483610fab565b98505050938501935091840191600101610fff565b50939a9950505050505050505050565b83516001600160a01b03908116825260209485015185830152835116604082015291909201516060820152608081019190915260a00190565b634e487b7160e01b600052603260045260246000fd5b60008235603e198336030181126110ed57600080fd5b9190910192915050565b6000808335601e1984360301811261110e57600080fd5b83018035915067ffffffffffffffff82111561112957600080fd5b602001915036819003821315610d6857600080fd5b858152606060208201526000611158606083018688610fab565b828103604084015261116b818587610fab565b98975050505050505050565b60006001820161119757634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212206fee43cab49543809f191e238525b8a47306c665c42f86e318153d2b9e9d1de064736f6c63430008110033",
- "sourceMap": "673:5833:5:-:0;;;;;;;;;;;;;;;;;;;",
- "deployedSourceMap": "673:5833:5:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5448:1056;;;;;;:::i;:::-;;:::i;:::-;;3688:1757;;;;;;:::i;:::-;;:::i;2212:1473::-;;;;;;:::i;:::-;;:::i;5448:1056::-;1226:41;;-1:-1:-1;;;1226:41:5;;1256:10;1226:41;;;2239:51:6;5606:11:5;;;;-1:-1:-1;;;;;1226:29:5;;;;;2212:18:6;;1226:41:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1218:102;;;;-1:-1:-1;;;1218:102:5;;;;;;;:::i;:::-;;;;;;;;;5650:11;5680:20;5672:51:::1;;;::::0;-1:-1:-1;;;5672:51:5;;3202:2:6;5672:51:5::1;::::0;::::1;3184:21:6::0;3241:2;3221:18;;;3214:30;-1:-1:-1;;;3260:18:6;;;3253:48;3318:18;;5672:51:5::1;3000:342:6::0;5672:51:5::1;5728:25;5767:11;5728:51;;5783:22;5824:14;-1:-1:-1::0;;;;;5824:35:5::1;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;5824:37:5::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;5808:55:::0;;::::1;::::0;;::::1;::::0;756:19:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;756:19:5;::::1;::::0;;;;5808:55;-1:-1:-1;5867:15:5::1;5891:44:::0;;;5887:541;::::1;;836:12;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;836:12:5::1;::::0;;::::1;::::0;5949:45;;;5945:483:::1;;6109:33;::::0;-1:-1:-1;;;6109:33:5;;6136:4:::1;6109:33;::::0;::::1;2239:51:6::0;6037:11:5;;-1:-1:-1;;;;;6109:18:5;::::1;::::0;::::1;::::0;2212::6;;6109:33:5::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6148:49;::::0;-1:-1:-1;;;6148:49:5;;6099:43;;-1:-1:-1;;;;;;6148:27:5;::::1;::::0;::::1;::::0;:49:::1;::::0;6099:43;;6185:11;;;;6148:49:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;6240:35:5::1;::::0;;;;::::1;::::0;;6266:4:::1;6240:35:::0;;-1:-1:-1;6240:35:5::1;::::0;;::::1;::::0;;;6281:49;;;;::::1;::::0;;;;;;::::1;::::0;;;6203:145;;-1:-1:-1;;;6203:145:5;;-1:-1:-1;;;;;6203:31:5;::::1;::::0;-1:-1:-1;6203:31:5::1;::::0;-1:-1:-1;6203:145:5::1;::::0;6281:49;6336:7;;6203:145:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;5996:357;5945:483;;;6364:59;::::0;-1:-1:-1;;;6364:59:5;;7944:2:6;6364:59:5::1;::::0;::::1;7926:21:6::0;7983:2;7963:18;;;7956:30;8022:34;8002:18;;;7995:62;-1:-1:-1;;;8073:18:6;;;8066:47;8130:19;;6364:59:5::1;7742:413:6::0;5945:483:5::1;6437:63;::::0;;6455:1:::1;8429:34:6::0;;8494:2;8479:18;;8472:34;;;-1:-1:-1;;;;;8542:15:6;;8522:18;;;8515:43;8589:2;8574:18;;8567:34;;;6437:63:5;;::::1;::::0;;;;8378:3:6;6437:63:5;;::::1;5619:885;;;;1159:889:::0;5448:1056;;;;;:::o;3688:1757::-;1226:41;;-1:-1:-1;;;1226:41:5;;1256:10;1226:41;;;2239:51:6;3842:11:5;;;;-1:-1:-1;;;;;1226:29:5;;;;;2212:18:6;;1226:41:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1218:102;;;;-1:-1:-1;;;1218:102:5;;;;;;;:::i;:::-;4035:10;4064:20;4056:51:::1;;;::::0;-1:-1:-1;;;4056:51:5;;3202:2:6;4056:51:5::1;::::0;::::1;3184:21:6::0;3241:2;3221:18;;;3214:30;-1:-1:-1;;;3260:18:6;;;3253:48;3318:18;;4056:51:5::1;3000:342:6::0;4056:51:5::1;4112:25;4151:11;4112:51;;4167:22;4208:14;-1:-1:-1::0;;;;;4208:35:5::1;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;4208:37:5::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;4192:55:::0;;::::1;::::0;;::::1;::::0;756:19:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;756:19:5;::::1;::::0;;;;4192:55;-1:-1:-1;4251:15:5::1;4275:44:::0;;;4271:1046:::1;;4326:30;4376:11;4326:62;;4403:13;-1:-1:-1::0;;;;;4403:25:5::1;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4435:33;::::0;-1:-1:-1;;;4435:33:5;;4462:4:::1;4435:33;::::0;::::1;2239:51:6::0;4393:37:5;;-1:-1:-1;;;;;;4435:18:5;::::1;::::0;::::1;::::0;2212::6;;4435:33:5::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;4478:9;4473:133;4497:16;4493:1;:20;4473:133;;;4526:13;-1:-1:-1::0;;;;;4526:25:5::1;;4552:7;4561:10;;4572:1;4561:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:17;::::0;;::::1;:::i;:::-;4580:10;;4591:1;4580:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:19;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;4526:74;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;4515:3;;;;:::i;:::-;;;4473:133;;;-1:-1:-1::0;4647:35:5::1;::::0;;;;::::1;::::0;;4673:4:::1;4647:35:::0;;-1:-1:-1;4647:35:5::1;::::0;;::::1;::::0;;;4688:49;;;;::::1;::::0;;;;;;::::1;::::0;;;4610:145;;-1:-1:-1;;;4610:145:5;;-1:-1:-1;;;;;4610:31:5;::::1;::::0;::::1;::::0;:145:::1;::::0;4647:35;;4688:49;4743:7;;4610:145:::1;;;:::i;4271:1046::-;836:12;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;836:12:5::1;::::0;;::::1;::::0;4770:45;;;4766:551:::1;;4822:23;4858:11;4822:48;;4885:13;-1:-1:-1::0;;;;;4885:25:5::1;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4917:33;::::0;-1:-1:-1;;;4917:33:5;;4944:4:::1;4917:33;::::0;::::1;2239:51:6::0;4875:37:5;;-1:-1:-1;;;;;;4917:18:5;::::1;::::0;::::1;::::0;2212::6;;4917:33:5::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;4960:9;4955:133;4979:16;4975:1;:20;4955:133;;;5008:13;-1:-1:-1::0;;;;;5008:25:5::1;;5034:7;5043:10;;5054:1;5043:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:17;::::0;;::::1;:::i;:::-;5062:10;;5073:1;5062:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:19;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;5008:74;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;4997:3;;;;:::i;:::-;;;4955:133;;2212:1473:::0;1226:41;;-1:-1:-1;;;1226:41:5;;1256:10;1226:41;;;2239:51:6;2313:11:5;;;;-1:-1:-1;;;;;1226:29:5;;;;;2212:18:6;;1226:41:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1218:102;;;;-1:-1:-1;;;1218:102:5;;;;;;;:::i;:::-;2476:25:::1;2515:11;2476:51;;2531:22;2572:14;-1:-1:-1::0;;;;;2572:35:5::1;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;2572:37:5::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;2556:55:::0;;::::1;::::0;;::::1;::::0;756:19:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;756:19:5;::::1;::::0;;;;2556:55;-1:-1:-1;2615:15:5::1;2639:44:::0;;;2635:759:::1;;2771:33;::::0;-1:-1:-1;;;2771:33:5;;2798:4:::1;2771:33;::::0;::::1;2239:51:6::0;2740:11:5;;-1:-1:-1;;;;;2771:18:5;::::1;::::0;::::1;::::0;2212::6;;2771:33:5::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2847:35;::::0;;;;::::1;::::0;;2873:4:::1;2847:35:::0;;-1:-1:-1;2847:35:5::1;::::0;;::::1;::::0;;;2888:49;;;;::::1;::::0;;;;;;::::1;::::0;;;2810:145;;-1:-1:-1;;;2810:145:5;;2761:43;;-1:-1:-1;;;;;;2810:31:5;::::1;::::0;::::1;::::0;:145:::1;::::0;2847:35;2761:43;;2810:145:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;2685:275;2635:759;;;836:12;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;836:12:5::1;::::0;;::::1;::::0;2970:45;;;2966:428:::1;;3130:33;::::0;-1:-1:-1;;;3130:33:5;;3157:4:::1;3130:33;::::0;::::1;2239:51:6::0;3058:11:5;;-1:-1:-1;;;;;3130:18:5;::::1;::::0;::::1;::::0;2212::6;;3130:33:5::1;2093:203:6::0;2966:428:5::1;3618:63;::::0;;3636:1:::1;8429:34:6::0;;8494:2;8479:18;;8472:34;;;-1:-1:-1;;;;;8542:15:6;;8522:18;;;8515:43;8589:2;8574:18;;8567:34;;;3618:63:5;;::::1;::::0;;;;8378:3:6;3618:63:5;;::::1;2326:1359;;;1159:889:::0;2212:1473;;;:::o;14:173:6:-;82:20;;-1:-1:-1;;;;;131:31:6;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:383::-;271:8;281:6;335:3;328:4;320:6;316:17;312:27;302:55;;353:1;350;343:12;302:55;-1:-1:-1;376:20:6;;419:18;408:30;;405:50;;;451:1;448;441:12;405:50;488:4;480:6;476:17;464:29;;548:3;541:4;531:6;528:1;524:14;516:6;512:27;508:38;505:47;502:67;;;565:1;562;555:12;502:67;192:383;;;;;:::o;580:621::-;710:6;718;726;734;787:2;775:9;766:7;762:23;758:32;755:52;;;803:1;800;793:12;755:52;826:29;845:9;826:29;:::i;:::-;816:39;;902:2;891:9;887:18;874:32;864:42;;957:2;946:9;942:18;929:32;984:18;976:6;973:30;970:50;;;1016:1;1013;1006:12;970:50;1055:86;1133:7;1124:6;1113:9;1109:22;1055:86;:::i;:::-;580:621;;;;-1:-1:-1;1160:8:6;-1:-1:-1;;;;580:621:6:o;1834:254::-;1902:6;1910;1963:2;1951:9;1942:7;1938:23;1934:32;1931:52;;;1979:1;1976;1969:12;1931:52;2002:29;2021:9;2002:29;:::i;:::-;1992:39;2078:2;2063:18;;;;2050:32;;-1:-1:-1;;;1834:254:6:o;2301:277::-;2368:6;2421:2;2409:9;2400:7;2396:23;2392:32;2389:52;;;2437:1;2434;2427:12;2389:52;2469:9;2463:16;2522:5;2515:13;2508:21;2501:5;2498:32;2488:60;;2544:1;2541;2534:12;2488:60;2567:5;2301:277;-1:-1:-1;;;2301:277:6:o;2583:412::-;2785:2;2767:21;;;2824:2;2804:18;;;2797:30;2863:34;2858:2;2843:18;;2836:62;-1:-1:-1;;;2929:2:6;2914:18;;2907:46;2985:3;2970:19;;2583:412::o;3347:127::-;3408:10;3403:3;3399:20;3396:1;3389:31;3439:4;3436:1;3429:15;3463:4;3460:1;3453:15;3479:1042;3559:6;3590:2;3633;3621:9;3612:7;3608:23;3604:32;3601:52;;;3649:1;3646;3639:12;3601:52;3682:9;3676:16;3711:18;3752:2;3744:6;3741:14;3738:34;;;3768:1;3765;3758:12;3738:34;3806:6;3795:9;3791:22;3781:32;;3851:7;3844:4;3840:2;3836:13;3832:27;3822:55;;3873:1;3870;3863:12;3822:55;3902:2;3896:9;3924:2;3920;3917:10;3914:36;;;3930:18;;:::i;:::-;4005:2;3999:9;3973:2;4059:13;;-1:-1:-1;;4055:22:6;;;4079:2;4051:31;4047:40;4035:53;;;4103:18;;;4123:22;;;4100:46;4097:72;;;4149:18;;:::i;:::-;4189:10;4185:2;4178:22;4224:2;4216:6;4209:18;4264:7;4259:2;4254;4250;4246:11;4242:20;4239:33;4236:53;;;4285:1;4282;4275:12;4236:53;4307:1;4298:10;;4317:129;4331:2;4328:1;4325:9;4317:129;;;4419:10;;;4415:19;;4409:26;4388:14;;;4384:23;;4377:59;4342:10;;;;4317:129;;;4488:1;4483:2;4478;4470:6;4466:15;4462:24;4455:35;4509:6;4499:16;;;;;;;;3479:1042;;;;:::o;4526:184::-;4596:6;4649:2;4637:9;4628:7;4624:23;4620:32;4617:52;;;4665:1;4662;4655:12;4617:52;-1:-1:-1;4688:16:6;;4526:184;-1:-1:-1;4526:184:6:o;4715:501::-;4774:5;4781:6;4841:3;4828:17;4927:2;4923:7;4912:8;4896:14;4892:29;4888:43;4868:18;4864:68;4854:96;;4946:1;4943;4936:12;4854:96;4974:33;;5078:4;5065:18;;;-1:-1:-1;5026:21:6;;-1:-1:-1;5106:18:6;5095:30;;5092:50;;;5138:1;5135;5128:12;5092:50;5185:6;5169:14;5165:27;5158:5;5154:39;5151:59;;;5206:1;5203;5196:12;5221:267;5310:6;5305:3;5298:19;5362:6;5355:5;5348:4;5343:3;5339:14;5326:43;-1:-1:-1;5414:1:6;5389:16;;;5407:4;5385:27;;;5378:38;;;;5470:2;5449:15;;;-1:-1:-1;;5445:29:6;5436:39;;;5432:50;;5221:267::o;5493:1549::-;5723:4;5752:2;5792;5781:9;5777:18;5822:6;5811:9;5804:25;5848:2;5886;5881;5870:9;5866:18;5859:30;5909:6;5939;5931;5924:22;5977:2;5966:9;5962:18;5955:25;;6039:2;6029:6;6026:1;6022:14;6011:9;6007:30;6003:39;5989:53;;6065:6;6089:1;6110;6120:893;6136:6;6131:3;6128:15;6120:893;;;6205:22;;;-1:-1:-1;;6201:36:6;6189:49;;6277:20;;6352:14;6348:27;;;-1:-1:-1;;6344:41:6;6320:66;;6310:94;;6400:1;6397;6390:12;6310:94;6430:31;;6508:45;6430:31;;6508:45;:::i;:::-;6581:2;6573:6;6566:18;6611:71;6678:2;6670:6;6666:15;6652:12;6638;6611:71;:::i;:::-;6597:85;;;6733:54;6783:2;6776:5;6772:14;6765:5;6733:54;:::i;:::-;6695:92;;6836:6;6828;6824:19;6819:2;6811:6;6807:15;6800:44;6867:66;6926:6;6910:14;6894;6867:66;:::i;:::-;6857:76;-1:-1:-1;;;6991:12:6;;;;-1:-1:-1;6956:15:6;;;;6162:1;6153:11;6120:893;;;-1:-1:-1;7030:6:6;;5493:1549;-1:-1:-1;;;;;;;;;;5493:1549:6:o;7234:503::-;7132:12;;-1:-1:-1;;;;;7128:38:6;;;7116:51;;7216:4;7205:16;;;7199:23;7183:14;;;7176:47;7132:12;;7128:38;7683:2;7668:18;;7116:51;7205:16;;;;7199:23;7183:14;;;7176:47;7718:3;7703:19;;7696:35;;;;7552:3;7537:19;;7234:503::o;8612:127::-;8673:10;8668:3;8664:20;8661:1;8654:31;8704:4;8701:1;8694:15;8728:4;8725:1;8718:15;8744:325;8838:4;8896:11;8883:25;8990:2;8986:7;8975:8;8959:14;8955:29;8951:43;8931:18;8927:68;8917:96;;9009:1;9006;8999:12;8917:96;9030:33;;;;;8744:325;-1:-1:-1;;8744:325:6:o;9074:522::-;9152:4;9158:6;9218:11;9205:25;9312:2;9308:7;9297:8;9281:14;9277:29;9273:43;9253:18;9249:68;9239:96;;9331:1;9328;9321:12;9239:96;9358:33;;9410:20;;;-1:-1:-1;9453:18:6;9442:30;;9439:50;;;9485:1;9482;9475:12;9439:50;9518:4;9506:17;;-1:-1:-1;9549:14:6;9545:27;;;9535:38;;9532:58;;;9586:1;9583;9576:12;10127:506;10370:6;10359:9;10352:25;10413:2;10408;10397:9;10393:18;10386:30;10333:4;10439:62;10497:2;10486:9;10482:18;10474:6;10466;10439:62;:::i;:::-;10549:9;10541:6;10537:22;10532:2;10521:9;10517:18;10510:50;10577;10620:6;10612;10604;10577:50;:::i;:::-;10569:58;10127:506;-1:-1:-1;;;;;;;;10127:506:6:o;10638:232::-;10677:3;10698:17;;;10695:140;;10757:10;10752:3;10748:20;10745:1;10738:31;10792:4;10789:1;10782:15;10820:4;10817:1;10810:15;10695:140;-1:-1:-1;10862:1:6;10851:13;;10638:232::o",
- "sourcePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.sol",
- "compiler": {
- "name": "solc",
- "version": "0.8.17+commit.8df45f5f"
- },
- "ast": {
- "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.sol",
- "exportedSymbols": {
- "Collection": [
- 1248
- ],
- "CollectionHelpers": [
- 99
- ],
- "ContractHelpers": [
- 282
- ],
- "EvmToSubstrate": [
- 2269
- ],
- "NftCrossAccountId": [
- 610
- ],
- "NftProperty": [
- 620
- ],
- "Property": [
- 1762
- ],
- "RftCrossAccountId": [
- 1253
- ],
- "RftProperties": [
- 1263
- ],
- "TokenProperties": [
- 357
- ],
- "UniqueNFT": [
- 930
- ],
- "UniqueRefungible": [
- 1572
- ],
- "UniqueRefungibleToken": [
- 1739
- ]
- },
- "id": 2270,
- "license": "Apache License",
- "nodeType": "SourceUnit",
- "nodes": [
- {
- "id": 1741,
- "literals": [
- "solidity",
- ">=",
- "0.8",
- ".0"
- ],
- "nodeType": "PragmaDirective",
- "src": "44:24:5"
- },
- {
- "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/CollectionHelpers.sol",
- "file": "../api/CollectionHelpers.sol",
- "id": 1743,
- "nameLocation": "-1:-1:-1",
- "nodeType": "ImportDirective",
- "scope": 2270,
- "sourceUnit": 100,
- "src": "69:63:5",
- "symbolAliases": [
- {
- "foreign": {
- "id": 1742,
- "name": "CollectionHelpers",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 99,
- "src": "77:17:5",
- "typeDescriptions": {}
- },
- "nameLocation": "-1:-1:-1"
- }
- ],
- "unitAlias": ""
- },
- {
- "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/ContractHelpers.sol",
- "file": "../api/ContractHelpers.sol",
- "id": 1745,
- "nameLocation": "-1:-1:-1",
- "nodeType": "ImportDirective",
- "scope": 2270,
- "sourceUnit": 288,
- "src": "133:59:5",
- "symbolAliases": [
- {
- "foreign": {
- "id": 1744,
- "name": "ContractHelpers",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 282,
- "src": "141:15:5",
- "typeDescriptions": {}
- },
- "nameLocation": "-1:-1:-1"
- }
- ],
- "unitAlias": ""
- },
- {
- "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/UniqueRefungibleToken.sol",
- "file": "../api/UniqueRefungibleToken.sol",
- "id": 1747,
- "nameLocation": "-1:-1:-1",
- "nodeType": "ImportDirective",
- "scope": 2270,
- "sourceUnit": 1740,
- "src": "193:71:5",
- "symbolAliases": [
- {
- "foreign": {
- "id": 1746,
- "name": "UniqueRefungibleToken",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1739,
- "src": "201:21:5",
- "typeDescriptions": {}
- },
- "nameLocation": "-1:-1:-1"
- }
- ],
- "unitAlias": ""
- },
- {
- "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/UniqueRefungible.sol",
- "file": "../api/UniqueRefungible.sol",
- "id": 1752,
- "nameLocation": "-1:-1:-1",
- "nodeType": "ImportDirective",
- "scope": 2270,
- "sourceUnit": 1573,
- "src": "265:137:5",
- "symbolAliases": [
- {
- "foreign": {
- "id": 1748,
- "name": "UniqueRefungible",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1572,
- "src": "273:16:5",
- "typeDescriptions": {}
- },
- "nameLocation": "-1:-1:-1"
- },
- {
- "foreign": {
- "id": 1749,
- "name": "Collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1248,
- "src": "291:10:5",
- "typeDescriptions": {}
- },
- "nameLocation": "-1:-1:-1"
- },
- {
- "foreign": {
- "id": 1750,
- "name": "EthCrossAccount",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1253,
- "src": "303:15:5",
- "typeDescriptions": {}
- },
- "local": "RftCrossAccountId",
- "nameLocation": "-1:-1:-1"
- },
- {
- "foreign": {
- "id": 1751,
- "name": "Tuple20",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1263,
- "src": "341:7:5",
- "typeDescriptions": {}
- },
- "local": "RftProperties",
- "nameLocation": "-1:-1:-1"
- }
- ],
- "unitAlias": ""
- },
- {
- "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/UniqueNFT.sol",
- "file": "../api/UniqueNFT.sol",
- "id": 1757,
- "nameLocation": "-1:-1:-1",
- "nodeType": "ImportDirective",
- "scope": 2270,
- "sourceUnit": 931,
- "src": "403:126:5",
- "symbolAliases": [
- {
- "foreign": {
- "id": 1753,
- "name": "UniqueNFT",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 930,
- "src": "411:9:5",
- "typeDescriptions": {}
- },
- "nameLocation": "-1:-1:-1"
- },
- {
- "foreign": {
- "id": 1754,
- "name": "EthCrossAccount",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 610,
- "src": "422:15:5",
- "typeDescriptions": {}
- },
- "local": "NftCrossAccountId",
- "nameLocation": "-1:-1:-1"
- },
- {
- "foreign": {
- "id": 1755,
- "name": "Tuple21",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 620,
- "src": "460:7:5",
- "typeDescriptions": {}
- },
- "local": "NftProperty",
- "nameLocation": "-1:-1:-1"
- },
- {
- "foreign": {
- "id": 1756,
- "name": "TokenProperties",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 357,
- "src": "484:15:5",
- "typeDescriptions": {}
- },
- "nameLocation": "-1:-1:-1"
- }
- ],
- "unitAlias": ""
- },
- {
- "canonicalName": "Property",
- "id": 1762,
- "members": [
- {
- "constant": false,
- "id": 1759,
- "mutability": "mutable",
- "name": "key",
- "nameLocation": "557:3:5",
- "nodeType": "VariableDeclaration",
- "scope": 1762,
- "src": "550:10:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_string_storage_ptr",
- "typeString": "string"
- },
- "typeName": {
- "id": 1758,
- "name": "string",
- "nodeType": "ElementaryTypeName",
- "src": "550:6:5",
- "typeDescriptions": {
- "typeIdentifier": "t_string_storage_ptr",
- "typeString": "string"
- }
- },
- "visibility": "internal"
- },
- {
- "constant": false,
- "id": 1761,
- "mutability": "mutable",
- "name": "value",
- "nameLocation": "569:5:5",
- "nodeType": "VariableDeclaration",
- "scope": 1762,
- "src": "563:11:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes_storage_ptr",
- "typeString": "bytes"
- },
- "typeName": {
- "id": 1760,
- "name": "bytes",
- "nodeType": "ElementaryTypeName",
- "src": "563:5:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes_storage_ptr",
- "typeString": "bytes"
- }
- },
- "visibility": "internal"
- }
- ],
- "name": "Property",
- "nameLocation": "538:8:5",
- "nodeType": "StructDefinition",
- "scope": 2270,
- "src": "531:46:5",
- "visibility": "public"
- },
- {
- "abstract": false,
- "baseContracts": [],
- "canonicalName": "EvmToSubstrate",
- "contractDependencies": [],
- "contractKind": "contract",
- "fullyImplemented": true,
- "id": 2269,
- "linearizedBaseContracts": [
- 2269
- ],
- "name": "EvmToSubstrate",
- "nameLocation": "682:14:5",
- "nodeType": "ContractDefinition",
- "nodes": [
- {
- "constant": true,
- "id": 1770,
- "mutability": "constant",
- "name": "REFUNGIBLE_COLLECTION_TYPE",
- "nameLocation": "717:26:5",
- "nodeType": "VariableDeclaration",
- "scope": 2269,
- "src": "700:76:5",
- "stateVariable": true,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "typeName": {
- "id": 1763,
- "name": "bytes32",
- "nodeType": "ElementaryTypeName",
- "src": "700:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "value": {
- "arguments": [
- {
- "arguments": [
- {
- "hexValue": "526546756e6769626c65",
- "id": 1767,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "string",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "762:12:5",
- "typeDescriptions": {
- "typeIdentifier": "t_stringliteral_cdb72fd4e1d0d6d4eebd7ab142113ec2b4b06ddb24324db5c287ef01ab484d6b",
- "typeString": "literal_string \"ReFungible\""
- },
- "value": "ReFungible"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_stringliteral_cdb72fd4e1d0d6d4eebd7ab142113ec2b4b06ddb24324db5c287ef01ab484d6b",
- "typeString": "literal_string \"ReFungible\""
- }
- ],
- "id": 1766,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "756:5:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
- "typeString": "type(bytes storage pointer)"
- },
- "typeName": {
- "id": 1765,
- "name": "bytes",
- "nodeType": "ElementaryTypeName",
- "src": "756:5:5",
- "typeDescriptions": {}
- }
- },
- "id": 1768,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "756:19:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bytes_memory_ptr",
- "typeString": "bytes memory"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_bytes_memory_ptr",
- "typeString": "bytes memory"
- }
- ],
- "id": 1764,
- "name": "keccak256",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967288,
- "src": "746:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
- "typeString": "function (bytes memory) pure returns (bytes32)"
- }
- },
- "id": 1769,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "746:30:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "visibility": "internal"
- },
- {
- "constant": true,
- "id": 1778,
- "mutability": "constant",
- "name": "NONFUNGIBLE_COLLECTION_TYPE",
- "nameLocation": "796:27:5",
- "nodeType": "VariableDeclaration",
- "scope": 2269,
- "src": "779:70:5",
- "stateVariable": true,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "typeName": {
- "id": 1771,
- "name": "bytes32",
- "nodeType": "ElementaryTypeName",
- "src": "779:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "value": {
- "arguments": [
- {
- "arguments": [
- {
- "hexValue": "4e4654",
- "id": 1775,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "string",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "842:5:5",
- "typeDescriptions": {
- "typeIdentifier": "t_stringliteral_9c4138cd0a1311e4748f70d0fe3dc55f0f5f75e0f20db731225cbc3b8914016a",
- "typeString": "literal_string \"NFT\""
- },
- "value": "NFT"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_stringliteral_9c4138cd0a1311e4748f70d0fe3dc55f0f5f75e0f20db731225cbc3b8914016a",
- "typeString": "literal_string \"NFT\""
- }
- ],
- "id": 1774,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "836:5:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
- "typeString": "type(bytes storage pointer)"
- },
- "typeName": {
- "id": 1773,
- "name": "bytes",
- "nodeType": "ElementaryTypeName",
- "src": "836:5:5",
- "typeDescriptions": {}
- }
- },
- "id": 1776,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "836:12:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bytes_memory_ptr",
- "typeString": "bytes memory"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_bytes_memory_ptr",
- "typeString": "bytes memory"
- }
- ],
- "id": 1772,
- "name": "keccak256",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967288,
- "src": "826:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
- "typeString": "function (bytes memory) pure returns (bytes32)"
- }
- },
- "id": 1777,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "826:23:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "visibility": "internal"
- },
- {
- "body": {
- "id": 1799,
- "nodeType": "Block",
- "src": "1159:889:5",
- "statements": [
- {
- "assignments": [
- 1784
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1784,
- "mutability": "mutable",
- "name": "commonContract",
- "nameLocation": "1174:14:5",
- "nodeType": "VariableDeclaration",
- "scope": 1799,
- "src": "1163:25:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- },
- "typeName": {
- "id": 1783,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 1782,
- "name": "Collection",
- "nameLocations": [
- "1163:10:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 1248,
- "src": "1163:10:5"
- },
- "referencedDeclaration": 1248,
- "src": "1163:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1788,
- "initialValue": {
- "arguments": [
- {
- "id": 1786,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1780,
- "src": "1202:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "id": 1785,
- "name": "Collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1248,
- "src": "1191:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_contract$_Collection_$1248_$",
- "typeString": "type(contract Collection)"
- }
- },
- "id": 1787,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "1191:23:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "1163:51:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "arguments": [
- {
- "expression": {
- "id": 1792,
- "name": "msg",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967281,
- "src": "1256:3:5",
- "typeDescriptions": {
- "typeIdentifier": "t_magic_message",
- "typeString": "msg"
- }
- },
- "id": 1793,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "1260:6:5",
- "memberName": "sender",
- "nodeType": "MemberAccess",
- "src": "1256:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "expression": {
- "id": 1790,
- "name": "commonContract",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1784,
- "src": "1226:14:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "id": 1791,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "1241:14:5",
- "memberName": "isOwnerOrAdmin",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1204,
- "src": "1226:29:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_view$_t_address_$returns$_t_bool_$",
- "typeString": "function (address) view external returns (bool)"
- }
- },
- "id": 1794,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "1226:41:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- {
- "hexValue": "4f6e6c7920636f6c6c656374696f6e2061646d696e2f6f776e65722063616e2063616c6c2074686973206d6574686f64",
- "id": 1795,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "string",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "1269:50:5",
- "typeDescriptions": {
- "typeIdentifier": "t_stringliteral_9e1b1a457a3a51e38b70747f3c56c9a0ede0f22582e6963b10271c34b83f1ca3",
- "typeString": "literal_string \"Only collection admin/owner can call this method\""
- },
- "value": "Only collection admin/owner can call this method"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- },
- {
- "typeIdentifier": "t_stringliteral_9e1b1a457a3a51e38b70747f3c56c9a0ede0f22582e6963b10271c34b83f1ca3",
- "typeString": "literal_string \"Only collection admin/owner can call this method\""
- }
- ],
- "id": 1789,
- "name": "require",
- "nodeType": "Identifier",
- "overloadedDeclarations": [
- 4294967278,
- 4294967278
- ],
- "referencedDeclaration": 4294967278,
- "src": "1218:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
- "typeString": "function (bool,string memory) pure"
- }
- },
- "id": 1796,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "1218:102:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 1797,
- "nodeType": "ExpressionStatement",
- "src": "1218:102:5"
- },
- {
- "id": 1798,
- "nodeType": "PlaceholderStatement",
- "src": "2043:1:5"
- }
- ]
- },
- "id": 1800,
- "name": "checkRestrictions",
- "nameLocation": "1120:17:5",
- "nodeType": "ModifierDefinition",
- "parameters": {
- "id": 1781,
- "nodeType": "ParameterList",
- "parameters": [
- {
- "constant": false,
- "id": 1780,
- "mutability": "mutable",
- "name": "_collection",
- "nameLocation": "1146:11:5",
- "nodeType": "VariableDeclaration",
- "scope": 1800,
- "src": "1138:19:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- "typeName": {
- "id": 1779,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "1138:7:5",
- "stateMutability": "nonpayable",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- "visibility": "internal"
- }
- ],
- "src": "1137:21:5"
- },
- "src": "1111:937:5",
- "virtual": false,
- "visibility": "internal"
- },
- {
- "anonymous": false,
- "documentation": {
- "id": 1801,
- "nodeType": "StructuredDocumentation",
- "src": "2051:69:5",
- "text": "@dev This emits when a mint to a substrate address has been made."
- },
- "eventSelector": "fb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb7535",
- "id": 1811,
- "name": "MintToSub",
- "nameLocation": "2128:9:5",
- "nodeType": "EventDefinition",
- "parameters": {
- "id": 1810,
- "nodeType": "ParameterList",
- "parameters": [
- {
- "constant": false,
- "id": 1803,
- "indexed": false,
- "mutability": "mutable",
- "name": "_toEth",
- "nameLocation": "2146:6:5",
- "nodeType": "VariableDeclaration",
- "scope": 1811,
- "src": "2138:14:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- "typeName": {
- "id": 1802,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "2138:7:5",
- "stateMutability": "nonpayable",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- "visibility": "internal"
- },
- {
- "constant": false,
- "id": 1805,
- "indexed": false,
- "mutability": "mutable",
- "name": "_toSub",
- "nameLocation": "2162:6:5",
- "nodeType": "VariableDeclaration",
- "scope": 1811,
- "src": "2154:14:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 1804,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "2154:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- },
- {
- "constant": false,
- "id": 1807,
- "indexed": false,
- "mutability": "mutable",
- "name": "_collection",
- "nameLocation": "2178:11:5",
- "nodeType": "VariableDeclaration",
- "scope": 1811,
- "src": "2170:19:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- "typeName": {
- "id": 1806,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "2170:7:5",
- "stateMutability": "nonpayable",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- "visibility": "internal"
- },
- {
- "constant": false,
- "id": 1809,
- "indexed": false,
- "mutability": "mutable",
- "name": "_tokenId",
- "nameLocation": "2199:8:5",
- "nodeType": "VariableDeclaration",
- "scope": 1811,
- "src": "2191:16:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 1808,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "2191:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- }
- ],
- "src": "2137:71:5"
- },
- "src": "2122:87:5"
- },
- {
- "body": {
- "id": 1941,
- "nodeType": "Block",
- "src": "2326:1359:5",
- "statements": [
- {
- "assignments": [
- 1823
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1823,
- "mutability": "mutable",
- "name": "commonContract",
- "nameLocation": "2487:14:5",
- "nodeType": "VariableDeclaration",
- "scope": 1941,
- "src": "2476:25:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- },
- "typeName": {
- "id": 1822,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 1821,
- "name": "Collection",
- "nameLocations": [
- "2476:10:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 1248,
- "src": "2476:10:5"
- },
- "referencedDeclaration": 1248,
- "src": "2476:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1827,
- "initialValue": {
- "arguments": [
- {
- "id": 1825,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1813,
- "src": "2515:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "id": 1824,
- "name": "Collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1248,
- "src": "2504:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_contract$_Collection_$1248_$",
- "typeString": "type(contract Collection)"
- }
- },
- "id": 1826,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2504:23:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "2476:51:5"
- },
- {
- "assignments": [
- 1829
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1829,
- "mutability": "mutable",
- "name": "collectionType",
- "nameLocation": "2539:14:5",
- "nodeType": "VariableDeclaration",
- "scope": 1941,
- "src": "2531:22:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "typeName": {
- "id": 1828,
- "name": "bytes32",
- "nodeType": "ElementaryTypeName",
- "src": "2531:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1838,
- "initialValue": {
- "arguments": [
- {
- "arguments": [
- {
- "arguments": [],
- "expression": {
- "argumentTypes": [],
- "expression": {
- "id": 1833,
- "name": "commonContract",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1823,
- "src": "2572:14:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "id": 1834,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "2587:20:5",
- "memberName": "uniqueCollectionType",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1219,
- "src": "2572:35:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_view$__$returns$_t_string_memory_ptr_$",
- "typeString": "function () view external returns (string memory)"
- }
- },
- "id": 1835,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2572:37:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_string_memory_ptr",
- "typeString": "string memory"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_string_memory_ptr",
- "typeString": "string memory"
- }
- ],
- "id": 1832,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "2566:5:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
- "typeString": "type(bytes storage pointer)"
- },
- "typeName": {
- "id": 1831,
- "name": "bytes",
- "nodeType": "ElementaryTypeName",
- "src": "2566:5:5",
- "typeDescriptions": {}
- }
- },
- "id": 1836,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2566:44:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bytes_memory_ptr",
- "typeString": "bytes memory"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_bytes_memory_ptr",
- "typeString": "bytes memory"
- }
- ],
- "id": 1830,
- "name": "keccak256",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967288,
- "src": "2556:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
- "typeString": "function (bytes memory) pure returns (bytes32)"
- }
- },
- "id": 1837,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2556:55:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "2531:80:5"
- },
- {
- "assignments": [
- 1840
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1840,
- "mutability": "mutable",
- "name": "tokenId",
- "nameLocation": "2623:7:5",
- "nodeType": "VariableDeclaration",
- "scope": 1941,
- "src": "2615:15:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 1839,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "2615:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1841,
- "nodeType": "VariableDeclarationStatement",
- "src": "2615:15:5"
- },
- {
- "condition": {
- "commonType": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "id": 1844,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftExpression": {
- "id": 1842,
- "name": "collectionType",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1829,
- "src": "2639:14:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "nodeType": "BinaryOperation",
- "operator": "==",
- "rightExpression": {
- "id": 1843,
- "name": "REFUNGIBLE_COLLECTION_TYPE",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1770,
- "src": "2657:26:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "src": "2639:44:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- "falseBody": {
- "condition": {
- "commonType": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "id": 1885,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftExpression": {
- "id": 1883,
- "name": "collectionType",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1829,
- "src": "2970:14:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "nodeType": "BinaryOperation",
- "operator": "==",
- "rightExpression": {
- "id": 1884,
- "name": "NONFUNGIBLE_COLLECTION_TYPE",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1778,
- "src": "2988:27:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "src": "2970:45:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- "falseBody": {
- "id": 1928,
- "nodeType": "Block",
- "src": "3325:69:5",
- "statements": [
- {
- "expression": {
- "arguments": [
- {
- "hexValue": "57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c792077697468204e4654206f7220524654",
- "id": 1925,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "string",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "3337:51:5",
- "typeDescriptions": {
- "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",
- "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""
- },
- "value": "Wrong collection type. Works only with NFT or RFT"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",
- "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""
- }
- ],
- "id": 1924,
- "name": "revert",
- "nodeType": "Identifier",
- "overloadedDeclarations": [
- 4294967277,
- 4294967277
- ],
- "referencedDeclaration": 4294967277,
- "src": "3330:6:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",
- "typeString": "function (string memory) pure"
- }
- },
- "id": 1926,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3330:59:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 1927,
- "nodeType": "ExpressionStatement",
- "src": "3330:59:5"
- }
- ]
- },
- "id": 1929,
- "nodeType": "IfStatement",
- "src": "2966:428:5",
- "trueBody": {
- "id": 1923,
- "nodeType": "Block",
- "src": "3017:302:5",
- "statements": [
- {
- "assignments": [
- 1888
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1888,
- "mutability": "mutable",
- "name": "nftCollection",
- "nameLocation": "3032:13:5",
- "nodeType": "VariableDeclaration",
- "scope": 1923,
- "src": "3022:23:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- },
- "typeName": {
- "id": 1887,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 1886,
- "name": "UniqueNFT",
- "nameLocations": [
- "3022:9:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 930,
- "src": "3022:9:5"
- },
- "referencedDeclaration": 930,
- "src": "3022:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1892,
- "initialValue": {
- "arguments": [
- {
- "id": 1890,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1813,
- "src": "3058:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "id": 1889,
- "name": "UniqueNFT",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 930,
- "src": "3048:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_contract$_UniqueNFT_$930_$",
- "typeString": "type(contract UniqueNFT)"
- }
- },
- "id": 1891,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3048:22:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "3022:48:5"
- },
- {
- "expression": {
- "id": 1901,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftHandSide": {
- "id": 1893,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1840,
- "src": "3120:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "Assignment",
- "operator": "=",
- "rightHandSide": {
- "arguments": [
- {
- "arguments": [
- {
- "id": 1898,
- "name": "this",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967268,
- "src": "3157:4:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- ],
- "id": 1897,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "3149:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 1896,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "3149:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 1899,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3149:13:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "expression": {
- "id": 1894,
- "name": "nftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1888,
- "src": "3130:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "id": 1895,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "3144:4:5",
- "memberName": "mint",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 671,
- "src": "3130:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$_t_uint256_$",
- "typeString": "function (address) external returns (uint256)"
- }
- },
- "id": 1900,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3130:33:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "src": "3120:43:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 1902,
- "nodeType": "ExpressionStatement",
- "src": "3120:43:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "arguments": [
- {
- "arguments": [
- {
- "id": 1909,
- "name": "this",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967268,
- "src": "3232:4:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- ],
- "id": 1908,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "3224:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 1907,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "3224:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 1910,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3224:13:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "hexValue": "30",
- "id": 1911,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "3239:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 1906,
- "name": "NftCrossAccountId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 610,
- "src": "3206:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",
- "typeString": "type(struct EthCrossAccount storage pointer)"
- }
- },
- "id": 1912,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "structConstructorCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3206:35:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- }
- },
- {
- "arguments": [
- {
- "arguments": [
- {
- "hexValue": "30",
- "id": 1916,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "3273:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 1915,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "3265:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 1914,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "3265:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 1917,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3265:10:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 1918,
- "name": "_substrateReceiver",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1815,
- "src": "3277:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "id": 1913,
- "name": "NftCrossAccountId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 610,
- "src": "3247:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",
- "typeString": "type(struct EthCrossAccount storage pointer)"
- }
- },
- "id": 1919,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "structConstructorCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3247:49:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- }
- },
- {
- "id": 1920,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1840,
- "src": "3302:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- },
- {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "expression": {
- "id": 1903,
- "name": "nftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1888,
- "src": "3169:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "id": 1905,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "3183:17:5",
- "memberName": "transferFromCross",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 734,
- "src": "3169:31:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_uint256_$returns$__$",
- "typeString": "function (struct EthCrossAccount memory,struct EthCrossAccount memory,uint256) external"
- }
- },
- "id": 1921,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3169:145:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 1922,
- "nodeType": "ExpressionStatement",
- "src": "3169:145:5"
- }
- ]
- }
- },
- "id": 1930,
- "nodeType": "IfStatement",
- "src": "2635:759:5",
- "trueBody": {
- "id": 1882,
- "nodeType": "Block",
- "src": "2685:275:5",
- "statements": [
- {
- "assignments": [
- 1847
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1847,
- "mutability": "mutable",
- "name": "rftCollection",
- "nameLocation": "2707:13:5",
- "nodeType": "VariableDeclaration",
- "scope": 1882,
- "src": "2690:30:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- },
- "typeName": {
- "id": 1846,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 1845,
- "name": "UniqueRefungible",
- "nameLocations": [
- "2690:16:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 1572,
- "src": "2690:16:5"
- },
- "referencedDeclaration": 1572,
- "src": "2690:16:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1851,
- "initialValue": {
- "arguments": [
- {
- "id": 1849,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1813,
- "src": "2740:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "id": 1848,
- "name": "UniqueRefungible",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1572,
- "src": "2723:16:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_contract$_UniqueRefungible_$1572_$",
- "typeString": "type(contract UniqueRefungible)"
- }
- },
- "id": 1850,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2723:29:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "2690:62:5"
- },
- {
- "expression": {
- "id": 1860,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftHandSide": {
- "id": 1852,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1840,
- "src": "2761:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "Assignment",
- "operator": "=",
- "rightHandSide": {
- "arguments": [
- {
- "arguments": [
- {
- "id": 1857,
- "name": "this",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967268,
- "src": "2798:4:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- ],
- "id": 1856,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "2790:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 1855,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "2790:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 1858,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2790:13:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "expression": {
- "id": 1853,
- "name": "rftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1847,
- "src": "2771:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- }
- },
- "id": 1854,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "2785:4:5",
- "memberName": "mint",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1314,
- "src": "2771:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$_t_uint256_$",
- "typeString": "function (address) external returns (uint256)"
- }
- },
- "id": 1859,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2771:33:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "src": "2761:43:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 1861,
- "nodeType": "ExpressionStatement",
- "src": "2761:43:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "arguments": [
- {
- "arguments": [
- {
- "id": 1868,
- "name": "this",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967268,
- "src": "2873:4:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- ],
- "id": 1867,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "2865:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 1866,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "2865:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 1869,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2865:13:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "hexValue": "30",
- "id": 1870,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "2880:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 1865,
- "name": "RftCrossAccountId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1253,
- "src": "2847:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$1253_storage_ptr_$",
- "typeString": "type(struct EthCrossAccount storage pointer)"
- }
- },
- "id": 1871,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "structConstructorCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2847:35:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- }
- },
- {
- "arguments": [
- {
- "arguments": [
- {
- "hexValue": "30",
- "id": 1875,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "2914:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 1874,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "2906:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 1873,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "2906:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 1876,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2906:10:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 1877,
- "name": "_substrateReceiver",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1815,
- "src": "2918:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "id": 1872,
- "name": "RftCrossAccountId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1253,
- "src": "2888:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$1253_storage_ptr_$",
- "typeString": "type(struct EthCrossAccount storage pointer)"
- }
- },
- "id": 1878,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "structConstructorCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2888:49:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- }
- },
- {
- "id": 1879,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1840,
- "src": "2943:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- },
- {
- "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "expression": {
- "id": 1862,
- "name": "rftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1847,
- "src": "2810:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- }
- },
- "id": 1864,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "2824:17:5",
- "memberName": "transferFromCross",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1368,
- "src": "2810:31:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_struct$_EthCrossAccount_$1253_memory_ptr_$_t_struct$_EthCrossAccount_$1253_memory_ptr_$_t_uint256_$returns$__$",
- "typeString": "function (struct EthCrossAccount memory,struct EthCrossAccount memory,uint256) external"
- }
- },
- "id": 1880,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "2810:145:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 1881,
- "nodeType": "ExpressionStatement",
- "src": "2810:145:5"
- }
- ]
- }
- },
- {
- "eventCall": {
- "arguments": [
- {
- "arguments": [
- {
- "hexValue": "30",
- "id": 1934,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "3636:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 1933,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "3628:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 1932,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "3628:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 1935,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3628:10:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 1936,
- "name": "_substrateReceiver",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1815,
- "src": "3640:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- {
- "id": 1937,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1813,
- "src": "3660:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 1938,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1840,
- "src": "3673:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "id": 1931,
- "name": "MintToSub",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1811,
- "src": "3618:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_address_$_t_uint256_$returns$__$",
- "typeString": "function (address,uint256,address,uint256)"
- }
- },
- "id": 1939,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "3618:63:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 1940,
- "nodeType": "EmitStatement",
- "src": "3613:68:5"
- }
- ]
- },
- "functionSelector": "7a8d9786",
- "id": 1942,
- "implemented": true,
- "kind": "function",
- "modifiers": [
- {
- "arguments": [
- {
- "id": 1818,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1813,
- "src": "2313:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "id": 1819,
- "kind": "modifierInvocation",
- "modifierName": {
- "id": 1817,
- "name": "checkRestrictions",
- "nameLocations": [
- "2295:17:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 1800,
- "src": "2295:17:5"
- },
- "nodeType": "ModifierInvocation",
- "src": "2295:30:5"
- }
- ],
- "name": "mintToSubstrate",
- "nameLocation": "2221:15:5",
- "nodeType": "FunctionDefinition",
- "parameters": {
- "id": 1816,
- "nodeType": "ParameterList",
- "parameters": [
- {
- "constant": false,
- "id": 1813,
- "mutability": "mutable",
- "name": "_collection",
- "nameLocation": "2245:11:5",
- "nodeType": "VariableDeclaration",
- "scope": 1942,
- "src": "2237:19:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- "typeName": {
- "id": 1812,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "2237:7:5",
- "stateMutability": "nonpayable",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- "visibility": "internal"
- },
- {
- "constant": false,
- "id": 1815,
- "mutability": "mutable",
- "name": "_substrateReceiver",
- "nameLocation": "2266:18:5",
- "nodeType": "VariableDeclaration",
- "scope": 1942,
- "src": "2258:26:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 1814,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "2258:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- }
- ],
- "src": "2236:49:5"
- },
- "returnParameters": {
- "id": 1820,
- "nodeType": "ParameterList",
- "parameters": [],
- "src": "2326:0:5"
- },
- "scope": 2269,
- "src": "2212:1473:5",
- "stateMutability": "nonpayable",
- "virtual": false,
- "visibility": "external"
- },
- {
- "body": {
- "id": 2150,
- "nodeType": "Block",
- "src": "3855:1590:5",
- "statements": [
- {
- "assignments": [
- 1957
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1957,
- "mutability": "mutable",
- "name": "propertiesLength",
- "nameLocation": "4016:16:5",
- "nodeType": "VariableDeclaration",
- "scope": 2150,
- "src": "4008:24:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 1956,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "4008:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1960,
- "initialValue": {
- "expression": {
- "id": 1958,
- "name": "properties",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1950,
- "src": "4035:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",
- "typeString": "struct Property calldata[] calldata"
- }
- },
- "id": 1959,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "4046:6:5",
- "memberName": "length",
- "nodeType": "MemberAccess",
- "src": "4035:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "4008:44:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "commonType": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "id": 1964,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftExpression": {
- "id": 1962,
- "name": "propertiesLength",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1957,
- "src": "4064:16:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "BinaryOperation",
- "operator": ">",
- "rightExpression": {
- "hexValue": "30",
- "id": 1963,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "4083:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- },
- "src": "4064:20:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- {
- "hexValue": "50726f70657269657320697320656d707479",
- "id": 1965,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "string",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "4086:20:5",
- "typeDescriptions": {
- "typeIdentifier": "t_stringliteral_3c3e0098388726dfb54bb3f478f469c7fc9acc2aa2937bb94957726165b135a1",
- "typeString": "literal_string \"Properies is empty\""
- },
- "value": "Properies is empty"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- },
- {
- "typeIdentifier": "t_stringliteral_3c3e0098388726dfb54bb3f478f469c7fc9acc2aa2937bb94957726165b135a1",
- "typeString": "literal_string \"Properies is empty\""
- }
- ],
- "id": 1961,
- "name": "require",
- "nodeType": "Identifier",
- "overloadedDeclarations": [
- 4294967278,
- 4294967278
- ],
- "referencedDeclaration": 4294967278,
- "src": "4056:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
- "typeString": "function (bool,string memory) pure"
- }
- },
- "id": 1966,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4056:51:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 1967,
- "nodeType": "ExpressionStatement",
- "src": "4056:51:5"
- },
- {
- "assignments": [
- 1970
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1970,
- "mutability": "mutable",
- "name": "commonContract",
- "nameLocation": "4123:14:5",
- "nodeType": "VariableDeclaration",
- "scope": 2150,
- "src": "4112:25:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- },
- "typeName": {
- "id": 1969,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 1968,
- "name": "Collection",
- "nameLocations": [
- "4112:10:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 1248,
- "src": "4112:10:5"
- },
- "referencedDeclaration": 1248,
- "src": "4112:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1974,
- "initialValue": {
- "arguments": [
- {
- "id": 1972,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1944,
- "src": "4151:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "id": 1971,
- "name": "Collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1248,
- "src": "4140:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_contract$_Collection_$1248_$",
- "typeString": "type(contract Collection)"
- }
- },
- "id": 1973,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4140:23:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "4112:51:5"
- },
- {
- "assignments": [
- 1976
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1976,
- "mutability": "mutable",
- "name": "collectionType",
- "nameLocation": "4175:14:5",
- "nodeType": "VariableDeclaration",
- "scope": 2150,
- "src": "4167:22:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "typeName": {
- "id": 1975,
- "name": "bytes32",
- "nodeType": "ElementaryTypeName",
- "src": "4167:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1985,
- "initialValue": {
- "arguments": [
- {
- "arguments": [
- {
- "arguments": [],
- "expression": {
- "argumentTypes": [],
- "expression": {
- "id": 1980,
- "name": "commonContract",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1970,
- "src": "4208:14:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "id": 1981,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "4223:20:5",
- "memberName": "uniqueCollectionType",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1219,
- "src": "4208:35:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_view$__$returns$_t_string_memory_ptr_$",
- "typeString": "function () view external returns (string memory)"
- }
- },
- "id": 1982,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4208:37:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_string_memory_ptr",
- "typeString": "string memory"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_string_memory_ptr",
- "typeString": "string memory"
- }
- ],
- "id": 1979,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "4202:5:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
- "typeString": "type(bytes storage pointer)"
- },
- "typeName": {
- "id": 1978,
- "name": "bytes",
- "nodeType": "ElementaryTypeName",
- "src": "4202:5:5",
- "typeDescriptions": {}
- }
- },
- "id": 1983,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4202:44:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bytes_memory_ptr",
- "typeString": "bytes memory"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_bytes_memory_ptr",
- "typeString": "bytes memory"
- }
- ],
- "id": 1977,
- "name": "keccak256",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967288,
- "src": "4192:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
- "typeString": "function (bytes memory) pure returns (bytes32)"
- }
- },
- "id": 1984,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4192:55:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "4167:80:5"
- },
- {
- "assignments": [
- 1987
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1987,
- "mutability": "mutable",
- "name": "tokenId",
- "nameLocation": "4259:7:5",
- "nodeType": "VariableDeclaration",
- "scope": 2150,
- "src": "4251:15:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 1986,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "4251:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1988,
- "nodeType": "VariableDeclarationStatement",
- "src": "4251:15:5"
- },
- {
- "condition": {
- "commonType": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "id": 1991,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftExpression": {
- "id": 1989,
- "name": "collectionType",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1976,
- "src": "4275:14:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "nodeType": "BinaryOperation",
- "operator": "==",
- "rightExpression": {
- "id": 1990,
- "name": "REFUNGIBLE_COLLECTION_TYPE",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1770,
- "src": "4293:26:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "src": "4275:44:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- "falseBody": {
- "condition": {
- "commonType": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "id": 2063,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftExpression": {
- "id": 2061,
- "name": "collectionType",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1976,
- "src": "4770:14:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "nodeType": "BinaryOperation",
- "operator": "==",
- "rightExpression": {
- "id": 2062,
- "name": "NONFUNGIBLE_COLLECTION_TYPE",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1778,
- "src": "4788:27:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "src": "4770:45:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- "falseBody": {
- "id": 2137,
- "nodeType": "Block",
- "src": "5248:69:5",
- "statements": [
- {
- "expression": {
- "arguments": [
- {
- "hexValue": "57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c792077697468204e4654206f7220524654",
- "id": 2134,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "string",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "5260:51:5",
- "typeDescriptions": {
- "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",
- "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""
- },
- "value": "Wrong collection type. Works only with NFT or RFT"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",
- "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""
- }
- ],
- "id": 2133,
- "name": "revert",
- "nodeType": "Identifier",
- "overloadedDeclarations": [
- 4294967277,
- 4294967277
- ],
- "referencedDeclaration": 4294967277,
- "src": "5253:6:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",
- "typeString": "function (string memory) pure"
- }
- },
- "id": 2135,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5253:59:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2136,
- "nodeType": "ExpressionStatement",
- "src": "5253:59:5"
- }
- ]
- },
- "id": 2138,
- "nodeType": "IfStatement",
- "src": "4766:551:5",
- "trueBody": {
- "id": 2132,
- "nodeType": "Block",
- "src": "4817:425:5",
- "statements": [
- {
- "assignments": [
- 2066
- ],
- "declarations": [
- {
- "constant": false,
- "id": 2066,
- "mutability": "mutable",
- "name": "nftCollection",
- "nameLocation": "4832:13:5",
- "nodeType": "VariableDeclaration",
- "scope": 2132,
- "src": "4822:23:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- },
- "typeName": {
- "id": 2065,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 2064,
- "name": "UniqueNFT",
- "nameLocations": [
- "4822:9:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 930,
- "src": "4822:9:5"
- },
- "referencedDeclaration": 930,
- "src": "4822:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 2070,
- "initialValue": {
- "arguments": [
- {
- "id": 2068,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1944,
- "src": "4858:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "id": 2067,
- "name": "UniqueNFT",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 930,
- "src": "4848:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_contract$_UniqueNFT_$930_$",
- "typeString": "type(contract UniqueNFT)"
- }
- },
- "id": 2069,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4848:22:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "4822:48:5"
- },
- {
- "expression": {
- "id": 2075,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftHandSide": {
- "id": 2071,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1987,
- "src": "4875:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "Assignment",
- "operator": "=",
- "rightHandSide": {
- "arguments": [],
- "expression": {
- "argumentTypes": [],
- "expression": {
- "id": 2072,
- "name": "nftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2066,
- "src": "4885:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "id": 2073,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "4899:11:5",
- "memberName": "nextTokenId",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 757,
- "src": "4885:25:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",
- "typeString": "function () view external returns (uint256)"
- }
- },
- "id": 2074,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4885:27:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "src": "4875:37:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 2076,
- "nodeType": "ExpressionStatement",
- "src": "4875:37:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "arguments": [
- {
- "id": 2082,
- "name": "this",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967268,
- "src": "4944:4:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- ],
- "id": 2081,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "4936:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2080,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "4936:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2083,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4936:13:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "expression": {
- "id": 2077,
- "name": "nftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2066,
- "src": "4917:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "id": 2079,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "4931:4:5",
- "memberName": "mint",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 671,
- "src": "4917:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$_t_uint256_$",
- "typeString": "function (address) external returns (uint256)"
- }
- },
- "id": 2084,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4917:33:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 2085,
- "nodeType": "ExpressionStatement",
- "src": "4917:33:5"
- },
- {
- "body": {
- "id": 2110,
- "nodeType": "Block",
- "src": "5002:86:5",
- "statements": [
- {
- "expression": {
- "arguments": [
- {
- "id": 2099,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1987,
- "src": "5034:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- {
- "expression": {
- "baseExpression": {
- "id": 2100,
- "name": "properties",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1950,
- "src": "5043:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",
- "typeString": "struct Property calldata[] calldata"
- }
- },
- "id": 2102,
- "indexExpression": {
- "id": 2101,
- "name": "i",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2087,
- "src": "5054:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "nodeType": "IndexAccess",
- "src": "5043:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_Property_$1762_calldata_ptr",
- "typeString": "struct Property calldata"
- }
- },
- "id": 2103,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "5057:3:5",
- "memberName": "key",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1759,
- "src": "5043:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_string_calldata_ptr",
- "typeString": "string calldata"
- }
- },
- {
- "expression": {
- "baseExpression": {
- "id": 2104,
- "name": "properties",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1950,
- "src": "5062:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",
- "typeString": "struct Property calldata[] calldata"
- }
- },
- "id": 2106,
- "indexExpression": {
- "id": 2105,
- "name": "i",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2087,
- "src": "5073:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "nodeType": "IndexAccess",
- "src": "5062:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_Property_$1762_calldata_ptr",
- "typeString": "struct Property calldata"
- }
- },
- "id": 2107,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "5076:5:5",
- "memberName": "value",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1761,
- "src": "5062:19:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes_calldata_ptr",
- "typeString": "bytes calldata"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- {
- "typeIdentifier": "t_string_calldata_ptr",
- "typeString": "string calldata"
- },
- {
- "typeIdentifier": "t_bytes_calldata_ptr",
- "typeString": "bytes calldata"
- }
- ],
- "expression": {
- "id": 2096,
- "name": "nftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2066,
- "src": "5008:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "id": 2098,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "5022:11:5",
- "memberName": "setProperty",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 328,
- "src": "5008:25:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$_t_string_memory_ptr_$_t_bytes_memory_ptr_$returns$__$",
- "typeString": "function (uint256,string memory,bytes memory) external"
- }
- },
- "id": 2108,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5008:74:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2109,
- "nodeType": "ExpressionStatement",
- "src": "5008:74:5"
- }
- ]
- },
- "condition": {
- "commonType": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "id": 2092,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftExpression": {
- "id": 2090,
- "name": "i",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2087,
- "src": "4975:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "BinaryOperation",
- "operator": "<",
- "rightExpression": {
- "id": 2091,
- "name": "propertiesLength",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1957,
- "src": "4979:16:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "src": "4975:20:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- "id": 2111,
- "initializationExpression": {
- "assignments": [
- 2087
- ],
- "declarations": [
- {
- "constant": false,
- "id": 2087,
- "mutability": "mutable",
- "name": "i",
- "nameLocation": "4968:1:5",
- "nodeType": "VariableDeclaration",
- "scope": 2111,
- "src": "4960:9:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 2086,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "4960:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 2089,
- "initialValue": {
- "hexValue": "30",
- "id": 2088,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "4972:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "4960:13:5"
- },
- "loopExpression": {
- "expression": {
- "id": 2094,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "nodeType": "UnaryOperation",
- "operator": "++",
- "prefix": true,
- "src": "4997:3:5",
- "subExpression": {
- "id": 2093,
- "name": "i",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2087,
- "src": "4999:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 2095,
- "nodeType": "ExpressionStatement",
- "src": "4997:3:5"
- },
- "nodeType": "ForStatement",
- "src": "4955:133:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "arguments": [
- {
- "arguments": [
- {
- "id": 2118,
- "name": "this",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967268,
- "src": "5155:4:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- ],
- "id": 2117,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "5147:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2116,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "5147:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2119,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5147:13:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "hexValue": "30",
- "id": 2120,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "5162:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 2115,
- "name": "NftCrossAccountId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 610,
- "src": "5129:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",
- "typeString": "type(struct EthCrossAccount storage pointer)"
- }
- },
- "id": 2121,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "structConstructorCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5129:35:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- }
- },
- {
- "arguments": [
- {
- "arguments": [
- {
- "hexValue": "30",
- "id": 2125,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "5196:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 2124,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "5188:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2123,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "5188:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2126,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5188:10:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 2127,
- "name": "_substrateReceiver",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1946,
- "src": "5200:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "id": 2122,
- "name": "NftCrossAccountId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 610,
- "src": "5170:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",
- "typeString": "type(struct EthCrossAccount storage pointer)"
- }
- },
- "id": 2128,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "structConstructorCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5170:49:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- }
- },
- {
- "id": 2129,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1987,
- "src": "5225:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- },
- {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "expression": {
- "id": 2112,
- "name": "nftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2066,
- "src": "5092:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "id": 2114,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "5106:17:5",
- "memberName": "transferFromCross",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 734,
- "src": "5092:31:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_uint256_$returns$__$",
- "typeString": "function (struct EthCrossAccount memory,struct EthCrossAccount memory,uint256) external"
- }
- },
- "id": 2130,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5092:145:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2131,
- "nodeType": "ExpressionStatement",
- "src": "5092:145:5"
- }
- ]
- }
- },
- "id": 2139,
- "nodeType": "IfStatement",
- "src": "4271:1046:5",
- "trueBody": {
- "id": 2060,
- "nodeType": "Block",
- "src": "4321:439:5",
- "statements": [
- {
- "assignments": [
- 1994
- ],
- "declarations": [
- {
- "constant": false,
- "id": 1994,
- "mutability": "mutable",
- "name": "rftCollection",
- "nameLocation": "4343:13:5",
- "nodeType": "VariableDeclaration",
- "scope": 2060,
- "src": "4326:30:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- },
- "typeName": {
- "id": 1993,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 1992,
- "name": "UniqueRefungible",
- "nameLocations": [
- "4326:16:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 1572,
- "src": "4326:16:5"
- },
- "referencedDeclaration": 1572,
- "src": "4326:16:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 1998,
- "initialValue": {
- "arguments": [
- {
- "id": 1996,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1944,
- "src": "4376:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "id": 1995,
- "name": "UniqueRefungible",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1572,
- "src": "4359:16:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_contract$_UniqueRefungible_$1572_$",
- "typeString": "type(contract UniqueRefungible)"
- }
- },
- "id": 1997,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4359:29:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "4326:62:5"
- },
- {
- "expression": {
- "id": 2003,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftHandSide": {
- "id": 1999,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1987,
- "src": "4393:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "Assignment",
- "operator": "=",
- "rightHandSide": {
- "arguments": [],
- "expression": {
- "argumentTypes": [],
- "expression": {
- "id": 2000,
- "name": "rftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1994,
- "src": "4403:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- }
- },
- "id": 2001,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "4417:11:5",
- "memberName": "nextTokenId",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1391,
- "src": "4403:25:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",
- "typeString": "function () view external returns (uint256)"
- }
- },
- "id": 2002,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4403:27:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "src": "4393:37:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 2004,
- "nodeType": "ExpressionStatement",
- "src": "4393:37:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "arguments": [
- {
- "id": 2010,
- "name": "this",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967268,
- "src": "4462:4:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- ],
- "id": 2009,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "4454:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2008,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "4454:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2011,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4454:13:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "expression": {
- "id": 2005,
- "name": "rftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1994,
- "src": "4435:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- }
- },
- "id": 2007,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "4449:4:5",
- "memberName": "mint",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1314,
- "src": "4435:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$_t_uint256_$",
- "typeString": "function (address) external returns (uint256)"
- }
- },
- "id": 2012,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4435:33:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 2013,
- "nodeType": "ExpressionStatement",
- "src": "4435:33:5"
- },
- {
- "body": {
- "id": 2038,
- "nodeType": "Block",
- "src": "4520:86:5",
- "statements": [
- {
- "expression": {
- "arguments": [
- {
- "id": 2027,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1987,
- "src": "4552:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- {
- "expression": {
- "baseExpression": {
- "id": 2028,
- "name": "properties",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1950,
- "src": "4561:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",
- "typeString": "struct Property calldata[] calldata"
- }
- },
- "id": 2030,
- "indexExpression": {
- "id": 2029,
- "name": "i",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2015,
- "src": "4572:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "nodeType": "IndexAccess",
- "src": "4561:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_Property_$1762_calldata_ptr",
- "typeString": "struct Property calldata"
- }
- },
- "id": 2031,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "4575:3:5",
- "memberName": "key",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1759,
- "src": "4561:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_string_calldata_ptr",
- "typeString": "string calldata"
- }
- },
- {
- "expression": {
- "baseExpression": {
- "id": 2032,
- "name": "properties",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1950,
- "src": "4580:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",
- "typeString": "struct Property calldata[] calldata"
- }
- },
- "id": 2034,
- "indexExpression": {
- "id": 2033,
- "name": "i",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2015,
- "src": "4591:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "nodeType": "IndexAccess",
- "src": "4580:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_Property_$1762_calldata_ptr",
- "typeString": "struct Property calldata"
- }
- },
- "id": 2035,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "4594:5:5",
- "memberName": "value",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1761,
- "src": "4580:19:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes_calldata_ptr",
- "typeString": "bytes calldata"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- {
- "typeIdentifier": "t_string_calldata_ptr",
- "typeString": "string calldata"
- },
- {
- "typeIdentifier": "t_bytes_calldata_ptr",
- "typeString": "bytes calldata"
- }
- ],
- "expression": {
- "id": 2024,
- "name": "rftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1994,
- "src": "4526:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- }
- },
- "id": 2026,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "4540:11:5",
- "memberName": "setProperty",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 971,
- "src": "4526:25:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$_t_string_memory_ptr_$_t_bytes_memory_ptr_$returns$__$",
- "typeString": "function (uint256,string memory,bytes memory) external"
- }
- },
- "id": 2036,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4526:74:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2037,
- "nodeType": "ExpressionStatement",
- "src": "4526:74:5"
- }
- ]
- },
- "condition": {
- "commonType": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "id": 2020,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftExpression": {
- "id": 2018,
- "name": "i",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2015,
- "src": "4493:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "BinaryOperation",
- "operator": "<",
- "rightExpression": {
- "id": 2019,
- "name": "propertiesLength",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1957,
- "src": "4497:16:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "src": "4493:20:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- "id": 2039,
- "initializationExpression": {
- "assignments": [
- 2015
- ],
- "declarations": [
- {
- "constant": false,
- "id": 2015,
- "mutability": "mutable",
- "name": "i",
- "nameLocation": "4486:1:5",
- "nodeType": "VariableDeclaration",
- "scope": 2039,
- "src": "4478:9:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 2014,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "4478:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 2017,
- "initialValue": {
- "hexValue": "30",
- "id": 2016,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "4490:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "4478:13:5"
- },
- "loopExpression": {
- "expression": {
- "id": 2022,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "nodeType": "UnaryOperation",
- "operator": "++",
- "prefix": true,
- "src": "4515:3:5",
- "subExpression": {
- "id": 2021,
- "name": "i",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2015,
- "src": "4517:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 2023,
- "nodeType": "ExpressionStatement",
- "src": "4515:3:5"
- },
- "nodeType": "ForStatement",
- "src": "4473:133:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "arguments": [
- {
- "arguments": [
- {
- "id": 2046,
- "name": "this",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967268,
- "src": "4673:4:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- ],
- "id": 2045,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "4665:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2044,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "4665:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2047,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4665:13:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "hexValue": "30",
- "id": 2048,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "4680:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 2043,
- "name": "RftCrossAccountId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1253,
- "src": "4647:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$1253_storage_ptr_$",
- "typeString": "type(struct EthCrossAccount storage pointer)"
- }
- },
- "id": 2049,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "structConstructorCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4647:35:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- }
- },
- {
- "arguments": [
- {
- "arguments": [
- {
- "hexValue": "30",
- "id": 2053,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "4714:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 2052,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "4706:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2051,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "4706:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2054,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4706:10:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 2055,
- "name": "_substrateReceiver",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1946,
- "src": "4718:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "id": 2050,
- "name": "RftCrossAccountId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1253,
- "src": "4688:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$1253_storage_ptr_$",
- "typeString": "type(struct EthCrossAccount storage pointer)"
- }
- },
- "id": 2056,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "structConstructorCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4688:49:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- }
- },
- {
- "id": 2057,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1987,
- "src": "4743:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- },
- {
- "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "expression": {
- "id": 2040,
- "name": "rftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1994,
- "src": "4610:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueRefungible_$1572",
- "typeString": "contract UniqueRefungible"
- }
- },
- "id": 2042,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "4624:17:5",
- "memberName": "transferFromCross",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1368,
- "src": "4610:31:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_struct$_EthCrossAccount_$1253_memory_ptr_$_t_struct$_EthCrossAccount_$1253_memory_ptr_$_t_uint256_$returns$__$",
- "typeString": "function (struct EthCrossAccount memory,struct EthCrossAccount memory,uint256) external"
- }
- },
- "id": 2058,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "4610:145:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2059,
- "nodeType": "ExpressionStatement",
- "src": "4610:145:5"
- }
- ]
- }
- },
- {
- "eventCall": {
- "arguments": [
- {
- "arguments": [
- {
- "hexValue": "30",
- "id": 2143,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "5396:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 2142,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "5388:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2141,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "5388:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2144,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5388:10:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 2145,
- "name": "_substrateReceiver",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1946,
- "src": "5400:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- {
- "id": 2146,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1944,
- "src": "5420:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 2147,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1987,
- "src": "5433:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "id": 2140,
- "name": "MintToSub",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1811,
- "src": "5378:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_address_$_t_uint256_$returns$__$",
- "typeString": "function (address,uint256,address,uint256)"
- }
- },
- "id": 2148,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5378:63:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2149,
- "nodeType": "EmitStatement",
- "src": "5373:68:5"
- }
- ]
- },
- "functionSelector": "440dff9d",
- "id": 2151,
- "implemented": true,
- "kind": "function",
- "modifiers": [
- {
- "arguments": [
- {
- "id": 1953,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1944,
- "src": "3842:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "id": 1954,
- "kind": "modifierInvocation",
- "modifierName": {
- "id": 1952,
- "name": "checkRestrictions",
- "nameLocations": [
- "3824:17:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 1800,
- "src": "3824:17:5"
- },
- "nodeType": "ModifierInvocation",
- "src": "3824:30:5"
- }
- ],
- "name": "mintToSubstrateWithProperty",
- "nameLocation": "3697:27:5",
- "nodeType": "FunctionDefinition",
- "parameters": {
- "id": 1951,
- "nodeType": "ParameterList",
- "parameters": [
- {
- "constant": false,
- "id": 1944,
- "mutability": "mutable",
- "name": "_collection",
- "nameLocation": "3736:11:5",
- "nodeType": "VariableDeclaration",
- "scope": 2151,
- "src": "3728:19:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- "typeName": {
- "id": 1943,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "3728:7:5",
- "stateMutability": "nonpayable",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- "visibility": "internal"
- },
- {
- "constant": false,
- "id": 1946,
- "mutability": "mutable",
- "name": "_substrateReceiver",
- "nameLocation": "3759:18:5",
- "nodeType": "VariableDeclaration",
- "scope": 2151,
- "src": "3751:26:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 1945,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "3751:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- },
- {
- "constant": false,
- "id": 1950,
- "mutability": "mutable",
- "name": "properties",
- "nameLocation": "3801:10:5",
- "nodeType": "VariableDeclaration",
- "scope": 2151,
- "src": "3781:30:5",
- "stateVariable": false,
- "storageLocation": "calldata",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",
- "typeString": "struct Property[]"
- },
- "typeName": {
- "baseType": {
- "id": 1948,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 1947,
- "name": "Property",
- "nameLocations": [
- "3781:8:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 1762,
- "src": "3781:8:5"
- },
- "referencedDeclaration": 1762,
- "src": "3781:8:5",
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_Property_$1762_storage_ptr",
- "typeString": "struct Property"
- }
- },
- "id": 1949,
- "nodeType": "ArrayTypeName",
- "src": "3781:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Property_$1762_storage_$dyn_storage_ptr",
- "typeString": "struct Property[]"
- }
- },
- "visibility": "internal"
- }
- ],
- "src": "3724:90:5"
- },
- "returnParameters": {
- "id": 1955,
- "nodeType": "ParameterList",
- "parameters": [],
- "src": "3855:0:5"
- },
- "scope": 2269,
- "src": "3688:1757:5",
- "stateMutability": "nonpayable",
- "virtual": false,
- "visibility": "external"
- },
- {
- "body": {
- "id": 2267,
- "nodeType": "Block",
- "src": "5619:885:5",
- "statements": [
- {
- "assignments": [
- 2166
- ],
- "declarations": [
- {
- "constant": false,
- "id": 2166,
- "mutability": "mutable",
- "name": "propertiesLength",
- "nameLocation": "5631:16:5",
- "nodeType": "VariableDeclaration",
- "scope": 2267,
- "src": "5623:24:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 2165,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "5623:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 2169,
- "initialValue": {
- "expression": {
- "id": 2167,
- "name": "_properties",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2159,
- "src": "5650:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Tuple21_$620_calldata_ptr_$dyn_calldata_ptr",
- "typeString": "struct Tuple21 calldata[] calldata"
- }
- },
- "id": 2168,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "5662:6:5",
- "memberName": "length",
- "nodeType": "MemberAccess",
- "src": "5650:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "5623:45:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "commonType": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "id": 2173,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftExpression": {
- "id": 2171,
- "name": "propertiesLength",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2166,
- "src": "5680:16:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "BinaryOperation",
- "operator": ">",
- "rightExpression": {
- "hexValue": "30",
- "id": 2172,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "5699:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- },
- "src": "5680:20:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- {
- "hexValue": "50726f70657269657320697320656d707479",
- "id": 2174,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "string",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "5702:20:5",
- "typeDescriptions": {
- "typeIdentifier": "t_stringliteral_3c3e0098388726dfb54bb3f478f469c7fc9acc2aa2937bb94957726165b135a1",
- "typeString": "literal_string \"Properies is empty\""
- },
- "value": "Properies is empty"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- },
- {
- "typeIdentifier": "t_stringliteral_3c3e0098388726dfb54bb3f478f469c7fc9acc2aa2937bb94957726165b135a1",
- "typeString": "literal_string \"Properies is empty\""
- }
- ],
- "id": 2170,
- "name": "require",
- "nodeType": "Identifier",
- "overloadedDeclarations": [
- 4294967278,
- 4294967278
- ],
- "referencedDeclaration": 4294967278,
- "src": "5672:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
- "typeString": "function (bool,string memory) pure"
- }
- },
- "id": 2175,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5672:51:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2176,
- "nodeType": "ExpressionStatement",
- "src": "5672:51:5"
- },
- {
- "assignments": [
- 2179
- ],
- "declarations": [
- {
- "constant": false,
- "id": 2179,
- "mutability": "mutable",
- "name": "commonContract",
- "nameLocation": "5739:14:5",
- "nodeType": "VariableDeclaration",
- "scope": 2267,
- "src": "5728:25:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- },
- "typeName": {
- "id": 2178,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 2177,
- "name": "Collection",
- "nameLocations": [
- "5728:10:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 1248,
- "src": "5728:10:5"
- },
- "referencedDeclaration": 1248,
- "src": "5728:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 2183,
- "initialValue": {
- "arguments": [
- {
- "id": 2181,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2153,
- "src": "5767:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "id": 2180,
- "name": "Collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1248,
- "src": "5756:10:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_contract$_Collection_$1248_$",
- "typeString": "type(contract Collection)"
- }
- },
- "id": 2182,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5756:23:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "5728:51:5"
- },
- {
- "assignments": [
- 2185
- ],
- "declarations": [
- {
- "constant": false,
- "id": 2185,
- "mutability": "mutable",
- "name": "collectionType",
- "nameLocation": "5791:14:5",
- "nodeType": "VariableDeclaration",
- "scope": 2267,
- "src": "5783:22:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "typeName": {
- "id": 2184,
- "name": "bytes32",
- "nodeType": "ElementaryTypeName",
- "src": "5783:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 2194,
- "initialValue": {
- "arguments": [
- {
- "arguments": [
- {
- "arguments": [],
- "expression": {
- "argumentTypes": [],
- "expression": {
- "id": 2189,
- "name": "commonContract",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2179,
- "src": "5824:14:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_Collection_$1248",
- "typeString": "contract Collection"
- }
- },
- "id": 2190,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "5839:20:5",
- "memberName": "uniqueCollectionType",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 1219,
- "src": "5824:35:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_view$__$returns$_t_string_memory_ptr_$",
- "typeString": "function () view external returns (string memory)"
- }
- },
- "id": 2191,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5824:37:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_string_memory_ptr",
- "typeString": "string memory"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_string_memory_ptr",
- "typeString": "string memory"
- }
- ],
- "id": 2188,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "5818:5:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
- "typeString": "type(bytes storage pointer)"
- },
- "typeName": {
- "id": 2187,
- "name": "bytes",
- "nodeType": "ElementaryTypeName",
- "src": "5818:5:5",
- "typeDescriptions": {}
- }
- },
- "id": 2192,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5818:44:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bytes_memory_ptr",
- "typeString": "bytes memory"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_bytes_memory_ptr",
- "typeString": "bytes memory"
- }
- ],
- "id": 2186,
- "name": "keccak256",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967288,
- "src": "5808:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
- "typeString": "function (bytes memory) pure returns (bytes32)"
- }
- },
- "id": 2193,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "5808:55:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "5783:80:5"
- },
- {
- "assignments": [
- 2196
- ],
- "declarations": [
- {
- "constant": false,
- "id": 2196,
- "mutability": "mutable",
- "name": "tokenId",
- "nameLocation": "5875:7:5",
- "nodeType": "VariableDeclaration",
- "scope": 2267,
- "src": "5867:15:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 2195,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "5867:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 2197,
- "nodeType": "VariableDeclarationStatement",
- "src": "5867:15:5"
- },
- {
- "condition": {
- "commonType": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "id": 2200,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftExpression": {
- "id": 2198,
- "name": "collectionType",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2185,
- "src": "5891:14:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "nodeType": "BinaryOperation",
- "operator": "==",
- "rightExpression": {
- "id": 2199,
- "name": "REFUNGIBLE_COLLECTION_TYPE",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1770,
- "src": "5909:26:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "src": "5891:44:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- "falseBody": {
- "condition": {
- "commonType": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- },
- "id": 2204,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftExpression": {
- "id": 2202,
- "name": "collectionType",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2185,
- "src": "5949:14:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "nodeType": "BinaryOperation",
- "operator": "==",
- "rightExpression": {
- "id": 2203,
- "name": "NONFUNGIBLE_COLLECTION_TYPE",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1778,
- "src": "5967:27:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bytes32",
- "typeString": "bytes32"
- }
- },
- "src": "5949:45:5",
- "typeDescriptions": {
- "typeIdentifier": "t_bool",
- "typeString": "bool"
- }
- },
- "falseBody": {
- "id": 2254,
- "nodeType": "Block",
- "src": "6359:69:5",
- "statements": [
- {
- "expression": {
- "arguments": [
- {
- "hexValue": "57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c792077697468204e4654206f7220524654",
- "id": 2251,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "string",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "6371:51:5",
- "typeDescriptions": {
- "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",
- "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""
- },
- "value": "Wrong collection type. Works only with NFT or RFT"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",
- "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""
- }
- ],
- "id": 2250,
- "name": "revert",
- "nodeType": "Identifier",
- "overloadedDeclarations": [
- 4294967277,
- 4294967277
- ],
- "referencedDeclaration": 4294967277,
- "src": "6364:6:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",
- "typeString": "function (string memory) pure"
- }
- },
- "id": 2252,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6364:59:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2253,
- "nodeType": "ExpressionStatement",
- "src": "6364:59:5"
- }
- ]
- },
- "id": 2255,
- "nodeType": "IfStatement",
- "src": "5945:483:5",
- "trueBody": {
- "id": 2249,
- "nodeType": "Block",
- "src": "5996:357:5",
- "statements": [
- {
- "assignments": [
- 2207
- ],
- "declarations": [
- {
- "constant": false,
- "id": 2207,
- "mutability": "mutable",
- "name": "nftCollection",
- "nameLocation": "6011:13:5",
- "nodeType": "VariableDeclaration",
- "scope": 2249,
- "src": "6001:23:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- },
- "typeName": {
- "id": 2206,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 2205,
- "name": "UniqueNFT",
- "nameLocations": [
- "6001:9:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 930,
- "src": "6001:9:5"
- },
- "referencedDeclaration": 930,
- "src": "6001:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "visibility": "internal"
- }
- ],
- "id": 2211,
- "initialValue": {
- "arguments": [
- {
- "id": 2209,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2153,
- "src": "6037:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "id": 2208,
- "name": "UniqueNFT",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 930,
- "src": "6027:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_contract$_UniqueNFT_$930_$",
- "typeString": "type(contract UniqueNFT)"
- }
- },
- "id": 2210,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6027:22:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "nodeType": "VariableDeclarationStatement",
- "src": "6001:48:5"
- },
- {
- "expression": {
- "id": 2220,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "leftHandSide": {
- "id": 2212,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2196,
- "src": "6099:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "nodeType": "Assignment",
- "operator": "=",
- "rightHandSide": {
- "arguments": [
- {
- "arguments": [
- {
- "id": 2217,
- "name": "this",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967268,
- "src": "6136:4:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- ],
- "id": 2216,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "6128:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2215,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "6128:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2218,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6128:13:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- ],
- "expression": {
- "id": 2213,
- "name": "nftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2207,
- "src": "6109:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "id": 2214,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "6123:4:5",
- "memberName": "mint",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 671,
- "src": "6109:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$_t_uint256_$",
- "typeString": "function (address) external returns (uint256)"
- }
- },
- "id": 2219,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6109:33:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "src": "6099:43:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "id": 2221,
- "nodeType": "ExpressionStatement",
- "src": "6099:43:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "id": 2225,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2196,
- "src": "6176:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- {
- "id": 2226,
- "name": "_properties",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2159,
- "src": "6185:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Tuple21_$620_calldata_ptr_$dyn_calldata_ptr",
- "typeString": "struct Tuple21 calldata[] calldata"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- {
- "typeIdentifier": "t_array$_t_struct$_Tuple21_$620_calldata_ptr_$dyn_calldata_ptr",
- "typeString": "struct Tuple21 calldata[] calldata"
- }
- ],
- "expression": {
- "id": 2222,
- "name": "nftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2207,
- "src": "6148:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "id": 2224,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "6162:13:5",
- "memberName": "setProperties",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 338,
- "src": "6148:27:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$_t_array$_t_struct$_Tuple21_$620_memory_ptr_$dyn_memory_ptr_$returns$__$",
- "typeString": "function (uint256,struct Tuple21 memory[] memory) external"
- }
- },
- "id": 2227,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6148:49:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2228,
- "nodeType": "ExpressionStatement",
- "src": "6148:49:5"
- },
- {
- "expression": {
- "arguments": [
- {
- "arguments": [
- {
- "arguments": [
- {
- "id": 2235,
- "name": "this",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 4294967268,
- "src": "6266:4:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",
- "typeString": "contract EvmToSubstrate"
- }
- ],
- "id": 2234,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "6258:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2233,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "6258:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2236,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6258:13:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "hexValue": "30",
- "id": 2237,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "6273:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 2232,
- "name": "NftCrossAccountId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 610,
- "src": "6240:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",
- "typeString": "type(struct EthCrossAccount storage pointer)"
- }
- },
- "id": 2238,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "structConstructorCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6240:35:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- }
- },
- {
- "arguments": [
- {
- "arguments": [
- {
- "hexValue": "30",
- "id": 2242,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "6307:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 2241,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "6299:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2240,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "6299:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2243,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6299:10:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 2244,
- "name": "_substrateReceiver",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2155,
- "src": "6311:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "id": 2239,
- "name": "NftCrossAccountId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 610,
- "src": "6281:17:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",
- "typeString": "type(struct EthCrossAccount storage pointer)"
- }
- },
- "id": 2245,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "structConstructorCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6281:49:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- }
- },
- {
- "id": 2246,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2196,
- "src": "6336:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- },
- {
- "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",
- "typeString": "struct EthCrossAccount memory"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "expression": {
- "id": 2229,
- "name": "nftCollection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2207,
- "src": "6203:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_contract$_UniqueNFT_$930",
- "typeString": "contract UniqueNFT"
- }
- },
- "id": 2231,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "lValueRequested": false,
- "memberLocation": "6217:17:5",
- "memberName": "transferFromCross",
- "nodeType": "MemberAccess",
- "referencedDeclaration": 734,
- "src": "6203:31:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_external_nonpayable$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_uint256_$returns$__$",
- "typeString": "function (struct EthCrossAccount memory,struct EthCrossAccount memory,uint256) external"
- }
- },
- "id": 2247,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6203:145:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2248,
- "nodeType": "ExpressionStatement",
- "src": "6203:145:5"
- }
- ]
- }
- },
- "id": 2256,
- "nodeType": "IfStatement",
- "src": "5887:541:5",
- "trueBody": {
- "id": 2201,
- "nodeType": "Block",
- "src": "5937:2:5",
- "statements": []
- }
- },
- {
- "eventCall": {
- "arguments": [
- {
- "arguments": [
- {
- "hexValue": "30",
- "id": 2260,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "number",
- "lValueRequested": false,
- "nodeType": "Literal",
- "src": "6455:1:5",
- "typeDescriptions": {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- },
- "value": "0"
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_rational_0_by_1",
- "typeString": "int_const 0"
- }
- ],
- "id": 2259,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "lValueRequested": false,
- "nodeType": "ElementaryTypeNameExpression",
- "src": "6447:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_type$_t_address_$",
- "typeString": "type(address)"
- },
- "typeName": {
- "id": 2258,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "6447:7:5",
- "typeDescriptions": {}
- }
- },
- "id": 2261,
- "isConstant": false,
- "isLValue": false,
- "isPure": true,
- "kind": "typeConversion",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6447:10:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 2262,
- "name": "_substrateReceiver",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2155,
- "src": "6459:18:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- {
- "id": 2263,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2153,
- "src": "6479:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- {
- "id": 2264,
- "name": "tokenId",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2196,
- "src": "6492:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- }
- ],
- "expression": {
- "argumentTypes": [
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- ],
- "id": 2257,
- "name": "MintToSub",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 1811,
- "src": "6437:9:5",
- "typeDescriptions": {
- "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_address_$_t_uint256_$returns$__$",
- "typeString": "function (address,uint256,address,uint256)"
- }
- },
- "id": 2265,
- "isConstant": false,
- "isLValue": false,
- "isPure": false,
- "kind": "functionCall",
- "lValueRequested": false,
- "nameLocations": [],
- "names": [],
- "nodeType": "FunctionCall",
- "src": "6437:63:5",
- "tryCall": false,
- "typeDescriptions": {
- "typeIdentifier": "t_tuple$__$",
- "typeString": "tuple()"
- }
- },
- "id": 2266,
- "nodeType": "EmitStatement",
- "src": "6432:68:5"
- }
- ]
- },
- "functionSelector": "3a0dbb1a",
- "id": 2268,
- "implemented": true,
- "kind": "function",
- "modifiers": [
- {
- "arguments": [
- {
- "id": 2162,
- "name": "_collection",
- "nodeType": "Identifier",
- "overloadedDeclarations": [],
- "referencedDeclaration": 2153,
- "src": "5606:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- }
- ],
- "id": 2163,
- "kind": "modifierInvocation",
- "modifierName": {
- "id": 2161,
- "name": "checkRestrictions",
- "nameLocations": [
- "5588:17:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 1800,
- "src": "5588:17:5"
- },
- "nodeType": "ModifierInvocation",
- "src": "5588:30:5"
- }
- ],
- "name": "mintToSubstrateBulkProperty",
- "nameLocation": "5457:27:5",
- "nodeType": "FunctionDefinition",
- "parameters": {
- "id": 2160,
- "nodeType": "ParameterList",
- "parameters": [
- {
- "constant": false,
- "id": 2153,
- "mutability": "mutable",
- "name": "_collection",
- "nameLocation": "5496:11:5",
- "nodeType": "VariableDeclaration",
- "scope": 2268,
- "src": "5488:19:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- },
- "typeName": {
- "id": 2152,
- "name": "address",
- "nodeType": "ElementaryTypeName",
- "src": "5488:7:5",
- "stateMutability": "nonpayable",
- "typeDescriptions": {
- "typeIdentifier": "t_address",
- "typeString": "address"
- }
- },
- "visibility": "internal"
- },
- {
- "constant": false,
- "id": 2155,
- "mutability": "mutable",
- "name": "_substrateReceiver",
- "nameLocation": "5519:18:5",
- "nodeType": "VariableDeclaration",
- "scope": 2268,
- "src": "5511:26:5",
- "stateVariable": false,
- "storageLocation": "default",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- },
- "typeName": {
- "id": 2154,
- "name": "uint256",
- "nodeType": "ElementaryTypeName",
- "src": "5511:7:5",
- "typeDescriptions": {
- "typeIdentifier": "t_uint256",
- "typeString": "uint256"
- }
- },
- "visibility": "internal"
- },
- {
- "constant": false,
- "id": 2159,
- "mutability": "mutable",
- "name": "_properties",
- "nameLocation": "5564:11:5",
- "nodeType": "VariableDeclaration",
- "scope": 2268,
- "src": "5541:34:5",
- "stateVariable": false,
- "storageLocation": "calldata",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Tuple21_$620_calldata_ptr_$dyn_calldata_ptr",
- "typeString": "struct Tuple21[]"
- },
- "typeName": {
- "baseType": {
- "id": 2157,
- "nodeType": "UserDefinedTypeName",
- "pathNode": {
- "id": 2156,
- "name": "NftProperty",
- "nameLocations": [
- "5541:11:5"
- ],
- "nodeType": "IdentifierPath",
- "referencedDeclaration": 620,
- "src": "5541:11:5"
- },
- "referencedDeclaration": 620,
- "src": "5541:11:5",
- "typeDescriptions": {
- "typeIdentifier": "t_struct$_Tuple21_$620_storage_ptr",
- "typeString": "struct Tuple21"
- }
- },
- "id": 2158,
- "nodeType": "ArrayTypeName",
- "src": "5541:13:5",
- "typeDescriptions": {
- "typeIdentifier": "t_array$_t_struct$_Tuple21_$620_storage_$dyn_storage_ptr",
- "typeString": "struct Tuple21[]"
- }
- },
- "visibility": "internal"
- }
- ],
- "src": "5484:94:5"
- },
- "returnParameters": {
- "id": 2164,
- "nodeType": "ParameterList",
- "parameters": [],
- "src": "5619:0:5"
- },
- "scope": 2269,
- "src": "5448:1056:5",
- "stateMutability": "nonpayable",
- "virtual": false,
- "visibility": "external"
- }
- ],
- "scope": 2270,
- "src": "673:5833:5",
- "usedErrors": []
- }
- ],
- "src": "44:6463:5"
- },
- "functionHashes": {
- "mintToSubstrate(address,uint256)": "7a8d9786",
- "mintToSubstrateBulkProperty(address,uint256,(string,bytes)[])": "3a0dbb1a",
- "mintToSubstrateWithProperty(address,uint256,(string,bytes)[])": "440dff9d"
- },
- "gasEstimates": {
- "creation": {
- "codeDepositCost": "912800",
- "executionCost": "948",
- "totalCost": "913748"
- },
- "external": {
- "mintToSubstrate(address,uint256)": "infinite",
- "mintToSubstrateBulkProperty(address,uint256,(string,bytes)[])": "infinite",
- "mintToSubstrateWithProperty(address,uint256,(string,bytes)[])": "infinite"
- }
- }
-}
\ No newline at end of file
bin/tests/src/eth/evmToSubstrate/EvmToSubstrateHelper-solc-output.jsondiffbeforeafterbothno changes
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -116,6 +116,7 @@
"@polkadot/util-crypto": "10.1.11",
"chai-as-promised": "^7.1.1",
"chai-like": "^1.1.1",
+ "csv-writer": "^1.6.0",
"find-process": "^1.4.7",
"solc": "0.8.17",
"web3": "^1.8.0"
tests/src/benchmarks/mintFeeBench/feeBench.tsdiffbeforeafterboth--- /dev/null
+++ b/tests/src/benchmarks/mintFeeBench/feeBench.ts
@@ -0,0 +1,418 @@
+import {EthUniqueHelper, usingEthPlaygrounds} from '../../eth/util';
+import {readFile} from 'fs/promises';
+import {ContractImports} from '../../eth/util/playgrounds/types';
+import {
+ ICrossAccountId,
+ ITokenPropertyPermission,
+} from '../../util/playgrounds/types';
+import {IKeyringPair} from '@polkadot/types/types';
+import {UniqueNFTCollection} from '../../util/playgrounds/unique';
+import {Contract} from 'web3-eth-contract';
+import {createObjectCsvWriter} from 'csv-writer';
+
+const CONTRACT_IMPORT: ContractImports[] = [
+ {
+ fsPath: `${__dirname}/../../eth/api/CollectionHelpers.sol`,
+ solPath: 'eth/api/CollectionHelpers.sol',
+ },
+ {
+ fsPath: `${__dirname}/../../eth/api/ContractHelpers.sol`,
+ solPath: 'eth/api/ContractHelpers.sol',
+ },
+ {
+ fsPath: `${__dirname}/../../eth/api/UniqueRefungibleToken.sol`,
+ solPath: 'eth/api/UniqueRefungibleToken.sol',
+ },
+ {
+ fsPath: `${__dirname}/../../eth/api/UniqueRefungible.sol`,
+ solPath: 'eth/api/UniqueRefungible.sol',
+ },
+ {
+ fsPath: `${__dirname}/../../eth/api/UniqueNFT.sol`,
+ solPath: 'eth/api/UniqueNFT.sol',
+ },
+];
+
+const PROPERTIES = Array(40)
+ .fill(0)
+ .map((_, i) => {
+ return {
+ key: `key_${i}`,
+ value: Uint8Array.from(Buffer.from(`value_${i}`)),
+ };
+ });
+
+const PERMISSIONS: ITokenPropertyPermission[] = PROPERTIES.map((p) => {
+ return {
+ key: p.key,
+ permission: {
+ tokenOwner: true,
+ collectionAdmin: true,
+ mutable: true,
+ },
+ };
+});
+
+interface IBenchmarkResultForProp {
+ propertiesNumber: number;
+ substrateFee: number;
+ ethFee: number;
+ ethBulkFee: number;
+ evmProxyContractFee: number;
+ evmProxyContractBulkFee: number;
+}
+
+const main = async () => {
+ const csvWriter = createObjectCsvWriter({
+ path: 'properties.csv',
+ header: [
+ 'propertiesNumber',
+ 'substrateFee',
+ 'ethFee',
+ 'ethBulkFee',
+ 'evmProxyContractFee',
+ 'evmProxyContractBulkFee',
+ ],
+ });
+
+ await usingEthPlaygrounds(async (helper, privateKey) => {
+ const CONTRACT_SOURCE = (
+ await readFile(`${__dirname}/proxyContract.sol`)
+ ).toString();
+
+ const donor = await privateKey('//Alice'); // Seed from account with balance on this network
+ const myAccount = await privateKey('//Bob'); // replace with account from polkadot extension
+ const ethSigner = await helper.eth.createAccountWithBalance(donor, 100n);
+
+ const contract = await helper.ethContract.deployByCode(
+ ethSigner,
+ 'ProxyMint',
+ CONTRACT_SOURCE,
+ CONTRACT_IMPORT,
+ );
+
+ const fees = await benchMintFee(helper, privateKey, contract);
+ console.log(fees);
+
+ const result: IBenchmarkResultForProp[] = [];
+
+ for (let i = 1; i <= 20; i++) {
+ result.push(await benchMintWithProperties(helper, privateKey, contract, {
+ propertiesNumber: i,
+ }));
+ }
+
+ await csvWriter.writeRecords(result);
+
+ console.table(result);
+ });
+};
+
+main()
+ .then(() => process.exit(0))
+ .catch((e) => {
+ console.log(e);
+ process.exit(1);
+ });
+
+async function createCollectionForBenchmarks(
+ helper: EthUniqueHelper,
+ privateKey: (seed: string) => Promise<IKeyringPair>,
+ ethSigner: string,
+ proxyContract: string,
+ permissions: ITokenPropertyPermission[],
+) {
+ const donor = await privateKey('//Alice');
+
+ const collection = await helper.nft.mintCollection(donor, {
+ name: 'test mintToSubstrate',
+ description: 'EVMHelpers',
+ tokenPrefix: 'ap',
+ tokenPropertyPermissions: [
+ {
+ key: 'url',
+ permission: {
+ tokenOwner: true,
+ collectionAdmin: true,
+ mutable: true,
+ },
+ },
+ ],
+ limits: {sponsorTransferTimeout: 0, sponsorApproveTimeout: 0},
+ permissions: {mintMode: true},
+ });
+
+ await collection.addToAllowList(donor, {
+ Ethereum: helper.address.substrateToEth(donor.address),
+ });
+ await collection.addToAllowList(donor, {Substrate: donor.address});
+ await collection.addAdmin(donor, {Ethereum: ethSigner});
+ await collection.addAdmin(donor, {
+ Ethereum: helper.address.substrateToEth(donor.address),
+ });
+ await collection.addToAllowList(donor, {Ethereum: proxyContract});
+ await collection.addAdmin(donor, {Ethereum: proxyContract});
+ await collection.setTokenPropertyPermissions(donor, permissions);
+
+ return collection;
+}
+
+async function benchMintFee(
+ helper: EthUniqueHelper,
+ privateKey: (seed: string) => Promise<IKeyringPair>,
+ proxyContract: Contract,
+): Promise<{
+ substrateFee: number;
+ ethFee: number;
+ evmProxyContractFee: number;
+}> {
+ const donor = await privateKey('//Alice');
+ const substrateReceiver = await privateKey('//Bob');
+ const ethSigner = await helper.eth.createAccountWithBalance(donor, 100n);
+
+ const nominal = helper.balance.getOneTokenNominal();
+
+ await helper.eth.transferBalanceFromSubstrate(
+ donor,
+ proxyContract.options.address,
+ 100n,
+ );
+
+ const collection = await createCollectionForBenchmarks(
+ helper,
+ privateKey,
+ ethSigner,
+ proxyContract.options.address,
+ PERMISSIONS,
+ );
+
+ const substrateFee = await helper.arrange.calculcateFee(
+ {Substrate: donor.address},
+ () => collection.mintToken(donor, {Substrate: substrateReceiver.address}),
+ );
+
+ const collectionEthAddress = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const collectionContract = helper.ethNativeContract.collection(
+ collectionEthAddress,
+ 'nft',
+ );
+
+ const receiverEthAddress = helper.address.substrateToEth(substrateReceiver.address);
+
+ const encodedCall = collectionContract.methods
+ .mint(receiverEthAddress)
+ .encodeABI();
+
+ const ethFee = await helper.arrange.calculcateFee(
+ {Substrate: donor.address},
+ async () => {
+ await helper.eth.sendEVM(
+ donor,
+ collectionContract.options.address,
+ encodedCall,
+ '0',
+ );
+ },
+ );
+
+ const evmProxyContractFee = await helper.arrange.calculcateFee(
+ {Ethereum: ethSigner},
+ async () => {
+ await proxyContract.methods
+ .mintToSubstrate(
+ helper.ethAddress.fromCollectionId(collection.collectionId),
+ substrateReceiver.addressRaw,
+ )
+ .send({from: ethSigner});
+ },
+ );
+
+ return {
+ substrateFee: convertToTokens(substrateFee, nominal),
+ ethFee: convertToTokens(ethFee, nominal),
+ evmProxyContractFee: convertToTokens(evmProxyContractFee, nominal),
+ };
+}
+
+async function benchMintWithProperties(
+ helper: EthUniqueHelper,
+ privateKey: (seed: string) => Promise<IKeyringPair>,
+ proxyContract: Contract,
+ setup: { propertiesNumber: number },
+): Promise<IBenchmarkResultForProp> {
+ const donor = await privateKey('//Alice'); // Seed from account with balance on this network
+ const ethSigner = await helper.eth.createAccountWithBalance(donor, 100n);
+
+ const susbstrateReceiver = await privateKey('//Bob');
+ const receiverEthAddress = helper.address.substrateToEth(susbstrateReceiver.address);
+
+ const nominal = helper.balance.getOneTokenNominal();
+
+ const substrateFee = await calculateFeeNftMintWithProperties(
+ helper,
+ privateKey,
+ {Substrate: donor.address},
+ ethSigner,
+ proxyContract.options.address,
+ async (collection) => {
+ await collection.mintToken(
+ donor,
+ {Substrate: susbstrateReceiver.address},
+ PROPERTIES.slice(0, setup.propertiesNumber).map((p) => {
+ return {key: p.key, value: Buffer.from(p.value).toString()};
+ }),
+ );
+ },
+ );
+
+ const ethFee = await calculateFeeNftMintWithProperties(
+ helper,
+ privateKey,
+ {Substrate: donor.address},
+ ethSigner,
+ proxyContract.options.address,
+ async (collection) => {
+ const evmContract = helper.ethNativeContract.collection(
+ helper.ethAddress.fromCollectionId(collection.collectionId),
+ 'nft',
+ );
+
+ const subTokenId = await evmContract.methods.nextTokenId().call();
+
+ let encodedCall = evmContract.methods
+ .mint(receiverEthAddress)
+ .encodeABI();
+
+ await helper.eth.sendEVM(
+ donor,
+ evmContract.options.address,
+ encodedCall,
+ '0',
+ );
+
+ for (const val of PROPERTIES.slice(0, setup.propertiesNumber)) {
+ encodedCall = await evmContract.methods
+ .setProperty(subTokenId, val.key, Buffer.from(val.value))
+ .encodeABI();
+
+ await helper.eth.sendEVM(
+ donor,
+ evmContract.options.address,
+ encodedCall,
+ '0',
+ );
+ }
+ },
+ );
+
+ const ethBulkFee = await calculateFeeNftMintWithProperties(
+ helper,
+ privateKey,
+ {Substrate: donor.address},
+ ethSigner,
+ proxyContract.options.address,
+ async (collection) => {
+ const evmContract = helper.ethNativeContract.collection(
+ helper.ethAddress.fromCollectionId(collection.collectionId),
+ 'nft',
+ );
+
+ const subTokenId = await evmContract.methods.nextTokenId().call();
+
+ let encodedCall = evmContract.methods
+ .mint(receiverEthAddress)
+ .encodeABI();
+
+ await helper.eth.sendEVM(
+ donor,
+ evmContract.options.address,
+ encodedCall,
+ '0',
+ );
+
+ encodedCall = await evmContract.methods
+ .setProperties(
+ subTokenId,
+ PROPERTIES.slice(0, setup.propertiesNumber).map((p) => {
+ return {field_0: p.key, field_1: p.value};
+ }),
+ )
+ .encodeABI();
+
+ await helper.eth.sendEVM(
+ donor,
+ evmContract.options.address,
+ encodedCall,
+ '0',
+ );
+ },
+ );
+
+ const proxyContractFee = await calculateFeeNftMintWithProperties(
+ helper,
+ privateKey,
+ {Ethereum: ethSigner},
+ ethSigner,
+ proxyContract.options.address,
+ async (collection) => {
+ await proxyContract.methods
+ .mintToSubstrateWithProperty(
+ helper.ethAddress.fromCollectionId(collection.collectionId),
+ susbstrateReceiver.addressRaw,
+ PROPERTIES.slice(0, setup.propertiesNumber),
+ )
+ .send({from: ethSigner});
+ },
+ );
+
+ const proxyContractBulkFee = await calculateFeeNftMintWithProperties(
+ helper,
+ privateKey,
+ {Ethereum: ethSigner},
+ ethSigner,
+ proxyContract.options.address,
+ async (collection) => {
+ await proxyContract.methods
+ .mintToSubstrateBulkProperty(
+ helper.ethAddress.fromCollectionId(collection.collectionId),
+ susbstrateReceiver.addressRaw,
+ PROPERTIES.slice(0, setup.propertiesNumber).map((p) => {
+ return {field_0: p.key, field_1: p.value};
+ }),
+ )
+ .send({from: ethSigner, gas: 25_000_000});
+ },
+ );
+
+ return {
+ propertiesNumber: setup.propertiesNumber,
+ substrateFee: convertToTokens(substrateFee, nominal),
+ ethFee: convertToTokens(ethFee, nominal),
+ ethBulkFee: convertToTokens(ethBulkFee, nominal),
+ evmProxyContractFee: convertToTokens(proxyContractFee, nominal),
+ evmProxyContractBulkFee: convertToTokens(proxyContractBulkFee, nominal),
+ };
+}
+
+async function calculateFeeNftMintWithProperties(
+ helper: EthUniqueHelper,
+ privateKey: (seed: string) => Promise<IKeyringPair>,
+ payer: ICrossAccountId,
+ ethSigner: string,
+ proxyContractAddress: string,
+ calculatedCall: (collection: UniqueNFTCollection) => Promise<any>,
+): Promise<bigint> {
+ const collection = await createCollectionForBenchmarks(
+ helper,
+ privateKey,
+ ethSigner,
+ proxyContractAddress,
+ PERMISSIONS,
+ );
+ return helper.arrange.calculcateFee(payer, async () => {
+ await calculatedCall(collection);
+ });
+}
+function convertToTokens(value: bigint, nominal: bigint): number {
+ return Number((value * 1000n) / nominal) / 1000;
+}
tests/src/benchmarks/mintFeeBench/proxyContract.soldiffbeforeafterboth--- /dev/null
+++ b/tests/src/benchmarks/mintFeeBench/proxyContract.sol
@@ -0,0 +1,129 @@
+// SPDX-License-Identifier: Apache License
+pragma solidity >=0.8.0;
+import {CollectionHelpers} from "../../eth/api/CollectionHelpers.sol";
+import {ContractHelpers} from "../../eth/api/ContractHelpers.sol";
+import {UniqueRefungibleToken} from "../../eth/api/UniqueRefungibleToken.sol";
+import {UniqueRefungible, Collection, EthCrossAccount as RftCrossAccountId, Tuple20 as RftProperties} from "../../eth/api/UniqueRefungible.sol";
+import {UniqueNFT, EthCrossAccount as NftCrossAccountId, Tuple21 as NftProperty, TokenProperties} from "../../eth/api/UniqueNFT.sol";
+
+struct Property {
+ string key;
+ bytes value;
+}
+
+contract ProxyMint {
+ bytes32 constant REFUNGIBLE_COLLECTION_TYPE = keccak256(bytes("ReFungible"));
+ bytes32 constant NONFUNGIBLE_COLLECTION_TYPE = keccak256(bytes("NFT"));
+
+ modifier checkRestrictions(address _collection) {
+ Collection commonContract = Collection(_collection);
+ require(commonContract.isOwnerOrAdmin(msg.sender), "Only collection admin/owner can call this method");
+ _;
+ }
+
+ /// @dev This emits when a mint to a substrate address has been made.
+ event MintToSub(address _toEth, uint256 _toSub, address _collection, uint256 _tokenId);
+
+ function mintToSubstrate(address _collection, uint256 _substrateReceiver) external checkRestrictions(_collection) {
+ Collection commonContract = Collection(_collection);
+ bytes32 collectionType = keccak256(bytes(commonContract.uniqueCollectionType()));
+ uint256 tokenId;
+
+ if (collectionType == REFUNGIBLE_COLLECTION_TYPE) {
+ UniqueRefungible rftCollection = UniqueRefungible(_collection);
+
+ tokenId = rftCollection.mint(address(this));
+
+ rftCollection.transferFromCross(
+ RftCrossAccountId(address(this), 0),
+ RftCrossAccountId(address(0), _substrateReceiver),
+ tokenId
+ );
+ } else if (collectionType == NONFUNGIBLE_COLLECTION_TYPE) {
+ UniqueNFT nftCollection = UniqueNFT(_collection);
+ tokenId = nftCollection.mint(address(this));
+
+ nftCollection.transferFromCross(
+ NftCrossAccountId(address(this), 0),
+ NftCrossAccountId(address(0), _substrateReceiver),
+ tokenId
+ );
+ } else {
+ revert("Wrong collection type. Works only with NFT or RFT");
+ }
+
+ emit MintToSub(address(0), _substrateReceiver, _collection, tokenId);
+ }
+
+ function mintToSubstrateWithProperty(
+ address _collection,
+ uint256 _substrateReceiver,
+ Property[] calldata properties
+ ) external checkRestrictions(_collection) {
+ uint256 propertiesLength = properties.length;
+ require(propertiesLength > 0, "Properies is empty");
+
+ Collection commonContract = Collection(_collection);
+ bytes32 collectionType = keccak256(bytes(commonContract.uniqueCollectionType()));
+ uint256 tokenId;
+
+ if (collectionType == REFUNGIBLE_COLLECTION_TYPE) {
+ UniqueRefungible rftCollection = UniqueRefungible(_collection);
+ tokenId = rftCollection.nextTokenId();
+ rftCollection.mint(address(this));
+ for (uint256 i = 0; i < propertiesLength; ++i) {
+ rftCollection.setProperty(tokenId, properties[i].key, properties[i].value);
+ }
+ rftCollection.transferFromCross(
+ RftCrossAccountId(address(this), 0),
+ RftCrossAccountId(address(0), _substrateReceiver),
+ tokenId
+ );
+ } else if (collectionType == NONFUNGIBLE_COLLECTION_TYPE) {
+ UniqueNFT nftCollection = UniqueNFT(_collection);
+ tokenId = nftCollection.mint(address(this));
+ for (uint256 i = 0; i < propertiesLength; ++i) {
+ nftCollection.setProperty(tokenId, properties[i].key, properties[i].value);
+ }
+ nftCollection.transferFromCross(
+ NftCrossAccountId(address(this), 0),
+ NftCrossAccountId(address(0), _substrateReceiver),
+ tokenId
+ );
+ } else {
+ revert("Wrong collection type. Works only with NFT or RFT");
+ }
+
+ emit MintToSub(address(0), _substrateReceiver, _collection, tokenId);
+ }
+
+ function mintToSubstrateBulkProperty(
+ address _collection,
+ uint256 _substrateReceiver,
+ NftProperty[] calldata _properties
+ ) external checkRestrictions(_collection) {
+ uint256 propertiesLength = _properties.length;
+ require(propertiesLength > 0, "Properies is empty");
+
+ Collection commonContract = Collection(_collection);
+ bytes32 collectionType = keccak256(bytes(commonContract.uniqueCollectionType()));
+ uint256 tokenId;
+
+ if (collectionType == REFUNGIBLE_COLLECTION_TYPE) {} else if (collectionType == NONFUNGIBLE_COLLECTION_TYPE) {
+ UniqueNFT nftCollection = UniqueNFT(_collection);
+ tokenId = nftCollection.mint(address(this));
+
+ nftCollection.setProperties(tokenId, _properties);
+
+ nftCollection.transferFromCross(
+ NftCrossAccountId(address(this), 0),
+ NftCrossAccountId(address(0), _substrateReceiver),
+ tokenId
+ );
+ } else {
+ revert("Wrong collection type. Works only with NFT or RFT");
+ }
+
+ emit MintToSub(address(0), _substrateReceiver, _collection, tokenId);
+ }
+}
tests/src/eth/evmToSubstrate/coderTest.tsdiffbeforeafterboth--- a/tests/src/eth/evmToSubstrate/coderTest.ts
+++ b/tests/src/eth/evmToSubstrate/coderTest.ts
@@ -1,15 +1,14 @@
-import { EthUniqueHelper, usingEthPlaygrounds } from '../util';
-import { readFile } from 'fs/promises';
-import { ContractImports } from '../util/playgrounds/types';
-import { Contract } from '@polkadot/api-contract/base';
+import {EthUniqueHelper, usingEthPlaygrounds} from '../util';
+import {readFile} from 'fs/promises';
+import {ContractImports} from '../util/playgrounds/types';
import Web3 from 'web3';
import {
- IProperty,
- ITokenPropertyPermission,
+ IProperty,
+ ITokenPropertyPermission,
} from '../../util/playgrounds/types';
-import { addressToEvm, decodeAddress } from '@polkadot/util-crypto';
+import {addressToEvm, decodeAddress} from '@polkadot/util-crypto';
import nonFungibleAbi from '../nonFungibleAbi.json';
-import { IKeyringPair } from '@polkadot/types/types';
+import {IKeyringPair} from '@polkadot/types/types';
enum SponsoringMode {
Disabled = 0,
@@ -19,197 +18,193 @@
const WS_ENDPOINT = 'wss://ws-rc.unique.network';
const CONTRACT_IMPORT: ContractImports[] = [
- {
- fsPath: `${__dirname}/../api/CollectionHelpers.sol`,
- solPath: 'api/CollectionHelpers.sol',
- },
- {
- fsPath: `${__dirname}/../api/ContractHelpers.sol`,
- solPath: 'api/ContractHelpers.sol',
- },
- {
- fsPath: `${__dirname}/../api/UniqueRefungibleToken.sol`,
- solPath: 'api/UniqueRefungibleToken.sol',
- },
- {
- fsPath: `${__dirname}/../api/UniqueRefungible.sol`,
- solPath: 'api/UniqueRefungible.sol',
- },
- {
- fsPath: `${__dirname}/../api/UniqueNFT.sol`,
- solPath: 'api/UniqueNFT.sol',
- },
+ {
+ fsPath: `${__dirname}/../api/CollectionHelpers.sol`,
+ solPath: 'api/CollectionHelpers.sol',
+ },
+ {
+ fsPath: `${__dirname}/../api/ContractHelpers.sol`,
+ solPath: 'api/ContractHelpers.sol',
+ },
+ {
+ fsPath: `${__dirname}/../api/UniqueRefungibleToken.sol`,
+ solPath: 'api/UniqueRefungibleToken.sol',
+ },
+ {
+ fsPath: `${__dirname}/../api/UniqueRefungible.sol`,
+ solPath: 'api/UniqueRefungible.sol',
+ },
+ {
+ fsPath: `${__dirname}/../api/UniqueNFT.sol`,
+ solPath: 'api/UniqueNFT.sol',
+ },
];
const main = async () => {
- await usingEthPlaygrounds(async (helper, privateKey) => {
- const contract_source = (
- await readFile(`${__dirname}/EvmToSubstrateHelper.sol`)
- ).toString();
+ await usingEthPlaygrounds(async (helper, privateKey) => {
+ const contract_source = (
+ await readFile(`${__dirname}/EvmToSubstrateHelper.sol`)
+ ).toString();
- const donor = await privateKey('//Alice'); // Seed from account with balance on this network
- const myAccount = await privateKey('//Bob'); // replace with account from polkadot extension
- const signer = await helper.eth.createAccountWithBalance(donor, 100n);
- console.log(`signer data: ${Uint8Array.from(Buffer.from(signer.slice(2), 'hex'))}`)
- const collection = await helper.nft.mintCollection(donor, {
- name: 'test mintToSubstrate',
- description: 'EVMHelpers',
- tokenPrefix: 'ap',
- tokenPropertyPermissions: [
- {
- key: 'url',
- permission: {
- tokenOwner: true,
- collectionAdmin: true,
- mutable: true,
- },
- },
- ],
- limits: { sponsorTransferTimeout: 0, sponsorApproveTimeout: 0 },
- permissions: { mintMode: true },
- });
+ const donor = await privateKey('//Alice'); // Seed from account with balance on this network
+ const myAccount = await privateKey('//Bob'); // replace with account from polkadot extension
+ const signer = await helper.eth.createAccountWithBalance(donor, 100n);
+ console.log(`signer data: ${Uint8Array.from(Buffer.from(signer.slice(2), 'hex'))}`);
+ const collection = await helper.nft.mintCollection(donor, {
+ name: 'test mintToSubstrate',
+ description: 'EVMHelpers',
+ tokenPrefix: 'ap',
+ tokenPropertyPermissions: [
+ {
+ key: 'url',
+ permission: {
+ tokenOwner: true,
+ collectionAdmin: true,
+ mutable: true,
+ },
+ },
+ ],
+ limits: {sponsorTransferTimeout: 0, sponsorApproveTimeout: 0},
+ permissions: {mintMode: true},
+ });
- await collection.addToAllowList(donor, {
- Ethereum: helper.address.substrateToEth(donor.address),
- });
- await collection.addToAllowList(donor, { Substrate: donor.address });
- await collection.addAdmin(donor, { Ethereum: signer });
- await collection.addAdmin(donor, {
- Ethereum: helper.address.substrateToEth(donor.address),
- });
+ await collection.addToAllowList(donor, {
+ Ethereum: helper.address.substrateToEth(donor.address),
+ });
+ await collection.addToAllowList(donor, {Substrate: donor.address});
+ await collection.addAdmin(donor, {Ethereum: signer});
+ await collection.addAdmin(donor, {
+ Ethereum: helper.address.substrateToEth(donor.address),
+ });
- console.log('collection admin(s)): ', await collection.getAdmins());
- console.log('collection owner(s)): ', await collection.getAllowList());
+ console.log('collection admin(s)): ', await collection.getAdmins());
+ console.log('collection owner(s)): ', await collection.getAllowList());
- const collectionEthAddress = helper.ethAddress.fromCollectionId(
- collection.collectionId,
- );
+ const collectionEthAddress = helper.ethAddress.fromCollectionId(collection.collectionId);
- const collectionEthContract = helper.ethNativeContract.collection(
- collectionEthAddress,
- 'nft',
- );
+ const collectionEthContract = helper.ethNativeContract.collection(
+ collectionEthAddress,
+ 'nft',
+ );
- const receiverEthAddress = helper.address.substrateToEth(myAccount.address);
+ const receiverEthAddress = helper.address.substrateToEth(myAccount.address);
- const contract = await helper.ethContract.deployByCode(
- signer,
- 'EvmToSubstrate',
- contract_source,
- CONTRACT_IMPORT,
- );
- console.log(`contract has been deployed\naddres: ${contract.options.address} || ${Uint8Array.from(Buffer.from(contract.options.address.slice(2), 'hex'))}`);
+ const contract = await helper.ethContract.deployByCode(
+ signer,
+ 'EvmToSubstrate',
+ contract_source,
+ CONTRACT_IMPORT,
+ );
+ console.log(`contract has been deployed\naddres: ${contract.options.address} || ${Uint8Array.from(Buffer.from(contract.options.address.slice(2), 'hex'))}`);
- await helper.eth.transferBalanceFromSubstrate(
- donor,
- contract.options.address,
- 100n,
- );
+ await helper.eth.transferBalanceFromSubstrate(
+ donor,
+ contract.options.address,
+ 100n,
+ );
- console.log(`transfer has been completed`);
+ console.log('transfer has been completed');
- await collection.addToAllowList(donor, {
- Ethereum: contract.options.address,
- });
- await collection.addAdmin(donor, { Ethereum: contract.options.address });
+ await collection.addToAllowList(donor, {
+ Ethereum: contract.options.address,
+ });
+ await collection.addAdmin(donor, {Ethereum: contract.options.address});
- console.log(`setup has been completed`);
+ console.log('setup has been completed');
- console.log('\t\t\t *** Properties Fees ***\n');
+ console.log('\t\t\t *** Properties Fees ***\n');
- const propertiesNumber = 20;
+ const propertiesNumber = 20;
- const properties = Array(40)
- .fill(0)
- .map((_, i) => {
- return {
- key: `key_${i}`,
- value: Uint8Array.from(Buffer.from(`value_${i}`)),
- };
- });
+ const properties = Array(40)
+ .fill(0)
+ .map((_, i) => {
+ return {
+ key: `key_${i}`,
+ value: Uint8Array.from(Buffer.from(`value_${i}`)),
+ };
+ });
- const permissions: ITokenPropertyPermission[] = properties.map((p) => {
- return {
- key: p.key,
- permission: {
- tokenOwner: true,
- collectionAdmin: true,
- mutable: true,
- },
- };
- });
+ const permissions: ITokenPropertyPermission[] = properties.map((p) => {
+ return {
+ key: p.key,
+ permission: {
+ tokenOwner: true,
+ collectionAdmin: true,
+ mutable: true,
+ },
+ };
+ });
- // *** ProxyContract Bulk ***
+ // *** ProxyContract Bulk ***
- const token = await collection.mintToken(donor, { Ethereum: signer });
+ const token = await collection.mintToken(donor, {Ethereum: signer});
- const mintWithBulkPropProxyContractFee = await helper.arrange.calculcateFee(
- { Ethereum: signer },
- async () => {
- await contract.methods
- .proxyProperties(
- collectionEthContract.options.address,
- token.tokenId,
- properties.slice(0, propertiesNumber).map((p) => {
- return { field_0: p.key, field_1: p.value };
- }),
- )
- .send({ from: signer, gas: 20_000_000 });
- },
- );
- console.log(
- `token mint from contract(with bulk prop.) to the Substrate Id: ${mintWithBulkPropProxyContractFee}`,
- );
+ const mintWithBulkPropProxyContractFee = await helper.arrange.calculcateFee(
+ {Ethereum: signer},
+ async () => {
+ await contract.methods
+ .proxyProperties(
+ collectionEthContract.options.address,
+ token.tokenId,
+ properties.slice(0, propertiesNumber).map((p) => {
+ return {field_0: p.key, field_1: p.value};
+ }),
+ )
+ .send({from: signer, gas: 20_000_000});
+ },
+ );
+ console.log(`token mint from contract(with bulk prop.) to the Substrate Id: ${mintWithBulkPropProxyContractFee}`);
- console.log('All done');
- });
+ console.log('All done');
+ });
};
main()
- .then(() => process.exit(0))
- .catch((e) => {
- console.log(e);
- process.exit(1);
- });
+ .then(() => process.exit(0))
+ .catch((e) => {
+ console.log(e);
+ process.exit(1);
+ });
async function createCollectionForPropertiesBenchmarks(
- helper: EthUniqueHelper,
- privateKey: (seed: string) => Promise<IKeyringPair>,
- ethSigner: string,
- proxyContract: string,
- permissions: ITokenPropertyPermission[],
+ helper: EthUniqueHelper,
+ privateKey: (seed: string) => Promise<IKeyringPair>,
+ ethSigner: string,
+ proxyContract: string,
+ permissions: ITokenPropertyPermission[],
) {
- const donor = await privateKey('//Alice'); // Seed from account with balance on this network
+ const donor = await privateKey('//Alice'); // Seed from account with balance on this network
- const collection = await helper.nft.mintCollection(donor, {
- name: 'test mintToSubstrate',
- description: 'EVMHelpers',
- tokenPrefix: 'ap',
- tokenPropertyPermissions: [
- {
- key: 'url',
- permission: {
- tokenOwner: true,
- collectionAdmin: true,
- mutable: true,
- },
- },
- ],
- limits: { sponsorTransferTimeout: 0, sponsorApproveTimeout: 0 },
- permissions: { mintMode: true },
- });
+ const collection = await helper.nft.mintCollection(donor, {
+ name: 'test mintToSubstrate',
+ description: 'EVMHelpers',
+ tokenPrefix: 'ap',
+ tokenPropertyPermissions: [
+ {
+ key: 'url',
+ permission: {
+ tokenOwner: true,
+ collectionAdmin: true,
+ mutable: true,
+ },
+ },
+ ],
+ limits: {sponsorTransferTimeout: 0, sponsorApproveTimeout: 0},
+ permissions: {mintMode: true},
+ });
- await collection.addToAllowList(donor, {
- Ethereum: helper.address.substrateToEth(donor.address),
- });
- await collection.addToAllowList(donor, { Substrate: donor.address });
- await collection.addAdmin(donor, { Ethereum: ethSigner });
- await collection.addAdmin(donor, {
- Ethereum: helper.address.substrateToEth(donor.address),
- });
- await collection.addToAllowList(donor, { Ethereum: proxyContract });
- await collection.addAdmin(donor, { Ethereum: proxyContract });
- await collection.setTokenPropertyPermissions(donor, permissions);
+ await collection.addToAllowList(donor, {
+ Ethereum: helper.address.substrateToEth(donor.address),
+ });
+ await collection.addToAllowList(donor, {Substrate: donor.address});
+ await collection.addAdmin(donor, {Ethereum: ethSigner});
+ await collection.addAdmin(donor, {
+ Ethereum: helper.address.substrateToEth(donor.address),
+ });
+ await collection.addToAllowList(donor, {Ethereum: proxyContract});
+ await collection.addAdmin(donor, {Ethereum: proxyContract});
+ await collection.setTokenPropertyPermissions(donor, permissions);
- return collection;
+ return collection;
}
tests/src/eth/evmToSubstrate/feeBench.tsdiffbeforeafterboth--- a/tests/src/eth/evmToSubstrate/feeBench.ts
+++ b/tests/src/eth/evmToSubstrate/feeBench.ts
@@ -1,7 +1,7 @@
import {EthUniqueHelper, usingEthPlaygrounds} from '../util';
import {readFile} from 'fs/promises';
import {ContractImports} from '../util/playgrounds/types';
-import {Contract} from '@polkadot/api-contract/base';
+
import Web3 from 'web3';
import {IProperty, ITokenPropertyPermission} from '../../util/playgrounds/types';
import {addressToEvm, decodeAddress} from '@polkadot/util-crypto';
@@ -105,16 +105,16 @@
console.log(`token mint from eth : ${ethFee}`);
const contract = await helper.ethContract.deployByCode(signer, 'EvmToSubstrate', contract_source, CONTRACT_IMPORT);
- console.log(`contract has been deployed`);
+ console.log('contract has been deployed');
await helper.eth.transferBalanceFromSubstrate(donor, contract.options.address, 100n);
- console.log(`transfer has been completed`);
+ console.log('transfer has been completed');
- await collection.addToAllowList(donor, { Ethereum: contract.options.address });
+ await collection.addToAllowList(donor, {Ethereum: contract.options.address});
await collection.addAdmin(donor, {Ethereum: contract.options.address});
- console.log(`setup has been completed`);
+ console.log('setup has been completed');
const feeForProxyContractMinting = await helper.arrange.calculcateFee(
{Ethereum: signer},
tests/yarn.lockdiffbeforeafterboth--- a/tests/yarn.lock
+++ b/tests/yarn.lock
@@ -940,14 +940,6 @@
resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.3.tgz#472eaab5f15c1ffdd7f8628bd4c4f753995ec79e"
integrity sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==
-"@typechain/web3-v1@^6.0.1":
- version "6.0.1"
- resolved "https://registry.yarnpkg.com/@typechain/web3-v1/-/web3-v1-6.0.1.tgz#459d1d6901134310fbc1cf9cd263bf529d979572"
- integrity sha512-w3xehVgsKV74fGBx1d6xuySWZJ/DbLaYWJDqaDy93qojOicDPESESfOL0XIWZfEmhxk+1JEDC9Roqb/eBmldaA==
- dependencies:
- lodash "^4.17.15"
- ts-essentials "^7.0.1"
-
"@types/bn.js@^5.1.0", "@types/bn.js@^5.1.1":
version "5.1.1"
resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-5.1.1.tgz#b51e1b55920a4ca26e9285ff79936bbdec910682"
@@ -1030,11 +1022,6 @@
integrity sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ==
dependencies:
"@types/node" "*"
-
-"@types/prettier@^2.1.1":
- version "2.7.0"
- resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.0.tgz#ea03e9f0376a4446f44797ca19d9c46c36e352dc"
- integrity sha512-RI1L7N4JnW5gQw2spvL7Sllfuf1SaHdrZpCHiBlCXjIlufi1SMNnbu2teze3/QE67Fg2tBlH7W+mi4hVNk4p0A==
"@types/responselike@*", "@types/responselike@^1.0.0":
version "1.0.0"
@@ -1223,17 +1210,7 @@
version "2.0.1"
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
-
-array-back@^3.0.1, array-back@^3.1.0:
- version "3.1.0"
- resolved "https://registry.yarnpkg.com/array-back/-/array-back-3.1.0.tgz#b8859d7a508871c9a7b2cf42f99428f65e96bfb0"
- integrity sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==
-array-back@^4.0.1, array-back@^4.0.2:
- version "4.0.2"
- resolved "https://registry.yarnpkg.com/array-back/-/array-back-4.0.2.tgz#8004e999a6274586beeb27342168652fdb89fa1e"
- integrity sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==
-
array-flatten@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
@@ -1596,7 +1573,7 @@
pathval "^1.1.1"
type-detect "^4.0.5"
-chalk@^2.0.0, chalk@^2.4.2:
+chalk@^2.0.0:
version "2.4.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
@@ -1732,26 +1709,6 @@
resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69"
integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==
-command-line-args@^5.1.1:
- version "5.2.1"
- resolved "https://registry.yarnpkg.com/command-line-args/-/command-line-args-5.2.1.tgz#c44c32e437a57d7c51157696893c5909e9cec42e"
- integrity sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==
- dependencies:
- array-back "^3.1.0"
- find-replace "^3.0.0"
- lodash.camelcase "^4.3.0"
- typical "^4.0.0"
-
-command-line-usage@^6.1.0:
- version "6.1.3"
- resolved "https://registry.yarnpkg.com/command-line-usage/-/command-line-usage-6.1.3.tgz#428fa5acde6a838779dfa30e44686f4b6761d957"
- integrity sha512-sH5ZSPr+7UStsloltmDh7Ce5fb8XPlHyoPzTpyyMuYCtervL65+ubVZ6Q61cFtFl62UyJlc8/JwERRbAFPUqgw==
- dependencies:
- array-back "^4.0.2"
- chalk "^2.4.2"
- table-layout "^1.0.2"
- typical "^5.2.0"
-
commander@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"
@@ -1895,6 +1852,11 @@
randombytes "^2.0.0"
randomfill "^1.0.3"
+csv-writer@^1.6.0:
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/csv-writer/-/csv-writer-1.6.0.tgz#d0cea44b6b4d7d3baa2ecc6f3f7209233514bcf9"
+ integrity sha512-NOx7YDFWEsM/fTRAJjRpPp8t+MKRVvniAg9wQlUKx20MFrPs73WLJhFf5iteqrxNYnsy924K3Iroh3yNHeYd2g==
+
d@1, d@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a"
@@ -1922,7 +1884,7 @@
dependencies:
ms "2.0.0"
-debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4:
+debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4:
version "4.3.4"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
@@ -1960,11 +1922,6 @@
dependencies:
type-detect "^4.0.0"
-deep-extend@~0.6.0:
- version "0.6.0"
- resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
- integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==
-
deep-is@^0.1.3:
version "0.1.4"
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"
@@ -2555,13 +2512,6 @@
chalk "^4.0.0"
commander "^5.1.0"
debug "^4.1.1"
-
-find-replace@^3.0.0:
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/find-replace/-/find-replace-3.0.0.tgz#3e7e23d3b05167a76f770c9fbd5258b0def68c38"
- integrity sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==
- dependencies:
- array-back "^3.0.1"
find-up@5.0.0, find-up@^5.0.0:
version "5.0.0"
@@ -2662,15 +2612,6 @@
jsonfile "^4.0.0"
universalify "^0.1.0"
-fs-extra@^7.0.0:
- version "7.0.1"
- resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9"
- integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==
- dependencies:
- graceful-fs "^4.1.2"
- jsonfile "^4.0.0"
- universalify "^0.1.0"
-
fs-minipass@^1.2.7:
version "1.2.7"
resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7"
@@ -2773,18 +2714,6 @@
dependencies:
is-glob "^4.0.3"
-glob@7.1.7:
- version "7.1.7"
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90"
- integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==
- dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^3.0.4"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
-
glob@7.2.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023"
@@ -3399,17 +3328,12 @@
dependencies:
p-locate "^5.0.0"
-lodash.camelcase@^4.3.0:
- version "4.3.0"
- resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
- integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==
-
lodash.merge@^4.6.2:
version "4.6.2"
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
-lodash@^4.17.15, lodash@^4.17.21:
+lodash@^4.17.21:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
@@ -3594,7 +3518,7 @@
dependencies:
mkdirp "*"
-mkdirp@*, mkdirp@^1.0.4:
+mkdirp@*:
version "1.0.4"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
@@ -4018,11 +3942,6 @@
version "1.2.1"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
-
-prettier@^2.3.1:
- version "2.7.1"
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
- integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
process@^0.11.10:
version "0.11.10"
@@ -4158,11 +4077,6 @@
integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
dependencies:
picomatch "^2.2.1"
-
-reduce-flatten@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/reduce-flatten/-/reduce-flatten-2.0.0.tgz#734fd84e65f375d7ca4465c69798c25c9d10ae27"
- integrity sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w==
regenerator-runtime@^0.13.4:
version "0.13.10"
@@ -4490,11 +4404,6 @@
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713"
integrity sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==
-string-format@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/string-format/-/string-format-2.0.0.tgz#f2df2e7097440d3b65de31b6d40d54c96eaffb9b"
- integrity sha512-bbEs3scLeYNXLecRRuk6uJxdXUSj6le/8rNPHChIJTn2V79aXVTR1EH2OH5zLKKoz0V02fOUKZZcw01pLUShZA==
-
string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
@@ -4585,16 +4494,6 @@
setimmediate "^1.0.5"
tar "^4.0.2"
xhr-request "^1.0.1"
-
-table-layout@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/table-layout/-/table-layout-1.0.2.tgz#c4038a1853b0136d63365a734b6931cf4fad4a04"
- integrity sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A==
- dependencies:
- array-back "^4.0.1"
- deep-extend "~0.6.0"
- typical "^5.2.0"
- wordwrapjs "^4.0.0"
tar@^4.0.2:
version "4.4.19"
@@ -4743,22 +4642,6 @@
version "2.7.2"
resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0"
integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==
-
-typechain@^8.1.0:
- version "8.1.0"
- resolved "https://registry.yarnpkg.com/typechain/-/typechain-8.1.0.tgz#fc4902ce596519cb2ccfd012e4ddf92a9945b569"
- integrity sha512-5jToLgKTjHdI1VKqs/K8BLYy42Sr3o8bV5ojh4MnR9ExHO83cyyUdw+7+vMJCpKXUiVUvARM4qmHTFuyaCMAZQ==
- dependencies:
- "@types/prettier" "^2.1.1"
- debug "^4.3.1"
- fs-extra "^7.0.0"
- glob "7.1.7"
- js-sha3 "^0.8.0"
- lodash "^4.17.15"
- mkdirp "^1.0.4"
- prettier "^2.3.1"
- ts-command-line-args "^2.2.0"
- ts-essentials "^7.0.1"
typedarray-to-buffer@^3.1.5:
version "3.1.5"
@@ -4771,17 +4654,7 @@
version "4.8.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
-
-typical@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/typical/-/typical-4.0.0.tgz#cbeaff3b9d7ae1e2bbfaf5a4e6f11eccfde94fc4"
- integrity sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==
-typical@^5.2.0:
- version "5.2.0"
- resolved "https://registry.yarnpkg.com/typical/-/typical-5.2.0.tgz#4daaac4f2b5315460804f0acf6cb69c52bb93066"
- integrity sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==
-
uglify-js@^3.1.4:
version "3.17.3"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.3.tgz#f0feedf019c4510f164099e8d7e72ff2d7304377"
@@ -5198,14 +5071,6 @@
version "1.0.0"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==
-
-wordwrapjs@^4.0.0:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/wordwrapjs/-/wordwrapjs-4.0.1.tgz#d9790bccfb110a0fc7836b5ebce0937b37a8b98f"
- integrity sha512-kKlNACbvHrkpIw6oPeYDSmdCTu2hdMHoyXLTcUKala++lx5Y+wjJ/e474Jqv5abnVmwxw08DiTuHmw69lJGksA==
- dependencies:
- reduce-flatten "^2.0.0"
- typical "^5.2.0"
workerpool@6.2.1:
version "6.2.1"