1{2 "contractName": "EvmToSubstrate",3 "abi": [4 {5 "anonymous": false,6 "inputs": [7 {8 "indexed": false,9 "internalType": "address",10 "name": "_toEth",11 "type": "address"12 },13 {14 "indexed": false,15 "internalType": "uint256",16 "name": "_toSub",17 "type": "uint256"18 },19 {20 "indexed": false,21 "internalType": "address",22 "name": "_collection",23 "type": "address"24 },25 {26 "indexed": false,27 "internalType": "uint256",28 "name": "_tokenId",29 "type": "uint256"30 }31 ],32 "name": "MintToSub",33 "type": "event"34 },35 {36 "inputs": [37 {38 "internalType": "address",39 "name": "_collection",40 "type": "address"41 },42 {43 "internalType": "uint256",44 "name": "_substrateReceiver",45 "type": "uint256"46 }47 ],48 "name": "mintToSubstrate",49 "outputs": [],50 "stateMutability": "nonpayable",51 "type": "function"52 },53 {54 "inputs": [55 {56 "internalType": "address",57 "name": "_collection",58 "type": "address"59 },60 {61 "internalType": "uint256",62 "name": "_substrateReceiver",63 "type": "uint256"64 },65 {66 "components": [67 {68 "internalType": "string",69 "name": "field_0",70 "type": "string"71 },72 {73 "internalType": "bytes",74 "name": "field_1",75 "type": "bytes"76 }77 ],78 "internalType": "struct Tuple21[]",79 "name": "_properties",80 "type": "tuple[]"81 }82 ],83 "name": "mintToSubstrateBulkProperty",84 "outputs": [],85 "stateMutability": "nonpayable",86 "type": "function"87 },88 {89 "inputs": [90 {91 "internalType": "address",92 "name": "_collection",93 "type": "address"94 },95 {96 "internalType": "uint256",97 "name": "_substrateReceiver",98 "type": "uint256"99 },100 {101 "components": [102 {103 "internalType": "string",104 "name": "key",105 "type": "string"106 },107 {108 "internalType": "bytes",109 "name": "value",110 "type": "bytes"111 }112 ],113 "internalType": "struct Property[]",114 "name": "properties",115 "type": "tuple[]"116 }117 ],118 "name": "mintToSubstrateWithProperty",119 "outputs": [],120 "stateMutability": "nonpayable",121 "type": "function"122 }123 ],124 "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}",125 "bytecode": "608060405234801561001057600080fd5b506111d4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80633a0dbb1a14610046578063440dff9d1461005b5780637a8d97861461006e575b600080fd5b610059610054366004610d6f565b610081565b005b610059610069366004610d6f565b610472565b61005961007c366004610dc9565b6109fb565b604051639811b0c760e01b8152336004820152849081906001600160a01b03821690639811b0c790602401602060405180830381865afa1580156100c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100ed9190610df3565b6101125760405162461bcd60e51b815260040161010990610e1c565b60405180910390fd5b82806101555760405162461bcd60e51b815260206004820152601260248201527150726f70657269657320697320656d70747960701b6044820152606401610109565b60008790506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa15801561019a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101c29190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b2958201156104165760408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b4576040516335313c2160e11b81523060048201528a906001600160a01b03821690636a627842906024016020604051808303816000875af11580156102a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c69190610f4c565b604051630a769d3760e11b81529092506001600160a01b038216906314ed3a6e906102f99085908d908d90600401610fd4565b600060405180830381600087803b15801561031357600080fd5b505af1158015610327573d6000803e3d6000fd5b5050604080518082018252308152600060208083018290528351808501855291825281018f9052915163d5cf430b60e01b81526001600160a01b038616945063d5cf430b935061037c92908790600401611088565b600060405180830381600087803b15801561039657600080fd5b505af11580156103aa573d6000803e3d6000fd5b5050505050610416565b60405162461bcd60e51b815260206004820152603160248201527f57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c6044820152701e481dda5d1a08139195081bdc88149195607a1b6064820152608401610109565b6040805160008152602081018b90526001600160a01b038c16818301526060810183905290517ffb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb75359181900360800190a150505050505050505050565b604051639811b0c760e01b8152336004820152849081906001600160a01b03821690639811b0c790602401602060405180830381865afa1580156104ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104de9190610df3565b6104fa5760405162461bcd60e51b815260040161010990610e1c565b828061053d5760405162461bcd60e51b815260206004820152601260248201527150726f70657269657320697320656d70747960701b6044820152606401610109565b60008790506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610582573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105aa9190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b29582016108065760008a9050806001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106669190610f4c565b6040516335313c2160e11b81523060048201529092506001600160a01b03821690636a627842906024016020604051808303816000875af11580156106af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d39190610f4c565b5060005b858110156107b257816001600160a01b0316631752d67b848c8c85818110610701576107016110c1565b905060200281019061071391906110d7565b61071d90806110f7565b8e8e8781811061072f5761072f6110c1565b905060200281019061074191906110d7565b61074f9060208101906110f7565b6040518663ffffffff1660e01b815260040161076f95949392919061113e565b600060405180830381600087803b15801561078957600080fd5b505af115801561079d573d6000803e3d6000fd5b50505050806107ab90611177565b90506106d7565b50604080518082018252308152600060208083018290528351808501855291825281018d9052915163d5cf430b60e01b81526001600160a01b0384169263d5cf430b9261037c929091908790600401611088565b60408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b45760008a9050806001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561088b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108af9190610f4c565b6040516335313c2160e11b81523060048201529092506001600160a01b03821690636a627842906024016020604051808303816000875af11580156108f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091c9190610f4c565b5060005b858110156107b257816001600160a01b0316631752d67b848c8c8581811061094a5761094a6110c1565b905060200281019061095c91906110d7565b61096690806110f7565b8e8e87818110610978576109786110c1565b905060200281019061098a91906110d7565b6109989060208101906110f7565b6040518663ffffffff1660e01b81526004016109b895949392919061113e565b600060405180830381600087803b1580156109d257600080fd5b505af11580156109e6573d6000803e3d6000fd5b50505050806109f490611177565b9050610920565b604051639811b0c760e01b8152336004820152829081906001600160a01b03821690639811b0c790602401602060405180830381865afa158015610a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a679190610df3565b610a835760405162461bcd60e51b815260040161010990610e1c565b60008490506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ac8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610af09190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b2958201610c3e576040516335313c2160e11b815230600482015287906001600160a01b03821690636a627842906024015b6020604051808303816000875af1158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb29190610f4c565b604080518082018252308152600060208083018290528351808501855291825281018b9052915163d5cf430b60e01b81529294506001600160a01b0384169263d5cf430b92610c0692918790600401611088565b600060405180830381600087803b158015610c2057600080fd5b505af1158015610c34573d6000803e3d6000fd5b5050505050610cae565b60408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b4576040516335313c2160e11b815230600482015287906001600160a01b03821690636a62784290602401610b6f565b6040805160008152602081018890526001600160a01b038916818301526060810183905290517ffb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb75359181900360800190a150505050505050565b80356001600160a01b0381168114610d1e57600080fd5b919050565b60008083601f840112610d3557600080fd5b50813567ffffffffffffffff811115610d4d57600080fd5b6020830191508360208260051b8501011115610d6857600080fd5b9250929050565b60008060008060608587031215610d8557600080fd5b610d8e85610d07565b935060208501359250604085013567ffffffffffffffff811115610db157600080fd5b610dbd87828801610d23565b95989497509550505050565b60008060408385031215610ddc57600080fd5b610de583610d07565b946020939093013593505050565b600060208284031215610e0557600080fd5b81518015158114610e1557600080fd5b9392505050565b60208082526030908201527f4f6e6c7920636f6c6c656374696f6e2061646d696e2f6f776e65722063616e2060408201526f18d85b1b081d1a1a5cc81b595d1a1bd960821b606082015260800190565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610e9557600080fd5b825167ffffffffffffffff80821115610ead57600080fd5b818501915085601f830112610ec157600080fd5b815181811115610ed357610ed3610e6c565b604051601f8201601f19908116603f01168101908382118183101715610efb57610efb610e6c565b816040528281528886848701011115610f1357600080fd5b600093505b82841015610f355784840186015181850187015292850192610f18565b600086848301015280965050505050505092915050565b600060208284031215610f5e57600080fd5b5051919050565b6000808335601e19843603018112610f7c57600080fd5b830160208101925035905067ffffffffffffffff811115610f9c57600080fd5b803603821315610d6857600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60006040808301868452602082818601528186835260608601905060608760051b8701019250876000805b8981101561107857888603605f190184528235368c9003603e19018112611024578283fd5b8b016110308180610f65565b8989526110408a8a018284610fab565b91505061104f87830183610f65565b9250888203888a0152611063828483610fab565b98505050938501935091840191600101610fff565b50939a9950505050505050505050565b83516001600160a01b03908116825260209485015185830152835116604082015291909201516060820152608081019190915260a00190565b634e487b7160e01b600052603260045260246000fd5b60008235603e198336030181126110ed57600080fd5b9190910192915050565b6000808335601e1984360301811261110e57600080fd5b83018035915067ffffffffffffffff82111561112957600080fd5b602001915036819003821315610d6857600080fd5b858152606060208201526000611158606083018688610fab565b828103604084015261116b818587610fab565b98975050505050505050565b60006001820161119757634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212206fee43cab49543809f191e238525b8a47306c665c42f86e318153d2b9e9d1de064736f6c63430008110033",126 "deployedBytecode": "608060405234801561001057600080fd5b50600436106100415760003560e01c80633a0dbb1a14610046578063440dff9d1461005b5780637a8d97861461006e575b600080fd5b610059610054366004610d6f565b610081565b005b610059610069366004610d6f565b610472565b61005961007c366004610dc9565b6109fb565b604051639811b0c760e01b8152336004820152849081906001600160a01b03821690639811b0c790602401602060405180830381865afa1580156100c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100ed9190610df3565b6101125760405162461bcd60e51b815260040161010990610e1c565b60405180910390fd5b82806101555760405162461bcd60e51b815260206004820152601260248201527150726f70657269657320697320656d70747960701b6044820152606401610109565b60008790506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa15801561019a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101c29190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b2958201156104165760408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b4576040516335313c2160e11b81523060048201528a906001600160a01b03821690636a627842906024016020604051808303816000875af11580156102a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c69190610f4c565b604051630a769d3760e11b81529092506001600160a01b038216906314ed3a6e906102f99085908d908d90600401610fd4565b600060405180830381600087803b15801561031357600080fd5b505af1158015610327573d6000803e3d6000fd5b5050604080518082018252308152600060208083018290528351808501855291825281018f9052915163d5cf430b60e01b81526001600160a01b038616945063d5cf430b935061037c92908790600401611088565b600060405180830381600087803b15801561039657600080fd5b505af11580156103aa573d6000803e3d6000fd5b5050505050610416565b60405162461bcd60e51b815260206004820152603160248201527f57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c6044820152701e481dda5d1a08139195081bdc88149195607a1b6064820152608401610109565b6040805160008152602081018b90526001600160a01b038c16818301526060810183905290517ffb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb75359181900360800190a150505050505050505050565b604051639811b0c760e01b8152336004820152849081906001600160a01b03821690639811b0c790602401602060405180830381865afa1580156104ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104de9190610df3565b6104fa5760405162461bcd60e51b815260040161010990610e1c565b828061053d5760405162461bcd60e51b815260206004820152601260248201527150726f70657269657320697320656d70747960701b6044820152606401610109565b60008790506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610582573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105aa9190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b29582016108065760008a9050806001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106669190610f4c565b6040516335313c2160e11b81523060048201529092506001600160a01b03821690636a627842906024016020604051808303816000875af11580156106af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d39190610f4c565b5060005b858110156107b257816001600160a01b0316631752d67b848c8c85818110610701576107016110c1565b905060200281019061071391906110d7565b61071d90806110f7565b8e8e8781811061072f5761072f6110c1565b905060200281019061074191906110d7565b61074f9060208101906110f7565b6040518663ffffffff1660e01b815260040161076f95949392919061113e565b600060405180830381600087803b15801561078957600080fd5b505af115801561079d573d6000803e3d6000fd5b50505050806107ab90611177565b90506106d7565b50604080518082018252308152600060208083018290528351808501855291825281018d9052915163d5cf430b60e01b81526001600160a01b0384169263d5cf430b9261037c929091908790600401611088565b60408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b45760008a9050806001600160a01b03166375794a3c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561088b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108af9190610f4c565b6040516335313c2160e11b81523060048201529092506001600160a01b03821690636a627842906024016020604051808303816000875af11580156108f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091c9190610f4c565b5060005b858110156107b257816001600160a01b0316631752d67b848c8c8581811061094a5761094a6110c1565b905060200281019061095c91906110d7565b61096690806110f7565b8e8e87818110610978576109786110c1565b905060200281019061098a91906110d7565b6109989060208101906110f7565b6040518663ffffffff1660e01b81526004016109b895949392919061113e565b600060405180830381600087803b1580156109d257600080fd5b505af11580156109e6573d6000803e3d6000fd5b50505050806109f490611177565b9050610920565b604051639811b0c760e01b8152336004820152829081906001600160a01b03821690639811b0c790602401602060405180830381865afa158015610a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a679190610df3565b610a835760405162461bcd60e51b815260040161010990610e1c565b60008490506000816001600160a01b031663d34b55b86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ac8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610af09190810190610e82565b805160209182012060408051808201909152600a815269526546756e6769626c6560b01b920191909152905060007f3248d02b1e2f292b1142854ebdeec13d4b4f9224dbcdb24a3d7810fe54b7b2958201610c3e576040516335313c2160e11b815230600482015287906001600160a01b03821690636a627842906024015b6020604051808303816000875af1158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb29190610f4c565b604080518082018252308152600060208083018290528351808501855291825281018b9052915163d5cf430b60e01b81529294506001600160a01b0384169263d5cf430b92610c0692918790600401611088565b600060405180830381600087803b158015610c2057600080fd5b505af1158015610c34573d6000803e3d6000fd5b5050505050610cae565b60408051808201909152600381526213919560ea1b6020909101527f63bec732f5ecee1b8b708f2f01c23aa0f0a08a1f0df248cedda343c476ebfe9682016103b4576040516335313c2160e11b815230600482015287906001600160a01b03821690636a62784290602401610b6f565b6040805160008152602081018890526001600160a01b038916818301526060810183905290517ffb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb75359181900360800190a150505050505050565b80356001600160a01b0381168114610d1e57600080fd5b919050565b60008083601f840112610d3557600080fd5b50813567ffffffffffffffff811115610d4d57600080fd5b6020830191508360208260051b8501011115610d6857600080fd5b9250929050565b60008060008060608587031215610d8557600080fd5b610d8e85610d07565b935060208501359250604085013567ffffffffffffffff811115610db157600080fd5b610dbd87828801610d23565b95989497509550505050565b60008060408385031215610ddc57600080fd5b610de583610d07565b946020939093013593505050565b600060208284031215610e0557600080fd5b81518015158114610e1557600080fd5b9392505050565b60208082526030908201527f4f6e6c7920636f6c6c656374696f6e2061646d696e2f6f776e65722063616e2060408201526f18d85b1b081d1a1a5cc81b595d1a1bd960821b606082015260800190565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610e9557600080fd5b825167ffffffffffffffff80821115610ead57600080fd5b818501915085601f830112610ec157600080fd5b815181811115610ed357610ed3610e6c565b604051601f8201601f19908116603f01168101908382118183101715610efb57610efb610e6c565b816040528281528886848701011115610f1357600080fd5b600093505b82841015610f355784840186015181850187015292850192610f18565b600086848301015280965050505050505092915050565b600060208284031215610f5e57600080fd5b5051919050565b6000808335601e19843603018112610f7c57600080fd5b830160208101925035905067ffffffffffffffff811115610f9c57600080fd5b803603821315610d6857600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60006040808301868452602082818601528186835260608601905060608760051b8701019250876000805b8981101561107857888603605f190184528235368c9003603e19018112611024578283fd5b8b016110308180610f65565b8989526110408a8a018284610fab565b91505061104f87830183610f65565b9250888203888a0152611063828483610fab565b98505050938501935091840191600101610fff565b50939a9950505050505050505050565b83516001600160a01b03908116825260209485015185830152835116604082015291909201516060820152608081019190915260a00190565b634e487b7160e01b600052603260045260246000fd5b60008235603e198336030181126110ed57600080fd5b9190910192915050565b6000808335601e1984360301811261110e57600080fd5b83018035915067ffffffffffffffff82111561112957600080fd5b602001915036819003821315610d6857600080fd5b858152606060208201526000611158606083018688610fab565b828103604084015261116b818587610fab565b98975050505050505050565b60006001820161119757634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212206fee43cab49543809f191e238525b8a47306c665c42f86e318153d2b9e9d1de064736f6c63430008110033",127 "sourceMap": "673:5833:5:-:0;;;;;;;;;;;;;;;;;;;",128 "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",129 "sourcePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.sol",130 "compiler": {131 "name": "solc",132 "version": "0.8.17+commit.8df45f5f"133 },134 "ast": {135 "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/evmToSubstrate/EvmToSubstrateHelper.sol",136 "exportedSymbols": {137 "Collection": [138 1248139 ],140 "CollectionHelpers": [141 99142 ],143 "ContractHelpers": [144 282145 ],146 "EvmToSubstrate": [147 2269148 ],149 "NftCrossAccountId": [150 610151 ],152 "NftProperty": [153 620154 ],155 "Property": [156 1762157 ],158 "RftCrossAccountId": [159 1253160 ],161 "RftProperties": [162 1263163 ],164 "TokenProperties": [165 357166 ],167 "UniqueNFT": [168 930169 ],170 "UniqueRefungible": [171 1572172 ],173 "UniqueRefungibleToken": [174 1739175 ]176 },177 "id": 2270,178 "license": "Apache License",179 "nodeType": "SourceUnit",180 "nodes": [181 {182 "id": 1741,183 "literals": [184 "solidity",185 ">=",186 "0.8",187 ".0"188 ],189 "nodeType": "PragmaDirective",190 "src": "44:24:5"191 },192 {193 "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/CollectionHelpers.sol",194 "file": "../api/CollectionHelpers.sol",195 "id": 1743,196 "nameLocation": "-1:-1:-1",197 "nodeType": "ImportDirective",198 "scope": 2270,199 "sourceUnit": 100,200 "src": "69:63:5",201 "symbolAliases": [202 {203 "foreign": {204 "id": 1742,205 "name": "CollectionHelpers",206 "nodeType": "Identifier",207 "overloadedDeclarations": [],208 "referencedDeclaration": 99,209 "src": "77:17:5",210 "typeDescriptions": {}211 },212 "nameLocation": "-1:-1:-1"213 }214 ],215 "unitAlias": ""216 },217 {218 "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/ContractHelpers.sol",219 "file": "../api/ContractHelpers.sol",220 "id": 1745,221 "nameLocation": "-1:-1:-1",222 "nodeType": "ImportDirective",223 "scope": 2270,224 "sourceUnit": 288,225 "src": "133:59:5",226 "symbolAliases": [227 {228 "foreign": {229 "id": 1744,230 "name": "ContractHelpers",231 "nodeType": "Identifier",232 "overloadedDeclarations": [],233 "referencedDeclaration": 282,234 "src": "141:15:5",235 "typeDescriptions": {}236 },237 "nameLocation": "-1:-1:-1"238 }239 ],240 "unitAlias": ""241 },242 {243 "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/UniqueRefungibleToken.sol",244 "file": "../api/UniqueRefungibleToken.sol",245 "id": 1747,246 "nameLocation": "-1:-1:-1",247 "nodeType": "ImportDirective",248 "scope": 2270,249 "sourceUnit": 1740,250 "src": "193:71:5",251 "symbolAliases": [252 {253 "foreign": {254 "id": 1746,255 "name": "UniqueRefungibleToken",256 "nodeType": "Identifier",257 "overloadedDeclarations": [],258 "referencedDeclaration": 1739,259 "src": "201:21:5",260 "typeDescriptions": {}261 },262 "nameLocation": "-1:-1:-1"263 }264 ],265 "unitAlias": ""266 },267 {268 "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/UniqueRefungible.sol",269 "file": "../api/UniqueRefungible.sol",270 "id": 1752,271 "nameLocation": "-1:-1:-1",272 "nodeType": "ImportDirective",273 "scope": 2270,274 "sourceUnit": 1573,275 "src": "265:137:5",276 "symbolAliases": [277 {278 "foreign": {279 "id": 1748,280 "name": "UniqueRefungible",281 "nodeType": "Identifier",282 "overloadedDeclarations": [],283 "referencedDeclaration": 1572,284 "src": "273:16:5",285 "typeDescriptions": {}286 },287 "nameLocation": "-1:-1:-1"288 },289 {290 "foreign": {291 "id": 1749,292 "name": "Collection",293 "nodeType": "Identifier",294 "overloadedDeclarations": [],295 "referencedDeclaration": 1248,296 "src": "291:10:5",297 "typeDescriptions": {}298 },299 "nameLocation": "-1:-1:-1"300 },301 {302 "foreign": {303 "id": 1750,304 "name": "EthCrossAccount",305 "nodeType": "Identifier",306 "overloadedDeclarations": [],307 "referencedDeclaration": 1253,308 "src": "303:15:5",309 "typeDescriptions": {}310 },311 "local": "RftCrossAccountId",312 "nameLocation": "-1:-1:-1"313 },314 {315 "foreign": {316 "id": 1751,317 "name": "Tuple20",318 "nodeType": "Identifier",319 "overloadedDeclarations": [],320 "referencedDeclaration": 1263,321 "src": "341:7:5",322 "typeDescriptions": {}323 },324 "local": "RftProperties",325 "nameLocation": "-1:-1:-1"326 }327 ],328 "unitAlias": ""329 },330 {331 "absolutePath": "/home/praetorp/Repos/Polkadot/unique-chain/tests/src/eth/api/UniqueNFT.sol",332 "file": "../api/UniqueNFT.sol",333 "id": 1757,334 "nameLocation": "-1:-1:-1",335 "nodeType": "ImportDirective",336 "scope": 2270,337 "sourceUnit": 931,338 "src": "403:126:5",339 "symbolAliases": [340 {341 "foreign": {342 "id": 1753,343 "name": "UniqueNFT",344 "nodeType": "Identifier",345 "overloadedDeclarations": [],346 "referencedDeclaration": 930,347 "src": "411:9:5",348 "typeDescriptions": {}349 },350 "nameLocation": "-1:-1:-1"351 },352 {353 "foreign": {354 "id": 1754,355 "name": "EthCrossAccount",356 "nodeType": "Identifier",357 "overloadedDeclarations": [],358 "referencedDeclaration": 610,359 "src": "422:15:5",360 "typeDescriptions": {}361 },362 "local": "NftCrossAccountId",363 "nameLocation": "-1:-1:-1"364 },365 {366 "foreign": {367 "id": 1755,368 "name": "Tuple21",369 "nodeType": "Identifier",370 "overloadedDeclarations": [],371 "referencedDeclaration": 620,372 "src": "460:7:5",373 "typeDescriptions": {}374 },375 "local": "NftProperty",376 "nameLocation": "-1:-1:-1"377 },378 {379 "foreign": {380 "id": 1756,381 "name": "TokenProperties",382 "nodeType": "Identifier",383 "overloadedDeclarations": [],384 "referencedDeclaration": 357,385 "src": "484:15:5",386 "typeDescriptions": {}387 },388 "nameLocation": "-1:-1:-1"389 }390 ],391 "unitAlias": ""392 },393 {394 "canonicalName": "Property",395 "id": 1762,396 "members": [397 {398 "constant": false,399 "id": 1759,400 "mutability": "mutable",401 "name": "key",402 "nameLocation": "557:3:5",403 "nodeType": "VariableDeclaration",404 "scope": 1762,405 "src": "550:10:5",406 "stateVariable": false,407 "storageLocation": "default",408 "typeDescriptions": {409 "typeIdentifier": "t_string_storage_ptr",410 "typeString": "string"411 },412 "typeName": {413 "id": 1758,414 "name": "string",415 "nodeType": "ElementaryTypeName",416 "src": "550:6:5",417 "typeDescriptions": {418 "typeIdentifier": "t_string_storage_ptr",419 "typeString": "string"420 }421 },422 "visibility": "internal"423 },424 {425 "constant": false,426 "id": 1761,427 "mutability": "mutable",428 "name": "value",429 "nameLocation": "569:5:5",430 "nodeType": "VariableDeclaration",431 "scope": 1762,432 "src": "563:11:5",433 "stateVariable": false,434 "storageLocation": "default",435 "typeDescriptions": {436 "typeIdentifier": "t_bytes_storage_ptr",437 "typeString": "bytes"438 },439 "typeName": {440 "id": 1760,441 "name": "bytes",442 "nodeType": "ElementaryTypeName",443 "src": "563:5:5",444 "typeDescriptions": {445 "typeIdentifier": "t_bytes_storage_ptr",446 "typeString": "bytes"447 }448 },449 "visibility": "internal"450 }451 ],452 "name": "Property",453 "nameLocation": "538:8:5",454 "nodeType": "StructDefinition",455 "scope": 2270,456 "src": "531:46:5",457 "visibility": "public"458 },459 {460 "abstract": false,461 "baseContracts": [],462 "canonicalName": "EvmToSubstrate",463 "contractDependencies": [],464 "contractKind": "contract",465 "fullyImplemented": true,466 "id": 2269,467 "linearizedBaseContracts": [468 2269469 ],470 "name": "EvmToSubstrate",471 "nameLocation": "682:14:5",472 "nodeType": "ContractDefinition",473 "nodes": [474 {475 "constant": true,476 "id": 1770,477 "mutability": "constant",478 "name": "REFUNGIBLE_COLLECTION_TYPE",479 "nameLocation": "717:26:5",480 "nodeType": "VariableDeclaration",481 "scope": 2269,482 "src": "700:76:5",483 "stateVariable": true,484 "storageLocation": "default",485 "typeDescriptions": {486 "typeIdentifier": "t_bytes32",487 "typeString": "bytes32"488 },489 "typeName": {490 "id": 1763,491 "name": "bytes32",492 "nodeType": "ElementaryTypeName",493 "src": "700:7:5",494 "typeDescriptions": {495 "typeIdentifier": "t_bytes32",496 "typeString": "bytes32"497 }498 },499 "value": {500 "arguments": [501 {502 "arguments": [503 {504 "hexValue": "526546756e6769626c65",505 "id": 1767,506 "isConstant": false,507 "isLValue": false,508 "isPure": true,509 "kind": "string",510 "lValueRequested": false,511 "nodeType": "Literal",512 "src": "762:12:5",513 "typeDescriptions": {514 "typeIdentifier": "t_stringliteral_cdb72fd4e1d0d6d4eebd7ab142113ec2b4b06ddb24324db5c287ef01ab484d6b",515 "typeString": "literal_string \"ReFungible\""516 },517 "value": "ReFungible"518 }519 ],520 "expression": {521 "argumentTypes": [522 {523 "typeIdentifier": "t_stringliteral_cdb72fd4e1d0d6d4eebd7ab142113ec2b4b06ddb24324db5c287ef01ab484d6b",524 "typeString": "literal_string \"ReFungible\""525 }526 ],527 "id": 1766,528 "isConstant": false,529 "isLValue": false,530 "isPure": true,531 "lValueRequested": false,532 "nodeType": "ElementaryTypeNameExpression",533 "src": "756:5:5",534 "typeDescriptions": {535 "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",536 "typeString": "type(bytes storage pointer)"537 },538 "typeName": {539 "id": 1765,540 "name": "bytes",541 "nodeType": "ElementaryTypeName",542 "src": "756:5:5",543 "typeDescriptions": {}544 }545 },546 "id": 1768,547 "isConstant": false,548 "isLValue": false,549 "isPure": true,550 "kind": "typeConversion",551 "lValueRequested": false,552 "nameLocations": [],553 "names": [],554 "nodeType": "FunctionCall",555 "src": "756:19:5",556 "tryCall": false,557 "typeDescriptions": {558 "typeIdentifier": "t_bytes_memory_ptr",559 "typeString": "bytes memory"560 }561 }562 ],563 "expression": {564 "argumentTypes": [565 {566 "typeIdentifier": "t_bytes_memory_ptr",567 "typeString": "bytes memory"568 }569 ],570 "id": 1764,571 "name": "keccak256",572 "nodeType": "Identifier",573 "overloadedDeclarations": [],574 "referencedDeclaration": 4294967288,575 "src": "746:9:5",576 "typeDescriptions": {577 "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",578 "typeString": "function (bytes memory) pure returns (bytes32)"579 }580 },581 "id": 1769,582 "isConstant": false,583 "isLValue": false,584 "isPure": true,585 "kind": "functionCall",586 "lValueRequested": false,587 "nameLocations": [],588 "names": [],589 "nodeType": "FunctionCall",590 "src": "746:30:5",591 "tryCall": false,592 "typeDescriptions": {593 "typeIdentifier": "t_bytes32",594 "typeString": "bytes32"595 }596 },597 "visibility": "internal"598 },599 {600 "constant": true,601 "id": 1778,602 "mutability": "constant",603 "name": "NONFUNGIBLE_COLLECTION_TYPE",604 "nameLocation": "796:27:5",605 "nodeType": "VariableDeclaration",606 "scope": 2269,607 "src": "779:70:5",608 "stateVariable": true,609 "storageLocation": "default",610 "typeDescriptions": {611 "typeIdentifier": "t_bytes32",612 "typeString": "bytes32"613 },614 "typeName": {615 "id": 1771,616 "name": "bytes32",617 "nodeType": "ElementaryTypeName",618 "src": "779:7:5",619 "typeDescriptions": {620 "typeIdentifier": "t_bytes32",621 "typeString": "bytes32"622 }623 },624 "value": {625 "arguments": [626 {627 "arguments": [628 {629 "hexValue": "4e4654",630 "id": 1775,631 "isConstant": false,632 "isLValue": false,633 "isPure": true,634 "kind": "string",635 "lValueRequested": false,636 "nodeType": "Literal",637 "src": "842:5:5",638 "typeDescriptions": {639 "typeIdentifier": "t_stringliteral_9c4138cd0a1311e4748f70d0fe3dc55f0f5f75e0f20db731225cbc3b8914016a",640 "typeString": "literal_string \"NFT\""641 },642 "value": "NFT"643 }644 ],645 "expression": {646 "argumentTypes": [647 {648 "typeIdentifier": "t_stringliteral_9c4138cd0a1311e4748f70d0fe3dc55f0f5f75e0f20db731225cbc3b8914016a",649 "typeString": "literal_string \"NFT\""650 }651 ],652 "id": 1774,653 "isConstant": false,654 "isLValue": false,655 "isPure": true,656 "lValueRequested": false,657 "nodeType": "ElementaryTypeNameExpression",658 "src": "836:5:5",659 "typeDescriptions": {660 "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",661 "typeString": "type(bytes storage pointer)"662 },663 "typeName": {664 "id": 1773,665 "name": "bytes",666 "nodeType": "ElementaryTypeName",667 "src": "836:5:5",668 "typeDescriptions": {}669 }670 },671 "id": 1776,672 "isConstant": false,673 "isLValue": false,674 "isPure": true,675 "kind": "typeConversion",676 "lValueRequested": false,677 "nameLocations": [],678 "names": [],679 "nodeType": "FunctionCall",680 "src": "836:12:5",681 "tryCall": false,682 "typeDescriptions": {683 "typeIdentifier": "t_bytes_memory_ptr",684 "typeString": "bytes memory"685 }686 }687 ],688 "expression": {689 "argumentTypes": [690 {691 "typeIdentifier": "t_bytes_memory_ptr",692 "typeString": "bytes memory"693 }694 ],695 "id": 1772,696 "name": "keccak256",697 "nodeType": "Identifier",698 "overloadedDeclarations": [],699 "referencedDeclaration": 4294967288,700 "src": "826:9:5",701 "typeDescriptions": {702 "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",703 "typeString": "function (bytes memory) pure returns (bytes32)"704 }705 },706 "id": 1777,707 "isConstant": false,708 "isLValue": false,709 "isPure": true,710 "kind": "functionCall",711 "lValueRequested": false,712 "nameLocations": [],713 "names": [],714 "nodeType": "FunctionCall",715 "src": "826:23:5",716 "tryCall": false,717 "typeDescriptions": {718 "typeIdentifier": "t_bytes32",719 "typeString": "bytes32"720 }721 },722 "visibility": "internal"723 },724 {725 "body": {726 "id": 1799,727 "nodeType": "Block",728 "src": "1159:889:5",729 "statements": [730 {731 "assignments": [732 1784733 ],734 "declarations": [735 {736 "constant": false,737 "id": 1784,738 "mutability": "mutable",739 "name": "commonContract",740 "nameLocation": "1174:14:5",741 "nodeType": "VariableDeclaration",742 "scope": 1799,743 "src": "1163:25:5",744 "stateVariable": false,745 "storageLocation": "default",746 "typeDescriptions": {747 "typeIdentifier": "t_contract$_Collection_$1248",748 "typeString": "contract Collection"749 },750 "typeName": {751 "id": 1783,752 "nodeType": "UserDefinedTypeName",753 "pathNode": {754 "id": 1782,755 "name": "Collection",756 "nameLocations": [757 "1163:10:5"758 ],759 "nodeType": "IdentifierPath",760 "referencedDeclaration": 1248,761 "src": "1163:10:5"762 },763 "referencedDeclaration": 1248,764 "src": "1163:10:5",765 "typeDescriptions": {766 "typeIdentifier": "t_contract$_Collection_$1248",767 "typeString": "contract Collection"768 }769 },770 "visibility": "internal"771 }772 ],773 "id": 1788,774 "initialValue": {775 "arguments": [776 {777 "id": 1786,778 "name": "_collection",779 "nodeType": "Identifier",780 "overloadedDeclarations": [],781 "referencedDeclaration": 1780,782 "src": "1202:11:5",783 "typeDescriptions": {784 "typeIdentifier": "t_address",785 "typeString": "address"786 }787 }788 ],789 "expression": {790 "argumentTypes": [791 {792 "typeIdentifier": "t_address",793 "typeString": "address"794 }795 ],796 "id": 1785,797 "name": "Collection",798 "nodeType": "Identifier",799 "overloadedDeclarations": [],800 "referencedDeclaration": 1248,801 "src": "1191:10:5",802 "typeDescriptions": {803 "typeIdentifier": "t_type$_t_contract$_Collection_$1248_$",804 "typeString": "type(contract Collection)"805 }806 },807 "id": 1787,808 "isConstant": false,809 "isLValue": false,810 "isPure": false,811 "kind": "typeConversion",812 "lValueRequested": false,813 "nameLocations": [],814 "names": [],815 "nodeType": "FunctionCall",816 "src": "1191:23:5",817 "tryCall": false,818 "typeDescriptions": {819 "typeIdentifier": "t_contract$_Collection_$1248",820 "typeString": "contract Collection"821 }822 },823 "nodeType": "VariableDeclarationStatement",824 "src": "1163:51:5"825 },826 {827 "expression": {828 "arguments": [829 {830 "arguments": [831 {832 "expression": {833 "id": 1792,834 "name": "msg",835 "nodeType": "Identifier",836 "overloadedDeclarations": [],837 "referencedDeclaration": 4294967281,838 "src": "1256:3:5",839 "typeDescriptions": {840 "typeIdentifier": "t_magic_message",841 "typeString": "msg"842 }843 },844 "id": 1793,845 "isConstant": false,846 "isLValue": false,847 "isPure": false,848 "lValueRequested": false,849 "memberLocation": "1260:6:5",850 "memberName": "sender",851 "nodeType": "MemberAccess",852 "src": "1256:10:5",853 "typeDescriptions": {854 "typeIdentifier": "t_address",855 "typeString": "address"856 }857 }858 ],859 "expression": {860 "argumentTypes": [861 {862 "typeIdentifier": "t_address",863 "typeString": "address"864 }865 ],866 "expression": {867 "id": 1790,868 "name": "commonContract",869 "nodeType": "Identifier",870 "overloadedDeclarations": [],871 "referencedDeclaration": 1784,872 "src": "1226:14:5",873 "typeDescriptions": {874 "typeIdentifier": "t_contract$_Collection_$1248",875 "typeString": "contract Collection"876 }877 },878 "id": 1791,879 "isConstant": false,880 "isLValue": false,881 "isPure": false,882 "lValueRequested": false,883 "memberLocation": "1241:14:5",884 "memberName": "isOwnerOrAdmin",885 "nodeType": "MemberAccess",886 "referencedDeclaration": 1204,887 "src": "1226:29:5",888 "typeDescriptions": {889 "typeIdentifier": "t_function_external_view$_t_address_$returns$_t_bool_$",890 "typeString": "function (address) view external returns (bool)"891 }892 },893 "id": 1794,894 "isConstant": false,895 "isLValue": false,896 "isPure": false,897 "kind": "functionCall",898 "lValueRequested": false,899 "nameLocations": [],900 "names": [],901 "nodeType": "FunctionCall",902 "src": "1226:41:5",903 "tryCall": false,904 "typeDescriptions": {905 "typeIdentifier": "t_bool",906 "typeString": "bool"907 }908 },909 {910 "hexValue": "4f6e6c7920636f6c6c656374696f6e2061646d696e2f6f776e65722063616e2063616c6c2074686973206d6574686f64",911 "id": 1795,912 "isConstant": false,913 "isLValue": false,914 "isPure": true,915 "kind": "string",916 "lValueRequested": false,917 "nodeType": "Literal",918 "src": "1269:50:5",919 "typeDescriptions": {920 "typeIdentifier": "t_stringliteral_9e1b1a457a3a51e38b70747f3c56c9a0ede0f22582e6963b10271c34b83f1ca3",921 "typeString": "literal_string \"Only collection admin/owner can call this method\""922 },923 "value": "Only collection admin/owner can call this method"924 }925 ],926 "expression": {927 "argumentTypes": [928 {929 "typeIdentifier": "t_bool",930 "typeString": "bool"931 },932 {933 "typeIdentifier": "t_stringliteral_9e1b1a457a3a51e38b70747f3c56c9a0ede0f22582e6963b10271c34b83f1ca3",934 "typeString": "literal_string \"Only collection admin/owner can call this method\""935 }936 ],937 "id": 1789,938 "name": "require",939 "nodeType": "Identifier",940 "overloadedDeclarations": [941 4294967278,942 4294967278943 ],944 "referencedDeclaration": 4294967278,945 "src": "1218:7:5",946 "typeDescriptions": {947 "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",948 "typeString": "function (bool,string memory) pure"949 }950 },951 "id": 1796,952 "isConstant": false,953 "isLValue": false,954 "isPure": false,955 "kind": "functionCall",956 "lValueRequested": false,957 "nameLocations": [],958 "names": [],959 "nodeType": "FunctionCall",960 "src": "1218:102:5",961 "tryCall": false,962 "typeDescriptions": {963 "typeIdentifier": "t_tuple$__$",964 "typeString": "tuple()"965 }966 },967 "id": 1797,968 "nodeType": "ExpressionStatement",969 "src": "1218:102:5"970 },971 {972 "id": 1798,973 "nodeType": "PlaceholderStatement",974 "src": "2043:1:5"975 }976 ]977 },978 "id": 1800,979 "name": "checkRestrictions",980 "nameLocation": "1120:17:5",981 "nodeType": "ModifierDefinition",982 "parameters": {983 "id": 1781,984 "nodeType": "ParameterList",985 "parameters": [986 {987 "constant": false,988 "id": 1780,989 "mutability": "mutable",990 "name": "_collection",991 "nameLocation": "1146:11:5",992 "nodeType": "VariableDeclaration",993 "scope": 1800,994 "src": "1138:19:5",995 "stateVariable": false,996 "storageLocation": "default",997 "typeDescriptions": {998 "typeIdentifier": "t_address",999 "typeString": "address"1000 },1001 "typeName": {1002 "id": 1779,1003 "name": "address",1004 "nodeType": "ElementaryTypeName",1005 "src": "1138:7:5",1006 "stateMutability": "nonpayable",1007 "typeDescriptions": {1008 "typeIdentifier": "t_address",1009 "typeString": "address"1010 }1011 },1012 "visibility": "internal"1013 }1014 ],1015 "src": "1137:21:5"1016 },1017 "src": "1111:937:5",1018 "virtual": false,1019 "visibility": "internal"1020 },1021 {1022 "anonymous": false,1023 "documentation": {1024 "id": 1801,1025 "nodeType": "StructuredDocumentation",1026 "src": "2051:69:5",1027 "text": "@dev This emits when a mint to a substrate address has been made."1028 },1029 "eventSelector": "fb3433367f20c42151d30b3d2c634726a94c4f9fa7d45120606029741aeb7535",1030 "id": 1811,1031 "name": "MintToSub",1032 "nameLocation": "2128:9:5",1033 "nodeType": "EventDefinition",1034 "parameters": {1035 "id": 1810,1036 "nodeType": "ParameterList",1037 "parameters": [1038 {1039 "constant": false,1040 "id": 1803,1041 "indexed": false,1042 "mutability": "mutable",1043 "name": "_toEth",1044 "nameLocation": "2146:6:5",1045 "nodeType": "VariableDeclaration",1046 "scope": 1811,1047 "src": "2138:14:5",1048 "stateVariable": false,1049 "storageLocation": "default",1050 "typeDescriptions": {1051 "typeIdentifier": "t_address",1052 "typeString": "address"1053 },1054 "typeName": {1055 "id": 1802,1056 "name": "address",1057 "nodeType": "ElementaryTypeName",1058 "src": "2138:7:5",1059 "stateMutability": "nonpayable",1060 "typeDescriptions": {1061 "typeIdentifier": "t_address",1062 "typeString": "address"1063 }1064 },1065 "visibility": "internal"1066 },1067 {1068 "constant": false,1069 "id": 1805,1070 "indexed": false,1071 "mutability": "mutable",1072 "name": "_toSub",1073 "nameLocation": "2162:6:5",1074 "nodeType": "VariableDeclaration",1075 "scope": 1811,1076 "src": "2154:14:5",1077 "stateVariable": false,1078 "storageLocation": "default",1079 "typeDescriptions": {1080 "typeIdentifier": "t_uint256",1081 "typeString": "uint256"1082 },1083 "typeName": {1084 "id": 1804,1085 "name": "uint256",1086 "nodeType": "ElementaryTypeName",1087 "src": "2154:7:5",1088 "typeDescriptions": {1089 "typeIdentifier": "t_uint256",1090 "typeString": "uint256"1091 }1092 },1093 "visibility": "internal"1094 },1095 {1096 "constant": false,1097 "id": 1807,1098 "indexed": false,1099 "mutability": "mutable",1100 "name": "_collection",1101 "nameLocation": "2178:11:5",1102 "nodeType": "VariableDeclaration",1103 "scope": 1811,1104 "src": "2170:19:5",1105 "stateVariable": false,1106 "storageLocation": "default",1107 "typeDescriptions": {1108 "typeIdentifier": "t_address",1109 "typeString": "address"1110 },1111 "typeName": {1112 "id": 1806,1113 "name": "address",1114 "nodeType": "ElementaryTypeName",1115 "src": "2170:7:5",1116 "stateMutability": "nonpayable",1117 "typeDescriptions": {1118 "typeIdentifier": "t_address",1119 "typeString": "address"1120 }1121 },1122 "visibility": "internal"1123 },1124 {1125 "constant": false,1126 "id": 1809,1127 "indexed": false,1128 "mutability": "mutable",1129 "name": "_tokenId",1130 "nameLocation": "2199:8:5",1131 "nodeType": "VariableDeclaration",1132 "scope": 1811,1133 "src": "2191:16:5",1134 "stateVariable": false,1135 "storageLocation": "default",1136 "typeDescriptions": {1137 "typeIdentifier": "t_uint256",1138 "typeString": "uint256"1139 },1140 "typeName": {1141 "id": 1808,1142 "name": "uint256",1143 "nodeType": "ElementaryTypeName",1144 "src": "2191:7:5",1145 "typeDescriptions": {1146 "typeIdentifier": "t_uint256",1147 "typeString": "uint256"1148 }1149 },1150 "visibility": "internal"1151 }1152 ],1153 "src": "2137:71:5"1154 },1155 "src": "2122:87:5"1156 },1157 {1158 "body": {1159 "id": 1941,1160 "nodeType": "Block",1161 "src": "2326:1359:5",1162 "statements": [1163 {1164 "assignments": [1165 18231166 ],1167 "declarations": [1168 {1169 "constant": false,1170 "id": 1823,1171 "mutability": "mutable",1172 "name": "commonContract",1173 "nameLocation": "2487:14:5",1174 "nodeType": "VariableDeclaration",1175 "scope": 1941,1176 "src": "2476:25:5",1177 "stateVariable": false,1178 "storageLocation": "default",1179 "typeDescriptions": {1180 "typeIdentifier": "t_contract$_Collection_$1248",1181 "typeString": "contract Collection"1182 },1183 "typeName": {1184 "id": 1822,1185 "nodeType": "UserDefinedTypeName",1186 "pathNode": {1187 "id": 1821,1188 "name": "Collection",1189 "nameLocations": [1190 "2476:10:5"1191 ],1192 "nodeType": "IdentifierPath",1193 "referencedDeclaration": 1248,1194 "src": "2476:10:5"1195 },1196 "referencedDeclaration": 1248,1197 "src": "2476:10:5",1198 "typeDescriptions": {1199 "typeIdentifier": "t_contract$_Collection_$1248",1200 "typeString": "contract Collection"1201 }1202 },1203 "visibility": "internal"1204 }1205 ],1206 "id": 1827,1207 "initialValue": {1208 "arguments": [1209 {1210 "id": 1825,1211 "name": "_collection",1212 "nodeType": "Identifier",1213 "overloadedDeclarations": [],1214 "referencedDeclaration": 1813,1215 "src": "2515:11:5",1216 "typeDescriptions": {1217 "typeIdentifier": "t_address",1218 "typeString": "address"1219 }1220 }1221 ],1222 "expression": {1223 "argumentTypes": [1224 {1225 "typeIdentifier": "t_address",1226 "typeString": "address"1227 }1228 ],1229 "id": 1824,1230 "name": "Collection",1231 "nodeType": "Identifier",1232 "overloadedDeclarations": [],1233 "referencedDeclaration": 1248,1234 "src": "2504:10:5",1235 "typeDescriptions": {1236 "typeIdentifier": "t_type$_t_contract$_Collection_$1248_$",1237 "typeString": "type(contract Collection)"1238 }1239 },1240 "id": 1826,1241 "isConstant": false,1242 "isLValue": false,1243 "isPure": false,1244 "kind": "typeConversion",1245 "lValueRequested": false,1246 "nameLocations": [],1247 "names": [],1248 "nodeType": "FunctionCall",1249 "src": "2504:23:5",1250 "tryCall": false,1251 "typeDescriptions": {1252 "typeIdentifier": "t_contract$_Collection_$1248",1253 "typeString": "contract Collection"1254 }1255 },1256 "nodeType": "VariableDeclarationStatement",1257 "src": "2476:51:5"1258 },1259 {1260 "assignments": [1261 18291262 ],1263 "declarations": [1264 {1265 "constant": false,1266 "id": 1829,1267 "mutability": "mutable",1268 "name": "collectionType",1269 "nameLocation": "2539:14:5",1270 "nodeType": "VariableDeclaration",1271 "scope": 1941,1272 "src": "2531:22:5",1273 "stateVariable": false,1274 "storageLocation": "default",1275 "typeDescriptions": {1276 "typeIdentifier": "t_bytes32",1277 "typeString": "bytes32"1278 },1279 "typeName": {1280 "id": 1828,1281 "name": "bytes32",1282 "nodeType": "ElementaryTypeName",1283 "src": "2531:7:5",1284 "typeDescriptions": {1285 "typeIdentifier": "t_bytes32",1286 "typeString": "bytes32"1287 }1288 },1289 "visibility": "internal"1290 }1291 ],1292 "id": 1838,1293 "initialValue": {1294 "arguments": [1295 {1296 "arguments": [1297 {1298 "arguments": [],1299 "expression": {1300 "argumentTypes": [],1301 "expression": {1302 "id": 1833,1303 "name": "commonContract",1304 "nodeType": "Identifier",1305 "overloadedDeclarations": [],1306 "referencedDeclaration": 1823,1307 "src": "2572:14:5",1308 "typeDescriptions": {1309 "typeIdentifier": "t_contract$_Collection_$1248",1310 "typeString": "contract Collection"1311 }1312 },1313 "id": 1834,1314 "isConstant": false,1315 "isLValue": false,1316 "isPure": false,1317 "lValueRequested": false,1318 "memberLocation": "2587:20:5",1319 "memberName": "uniqueCollectionType",1320 "nodeType": "MemberAccess",1321 "referencedDeclaration": 1219,1322 "src": "2572:35:5",1323 "typeDescriptions": {1324 "typeIdentifier": "t_function_external_view$__$returns$_t_string_memory_ptr_$",1325 "typeString": "function () view external returns (string memory)"1326 }1327 },1328 "id": 1835,1329 "isConstant": false,1330 "isLValue": false,1331 "isPure": false,1332 "kind": "functionCall",1333 "lValueRequested": false,1334 "nameLocations": [],1335 "names": [],1336 "nodeType": "FunctionCall",1337 "src": "2572:37:5",1338 "tryCall": false,1339 "typeDescriptions": {1340 "typeIdentifier": "t_string_memory_ptr",1341 "typeString": "string memory"1342 }1343 }1344 ],1345 "expression": {1346 "argumentTypes": [1347 {1348 "typeIdentifier": "t_string_memory_ptr",1349 "typeString": "string memory"1350 }1351 ],1352 "id": 1832,1353 "isConstant": false,1354 "isLValue": false,1355 "isPure": true,1356 "lValueRequested": false,1357 "nodeType": "ElementaryTypeNameExpression",1358 "src": "2566:5:5",1359 "typeDescriptions": {1360 "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",1361 "typeString": "type(bytes storage pointer)"1362 },1363 "typeName": {1364 "id": 1831,1365 "name": "bytes",1366 "nodeType": "ElementaryTypeName",1367 "src": "2566:5:5",1368 "typeDescriptions": {}1369 }1370 },1371 "id": 1836,1372 "isConstant": false,1373 "isLValue": false,1374 "isPure": false,1375 "kind": "typeConversion",1376 "lValueRequested": false,1377 "nameLocations": [],1378 "names": [],1379 "nodeType": "FunctionCall",1380 "src": "2566:44:5",1381 "tryCall": false,1382 "typeDescriptions": {1383 "typeIdentifier": "t_bytes_memory_ptr",1384 "typeString": "bytes memory"1385 }1386 }1387 ],1388 "expression": {1389 "argumentTypes": [1390 {1391 "typeIdentifier": "t_bytes_memory_ptr",1392 "typeString": "bytes memory"1393 }1394 ],1395 "id": 1830,1396 "name": "keccak256",1397 "nodeType": "Identifier",1398 "overloadedDeclarations": [],1399 "referencedDeclaration": 4294967288,1400 "src": "2556:9:5",1401 "typeDescriptions": {1402 "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",1403 "typeString": "function (bytes memory) pure returns (bytes32)"1404 }1405 },1406 "id": 1837,1407 "isConstant": false,1408 "isLValue": false,1409 "isPure": false,1410 "kind": "functionCall",1411 "lValueRequested": false,1412 "nameLocations": [],1413 "names": [],1414 "nodeType": "FunctionCall",1415 "src": "2556:55:5",1416 "tryCall": false,1417 "typeDescriptions": {1418 "typeIdentifier": "t_bytes32",1419 "typeString": "bytes32"1420 }1421 },1422 "nodeType": "VariableDeclarationStatement",1423 "src": "2531:80:5"1424 },1425 {1426 "assignments": [1427 18401428 ],1429 "declarations": [1430 {1431 "constant": false,1432 "id": 1840,1433 "mutability": "mutable",1434 "name": "tokenId",1435 "nameLocation": "2623:7:5",1436 "nodeType": "VariableDeclaration",1437 "scope": 1941,1438 "src": "2615:15:5",1439 "stateVariable": false,1440 "storageLocation": "default",1441 "typeDescriptions": {1442 "typeIdentifier": "t_uint256",1443 "typeString": "uint256"1444 },1445 "typeName": {1446 "id": 1839,1447 "name": "uint256",1448 "nodeType": "ElementaryTypeName",1449 "src": "2615:7:5",1450 "typeDescriptions": {1451 "typeIdentifier": "t_uint256",1452 "typeString": "uint256"1453 }1454 },1455 "visibility": "internal"1456 }1457 ],1458 "id": 1841,1459 "nodeType": "VariableDeclarationStatement",1460 "src": "2615:15:5"1461 },1462 {1463 "condition": {1464 "commonType": {1465 "typeIdentifier": "t_bytes32",1466 "typeString": "bytes32"1467 },1468 "id": 1844,1469 "isConstant": false,1470 "isLValue": false,1471 "isPure": false,1472 "lValueRequested": false,1473 "leftExpression": {1474 "id": 1842,1475 "name": "collectionType",1476 "nodeType": "Identifier",1477 "overloadedDeclarations": [],1478 "referencedDeclaration": 1829,1479 "src": "2639:14:5",1480 "typeDescriptions": {1481 "typeIdentifier": "t_bytes32",1482 "typeString": "bytes32"1483 }1484 },1485 "nodeType": "BinaryOperation",1486 "operator": "==",1487 "rightExpression": {1488 "id": 1843,1489 "name": "REFUNGIBLE_COLLECTION_TYPE",1490 "nodeType": "Identifier",1491 "overloadedDeclarations": [],1492 "referencedDeclaration": 1770,1493 "src": "2657:26:5",1494 "typeDescriptions": {1495 "typeIdentifier": "t_bytes32",1496 "typeString": "bytes32"1497 }1498 },1499 "src": "2639:44:5",1500 "typeDescriptions": {1501 "typeIdentifier": "t_bool",1502 "typeString": "bool"1503 }1504 },1505 "falseBody": {1506 "condition": {1507 "commonType": {1508 "typeIdentifier": "t_bytes32",1509 "typeString": "bytes32"1510 },1511 "id": 1885,1512 "isConstant": false,1513 "isLValue": false,1514 "isPure": false,1515 "lValueRequested": false,1516 "leftExpression": {1517 "id": 1883,1518 "name": "collectionType",1519 "nodeType": "Identifier",1520 "overloadedDeclarations": [],1521 "referencedDeclaration": 1829,1522 "src": "2970:14:5",1523 "typeDescriptions": {1524 "typeIdentifier": "t_bytes32",1525 "typeString": "bytes32"1526 }1527 },1528 "nodeType": "BinaryOperation",1529 "operator": "==",1530 "rightExpression": {1531 "id": 1884,1532 "name": "NONFUNGIBLE_COLLECTION_TYPE",1533 "nodeType": "Identifier",1534 "overloadedDeclarations": [],1535 "referencedDeclaration": 1778,1536 "src": "2988:27:5",1537 "typeDescriptions": {1538 "typeIdentifier": "t_bytes32",1539 "typeString": "bytes32"1540 }1541 },1542 "src": "2970:45:5",1543 "typeDescriptions": {1544 "typeIdentifier": "t_bool",1545 "typeString": "bool"1546 }1547 },1548 "falseBody": {1549 "id": 1928,1550 "nodeType": "Block",1551 "src": "3325:69:5",1552 "statements": [1553 {1554 "expression": {1555 "arguments": [1556 {1557 "hexValue": "57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c792077697468204e4654206f7220524654",1558 "id": 1925,1559 "isConstant": false,1560 "isLValue": false,1561 "isPure": true,1562 "kind": "string",1563 "lValueRequested": false,1564 "nodeType": "Literal",1565 "src": "3337:51:5",1566 "typeDescriptions": {1567 "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",1568 "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""1569 },1570 "value": "Wrong collection type. Works only with NFT or RFT"1571 }1572 ],1573 "expression": {1574 "argumentTypes": [1575 {1576 "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",1577 "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""1578 }1579 ],1580 "id": 1924,1581 "name": "revert",1582 "nodeType": "Identifier",1583 "overloadedDeclarations": [1584 4294967277,1585 42949672771586 ],1587 "referencedDeclaration": 4294967277,1588 "src": "3330:6:5",1589 "typeDescriptions": {1590 "typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",1591 "typeString": "function (string memory) pure"1592 }1593 },1594 "id": 1926,1595 "isConstant": false,1596 "isLValue": false,1597 "isPure": false,1598 "kind": "functionCall",1599 "lValueRequested": false,1600 "nameLocations": [],1601 "names": [],1602 "nodeType": "FunctionCall",1603 "src": "3330:59:5",1604 "tryCall": false,1605 "typeDescriptions": {1606 "typeIdentifier": "t_tuple$__$",1607 "typeString": "tuple()"1608 }1609 },1610 "id": 1927,1611 "nodeType": "ExpressionStatement",1612 "src": "3330:59:5"1613 }1614 ]1615 },1616 "id": 1929,1617 "nodeType": "IfStatement",1618 "src": "2966:428:5",1619 "trueBody": {1620 "id": 1923,1621 "nodeType": "Block",1622 "src": "3017:302:5",1623 "statements": [1624 {1625 "assignments": [1626 18881627 ],1628 "declarations": [1629 {1630 "constant": false,1631 "id": 1888,1632 "mutability": "mutable",1633 "name": "nftCollection",1634 "nameLocation": "3032:13:5",1635 "nodeType": "VariableDeclaration",1636 "scope": 1923,1637 "src": "3022:23:5",1638 "stateVariable": false,1639 "storageLocation": "default",1640 "typeDescriptions": {1641 "typeIdentifier": "t_contract$_UniqueNFT_$930",1642 "typeString": "contract UniqueNFT"1643 },1644 "typeName": {1645 "id": 1887,1646 "nodeType": "UserDefinedTypeName",1647 "pathNode": {1648 "id": 1886,1649 "name": "UniqueNFT",1650 "nameLocations": [1651 "3022:9:5"1652 ],1653 "nodeType": "IdentifierPath",1654 "referencedDeclaration": 930,1655 "src": "3022:9:5"1656 },1657 "referencedDeclaration": 930,1658 "src": "3022:9:5",1659 "typeDescriptions": {1660 "typeIdentifier": "t_contract$_UniqueNFT_$930",1661 "typeString": "contract UniqueNFT"1662 }1663 },1664 "visibility": "internal"1665 }1666 ],1667 "id": 1892,1668 "initialValue": {1669 "arguments": [1670 {1671 "id": 1890,1672 "name": "_collection",1673 "nodeType": "Identifier",1674 "overloadedDeclarations": [],1675 "referencedDeclaration": 1813,1676 "src": "3058:11:5",1677 "typeDescriptions": {1678 "typeIdentifier": "t_address",1679 "typeString": "address"1680 }1681 }1682 ],1683 "expression": {1684 "argumentTypes": [1685 {1686 "typeIdentifier": "t_address",1687 "typeString": "address"1688 }1689 ],1690 "id": 1889,1691 "name": "UniqueNFT",1692 "nodeType": "Identifier",1693 "overloadedDeclarations": [],1694 "referencedDeclaration": 930,1695 "src": "3048:9:5",1696 "typeDescriptions": {1697 "typeIdentifier": "t_type$_t_contract$_UniqueNFT_$930_$",1698 "typeString": "type(contract UniqueNFT)"1699 }1700 },1701 "id": 1891,1702 "isConstant": false,1703 "isLValue": false,1704 "isPure": false,1705 "kind": "typeConversion",1706 "lValueRequested": false,1707 "nameLocations": [],1708 "names": [],1709 "nodeType": "FunctionCall",1710 "src": "3048:22:5",1711 "tryCall": false,1712 "typeDescriptions": {1713 "typeIdentifier": "t_contract$_UniqueNFT_$930",1714 "typeString": "contract UniqueNFT"1715 }1716 },1717 "nodeType": "VariableDeclarationStatement",1718 "src": "3022:48:5"1719 },1720 {1721 "expression": {1722 "id": 1901,1723 "isConstant": false,1724 "isLValue": false,1725 "isPure": false,1726 "lValueRequested": false,1727 "leftHandSide": {1728 "id": 1893,1729 "name": "tokenId",1730 "nodeType": "Identifier",1731 "overloadedDeclarations": [],1732 "referencedDeclaration": 1840,1733 "src": "3120:7:5",1734 "typeDescriptions": {1735 "typeIdentifier": "t_uint256",1736 "typeString": "uint256"1737 }1738 },1739 "nodeType": "Assignment",1740 "operator": "=",1741 "rightHandSide": {1742 "arguments": [1743 {1744 "arguments": [1745 {1746 "id": 1898,1747 "name": "this",1748 "nodeType": "Identifier",1749 "overloadedDeclarations": [],1750 "referencedDeclaration": 4294967268,1751 "src": "3157:4:5",1752 "typeDescriptions": {1753 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",1754 "typeString": "contract EvmToSubstrate"1755 }1756 }1757 ],1758 "expression": {1759 "argumentTypes": [1760 {1761 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",1762 "typeString": "contract EvmToSubstrate"1763 }1764 ],1765 "id": 1897,1766 "isConstant": false,1767 "isLValue": false,1768 "isPure": true,1769 "lValueRequested": false,1770 "nodeType": "ElementaryTypeNameExpression",1771 "src": "3149:7:5",1772 "typeDescriptions": {1773 "typeIdentifier": "t_type$_t_address_$",1774 "typeString": "type(address)"1775 },1776 "typeName": {1777 "id": 1896,1778 "name": "address",1779 "nodeType": "ElementaryTypeName",1780 "src": "3149:7:5",1781 "typeDescriptions": {}1782 }1783 },1784 "id": 1899,1785 "isConstant": false,1786 "isLValue": false,1787 "isPure": false,1788 "kind": "typeConversion",1789 "lValueRequested": false,1790 "nameLocations": [],1791 "names": [],1792 "nodeType": "FunctionCall",1793 "src": "3149:13:5",1794 "tryCall": false,1795 "typeDescriptions": {1796 "typeIdentifier": "t_address",1797 "typeString": "address"1798 }1799 }1800 ],1801 "expression": {1802 "argumentTypes": [1803 {1804 "typeIdentifier": "t_address",1805 "typeString": "address"1806 }1807 ],1808 "expression": {1809 "id": 1894,1810 "name": "nftCollection",1811 "nodeType": "Identifier",1812 "overloadedDeclarations": [],1813 "referencedDeclaration": 1888,1814 "src": "3130:13:5",1815 "typeDescriptions": {1816 "typeIdentifier": "t_contract$_UniqueNFT_$930",1817 "typeString": "contract UniqueNFT"1818 }1819 },1820 "id": 1895,1821 "isConstant": false,1822 "isLValue": false,1823 "isPure": false,1824 "lValueRequested": false,1825 "memberLocation": "3144:4:5",1826 "memberName": "mint",1827 "nodeType": "MemberAccess",1828 "referencedDeclaration": 671,1829 "src": "3130:18:5",1830 "typeDescriptions": {1831 "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$_t_uint256_$",1832 "typeString": "function (address) external returns (uint256)"1833 }1834 },1835 "id": 1900,1836 "isConstant": false,1837 "isLValue": false,1838 "isPure": false,1839 "kind": "functionCall",1840 "lValueRequested": false,1841 "nameLocations": [],1842 "names": [],1843 "nodeType": "FunctionCall",1844 "src": "3130:33:5",1845 "tryCall": false,1846 "typeDescriptions": {1847 "typeIdentifier": "t_uint256",1848 "typeString": "uint256"1849 }1850 },1851 "src": "3120:43:5",1852 "typeDescriptions": {1853 "typeIdentifier": "t_uint256",1854 "typeString": "uint256"1855 }1856 },1857 "id": 1902,1858 "nodeType": "ExpressionStatement",1859 "src": "3120:43:5"1860 },1861 {1862 "expression": {1863 "arguments": [1864 {1865 "arguments": [1866 {1867 "arguments": [1868 {1869 "id": 1909,1870 "name": "this",1871 "nodeType": "Identifier",1872 "overloadedDeclarations": [],1873 "referencedDeclaration": 4294967268,1874 "src": "3232:4:5",1875 "typeDescriptions": {1876 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",1877 "typeString": "contract EvmToSubstrate"1878 }1879 }1880 ],1881 "expression": {1882 "argumentTypes": [1883 {1884 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",1885 "typeString": "contract EvmToSubstrate"1886 }1887 ],1888 "id": 1908,1889 "isConstant": false,1890 "isLValue": false,1891 "isPure": true,1892 "lValueRequested": false,1893 "nodeType": "ElementaryTypeNameExpression",1894 "src": "3224:7:5",1895 "typeDescriptions": {1896 "typeIdentifier": "t_type$_t_address_$",1897 "typeString": "type(address)"1898 },1899 "typeName": {1900 "id": 1907,1901 "name": "address",1902 "nodeType": "ElementaryTypeName",1903 "src": "3224:7:5",1904 "typeDescriptions": {}1905 }1906 },1907 "id": 1910,1908 "isConstant": false,1909 "isLValue": false,1910 "isPure": false,1911 "kind": "typeConversion",1912 "lValueRequested": false,1913 "nameLocations": [],1914 "names": [],1915 "nodeType": "FunctionCall",1916 "src": "3224:13:5",1917 "tryCall": false,1918 "typeDescriptions": {1919 "typeIdentifier": "t_address",1920 "typeString": "address"1921 }1922 },1923 {1924 "hexValue": "30",1925 "id": 1911,1926 "isConstant": false,1927 "isLValue": false,1928 "isPure": true,1929 "kind": "number",1930 "lValueRequested": false,1931 "nodeType": "Literal",1932 "src": "3239:1:5",1933 "typeDescriptions": {1934 "typeIdentifier": "t_rational_0_by_1",1935 "typeString": "int_const 0"1936 },1937 "value": "0"1938 }1939 ],1940 "expression": {1941 "argumentTypes": [1942 {1943 "typeIdentifier": "t_address",1944 "typeString": "address"1945 },1946 {1947 "typeIdentifier": "t_rational_0_by_1",1948 "typeString": "int_const 0"1949 }1950 ],1951 "id": 1906,1952 "name": "NftCrossAccountId",1953 "nodeType": "Identifier",1954 "overloadedDeclarations": [],1955 "referencedDeclaration": 610,1956 "src": "3206:17:5",1957 "typeDescriptions": {1958 "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",1959 "typeString": "type(struct EthCrossAccount storage pointer)"1960 }1961 },1962 "id": 1912,1963 "isConstant": false,1964 "isLValue": false,1965 "isPure": false,1966 "kind": "structConstructorCall",1967 "lValueRequested": false,1968 "nameLocations": [],1969 "names": [],1970 "nodeType": "FunctionCall",1971 "src": "3206:35:5",1972 "tryCall": false,1973 "typeDescriptions": {1974 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",1975 "typeString": "struct EthCrossAccount memory"1976 }1977 },1978 {1979 "arguments": [1980 {1981 "arguments": [1982 {1983 "hexValue": "30",1984 "id": 1916,1985 "isConstant": false,1986 "isLValue": false,1987 "isPure": true,1988 "kind": "number",1989 "lValueRequested": false,1990 "nodeType": "Literal",1991 "src": "3273:1:5",1992 "typeDescriptions": {1993 "typeIdentifier": "t_rational_0_by_1",1994 "typeString": "int_const 0"1995 },1996 "value": "0"1997 }1998 ],1999 "expression": {2000 "argumentTypes": [2001 {2002 "typeIdentifier": "t_rational_0_by_1",2003 "typeString": "int_const 0"2004 }2005 ],2006 "id": 1915,2007 "isConstant": false,2008 "isLValue": false,2009 "isPure": true,2010 "lValueRequested": false,2011 "nodeType": "ElementaryTypeNameExpression",2012 "src": "3265:7:5",2013 "typeDescriptions": {2014 "typeIdentifier": "t_type$_t_address_$",2015 "typeString": "type(address)"2016 },2017 "typeName": {2018 "id": 1914,2019 "name": "address",2020 "nodeType": "ElementaryTypeName",2021 "src": "3265:7:5",2022 "typeDescriptions": {}2023 }2024 },2025 "id": 1917,2026 "isConstant": false,2027 "isLValue": false,2028 "isPure": true,2029 "kind": "typeConversion",2030 "lValueRequested": false,2031 "nameLocations": [],2032 "names": [],2033 "nodeType": "FunctionCall",2034 "src": "3265:10:5",2035 "tryCall": false,2036 "typeDescriptions": {2037 "typeIdentifier": "t_address",2038 "typeString": "address"2039 }2040 },2041 {2042 "id": 1918,2043 "name": "_substrateReceiver",2044 "nodeType": "Identifier",2045 "overloadedDeclarations": [],2046 "referencedDeclaration": 1815,2047 "src": "3277:18:5",2048 "typeDescriptions": {2049 "typeIdentifier": "t_uint256",2050 "typeString": "uint256"2051 }2052 }2053 ],2054 "expression": {2055 "argumentTypes": [2056 {2057 "typeIdentifier": "t_address",2058 "typeString": "address"2059 },2060 {2061 "typeIdentifier": "t_uint256",2062 "typeString": "uint256"2063 }2064 ],2065 "id": 1913,2066 "name": "NftCrossAccountId",2067 "nodeType": "Identifier",2068 "overloadedDeclarations": [],2069 "referencedDeclaration": 610,2070 "src": "3247:17:5",2071 "typeDescriptions": {2072 "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",2073 "typeString": "type(struct EthCrossAccount storage pointer)"2074 }2075 },2076 "id": 1919,2077 "isConstant": false,2078 "isLValue": false,2079 "isPure": false,2080 "kind": "structConstructorCall",2081 "lValueRequested": false,2082 "nameLocations": [],2083 "names": [],2084 "nodeType": "FunctionCall",2085 "src": "3247:49:5",2086 "tryCall": false,2087 "typeDescriptions": {2088 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",2089 "typeString": "struct EthCrossAccount memory"2090 }2091 },2092 {2093 "id": 1920,2094 "name": "tokenId",2095 "nodeType": "Identifier",2096 "overloadedDeclarations": [],2097 "referencedDeclaration": 1840,2098 "src": "3302:7:5",2099 "typeDescriptions": {2100 "typeIdentifier": "t_uint256",2101 "typeString": "uint256"2102 }2103 }2104 ],2105 "expression": {2106 "argumentTypes": [2107 {2108 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",2109 "typeString": "struct EthCrossAccount memory"2110 },2111 {2112 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",2113 "typeString": "struct EthCrossAccount memory"2114 },2115 {2116 "typeIdentifier": "t_uint256",2117 "typeString": "uint256"2118 }2119 ],2120 "expression": {2121 "id": 1903,2122 "name": "nftCollection",2123 "nodeType": "Identifier",2124 "overloadedDeclarations": [],2125 "referencedDeclaration": 1888,2126 "src": "3169:13:5",2127 "typeDescriptions": {2128 "typeIdentifier": "t_contract$_UniqueNFT_$930",2129 "typeString": "contract UniqueNFT"2130 }2131 },2132 "id": 1905,2133 "isConstant": false,2134 "isLValue": false,2135 "isPure": false,2136 "lValueRequested": false,2137 "memberLocation": "3183:17:5",2138 "memberName": "transferFromCross",2139 "nodeType": "MemberAccess",2140 "referencedDeclaration": 734,2141 "src": "3169:31:5",2142 "typeDescriptions": {2143 "typeIdentifier": "t_function_external_nonpayable$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_uint256_$returns$__$",2144 "typeString": "function (struct EthCrossAccount memory,struct EthCrossAccount memory,uint256) external"2145 }2146 },2147 "id": 1921,2148 "isConstant": false,2149 "isLValue": false,2150 "isPure": false,2151 "kind": "functionCall",2152 "lValueRequested": false,2153 "nameLocations": [],2154 "names": [],2155 "nodeType": "FunctionCall",2156 "src": "3169:145:5",2157 "tryCall": false,2158 "typeDescriptions": {2159 "typeIdentifier": "t_tuple$__$",2160 "typeString": "tuple()"2161 }2162 },2163 "id": 1922,2164 "nodeType": "ExpressionStatement",2165 "src": "3169:145:5"2166 }2167 ]2168 }2169 },2170 "id": 1930,2171 "nodeType": "IfStatement",2172 "src": "2635:759:5",2173 "trueBody": {2174 "id": 1882,2175 "nodeType": "Block",2176 "src": "2685:275:5",2177 "statements": [2178 {2179 "assignments": [2180 18472181 ],2182 "declarations": [2183 {2184 "constant": false,2185 "id": 1847,2186 "mutability": "mutable",2187 "name": "rftCollection",2188 "nameLocation": "2707:13:5",2189 "nodeType": "VariableDeclaration",2190 "scope": 1882,2191 "src": "2690:30:5",2192 "stateVariable": false,2193 "storageLocation": "default",2194 "typeDescriptions": {2195 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",2196 "typeString": "contract UniqueRefungible"2197 },2198 "typeName": {2199 "id": 1846,2200 "nodeType": "UserDefinedTypeName",2201 "pathNode": {2202 "id": 1845,2203 "name": "UniqueRefungible",2204 "nameLocations": [2205 "2690:16:5"2206 ],2207 "nodeType": "IdentifierPath",2208 "referencedDeclaration": 1572,2209 "src": "2690:16:5"2210 },2211 "referencedDeclaration": 1572,2212 "src": "2690:16:5",2213 "typeDescriptions": {2214 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",2215 "typeString": "contract UniqueRefungible"2216 }2217 },2218 "visibility": "internal"2219 }2220 ],2221 "id": 1851,2222 "initialValue": {2223 "arguments": [2224 {2225 "id": 1849,2226 "name": "_collection",2227 "nodeType": "Identifier",2228 "overloadedDeclarations": [],2229 "referencedDeclaration": 1813,2230 "src": "2740:11:5",2231 "typeDescriptions": {2232 "typeIdentifier": "t_address",2233 "typeString": "address"2234 }2235 }2236 ],2237 "expression": {2238 "argumentTypes": [2239 {2240 "typeIdentifier": "t_address",2241 "typeString": "address"2242 }2243 ],2244 "id": 1848,2245 "name": "UniqueRefungible",2246 "nodeType": "Identifier",2247 "overloadedDeclarations": [],2248 "referencedDeclaration": 1572,2249 "src": "2723:16:5",2250 "typeDescriptions": {2251 "typeIdentifier": "t_type$_t_contract$_UniqueRefungible_$1572_$",2252 "typeString": "type(contract UniqueRefungible)"2253 }2254 },2255 "id": 1850,2256 "isConstant": false,2257 "isLValue": false,2258 "isPure": false,2259 "kind": "typeConversion",2260 "lValueRequested": false,2261 "nameLocations": [],2262 "names": [],2263 "nodeType": "FunctionCall",2264 "src": "2723:29:5",2265 "tryCall": false,2266 "typeDescriptions": {2267 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",2268 "typeString": "contract UniqueRefungible"2269 }2270 },2271 "nodeType": "VariableDeclarationStatement",2272 "src": "2690:62:5"2273 },2274 {2275 "expression": {2276 "id": 1860,2277 "isConstant": false,2278 "isLValue": false,2279 "isPure": false,2280 "lValueRequested": false,2281 "leftHandSide": {2282 "id": 1852,2283 "name": "tokenId",2284 "nodeType": "Identifier",2285 "overloadedDeclarations": [],2286 "referencedDeclaration": 1840,2287 "src": "2761:7:5",2288 "typeDescriptions": {2289 "typeIdentifier": "t_uint256",2290 "typeString": "uint256"2291 }2292 },2293 "nodeType": "Assignment",2294 "operator": "=",2295 "rightHandSide": {2296 "arguments": [2297 {2298 "arguments": [2299 {2300 "id": 1857,2301 "name": "this",2302 "nodeType": "Identifier",2303 "overloadedDeclarations": [],2304 "referencedDeclaration": 4294967268,2305 "src": "2798:4:5",2306 "typeDescriptions": {2307 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",2308 "typeString": "contract EvmToSubstrate"2309 }2310 }2311 ],2312 "expression": {2313 "argumentTypes": [2314 {2315 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",2316 "typeString": "contract EvmToSubstrate"2317 }2318 ],2319 "id": 1856,2320 "isConstant": false,2321 "isLValue": false,2322 "isPure": true,2323 "lValueRequested": false,2324 "nodeType": "ElementaryTypeNameExpression",2325 "src": "2790:7:5",2326 "typeDescriptions": {2327 "typeIdentifier": "t_type$_t_address_$",2328 "typeString": "type(address)"2329 },2330 "typeName": {2331 "id": 1855,2332 "name": "address",2333 "nodeType": "ElementaryTypeName",2334 "src": "2790:7:5",2335 "typeDescriptions": {}2336 }2337 },2338 "id": 1858,2339 "isConstant": false,2340 "isLValue": false,2341 "isPure": false,2342 "kind": "typeConversion",2343 "lValueRequested": false,2344 "nameLocations": [],2345 "names": [],2346 "nodeType": "FunctionCall",2347 "src": "2790:13:5",2348 "tryCall": false,2349 "typeDescriptions": {2350 "typeIdentifier": "t_address",2351 "typeString": "address"2352 }2353 }2354 ],2355 "expression": {2356 "argumentTypes": [2357 {2358 "typeIdentifier": "t_address",2359 "typeString": "address"2360 }2361 ],2362 "expression": {2363 "id": 1853,2364 "name": "rftCollection",2365 "nodeType": "Identifier",2366 "overloadedDeclarations": [],2367 "referencedDeclaration": 1847,2368 "src": "2771:13:5",2369 "typeDescriptions": {2370 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",2371 "typeString": "contract UniqueRefungible"2372 }2373 },2374 "id": 1854,2375 "isConstant": false,2376 "isLValue": false,2377 "isPure": false,2378 "lValueRequested": false,2379 "memberLocation": "2785:4:5",2380 "memberName": "mint",2381 "nodeType": "MemberAccess",2382 "referencedDeclaration": 1314,2383 "src": "2771:18:5",2384 "typeDescriptions": {2385 "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$_t_uint256_$",2386 "typeString": "function (address) external returns (uint256)"2387 }2388 },2389 "id": 1859,2390 "isConstant": false,2391 "isLValue": false,2392 "isPure": false,2393 "kind": "functionCall",2394 "lValueRequested": false,2395 "nameLocations": [],2396 "names": [],2397 "nodeType": "FunctionCall",2398 "src": "2771:33:5",2399 "tryCall": false,2400 "typeDescriptions": {2401 "typeIdentifier": "t_uint256",2402 "typeString": "uint256"2403 }2404 },2405 "src": "2761:43:5",2406 "typeDescriptions": {2407 "typeIdentifier": "t_uint256",2408 "typeString": "uint256"2409 }2410 },2411 "id": 1861,2412 "nodeType": "ExpressionStatement",2413 "src": "2761:43:5"2414 },2415 {2416 "expression": {2417 "arguments": [2418 {2419 "arguments": [2420 {2421 "arguments": [2422 {2423 "id": 1868,2424 "name": "this",2425 "nodeType": "Identifier",2426 "overloadedDeclarations": [],2427 "referencedDeclaration": 4294967268,2428 "src": "2873:4:5",2429 "typeDescriptions": {2430 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",2431 "typeString": "contract EvmToSubstrate"2432 }2433 }2434 ],2435 "expression": {2436 "argumentTypes": [2437 {2438 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",2439 "typeString": "contract EvmToSubstrate"2440 }2441 ],2442 "id": 1867,2443 "isConstant": false,2444 "isLValue": false,2445 "isPure": true,2446 "lValueRequested": false,2447 "nodeType": "ElementaryTypeNameExpression",2448 "src": "2865:7:5",2449 "typeDescriptions": {2450 "typeIdentifier": "t_type$_t_address_$",2451 "typeString": "type(address)"2452 },2453 "typeName": {2454 "id": 1866,2455 "name": "address",2456 "nodeType": "ElementaryTypeName",2457 "src": "2865:7:5",2458 "typeDescriptions": {}2459 }2460 },2461 "id": 1869,2462 "isConstant": false,2463 "isLValue": false,2464 "isPure": false,2465 "kind": "typeConversion",2466 "lValueRequested": false,2467 "nameLocations": [],2468 "names": [],2469 "nodeType": "FunctionCall",2470 "src": "2865:13:5",2471 "tryCall": false,2472 "typeDescriptions": {2473 "typeIdentifier": "t_address",2474 "typeString": "address"2475 }2476 },2477 {2478 "hexValue": "30",2479 "id": 1870,2480 "isConstant": false,2481 "isLValue": false,2482 "isPure": true,2483 "kind": "number",2484 "lValueRequested": false,2485 "nodeType": "Literal",2486 "src": "2880:1:5",2487 "typeDescriptions": {2488 "typeIdentifier": "t_rational_0_by_1",2489 "typeString": "int_const 0"2490 },2491 "value": "0"2492 }2493 ],2494 "expression": {2495 "argumentTypes": [2496 {2497 "typeIdentifier": "t_address",2498 "typeString": "address"2499 },2500 {2501 "typeIdentifier": "t_rational_0_by_1",2502 "typeString": "int_const 0"2503 }2504 ],2505 "id": 1865,2506 "name": "RftCrossAccountId",2507 "nodeType": "Identifier",2508 "overloadedDeclarations": [],2509 "referencedDeclaration": 1253,2510 "src": "2847:17:5",2511 "typeDescriptions": {2512 "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$1253_storage_ptr_$",2513 "typeString": "type(struct EthCrossAccount storage pointer)"2514 }2515 },2516 "id": 1871,2517 "isConstant": false,2518 "isLValue": false,2519 "isPure": false,2520 "kind": "structConstructorCall",2521 "lValueRequested": false,2522 "nameLocations": [],2523 "names": [],2524 "nodeType": "FunctionCall",2525 "src": "2847:35:5",2526 "tryCall": false,2527 "typeDescriptions": {2528 "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",2529 "typeString": "struct EthCrossAccount memory"2530 }2531 },2532 {2533 "arguments": [2534 {2535 "arguments": [2536 {2537 "hexValue": "30",2538 "id": 1875,2539 "isConstant": false,2540 "isLValue": false,2541 "isPure": true,2542 "kind": "number",2543 "lValueRequested": false,2544 "nodeType": "Literal",2545 "src": "2914:1:5",2546 "typeDescriptions": {2547 "typeIdentifier": "t_rational_0_by_1",2548 "typeString": "int_const 0"2549 },2550 "value": "0"2551 }2552 ],2553 "expression": {2554 "argumentTypes": [2555 {2556 "typeIdentifier": "t_rational_0_by_1",2557 "typeString": "int_const 0"2558 }2559 ],2560 "id": 1874,2561 "isConstant": false,2562 "isLValue": false,2563 "isPure": true,2564 "lValueRequested": false,2565 "nodeType": "ElementaryTypeNameExpression",2566 "src": "2906:7:5",2567 "typeDescriptions": {2568 "typeIdentifier": "t_type$_t_address_$",2569 "typeString": "type(address)"2570 },2571 "typeName": {2572 "id": 1873,2573 "name": "address",2574 "nodeType": "ElementaryTypeName",2575 "src": "2906:7:5",2576 "typeDescriptions": {}2577 }2578 },2579 "id": 1876,2580 "isConstant": false,2581 "isLValue": false,2582 "isPure": true,2583 "kind": "typeConversion",2584 "lValueRequested": false,2585 "nameLocations": [],2586 "names": [],2587 "nodeType": "FunctionCall",2588 "src": "2906:10:5",2589 "tryCall": false,2590 "typeDescriptions": {2591 "typeIdentifier": "t_address",2592 "typeString": "address"2593 }2594 },2595 {2596 "id": 1877,2597 "name": "_substrateReceiver",2598 "nodeType": "Identifier",2599 "overloadedDeclarations": [],2600 "referencedDeclaration": 1815,2601 "src": "2918:18:5",2602 "typeDescriptions": {2603 "typeIdentifier": "t_uint256",2604 "typeString": "uint256"2605 }2606 }2607 ],2608 "expression": {2609 "argumentTypes": [2610 {2611 "typeIdentifier": "t_address",2612 "typeString": "address"2613 },2614 {2615 "typeIdentifier": "t_uint256",2616 "typeString": "uint256"2617 }2618 ],2619 "id": 1872,2620 "name": "RftCrossAccountId",2621 "nodeType": "Identifier",2622 "overloadedDeclarations": [],2623 "referencedDeclaration": 1253,2624 "src": "2888:17:5",2625 "typeDescriptions": {2626 "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$1253_storage_ptr_$",2627 "typeString": "type(struct EthCrossAccount storage pointer)"2628 }2629 },2630 "id": 1878,2631 "isConstant": false,2632 "isLValue": false,2633 "isPure": false,2634 "kind": "structConstructorCall",2635 "lValueRequested": false,2636 "nameLocations": [],2637 "names": [],2638 "nodeType": "FunctionCall",2639 "src": "2888:49:5",2640 "tryCall": false,2641 "typeDescriptions": {2642 "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",2643 "typeString": "struct EthCrossAccount memory"2644 }2645 },2646 {2647 "id": 1879,2648 "name": "tokenId",2649 "nodeType": "Identifier",2650 "overloadedDeclarations": [],2651 "referencedDeclaration": 1840,2652 "src": "2943:7:5",2653 "typeDescriptions": {2654 "typeIdentifier": "t_uint256",2655 "typeString": "uint256"2656 }2657 }2658 ],2659 "expression": {2660 "argumentTypes": [2661 {2662 "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",2663 "typeString": "struct EthCrossAccount memory"2664 },2665 {2666 "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",2667 "typeString": "struct EthCrossAccount memory"2668 },2669 {2670 "typeIdentifier": "t_uint256",2671 "typeString": "uint256"2672 }2673 ],2674 "expression": {2675 "id": 1862,2676 "name": "rftCollection",2677 "nodeType": "Identifier",2678 "overloadedDeclarations": [],2679 "referencedDeclaration": 1847,2680 "src": "2810:13:5",2681 "typeDescriptions": {2682 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",2683 "typeString": "contract UniqueRefungible"2684 }2685 },2686 "id": 1864,2687 "isConstant": false,2688 "isLValue": false,2689 "isPure": false,2690 "lValueRequested": false,2691 "memberLocation": "2824:17:5",2692 "memberName": "transferFromCross",2693 "nodeType": "MemberAccess",2694 "referencedDeclaration": 1368,2695 "src": "2810:31:5",2696 "typeDescriptions": {2697 "typeIdentifier": "t_function_external_nonpayable$_t_struct$_EthCrossAccount_$1253_memory_ptr_$_t_struct$_EthCrossAccount_$1253_memory_ptr_$_t_uint256_$returns$__$",2698 "typeString": "function (struct EthCrossAccount memory,struct EthCrossAccount memory,uint256) external"2699 }2700 },2701 "id": 1880,2702 "isConstant": false,2703 "isLValue": false,2704 "isPure": false,2705 "kind": "functionCall",2706 "lValueRequested": false,2707 "nameLocations": [],2708 "names": [],2709 "nodeType": "FunctionCall",2710 "src": "2810:145:5",2711 "tryCall": false,2712 "typeDescriptions": {2713 "typeIdentifier": "t_tuple$__$",2714 "typeString": "tuple()"2715 }2716 },2717 "id": 1881,2718 "nodeType": "ExpressionStatement",2719 "src": "2810:145:5"2720 }2721 ]2722 }2723 },2724 {2725 "eventCall": {2726 "arguments": [2727 {2728 "arguments": [2729 {2730 "hexValue": "30",2731 "id": 1934,2732 "isConstant": false,2733 "isLValue": false,2734 "isPure": true,2735 "kind": "number",2736 "lValueRequested": false,2737 "nodeType": "Literal",2738 "src": "3636:1:5",2739 "typeDescriptions": {2740 "typeIdentifier": "t_rational_0_by_1",2741 "typeString": "int_const 0"2742 },2743 "value": "0"2744 }2745 ],2746 "expression": {2747 "argumentTypes": [2748 {2749 "typeIdentifier": "t_rational_0_by_1",2750 "typeString": "int_const 0"2751 }2752 ],2753 "id": 1933,2754 "isConstant": false,2755 "isLValue": false,2756 "isPure": true,2757 "lValueRequested": false,2758 "nodeType": "ElementaryTypeNameExpression",2759 "src": "3628:7:5",2760 "typeDescriptions": {2761 "typeIdentifier": "t_type$_t_address_$",2762 "typeString": "type(address)"2763 },2764 "typeName": {2765 "id": 1932,2766 "name": "address",2767 "nodeType": "ElementaryTypeName",2768 "src": "3628:7:5",2769 "typeDescriptions": {}2770 }2771 },2772 "id": 1935,2773 "isConstant": false,2774 "isLValue": false,2775 "isPure": true,2776 "kind": "typeConversion",2777 "lValueRequested": false,2778 "nameLocations": [],2779 "names": [],2780 "nodeType": "FunctionCall",2781 "src": "3628:10:5",2782 "tryCall": false,2783 "typeDescriptions": {2784 "typeIdentifier": "t_address",2785 "typeString": "address"2786 }2787 },2788 {2789 "id": 1936,2790 "name": "_substrateReceiver",2791 "nodeType": "Identifier",2792 "overloadedDeclarations": [],2793 "referencedDeclaration": 1815,2794 "src": "3640:18:5",2795 "typeDescriptions": {2796 "typeIdentifier": "t_uint256",2797 "typeString": "uint256"2798 }2799 },2800 {2801 "id": 1937,2802 "name": "_collection",2803 "nodeType": "Identifier",2804 "overloadedDeclarations": [],2805 "referencedDeclaration": 1813,2806 "src": "3660:11:5",2807 "typeDescriptions": {2808 "typeIdentifier": "t_address",2809 "typeString": "address"2810 }2811 },2812 {2813 "id": 1938,2814 "name": "tokenId",2815 "nodeType": "Identifier",2816 "overloadedDeclarations": [],2817 "referencedDeclaration": 1840,2818 "src": "3673:7:5",2819 "typeDescriptions": {2820 "typeIdentifier": "t_uint256",2821 "typeString": "uint256"2822 }2823 }2824 ],2825 "expression": {2826 "argumentTypes": [2827 {2828 "typeIdentifier": "t_address",2829 "typeString": "address"2830 },2831 {2832 "typeIdentifier": "t_uint256",2833 "typeString": "uint256"2834 },2835 {2836 "typeIdentifier": "t_address",2837 "typeString": "address"2838 },2839 {2840 "typeIdentifier": "t_uint256",2841 "typeString": "uint256"2842 }2843 ],2844 "id": 1931,2845 "name": "MintToSub",2846 "nodeType": "Identifier",2847 "overloadedDeclarations": [],2848 "referencedDeclaration": 1811,2849 "src": "3618:9:5",2850 "typeDescriptions": {2851 "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_address_$_t_uint256_$returns$__$",2852 "typeString": "function (address,uint256,address,uint256)"2853 }2854 },2855 "id": 1939,2856 "isConstant": false,2857 "isLValue": false,2858 "isPure": false,2859 "kind": "functionCall",2860 "lValueRequested": false,2861 "nameLocations": [],2862 "names": [],2863 "nodeType": "FunctionCall",2864 "src": "3618:63:5",2865 "tryCall": false,2866 "typeDescriptions": {2867 "typeIdentifier": "t_tuple$__$",2868 "typeString": "tuple()"2869 }2870 },2871 "id": 1940,2872 "nodeType": "EmitStatement",2873 "src": "3613:68:5"2874 }2875 ]2876 },2877 "functionSelector": "7a8d9786",2878 "id": 1942,2879 "implemented": true,2880 "kind": "function",2881 "modifiers": [2882 {2883 "arguments": [2884 {2885 "id": 1818,2886 "name": "_collection",2887 "nodeType": "Identifier",2888 "overloadedDeclarations": [],2889 "referencedDeclaration": 1813,2890 "src": "2313:11:5",2891 "typeDescriptions": {2892 "typeIdentifier": "t_address",2893 "typeString": "address"2894 }2895 }2896 ],2897 "id": 1819,2898 "kind": "modifierInvocation",2899 "modifierName": {2900 "id": 1817,2901 "name": "checkRestrictions",2902 "nameLocations": [2903 "2295:17:5"2904 ],2905 "nodeType": "IdentifierPath",2906 "referencedDeclaration": 1800,2907 "src": "2295:17:5"2908 },2909 "nodeType": "ModifierInvocation",2910 "src": "2295:30:5"2911 }2912 ],2913 "name": "mintToSubstrate",2914 "nameLocation": "2221:15:5",2915 "nodeType": "FunctionDefinition",2916 "parameters": {2917 "id": 1816,2918 "nodeType": "ParameterList",2919 "parameters": [2920 {2921 "constant": false,2922 "id": 1813,2923 "mutability": "mutable",2924 "name": "_collection",2925 "nameLocation": "2245:11:5",2926 "nodeType": "VariableDeclaration",2927 "scope": 1942,2928 "src": "2237:19:5",2929 "stateVariable": false,2930 "storageLocation": "default",2931 "typeDescriptions": {2932 "typeIdentifier": "t_address",2933 "typeString": "address"2934 },2935 "typeName": {2936 "id": 1812,2937 "name": "address",2938 "nodeType": "ElementaryTypeName",2939 "src": "2237:7:5",2940 "stateMutability": "nonpayable",2941 "typeDescriptions": {2942 "typeIdentifier": "t_address",2943 "typeString": "address"2944 }2945 },2946 "visibility": "internal"2947 },2948 {2949 "constant": false,2950 "id": 1815,2951 "mutability": "mutable",2952 "name": "_substrateReceiver",2953 "nameLocation": "2266:18:5",2954 "nodeType": "VariableDeclaration",2955 "scope": 1942,2956 "src": "2258:26:5",2957 "stateVariable": false,2958 "storageLocation": "default",2959 "typeDescriptions": {2960 "typeIdentifier": "t_uint256",2961 "typeString": "uint256"2962 },2963 "typeName": {2964 "id": 1814,2965 "name": "uint256",2966 "nodeType": "ElementaryTypeName",2967 "src": "2258:7:5",2968 "typeDescriptions": {2969 "typeIdentifier": "t_uint256",2970 "typeString": "uint256"2971 }2972 },2973 "visibility": "internal"2974 }2975 ],2976 "src": "2236:49:5"2977 },2978 "returnParameters": {2979 "id": 1820,2980 "nodeType": "ParameterList",2981 "parameters": [],2982 "src": "2326:0:5"2983 },2984 "scope": 2269,2985 "src": "2212:1473:5",2986 "stateMutability": "nonpayable",2987 "virtual": false,2988 "visibility": "external"2989 },2990 {2991 "body": {2992 "id": 2150,2993 "nodeType": "Block",2994 "src": "3855:1590:5",2995 "statements": [2996 {2997 "assignments": [2998 19572999 ],3000 "declarations": [3001 {3002 "constant": false,3003 "id": 1957,3004 "mutability": "mutable",3005 "name": "propertiesLength",3006 "nameLocation": "4016:16:5",3007 "nodeType": "VariableDeclaration",3008 "scope": 2150,3009 "src": "4008:24:5",3010 "stateVariable": false,3011 "storageLocation": "default",3012 "typeDescriptions": {3013 "typeIdentifier": "t_uint256",3014 "typeString": "uint256"3015 },3016 "typeName": {3017 "id": 1956,3018 "name": "uint256",3019 "nodeType": "ElementaryTypeName",3020 "src": "4008:7:5",3021 "typeDescriptions": {3022 "typeIdentifier": "t_uint256",3023 "typeString": "uint256"3024 }3025 },3026 "visibility": "internal"3027 }3028 ],3029 "id": 1960,3030 "initialValue": {3031 "expression": {3032 "id": 1958,3033 "name": "properties",3034 "nodeType": "Identifier",3035 "overloadedDeclarations": [],3036 "referencedDeclaration": 1950,3037 "src": "4035:10:5",3038 "typeDescriptions": {3039 "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",3040 "typeString": "struct Property calldata[] calldata"3041 }3042 },3043 "id": 1959,3044 "isConstant": false,3045 "isLValue": false,3046 "isPure": false,3047 "lValueRequested": false,3048 "memberLocation": "4046:6:5",3049 "memberName": "length",3050 "nodeType": "MemberAccess",3051 "src": "4035:17:5",3052 "typeDescriptions": {3053 "typeIdentifier": "t_uint256",3054 "typeString": "uint256"3055 }3056 },3057 "nodeType": "VariableDeclarationStatement",3058 "src": "4008:44:5"3059 },3060 {3061 "expression": {3062 "arguments": [3063 {3064 "commonType": {3065 "typeIdentifier": "t_uint256",3066 "typeString": "uint256"3067 },3068 "id": 1964,3069 "isConstant": false,3070 "isLValue": false,3071 "isPure": false,3072 "lValueRequested": false,3073 "leftExpression": {3074 "id": 1962,3075 "name": "propertiesLength",3076 "nodeType": "Identifier",3077 "overloadedDeclarations": [],3078 "referencedDeclaration": 1957,3079 "src": "4064:16:5",3080 "typeDescriptions": {3081 "typeIdentifier": "t_uint256",3082 "typeString": "uint256"3083 }3084 },3085 "nodeType": "BinaryOperation",3086 "operator": ">",3087 "rightExpression": {3088 "hexValue": "30",3089 "id": 1963,3090 "isConstant": false,3091 "isLValue": false,3092 "isPure": true,3093 "kind": "number",3094 "lValueRequested": false,3095 "nodeType": "Literal",3096 "src": "4083:1:5",3097 "typeDescriptions": {3098 "typeIdentifier": "t_rational_0_by_1",3099 "typeString": "int_const 0"3100 },3101 "value": "0"3102 },3103 "src": "4064:20:5",3104 "typeDescriptions": {3105 "typeIdentifier": "t_bool",3106 "typeString": "bool"3107 }3108 },3109 {3110 "hexValue": "50726f70657269657320697320656d707479",3111 "id": 1965,3112 "isConstant": false,3113 "isLValue": false,3114 "isPure": true,3115 "kind": "string",3116 "lValueRequested": false,3117 "nodeType": "Literal",3118 "src": "4086:20:5",3119 "typeDescriptions": {3120 "typeIdentifier": "t_stringliteral_3c3e0098388726dfb54bb3f478f469c7fc9acc2aa2937bb94957726165b135a1",3121 "typeString": "literal_string \"Properies is empty\""3122 },3123 "value": "Properies is empty"3124 }3125 ],3126 "expression": {3127 "argumentTypes": [3128 {3129 "typeIdentifier": "t_bool",3130 "typeString": "bool"3131 },3132 {3133 "typeIdentifier": "t_stringliteral_3c3e0098388726dfb54bb3f478f469c7fc9acc2aa2937bb94957726165b135a1",3134 "typeString": "literal_string \"Properies is empty\""3135 }3136 ],3137 "id": 1961,3138 "name": "require",3139 "nodeType": "Identifier",3140 "overloadedDeclarations": [3141 4294967278,3142 42949672783143 ],3144 "referencedDeclaration": 4294967278,3145 "src": "4056:7:5",3146 "typeDescriptions": {3147 "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",3148 "typeString": "function (bool,string memory) pure"3149 }3150 },3151 "id": 1966,3152 "isConstant": false,3153 "isLValue": false,3154 "isPure": false,3155 "kind": "functionCall",3156 "lValueRequested": false,3157 "nameLocations": [],3158 "names": [],3159 "nodeType": "FunctionCall",3160 "src": "4056:51:5",3161 "tryCall": false,3162 "typeDescriptions": {3163 "typeIdentifier": "t_tuple$__$",3164 "typeString": "tuple()"3165 }3166 },3167 "id": 1967,3168 "nodeType": "ExpressionStatement",3169 "src": "4056:51:5"3170 },3171 {3172 "assignments": [3173 19703174 ],3175 "declarations": [3176 {3177 "constant": false,3178 "id": 1970,3179 "mutability": "mutable",3180 "name": "commonContract",3181 "nameLocation": "4123:14:5",3182 "nodeType": "VariableDeclaration",3183 "scope": 2150,3184 "src": "4112:25:5",3185 "stateVariable": false,3186 "storageLocation": "default",3187 "typeDescriptions": {3188 "typeIdentifier": "t_contract$_Collection_$1248",3189 "typeString": "contract Collection"3190 },3191 "typeName": {3192 "id": 1969,3193 "nodeType": "UserDefinedTypeName",3194 "pathNode": {3195 "id": 1968,3196 "name": "Collection",3197 "nameLocations": [3198 "4112:10:5"3199 ],3200 "nodeType": "IdentifierPath",3201 "referencedDeclaration": 1248,3202 "src": "4112:10:5"3203 },3204 "referencedDeclaration": 1248,3205 "src": "4112:10:5",3206 "typeDescriptions": {3207 "typeIdentifier": "t_contract$_Collection_$1248",3208 "typeString": "contract Collection"3209 }3210 },3211 "visibility": "internal"3212 }3213 ],3214 "id": 1974,3215 "initialValue": {3216 "arguments": [3217 {3218 "id": 1972,3219 "name": "_collection",3220 "nodeType": "Identifier",3221 "overloadedDeclarations": [],3222 "referencedDeclaration": 1944,3223 "src": "4151:11:5",3224 "typeDescriptions": {3225 "typeIdentifier": "t_address",3226 "typeString": "address"3227 }3228 }3229 ],3230 "expression": {3231 "argumentTypes": [3232 {3233 "typeIdentifier": "t_address",3234 "typeString": "address"3235 }3236 ],3237 "id": 1971,3238 "name": "Collection",3239 "nodeType": "Identifier",3240 "overloadedDeclarations": [],3241 "referencedDeclaration": 1248,3242 "src": "4140:10:5",3243 "typeDescriptions": {3244 "typeIdentifier": "t_type$_t_contract$_Collection_$1248_$",3245 "typeString": "type(contract Collection)"3246 }3247 },3248 "id": 1973,3249 "isConstant": false,3250 "isLValue": false,3251 "isPure": false,3252 "kind": "typeConversion",3253 "lValueRequested": false,3254 "nameLocations": [],3255 "names": [],3256 "nodeType": "FunctionCall",3257 "src": "4140:23:5",3258 "tryCall": false,3259 "typeDescriptions": {3260 "typeIdentifier": "t_contract$_Collection_$1248",3261 "typeString": "contract Collection"3262 }3263 },3264 "nodeType": "VariableDeclarationStatement",3265 "src": "4112:51:5"3266 },3267 {3268 "assignments": [3269 19763270 ],3271 "declarations": [3272 {3273 "constant": false,3274 "id": 1976,3275 "mutability": "mutable",3276 "name": "collectionType",3277 "nameLocation": "4175:14:5",3278 "nodeType": "VariableDeclaration",3279 "scope": 2150,3280 "src": "4167:22:5",3281 "stateVariable": false,3282 "storageLocation": "default",3283 "typeDescriptions": {3284 "typeIdentifier": "t_bytes32",3285 "typeString": "bytes32"3286 },3287 "typeName": {3288 "id": 1975,3289 "name": "bytes32",3290 "nodeType": "ElementaryTypeName",3291 "src": "4167:7:5",3292 "typeDescriptions": {3293 "typeIdentifier": "t_bytes32",3294 "typeString": "bytes32"3295 }3296 },3297 "visibility": "internal"3298 }3299 ],3300 "id": 1985,3301 "initialValue": {3302 "arguments": [3303 {3304 "arguments": [3305 {3306 "arguments": [],3307 "expression": {3308 "argumentTypes": [],3309 "expression": {3310 "id": 1980,3311 "name": "commonContract",3312 "nodeType": "Identifier",3313 "overloadedDeclarations": [],3314 "referencedDeclaration": 1970,3315 "src": "4208:14:5",3316 "typeDescriptions": {3317 "typeIdentifier": "t_contract$_Collection_$1248",3318 "typeString": "contract Collection"3319 }3320 },3321 "id": 1981,3322 "isConstant": false,3323 "isLValue": false,3324 "isPure": false,3325 "lValueRequested": false,3326 "memberLocation": "4223:20:5",3327 "memberName": "uniqueCollectionType",3328 "nodeType": "MemberAccess",3329 "referencedDeclaration": 1219,3330 "src": "4208:35:5",3331 "typeDescriptions": {3332 "typeIdentifier": "t_function_external_view$__$returns$_t_string_memory_ptr_$",3333 "typeString": "function () view external returns (string memory)"3334 }3335 },3336 "id": 1982,3337 "isConstant": false,3338 "isLValue": false,3339 "isPure": false,3340 "kind": "functionCall",3341 "lValueRequested": false,3342 "nameLocations": [],3343 "names": [],3344 "nodeType": "FunctionCall",3345 "src": "4208:37:5",3346 "tryCall": false,3347 "typeDescriptions": {3348 "typeIdentifier": "t_string_memory_ptr",3349 "typeString": "string memory"3350 }3351 }3352 ],3353 "expression": {3354 "argumentTypes": [3355 {3356 "typeIdentifier": "t_string_memory_ptr",3357 "typeString": "string memory"3358 }3359 ],3360 "id": 1979,3361 "isConstant": false,3362 "isLValue": false,3363 "isPure": true,3364 "lValueRequested": false,3365 "nodeType": "ElementaryTypeNameExpression",3366 "src": "4202:5:5",3367 "typeDescriptions": {3368 "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",3369 "typeString": "type(bytes storage pointer)"3370 },3371 "typeName": {3372 "id": 1978,3373 "name": "bytes",3374 "nodeType": "ElementaryTypeName",3375 "src": "4202:5:5",3376 "typeDescriptions": {}3377 }3378 },3379 "id": 1983,3380 "isConstant": false,3381 "isLValue": false,3382 "isPure": false,3383 "kind": "typeConversion",3384 "lValueRequested": false,3385 "nameLocations": [],3386 "names": [],3387 "nodeType": "FunctionCall",3388 "src": "4202:44:5",3389 "tryCall": false,3390 "typeDescriptions": {3391 "typeIdentifier": "t_bytes_memory_ptr",3392 "typeString": "bytes memory"3393 }3394 }3395 ],3396 "expression": {3397 "argumentTypes": [3398 {3399 "typeIdentifier": "t_bytes_memory_ptr",3400 "typeString": "bytes memory"3401 }3402 ],3403 "id": 1977,3404 "name": "keccak256",3405 "nodeType": "Identifier",3406 "overloadedDeclarations": [],3407 "referencedDeclaration": 4294967288,3408 "src": "4192:9:5",3409 "typeDescriptions": {3410 "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",3411 "typeString": "function (bytes memory) pure returns (bytes32)"3412 }3413 },3414 "id": 1984,3415 "isConstant": false,3416 "isLValue": false,3417 "isPure": false,3418 "kind": "functionCall",3419 "lValueRequested": false,3420 "nameLocations": [],3421 "names": [],3422 "nodeType": "FunctionCall",3423 "src": "4192:55:5",3424 "tryCall": false,3425 "typeDescriptions": {3426 "typeIdentifier": "t_bytes32",3427 "typeString": "bytes32"3428 }3429 },3430 "nodeType": "VariableDeclarationStatement",3431 "src": "4167:80:5"3432 },3433 {3434 "assignments": [3435 19873436 ],3437 "declarations": [3438 {3439 "constant": false,3440 "id": 1987,3441 "mutability": "mutable",3442 "name": "tokenId",3443 "nameLocation": "4259:7:5",3444 "nodeType": "VariableDeclaration",3445 "scope": 2150,3446 "src": "4251:15:5",3447 "stateVariable": false,3448 "storageLocation": "default",3449 "typeDescriptions": {3450 "typeIdentifier": "t_uint256",3451 "typeString": "uint256"3452 },3453 "typeName": {3454 "id": 1986,3455 "name": "uint256",3456 "nodeType": "ElementaryTypeName",3457 "src": "4251:7:5",3458 "typeDescriptions": {3459 "typeIdentifier": "t_uint256",3460 "typeString": "uint256"3461 }3462 },3463 "visibility": "internal"3464 }3465 ],3466 "id": 1988,3467 "nodeType": "VariableDeclarationStatement",3468 "src": "4251:15:5"3469 },3470 {3471 "condition": {3472 "commonType": {3473 "typeIdentifier": "t_bytes32",3474 "typeString": "bytes32"3475 },3476 "id": 1991,3477 "isConstant": false,3478 "isLValue": false,3479 "isPure": false,3480 "lValueRequested": false,3481 "leftExpression": {3482 "id": 1989,3483 "name": "collectionType",3484 "nodeType": "Identifier",3485 "overloadedDeclarations": [],3486 "referencedDeclaration": 1976,3487 "src": "4275:14:5",3488 "typeDescriptions": {3489 "typeIdentifier": "t_bytes32",3490 "typeString": "bytes32"3491 }3492 },3493 "nodeType": "BinaryOperation",3494 "operator": "==",3495 "rightExpression": {3496 "id": 1990,3497 "name": "REFUNGIBLE_COLLECTION_TYPE",3498 "nodeType": "Identifier",3499 "overloadedDeclarations": [],3500 "referencedDeclaration": 1770,3501 "src": "4293:26:5",3502 "typeDescriptions": {3503 "typeIdentifier": "t_bytes32",3504 "typeString": "bytes32"3505 }3506 },3507 "src": "4275:44:5",3508 "typeDescriptions": {3509 "typeIdentifier": "t_bool",3510 "typeString": "bool"3511 }3512 },3513 "falseBody": {3514 "condition": {3515 "commonType": {3516 "typeIdentifier": "t_bytes32",3517 "typeString": "bytes32"3518 },3519 "id": 2063,3520 "isConstant": false,3521 "isLValue": false,3522 "isPure": false,3523 "lValueRequested": false,3524 "leftExpression": {3525 "id": 2061,3526 "name": "collectionType",3527 "nodeType": "Identifier",3528 "overloadedDeclarations": [],3529 "referencedDeclaration": 1976,3530 "src": "4770:14:5",3531 "typeDescriptions": {3532 "typeIdentifier": "t_bytes32",3533 "typeString": "bytes32"3534 }3535 },3536 "nodeType": "BinaryOperation",3537 "operator": "==",3538 "rightExpression": {3539 "id": 2062,3540 "name": "NONFUNGIBLE_COLLECTION_TYPE",3541 "nodeType": "Identifier",3542 "overloadedDeclarations": [],3543 "referencedDeclaration": 1778,3544 "src": "4788:27:5",3545 "typeDescriptions": {3546 "typeIdentifier": "t_bytes32",3547 "typeString": "bytes32"3548 }3549 },3550 "src": "4770:45:5",3551 "typeDescriptions": {3552 "typeIdentifier": "t_bool",3553 "typeString": "bool"3554 }3555 },3556 "falseBody": {3557 "id": 2137,3558 "nodeType": "Block",3559 "src": "5248:69:5",3560 "statements": [3561 {3562 "expression": {3563 "arguments": [3564 {3565 "hexValue": "57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c792077697468204e4654206f7220524654",3566 "id": 2134,3567 "isConstant": false,3568 "isLValue": false,3569 "isPure": true,3570 "kind": "string",3571 "lValueRequested": false,3572 "nodeType": "Literal",3573 "src": "5260:51:5",3574 "typeDescriptions": {3575 "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",3576 "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""3577 },3578 "value": "Wrong collection type. Works only with NFT or RFT"3579 }3580 ],3581 "expression": {3582 "argumentTypes": [3583 {3584 "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",3585 "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""3586 }3587 ],3588 "id": 2133,3589 "name": "revert",3590 "nodeType": "Identifier",3591 "overloadedDeclarations": [3592 4294967277,3593 42949672773594 ],3595 "referencedDeclaration": 4294967277,3596 "src": "5253:6:5",3597 "typeDescriptions": {3598 "typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",3599 "typeString": "function (string memory) pure"3600 }3601 },3602 "id": 2135,3603 "isConstant": false,3604 "isLValue": false,3605 "isPure": false,3606 "kind": "functionCall",3607 "lValueRequested": false,3608 "nameLocations": [],3609 "names": [],3610 "nodeType": "FunctionCall",3611 "src": "5253:59:5",3612 "tryCall": false,3613 "typeDescriptions": {3614 "typeIdentifier": "t_tuple$__$",3615 "typeString": "tuple()"3616 }3617 },3618 "id": 2136,3619 "nodeType": "ExpressionStatement",3620 "src": "5253:59:5"3621 }3622 ]3623 },3624 "id": 2138,3625 "nodeType": "IfStatement",3626 "src": "4766:551:5",3627 "trueBody": {3628 "id": 2132,3629 "nodeType": "Block",3630 "src": "4817:425:5",3631 "statements": [3632 {3633 "assignments": [3634 20663635 ],3636 "declarations": [3637 {3638 "constant": false,3639 "id": 2066,3640 "mutability": "mutable",3641 "name": "nftCollection",3642 "nameLocation": "4832:13:5",3643 "nodeType": "VariableDeclaration",3644 "scope": 2132,3645 "src": "4822:23:5",3646 "stateVariable": false,3647 "storageLocation": "default",3648 "typeDescriptions": {3649 "typeIdentifier": "t_contract$_UniqueNFT_$930",3650 "typeString": "contract UniqueNFT"3651 },3652 "typeName": {3653 "id": 2065,3654 "nodeType": "UserDefinedTypeName",3655 "pathNode": {3656 "id": 2064,3657 "name": "UniqueNFT",3658 "nameLocations": [3659 "4822:9:5"3660 ],3661 "nodeType": "IdentifierPath",3662 "referencedDeclaration": 930,3663 "src": "4822:9:5"3664 },3665 "referencedDeclaration": 930,3666 "src": "4822:9:5",3667 "typeDescriptions": {3668 "typeIdentifier": "t_contract$_UniqueNFT_$930",3669 "typeString": "contract UniqueNFT"3670 }3671 },3672 "visibility": "internal"3673 }3674 ],3675 "id": 2070,3676 "initialValue": {3677 "arguments": [3678 {3679 "id": 2068,3680 "name": "_collection",3681 "nodeType": "Identifier",3682 "overloadedDeclarations": [],3683 "referencedDeclaration": 1944,3684 "src": "4858:11:5",3685 "typeDescriptions": {3686 "typeIdentifier": "t_address",3687 "typeString": "address"3688 }3689 }3690 ],3691 "expression": {3692 "argumentTypes": [3693 {3694 "typeIdentifier": "t_address",3695 "typeString": "address"3696 }3697 ],3698 "id": 2067,3699 "name": "UniqueNFT",3700 "nodeType": "Identifier",3701 "overloadedDeclarations": [],3702 "referencedDeclaration": 930,3703 "src": "4848:9:5",3704 "typeDescriptions": {3705 "typeIdentifier": "t_type$_t_contract$_UniqueNFT_$930_$",3706 "typeString": "type(contract UniqueNFT)"3707 }3708 },3709 "id": 2069,3710 "isConstant": false,3711 "isLValue": false,3712 "isPure": false,3713 "kind": "typeConversion",3714 "lValueRequested": false,3715 "nameLocations": [],3716 "names": [],3717 "nodeType": "FunctionCall",3718 "src": "4848:22:5",3719 "tryCall": false,3720 "typeDescriptions": {3721 "typeIdentifier": "t_contract$_UniqueNFT_$930",3722 "typeString": "contract UniqueNFT"3723 }3724 },3725 "nodeType": "VariableDeclarationStatement",3726 "src": "4822:48:5"3727 },3728 {3729 "expression": {3730 "id": 2075,3731 "isConstant": false,3732 "isLValue": false,3733 "isPure": false,3734 "lValueRequested": false,3735 "leftHandSide": {3736 "id": 2071,3737 "name": "tokenId",3738 "nodeType": "Identifier",3739 "overloadedDeclarations": [],3740 "referencedDeclaration": 1987,3741 "src": "4875:7:5",3742 "typeDescriptions": {3743 "typeIdentifier": "t_uint256",3744 "typeString": "uint256"3745 }3746 },3747 "nodeType": "Assignment",3748 "operator": "=",3749 "rightHandSide": {3750 "arguments": [],3751 "expression": {3752 "argumentTypes": [],3753 "expression": {3754 "id": 2072,3755 "name": "nftCollection",3756 "nodeType": "Identifier",3757 "overloadedDeclarations": [],3758 "referencedDeclaration": 2066,3759 "src": "4885:13:5",3760 "typeDescriptions": {3761 "typeIdentifier": "t_contract$_UniqueNFT_$930",3762 "typeString": "contract UniqueNFT"3763 }3764 },3765 "id": 2073,3766 "isConstant": false,3767 "isLValue": false,3768 "isPure": false,3769 "lValueRequested": false,3770 "memberLocation": "4899:11:5",3771 "memberName": "nextTokenId",3772 "nodeType": "MemberAccess",3773 "referencedDeclaration": 757,3774 "src": "4885:25:5",3775 "typeDescriptions": {3776 "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",3777 "typeString": "function () view external returns (uint256)"3778 }3779 },3780 "id": 2074,3781 "isConstant": false,3782 "isLValue": false,3783 "isPure": false,3784 "kind": "functionCall",3785 "lValueRequested": false,3786 "nameLocations": [],3787 "names": [],3788 "nodeType": "FunctionCall",3789 "src": "4885:27:5",3790 "tryCall": false,3791 "typeDescriptions": {3792 "typeIdentifier": "t_uint256",3793 "typeString": "uint256"3794 }3795 },3796 "src": "4875:37:5",3797 "typeDescriptions": {3798 "typeIdentifier": "t_uint256",3799 "typeString": "uint256"3800 }3801 },3802 "id": 2076,3803 "nodeType": "ExpressionStatement",3804 "src": "4875:37:5"3805 },3806 {3807 "expression": {3808 "arguments": [3809 {3810 "arguments": [3811 {3812 "id": 2082,3813 "name": "this",3814 "nodeType": "Identifier",3815 "overloadedDeclarations": [],3816 "referencedDeclaration": 4294967268,3817 "src": "4944:4:5",3818 "typeDescriptions": {3819 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",3820 "typeString": "contract EvmToSubstrate"3821 }3822 }3823 ],3824 "expression": {3825 "argumentTypes": [3826 {3827 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",3828 "typeString": "contract EvmToSubstrate"3829 }3830 ],3831 "id": 2081,3832 "isConstant": false,3833 "isLValue": false,3834 "isPure": true,3835 "lValueRequested": false,3836 "nodeType": "ElementaryTypeNameExpression",3837 "src": "4936:7:5",3838 "typeDescriptions": {3839 "typeIdentifier": "t_type$_t_address_$",3840 "typeString": "type(address)"3841 },3842 "typeName": {3843 "id": 2080,3844 "name": "address",3845 "nodeType": "ElementaryTypeName",3846 "src": "4936:7:5",3847 "typeDescriptions": {}3848 }3849 },3850 "id": 2083,3851 "isConstant": false,3852 "isLValue": false,3853 "isPure": false,3854 "kind": "typeConversion",3855 "lValueRequested": false,3856 "nameLocations": [],3857 "names": [],3858 "nodeType": "FunctionCall",3859 "src": "4936:13:5",3860 "tryCall": false,3861 "typeDescriptions": {3862 "typeIdentifier": "t_address",3863 "typeString": "address"3864 }3865 }3866 ],3867 "expression": {3868 "argumentTypes": [3869 {3870 "typeIdentifier": "t_address",3871 "typeString": "address"3872 }3873 ],3874 "expression": {3875 "id": 2077,3876 "name": "nftCollection",3877 "nodeType": "Identifier",3878 "overloadedDeclarations": [],3879 "referencedDeclaration": 2066,3880 "src": "4917:13:5",3881 "typeDescriptions": {3882 "typeIdentifier": "t_contract$_UniqueNFT_$930",3883 "typeString": "contract UniqueNFT"3884 }3885 },3886 "id": 2079,3887 "isConstant": false,3888 "isLValue": false,3889 "isPure": false,3890 "lValueRequested": false,3891 "memberLocation": "4931:4:5",3892 "memberName": "mint",3893 "nodeType": "MemberAccess",3894 "referencedDeclaration": 671,3895 "src": "4917:18:5",3896 "typeDescriptions": {3897 "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$_t_uint256_$",3898 "typeString": "function (address) external returns (uint256)"3899 }3900 },3901 "id": 2084,3902 "isConstant": false,3903 "isLValue": false,3904 "isPure": false,3905 "kind": "functionCall",3906 "lValueRequested": false,3907 "nameLocations": [],3908 "names": [],3909 "nodeType": "FunctionCall",3910 "src": "4917:33:5",3911 "tryCall": false,3912 "typeDescriptions": {3913 "typeIdentifier": "t_uint256",3914 "typeString": "uint256"3915 }3916 },3917 "id": 2085,3918 "nodeType": "ExpressionStatement",3919 "src": "4917:33:5"3920 },3921 {3922 "body": {3923 "id": 2110,3924 "nodeType": "Block",3925 "src": "5002:86:5",3926 "statements": [3927 {3928 "expression": {3929 "arguments": [3930 {3931 "id": 2099,3932 "name": "tokenId",3933 "nodeType": "Identifier",3934 "overloadedDeclarations": [],3935 "referencedDeclaration": 1987,3936 "src": "5034:7:5",3937 "typeDescriptions": {3938 "typeIdentifier": "t_uint256",3939 "typeString": "uint256"3940 }3941 },3942 {3943 "expression": {3944 "baseExpression": {3945 "id": 2100,3946 "name": "properties",3947 "nodeType": "Identifier",3948 "overloadedDeclarations": [],3949 "referencedDeclaration": 1950,3950 "src": "5043:10:5",3951 "typeDescriptions": {3952 "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",3953 "typeString": "struct Property calldata[] calldata"3954 }3955 },3956 "id": 2102,3957 "indexExpression": {3958 "id": 2101,3959 "name": "i",3960 "nodeType": "Identifier",3961 "overloadedDeclarations": [],3962 "referencedDeclaration": 2087,3963 "src": "5054:1:5",3964 "typeDescriptions": {3965 "typeIdentifier": "t_uint256",3966 "typeString": "uint256"3967 }3968 },3969 "isConstant": false,3970 "isLValue": false,3971 "isPure": false,3972 "lValueRequested": false,3973 "nodeType": "IndexAccess",3974 "src": "5043:13:5",3975 "typeDescriptions": {3976 "typeIdentifier": "t_struct$_Property_$1762_calldata_ptr",3977 "typeString": "struct Property calldata"3978 }3979 },3980 "id": 2103,3981 "isConstant": false,3982 "isLValue": false,3983 "isPure": false,3984 "lValueRequested": false,3985 "memberLocation": "5057:3:5",3986 "memberName": "key",3987 "nodeType": "MemberAccess",3988 "referencedDeclaration": 1759,3989 "src": "5043:17:5",3990 "typeDescriptions": {3991 "typeIdentifier": "t_string_calldata_ptr",3992 "typeString": "string calldata"3993 }3994 },3995 {3996 "expression": {3997 "baseExpression": {3998 "id": 2104,3999 "name": "properties",4000 "nodeType": "Identifier",4001 "overloadedDeclarations": [],4002 "referencedDeclaration": 1950,4003 "src": "5062:10:5",4004 "typeDescriptions": {4005 "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",4006 "typeString": "struct Property calldata[] calldata"4007 }4008 },4009 "id": 2106,4010 "indexExpression": {4011 "id": 2105,4012 "name": "i",4013 "nodeType": "Identifier",4014 "overloadedDeclarations": [],4015 "referencedDeclaration": 2087,4016 "src": "5073:1:5",4017 "typeDescriptions": {4018 "typeIdentifier": "t_uint256",4019 "typeString": "uint256"4020 }4021 },4022 "isConstant": false,4023 "isLValue": false,4024 "isPure": false,4025 "lValueRequested": false,4026 "nodeType": "IndexAccess",4027 "src": "5062:13:5",4028 "typeDescriptions": {4029 "typeIdentifier": "t_struct$_Property_$1762_calldata_ptr",4030 "typeString": "struct Property calldata"4031 }4032 },4033 "id": 2107,4034 "isConstant": false,4035 "isLValue": false,4036 "isPure": false,4037 "lValueRequested": false,4038 "memberLocation": "5076:5:5",4039 "memberName": "value",4040 "nodeType": "MemberAccess",4041 "referencedDeclaration": 1761,4042 "src": "5062:19:5",4043 "typeDescriptions": {4044 "typeIdentifier": "t_bytes_calldata_ptr",4045 "typeString": "bytes calldata"4046 }4047 }4048 ],4049 "expression": {4050 "argumentTypes": [4051 {4052 "typeIdentifier": "t_uint256",4053 "typeString": "uint256"4054 },4055 {4056 "typeIdentifier": "t_string_calldata_ptr",4057 "typeString": "string calldata"4058 },4059 {4060 "typeIdentifier": "t_bytes_calldata_ptr",4061 "typeString": "bytes calldata"4062 }4063 ],4064 "expression": {4065 "id": 2096,4066 "name": "nftCollection",4067 "nodeType": "Identifier",4068 "overloadedDeclarations": [],4069 "referencedDeclaration": 2066,4070 "src": "5008:13:5",4071 "typeDescriptions": {4072 "typeIdentifier": "t_contract$_UniqueNFT_$930",4073 "typeString": "contract UniqueNFT"4074 }4075 },4076 "id": 2098,4077 "isConstant": false,4078 "isLValue": false,4079 "isPure": false,4080 "lValueRequested": false,4081 "memberLocation": "5022:11:5",4082 "memberName": "setProperty",4083 "nodeType": "MemberAccess",4084 "referencedDeclaration": 328,4085 "src": "5008:25:5",4086 "typeDescriptions": {4087 "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$_t_string_memory_ptr_$_t_bytes_memory_ptr_$returns$__$",4088 "typeString": "function (uint256,string memory,bytes memory) external"4089 }4090 },4091 "id": 2108,4092 "isConstant": false,4093 "isLValue": false,4094 "isPure": false,4095 "kind": "functionCall",4096 "lValueRequested": false,4097 "nameLocations": [],4098 "names": [],4099 "nodeType": "FunctionCall",4100 "src": "5008:74:5",4101 "tryCall": false,4102 "typeDescriptions": {4103 "typeIdentifier": "t_tuple$__$",4104 "typeString": "tuple()"4105 }4106 },4107 "id": 2109,4108 "nodeType": "ExpressionStatement",4109 "src": "5008:74:5"4110 }4111 ]4112 },4113 "condition": {4114 "commonType": {4115 "typeIdentifier": "t_uint256",4116 "typeString": "uint256"4117 },4118 "id": 2092,4119 "isConstant": false,4120 "isLValue": false,4121 "isPure": false,4122 "lValueRequested": false,4123 "leftExpression": {4124 "id": 2090,4125 "name": "i",4126 "nodeType": "Identifier",4127 "overloadedDeclarations": [],4128 "referencedDeclaration": 2087,4129 "src": "4975:1:5",4130 "typeDescriptions": {4131 "typeIdentifier": "t_uint256",4132 "typeString": "uint256"4133 }4134 },4135 "nodeType": "BinaryOperation",4136 "operator": "<",4137 "rightExpression": {4138 "id": 2091,4139 "name": "propertiesLength",4140 "nodeType": "Identifier",4141 "overloadedDeclarations": [],4142 "referencedDeclaration": 1957,4143 "src": "4979:16:5",4144 "typeDescriptions": {4145 "typeIdentifier": "t_uint256",4146 "typeString": "uint256"4147 }4148 },4149 "src": "4975:20:5",4150 "typeDescriptions": {4151 "typeIdentifier": "t_bool",4152 "typeString": "bool"4153 }4154 },4155 "id": 2111,4156 "initializationExpression": {4157 "assignments": [4158 20874159 ],4160 "declarations": [4161 {4162 "constant": false,4163 "id": 2087,4164 "mutability": "mutable",4165 "name": "i",4166 "nameLocation": "4968:1:5",4167 "nodeType": "VariableDeclaration",4168 "scope": 2111,4169 "src": "4960:9:5",4170 "stateVariable": false,4171 "storageLocation": "default",4172 "typeDescriptions": {4173 "typeIdentifier": "t_uint256",4174 "typeString": "uint256"4175 },4176 "typeName": {4177 "id": 2086,4178 "name": "uint256",4179 "nodeType": "ElementaryTypeName",4180 "src": "4960:7:5",4181 "typeDescriptions": {4182 "typeIdentifier": "t_uint256",4183 "typeString": "uint256"4184 }4185 },4186 "visibility": "internal"4187 }4188 ],4189 "id": 2089,4190 "initialValue": {4191 "hexValue": "30",4192 "id": 2088,4193 "isConstant": false,4194 "isLValue": false,4195 "isPure": true,4196 "kind": "number",4197 "lValueRequested": false,4198 "nodeType": "Literal",4199 "src": "4972:1:5",4200 "typeDescriptions": {4201 "typeIdentifier": "t_rational_0_by_1",4202 "typeString": "int_const 0"4203 },4204 "value": "0"4205 },4206 "nodeType": "VariableDeclarationStatement",4207 "src": "4960:13:5"4208 },4209 "loopExpression": {4210 "expression": {4211 "id": 2094,4212 "isConstant": false,4213 "isLValue": false,4214 "isPure": false,4215 "lValueRequested": false,4216 "nodeType": "UnaryOperation",4217 "operator": "++",4218 "prefix": true,4219 "src": "4997:3:5",4220 "subExpression": {4221 "id": 2093,4222 "name": "i",4223 "nodeType": "Identifier",4224 "overloadedDeclarations": [],4225 "referencedDeclaration": 2087,4226 "src": "4999:1:5",4227 "typeDescriptions": {4228 "typeIdentifier": "t_uint256",4229 "typeString": "uint256"4230 }4231 },4232 "typeDescriptions": {4233 "typeIdentifier": "t_uint256",4234 "typeString": "uint256"4235 }4236 },4237 "id": 2095,4238 "nodeType": "ExpressionStatement",4239 "src": "4997:3:5"4240 },4241 "nodeType": "ForStatement",4242 "src": "4955:133:5"4243 },4244 {4245 "expression": {4246 "arguments": [4247 {4248 "arguments": [4249 {4250 "arguments": [4251 {4252 "id": 2118,4253 "name": "this",4254 "nodeType": "Identifier",4255 "overloadedDeclarations": [],4256 "referencedDeclaration": 4294967268,4257 "src": "5155:4:5",4258 "typeDescriptions": {4259 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",4260 "typeString": "contract EvmToSubstrate"4261 }4262 }4263 ],4264 "expression": {4265 "argumentTypes": [4266 {4267 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",4268 "typeString": "contract EvmToSubstrate"4269 }4270 ],4271 "id": 2117,4272 "isConstant": false,4273 "isLValue": false,4274 "isPure": true,4275 "lValueRequested": false,4276 "nodeType": "ElementaryTypeNameExpression",4277 "src": "5147:7:5",4278 "typeDescriptions": {4279 "typeIdentifier": "t_type$_t_address_$",4280 "typeString": "type(address)"4281 },4282 "typeName": {4283 "id": 2116,4284 "name": "address",4285 "nodeType": "ElementaryTypeName",4286 "src": "5147:7:5",4287 "typeDescriptions": {}4288 }4289 },4290 "id": 2119,4291 "isConstant": false,4292 "isLValue": false,4293 "isPure": false,4294 "kind": "typeConversion",4295 "lValueRequested": false,4296 "nameLocations": [],4297 "names": [],4298 "nodeType": "FunctionCall",4299 "src": "5147:13:5",4300 "tryCall": false,4301 "typeDescriptions": {4302 "typeIdentifier": "t_address",4303 "typeString": "address"4304 }4305 },4306 {4307 "hexValue": "30",4308 "id": 2120,4309 "isConstant": false,4310 "isLValue": false,4311 "isPure": true,4312 "kind": "number",4313 "lValueRequested": false,4314 "nodeType": "Literal",4315 "src": "5162:1:5",4316 "typeDescriptions": {4317 "typeIdentifier": "t_rational_0_by_1",4318 "typeString": "int_const 0"4319 },4320 "value": "0"4321 }4322 ],4323 "expression": {4324 "argumentTypes": [4325 {4326 "typeIdentifier": "t_address",4327 "typeString": "address"4328 },4329 {4330 "typeIdentifier": "t_rational_0_by_1",4331 "typeString": "int_const 0"4332 }4333 ],4334 "id": 2115,4335 "name": "NftCrossAccountId",4336 "nodeType": "Identifier",4337 "overloadedDeclarations": [],4338 "referencedDeclaration": 610,4339 "src": "5129:17:5",4340 "typeDescriptions": {4341 "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",4342 "typeString": "type(struct EthCrossAccount storage pointer)"4343 }4344 },4345 "id": 2121,4346 "isConstant": false,4347 "isLValue": false,4348 "isPure": false,4349 "kind": "structConstructorCall",4350 "lValueRequested": false,4351 "nameLocations": [],4352 "names": [],4353 "nodeType": "FunctionCall",4354 "src": "5129:35:5",4355 "tryCall": false,4356 "typeDescriptions": {4357 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",4358 "typeString": "struct EthCrossAccount memory"4359 }4360 },4361 {4362 "arguments": [4363 {4364 "arguments": [4365 {4366 "hexValue": "30",4367 "id": 2125,4368 "isConstant": false,4369 "isLValue": false,4370 "isPure": true,4371 "kind": "number",4372 "lValueRequested": false,4373 "nodeType": "Literal",4374 "src": "5196:1:5",4375 "typeDescriptions": {4376 "typeIdentifier": "t_rational_0_by_1",4377 "typeString": "int_const 0"4378 },4379 "value": "0"4380 }4381 ],4382 "expression": {4383 "argumentTypes": [4384 {4385 "typeIdentifier": "t_rational_0_by_1",4386 "typeString": "int_const 0"4387 }4388 ],4389 "id": 2124,4390 "isConstant": false,4391 "isLValue": false,4392 "isPure": true,4393 "lValueRequested": false,4394 "nodeType": "ElementaryTypeNameExpression",4395 "src": "5188:7:5",4396 "typeDescriptions": {4397 "typeIdentifier": "t_type$_t_address_$",4398 "typeString": "type(address)"4399 },4400 "typeName": {4401 "id": 2123,4402 "name": "address",4403 "nodeType": "ElementaryTypeName",4404 "src": "5188:7:5",4405 "typeDescriptions": {}4406 }4407 },4408 "id": 2126,4409 "isConstant": false,4410 "isLValue": false,4411 "isPure": true,4412 "kind": "typeConversion",4413 "lValueRequested": false,4414 "nameLocations": [],4415 "names": [],4416 "nodeType": "FunctionCall",4417 "src": "5188:10:5",4418 "tryCall": false,4419 "typeDescriptions": {4420 "typeIdentifier": "t_address",4421 "typeString": "address"4422 }4423 },4424 {4425 "id": 2127,4426 "name": "_substrateReceiver",4427 "nodeType": "Identifier",4428 "overloadedDeclarations": [],4429 "referencedDeclaration": 1946,4430 "src": "5200:18:5",4431 "typeDescriptions": {4432 "typeIdentifier": "t_uint256",4433 "typeString": "uint256"4434 }4435 }4436 ],4437 "expression": {4438 "argumentTypes": [4439 {4440 "typeIdentifier": "t_address",4441 "typeString": "address"4442 },4443 {4444 "typeIdentifier": "t_uint256",4445 "typeString": "uint256"4446 }4447 ],4448 "id": 2122,4449 "name": "NftCrossAccountId",4450 "nodeType": "Identifier",4451 "overloadedDeclarations": [],4452 "referencedDeclaration": 610,4453 "src": "5170:17:5",4454 "typeDescriptions": {4455 "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",4456 "typeString": "type(struct EthCrossAccount storage pointer)"4457 }4458 },4459 "id": 2128,4460 "isConstant": false,4461 "isLValue": false,4462 "isPure": false,4463 "kind": "structConstructorCall",4464 "lValueRequested": false,4465 "nameLocations": [],4466 "names": [],4467 "nodeType": "FunctionCall",4468 "src": "5170:49:5",4469 "tryCall": false,4470 "typeDescriptions": {4471 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",4472 "typeString": "struct EthCrossAccount memory"4473 }4474 },4475 {4476 "id": 2129,4477 "name": "tokenId",4478 "nodeType": "Identifier",4479 "overloadedDeclarations": [],4480 "referencedDeclaration": 1987,4481 "src": "5225:7:5",4482 "typeDescriptions": {4483 "typeIdentifier": "t_uint256",4484 "typeString": "uint256"4485 }4486 }4487 ],4488 "expression": {4489 "argumentTypes": [4490 {4491 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",4492 "typeString": "struct EthCrossAccount memory"4493 },4494 {4495 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",4496 "typeString": "struct EthCrossAccount memory"4497 },4498 {4499 "typeIdentifier": "t_uint256",4500 "typeString": "uint256"4501 }4502 ],4503 "expression": {4504 "id": 2112,4505 "name": "nftCollection",4506 "nodeType": "Identifier",4507 "overloadedDeclarations": [],4508 "referencedDeclaration": 2066,4509 "src": "5092:13:5",4510 "typeDescriptions": {4511 "typeIdentifier": "t_contract$_UniqueNFT_$930",4512 "typeString": "contract UniqueNFT"4513 }4514 },4515 "id": 2114,4516 "isConstant": false,4517 "isLValue": false,4518 "isPure": false,4519 "lValueRequested": false,4520 "memberLocation": "5106:17:5",4521 "memberName": "transferFromCross",4522 "nodeType": "MemberAccess",4523 "referencedDeclaration": 734,4524 "src": "5092:31:5",4525 "typeDescriptions": {4526 "typeIdentifier": "t_function_external_nonpayable$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_uint256_$returns$__$",4527 "typeString": "function (struct EthCrossAccount memory,struct EthCrossAccount memory,uint256) external"4528 }4529 },4530 "id": 2130,4531 "isConstant": false,4532 "isLValue": false,4533 "isPure": false,4534 "kind": "functionCall",4535 "lValueRequested": false,4536 "nameLocations": [],4537 "names": [],4538 "nodeType": "FunctionCall",4539 "src": "5092:145:5",4540 "tryCall": false,4541 "typeDescriptions": {4542 "typeIdentifier": "t_tuple$__$",4543 "typeString": "tuple()"4544 }4545 },4546 "id": 2131,4547 "nodeType": "ExpressionStatement",4548 "src": "5092:145:5"4549 }4550 ]4551 }4552 },4553 "id": 2139,4554 "nodeType": "IfStatement",4555 "src": "4271:1046:5",4556 "trueBody": {4557 "id": 2060,4558 "nodeType": "Block",4559 "src": "4321:439:5",4560 "statements": [4561 {4562 "assignments": [4563 19944564 ],4565 "declarations": [4566 {4567 "constant": false,4568 "id": 1994,4569 "mutability": "mutable",4570 "name": "rftCollection",4571 "nameLocation": "4343:13:5",4572 "nodeType": "VariableDeclaration",4573 "scope": 2060,4574 "src": "4326:30:5",4575 "stateVariable": false,4576 "storageLocation": "default",4577 "typeDescriptions": {4578 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",4579 "typeString": "contract UniqueRefungible"4580 },4581 "typeName": {4582 "id": 1993,4583 "nodeType": "UserDefinedTypeName",4584 "pathNode": {4585 "id": 1992,4586 "name": "UniqueRefungible",4587 "nameLocations": [4588 "4326:16:5"4589 ],4590 "nodeType": "IdentifierPath",4591 "referencedDeclaration": 1572,4592 "src": "4326:16:5"4593 },4594 "referencedDeclaration": 1572,4595 "src": "4326:16:5",4596 "typeDescriptions": {4597 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",4598 "typeString": "contract UniqueRefungible"4599 }4600 },4601 "visibility": "internal"4602 }4603 ],4604 "id": 1998,4605 "initialValue": {4606 "arguments": [4607 {4608 "id": 1996,4609 "name": "_collection",4610 "nodeType": "Identifier",4611 "overloadedDeclarations": [],4612 "referencedDeclaration": 1944,4613 "src": "4376:11:5",4614 "typeDescriptions": {4615 "typeIdentifier": "t_address",4616 "typeString": "address"4617 }4618 }4619 ],4620 "expression": {4621 "argumentTypes": [4622 {4623 "typeIdentifier": "t_address",4624 "typeString": "address"4625 }4626 ],4627 "id": 1995,4628 "name": "UniqueRefungible",4629 "nodeType": "Identifier",4630 "overloadedDeclarations": [],4631 "referencedDeclaration": 1572,4632 "src": "4359:16:5",4633 "typeDescriptions": {4634 "typeIdentifier": "t_type$_t_contract$_UniqueRefungible_$1572_$",4635 "typeString": "type(contract UniqueRefungible)"4636 }4637 },4638 "id": 1997,4639 "isConstant": false,4640 "isLValue": false,4641 "isPure": false,4642 "kind": "typeConversion",4643 "lValueRequested": false,4644 "nameLocations": [],4645 "names": [],4646 "nodeType": "FunctionCall",4647 "src": "4359:29:5",4648 "tryCall": false,4649 "typeDescriptions": {4650 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",4651 "typeString": "contract UniqueRefungible"4652 }4653 },4654 "nodeType": "VariableDeclarationStatement",4655 "src": "4326:62:5"4656 },4657 {4658 "expression": {4659 "id": 2003,4660 "isConstant": false,4661 "isLValue": false,4662 "isPure": false,4663 "lValueRequested": false,4664 "leftHandSide": {4665 "id": 1999,4666 "name": "tokenId",4667 "nodeType": "Identifier",4668 "overloadedDeclarations": [],4669 "referencedDeclaration": 1987,4670 "src": "4393:7:5",4671 "typeDescriptions": {4672 "typeIdentifier": "t_uint256",4673 "typeString": "uint256"4674 }4675 },4676 "nodeType": "Assignment",4677 "operator": "=",4678 "rightHandSide": {4679 "arguments": [],4680 "expression": {4681 "argumentTypes": [],4682 "expression": {4683 "id": 2000,4684 "name": "rftCollection",4685 "nodeType": "Identifier",4686 "overloadedDeclarations": [],4687 "referencedDeclaration": 1994,4688 "src": "4403:13:5",4689 "typeDescriptions": {4690 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",4691 "typeString": "contract UniqueRefungible"4692 }4693 },4694 "id": 2001,4695 "isConstant": false,4696 "isLValue": false,4697 "isPure": false,4698 "lValueRequested": false,4699 "memberLocation": "4417:11:5",4700 "memberName": "nextTokenId",4701 "nodeType": "MemberAccess",4702 "referencedDeclaration": 1391,4703 "src": "4403:25:5",4704 "typeDescriptions": {4705 "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",4706 "typeString": "function () view external returns (uint256)"4707 }4708 },4709 "id": 2002,4710 "isConstant": false,4711 "isLValue": false,4712 "isPure": false,4713 "kind": "functionCall",4714 "lValueRequested": false,4715 "nameLocations": [],4716 "names": [],4717 "nodeType": "FunctionCall",4718 "src": "4403:27:5",4719 "tryCall": false,4720 "typeDescriptions": {4721 "typeIdentifier": "t_uint256",4722 "typeString": "uint256"4723 }4724 },4725 "src": "4393:37:5",4726 "typeDescriptions": {4727 "typeIdentifier": "t_uint256",4728 "typeString": "uint256"4729 }4730 },4731 "id": 2004,4732 "nodeType": "ExpressionStatement",4733 "src": "4393:37:5"4734 },4735 {4736 "expression": {4737 "arguments": [4738 {4739 "arguments": [4740 {4741 "id": 2010,4742 "name": "this",4743 "nodeType": "Identifier",4744 "overloadedDeclarations": [],4745 "referencedDeclaration": 4294967268,4746 "src": "4462:4:5",4747 "typeDescriptions": {4748 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",4749 "typeString": "contract EvmToSubstrate"4750 }4751 }4752 ],4753 "expression": {4754 "argumentTypes": [4755 {4756 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",4757 "typeString": "contract EvmToSubstrate"4758 }4759 ],4760 "id": 2009,4761 "isConstant": false,4762 "isLValue": false,4763 "isPure": true,4764 "lValueRequested": false,4765 "nodeType": "ElementaryTypeNameExpression",4766 "src": "4454:7:5",4767 "typeDescriptions": {4768 "typeIdentifier": "t_type$_t_address_$",4769 "typeString": "type(address)"4770 },4771 "typeName": {4772 "id": 2008,4773 "name": "address",4774 "nodeType": "ElementaryTypeName",4775 "src": "4454:7:5",4776 "typeDescriptions": {}4777 }4778 },4779 "id": 2011,4780 "isConstant": false,4781 "isLValue": false,4782 "isPure": false,4783 "kind": "typeConversion",4784 "lValueRequested": false,4785 "nameLocations": [],4786 "names": [],4787 "nodeType": "FunctionCall",4788 "src": "4454:13:5",4789 "tryCall": false,4790 "typeDescriptions": {4791 "typeIdentifier": "t_address",4792 "typeString": "address"4793 }4794 }4795 ],4796 "expression": {4797 "argumentTypes": [4798 {4799 "typeIdentifier": "t_address",4800 "typeString": "address"4801 }4802 ],4803 "expression": {4804 "id": 2005,4805 "name": "rftCollection",4806 "nodeType": "Identifier",4807 "overloadedDeclarations": [],4808 "referencedDeclaration": 1994,4809 "src": "4435:13:5",4810 "typeDescriptions": {4811 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",4812 "typeString": "contract UniqueRefungible"4813 }4814 },4815 "id": 2007,4816 "isConstant": false,4817 "isLValue": false,4818 "isPure": false,4819 "lValueRequested": false,4820 "memberLocation": "4449:4:5",4821 "memberName": "mint",4822 "nodeType": "MemberAccess",4823 "referencedDeclaration": 1314,4824 "src": "4435:18:5",4825 "typeDescriptions": {4826 "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$_t_uint256_$",4827 "typeString": "function (address) external returns (uint256)"4828 }4829 },4830 "id": 2012,4831 "isConstant": false,4832 "isLValue": false,4833 "isPure": false,4834 "kind": "functionCall",4835 "lValueRequested": false,4836 "nameLocations": [],4837 "names": [],4838 "nodeType": "FunctionCall",4839 "src": "4435:33:5",4840 "tryCall": false,4841 "typeDescriptions": {4842 "typeIdentifier": "t_uint256",4843 "typeString": "uint256"4844 }4845 },4846 "id": 2013,4847 "nodeType": "ExpressionStatement",4848 "src": "4435:33:5"4849 },4850 {4851 "body": {4852 "id": 2038,4853 "nodeType": "Block",4854 "src": "4520:86:5",4855 "statements": [4856 {4857 "expression": {4858 "arguments": [4859 {4860 "id": 2027,4861 "name": "tokenId",4862 "nodeType": "Identifier",4863 "overloadedDeclarations": [],4864 "referencedDeclaration": 1987,4865 "src": "4552:7:5",4866 "typeDescriptions": {4867 "typeIdentifier": "t_uint256",4868 "typeString": "uint256"4869 }4870 },4871 {4872 "expression": {4873 "baseExpression": {4874 "id": 2028,4875 "name": "properties",4876 "nodeType": "Identifier",4877 "overloadedDeclarations": [],4878 "referencedDeclaration": 1950,4879 "src": "4561:10:5",4880 "typeDescriptions": {4881 "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",4882 "typeString": "struct Property calldata[] calldata"4883 }4884 },4885 "id": 2030,4886 "indexExpression": {4887 "id": 2029,4888 "name": "i",4889 "nodeType": "Identifier",4890 "overloadedDeclarations": [],4891 "referencedDeclaration": 2015,4892 "src": "4572:1:5",4893 "typeDescriptions": {4894 "typeIdentifier": "t_uint256",4895 "typeString": "uint256"4896 }4897 },4898 "isConstant": false,4899 "isLValue": false,4900 "isPure": false,4901 "lValueRequested": false,4902 "nodeType": "IndexAccess",4903 "src": "4561:13:5",4904 "typeDescriptions": {4905 "typeIdentifier": "t_struct$_Property_$1762_calldata_ptr",4906 "typeString": "struct Property calldata"4907 }4908 },4909 "id": 2031,4910 "isConstant": false,4911 "isLValue": false,4912 "isPure": false,4913 "lValueRequested": false,4914 "memberLocation": "4575:3:5",4915 "memberName": "key",4916 "nodeType": "MemberAccess",4917 "referencedDeclaration": 1759,4918 "src": "4561:17:5",4919 "typeDescriptions": {4920 "typeIdentifier": "t_string_calldata_ptr",4921 "typeString": "string calldata"4922 }4923 },4924 {4925 "expression": {4926 "baseExpression": {4927 "id": 2032,4928 "name": "properties",4929 "nodeType": "Identifier",4930 "overloadedDeclarations": [],4931 "referencedDeclaration": 1950,4932 "src": "4580:10:5",4933 "typeDescriptions": {4934 "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",4935 "typeString": "struct Property calldata[] calldata"4936 }4937 },4938 "id": 2034,4939 "indexExpression": {4940 "id": 2033,4941 "name": "i",4942 "nodeType": "Identifier",4943 "overloadedDeclarations": [],4944 "referencedDeclaration": 2015,4945 "src": "4591:1:5",4946 "typeDescriptions": {4947 "typeIdentifier": "t_uint256",4948 "typeString": "uint256"4949 }4950 },4951 "isConstant": false,4952 "isLValue": false,4953 "isPure": false,4954 "lValueRequested": false,4955 "nodeType": "IndexAccess",4956 "src": "4580:13:5",4957 "typeDescriptions": {4958 "typeIdentifier": "t_struct$_Property_$1762_calldata_ptr",4959 "typeString": "struct Property calldata"4960 }4961 },4962 "id": 2035,4963 "isConstant": false,4964 "isLValue": false,4965 "isPure": false,4966 "lValueRequested": false,4967 "memberLocation": "4594:5:5",4968 "memberName": "value",4969 "nodeType": "MemberAccess",4970 "referencedDeclaration": 1761,4971 "src": "4580:19:5",4972 "typeDescriptions": {4973 "typeIdentifier": "t_bytes_calldata_ptr",4974 "typeString": "bytes calldata"4975 }4976 }4977 ],4978 "expression": {4979 "argumentTypes": [4980 {4981 "typeIdentifier": "t_uint256",4982 "typeString": "uint256"4983 },4984 {4985 "typeIdentifier": "t_string_calldata_ptr",4986 "typeString": "string calldata"4987 },4988 {4989 "typeIdentifier": "t_bytes_calldata_ptr",4990 "typeString": "bytes calldata"4991 }4992 ],4993 "expression": {4994 "id": 2024,4995 "name": "rftCollection",4996 "nodeType": "Identifier",4997 "overloadedDeclarations": [],4998 "referencedDeclaration": 1994,4999 "src": "4526:13:5",5000 "typeDescriptions": {5001 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",5002 "typeString": "contract UniqueRefungible"5003 }5004 },5005 "id": 2026,5006 "isConstant": false,5007 "isLValue": false,5008 "isPure": false,5009 "lValueRequested": false,5010 "memberLocation": "4540:11:5",5011 "memberName": "setProperty",5012 "nodeType": "MemberAccess",5013 "referencedDeclaration": 971,5014 "src": "4526:25:5",5015 "typeDescriptions": {5016 "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$_t_string_memory_ptr_$_t_bytes_memory_ptr_$returns$__$",5017 "typeString": "function (uint256,string memory,bytes memory) external"5018 }5019 },5020 "id": 2036,5021 "isConstant": false,5022 "isLValue": false,5023 "isPure": false,5024 "kind": "functionCall",5025 "lValueRequested": false,5026 "nameLocations": [],5027 "names": [],5028 "nodeType": "FunctionCall",5029 "src": "4526:74:5",5030 "tryCall": false,5031 "typeDescriptions": {5032 "typeIdentifier": "t_tuple$__$",5033 "typeString": "tuple()"5034 }5035 },5036 "id": 2037,5037 "nodeType": "ExpressionStatement",5038 "src": "4526:74:5"5039 }5040 ]5041 },5042 "condition": {5043 "commonType": {5044 "typeIdentifier": "t_uint256",5045 "typeString": "uint256"5046 },5047 "id": 2020,5048 "isConstant": false,5049 "isLValue": false,5050 "isPure": false,5051 "lValueRequested": false,5052 "leftExpression": {5053 "id": 2018,5054 "name": "i",5055 "nodeType": "Identifier",5056 "overloadedDeclarations": [],5057 "referencedDeclaration": 2015,5058 "src": "4493:1:5",5059 "typeDescriptions": {5060 "typeIdentifier": "t_uint256",5061 "typeString": "uint256"5062 }5063 },5064 "nodeType": "BinaryOperation",5065 "operator": "<",5066 "rightExpression": {5067 "id": 2019,5068 "name": "propertiesLength",5069 "nodeType": "Identifier",5070 "overloadedDeclarations": [],5071 "referencedDeclaration": 1957,5072 "src": "4497:16:5",5073 "typeDescriptions": {5074 "typeIdentifier": "t_uint256",5075 "typeString": "uint256"5076 }5077 },5078 "src": "4493:20:5",5079 "typeDescriptions": {5080 "typeIdentifier": "t_bool",5081 "typeString": "bool"5082 }5083 },5084 "id": 2039,5085 "initializationExpression": {5086 "assignments": [5087 20155088 ],5089 "declarations": [5090 {5091 "constant": false,5092 "id": 2015,5093 "mutability": "mutable",5094 "name": "i",5095 "nameLocation": "4486:1:5",5096 "nodeType": "VariableDeclaration",5097 "scope": 2039,5098 "src": "4478:9:5",5099 "stateVariable": false,5100 "storageLocation": "default",5101 "typeDescriptions": {5102 "typeIdentifier": "t_uint256",5103 "typeString": "uint256"5104 },5105 "typeName": {5106 "id": 2014,5107 "name": "uint256",5108 "nodeType": "ElementaryTypeName",5109 "src": "4478:7:5",5110 "typeDescriptions": {5111 "typeIdentifier": "t_uint256",5112 "typeString": "uint256"5113 }5114 },5115 "visibility": "internal"5116 }5117 ],5118 "id": 2017,5119 "initialValue": {5120 "hexValue": "30",5121 "id": 2016,5122 "isConstant": false,5123 "isLValue": false,5124 "isPure": true,5125 "kind": "number",5126 "lValueRequested": false,5127 "nodeType": "Literal",5128 "src": "4490:1:5",5129 "typeDescriptions": {5130 "typeIdentifier": "t_rational_0_by_1",5131 "typeString": "int_const 0"5132 },5133 "value": "0"5134 },5135 "nodeType": "VariableDeclarationStatement",5136 "src": "4478:13:5"5137 },5138 "loopExpression": {5139 "expression": {5140 "id": 2022,5141 "isConstant": false,5142 "isLValue": false,5143 "isPure": false,5144 "lValueRequested": false,5145 "nodeType": "UnaryOperation",5146 "operator": "++",5147 "prefix": true,5148 "src": "4515:3:5",5149 "subExpression": {5150 "id": 2021,5151 "name": "i",5152 "nodeType": "Identifier",5153 "overloadedDeclarations": [],5154 "referencedDeclaration": 2015,5155 "src": "4517:1:5",5156 "typeDescriptions": {5157 "typeIdentifier": "t_uint256",5158 "typeString": "uint256"5159 }5160 },5161 "typeDescriptions": {5162 "typeIdentifier": "t_uint256",5163 "typeString": "uint256"5164 }5165 },5166 "id": 2023,5167 "nodeType": "ExpressionStatement",5168 "src": "4515:3:5"5169 },5170 "nodeType": "ForStatement",5171 "src": "4473:133:5"5172 },5173 {5174 "expression": {5175 "arguments": [5176 {5177 "arguments": [5178 {5179 "arguments": [5180 {5181 "id": 2046,5182 "name": "this",5183 "nodeType": "Identifier",5184 "overloadedDeclarations": [],5185 "referencedDeclaration": 4294967268,5186 "src": "4673:4:5",5187 "typeDescriptions": {5188 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",5189 "typeString": "contract EvmToSubstrate"5190 }5191 }5192 ],5193 "expression": {5194 "argumentTypes": [5195 {5196 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",5197 "typeString": "contract EvmToSubstrate"5198 }5199 ],5200 "id": 2045,5201 "isConstant": false,5202 "isLValue": false,5203 "isPure": true,5204 "lValueRequested": false,5205 "nodeType": "ElementaryTypeNameExpression",5206 "src": "4665:7:5",5207 "typeDescriptions": {5208 "typeIdentifier": "t_type$_t_address_$",5209 "typeString": "type(address)"5210 },5211 "typeName": {5212 "id": 2044,5213 "name": "address",5214 "nodeType": "ElementaryTypeName",5215 "src": "4665:7:5",5216 "typeDescriptions": {}5217 }5218 },5219 "id": 2047,5220 "isConstant": false,5221 "isLValue": false,5222 "isPure": false,5223 "kind": "typeConversion",5224 "lValueRequested": false,5225 "nameLocations": [],5226 "names": [],5227 "nodeType": "FunctionCall",5228 "src": "4665:13:5",5229 "tryCall": false,5230 "typeDescriptions": {5231 "typeIdentifier": "t_address",5232 "typeString": "address"5233 }5234 },5235 {5236 "hexValue": "30",5237 "id": 2048,5238 "isConstant": false,5239 "isLValue": false,5240 "isPure": true,5241 "kind": "number",5242 "lValueRequested": false,5243 "nodeType": "Literal",5244 "src": "4680:1:5",5245 "typeDescriptions": {5246 "typeIdentifier": "t_rational_0_by_1",5247 "typeString": "int_const 0"5248 },5249 "value": "0"5250 }5251 ],5252 "expression": {5253 "argumentTypes": [5254 {5255 "typeIdentifier": "t_address",5256 "typeString": "address"5257 },5258 {5259 "typeIdentifier": "t_rational_0_by_1",5260 "typeString": "int_const 0"5261 }5262 ],5263 "id": 2043,5264 "name": "RftCrossAccountId",5265 "nodeType": "Identifier",5266 "overloadedDeclarations": [],5267 "referencedDeclaration": 1253,5268 "src": "4647:17:5",5269 "typeDescriptions": {5270 "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$1253_storage_ptr_$",5271 "typeString": "type(struct EthCrossAccount storage pointer)"5272 }5273 },5274 "id": 2049,5275 "isConstant": false,5276 "isLValue": false,5277 "isPure": false,5278 "kind": "structConstructorCall",5279 "lValueRequested": false,5280 "nameLocations": [],5281 "names": [],5282 "nodeType": "FunctionCall",5283 "src": "4647:35:5",5284 "tryCall": false,5285 "typeDescriptions": {5286 "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",5287 "typeString": "struct EthCrossAccount memory"5288 }5289 },5290 {5291 "arguments": [5292 {5293 "arguments": [5294 {5295 "hexValue": "30",5296 "id": 2053,5297 "isConstant": false,5298 "isLValue": false,5299 "isPure": true,5300 "kind": "number",5301 "lValueRequested": false,5302 "nodeType": "Literal",5303 "src": "4714:1:5",5304 "typeDescriptions": {5305 "typeIdentifier": "t_rational_0_by_1",5306 "typeString": "int_const 0"5307 },5308 "value": "0"5309 }5310 ],5311 "expression": {5312 "argumentTypes": [5313 {5314 "typeIdentifier": "t_rational_0_by_1",5315 "typeString": "int_const 0"5316 }5317 ],5318 "id": 2052,5319 "isConstant": false,5320 "isLValue": false,5321 "isPure": true,5322 "lValueRequested": false,5323 "nodeType": "ElementaryTypeNameExpression",5324 "src": "4706:7:5",5325 "typeDescriptions": {5326 "typeIdentifier": "t_type$_t_address_$",5327 "typeString": "type(address)"5328 },5329 "typeName": {5330 "id": 2051,5331 "name": "address",5332 "nodeType": "ElementaryTypeName",5333 "src": "4706:7:5",5334 "typeDescriptions": {}5335 }5336 },5337 "id": 2054,5338 "isConstant": false,5339 "isLValue": false,5340 "isPure": true,5341 "kind": "typeConversion",5342 "lValueRequested": false,5343 "nameLocations": [],5344 "names": [],5345 "nodeType": "FunctionCall",5346 "src": "4706:10:5",5347 "tryCall": false,5348 "typeDescriptions": {5349 "typeIdentifier": "t_address",5350 "typeString": "address"5351 }5352 },5353 {5354 "id": 2055,5355 "name": "_substrateReceiver",5356 "nodeType": "Identifier",5357 "overloadedDeclarations": [],5358 "referencedDeclaration": 1946,5359 "src": "4718:18:5",5360 "typeDescriptions": {5361 "typeIdentifier": "t_uint256",5362 "typeString": "uint256"5363 }5364 }5365 ],5366 "expression": {5367 "argumentTypes": [5368 {5369 "typeIdentifier": "t_address",5370 "typeString": "address"5371 },5372 {5373 "typeIdentifier": "t_uint256",5374 "typeString": "uint256"5375 }5376 ],5377 "id": 2050,5378 "name": "RftCrossAccountId",5379 "nodeType": "Identifier",5380 "overloadedDeclarations": [],5381 "referencedDeclaration": 1253,5382 "src": "4688:17:5",5383 "typeDescriptions": {5384 "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$1253_storage_ptr_$",5385 "typeString": "type(struct EthCrossAccount storage pointer)"5386 }5387 },5388 "id": 2056,5389 "isConstant": false,5390 "isLValue": false,5391 "isPure": false,5392 "kind": "structConstructorCall",5393 "lValueRequested": false,5394 "nameLocations": [],5395 "names": [],5396 "nodeType": "FunctionCall",5397 "src": "4688:49:5",5398 "tryCall": false,5399 "typeDescriptions": {5400 "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",5401 "typeString": "struct EthCrossAccount memory"5402 }5403 },5404 {5405 "id": 2057,5406 "name": "tokenId",5407 "nodeType": "Identifier",5408 "overloadedDeclarations": [],5409 "referencedDeclaration": 1987,5410 "src": "4743:7:5",5411 "typeDescriptions": {5412 "typeIdentifier": "t_uint256",5413 "typeString": "uint256"5414 }5415 }5416 ],5417 "expression": {5418 "argumentTypes": [5419 {5420 "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",5421 "typeString": "struct EthCrossAccount memory"5422 },5423 {5424 "typeIdentifier": "t_struct$_EthCrossAccount_$1253_memory_ptr",5425 "typeString": "struct EthCrossAccount memory"5426 },5427 {5428 "typeIdentifier": "t_uint256",5429 "typeString": "uint256"5430 }5431 ],5432 "expression": {5433 "id": 2040,5434 "name": "rftCollection",5435 "nodeType": "Identifier",5436 "overloadedDeclarations": [],5437 "referencedDeclaration": 1994,5438 "src": "4610:13:5",5439 "typeDescriptions": {5440 "typeIdentifier": "t_contract$_UniqueRefungible_$1572",5441 "typeString": "contract UniqueRefungible"5442 }5443 },5444 "id": 2042,5445 "isConstant": false,5446 "isLValue": false,5447 "isPure": false,5448 "lValueRequested": false,5449 "memberLocation": "4624:17:5",5450 "memberName": "transferFromCross",5451 "nodeType": "MemberAccess",5452 "referencedDeclaration": 1368,5453 "src": "4610:31:5",5454 "typeDescriptions": {5455 "typeIdentifier": "t_function_external_nonpayable$_t_struct$_EthCrossAccount_$1253_memory_ptr_$_t_struct$_EthCrossAccount_$1253_memory_ptr_$_t_uint256_$returns$__$",5456 "typeString": "function (struct EthCrossAccount memory,struct EthCrossAccount memory,uint256) external"5457 }5458 },5459 "id": 2058,5460 "isConstant": false,5461 "isLValue": false,5462 "isPure": false,5463 "kind": "functionCall",5464 "lValueRequested": false,5465 "nameLocations": [],5466 "names": [],5467 "nodeType": "FunctionCall",5468 "src": "4610:145:5",5469 "tryCall": false,5470 "typeDescriptions": {5471 "typeIdentifier": "t_tuple$__$",5472 "typeString": "tuple()"5473 }5474 },5475 "id": 2059,5476 "nodeType": "ExpressionStatement",5477 "src": "4610:145:5"5478 }5479 ]5480 }5481 },5482 {5483 "eventCall": {5484 "arguments": [5485 {5486 "arguments": [5487 {5488 "hexValue": "30",5489 "id": 2143,5490 "isConstant": false,5491 "isLValue": false,5492 "isPure": true,5493 "kind": "number",5494 "lValueRequested": false,5495 "nodeType": "Literal",5496 "src": "5396:1:5",5497 "typeDescriptions": {5498 "typeIdentifier": "t_rational_0_by_1",5499 "typeString": "int_const 0"5500 },5501 "value": "0"5502 }5503 ],5504 "expression": {5505 "argumentTypes": [5506 {5507 "typeIdentifier": "t_rational_0_by_1",5508 "typeString": "int_const 0"5509 }5510 ],5511 "id": 2142,5512 "isConstant": false,5513 "isLValue": false,5514 "isPure": true,5515 "lValueRequested": false,5516 "nodeType": "ElementaryTypeNameExpression",5517 "src": "5388:7:5",5518 "typeDescriptions": {5519 "typeIdentifier": "t_type$_t_address_$",5520 "typeString": "type(address)"5521 },5522 "typeName": {5523 "id": 2141,5524 "name": "address",5525 "nodeType": "ElementaryTypeName",5526 "src": "5388:7:5",5527 "typeDescriptions": {}5528 }5529 },5530 "id": 2144,5531 "isConstant": false,5532 "isLValue": false,5533 "isPure": true,5534 "kind": "typeConversion",5535 "lValueRequested": false,5536 "nameLocations": [],5537 "names": [],5538 "nodeType": "FunctionCall",5539 "src": "5388:10:5",5540 "tryCall": false,5541 "typeDescriptions": {5542 "typeIdentifier": "t_address",5543 "typeString": "address"5544 }5545 },5546 {5547 "id": 2145,5548 "name": "_substrateReceiver",5549 "nodeType": "Identifier",5550 "overloadedDeclarations": [],5551 "referencedDeclaration": 1946,5552 "src": "5400:18:5",5553 "typeDescriptions": {5554 "typeIdentifier": "t_uint256",5555 "typeString": "uint256"5556 }5557 },5558 {5559 "id": 2146,5560 "name": "_collection",5561 "nodeType": "Identifier",5562 "overloadedDeclarations": [],5563 "referencedDeclaration": 1944,5564 "src": "5420:11:5",5565 "typeDescriptions": {5566 "typeIdentifier": "t_address",5567 "typeString": "address"5568 }5569 },5570 {5571 "id": 2147,5572 "name": "tokenId",5573 "nodeType": "Identifier",5574 "overloadedDeclarations": [],5575 "referencedDeclaration": 1987,5576 "src": "5433:7:5",5577 "typeDescriptions": {5578 "typeIdentifier": "t_uint256",5579 "typeString": "uint256"5580 }5581 }5582 ],5583 "expression": {5584 "argumentTypes": [5585 {5586 "typeIdentifier": "t_address",5587 "typeString": "address"5588 },5589 {5590 "typeIdentifier": "t_uint256",5591 "typeString": "uint256"5592 },5593 {5594 "typeIdentifier": "t_address",5595 "typeString": "address"5596 },5597 {5598 "typeIdentifier": "t_uint256",5599 "typeString": "uint256"5600 }5601 ],5602 "id": 2140,5603 "name": "MintToSub",5604 "nodeType": "Identifier",5605 "overloadedDeclarations": [],5606 "referencedDeclaration": 1811,5607 "src": "5378:9:5",5608 "typeDescriptions": {5609 "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_address_$_t_uint256_$returns$__$",5610 "typeString": "function (address,uint256,address,uint256)"5611 }5612 },5613 "id": 2148,5614 "isConstant": false,5615 "isLValue": false,5616 "isPure": false,5617 "kind": "functionCall",5618 "lValueRequested": false,5619 "nameLocations": [],5620 "names": [],5621 "nodeType": "FunctionCall",5622 "src": "5378:63:5",5623 "tryCall": false,5624 "typeDescriptions": {5625 "typeIdentifier": "t_tuple$__$",5626 "typeString": "tuple()"5627 }5628 },5629 "id": 2149,5630 "nodeType": "EmitStatement",5631 "src": "5373:68:5"5632 }5633 ]5634 },5635 "functionSelector": "440dff9d",5636 "id": 2151,5637 "implemented": true,5638 "kind": "function",5639 "modifiers": [5640 {5641 "arguments": [5642 {5643 "id": 1953,5644 "name": "_collection",5645 "nodeType": "Identifier",5646 "overloadedDeclarations": [],5647 "referencedDeclaration": 1944,5648 "src": "3842:11:5",5649 "typeDescriptions": {5650 "typeIdentifier": "t_address",5651 "typeString": "address"5652 }5653 }5654 ],5655 "id": 1954,5656 "kind": "modifierInvocation",5657 "modifierName": {5658 "id": 1952,5659 "name": "checkRestrictions",5660 "nameLocations": [5661 "3824:17:5"5662 ],5663 "nodeType": "IdentifierPath",5664 "referencedDeclaration": 1800,5665 "src": "3824:17:5"5666 },5667 "nodeType": "ModifierInvocation",5668 "src": "3824:30:5"5669 }5670 ],5671 "name": "mintToSubstrateWithProperty",5672 "nameLocation": "3697:27:5",5673 "nodeType": "FunctionDefinition",5674 "parameters": {5675 "id": 1951,5676 "nodeType": "ParameterList",5677 "parameters": [5678 {5679 "constant": false,5680 "id": 1944,5681 "mutability": "mutable",5682 "name": "_collection",5683 "nameLocation": "3736:11:5",5684 "nodeType": "VariableDeclaration",5685 "scope": 2151,5686 "src": "3728:19:5",5687 "stateVariable": false,5688 "storageLocation": "default",5689 "typeDescriptions": {5690 "typeIdentifier": "t_address",5691 "typeString": "address"5692 },5693 "typeName": {5694 "id": 1943,5695 "name": "address",5696 "nodeType": "ElementaryTypeName",5697 "src": "3728:7:5",5698 "stateMutability": "nonpayable",5699 "typeDescriptions": {5700 "typeIdentifier": "t_address",5701 "typeString": "address"5702 }5703 },5704 "visibility": "internal"5705 },5706 {5707 "constant": false,5708 "id": 1946,5709 "mutability": "mutable",5710 "name": "_substrateReceiver",5711 "nameLocation": "3759:18:5",5712 "nodeType": "VariableDeclaration",5713 "scope": 2151,5714 "src": "3751:26:5",5715 "stateVariable": false,5716 "storageLocation": "default",5717 "typeDescriptions": {5718 "typeIdentifier": "t_uint256",5719 "typeString": "uint256"5720 },5721 "typeName": {5722 "id": 1945,5723 "name": "uint256",5724 "nodeType": "ElementaryTypeName",5725 "src": "3751:7:5",5726 "typeDescriptions": {5727 "typeIdentifier": "t_uint256",5728 "typeString": "uint256"5729 }5730 },5731 "visibility": "internal"5732 },5733 {5734 "constant": false,5735 "id": 1950,5736 "mutability": "mutable",5737 "name": "properties",5738 "nameLocation": "3801:10:5",5739 "nodeType": "VariableDeclaration",5740 "scope": 2151,5741 "src": "3781:30:5",5742 "stateVariable": false,5743 "storageLocation": "calldata",5744 "typeDescriptions": {5745 "typeIdentifier": "t_array$_t_struct$_Property_$1762_calldata_ptr_$dyn_calldata_ptr",5746 "typeString": "struct Property[]"5747 },5748 "typeName": {5749 "baseType": {5750 "id": 1948,5751 "nodeType": "UserDefinedTypeName",5752 "pathNode": {5753 "id": 1947,5754 "name": "Property",5755 "nameLocations": [5756 "3781:8:5"5757 ],5758 "nodeType": "IdentifierPath",5759 "referencedDeclaration": 1762,5760 "src": "3781:8:5"5761 },5762 "referencedDeclaration": 1762,5763 "src": "3781:8:5",5764 "typeDescriptions": {5765 "typeIdentifier": "t_struct$_Property_$1762_storage_ptr",5766 "typeString": "struct Property"5767 }5768 },5769 "id": 1949,5770 "nodeType": "ArrayTypeName",5771 "src": "3781:10:5",5772 "typeDescriptions": {5773 "typeIdentifier": "t_array$_t_struct$_Property_$1762_storage_$dyn_storage_ptr",5774 "typeString": "struct Property[]"5775 }5776 },5777 "visibility": "internal"5778 }5779 ],5780 "src": "3724:90:5"5781 },5782 "returnParameters": {5783 "id": 1955,5784 "nodeType": "ParameterList",5785 "parameters": [],5786 "src": "3855:0:5"5787 },5788 "scope": 2269,5789 "src": "3688:1757:5",5790 "stateMutability": "nonpayable",5791 "virtual": false,5792 "visibility": "external"5793 },5794 {5795 "body": {5796 "id": 2267,5797 "nodeType": "Block",5798 "src": "5619:885:5",5799 "statements": [5800 {5801 "assignments": [5802 21665803 ],5804 "declarations": [5805 {5806 "constant": false,5807 "id": 2166,5808 "mutability": "mutable",5809 "name": "propertiesLength",5810 "nameLocation": "5631:16:5",5811 "nodeType": "VariableDeclaration",5812 "scope": 2267,5813 "src": "5623:24:5",5814 "stateVariable": false,5815 "storageLocation": "default",5816 "typeDescriptions": {5817 "typeIdentifier": "t_uint256",5818 "typeString": "uint256"5819 },5820 "typeName": {5821 "id": 2165,5822 "name": "uint256",5823 "nodeType": "ElementaryTypeName",5824 "src": "5623:7:5",5825 "typeDescriptions": {5826 "typeIdentifier": "t_uint256",5827 "typeString": "uint256"5828 }5829 },5830 "visibility": "internal"5831 }5832 ],5833 "id": 2169,5834 "initialValue": {5835 "expression": {5836 "id": 2167,5837 "name": "_properties",5838 "nodeType": "Identifier",5839 "overloadedDeclarations": [],5840 "referencedDeclaration": 2159,5841 "src": "5650:11:5",5842 "typeDescriptions": {5843 "typeIdentifier": "t_array$_t_struct$_Tuple21_$620_calldata_ptr_$dyn_calldata_ptr",5844 "typeString": "struct Tuple21 calldata[] calldata"5845 }5846 },5847 "id": 2168,5848 "isConstant": false,5849 "isLValue": false,5850 "isPure": false,5851 "lValueRequested": false,5852 "memberLocation": "5662:6:5",5853 "memberName": "length",5854 "nodeType": "MemberAccess",5855 "src": "5650:18:5",5856 "typeDescriptions": {5857 "typeIdentifier": "t_uint256",5858 "typeString": "uint256"5859 }5860 },5861 "nodeType": "VariableDeclarationStatement",5862 "src": "5623:45:5"5863 },5864 {5865 "expression": {5866 "arguments": [5867 {5868 "commonType": {5869 "typeIdentifier": "t_uint256",5870 "typeString": "uint256"5871 },5872 "id": 2173,5873 "isConstant": false,5874 "isLValue": false,5875 "isPure": false,5876 "lValueRequested": false,5877 "leftExpression": {5878 "id": 2171,5879 "name": "propertiesLength",5880 "nodeType": "Identifier",5881 "overloadedDeclarations": [],5882 "referencedDeclaration": 2166,5883 "src": "5680:16:5",5884 "typeDescriptions": {5885 "typeIdentifier": "t_uint256",5886 "typeString": "uint256"5887 }5888 },5889 "nodeType": "BinaryOperation",5890 "operator": ">",5891 "rightExpression": {5892 "hexValue": "30",5893 "id": 2172,5894 "isConstant": false,5895 "isLValue": false,5896 "isPure": true,5897 "kind": "number",5898 "lValueRequested": false,5899 "nodeType": "Literal",5900 "src": "5699:1:5",5901 "typeDescriptions": {5902 "typeIdentifier": "t_rational_0_by_1",5903 "typeString": "int_const 0"5904 },5905 "value": "0"5906 },5907 "src": "5680:20:5",5908 "typeDescriptions": {5909 "typeIdentifier": "t_bool",5910 "typeString": "bool"5911 }5912 },5913 {5914 "hexValue": "50726f70657269657320697320656d707479",5915 "id": 2174,5916 "isConstant": false,5917 "isLValue": false,5918 "isPure": true,5919 "kind": "string",5920 "lValueRequested": false,5921 "nodeType": "Literal",5922 "src": "5702:20:5",5923 "typeDescriptions": {5924 "typeIdentifier": "t_stringliteral_3c3e0098388726dfb54bb3f478f469c7fc9acc2aa2937bb94957726165b135a1",5925 "typeString": "literal_string \"Properies is empty\""5926 },5927 "value": "Properies is empty"5928 }5929 ],5930 "expression": {5931 "argumentTypes": [5932 {5933 "typeIdentifier": "t_bool",5934 "typeString": "bool"5935 },5936 {5937 "typeIdentifier": "t_stringliteral_3c3e0098388726dfb54bb3f478f469c7fc9acc2aa2937bb94957726165b135a1",5938 "typeString": "literal_string \"Properies is empty\""5939 }5940 ],5941 "id": 2170,5942 "name": "require",5943 "nodeType": "Identifier",5944 "overloadedDeclarations": [5945 4294967278,5946 42949672785947 ],5948 "referencedDeclaration": 4294967278,5949 "src": "5672:7:5",5950 "typeDescriptions": {5951 "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",5952 "typeString": "function (bool,string memory) pure"5953 }5954 },5955 "id": 2175,5956 "isConstant": false,5957 "isLValue": false,5958 "isPure": false,5959 "kind": "functionCall",5960 "lValueRequested": false,5961 "nameLocations": [],5962 "names": [],5963 "nodeType": "FunctionCall",5964 "src": "5672:51:5",5965 "tryCall": false,5966 "typeDescriptions": {5967 "typeIdentifier": "t_tuple$__$",5968 "typeString": "tuple()"5969 }5970 },5971 "id": 2176,5972 "nodeType": "ExpressionStatement",5973 "src": "5672:51:5"5974 },5975 {5976 "assignments": [5977 21795978 ],5979 "declarations": [5980 {5981 "constant": false,5982 "id": 2179,5983 "mutability": "mutable",5984 "name": "commonContract",5985 "nameLocation": "5739:14:5",5986 "nodeType": "VariableDeclaration",5987 "scope": 2267,5988 "src": "5728:25:5",5989 "stateVariable": false,5990 "storageLocation": "default",5991 "typeDescriptions": {5992 "typeIdentifier": "t_contract$_Collection_$1248",5993 "typeString": "contract Collection"5994 },5995 "typeName": {5996 "id": 2178,5997 "nodeType": "UserDefinedTypeName",5998 "pathNode": {5999 "id": 2177,6000 "name": "Collection",6001 "nameLocations": [6002 "5728:10:5"6003 ],6004 "nodeType": "IdentifierPath",6005 "referencedDeclaration": 1248,6006 "src": "5728:10:5"6007 },6008 "referencedDeclaration": 1248,6009 "src": "5728:10:5",6010 "typeDescriptions": {6011 "typeIdentifier": "t_contract$_Collection_$1248",6012 "typeString": "contract Collection"6013 }6014 },6015 "visibility": "internal"6016 }6017 ],6018 "id": 2183,6019 "initialValue": {6020 "arguments": [6021 {6022 "id": 2181,6023 "name": "_collection",6024 "nodeType": "Identifier",6025 "overloadedDeclarations": [],6026 "referencedDeclaration": 2153,6027 "src": "5767:11:5",6028 "typeDescriptions": {6029 "typeIdentifier": "t_address",6030 "typeString": "address"6031 }6032 }6033 ],6034 "expression": {6035 "argumentTypes": [6036 {6037 "typeIdentifier": "t_address",6038 "typeString": "address"6039 }6040 ],6041 "id": 2180,6042 "name": "Collection",6043 "nodeType": "Identifier",6044 "overloadedDeclarations": [],6045 "referencedDeclaration": 1248,6046 "src": "5756:10:5",6047 "typeDescriptions": {6048 "typeIdentifier": "t_type$_t_contract$_Collection_$1248_$",6049 "typeString": "type(contract Collection)"6050 }6051 },6052 "id": 2182,6053 "isConstant": false,6054 "isLValue": false,6055 "isPure": false,6056 "kind": "typeConversion",6057 "lValueRequested": false,6058 "nameLocations": [],6059 "names": [],6060 "nodeType": "FunctionCall",6061 "src": "5756:23:5",6062 "tryCall": false,6063 "typeDescriptions": {6064 "typeIdentifier": "t_contract$_Collection_$1248",6065 "typeString": "contract Collection"6066 }6067 },6068 "nodeType": "VariableDeclarationStatement",6069 "src": "5728:51:5"6070 },6071 {6072 "assignments": [6073 21856074 ],6075 "declarations": [6076 {6077 "constant": false,6078 "id": 2185,6079 "mutability": "mutable",6080 "name": "collectionType",6081 "nameLocation": "5791:14:5",6082 "nodeType": "VariableDeclaration",6083 "scope": 2267,6084 "src": "5783:22:5",6085 "stateVariable": false,6086 "storageLocation": "default",6087 "typeDescriptions": {6088 "typeIdentifier": "t_bytes32",6089 "typeString": "bytes32"6090 },6091 "typeName": {6092 "id": 2184,6093 "name": "bytes32",6094 "nodeType": "ElementaryTypeName",6095 "src": "5783:7:5",6096 "typeDescriptions": {6097 "typeIdentifier": "t_bytes32",6098 "typeString": "bytes32"6099 }6100 },6101 "visibility": "internal"6102 }6103 ],6104 "id": 2194,6105 "initialValue": {6106 "arguments": [6107 {6108 "arguments": [6109 {6110 "arguments": [],6111 "expression": {6112 "argumentTypes": [],6113 "expression": {6114 "id": 2189,6115 "name": "commonContract",6116 "nodeType": "Identifier",6117 "overloadedDeclarations": [],6118 "referencedDeclaration": 2179,6119 "src": "5824:14:5",6120 "typeDescriptions": {6121 "typeIdentifier": "t_contract$_Collection_$1248",6122 "typeString": "contract Collection"6123 }6124 },6125 "id": 2190,6126 "isConstant": false,6127 "isLValue": false,6128 "isPure": false,6129 "lValueRequested": false,6130 "memberLocation": "5839:20:5",6131 "memberName": "uniqueCollectionType",6132 "nodeType": "MemberAccess",6133 "referencedDeclaration": 1219,6134 "src": "5824:35:5",6135 "typeDescriptions": {6136 "typeIdentifier": "t_function_external_view$__$returns$_t_string_memory_ptr_$",6137 "typeString": "function () view external returns (string memory)"6138 }6139 },6140 "id": 2191,6141 "isConstant": false,6142 "isLValue": false,6143 "isPure": false,6144 "kind": "functionCall",6145 "lValueRequested": false,6146 "nameLocations": [],6147 "names": [],6148 "nodeType": "FunctionCall",6149 "src": "5824:37:5",6150 "tryCall": false,6151 "typeDescriptions": {6152 "typeIdentifier": "t_string_memory_ptr",6153 "typeString": "string memory"6154 }6155 }6156 ],6157 "expression": {6158 "argumentTypes": [6159 {6160 "typeIdentifier": "t_string_memory_ptr",6161 "typeString": "string memory"6162 }6163 ],6164 "id": 2188,6165 "isConstant": false,6166 "isLValue": false,6167 "isPure": true,6168 "lValueRequested": false,6169 "nodeType": "ElementaryTypeNameExpression",6170 "src": "5818:5:5",6171 "typeDescriptions": {6172 "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",6173 "typeString": "type(bytes storage pointer)"6174 },6175 "typeName": {6176 "id": 2187,6177 "name": "bytes",6178 "nodeType": "ElementaryTypeName",6179 "src": "5818:5:5",6180 "typeDescriptions": {}6181 }6182 },6183 "id": 2192,6184 "isConstant": false,6185 "isLValue": false,6186 "isPure": false,6187 "kind": "typeConversion",6188 "lValueRequested": false,6189 "nameLocations": [],6190 "names": [],6191 "nodeType": "FunctionCall",6192 "src": "5818:44:5",6193 "tryCall": false,6194 "typeDescriptions": {6195 "typeIdentifier": "t_bytes_memory_ptr",6196 "typeString": "bytes memory"6197 }6198 }6199 ],6200 "expression": {6201 "argumentTypes": [6202 {6203 "typeIdentifier": "t_bytes_memory_ptr",6204 "typeString": "bytes memory"6205 }6206 ],6207 "id": 2186,6208 "name": "keccak256",6209 "nodeType": "Identifier",6210 "overloadedDeclarations": [],6211 "referencedDeclaration": 4294967288,6212 "src": "5808:9:5",6213 "typeDescriptions": {6214 "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",6215 "typeString": "function (bytes memory) pure returns (bytes32)"6216 }6217 },6218 "id": 2193,6219 "isConstant": false,6220 "isLValue": false,6221 "isPure": false,6222 "kind": "functionCall",6223 "lValueRequested": false,6224 "nameLocations": [],6225 "names": [],6226 "nodeType": "FunctionCall",6227 "src": "5808:55:5",6228 "tryCall": false,6229 "typeDescriptions": {6230 "typeIdentifier": "t_bytes32",6231 "typeString": "bytes32"6232 }6233 },6234 "nodeType": "VariableDeclarationStatement",6235 "src": "5783:80:5"6236 },6237 {6238 "assignments": [6239 21966240 ],6241 "declarations": [6242 {6243 "constant": false,6244 "id": 2196,6245 "mutability": "mutable",6246 "name": "tokenId",6247 "nameLocation": "5875:7:5",6248 "nodeType": "VariableDeclaration",6249 "scope": 2267,6250 "src": "5867:15:5",6251 "stateVariable": false,6252 "storageLocation": "default",6253 "typeDescriptions": {6254 "typeIdentifier": "t_uint256",6255 "typeString": "uint256"6256 },6257 "typeName": {6258 "id": 2195,6259 "name": "uint256",6260 "nodeType": "ElementaryTypeName",6261 "src": "5867:7:5",6262 "typeDescriptions": {6263 "typeIdentifier": "t_uint256",6264 "typeString": "uint256"6265 }6266 },6267 "visibility": "internal"6268 }6269 ],6270 "id": 2197,6271 "nodeType": "VariableDeclarationStatement",6272 "src": "5867:15:5"6273 },6274 {6275 "condition": {6276 "commonType": {6277 "typeIdentifier": "t_bytes32",6278 "typeString": "bytes32"6279 },6280 "id": 2200,6281 "isConstant": false,6282 "isLValue": false,6283 "isPure": false,6284 "lValueRequested": false,6285 "leftExpression": {6286 "id": 2198,6287 "name": "collectionType",6288 "nodeType": "Identifier",6289 "overloadedDeclarations": [],6290 "referencedDeclaration": 2185,6291 "src": "5891:14:5",6292 "typeDescriptions": {6293 "typeIdentifier": "t_bytes32",6294 "typeString": "bytes32"6295 }6296 },6297 "nodeType": "BinaryOperation",6298 "operator": "==",6299 "rightExpression": {6300 "id": 2199,6301 "name": "REFUNGIBLE_COLLECTION_TYPE",6302 "nodeType": "Identifier",6303 "overloadedDeclarations": [],6304 "referencedDeclaration": 1770,6305 "src": "5909:26:5",6306 "typeDescriptions": {6307 "typeIdentifier": "t_bytes32",6308 "typeString": "bytes32"6309 }6310 },6311 "src": "5891:44:5",6312 "typeDescriptions": {6313 "typeIdentifier": "t_bool",6314 "typeString": "bool"6315 }6316 },6317 "falseBody": {6318 "condition": {6319 "commonType": {6320 "typeIdentifier": "t_bytes32",6321 "typeString": "bytes32"6322 },6323 "id": 2204,6324 "isConstant": false,6325 "isLValue": false,6326 "isPure": false,6327 "lValueRequested": false,6328 "leftExpression": {6329 "id": 2202,6330 "name": "collectionType",6331 "nodeType": "Identifier",6332 "overloadedDeclarations": [],6333 "referencedDeclaration": 2185,6334 "src": "5949:14:5",6335 "typeDescriptions": {6336 "typeIdentifier": "t_bytes32",6337 "typeString": "bytes32"6338 }6339 },6340 "nodeType": "BinaryOperation",6341 "operator": "==",6342 "rightExpression": {6343 "id": 2203,6344 "name": "NONFUNGIBLE_COLLECTION_TYPE",6345 "nodeType": "Identifier",6346 "overloadedDeclarations": [],6347 "referencedDeclaration": 1778,6348 "src": "5967:27:5",6349 "typeDescriptions": {6350 "typeIdentifier": "t_bytes32",6351 "typeString": "bytes32"6352 }6353 },6354 "src": "5949:45:5",6355 "typeDescriptions": {6356 "typeIdentifier": "t_bool",6357 "typeString": "bool"6358 }6359 },6360 "falseBody": {6361 "id": 2254,6362 "nodeType": "Block",6363 "src": "6359:69:5",6364 "statements": [6365 {6366 "expression": {6367 "arguments": [6368 {6369 "hexValue": "57726f6e6720636f6c6c656374696f6e20747970652e20576f726b73206f6e6c792077697468204e4654206f7220524654",6370 "id": 2251,6371 "isConstant": false,6372 "isLValue": false,6373 "isPure": true,6374 "kind": "string",6375 "lValueRequested": false,6376 "nodeType": "Literal",6377 "src": "6371:51:5",6378 "typeDescriptions": {6379 "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",6380 "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""6381 },6382 "value": "Wrong collection type. Works only with NFT or RFT"6383 }6384 ],6385 "expression": {6386 "argumentTypes": [6387 {6388 "typeIdentifier": "t_stringliteral_a720d6ef8719206bfa9a6cc035f350312523cbf9cf6cd62b2324270bef55372a",6389 "typeString": "literal_string \"Wrong collection type. Works only with NFT or RFT\""6390 }6391 ],6392 "id": 2250,6393 "name": "revert",6394 "nodeType": "Identifier",6395 "overloadedDeclarations": [6396 4294967277,6397 42949672776398 ],6399 "referencedDeclaration": 4294967277,6400 "src": "6364:6:5",6401 "typeDescriptions": {6402 "typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",6403 "typeString": "function (string memory) pure"6404 }6405 },6406 "id": 2252,6407 "isConstant": false,6408 "isLValue": false,6409 "isPure": false,6410 "kind": "functionCall",6411 "lValueRequested": false,6412 "nameLocations": [],6413 "names": [],6414 "nodeType": "FunctionCall",6415 "src": "6364:59:5",6416 "tryCall": false,6417 "typeDescriptions": {6418 "typeIdentifier": "t_tuple$__$",6419 "typeString": "tuple()"6420 }6421 },6422 "id": 2253,6423 "nodeType": "ExpressionStatement",6424 "src": "6364:59:5"6425 }6426 ]6427 },6428 "id": 2255,6429 "nodeType": "IfStatement",6430 "src": "5945:483:5",6431 "trueBody": {6432 "id": 2249,6433 "nodeType": "Block",6434 "src": "5996:357:5",6435 "statements": [6436 {6437 "assignments": [6438 22076439 ],6440 "declarations": [6441 {6442 "constant": false,6443 "id": 2207,6444 "mutability": "mutable",6445 "name": "nftCollection",6446 "nameLocation": "6011:13:5",6447 "nodeType": "VariableDeclaration",6448 "scope": 2249,6449 "src": "6001:23:5",6450 "stateVariable": false,6451 "storageLocation": "default",6452 "typeDescriptions": {6453 "typeIdentifier": "t_contract$_UniqueNFT_$930",6454 "typeString": "contract UniqueNFT"6455 },6456 "typeName": {6457 "id": 2206,6458 "nodeType": "UserDefinedTypeName",6459 "pathNode": {6460 "id": 2205,6461 "name": "UniqueNFT",6462 "nameLocations": [6463 "6001:9:5"6464 ],6465 "nodeType": "IdentifierPath",6466 "referencedDeclaration": 930,6467 "src": "6001:9:5"6468 },6469 "referencedDeclaration": 930,6470 "src": "6001:9:5",6471 "typeDescriptions": {6472 "typeIdentifier": "t_contract$_UniqueNFT_$930",6473 "typeString": "contract UniqueNFT"6474 }6475 },6476 "visibility": "internal"6477 }6478 ],6479 "id": 2211,6480 "initialValue": {6481 "arguments": [6482 {6483 "id": 2209,6484 "name": "_collection",6485 "nodeType": "Identifier",6486 "overloadedDeclarations": [],6487 "referencedDeclaration": 2153,6488 "src": "6037:11:5",6489 "typeDescriptions": {6490 "typeIdentifier": "t_address",6491 "typeString": "address"6492 }6493 }6494 ],6495 "expression": {6496 "argumentTypes": [6497 {6498 "typeIdentifier": "t_address",6499 "typeString": "address"6500 }6501 ],6502 "id": 2208,6503 "name": "UniqueNFT",6504 "nodeType": "Identifier",6505 "overloadedDeclarations": [],6506 "referencedDeclaration": 930,6507 "src": "6027:9:5",6508 "typeDescriptions": {6509 "typeIdentifier": "t_type$_t_contract$_UniqueNFT_$930_$",6510 "typeString": "type(contract UniqueNFT)"6511 }6512 },6513 "id": 2210,6514 "isConstant": false,6515 "isLValue": false,6516 "isPure": false,6517 "kind": "typeConversion",6518 "lValueRequested": false,6519 "nameLocations": [],6520 "names": [],6521 "nodeType": "FunctionCall",6522 "src": "6027:22:5",6523 "tryCall": false,6524 "typeDescriptions": {6525 "typeIdentifier": "t_contract$_UniqueNFT_$930",6526 "typeString": "contract UniqueNFT"6527 }6528 },6529 "nodeType": "VariableDeclarationStatement",6530 "src": "6001:48:5"6531 },6532 {6533 "expression": {6534 "id": 2220,6535 "isConstant": false,6536 "isLValue": false,6537 "isPure": false,6538 "lValueRequested": false,6539 "leftHandSide": {6540 "id": 2212,6541 "name": "tokenId",6542 "nodeType": "Identifier",6543 "overloadedDeclarations": [],6544 "referencedDeclaration": 2196,6545 "src": "6099:7:5",6546 "typeDescriptions": {6547 "typeIdentifier": "t_uint256",6548 "typeString": "uint256"6549 }6550 },6551 "nodeType": "Assignment",6552 "operator": "=",6553 "rightHandSide": {6554 "arguments": [6555 {6556 "arguments": [6557 {6558 "id": 2217,6559 "name": "this",6560 "nodeType": "Identifier",6561 "overloadedDeclarations": [],6562 "referencedDeclaration": 4294967268,6563 "src": "6136:4:5",6564 "typeDescriptions": {6565 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",6566 "typeString": "contract EvmToSubstrate"6567 }6568 }6569 ],6570 "expression": {6571 "argumentTypes": [6572 {6573 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",6574 "typeString": "contract EvmToSubstrate"6575 }6576 ],6577 "id": 2216,6578 "isConstant": false,6579 "isLValue": false,6580 "isPure": true,6581 "lValueRequested": false,6582 "nodeType": "ElementaryTypeNameExpression",6583 "src": "6128:7:5",6584 "typeDescriptions": {6585 "typeIdentifier": "t_type$_t_address_$",6586 "typeString": "type(address)"6587 },6588 "typeName": {6589 "id": 2215,6590 "name": "address",6591 "nodeType": "ElementaryTypeName",6592 "src": "6128:7:5",6593 "typeDescriptions": {}6594 }6595 },6596 "id": 2218,6597 "isConstant": false,6598 "isLValue": false,6599 "isPure": false,6600 "kind": "typeConversion",6601 "lValueRequested": false,6602 "nameLocations": [],6603 "names": [],6604 "nodeType": "FunctionCall",6605 "src": "6128:13:5",6606 "tryCall": false,6607 "typeDescriptions": {6608 "typeIdentifier": "t_address",6609 "typeString": "address"6610 }6611 }6612 ],6613 "expression": {6614 "argumentTypes": [6615 {6616 "typeIdentifier": "t_address",6617 "typeString": "address"6618 }6619 ],6620 "expression": {6621 "id": 2213,6622 "name": "nftCollection",6623 "nodeType": "Identifier",6624 "overloadedDeclarations": [],6625 "referencedDeclaration": 2207,6626 "src": "6109:13:5",6627 "typeDescriptions": {6628 "typeIdentifier": "t_contract$_UniqueNFT_$930",6629 "typeString": "contract UniqueNFT"6630 }6631 },6632 "id": 2214,6633 "isConstant": false,6634 "isLValue": false,6635 "isPure": false,6636 "lValueRequested": false,6637 "memberLocation": "6123:4:5",6638 "memberName": "mint",6639 "nodeType": "MemberAccess",6640 "referencedDeclaration": 671,6641 "src": "6109:18:5",6642 "typeDescriptions": {6643 "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$_t_uint256_$",6644 "typeString": "function (address) external returns (uint256)"6645 }6646 },6647 "id": 2219,6648 "isConstant": false,6649 "isLValue": false,6650 "isPure": false,6651 "kind": "functionCall",6652 "lValueRequested": false,6653 "nameLocations": [],6654 "names": [],6655 "nodeType": "FunctionCall",6656 "src": "6109:33:5",6657 "tryCall": false,6658 "typeDescriptions": {6659 "typeIdentifier": "t_uint256",6660 "typeString": "uint256"6661 }6662 },6663 "src": "6099:43:5",6664 "typeDescriptions": {6665 "typeIdentifier": "t_uint256",6666 "typeString": "uint256"6667 }6668 },6669 "id": 2221,6670 "nodeType": "ExpressionStatement",6671 "src": "6099:43:5"6672 },6673 {6674 "expression": {6675 "arguments": [6676 {6677 "id": 2225,6678 "name": "tokenId",6679 "nodeType": "Identifier",6680 "overloadedDeclarations": [],6681 "referencedDeclaration": 2196,6682 "src": "6176:7:5",6683 "typeDescriptions": {6684 "typeIdentifier": "t_uint256",6685 "typeString": "uint256"6686 }6687 },6688 {6689 "id": 2226,6690 "name": "_properties",6691 "nodeType": "Identifier",6692 "overloadedDeclarations": [],6693 "referencedDeclaration": 2159,6694 "src": "6185:11:5",6695 "typeDescriptions": {6696 "typeIdentifier": "t_array$_t_struct$_Tuple21_$620_calldata_ptr_$dyn_calldata_ptr",6697 "typeString": "struct Tuple21 calldata[] calldata"6698 }6699 }6700 ],6701 "expression": {6702 "argumentTypes": [6703 {6704 "typeIdentifier": "t_uint256",6705 "typeString": "uint256"6706 },6707 {6708 "typeIdentifier": "t_array$_t_struct$_Tuple21_$620_calldata_ptr_$dyn_calldata_ptr",6709 "typeString": "struct Tuple21 calldata[] calldata"6710 }6711 ],6712 "expression": {6713 "id": 2222,6714 "name": "nftCollection",6715 "nodeType": "Identifier",6716 "overloadedDeclarations": [],6717 "referencedDeclaration": 2207,6718 "src": "6148:13:5",6719 "typeDescriptions": {6720 "typeIdentifier": "t_contract$_UniqueNFT_$930",6721 "typeString": "contract UniqueNFT"6722 }6723 },6724 "id": 2224,6725 "isConstant": false,6726 "isLValue": false,6727 "isPure": false,6728 "lValueRequested": false,6729 "memberLocation": "6162:13:5",6730 "memberName": "setProperties",6731 "nodeType": "MemberAccess",6732 "referencedDeclaration": 338,6733 "src": "6148:27:5",6734 "typeDescriptions": {6735 "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$_t_array$_t_struct$_Tuple21_$620_memory_ptr_$dyn_memory_ptr_$returns$__$",6736 "typeString": "function (uint256,struct Tuple21 memory[] memory) external"6737 }6738 },6739 "id": 2227,6740 "isConstant": false,6741 "isLValue": false,6742 "isPure": false,6743 "kind": "functionCall",6744 "lValueRequested": false,6745 "nameLocations": [],6746 "names": [],6747 "nodeType": "FunctionCall",6748 "src": "6148:49:5",6749 "tryCall": false,6750 "typeDescriptions": {6751 "typeIdentifier": "t_tuple$__$",6752 "typeString": "tuple()"6753 }6754 },6755 "id": 2228,6756 "nodeType": "ExpressionStatement",6757 "src": "6148:49:5"6758 },6759 {6760 "expression": {6761 "arguments": [6762 {6763 "arguments": [6764 {6765 "arguments": [6766 {6767 "id": 2235,6768 "name": "this",6769 "nodeType": "Identifier",6770 "overloadedDeclarations": [],6771 "referencedDeclaration": 4294967268,6772 "src": "6266:4:5",6773 "typeDescriptions": {6774 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",6775 "typeString": "contract EvmToSubstrate"6776 }6777 }6778 ],6779 "expression": {6780 "argumentTypes": [6781 {6782 "typeIdentifier": "t_contract$_EvmToSubstrate_$2269",6783 "typeString": "contract EvmToSubstrate"6784 }6785 ],6786 "id": 2234,6787 "isConstant": false,6788 "isLValue": false,6789 "isPure": true,6790 "lValueRequested": false,6791 "nodeType": "ElementaryTypeNameExpression",6792 "src": "6258:7:5",6793 "typeDescriptions": {6794 "typeIdentifier": "t_type$_t_address_$",6795 "typeString": "type(address)"6796 },6797 "typeName": {6798 "id": 2233,6799 "name": "address",6800 "nodeType": "ElementaryTypeName",6801 "src": "6258:7:5",6802 "typeDescriptions": {}6803 }6804 },6805 "id": 2236,6806 "isConstant": false,6807 "isLValue": false,6808 "isPure": false,6809 "kind": "typeConversion",6810 "lValueRequested": false,6811 "nameLocations": [],6812 "names": [],6813 "nodeType": "FunctionCall",6814 "src": "6258:13:5",6815 "tryCall": false,6816 "typeDescriptions": {6817 "typeIdentifier": "t_address",6818 "typeString": "address"6819 }6820 },6821 {6822 "hexValue": "30",6823 "id": 2237,6824 "isConstant": false,6825 "isLValue": false,6826 "isPure": true,6827 "kind": "number",6828 "lValueRequested": false,6829 "nodeType": "Literal",6830 "src": "6273:1:5",6831 "typeDescriptions": {6832 "typeIdentifier": "t_rational_0_by_1",6833 "typeString": "int_const 0"6834 },6835 "value": "0"6836 }6837 ],6838 "expression": {6839 "argumentTypes": [6840 {6841 "typeIdentifier": "t_address",6842 "typeString": "address"6843 },6844 {6845 "typeIdentifier": "t_rational_0_by_1",6846 "typeString": "int_const 0"6847 }6848 ],6849 "id": 2232,6850 "name": "NftCrossAccountId",6851 "nodeType": "Identifier",6852 "overloadedDeclarations": [],6853 "referencedDeclaration": 610,6854 "src": "6240:17:5",6855 "typeDescriptions": {6856 "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",6857 "typeString": "type(struct EthCrossAccount storage pointer)"6858 }6859 },6860 "id": 2238,6861 "isConstant": false,6862 "isLValue": false,6863 "isPure": false,6864 "kind": "structConstructorCall",6865 "lValueRequested": false,6866 "nameLocations": [],6867 "names": [],6868 "nodeType": "FunctionCall",6869 "src": "6240:35:5",6870 "tryCall": false,6871 "typeDescriptions": {6872 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",6873 "typeString": "struct EthCrossAccount memory"6874 }6875 },6876 {6877 "arguments": [6878 {6879 "arguments": [6880 {6881 "hexValue": "30",6882 "id": 2242,6883 "isConstant": false,6884 "isLValue": false,6885 "isPure": true,6886 "kind": "number",6887 "lValueRequested": false,6888 "nodeType": "Literal",6889 "src": "6307:1:5",6890 "typeDescriptions": {6891 "typeIdentifier": "t_rational_0_by_1",6892 "typeString": "int_const 0"6893 },6894 "value": "0"6895 }6896 ],6897 "expression": {6898 "argumentTypes": [6899 {6900 "typeIdentifier": "t_rational_0_by_1",6901 "typeString": "int_const 0"6902 }6903 ],6904 "id": 2241,6905 "isConstant": false,6906 "isLValue": false,6907 "isPure": true,6908 "lValueRequested": false,6909 "nodeType": "ElementaryTypeNameExpression",6910 "src": "6299:7:5",6911 "typeDescriptions": {6912 "typeIdentifier": "t_type$_t_address_$",6913 "typeString": "type(address)"6914 },6915 "typeName": {6916 "id": 2240,6917 "name": "address",6918 "nodeType": "ElementaryTypeName",6919 "src": "6299:7:5",6920 "typeDescriptions": {}6921 }6922 },6923 "id": 2243,6924 "isConstant": false,6925 "isLValue": false,6926 "isPure": true,6927 "kind": "typeConversion",6928 "lValueRequested": false,6929 "nameLocations": [],6930 "names": [],6931 "nodeType": "FunctionCall",6932 "src": "6299:10:5",6933 "tryCall": false,6934 "typeDescriptions": {6935 "typeIdentifier": "t_address",6936 "typeString": "address"6937 }6938 },6939 {6940 "id": 2244,6941 "name": "_substrateReceiver",6942 "nodeType": "Identifier",6943 "overloadedDeclarations": [],6944 "referencedDeclaration": 2155,6945 "src": "6311:18:5",6946 "typeDescriptions": {6947 "typeIdentifier": "t_uint256",6948 "typeString": "uint256"6949 }6950 }6951 ],6952 "expression": {6953 "argumentTypes": [6954 {6955 "typeIdentifier": "t_address",6956 "typeString": "address"6957 },6958 {6959 "typeIdentifier": "t_uint256",6960 "typeString": "uint256"6961 }6962 ],6963 "id": 2239,6964 "name": "NftCrossAccountId",6965 "nodeType": "Identifier",6966 "overloadedDeclarations": [],6967 "referencedDeclaration": 610,6968 "src": "6281:17:5",6969 "typeDescriptions": {6970 "typeIdentifier": "t_type$_t_struct$_EthCrossAccount_$610_storage_ptr_$",6971 "typeString": "type(struct EthCrossAccount storage pointer)"6972 }6973 },6974 "id": 2245,6975 "isConstant": false,6976 "isLValue": false,6977 "isPure": false,6978 "kind": "structConstructorCall",6979 "lValueRequested": false,6980 "nameLocations": [],6981 "names": [],6982 "nodeType": "FunctionCall",6983 "src": "6281:49:5",6984 "tryCall": false,6985 "typeDescriptions": {6986 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",6987 "typeString": "struct EthCrossAccount memory"6988 }6989 },6990 {6991 "id": 2246,6992 "name": "tokenId",6993 "nodeType": "Identifier",6994 "overloadedDeclarations": [],6995 "referencedDeclaration": 2196,6996 "src": "6336:7:5",6997 "typeDescriptions": {6998 "typeIdentifier": "t_uint256",6999 "typeString": "uint256"7000 }7001 }7002 ],7003 "expression": {7004 "argumentTypes": [7005 {7006 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",7007 "typeString": "struct EthCrossAccount memory"7008 },7009 {7010 "typeIdentifier": "t_struct$_EthCrossAccount_$610_memory_ptr",7011 "typeString": "struct EthCrossAccount memory"7012 },7013 {7014 "typeIdentifier": "t_uint256",7015 "typeString": "uint256"7016 }7017 ],7018 "expression": {7019 "id": 2229,7020 "name": "nftCollection",7021 "nodeType": "Identifier",7022 "overloadedDeclarations": [],7023 "referencedDeclaration": 2207,7024 "src": "6203:13:5",7025 "typeDescriptions": {7026 "typeIdentifier": "t_contract$_UniqueNFT_$930",7027 "typeString": "contract UniqueNFT"7028 }7029 },7030 "id": 2231,7031 "isConstant": false,7032 "isLValue": false,7033 "isPure": false,7034 "lValueRequested": false,7035 "memberLocation": "6217:17:5",7036 "memberName": "transferFromCross",7037 "nodeType": "MemberAccess",7038 "referencedDeclaration": 734,7039 "src": "6203:31:5",7040 "typeDescriptions": {7041 "typeIdentifier": "t_function_external_nonpayable$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_struct$_EthCrossAccount_$610_memory_ptr_$_t_uint256_$returns$__$",7042 "typeString": "function (struct EthCrossAccount memory,struct EthCrossAccount memory,uint256) external"7043 }7044 },7045 "id": 2247,7046 "isConstant": false,7047 "isLValue": false,7048 "isPure": false,7049 "kind": "functionCall",7050 "lValueRequested": false,7051 "nameLocations": [],7052 "names": [],7053 "nodeType": "FunctionCall",7054 "src": "6203:145:5",7055 "tryCall": false,7056 "typeDescriptions": {7057 "typeIdentifier": "t_tuple$__$",7058 "typeString": "tuple()"7059 }7060 },7061 "id": 2248,7062 "nodeType": "ExpressionStatement",7063 "src": "6203:145:5"7064 }7065 ]7066 }7067 },7068 "id": 2256,7069 "nodeType": "IfStatement",7070 "src": "5887:541:5",7071 "trueBody": {7072 "id": 2201,7073 "nodeType": "Block",7074 "src": "5937:2:5",7075 "statements": []7076 }7077 },7078 {7079 "eventCall": {7080 "arguments": [7081 {7082 "arguments": [7083 {7084 "hexValue": "30",7085 "id": 2260,7086 "isConstant": false,7087 "isLValue": false,7088 "isPure": true,7089 "kind": "number",7090 "lValueRequested": false,7091 "nodeType": "Literal",7092 "src": "6455:1:5",7093 "typeDescriptions": {7094 "typeIdentifier": "t_rational_0_by_1",7095 "typeString": "int_const 0"7096 },7097 "value": "0"7098 }7099 ],7100 "expression": {7101 "argumentTypes": [7102 {7103 "typeIdentifier": "t_rational_0_by_1",7104 "typeString": "int_const 0"7105 }7106 ],7107 "id": 2259,7108 "isConstant": false,7109 "isLValue": false,7110 "isPure": true,7111 "lValueRequested": false,7112 "nodeType": "ElementaryTypeNameExpression",7113 "src": "6447:7:5",7114 "typeDescriptions": {7115 "typeIdentifier": "t_type$_t_address_$",7116 "typeString": "type(address)"7117 },7118 "typeName": {7119 "id": 2258,7120 "name": "address",7121 "nodeType": "ElementaryTypeName",7122 "src": "6447:7:5",7123 "typeDescriptions": {}7124 }7125 },7126 "id": 2261,7127 "isConstant": false,7128 "isLValue": false,7129 "isPure": true,7130 "kind": "typeConversion",7131 "lValueRequested": false,7132 "nameLocations": [],7133 "names": [],7134 "nodeType": "FunctionCall",7135 "src": "6447:10:5",7136 "tryCall": false,7137 "typeDescriptions": {7138 "typeIdentifier": "t_address",7139 "typeString": "address"7140 }7141 },7142 {7143 "id": 2262,7144 "name": "_substrateReceiver",7145 "nodeType": "Identifier",7146 "overloadedDeclarations": [],7147 "referencedDeclaration": 2155,7148 "src": "6459:18:5",7149 "typeDescriptions": {7150 "typeIdentifier": "t_uint256",7151 "typeString": "uint256"7152 }7153 },7154 {7155 "id": 2263,7156 "name": "_collection",7157 "nodeType": "Identifier",7158 "overloadedDeclarations": [],7159 "referencedDeclaration": 2153,7160 "src": "6479:11:5",7161 "typeDescriptions": {7162 "typeIdentifier": "t_address",7163 "typeString": "address"7164 }7165 },7166 {7167 "id": 2264,7168 "name": "tokenId",7169 "nodeType": "Identifier",7170 "overloadedDeclarations": [],7171 "referencedDeclaration": 2196,7172 "src": "6492:7:5",7173 "typeDescriptions": {7174 "typeIdentifier": "t_uint256",7175 "typeString": "uint256"7176 }7177 }7178 ],7179 "expression": {7180 "argumentTypes": [7181 {7182 "typeIdentifier": "t_address",7183 "typeString": "address"7184 },7185 {7186 "typeIdentifier": "t_uint256",7187 "typeString": "uint256"7188 },7189 {7190 "typeIdentifier": "t_address",7191 "typeString": "address"7192 },7193 {7194 "typeIdentifier": "t_uint256",7195 "typeString": "uint256"7196 }7197 ],7198 "id": 2257,7199 "name": "MintToSub",7200 "nodeType": "Identifier",7201 "overloadedDeclarations": [],7202 "referencedDeclaration": 1811,7203 "src": "6437:9:5",7204 "typeDescriptions": {7205 "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_address_$_t_uint256_$returns$__$",7206 "typeString": "function (address,uint256,address,uint256)"7207 }7208 },7209 "id": 2265,7210 "isConstant": false,7211 "isLValue": false,7212 "isPure": false,7213 "kind": "functionCall",7214 "lValueRequested": false,7215 "nameLocations": [],7216 "names": [],7217 "nodeType": "FunctionCall",7218 "src": "6437:63:5",7219 "tryCall": false,7220 "typeDescriptions": {7221 "typeIdentifier": "t_tuple$__$",7222 "typeString": "tuple()"7223 }7224 },7225 "id": 2266,7226 "nodeType": "EmitStatement",7227 "src": "6432:68:5"7228 }7229 ]7230 },7231 "functionSelector": "3a0dbb1a",7232 "id": 2268,7233 "implemented": true,7234 "kind": "function",7235 "modifiers": [7236 {7237 "arguments": [7238 {7239 "id": 2162,7240 "name": "_collection",7241 "nodeType": "Identifier",7242 "overloadedDeclarations": [],7243 "referencedDeclaration": 2153,7244 "src": "5606:11:5",7245 "typeDescriptions": {7246 "typeIdentifier": "t_address",7247 "typeString": "address"7248 }7249 }7250 ],7251 "id": 2163,7252 "kind": "modifierInvocation",7253 "modifierName": {7254 "id": 2161,7255 "name": "checkRestrictions",7256 "nameLocations": [7257 "5588:17:5"7258 ],7259 "nodeType": "IdentifierPath",7260 "referencedDeclaration": 1800,7261 "src": "5588:17:5"7262 },7263 "nodeType": "ModifierInvocation",7264 "src": "5588:30:5"7265 }7266 ],7267 "name": "mintToSubstrateBulkProperty",7268 "nameLocation": "5457:27:5",7269 "nodeType": "FunctionDefinition",7270 "parameters": {7271 "id": 2160,7272 "nodeType": "ParameterList",7273 "parameters": [7274 {7275 "constant": false,7276 "id": 2153,7277 "mutability": "mutable",7278 "name": "_collection",7279 "nameLocation": "5496:11:5",7280 "nodeType": "VariableDeclaration",7281 "scope": 2268,7282 "src": "5488:19:5",7283 "stateVariable": false,7284 "storageLocation": "default",7285 "typeDescriptions": {7286 "typeIdentifier": "t_address",7287 "typeString": "address"7288 },7289 "typeName": {7290 "id": 2152,7291 "name": "address",7292 "nodeType": "ElementaryTypeName",7293 "src": "5488:7:5",7294 "stateMutability": "nonpayable",7295 "typeDescriptions": {7296 "typeIdentifier": "t_address",7297 "typeString": "address"7298 }7299 },7300 "visibility": "internal"7301 },7302 {7303 "constant": false,7304 "id": 2155,7305 "mutability": "mutable",7306 "name": "_substrateReceiver",7307 "nameLocation": "5519:18:5",7308 "nodeType": "VariableDeclaration",7309 "scope": 2268,7310 "src": "5511:26:5",7311 "stateVariable": false,7312 "storageLocation": "default",7313 "typeDescriptions": {7314 "typeIdentifier": "t_uint256",7315 "typeString": "uint256"7316 },7317 "typeName": {7318 "id": 2154,7319 "name": "uint256",7320 "nodeType": "ElementaryTypeName",7321 "src": "5511:7:5",7322 "typeDescriptions": {7323 "typeIdentifier": "t_uint256",7324 "typeString": "uint256"7325 }7326 },7327 "visibility": "internal"7328 },7329 {7330 "constant": false,7331 "id": 2159,7332 "mutability": "mutable",7333 "name": "_properties",7334 "nameLocation": "5564:11:5",7335 "nodeType": "VariableDeclaration",7336 "scope": 2268,7337 "src": "5541:34:5",7338 "stateVariable": false,7339 "storageLocation": "calldata",7340 "typeDescriptions": {7341 "typeIdentifier": "t_array$_t_struct$_Tuple21_$620_calldata_ptr_$dyn_calldata_ptr",7342 "typeString": "struct Tuple21[]"7343 },7344 "typeName": {7345 "baseType": {7346 "id": 2157,7347 "nodeType": "UserDefinedTypeName",7348 "pathNode": {7349 "id": 2156,7350 "name": "NftProperty",7351 "nameLocations": [7352 "5541:11:5"7353 ],7354 "nodeType": "IdentifierPath",7355 "referencedDeclaration": 620,7356 "src": "5541:11:5"7357 },7358 "referencedDeclaration": 620,7359 "src": "5541:11:5",7360 "typeDescriptions": {7361 "typeIdentifier": "t_struct$_Tuple21_$620_storage_ptr",7362 "typeString": "struct Tuple21"7363 }7364 },7365 "id": 2158,7366 "nodeType": "ArrayTypeName",7367 "src": "5541:13:5",7368 "typeDescriptions": {7369 "typeIdentifier": "t_array$_t_struct$_Tuple21_$620_storage_$dyn_storage_ptr",7370 "typeString": "struct Tuple21[]"7371 }7372 },7373 "visibility": "internal"7374 }7375 ],7376 "src": "5484:94:5"7377 },7378 "returnParameters": {7379 "id": 2164,7380 "nodeType": "ParameterList",7381 "parameters": [],7382 "src": "5619:0:5"7383 },7384 "scope": 2269,7385 "src": "5448:1056:5",7386 "stateMutability": "nonpayable",7387 "virtual": false,7388 "visibility": "external"7389 }7390 ],7391 "scope": 2270,7392 "src": "673:5833:5",7393 "usedErrors": []7394 }7395 ],7396 "src": "44:6463:5"7397 },7398 "functionHashes": {7399 "mintToSubstrate(address,uint256)": "7a8d9786",7400 "mintToSubstrateBulkProperty(address,uint256,(string,bytes)[])": "3a0dbb1a",7401 "mintToSubstrateWithProperty(address,uint256,(string,bytes)[])": "440dff9d"7402 },7403 "gasEstimates": {7404 "creation": {7405 "codeDepositCost": "912800",7406 "executionCost": "948",7407 "totalCost": "913748"7408 },7409 "external": {7410 "mintToSubstrate(address,uint256)": "infinite",7411 "mintToSubstrateBulkProperty(address,uint256,(string,bytes)[])": "infinite",7412 "mintToSubstrateWithProperty(address,uint256,(string,bytes)[])": "infinite"7413 }7414 }7415}difftreelog
source
bin/tests/src/eth/evmToSubstrate/EvmToSubstrate.json557.4 KiBsourcehistory