@towns-protocol/generated 0.0.211 → 0.0.213
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/dev/abis/Channels.abi.json +30 -0
- package/dev/abis/Channels.abi.ts +30 -0
- package/dev/abis/DropFacet.abi.json +36 -0
- package/dev/abis/DropFacet.abi.ts +36 -0
- package/dev/abis/MembershipFacet.abi.json +5 -0
- package/dev/abis/MembershipFacet.abi.ts +5 -0
- package/dev/abis/Roles.abi.json +5 -0
- package/dev/abis/Roles.abi.ts +5 -0
- package/dev/typings/Architect.ts +513 -0
- package/dev/typings/Channels.ts +1003 -0
- package/dev/typings/DropFacet.ts +687 -0
- package/dev/typings/EntitlementsManager.ts +612 -0
- package/dev/typings/IDropFacet.ts +11 -3
- package/dev/typings/MockLegacyArchitect.ts +402 -0
- package/dev/typings/NodeRegistry.ts +470 -0
- package/dev/typings/OperatorRegistry.ts +345 -0
- package/dev/typings/Roles.ts +984 -0
- package/dev/typings/StreamRegistry.ts +737 -0
- package/dev/typings/WalletLink.ts +975 -0
- package/dev/typings/factories/Architect__factory.ts +406 -0
- package/dev/typings/factories/Channels__factory.ts +1037 -0
- package/dev/typings/factories/DropFacet__factory.ts +816 -0
- package/dev/typings/factories/EntitlementsManager__factory.ts +688 -0
- package/dev/typings/factories/IChannel__factory.ts +25 -0
- package/dev/typings/factories/IDropFacet__factory.ts +15 -0
- package/dev/typings/factories/IRoles__factory.ts +5 -0
- package/dev/typings/factories/MembershipFacet__factory.ts +6 -1
- package/dev/typings/factories/MockLegacyArchitect__factory.ts +433 -0
- package/dev/typings/factories/NodeRegistry__factory.ts +335 -0
- package/dev/typings/factories/OperatorRegistry__factory.ts +254 -0
- package/dev/typings/factories/Roles__factory.ts +998 -0
- package/dev/typings/factories/SpaceOwner__factory.ts +1 -11
- package/dev/typings/factories/StreamRegistry__factory.ts +604 -0
- package/dev/typings/factories/WalletLink__factory.ts +899 -0
- package/dev/typings/factories/index.ts +10 -0
- package/dev/typings/index.ts +20 -0
- package/package.json +2 -2
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type { PromiseOrValue } from "../common";
|
|
7
|
+
import type { NodeRegistry, NodeRegistryInterface } from "../NodeRegistry";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "getAllNodeAddresses",
|
|
13
|
+
inputs: [],
|
|
14
|
+
outputs: [
|
|
15
|
+
{
|
|
16
|
+
name: "",
|
|
17
|
+
type: "address[]",
|
|
18
|
+
internalType: "address[]",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
stateMutability: "view",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: "function",
|
|
25
|
+
name: "getAllNodes",
|
|
26
|
+
inputs: [],
|
|
27
|
+
outputs: [
|
|
28
|
+
{
|
|
29
|
+
name: "",
|
|
30
|
+
type: "tuple[]",
|
|
31
|
+
internalType: "struct Node[]",
|
|
32
|
+
components: [
|
|
33
|
+
{
|
|
34
|
+
name: "status",
|
|
35
|
+
type: "uint8",
|
|
36
|
+
internalType: "enum NodeStatus",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "url",
|
|
40
|
+
type: "string",
|
|
41
|
+
internalType: "string",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "nodeAddress",
|
|
45
|
+
type: "address",
|
|
46
|
+
internalType: "address",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "operator",
|
|
50
|
+
type: "address",
|
|
51
|
+
internalType: "address",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
stateMutability: "view",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: "function",
|
|
60
|
+
name: "getNode",
|
|
61
|
+
inputs: [
|
|
62
|
+
{
|
|
63
|
+
name: "nodeAddress",
|
|
64
|
+
type: "address",
|
|
65
|
+
internalType: "address",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
outputs: [
|
|
69
|
+
{
|
|
70
|
+
name: "",
|
|
71
|
+
type: "tuple",
|
|
72
|
+
internalType: "struct Node",
|
|
73
|
+
components: [
|
|
74
|
+
{
|
|
75
|
+
name: "status",
|
|
76
|
+
type: "uint8",
|
|
77
|
+
internalType: "enum NodeStatus",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "url",
|
|
81
|
+
type: "string",
|
|
82
|
+
internalType: "string",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "nodeAddress",
|
|
86
|
+
type: "address",
|
|
87
|
+
internalType: "address",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "operator",
|
|
91
|
+
type: "address",
|
|
92
|
+
internalType: "address",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
stateMutability: "view",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "function",
|
|
101
|
+
name: "getNodeCount",
|
|
102
|
+
inputs: [],
|
|
103
|
+
outputs: [
|
|
104
|
+
{
|
|
105
|
+
name: "",
|
|
106
|
+
type: "uint256",
|
|
107
|
+
internalType: "uint256",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
stateMutability: "view",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: "function",
|
|
114
|
+
name: "isNode",
|
|
115
|
+
inputs: [
|
|
116
|
+
{
|
|
117
|
+
name: "nodeAddress",
|
|
118
|
+
type: "address",
|
|
119
|
+
internalType: "address",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
outputs: [
|
|
123
|
+
{
|
|
124
|
+
name: "",
|
|
125
|
+
type: "bool",
|
|
126
|
+
internalType: "bool",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
stateMutability: "view",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
type: "function",
|
|
133
|
+
name: "registerNode",
|
|
134
|
+
inputs: [
|
|
135
|
+
{
|
|
136
|
+
name: "nodeAddress",
|
|
137
|
+
type: "address",
|
|
138
|
+
internalType: "address",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "url",
|
|
142
|
+
type: "string",
|
|
143
|
+
internalType: "string",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "status",
|
|
147
|
+
type: "uint8",
|
|
148
|
+
internalType: "enum NodeStatus",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
outputs: [],
|
|
152
|
+
stateMutability: "nonpayable",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
type: "function",
|
|
156
|
+
name: "removeNode",
|
|
157
|
+
inputs: [
|
|
158
|
+
{
|
|
159
|
+
name: "nodeAddress",
|
|
160
|
+
type: "address",
|
|
161
|
+
internalType: "address",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
outputs: [],
|
|
165
|
+
stateMutability: "nonpayable",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
type: "function",
|
|
169
|
+
name: "updateNodeStatus",
|
|
170
|
+
inputs: [
|
|
171
|
+
{
|
|
172
|
+
name: "nodeAddress",
|
|
173
|
+
type: "address",
|
|
174
|
+
internalType: "address",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: "status",
|
|
178
|
+
type: "uint8",
|
|
179
|
+
internalType: "enum NodeStatus",
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
outputs: [],
|
|
183
|
+
stateMutability: "nonpayable",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
type: "function",
|
|
187
|
+
name: "updateNodeUrl",
|
|
188
|
+
inputs: [
|
|
189
|
+
{
|
|
190
|
+
name: "nodeAddress",
|
|
191
|
+
type: "address",
|
|
192
|
+
internalType: "address",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: "url",
|
|
196
|
+
type: "string",
|
|
197
|
+
internalType: "string",
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
outputs: [],
|
|
201
|
+
stateMutability: "nonpayable",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
type: "event",
|
|
205
|
+
name: "NodeAdded",
|
|
206
|
+
inputs: [
|
|
207
|
+
{
|
|
208
|
+
name: "nodeAddress",
|
|
209
|
+
type: "address",
|
|
210
|
+
indexed: true,
|
|
211
|
+
internalType: "address",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: "operator",
|
|
215
|
+
type: "address",
|
|
216
|
+
indexed: true,
|
|
217
|
+
internalType: "address",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: "url",
|
|
221
|
+
type: "string",
|
|
222
|
+
indexed: false,
|
|
223
|
+
internalType: "string",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: "status",
|
|
227
|
+
type: "uint8",
|
|
228
|
+
indexed: false,
|
|
229
|
+
internalType: "enum NodeStatus",
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
anonymous: false,
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
type: "event",
|
|
236
|
+
name: "NodeRemoved",
|
|
237
|
+
inputs: [
|
|
238
|
+
{
|
|
239
|
+
name: "nodeAddress",
|
|
240
|
+
type: "address",
|
|
241
|
+
indexed: true,
|
|
242
|
+
internalType: "address",
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
anonymous: false,
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
type: "event",
|
|
249
|
+
name: "NodeStatusUpdated",
|
|
250
|
+
inputs: [
|
|
251
|
+
{
|
|
252
|
+
name: "nodeAddress",
|
|
253
|
+
type: "address",
|
|
254
|
+
indexed: true,
|
|
255
|
+
internalType: "address",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: "status",
|
|
259
|
+
type: "uint8",
|
|
260
|
+
indexed: false,
|
|
261
|
+
internalType: "enum NodeStatus",
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
anonymous: false,
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
type: "event",
|
|
268
|
+
name: "NodeUrlUpdated",
|
|
269
|
+
inputs: [
|
|
270
|
+
{
|
|
271
|
+
name: "nodeAddress",
|
|
272
|
+
type: "address",
|
|
273
|
+
indexed: true,
|
|
274
|
+
internalType: "address",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: "url",
|
|
278
|
+
type: "string",
|
|
279
|
+
indexed: false,
|
|
280
|
+
internalType: "string",
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
anonymous: false,
|
|
284
|
+
},
|
|
285
|
+
] as const;
|
|
286
|
+
|
|
287
|
+
const _bytecode =
|
|
288
|
+
"0x6080604052348015600e575f5ffd5b506119ba8061001c5f395ff3fe608060405234801561000f575f5ffd5b506004361061009f575f3560e01c80639d20904811610072578063b2b99ec911610058578063b2b99ec914610168578063c8fe3a011461017b578063eecc66f414610190575f5ffd5b80639d20904814610133578063a1174e7d14610153575f5ffd5b806301750152146100a357806339bf397e146100f5578063581f8b9b1461010b5780637e4465e714610120575b5f5ffd5b6100e06100b1366004611294565b73ffffffffffffffffffffffffffffffffffffffff9081165f9081526007602052604090206002015416151590565b60405190151581526020015b60405180910390f35b6100fd6101a3565b6040519081526020016100ec565b61011e6101193660046112bb565b6101b3565b005b61011e61012e3660046113e1565b6103b4565b610146610141366004611294565b6105f8565b6040516100ec919061154f565b61015b610790565b6040516100ec9190611561565b61011e610176366004611294565b61097d565b610183610bbc565b6040516100ec91906115e2565b61011e61019e36600461163a565b610bc8565b5f6101ae6005610e04565b905090565b73ffffffffffffffffffffffffffffffffffffffff8083165f90815260076020526040902060020154839116610221576102216040518060400160405280600e81526020017f4e4f44455f4e4f545f464f554e44000000000000000000000000000000000000815250610e13565b3361022d600882610e36565b61026f5761026f6040518060400160405280600881526020017f4241445f41555448000000000000000000000000000000000000000000000000815250610e13565b73ffffffffffffffffffffffffffffffffffffffff8085165f90815260076020526040902060030154859133911681146102e1576102e16040518060400160405280600881526020017f4241445f41555448000000000000000000000000000000000000000000000000815250610e13565b73ffffffffffffffffffffffffffffffffffffffff86165f90815260076020526040902080546103149060ff1687610e67565b8054869082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018360058111156103505761035061142c565b0217905550600281015460405173ffffffffffffffffffffffffffffffffffffffff909116907f20891cc7622c7951cbd8c70c61a5201eb45625b8c00e8f6c986cfca78f3dbfa0906103a3908990611694565b60405180910390a250505050505050565b336103c0600882610e36565b610402576104026040518060400160405280600881526020017f4241445f41555448000000000000000000000000000000000000000000000000815250610e13565b73ffffffffffffffffffffffffffffffffffffffff8084165f90815260076020526040902060020154849116610470576104706040518060400160405280600e81526020017f4e4f44455f4e4f545f464f554e44000000000000000000000000000000000000815250610e13565b73ffffffffffffffffffffffffffffffffffffffff8085165f90815260076020526040902060030154859133911681146104e2576104e26040518060400160405280600881526020017f4241445f41555448000000000000000000000000000000000000000000000000815250610e13565b73ffffffffffffffffffffffffffffffffffffffff86165f908152600760209081526040918290209151610518918891016116a2565b60405160208183030381529060405280519060200120816001016040516020016105429190611703565b604051602081830303815290604052805190602001200361059b5761059b6040518060400160405280600781526020017f4241445f41524700000000000000000000000000000000000000000000000000815250610e13565b600181016105a987826117de565b50600281015460405173ffffffffffffffffffffffffffffffffffffffff909116907f4505168a8705a16fd4d0575197fd0f510db69df93a065e158ad2c0957ba12bac906103a39089906118f5565b6106216040805160808101909152805f81526060602082018190525f6040830181905291015290565b61062c600583610e36565b61066e5761066e6040518060400160405280600e81526020017f4e4f44455f4e4f545f464f554e44000000000000000000000000000000000000815250610e13565b73ffffffffffffffffffffffffffffffffffffffff82165f90815260076020526040908190208151608081019092528054829060ff1660058111156106b5576106b561142c565b60058111156106c6576106c661142c565b81526020016001820180546106da906116b8565b80601f0160208091040260200160405190810160405280929190818152602001828054610706906116b8565b80156107515780601f1061072857610100808354040283529160200191610751565b820191905f5260205f20905b81548152906001019060200180831161073457829003601f168201915b5050509183525050600282015473ffffffffffffffffffffffffffffffffffffffff908116602083015260039092015490911660409091015292915050565b60605f61079d6005610e04565b67ffffffffffffffff8111156107b5576107b56112ec565b60405190808252806020026020018201604052801561080f57816020015b6107fc6040805160808101909152805f81526060602082018190525f6040830181905291015290565b8152602001906001900390816107d35790505b5090505f5b61081e6005610e04565b8110156109775760075f610833600584611013565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260409081015f208151608081019092528054829060ff16600581111561087b5761087b61142c565b600581111561088c5761088c61142c565b81526020016001820180546108a0906116b8565b80601f01602080910402602001604051908101604052809291908181526020018280546108cc906116b8565b80156109175780601f106108ee57610100808354040283529160200191610917565b820191905f5260205f20905b8154815290600101906020018083116108fa57829003601f168201915b5050509183525050600282015473ffffffffffffffffffffffffffffffffffffffff9081166020830152600390920154909116604090910152825183908390811061096457610964611907565b6020908102919091010152600101610814565b50919050565b73ffffffffffffffffffffffffffffffffffffffff8082165f90815260076020526040902060030154829133911681146109ef576109ef6040518060400160405280600881526020017f4241445f41555448000000000000000000000000000000000000000000000000815250610e13565b73ffffffffffffffffffffffffffffffffffffffff8381165f9081526007602052604090206002015416610a5b57610a5b6040518060400160405280600e81526020017f4e4f44455f4e4f545f464f554e44000000000000000000000000000000000000815250610e13565b600573ffffffffffffffffffffffffffffffffffffffff84165f9081526007602052604090205460ff166005811115610a9657610a9661142c565b14610ad957610ad96040518060400160405280601681526020017f4e4f44455f53544154455f4e4f545f414c4c4f57454400000000000000000000815250610e13565b610ae460058461101e565b5073ffffffffffffffffffffffffffffffffffffffff83165f90815260076020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016815590610b3d600183018261121a565b506002810180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915560039091018054909116905560405173ffffffffffffffffffffffffffffffffffffffff8416907fcfc24166db4bb677e857cacabd1541fb2b30645021b27c5130419589b84db52b905f90a2505050565b60606101ae600561103f565b33610bd4600882610e36565b610c1657610c166040518060400160405280600881526020017f4241445f41555448000000000000000000000000000000000000000000000000815250610e13565b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600760205260409020600201541615610c8357610c836040518060400160405280600e81526020017f414c52454144595f455849535453000000000000000000000000000000000000815250610e13565b5f6040518060800160405280846005811115610ca157610ca161142c565b81526020810186905273ffffffffffffffffffffffffffffffffffffffff87166040820152336060909101529050610cda60058661104b565b5073ffffffffffffffffffffffffffffffffffffffff85165f908152600760205260409020815181548392919082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001836005811115610d3f57610d3f61142c565b021790555060208201516001820190610d5890826117de565b506040828101516002830180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff938416179091556060909401516003909301805490941692811692909217909255905133918716907f759154d15a6aec80ceab7bc8820f46ebc53ad68bb18f47afb77483fea9dcc9ff90610df59088908890611934565b60405180910390a35050505050565b5f610e0d825490565b92915050565b6308c379a06040820352602080820352601f19601f825101166044810160248303fd5b73ffffffffffffffffffffffffffffffffffffffff81165f90815260018301602052604081205415155b9392505050565b5f826005811115610e7a57610e7a61142c565b1480610eea57506001826005811115610e9557610e9561142c565b148015610eea57506003816005811115610eb157610eb161142c565b1480610ece57506004816005811115610ecc57610ecc61142c565b145b80610eea57506002816005811115610ee857610ee861142c565b145b80610f3d57506002826005811115610f0457610f0461142c565b148015610f3d57506003816005811115610f2057610f2061142c565b1480610f3d57506004816005811115610f3b57610f3b61142c565b145b80610f9057506004826005811115610f5757610f5761142c565b148015610f9057506003816005811115610f7357610f7361142c565b1480610f9057506005816005811115610f8e57610f8e61142c565b145b80610fc857506003826005811115610faa57610faa61142c565b148015610fc857506005816005811115610fc657610fc661142c565b145b15610fd1575050565b61100f6040518060400160405280601681526020017f4e4f44455f53544154455f4e4f545f414c4c4f57454400000000000000000000815250610e13565b5050565b5f610e60838361106c565b5f610e608373ffffffffffffffffffffffffffffffffffffffff8416611092565b60605f610e6083611175565b5f610e608373ffffffffffffffffffffffffffffffffffffffff84166111ce565b5f825f01828154811061108157611081611907565b905f5260205f200154905092915050565b5f818152600183016020526040812054801561116c575f6110b4600183611955565b85549091505f906110c790600190611955565b9050808214611126575f865f0182815481106110e5576110e5611907565b905f5260205f200154905080875f01848154811061110557611105611907565b5f918252602080832090910192909255918252600188019052604090208390555b85548690806111375761113761198d565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610e0d565b5f915050610e0d565b6060815f018054806020026020016040519081016040528092919081815260200182805480156111c257602002820191905f5260205f20905b8154815260200190600101908083116111ae575b50505050509050919050565b5f81815260018301602052604081205461121357508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610e0d565b505f610e0d565b508054611226906116b8565b5f825580601f10611235575050565b601f0160209004905f5260205f20908101906112519190611254565b50565b5b80821115611268575f8155600101611255565b5090565b803573ffffffffffffffffffffffffffffffffffffffff8116811461128f575f5ffd5b919050565b5f602082840312156112a4575f5ffd5b610e608261126c565b80356006811061128f575f5ffd5b5f5f604083850312156112cc575f5ffd5b6112d58361126c565b91506112e3602084016112ad565b90509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f82601f830112611328575f5ffd5b813567ffffffffffffffff811115611342576113426112ec565b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160116810181811067ffffffffffffffff821117156113ae576113ae6112ec565b6040528181528382016020018510156113c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f604083850312156113f2575f5ffd5b6113fb8361126c565b9150602083013567ffffffffffffffff811115611416575f5ffd5b61142285828601611319565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6006811061148e577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b9052565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6114e9828251611459565b5f6020820151608060208501526115036080850182611492565b905073ffffffffffffffffffffffffffffffffffffffff604084015116604085015273ffffffffffffffffffffffffffffffffffffffff60608401511660608501528091505092915050565b602081525f610e6060208301846114de565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b828110156115d6577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184526115c18583516114de565b94506020938401939190910190600101611587565b50929695505050505050565b602080825282518282018190525f918401906040840190835b8181101561162f57835173ffffffffffffffffffffffffffffffffffffffff168352602093840193909201916001016115fb565b509095945050505050565b5f5f5f6060848603121561164c575f5ffd5b6116558461126c565b9250602084013567ffffffffffffffff811115611670575f5ffd5b61167c86828701611319565b92505061168b604085016112ad565b90509250925092565b60208101610e0d8284611459565b5f82518060208501845e5f920191825250919050565b600181811c908216806116cc57607f821691505b602082108103610977577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f5f8354611710816116b8565b600182168015611727576001811461175a57611787565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0083168652811515820286019350611787565b865f5260205f205f5b8381101561177f57815488820152600190910190602001611763565b505081860193505b509195945050505050565b601f8211156117d957805f5260205f20601f840160051c810160208510156117b75750805b601f840160051c820191505b818110156117d6575f81556001016117c3565b50505b505050565b815167ffffffffffffffff8111156117f8576117f86112ec565b61180c8161180684546116b8565b84611792565b6020601f82116001811461185d575f83156118275750848201515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b1784556117d6565b5f848152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08516915b828110156118aa578785015182556020948501946001909201910161188a565b50848210156118e657868401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b60f8161c191681555b50505050600190811b01905550565b602081525f610e606020830184611492565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b604081525f6119466040830185611492565b9050610e606020830184611459565b81810381811115610e0d577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd";
|
|
289
|
+
|
|
290
|
+
type NodeRegistryConstructorParams =
|
|
291
|
+
| [signer?: Signer]
|
|
292
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
293
|
+
|
|
294
|
+
const isSuperArgs = (
|
|
295
|
+
xs: NodeRegistryConstructorParams
|
|
296
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
297
|
+
|
|
298
|
+
export class NodeRegistry__factory extends ContractFactory {
|
|
299
|
+
constructor(...args: NodeRegistryConstructorParams) {
|
|
300
|
+
if (isSuperArgs(args)) {
|
|
301
|
+
super(...args);
|
|
302
|
+
} else {
|
|
303
|
+
super(_abi, _bytecode, args[0]);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
override deploy(
|
|
308
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
309
|
+
): Promise<NodeRegistry> {
|
|
310
|
+
return super.deploy(overrides || {}) as Promise<NodeRegistry>;
|
|
311
|
+
}
|
|
312
|
+
override getDeployTransaction(
|
|
313
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
314
|
+
): TransactionRequest {
|
|
315
|
+
return super.getDeployTransaction(overrides || {});
|
|
316
|
+
}
|
|
317
|
+
override attach(address: string): NodeRegistry {
|
|
318
|
+
return super.attach(address) as NodeRegistry;
|
|
319
|
+
}
|
|
320
|
+
override connect(signer: Signer): NodeRegistry__factory {
|
|
321
|
+
return super.connect(signer) as NodeRegistry__factory;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
static readonly bytecode = _bytecode;
|
|
325
|
+
static readonly abi = _abi;
|
|
326
|
+
static createInterface(): NodeRegistryInterface {
|
|
327
|
+
return new utils.Interface(_abi) as NodeRegistryInterface;
|
|
328
|
+
}
|
|
329
|
+
static connect(
|
|
330
|
+
address: string,
|
|
331
|
+
signerOrProvider: Signer | Provider
|
|
332
|
+
): NodeRegistry {
|
|
333
|
+
return new Contract(address, _abi, signerOrProvider) as NodeRegistry;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type { PromiseOrValue } from "../common";
|
|
7
|
+
import type {
|
|
8
|
+
OperatorRegistry,
|
|
9
|
+
OperatorRegistryInterface,
|
|
10
|
+
} from "../OperatorRegistry";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
type: "function",
|
|
15
|
+
name: "__OperatorRegistry_init",
|
|
16
|
+
inputs: [
|
|
17
|
+
{
|
|
18
|
+
name: "initialOperators",
|
|
19
|
+
type: "address[]",
|
|
20
|
+
internalType: "address[]",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
outputs: [],
|
|
24
|
+
stateMutability: "nonpayable",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
type: "function",
|
|
28
|
+
name: "approveOperator",
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
name: "operator",
|
|
32
|
+
type: "address",
|
|
33
|
+
internalType: "address",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
outputs: [],
|
|
37
|
+
stateMutability: "nonpayable",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: "function",
|
|
41
|
+
name: "getAllOperators",
|
|
42
|
+
inputs: [],
|
|
43
|
+
outputs: [
|
|
44
|
+
{
|
|
45
|
+
name: "",
|
|
46
|
+
type: "address[]",
|
|
47
|
+
internalType: "address[]",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
stateMutability: "view",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: "function",
|
|
54
|
+
name: "isOperator",
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
name: "operator",
|
|
58
|
+
type: "address",
|
|
59
|
+
internalType: "address",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
outputs: [
|
|
63
|
+
{
|
|
64
|
+
name: "",
|
|
65
|
+
type: "bool",
|
|
66
|
+
internalType: "bool",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
stateMutability: "view",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: "function",
|
|
73
|
+
name: "removeOperator",
|
|
74
|
+
inputs: [
|
|
75
|
+
{
|
|
76
|
+
name: "operator",
|
|
77
|
+
type: "address",
|
|
78
|
+
internalType: "address",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
outputs: [],
|
|
82
|
+
stateMutability: "nonpayable",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: "event",
|
|
86
|
+
name: "Initialized",
|
|
87
|
+
inputs: [
|
|
88
|
+
{
|
|
89
|
+
name: "version",
|
|
90
|
+
type: "uint32",
|
|
91
|
+
indexed: false,
|
|
92
|
+
internalType: "uint32",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
anonymous: false,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: "event",
|
|
99
|
+
name: "InterfaceAdded",
|
|
100
|
+
inputs: [
|
|
101
|
+
{
|
|
102
|
+
name: "interfaceId",
|
|
103
|
+
type: "bytes4",
|
|
104
|
+
indexed: true,
|
|
105
|
+
internalType: "bytes4",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
anonymous: false,
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
type: "event",
|
|
112
|
+
name: "InterfaceRemoved",
|
|
113
|
+
inputs: [
|
|
114
|
+
{
|
|
115
|
+
name: "interfaceId",
|
|
116
|
+
type: "bytes4",
|
|
117
|
+
indexed: true,
|
|
118
|
+
internalType: "bytes4",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
anonymous: false,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
type: "event",
|
|
125
|
+
name: "OperatorAdded",
|
|
126
|
+
inputs: [
|
|
127
|
+
{
|
|
128
|
+
name: "operatorAddress",
|
|
129
|
+
type: "address",
|
|
130
|
+
indexed: true,
|
|
131
|
+
internalType: "address",
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
anonymous: false,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
type: "event",
|
|
138
|
+
name: "OperatorRemoved",
|
|
139
|
+
inputs: [
|
|
140
|
+
{
|
|
141
|
+
name: "operatorAddress",
|
|
142
|
+
type: "address",
|
|
143
|
+
indexed: true,
|
|
144
|
+
internalType: "address",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
anonymous: false,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
type: "event",
|
|
151
|
+
name: "OwnershipTransferred",
|
|
152
|
+
inputs: [
|
|
153
|
+
{
|
|
154
|
+
name: "previousOwner",
|
|
155
|
+
type: "address",
|
|
156
|
+
indexed: true,
|
|
157
|
+
internalType: "address",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: "newOwner",
|
|
161
|
+
type: "address",
|
|
162
|
+
indexed: true,
|
|
163
|
+
internalType: "address",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
anonymous: false,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
type: "error",
|
|
170
|
+
name: "Initializable_InInitializingState",
|
|
171
|
+
inputs: [],
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
type: "error",
|
|
175
|
+
name: "Initializable_NotInInitializingState",
|
|
176
|
+
inputs: [],
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
type: "error",
|
|
180
|
+
name: "Introspection_AlreadySupported",
|
|
181
|
+
inputs: [],
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
type: "error",
|
|
185
|
+
name: "Introspection_NotSupported",
|
|
186
|
+
inputs: [],
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
type: "error",
|
|
190
|
+
name: "Ownable__NotOwner",
|
|
191
|
+
inputs: [
|
|
192
|
+
{
|
|
193
|
+
name: "account",
|
|
194
|
+
type: "address",
|
|
195
|
+
internalType: "address",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
type: "error",
|
|
201
|
+
name: "Ownable__ZeroAddress",
|
|
202
|
+
inputs: [],
|
|
203
|
+
},
|
|
204
|
+
] as const;
|
|
205
|
+
|
|
206
|
+
const _bytecode =
|
|
207
|
+
"0x6080604052348015600e575f5ffd5b5060156019565b60bd565b7f59b501c3653afc186af7d48dda36cf6732bd21629a6295693664240a6ef520008054640100000000900460ff16156064576040516366008a2d60e01b815260040160405180910390fd5b805463ffffffff908116101560ba57805463ffffffff191663ffffffff90811782556040519081527fe9c9b456cb2994b80aeef036cf59d26e9617df80f816a6ee5a5b4166e07e2f5c9060200160405180910390a15b50565b6108d6806100ca5f395ff3fe608060405234801561000f575f5ffd5b5060043610610064575f3560e01c8063ac8a584a1161004d578063ac8a584a146100a5578063ba428b1a146100b8578063d911c632146100cb575f5ffd5b8063242cae9f146100685780636d70f7ae1461007d575b5f5ffd5b61007b610076366004610748565b6100e0565b005b61009061008b366004610748565b610163565b60405190151581526020015b60405180910390f35b61007b6100b3366004610748565b610175565b61007b6100c636600461077b565b610336565b6100d36103df565b60405161009c91906107ec565b7f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae3005473ffffffffffffffffffffffffffffffffffffffff163314610157576040517f65f490650000000000000000000000000000000000000000000000000000000081523360048201526024015b60405180910390fd5b610160816103f0565b50565b5f61016f6008836104e4565b92915050565b7f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae3005473ffffffffffffffffffffffffffffffffffffffff1633146101e7576040517f65f4906500000000000000000000000000000000000000000000000000000000815233600482015260240161014e565b6101f081610163565b610232576102326040518060400160405280601281526020017f4f50455241544f525f4e4f545f464f554e440000000000000000000000000000815250610515565b5f61023d6005610538565b90505f5b818110156102e55773ffffffffffffffffffffffffffffffffffffffff831660075f61026e600585610541565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f206003015416036102dd576102dd6040518060400160405280600d81526020017f4f55545f4f465f424f554e445300000000000000000000000000000000000000815250610515565b600101610241565b506102f160088361054c565b5060405173ffffffffffffffffffffffffffffffffffffffff8316907f80c0b871b97b595b16a7741c1b06fed0c6f6f558639f18ccbce50724325dc40d905f90a25050565b7f59b501c3653afc186af7d48dda36cf6732bd21629a6295693664240a6ef5200054640100000000900460ff16610399576040517f77a399b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b818110156103da576103d28383838181106103b8576103b8610844565b90506020020160208101906103cd9190610748565b6103f0565b60010161039b565b505050565b60606103eb600861056d565b905090565b73ffffffffffffffffffffffffffffffffffffffff8116610449576104496040518060400160405280600781526020017f4241445f41524700000000000000000000000000000000000000000000000000815250610515565b61045281610163565b15610495576104956040518060400160405280600e81526020017f414c52454144595f455849535453000000000000000000000000000000000000815250610515565b6104a0600882610579565b5060405173ffffffffffffffffffffffffffffffffffffffff8216907fac6fa858e9350a46cec16539926e0fde25b7629f84b5a72bffaae4df888ae86d905f90a250565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260018301602052604081205415155b9392505050565b6308c379a06040820352602080820352601f19601f825101166044810160248303fd5b5f61016f825490565b5f61050e838361059a565b5f61050e8373ffffffffffffffffffffffffffffffffffffffff84166105c0565b60605f61050e836106a3565b5f61050e8373ffffffffffffffffffffffffffffffffffffffff84166106fc565b5f825f0182815481106105af576105af610844565b905f5260205f200154905092915050565b5f818152600183016020526040812054801561069a575f6105e2600183610871565b85549091505f906105f590600190610871565b9050808214610654575f865f01828154811061061357610613610844565b905f5260205f200154905080875f01848154811061063357610633610844565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080610665576106656108a9565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f90556001935050505061016f565b5f91505061016f565b6060815f018054806020026020016040519081016040528092919081815260200182805480156106f057602002820191905f5260205f20905b8154815260200190600101908083116106dc575b50505050509050919050565b5f81815260018301602052604081205461074157508154600181810184555f84815260208082209093018490558454848252828601909352604090209190915561016f565b505f61016f565b5f60208284031215610758575f5ffd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461050e575f5ffd5b5f5f6020838503121561078c575f5ffd5b823567ffffffffffffffff8111156107a2575f5ffd5b8301601f810185136107b2575f5ffd5b803567ffffffffffffffff8111156107c8575f5ffd5b8560208260051b84010111156107dc575f5ffd5b6020919091019590945092505050565b602080825282518282018190525f918401906040840190835b8181101561083957835173ffffffffffffffffffffffffffffffffffffffff16835260209384019390920191600101610805565b509095945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b8181038181111561016f577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd";
|
|
208
|
+
|
|
209
|
+
type OperatorRegistryConstructorParams =
|
|
210
|
+
| [signer?: Signer]
|
|
211
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
212
|
+
|
|
213
|
+
const isSuperArgs = (
|
|
214
|
+
xs: OperatorRegistryConstructorParams
|
|
215
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
216
|
+
|
|
217
|
+
export class OperatorRegistry__factory extends ContractFactory {
|
|
218
|
+
constructor(...args: OperatorRegistryConstructorParams) {
|
|
219
|
+
if (isSuperArgs(args)) {
|
|
220
|
+
super(...args);
|
|
221
|
+
} else {
|
|
222
|
+
super(_abi, _bytecode, args[0]);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
override deploy(
|
|
227
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
228
|
+
): Promise<OperatorRegistry> {
|
|
229
|
+
return super.deploy(overrides || {}) as Promise<OperatorRegistry>;
|
|
230
|
+
}
|
|
231
|
+
override getDeployTransaction(
|
|
232
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
233
|
+
): TransactionRequest {
|
|
234
|
+
return super.getDeployTransaction(overrides || {});
|
|
235
|
+
}
|
|
236
|
+
override attach(address: string): OperatorRegistry {
|
|
237
|
+
return super.attach(address) as OperatorRegistry;
|
|
238
|
+
}
|
|
239
|
+
override connect(signer: Signer): OperatorRegistry__factory {
|
|
240
|
+
return super.connect(signer) as OperatorRegistry__factory;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
static readonly bytecode = _bytecode;
|
|
244
|
+
static readonly abi = _abi;
|
|
245
|
+
static createInterface(): OperatorRegistryInterface {
|
|
246
|
+
return new utils.Interface(_abi) as OperatorRegistryInterface;
|
|
247
|
+
}
|
|
248
|
+
static connect(
|
|
249
|
+
address: string,
|
|
250
|
+
signerOrProvider: Signer | Provider
|
|
251
|
+
): OperatorRegistry {
|
|
252
|
+
return new Contract(address, _abi, signerOrProvider) as OperatorRegistry;
|
|
253
|
+
}
|
|
254
|
+
}
|