difftreelog
updated evm stubs
in: master
4 files changed
pallets/refungible/src/stubs/UniqueRefungibleToken.rawdiffbeforeafterbothbinary blob — no preview
pallets/refungible/src/stubs/UniqueRefungibleToken.soldiffbeforeafterboth43 }43 }44}44}4546// Selector: 7d9262e647contract Collection is Dummy, ERC165 {48 // Selector: setCollectionProperty(string,bytes) 2f073f6649 function setCollectionProperty(string memory key, bytes memory value)50 public51 {52 require(false, stub_error);53 key;54 value;55 dummy = 0;56 }5758 // Selector: deleteCollectionProperty(string) 7b7debce59 function deleteCollectionProperty(string memory key) public {60 require(false, stub_error);61 key;62 dummy = 0;63 }6465 // Throws error if key not found66 //67 // Selector: collectionProperty(string) cf24fd6d68 function collectionProperty(string memory key)69 public70 view71 returns (bytes memory)72 {73 require(false, stub_error);74 key;75 dummy;76 return hex"";77 }7879 // Selector: setCollectionSponsor(address) 7623402e80 function setCollectionSponsor(address sponsor) public {81 require(false, stub_error);82 sponsor;83 dummy = 0;84 }8586 // Selector: confirmCollectionSponsorship() 3c50e97a87 function confirmCollectionSponsorship() public {88 require(false, stub_error);89 dummy = 0;90 }9192 // Selector: setCollectionLimit(string,uint32) 6a3841db93 function setCollectionLimit(string memory limit, uint32 value) public {94 require(false, stub_error);95 limit;96 value;97 dummy = 0;98 }99100 // Selector: setCollectionLimit(string,bool) 993b7fba101 function setCollectionLimit(string memory limit, bool value) public {102 require(false, stub_error);103 limit;104 value;105 dummy = 0;106 }107108 // Selector: contractAddress() f6b4dfb4109 function contractAddress() public view returns (address) {110 require(false, stub_error);111 dummy;112 return 0x0000000000000000000000000000000000000000;113 }114115 // Selector: addCollectionAdminSubstrate(uint256) 5730062b116 function addCollectionAdminSubstrate(uint256 newAdmin) public view {117 require(false, stub_error);118 newAdmin;119 dummy;120 }121122 // Selector: removeCollectionAdminSubstrate(uint256) 4048fcf9123 function removeCollectionAdminSubstrate(uint256 newAdmin) public view {124 require(false, stub_error);125 newAdmin;126 dummy;127 }128129 // Selector: addCollectionAdmin(address) 92e462c7130 function addCollectionAdmin(address newAdmin) public view {131 require(false, stub_error);132 newAdmin;133 dummy;134 }135136 // Selector: removeCollectionAdmin(address) fafd7b42137 function removeCollectionAdmin(address admin) public view {138 require(false, stub_error);139 admin;140 dummy;141 }142143 // Selector: setCollectionNesting(bool) 112d4586144 function setCollectionNesting(bool enable) public {145 require(false, stub_error);146 enable;147 dummy = 0;148 }149150 // Selector: setCollectionNesting(bool,address[]) 64872396151 function setCollectionNesting(bool enable, address[] memory collections)152 public153 {154 require(false, stub_error);155 enable;156 collections;157 dummy = 0;158 }159160 // Selector: setCollectionAccess(uint8) 41835d4c161 function setCollectionAccess(uint8 mode) public {162 require(false, stub_error);163 mode;164 dummy = 0;165 }166167 // Selector: addToCollectionAllowList(address) 67844fe6168 function addToCollectionAllowList(address user) public view {169 require(false, stub_error);170 user;171 dummy;172 }173174 // Selector: removeFromCollectionAllowList(address) 85c51acb175 function removeFromCollectionAllowList(address user) public view {176 require(false, stub_error);177 user;178 dummy;179 }180181 // Selector: setCollectionMintMode(bool) 00018e84182 function setCollectionMintMode(bool mode) public {183 require(false, stub_error);184 mode;185 dummy = 0;186 }187}18845189// Selector: 942e8b2246// Selector: 942e8b22190contract ERC20 is Dummy, ERC165, ERC20Events {47contract ERC20 is Dummy, ERC165, ERC20Events {270 }127 }271}128}272273contract UniqueRFT is Dummy, ERC165, Collection {}274129275contract UniqueRefungibleToken is130contract UniqueRefungibleToken is Dummy, ERC165, ERC20, ERC20UniqueExtensions {}276 Dummy,277 ERC165,278 ERC20,279 ERC20UniqueExtensions,280 UniqueRFT281{}282131tests/src/eth/api/UniqueRefungibleToken.soldiffbeforeafterboth28 function burnFrom(address from, uint256 amount) external returns (bool);28 function burnFrom(address from, uint256 amount) external returns (bool);29}29}3031// Selector: 7d9262e632interface Collection is Dummy, ERC165 {33 // Selector: setCollectionProperty(string,bytes) 2f073f6634 function setCollectionProperty(string memory key, bytes memory value)35 external;3637 // Selector: deleteCollectionProperty(string) 7b7debce38 function deleteCollectionProperty(string memory key) external;3940 // Throws error if key not found41 //42 // Selector: collectionProperty(string) cf24fd6d43 function collectionProperty(string memory key)44 external45 view46 returns (bytes memory);4748 // Selector: setCollectionSponsor(address) 7623402e49 function setCollectionSponsor(address sponsor) external;5051 // Selector: confirmCollectionSponsorship() 3c50e97a52 function confirmCollectionSponsorship() external;5354 // Selector: setCollectionLimit(string,uint32) 6a3841db55 function setCollectionLimit(string memory limit, uint32 value) external;5657 // Selector: setCollectionLimit(string,bool) 993b7fba58 function setCollectionLimit(string memory limit, bool value) external;5960 // Selector: contractAddress() f6b4dfb461 function contractAddress() external view returns (address);6263 // Selector: addCollectionAdminSubstrate(uint256) 5730062b64 function addCollectionAdminSubstrate(uint256 newAdmin) external view;6566 // Selector: removeCollectionAdminSubstrate(uint256) 4048fcf967 function removeCollectionAdminSubstrate(uint256 newAdmin) external view;6869 // Selector: addCollectionAdmin(address) 92e462c770 function addCollectionAdmin(address newAdmin) external view;7172 // Selector: removeCollectionAdmin(address) fafd7b4273 function removeCollectionAdmin(address admin) external view;7475 // Selector: setCollectionNesting(bool) 112d458676 function setCollectionNesting(bool enable) external;7778 // Selector: setCollectionNesting(bool,address[]) 6487239679 function setCollectionNesting(bool enable, address[] memory collections)80 external;8182 // Selector: setCollectionAccess(uint8) 41835d4c83 function setCollectionAccess(uint8 mode) external;8485 // Selector: addToCollectionAllowList(address) 67844fe686 function addToCollectionAllowList(address user) external view;8788 // Selector: removeFromCollectionAllowList(address) 85c51acb89 function removeFromCollectionAllowList(address user) external view;9091 // Selector: setCollectionMintMode(bool) 00018e8492 function setCollectionMintMode(bool mode) external;93}943095// Selector: 942e8b2231// Selector: 942e8b2296interface ERC20 is Dummy, ERC165, ERC20Events {32interface ERC20 is Dummy, ERC165, ERC20Events {129 returns (uint256);65 returns (uint256);130}66}131132interface UniqueRFT is Dummy, ERC165, Collection {}13367134interface UniqueRefungibleToken is68interface UniqueRefungibleToken is135 Dummy,69 Dummy,136 ERC165,70 ERC165,137 ERC20,71 ERC20,138 ERC20UniqueExtensions,72 ERC20UniqueExtensions139 UniqueRFT140{}73{}14174tests/src/eth/reFungibleTokenAbi.jsondiffbeforeafterboth49 "name": "Transfer",49 "name": "Transfer",50 "type": "event"50 "type": "event"51 },51 },52 {53 "inputs": [54 { "internalType": "address", "name": "newAdmin", "type": "address" }55 ],56 "name": "addCollectionAdmin",57 "outputs": [],58 "stateMutability": "view",59 "type": "function"60 },61 {62 "inputs": [63 { "internalType": "uint256", "name": "newAdmin", "type": "uint256" }64 ],65 "name": "addCollectionAdminSubstrate",66 "outputs": [],67 "stateMutability": "view",68 "type": "function"69 },70 {71 "inputs": [72 { "internalType": "address", "name": "user", "type": "address" }73 ],74 "name": "addToCollectionAllowList",75 "outputs": [],76 "stateMutability": "view",77 "type": "function"78 },79 {52 {80 "inputs": [53 "inputs": [81 { "internalType": "address", "name": "owner", "type": "address" },54 { "internalType": "address", "name": "owner", "type": "address" },115 "stateMutability": "nonpayable",88 "stateMutability": "nonpayable",116 "type": "function"89 "type": "function"117 },90 },118 {119 "inputs": [{ "internalType": "string", "name": "key", "type": "string" }],120 "name": "collectionProperty",121 "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],122 "stateMutability": "view",123 "type": "function"124 },125 {126 "inputs": [],127 "name": "confirmCollectionSponsorship",128 "outputs": [],129 "stateMutability": "nonpayable",130 "type": "function"131 },132 {133 "inputs": [],134 "name": "contractAddress",135 "outputs": [{ "internalType": "address", "name": "", "type": "address" }],136 "stateMutability": "view",137 "type": "function"138 },139 {91 {140 "inputs": [],92 "inputs": [],141 "name": "decimals",93 "name": "decimals",142 "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],94 "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],143 "stateMutability": "view",95 "stateMutability": "view",144 "type": "function"96 "type": "function"145 },97 },146 {147 "inputs": [{ "internalType": "string", "name": "key", "type": "string" }],148 "name": "deleteCollectionProperty",149 "outputs": [],150 "stateMutability": "nonpayable",151 "type": "function"152 },153 {98 {154 "inputs": [],99 "inputs": [],155 "name": "name",100 "name": "name",156 "outputs": [{ "internalType": "string", "name": "", "type": "string" }],101 "outputs": [{ "internalType": "string", "name": "", "type": "string" }],157 "stateMutability": "view",102 "stateMutability": "view",158 "type": "function"103 "type": "function"159 },104 },160 {161 "inputs": [162 { "internalType": "address", "name": "admin", "type": "address" }163 ],164 "name": "removeCollectionAdmin",165 "outputs": [],166 "stateMutability": "view",167 "type": "function"168 },169 {170 "inputs": [171 { "internalType": "uint256", "name": "newAdmin", "type": "uint256" }172 ],173 "name": "removeCollectionAdminSubstrate",174 "outputs": [],175 "stateMutability": "view",176 "type": "function"177 },178 {179 "inputs": [180 { "internalType": "address", "name": "user", "type": "address" }181 ],182 "name": "removeFromCollectionAllowList",183 "outputs": [],184 "stateMutability": "view",185 "type": "function"186 },187 {188 "inputs": [{ "internalType": "uint8", "name": "mode", "type": "uint8" }],189 "name": "setCollectionAccess",190 "outputs": [],191 "stateMutability": "nonpayable",192 "type": "function"193 },194 {195 "inputs": [196 { "internalType": "string", "name": "limit", "type": "string" },197 { "internalType": "uint32", "name": "value", "type": "uint32" }198 ],199 "name": "setCollectionLimit",200 "outputs": [],201 "stateMutability": "nonpayable",202 "type": "function"203 },204 {205 "inputs": [206 { "internalType": "string", "name": "limit", "type": "string" },207 { "internalType": "bool", "name": "value", "type": "bool" }208 ],209 "name": "setCollectionLimit",210 "outputs": [],211 "stateMutability": "nonpayable",212 "type": "function"213 },214 {215 "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }],216 "name": "setCollectionMintMode",217 "outputs": [],218 "stateMutability": "nonpayable",219 "type": "function"220 },221 {222 "inputs": [{ "internalType": "bool", "name": "enable", "type": "bool" }],223 "name": "setCollectionNesting",224 "outputs": [],225 "stateMutability": "nonpayable",226 "type": "function"227 },228 {229 "inputs": [230 { "internalType": "bool", "name": "enable", "type": "bool" },231 {232 "internalType": "address[]",233 "name": "collections",234 "type": "address[]"235 }236 ],237 "name": "setCollectionNesting",238 "outputs": [],239 "stateMutability": "nonpayable",240 "type": "function"241 },242 {243 "inputs": [244 { "internalType": "string", "name": "key", "type": "string" },245 { "internalType": "bytes", "name": "value", "type": "bytes" }246 ],247 "name": "setCollectionProperty",248 "outputs": [],249 "stateMutability": "nonpayable",250 "type": "function"251 },252 {253 "inputs": [254 { "internalType": "address", "name": "sponsor", "type": "address" }255 ],256 "name": "setCollectionSponsor",257 "outputs": [],258 "stateMutability": "nonpayable",259 "type": "function"260 },261 {105 {262 "inputs": [106 "inputs": [263 { "internalType": "bytes4", "name": "interfaceID", "type": "bytes4" }107 { "internalType": "bytes4", "name": "interfaceID", "type": "bytes4" }