git.delta.rocks / unique-network / refs/commits / 4fbe604fc85f

difftreelog

updated evm stubs

Grigoriy Simonov2022-07-22parent: #898c743.patch.diff
in: master

4 files changed

modifiedpallets/refungible/src/stubs/UniqueRefungibleToken.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/refungible/src/stubs/UniqueRefungibleToken.soldiffbeforeafterboth
43 }43 }
44}44}
45
46// Selector: 7d9262e6
47contract Collection is Dummy, ERC165 {
48 // Selector: setCollectionProperty(string,bytes) 2f073f66
49 function setCollectionProperty(string memory key, bytes memory value)
50 public
51 {
52 require(false, stub_error);
53 key;
54 value;
55 dummy = 0;
56 }
57
58 // Selector: deleteCollectionProperty(string) 7b7debce
59 function deleteCollectionProperty(string memory key) public {
60 require(false, stub_error);
61 key;
62 dummy = 0;
63 }
64
65 // Throws error if key not found
66 //
67 // Selector: collectionProperty(string) cf24fd6d
68 function collectionProperty(string memory key)
69 public
70 view
71 returns (bytes memory)
72 {
73 require(false, stub_error);
74 key;
75 dummy;
76 return hex"";
77 }
78
79 // Selector: setCollectionSponsor(address) 7623402e
80 function setCollectionSponsor(address sponsor) public {
81 require(false, stub_error);
82 sponsor;
83 dummy = 0;
84 }
85
86 // Selector: confirmCollectionSponsorship() 3c50e97a
87 function confirmCollectionSponsorship() public {
88 require(false, stub_error);
89 dummy = 0;
90 }
91
92 // Selector: setCollectionLimit(string,uint32) 6a3841db
93 function setCollectionLimit(string memory limit, uint32 value) public {
94 require(false, stub_error);
95 limit;
96 value;
97 dummy = 0;
98 }
99
100 // Selector: setCollectionLimit(string,bool) 993b7fba
101 function setCollectionLimit(string memory limit, bool value) public {
102 require(false, stub_error);
103 limit;
104 value;
105 dummy = 0;
106 }
107
108 // Selector: contractAddress() f6b4dfb4
109 function contractAddress() public view returns (address) {
110 require(false, stub_error);
111 dummy;
112 return 0x0000000000000000000000000000000000000000;
113 }
114
115 // Selector: addCollectionAdminSubstrate(uint256) 5730062b
116 function addCollectionAdminSubstrate(uint256 newAdmin) public view {
117 require(false, stub_error);
118 newAdmin;
119 dummy;
120 }
121
122 // Selector: removeCollectionAdminSubstrate(uint256) 4048fcf9
123 function removeCollectionAdminSubstrate(uint256 newAdmin) public view {
124 require(false, stub_error);
125 newAdmin;
126 dummy;
127 }
128
129 // Selector: addCollectionAdmin(address) 92e462c7
130 function addCollectionAdmin(address newAdmin) public view {
131 require(false, stub_error);
132 newAdmin;
133 dummy;
134 }
135
136 // Selector: removeCollectionAdmin(address) fafd7b42
137 function removeCollectionAdmin(address admin) public view {
138 require(false, stub_error);
139 admin;
140 dummy;
141 }
142
143 // Selector: setCollectionNesting(bool) 112d4586
144 function setCollectionNesting(bool enable) public {
145 require(false, stub_error);
146 enable;
147 dummy = 0;
148 }
149
150 // Selector: setCollectionNesting(bool,address[]) 64872396
151 function setCollectionNesting(bool enable, address[] memory collections)
152 public
153 {
154 require(false, stub_error);
155 enable;
156 collections;
157 dummy = 0;
158 }
159
160 // Selector: setCollectionAccess(uint8) 41835d4c
161 function setCollectionAccess(uint8 mode) public {
162 require(false, stub_error);
163 mode;
164 dummy = 0;
165 }
166
167 // Selector: addToCollectionAllowList(address) 67844fe6
168 function addToCollectionAllowList(address user) public view {
169 require(false, stub_error);
170 user;
171 dummy;
172 }
173
174 // Selector: removeFromCollectionAllowList(address) 85c51acb
175 function removeFromCollectionAllowList(address user) public view {
176 require(false, stub_error);
177 user;
178 dummy;
179 }
180
181 // Selector: setCollectionMintMode(bool) 00018e84
182 function setCollectionMintMode(bool mode) public {
183 require(false, stub_error);
184 mode;
185 dummy = 0;
186 }
187}
18845
189// Selector: 942e8b2246// Selector: 942e8b22
190contract ERC20 is Dummy, ERC165, ERC20Events {47contract ERC20 is Dummy, ERC165, ERC20Events {
270 }127 }
271}128}
272
273contract UniqueRFT is Dummy, ERC165, Collection {}
274129
275contract UniqueRefungibleToken is130contract UniqueRefungibleToken is Dummy, ERC165, ERC20, ERC20UniqueExtensions {}
276 Dummy,
277 ERC165,
278 ERC20,
279 ERC20UniqueExtensions,
280 UniqueRFT
281{}
282131
modifiedtests/src/eth/api/UniqueRefungibleToken.soldiffbeforeafterboth
28 function burnFrom(address from, uint256 amount) external returns (bool);28 function burnFrom(address from, uint256 amount) external returns (bool);
29}29}
30
31// Selector: 7d9262e6
32interface Collection is Dummy, ERC165 {
33 // Selector: setCollectionProperty(string,bytes) 2f073f66
34 function setCollectionProperty(string memory key, bytes memory value)
35 external;
36
37 // Selector: deleteCollectionProperty(string) 7b7debce
38 function deleteCollectionProperty(string memory key) external;
39
40 // Throws error if key not found
41 //
42 // Selector: collectionProperty(string) cf24fd6d
43 function collectionProperty(string memory key)
44 external
45 view
46 returns (bytes memory);
47
48 // Selector: setCollectionSponsor(address) 7623402e
49 function setCollectionSponsor(address sponsor) external;
50
51 // Selector: confirmCollectionSponsorship() 3c50e97a
52 function confirmCollectionSponsorship() external;
53
54 // Selector: setCollectionLimit(string,uint32) 6a3841db
55 function setCollectionLimit(string memory limit, uint32 value) external;
56
57 // Selector: setCollectionLimit(string,bool) 993b7fba
58 function setCollectionLimit(string memory limit, bool value) external;
59
60 // Selector: contractAddress() f6b4dfb4
61 function contractAddress() external view returns (address);
62
63 // Selector: addCollectionAdminSubstrate(uint256) 5730062b
64 function addCollectionAdminSubstrate(uint256 newAdmin) external view;
65
66 // Selector: removeCollectionAdminSubstrate(uint256) 4048fcf9
67 function removeCollectionAdminSubstrate(uint256 newAdmin) external view;
68
69 // Selector: addCollectionAdmin(address) 92e462c7
70 function addCollectionAdmin(address newAdmin) external view;
71
72 // Selector: removeCollectionAdmin(address) fafd7b42
73 function removeCollectionAdmin(address admin) external view;
74
75 // Selector: setCollectionNesting(bool) 112d4586
76 function setCollectionNesting(bool enable) external;
77
78 // Selector: setCollectionNesting(bool,address[]) 64872396
79 function setCollectionNesting(bool enable, address[] memory collections)
80 external;
81
82 // Selector: setCollectionAccess(uint8) 41835d4c
83 function setCollectionAccess(uint8 mode) external;
84
85 // Selector: addToCollectionAllowList(address) 67844fe6
86 function addToCollectionAllowList(address user) external view;
87
88 // Selector: removeFromCollectionAllowList(address) 85c51acb
89 function removeFromCollectionAllowList(address user) external view;
90
91 // Selector: setCollectionMintMode(bool) 00018e84
92 function setCollectionMintMode(bool mode) external;
93}
9430
95// Selector: 942e8b2231// Selector: 942e8b22
96interface ERC20 is Dummy, ERC165, ERC20Events {32interface ERC20 is Dummy, ERC165, ERC20Events {
129 returns (uint256);65 returns (uint256);
130}66}
131
132interface UniqueRFT is Dummy, ERC165, Collection {}
13367
134interface UniqueRefungibleToken is68interface UniqueRefungibleToken is
135 Dummy,69 Dummy,
136 ERC165,70 ERC165,
137 ERC20,71 ERC20,
138 ERC20UniqueExtensions,72 ERC20UniqueExtensions
139 UniqueRFT
140{}73{}
14174
modifiedtests/src/eth/reFungibleTokenAbi.jsondiffbeforeafterboth
49 "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" }