@aifinpay/deployments 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +133 -0
- package/USAGE.md +534 -0
- package/dist/artifacts.d.ts +62 -0
- package/dist/artifacts.d.ts.map +1 -0
- package/dist/artifacts.js +210 -0
- package/dist/artifacts.js.map +1 -0
- package/dist/build.d.ts +2 -0
- package/dist/build.d.ts.map +1 -0
- package/dist/build.js +25 -0
- package/dist/build.js.map +1 -0
- package/dist/grabber.d.ts +42 -0
- package/dist/grabber.d.ts.map +1 -0
- package/dist/grabber.js +379 -0
- package/dist/grabber.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/registry.d.ts +147 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +263 -0
- package/dist/registry.js.map +1 -0
- package/dist/types.d.ts +139 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +14 -0
- package/dist/types.js.map +1 -0
- package/package.json +36 -0
- package/registry/abi/evm/B2BSplitterV14/B2BSplitterV14.json +1318 -0
- package/registry/abi/evm/TimelockWrapper/TimelockWrapper.json +277 -0
- package/registry/abi/tron/.gitkeep +0 -0
- package/registry/idl/aptos/.gitkeep +0 -0
- package/registry/idl/casper/.gitkeep +0 -0
- package/registry/idl/casper/aifinpay-casper-schema.json +108 -0
- package/registry/idl/solana/splitter-v14/splitter.devnet.json +1962 -0
- package/registry/idl/solana/splitter-v14/splitter.mainnet.json +1962 -0
- package/registry/splitter/INDEX.md +163 -0
- package/registry/splitter/casper/README.md +101 -0
- package/registry/splitter/casper/deployments.json +110 -0
- package/registry/splitter/evm/v1.1/README.md +32 -0
- package/registry/splitter/evm/v1.1/deployments.json +45 -0
- package/registry/splitter/evm/v1.2/README.md +47 -0
- package/registry/splitter/evm/v1.2/deployments.json +76 -0
- package/registry/splitter/evm/v1.3/README.md +78 -0
- package/registry/splitter/evm/v1.3/deployments.json +280 -0
- package/registry/splitter/evm/v1.4/README.md +75 -0
- package/registry/splitter/evm/v1.4/deployments.json +358 -0
- package/registry/splitter/solana/README.md +49 -0
- package/registry/splitter/solana/deployments.json +48 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh3-artifact-1",
|
|
3
|
+
"contractName": "TimelockWrapper",
|
|
4
|
+
"sourceName": "contracts/TimelockWrapper.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "_proposer",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "_executor",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint256",
|
|
20
|
+
"name": "_minDelay",
|
|
21
|
+
"type": "uint256"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"stateMutability": "nonpayable",
|
|
25
|
+
"type": "constructor"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputs": [],
|
|
29
|
+
"name": "DelayTooShort",
|
|
30
|
+
"type": "error"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [],
|
|
34
|
+
"name": "EthForwardFailed",
|
|
35
|
+
"type": "error"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"inputs": [],
|
|
39
|
+
"name": "NotProposer",
|
|
40
|
+
"type": "error"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"inputs": [],
|
|
44
|
+
"name": "ZeroAddress",
|
|
45
|
+
"type": "error"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"inputs": [],
|
|
49
|
+
"name": "ZeroProposer",
|
|
50
|
+
"type": "error"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"anonymous": false,
|
|
54
|
+
"inputs": [
|
|
55
|
+
{
|
|
56
|
+
"indexed": true,
|
|
57
|
+
"internalType": "address",
|
|
58
|
+
"name": "timelock",
|
|
59
|
+
"type": "address"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"name": "AdminRenounced",
|
|
63
|
+
"type": "event"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"anonymous": false,
|
|
67
|
+
"inputs": [
|
|
68
|
+
{
|
|
69
|
+
"indexed": true,
|
|
70
|
+
"internalType": "address",
|
|
71
|
+
"name": "contract_",
|
|
72
|
+
"type": "address"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"indexed": true,
|
|
76
|
+
"internalType": "address",
|
|
77
|
+
"name": "timelock",
|
|
78
|
+
"type": "address"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"name": "OwnershipTransferred",
|
|
82
|
+
"type": "event"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"anonymous": false,
|
|
86
|
+
"inputs": [
|
|
87
|
+
{
|
|
88
|
+
"indexed": true,
|
|
89
|
+
"internalType": "address",
|
|
90
|
+
"name": "timelock",
|
|
91
|
+
"type": "address"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"indexed": false,
|
|
95
|
+
"internalType": "uint256",
|
|
96
|
+
"name": "minDelay",
|
|
97
|
+
"type": "uint256"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"name": "TimelockDeployed",
|
|
101
|
+
"type": "event"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputs": [],
|
|
105
|
+
"name": "destroy",
|
|
106
|
+
"outputs": [],
|
|
107
|
+
"stateMutability": "nonpayable",
|
|
108
|
+
"type": "function"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"inputs": [],
|
|
112
|
+
"name": "executor",
|
|
113
|
+
"outputs": [
|
|
114
|
+
{
|
|
115
|
+
"internalType": "address",
|
|
116
|
+
"name": "",
|
|
117
|
+
"type": "address"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"stateMutability": "view",
|
|
121
|
+
"type": "function"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"inputs": [
|
|
125
|
+
{
|
|
126
|
+
"internalType": "contract IAccessControl",
|
|
127
|
+
"name": "target",
|
|
128
|
+
"type": "address"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"internalType": "bytes32",
|
|
132
|
+
"name": "role",
|
|
133
|
+
"type": "bytes32"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"name": "grantRoleToTimelock",
|
|
137
|
+
"outputs": [],
|
|
138
|
+
"stateMutability": "nonpayable",
|
|
139
|
+
"type": "function"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"inputs": [],
|
|
143
|
+
"name": "minDelay",
|
|
144
|
+
"outputs": [
|
|
145
|
+
{
|
|
146
|
+
"internalType": "uint256",
|
|
147
|
+
"name": "",
|
|
148
|
+
"type": "uint256"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"stateMutability": "view",
|
|
152
|
+
"type": "function"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"inputs": [],
|
|
156
|
+
"name": "proposer",
|
|
157
|
+
"outputs": [
|
|
158
|
+
{
|
|
159
|
+
"internalType": "address",
|
|
160
|
+
"name": "",
|
|
161
|
+
"type": "address"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"stateMutability": "view",
|
|
165
|
+
"type": "function"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"inputs": [
|
|
169
|
+
{
|
|
170
|
+
"internalType": "contract IAccessControl",
|
|
171
|
+
"name": "target",
|
|
172
|
+
"type": "address"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"internalType": "bytes32",
|
|
176
|
+
"name": "role",
|
|
177
|
+
"type": "bytes32"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"name": "renounceRoleOnTarget",
|
|
181
|
+
"outputs": [],
|
|
182
|
+
"stateMutability": "nonpayable",
|
|
183
|
+
"type": "function"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"inputs": [],
|
|
187
|
+
"name": "timelock",
|
|
188
|
+
"outputs": [
|
|
189
|
+
{
|
|
190
|
+
"internalType": "contract TimelockController",
|
|
191
|
+
"name": "",
|
|
192
|
+
"type": "address"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"stateMutability": "view",
|
|
196
|
+
"type": "function"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"inputs": [
|
|
200
|
+
{
|
|
201
|
+
"internalType": "contract Ownable[]",
|
|
202
|
+
"name": "targets",
|
|
203
|
+
"type": "address[]"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"name": "transferMultiple",
|
|
207
|
+
"outputs": [],
|
|
208
|
+
"stateMutability": "nonpayable",
|
|
209
|
+
"type": "function"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"inputs": [
|
|
213
|
+
{
|
|
214
|
+
"internalType": "contract Ownable",
|
|
215
|
+
"name": "target",
|
|
216
|
+
"type": "address"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"name": "transferToTimelock",
|
|
220
|
+
"outputs": [],
|
|
221
|
+
"stateMutability": "nonpayable",
|
|
222
|
+
"type": "function"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"bytecode": "0x610100604052346101f657612a9a6060813803918261001d816101fa565b9384928339810103126101f6576100338161021f565b9060406100426020830161021f565b910151906001600160a01b0383169081156101e7576001600160a01b0381169384156101d8576202a30084106101c95760a05260c0528160e052604092610088846101fa565b9060018252601f19850192833660208501376100a383610233565b526100ad856101fa565b92600184523660208501376100c183610233565b52835191611ea291828401916001600160401b038311858410176101b55761010161010e928695610bf88739878552608060208601526080850190610254565b9083820388850152610254565b9060603091015203905ff080156101ab57608081905282519182526001600160a01b0316907f30c2291dd07b288dbd128abc4c7d0ccdb31b9203c010c29201c04dcf7fea4dae90602090a2516109679081610291823960805181818160a9015281816101ae015281816102e9015281816105d0015261076e015260a05181818161029401526108e1015260c05181610138015260e0518160e80152f35b82513d5f823e3d90fd5b634e487b7160e01b5f52604160045260245ffd5b63514e00f160e01b5f5260045ffd5b63d92e233d60e01b5f5260045ffd5b63078be18760e01b5f5260045ffd5b5f80fd5b6040519190601f01601f191682016001600160401b038111838210176101b557604052565b51906001600160a01b03821682036101f657565b8051156102405760200190565b634e487b7160e01b5f52603260045260245ffd5b90602080835192838152019201905f5b8181106102715750505090565b82516001600160a01b031684526020938401939092019160010161026456fe60806040526004361015610011575f80fd5b5f5f3560e01c80630107e123146106f3578063055ce9d01461056d5780635da5adbf146104d757806383197ef0146102b8578063a8e4fb9014610267578063aafc366e1461015c578063c34c08e51461010b578063c63c4e9b146100d05763d33219b41461007d575f80fd5b346100cd57806003193601126100cd57602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b80fd5b50346100cd57806003193601126100cd5760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b50346100cd57806003193601126100cd57602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b50346100cd5760206003193601126100cd5760043573ffffffffffffffffffffffffffffffffffffffff8116809103610263576101976108ca565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690803b1561025457826040517ff2fde38b000000000000000000000000000000000000000000000000000000008152836004820152818160248183875af180156102585761023f575b50807f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a380f35b81610249916107fe565b61025457825f610217565b8280fd5b6040513d84823e3d90fd5b5080fd5b50346100cd57806003193601126100cd57602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b50346100cd57806003193601126100cd576102d16108ca565b8073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166040517fa217fddf000000000000000000000000000000000000000000000000000000008152602081600481855afa9081156104965783916104a5575b50813b156104a1576040517f36568abe0000000000000000000000000000000000000000000000000000000081526004810191909152306024820152828160448183865af190811561049657839161047e575b50808281937f3aeb34a9cebce3c91879dc662fedfe0060c966cfcefb6985a595d1c0c56b8fca8380a247905af13d15610479573d67ffffffffffffffff811161044c576040519061041260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601836107fe565b81528260203d92013e5b156104245780f35b807f673fe1650000000000000000000000000000000000000000000000000000000060049252fd5b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b61041c565b81610488916107fe565b61049357815f610399565b50fd5b6040513d85823e3d90fd5b5050fd5b90506020813d6020116104cf575b816104c0602093836107fe565b810103126104a157515f610346565b3d91506104b3565b50346100cd578073ffffffffffffffffffffffffffffffffffffffff6104fc366107cb565b91906105066108ca565b16803b156104a1576040517f36568abe000000000000000000000000000000000000000000000000000000008152600481019290925230602483015282908290604490829084905af180156102585761055c5750f35b81610566916107fe565b6100cd5780f35b50346100cd5760206003193601126100cd5760043567ffffffffffffffff811161026357366023820112156102635780600401359067ffffffffffffffff8211610254576024810190602436918460051b01011161025457906105ce6108ca565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690835b818110610613578480f35b8473ffffffffffffffffffffffffffffffffffffffff61063c61063784868961086c565b6108a9565b16803b15610263578180916024604051809481937ff2fde38b0000000000000000000000000000000000000000000000000000000083528a60048401525af18015610258576106da575b5050808373ffffffffffffffffffffffffffffffffffffffff6106af610637600195878a61086c565b167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08880a301610608565b816106e4916107fe565b6106ef57845f610686565b8480fd5b50346107c75773ffffffffffffffffffffffffffffffffffffffff610717366107cb565b91906107216108ca565b16803b156107c7576040517f2f2ff15d000000000000000000000000000000000000000000000000000000008152600481019290925273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001660248301525f908290604490829084905af180156107bc576107ae575080f35b6107ba91505f906107fe565b005b6040513d5f823e3d90fd5b5f80fd5b60031960409101126107c75760043573ffffffffffffffffffffffffffffffffffffffff811681036107c7579060243590565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761083f57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b919081101561087c5760051b0190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b3573ffffffffffffffffffffffffffffffffffffffff811681036107c75790565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016330361090957565b7f7d1b73b9000000000000000000000000000000000000000000000000000000005f5260045ffdfea264697066735822122081489b2ca60dc527eead0563fd9d9937a9e8fd46441423efb52801fff4c6db8664736f6c6343000823003360806040523461016657611ea2803803806100198161016a565b92833981019060808183031261016657805160208201519091906001600160401b038111610166578361004d9183016101b7565b604082015190936001600160401b0382116101665761007360609161007a9385016101b7565b92016101a3565b61008330610249565b506001600160a01b038116610156575b505f5b83518110156100e0576001906100be6001600160a01b036100b78388610221565b51166102bf565b506100d9828060a01b036100d28388610221565b5116610352565b5001610096565b50905f5b82518110156101135760019061010c6001600160a01b036101058387610221565b51166103e5565b50016100e4565b7f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5604083806002558151905f82526020820152a160405161198990816104798239f35b61015f90610249565b505f610093565b5f80fd5b6040519190601f01601f191682016001600160401b0381118382101761018f57604052565b634e487b7160e01b5f52604160045260245ffd5b51906001600160a01b038216820361016657565b9080601f83011215610166578151916001600160401b03831161018f578260051b906020806101e781850161016a565b80968152019282010192831161016657602001905b8282106102095750505090565b60208091610216846101a3565b8152019101906101fc565b80518210156102355760209160051b010190565b634e487b7160e01b5f52603260045260245ffd5b6001600160a01b0381165f9081525f516020611e825f395f51905f52602052604090205460ff166102ba576001600160a01b03165f8181525f516020611e825f395f51905f5260205260408120805460ff191660011790553391905f516020611e025f395f51905f528180a4600190565b505f90565b6001600160a01b0381165f9081525f516020611e225f395f51905f52602052604090205460ff166102ba576001600160a01b03165f8181525f516020611e225f395f51905f5260205260408120805460ff191660011790553391907fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1905f516020611e025f395f51905f529080a4600190565b6001600160a01b0381165f9081525f516020611e625f395f51905f52602052604090205460ff166102ba576001600160a01b03165f8181525f516020611e625f395f51905f5260205260408120805460ff191660011790553391907ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f783905f516020611e025f395f51905f529080a4600190565b6001600160a01b0381165f9081525f516020611e425f395f51905f52602052604090205460ff166102ba576001600160a01b03165f8181525f516020611e425f395f51905f5260205260408120805460ff191660011790553391907fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63905f516020611e025f395f51905f529080a460019056fe6080604052600436101561001a575b3615610018575f80fd5b005b5f3560e01c806301d5062a14610c9e57806301ffc9a714610bca57806307bd026514610b90578063134008d314610add57806313bc9f2014610abf578063150b7a0214610a51578063248a9ca314610a275780632ab0f52914610a095780632f2ff15d146109cc57806331d50750146109ae57806336568abe14610944578063584b153e1461091c57806364d623531461089e5780637958004c146108425780638065657f146108235780638f2a0bb0146106825780638f61f4f51461064857806391d14854146105f2578063a217fddf146105d8578063b08e51c01461059e578063b1c5f42714610574578063bc197c81146104c4578063c4d252f5146103b4578063d45c44351461038a578063d547741f14610346578063e38335e5146101e1578063f23a6e61146101735763f27a0c920361000e573461016f575f60031936011261016f576020600254604051908152f35b5f80fd5b3461016f5760a060031936011261016f5761018c610d4a565b50610195610d6d565b5060843567ffffffffffffffff811161016f576101b6903690600401610e86565b5060206040517ff23a6e61000000000000000000000000000000000000000000000000000000008152f35b6101ea36610efd565b5f80527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d70696020527f5ba6852781629bcdcd4bdaa6de76d786f1c64b16acdac474e55bebc0ea1579515492979196919593949260ff1615610338575b82821480159061032e575b6102fa5761026761026e91888a888789888d61123a565b968761167f565b5f5b818110610280576100188761175c565b8080887fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5888886102f16102d88f986001998f828e6102cb8f836102c6916102d19661117c565b6111b9565b9761117c565b35956111da565b906102e582828787611709565b6040519485948561103c565b0390a301610270565b5086907fffb03211000000000000000000000000000000000000000000000000000000005f5260045260245260445260645ffd5b5087821415610250565b6103413361154c565b610245565b3461016f57604060031936011261016f57610018600435610365610d6d565b9061038561037e825f525f602052600160405f20015490565b3390611601565b61184c565b3461016f57602060031936011261016f576004355f526001602052602060405f2054604051908152f35b3461016f57602060031936011261016f57335f9081527fc3ad33e20b0c56a223ad5104fff154aa010f8715b9c981fd38fdc60a4d1a52fb60205260409020546004359060ff161561047457610408816110b8565b1561044157805f5260016020525f60408120557fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb705f80a2005b7f5ead8eb5000000000000000000000000000000000000000000000000000000005f52600452600460021760245260445ffd5b7fe2517d3f000000000000000000000000000000000000000000000000000000005f52336004527ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78360245260445ffd5b3461016f5760a060031936011261016f576104dd610d4a565b506104e6610d6d565b5060443567ffffffffffffffff811161016f57610507903690600401610f6e565b5060643567ffffffffffffffff811161016f57610528903690600401610f6e565b5060843567ffffffffffffffff811161016f57610549903690600401610e86565b5060206040517fbc197c81000000000000000000000000000000000000000000000000000000008152f35b3461016f57602061059661058736610efd565b9695909594919493929361123a565b604051908152f35b3461016f575f60031936011261016f5760206040517ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f7838152f35b3461016f575f60031936011261016f5760206040515f8152f35b3461016f57604060031936011261016f5761060b610d6d565b6004355f525f60205273ffffffffffffffffffffffffffffffffffffffff60405f2091165f52602052602060ff60405f2054166040519015158152f35b3461016f575f60031936011261016f5760206040517fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc18152f35b3461016f5760c060031936011261016f5760043567ffffffffffffffff811161016f576106b3903690600401610ecc565b9060243567ffffffffffffffff811161016f576106d4903690600401610ecc565b60449291923567ffffffffffffffff811161016f576106f7903690600401610ecc565b9390916064356084359560a4359261070e33611497565b808914801590610819575b6107e65761072d88848489858a8f8e61123a565b98610738858b6113d9565b895f5b8281106107785750898061074b57005b60207f20fda5fd27a1ea7bf5b9567f143ac5470bb059374a27e8f67cb44f946f6d038791604051908152a2005b806001927f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8b8b6107db8f8c6107ce8f928e6107c78f8f906107c16102c68f809794819561117c565b9961117c565b35976111da565b9060405196879687610ff6565b0390a3018a9061073b565b90887fffb03211000000000000000000000000000000000000000000000000000000005f5260045260245260445260645ffd5b5081891415610719565b3461016f57602061059661083636610dbe565b94939093929192611119565b3461016f57602060031936011261016f5761085e6004356110e1565b6040516004821015610871576020918152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b3461016f57602060031936011261016f576004353033036108f0577f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d560406002548151908152836020820152a1600255005b7fe2850c59000000000000000000000000000000000000000000000000000000005f523360045260245ffd5b3461016f57602060031936011261016f57602061093a6004356110b8565b6040519015158152f35b3461016f57604060031936011261016f5761095d610d6d565b3373ffffffffffffffffffffffffffffffffffffffff821603610986576100189060043561184c565b7f6697b232000000000000000000000000000000000000000000000000000000005f5260045ffd5b3461016f57602060031936011261016f57602061093a6004356110a1565b3461016f57604060031936011261016f576100186004356109eb610d6d565b90610a0461037e825f525f602052600160405f20015490565b61177a565b3461016f57602060031936011261016f57602061093a600435611089565b3461016f57602060031936011261016f5760206105966004355f525f602052600160405f20015490565b3461016f57608060031936011261016f57610a6a610d4a565b50610a73610d6d565b5060643567ffffffffffffffff811161016f57610a94903690600401610e86565b5060206040517f150b7a02000000000000000000000000000000000000000000000000000000008152f35b3461016f57602060031936011261016f57602061093a600435611071565b610018610b6e5f610b7a7fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b58610b65610b1436610dbe565b7fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e638a9995979299949394528960205260408a208a805260205260ff60408b20541615610b82575b8884848989611119565b9889978861167f565b6102e582828787611709565b0390a361175c565b610b8b3361154c565b610b5b565b3461016f575f60031936011261016f5760206040517fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e638152f35b3461016f57602060031936011261016f576004357fffffffff00000000000000000000000000000000000000000000000000000000811680910361016f57807f4e2312e00000000000000000000000000000000000000000000000000000000060209214908115610c41575b506040519015158152f35b7f7965db0b00000000000000000000000000000000000000000000000000000000811491508115610c74575b5082610c36565b7f01ffc9a70000000000000000000000000000000000000000000000000000000091501482610c6d565b3461016f5760c060031936011261016f57610cb7610d4a565b6024359060443567ffffffffffffffff811161016f577f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca92610cfe5f923690600401610d90565b94909160643594610d406084359660a43590610d1933611497565b610d2789828c8a8989611119565b998a97610d34848a6113d9565b60405196879687610ff6565b0390a38061074b57005b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361016f57565b6024359073ffffffffffffffffffffffffffffffffffffffff8216820361016f57565b9181601f8401121561016f5782359167ffffffffffffffff831161016f576020838186019501011161016f57565b60a060031982011261016f5760043573ffffffffffffffffffffffffffffffffffffffff8116810361016f5791602435916044359067ffffffffffffffff821161016f57610e0e91600401610d90565b90916064359060843590565b90601f601f19910116810190811067ffffffffffffffff821117610e3d57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b67ffffffffffffffff8111610e3d57601f01601f191660200190565b81601f8201121561016f57803590610e9d82610e6a565b92610eab6040519485610e1a565b8284526020838301011161016f57815f926020809301838601378301015290565b9181601f8401121561016f5782359167ffffffffffffffff831161016f576020808501948460051b01011161016f57565b60a060031982011261016f5760043567ffffffffffffffff811161016f5781610f2891600401610ecc565b9290929160243567ffffffffffffffff811161016f5781610f4b91600401610ecc565b929092916044359067ffffffffffffffff821161016f57610e0e91600401610ecc565b9080601f8301121561016f5781359167ffffffffffffffff8311610e3d578260051b9060405193610fa26020840186610e1a565b845260208085019282010192831161016f57602001905b828210610fc65750505090565b8135815260209182019101610fb9565b601f8260209493601f1993818652868601375f8582860101520116010190565b9290936110329273ffffffffffffffffffffffffffffffffffffffff60809699989799168552602085015260a0604085015260a0840191610fd6565b9460608201520152565b61106e949273ffffffffffffffffffffffffffffffffffffffff60609316825260208201528160408201520191610fd6565b90565b61107a906110e1565b60048110156108715760021490565b611092906110e1565b60048110156108715760031490565b6110aa906110e1565b600481101561087157151590565b6110c1906110e1565b600481101561087157600181149081156110d9575090565b600291501490565b5f52600160205260405f205480155f146110fa57505f90565b600181036111085750600390565b42101561111457600190565b600290565b9461115d6111769495929360405196879573ffffffffffffffffffffffffffffffffffffffff602088019a168a52604087015260a0606087015260c0860191610fd6565b91608084015260a083015203601f198101835282610e1a565b51902090565b919081101561118c5760051b0190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b3573ffffffffffffffffffffffffffffffffffffffff8116810361016f5790565b919081101561118c5760051b810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18136030182121561016f57019081359167ffffffffffffffff831161016f57602001823603811361016f579190565b9693949190969592956040519660208801988060c08a0160a08c525260e0890192905f905b80821061138c57505050601f198883030160408901528082527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811161016f579087959394929160051b8092602083013701848103606086015260208101849052600584901b8101604090810194908201915f908890368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe101905b848410611327575050505050506111769450608084015260a083015203601f198101835282610e1a565b91939597909294969850601f19808383030101875289358381121561016f578401906020823592019167ffffffffffffffff811161016f57803603831361016f576113786020928392600195610fd6565b9b0197019401918a989699979593916112fd565b90919384359073ffffffffffffffffffffffffffffffffffffffff8216820361016f576020809173ffffffffffffffffffffffffffffffffffffffff60019416815201950192019061125f565b906113e3826110a1565b61146657600254808210611437575042019081421161140a575f52600160205260405f2055565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b907f54336609000000000000000000000000000000000000000000000000000000005f5260045260245260445ffd5b507f5ead8eb5000000000000000000000000000000000000000000000000000000005f52600452600160245260445ffd5b73ffffffffffffffffffffffffffffffffffffffff81165f9081527f3412d5605ac6cd444957cedb533e5dacad6378b4bc819ebe3652188a665066d5602052604090205460ff16156114e65750565b73ffffffffffffffffffffffffffffffffffffffff907fe2517d3f000000000000000000000000000000000000000000000000000000005f52166004527fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc160245260445ffd5b73ffffffffffffffffffffffffffffffffffffffff81165f9081527fdae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d7069602052604090205460ff161561159b5750565b73ffffffffffffffffffffffffffffffffffffffff907fe2517d3f000000000000000000000000000000000000000000000000000000005f52166004527fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6360245260445ffd5b90815f525f60205260405f2073ffffffffffffffffffffffffffffffffffffffff82165f5260205260ff60405f2054161561163a575050565b73ffffffffffffffffffffffffffffffffffffffff907fe2517d3f000000000000000000000000000000000000000000000000000000005f521660045260245260445ffd5b61168881611071565b156116d95750801515806116c9575b61169e5750565b7f90a9a618000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b506116d381611089565b15611697565b7f5ead8eb5000000000000000000000000000000000000000000000000000000005f52600452600460245260445ffd5b611751935f93928493826040519384928337810185815203925af13d15611754573d9061173582610e6a565b916117436040519384610e1a565b82523d5f602084013e611914565b50565b606090611914565b61176581611071565b156116d9575f526001602052600160405f2055565b805f525f60205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260ff60405f205416155f1461184657805f525f60205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260405f2060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4600190565b50505f90565b805f525f60205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260ff60405f2054165f1461184657805f525f60205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260405f207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905573ffffffffffffffffffffffffffffffffffffffff339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4600190565b1561191c5790565b80511561192b57602081519101fd5b7fd6bda275000000000000000000000000000000000000000000000000000000005f5260045ffdfea26469706673582212202765b473d27a9f379d5956ac0d03290c3c4f6aaeb08877458f00a8c34ec82ba064736f6c634300082300332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d3412d5605ac6cd444957cedb533e5dacad6378b4bc819ebe3652188a665066d5dae2aa361dfd1ca020a396615627d436107c35eff9fe7738a3512819782d7069c3ad33e20b0c56a223ad5104fff154aa010f8715b9c981fd38fdc60a4d1a52fbad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5",
|
|
226
|
+
"deployedBytecode": "0x60806040526004361015610011575f80fd5b5f5f3560e01c80630107e123146106f3578063055ce9d01461056d5780635da5adbf146104d757806383197ef0146102b8578063a8e4fb9014610267578063aafc366e1461015c578063c34c08e51461010b578063c63c4e9b146100d05763d33219b41461007d575f80fd5b346100cd57806003193601126100cd57602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b80fd5b50346100cd57806003193601126100cd5760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b50346100cd57806003193601126100cd57602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b50346100cd5760206003193601126100cd5760043573ffffffffffffffffffffffffffffffffffffffff8116809103610263576101976108ca565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690803b1561025457826040517ff2fde38b000000000000000000000000000000000000000000000000000000008152836004820152818160248183875af180156102585761023f575b50807f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a380f35b81610249916107fe565b61025457825f610217565b8280fd5b6040513d84823e3d90fd5b5080fd5b50346100cd57806003193601126100cd57602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b50346100cd57806003193601126100cd576102d16108ca565b8073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166040517fa217fddf000000000000000000000000000000000000000000000000000000008152602081600481855afa9081156104965783916104a5575b50813b156104a1576040517f36568abe0000000000000000000000000000000000000000000000000000000081526004810191909152306024820152828160448183865af190811561049657839161047e575b50808281937f3aeb34a9cebce3c91879dc662fedfe0060c966cfcefb6985a595d1c0c56b8fca8380a247905af13d15610479573d67ffffffffffffffff811161044c576040519061041260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601836107fe565b81528260203d92013e5b156104245780f35b807f673fe1650000000000000000000000000000000000000000000000000000000060049252fd5b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b61041c565b81610488916107fe565b61049357815f610399565b50fd5b6040513d85823e3d90fd5b5050fd5b90506020813d6020116104cf575b816104c0602093836107fe565b810103126104a157515f610346565b3d91506104b3565b50346100cd578073ffffffffffffffffffffffffffffffffffffffff6104fc366107cb565b91906105066108ca565b16803b156104a1576040517f36568abe000000000000000000000000000000000000000000000000000000008152600481019290925230602483015282908290604490829084905af180156102585761055c5750f35b81610566916107fe565b6100cd5780f35b50346100cd5760206003193601126100cd5760043567ffffffffffffffff811161026357366023820112156102635780600401359067ffffffffffffffff8211610254576024810190602436918460051b01011161025457906105ce6108ca565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690835b818110610613578480f35b8473ffffffffffffffffffffffffffffffffffffffff61063c61063784868961086c565b6108a9565b16803b15610263578180916024604051809481937ff2fde38b0000000000000000000000000000000000000000000000000000000083528a60048401525af18015610258576106da575b5050808373ffffffffffffffffffffffffffffffffffffffff6106af610637600195878a61086c565b167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08880a301610608565b816106e4916107fe565b6106ef57845f610686565b8480fd5b50346107c75773ffffffffffffffffffffffffffffffffffffffff610717366107cb565b91906107216108ca565b16803b156107c7576040517f2f2ff15d000000000000000000000000000000000000000000000000000000008152600481019290925273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001660248301525f908290604490829084905af180156107bc576107ae575080f35b6107ba91505f906107fe565b005b6040513d5f823e3d90fd5b5f80fd5b60031960409101126107c75760043573ffffffffffffffffffffffffffffffffffffffff811681036107c7579060243590565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761083f57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b919081101561087c5760051b0190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b3573ffffffffffffffffffffffffffffffffffffffff811681036107c75790565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016330361090957565b7f7d1b73b9000000000000000000000000000000000000000000000000000000005f5260045ffdfea264697066735822122081489b2ca60dc527eead0563fd9d9937a9e8fd46441423efb52801fff4c6db8664736f6c63430008230033",
|
|
227
|
+
"linkReferences": {},
|
|
228
|
+
"deployedLinkReferences": {},
|
|
229
|
+
"immutableReferences": {
|
|
230
|
+
"2369": [
|
|
231
|
+
{
|
|
232
|
+
"length": 32,
|
|
233
|
+
"start": 169
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"length": 32,
|
|
237
|
+
"start": 430
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"length": 32,
|
|
241
|
+
"start": 745
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"length": 32,
|
|
245
|
+
"start": 1488
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"length": 32,
|
|
249
|
+
"start": 1902
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"2371": [
|
|
253
|
+
{
|
|
254
|
+
"length": 32,
|
|
255
|
+
"start": 660
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"length": 32,
|
|
259
|
+
"start": 2273
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"2373": [
|
|
263
|
+
{
|
|
264
|
+
"length": 32,
|
|
265
|
+
"start": 312
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"2375": [
|
|
269
|
+
{
|
|
270
|
+
"length": 32,
|
|
271
|
+
"start": 232
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
"inputSourceName": "project/contracts/TimelockWrapper.sol",
|
|
276
|
+
"buildInfoId": "solc-0_8_35-73b4a3b03f71b7fe25742257fbc399f26fb24e13"
|
|
277
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aifinpay_casper",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "AiFinPay settlement contract for Casper — AI agent payment registry",
|
|
5
|
+
"language": "Rust",
|
|
6
|
+
"runtime": "Wasm",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"casper-contract": "5.1.1",
|
|
9
|
+
"casper-types": "6.1.0"
|
|
10
|
+
},
|
|
11
|
+
"entryPoints": [
|
|
12
|
+
{
|
|
13
|
+
"name": "register_agent",
|
|
14
|
+
"args": [
|
|
15
|
+
{
|
|
16
|
+
"name": "agent_id",
|
|
17
|
+
"type": "String",
|
|
18
|
+
"description": "Unique agent identifier"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "wallet",
|
|
22
|
+
"type": "String",
|
|
23
|
+
"description": "Agent's wallet address (account hash)"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"returnType": "Unit",
|
|
27
|
+
"description": "Self-register caller wallet → AgentRegistered event"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "pay_agent",
|
|
31
|
+
"args": [
|
|
32
|
+
{
|
|
33
|
+
"name": "from_agent",
|
|
34
|
+
"type": "String",
|
|
35
|
+
"description": "Paying agent ID"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "to_agent",
|
|
39
|
+
"type": "String",
|
|
40
|
+
"description": "Receiving agent ID"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "amount",
|
|
44
|
+
"type": "U512",
|
|
45
|
+
"description": "Payment amount in motes (1 CSPR = 10^9 motes)"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "request_id",
|
|
49
|
+
"type": "String",
|
|
50
|
+
"description": "Unique request identifier for idempotency"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"returnType": "Unit",
|
|
54
|
+
"description": "Record settlement → PaymentSettled event (v2); v1 recorded only without transfer"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "get_payment_count",
|
|
58
|
+
"args": [],
|
|
59
|
+
"returnType": "U32",
|
|
60
|
+
"description": "Total number of settled payments"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"events": [
|
|
64
|
+
{
|
|
65
|
+
"name": "AgentRegistered",
|
|
66
|
+
"fields": [
|
|
67
|
+
{ "name": "agent_id", "type": "String" },
|
|
68
|
+
{ "name": "wallet", "type": "String" }
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "PaymentSettled",
|
|
73
|
+
"fields": [
|
|
74
|
+
{ "name": "from", "type": "String" },
|
|
75
|
+
{ "name": "to", "type": "String" },
|
|
76
|
+
{ "name": "amount", "type": "U512" },
|
|
77
|
+
{ "name": "request_id", "type": "String" }
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"errors": {
|
|
82
|
+
"0": "AgentAlreadyRegistered",
|
|
83
|
+
"1": "AgentNotRegistered",
|
|
84
|
+
"2": "DuplicateRequestId",
|
|
85
|
+
"3": "InvalidCaller"
|
|
86
|
+
},
|
|
87
|
+
"deployments": {
|
|
88
|
+
"testnet": {
|
|
89
|
+
"network": "casper-test",
|
|
90
|
+
"contractPackageHash": "hash-47df409829ddf0612617460293ba591a19b26fa0c06918878204088d3eb9b78a",
|
|
91
|
+
"status": "live",
|
|
92
|
+
"version": "v2"
|
|
93
|
+
},
|
|
94
|
+
"mainnet": {
|
|
95
|
+
"network": "casper",
|
|
96
|
+
"contractHash": "contract-9903a5e3948e799196df54b17270bc6769338ac1cc36c9eb47e113f88d23f019",
|
|
97
|
+
"contractPackageHash": "hash-7ad34a204952eef63d5dcf5159fb7d009e85dea4f49cbdf73dde190652dfa375",
|
|
98
|
+
"status": "historical",
|
|
99
|
+
"version": "v1",
|
|
100
|
+
"warning": "v1: receipt only, no atomic transfer — not valid settlement proof"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"source": {
|
|
104
|
+
"repo": "AiFinPay/casper-contract",
|
|
105
|
+
"url": "https://github.com/AiFinPay/casper-contract",
|
|
106
|
+
"contractPath": "src/main.rs"
|
|
107
|
+
}
|
|
108
|
+
}
|