@web3dotorg/evm-slc-core-sdk 0.3.14 → 0.3.15
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/abi/ExecutorsRegistry.json +1160 -0
- package/abi/Governance.json +2340 -0
- package/abi/IExecutorsRegistry.json +357 -0
- package/abi/IGovernance.json +133 -0
- package/abi/INeutralsRegistry.json +504 -0
- package/abi/IQParameters.json +78 -0
- package/abi/ISLCCore.json +207 -0
- package/abi/ISLCCoreFactory.json +174 -0
- package/abi/IWrappedToken.json +198 -0
- package/abi/NeutralsRegistry.json +1446 -0
- package/abi/ParameterRegistry.json +765 -0
- package/abi/SLCCore.json +307 -0
- package/abi/SLCCoreFactory.json +499 -0
- package/lib.commonjs/contracts/governance/ExecutorsRegistry.d.ts +21 -2
- package/lib.commonjs/contracts/libs/GovernanceUtils.d.ts +85 -0
- package/lib.commonjs/contracts/libs/GovernanceUtils.js +2 -0
- package/lib.commonjs/contracts/libs/index.d.ts +1 -0
- package/lib.commonjs/factories/contracts/governance/ExecutorsRegistry__factory.d.ts +29 -1
- package/lib.commonjs/factories/contracts/governance/ExecutorsRegistry__factory.js +38 -1
- package/lib.commonjs/factories/contracts/governance/Governance__factory.d.ts +6 -10
- package/lib.commonjs/factories/contracts/governance/Governance__factory.js +15 -14
- package/lib.commonjs/factories/contracts/governance/NeutralsRegistry__factory.d.ts +1 -1
- package/lib.commonjs/factories/contracts/governance/NeutralsRegistry__factory.js +1 -1
- package/lib.commonjs/factories/contracts/libs/GovernanceUtils__factory.d.ts +184 -0
- package/lib.commonjs/factories/contracts/libs/GovernanceUtils__factory.js +255 -0
- package/lib.commonjs/factories/contracts/libs/index.d.ts +1 -0
- package/lib.commonjs/factories/contracts/libs/index.js +3 -1
- package/lib.esm/contracts/governance/ExecutorsRegistry.d.ts +21 -2
- package/lib.esm/contracts/libs/GovernanceUtils.d.ts +85 -0
- package/lib.esm/contracts/libs/GovernanceUtils.js +1 -0
- package/lib.esm/contracts/libs/index.d.ts +1 -0
- package/lib.esm/factories/contracts/governance/ExecutorsRegistry__factory.d.ts +29 -1
- package/lib.esm/factories/contracts/governance/ExecutorsRegistry__factory.js +38 -1
- package/lib.esm/factories/contracts/governance/Governance__factory.d.ts +6 -10
- package/lib.esm/factories/contracts/governance/Governance__factory.js +15 -14
- package/lib.esm/factories/contracts/governance/NeutralsRegistry__factory.d.ts +1 -1
- package/lib.esm/factories/contracts/governance/NeutralsRegistry__factory.js +1 -1
- package/lib.esm/factories/contracts/libs/GovernanceUtils__factory.d.ts +184 -0
- package/lib.esm/factories/contracts/libs/GovernanceUtils__factory.js +251 -0
- package/lib.esm/factories/contracts/libs/index.d.ts +1 -0
- package/lib.esm/factories/contracts/libs/index.js +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Contract, ContractFactory, Interface, } from "ethers";
|
|
5
|
+
const _abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
internalType: "address",
|
|
10
|
+
name: "account",
|
|
11
|
+
type: "address",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
name: "AccountNotSelected",
|
|
15
|
+
type: "error",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
inputs: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "uint256",
|
|
21
|
+
name: "threshold",
|
|
22
|
+
type: "uint256",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
name: "ExecutorsThresholdTooHigh",
|
|
26
|
+
type: "error",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
internalType: "uint256",
|
|
32
|
+
name: "serviceFee",
|
|
33
|
+
type: "uint256",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
internalType: "uint256",
|
|
37
|
+
name: "msgValue",
|
|
38
|
+
type: "uint256",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "InvalidServiceFee",
|
|
42
|
+
type: "error",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
inputs: [
|
|
46
|
+
{
|
|
47
|
+
internalType: "uint256",
|
|
48
|
+
name: "totalShares",
|
|
49
|
+
type: "uint256",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "InvalidSharesTotal",
|
|
53
|
+
type: "error",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
inputs: [
|
|
57
|
+
{
|
|
58
|
+
internalType: "enum Governance.VotingPhase",
|
|
59
|
+
name: "votingPhase",
|
|
60
|
+
type: "uint8",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
name: "InvalidVotingPhaseForProposeOperations",
|
|
64
|
+
type: "error",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
inputs: [
|
|
68
|
+
{
|
|
69
|
+
internalType: "uint256",
|
|
70
|
+
name: "threshold",
|
|
71
|
+
type: "uint256",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
name: "NeutralsThresholdTooHigh",
|
|
75
|
+
type: "error",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
inputs: [
|
|
79
|
+
{
|
|
80
|
+
internalType: "address",
|
|
81
|
+
name: "token",
|
|
82
|
+
type: "address",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
name: "SafeERC20FailedOperation",
|
|
86
|
+
type: "error",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
inputs: [],
|
|
90
|
+
name: "Unreachable",
|
|
91
|
+
type: "error",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
inputs: [],
|
|
95
|
+
name: "getExecutorsShare",
|
|
96
|
+
outputs: [
|
|
97
|
+
{
|
|
98
|
+
internalType: "uint256",
|
|
99
|
+
name: "",
|
|
100
|
+
type: "uint256",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
stateMutability: "view",
|
|
104
|
+
type: "function",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
inputs: [],
|
|
108
|
+
name: "getExecutorsThreshold",
|
|
109
|
+
outputs: [
|
|
110
|
+
{
|
|
111
|
+
internalType: "uint256",
|
|
112
|
+
name: "",
|
|
113
|
+
type: "uint256",
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
stateMutability: "view",
|
|
117
|
+
type: "function",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
inputs: [],
|
|
121
|
+
name: "getNeutralsShare",
|
|
122
|
+
outputs: [
|
|
123
|
+
{
|
|
124
|
+
internalType: "uint256",
|
|
125
|
+
name: "",
|
|
126
|
+
type: "uint256",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
stateMutability: "view",
|
|
130
|
+
type: "function",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
inputs: [],
|
|
134
|
+
name: "getNeutralsThreshold",
|
|
135
|
+
outputs: [
|
|
136
|
+
{
|
|
137
|
+
internalType: "uint256",
|
|
138
|
+
name: "",
|
|
139
|
+
type: "uint256",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
stateMutability: "view",
|
|
143
|
+
type: "function",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
inputs: [],
|
|
147
|
+
name: "getTreasuryAddress",
|
|
148
|
+
outputs: [
|
|
149
|
+
{
|
|
150
|
+
internalType: "address",
|
|
151
|
+
name: "",
|
|
152
|
+
type: "address",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
stateMutability: "view",
|
|
156
|
+
type: "function",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
inputs: [],
|
|
160
|
+
name: "getTreasuryShare",
|
|
161
|
+
outputs: [
|
|
162
|
+
{
|
|
163
|
+
internalType: "uint256",
|
|
164
|
+
name: "",
|
|
165
|
+
type: "uint256",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
stateMutability: "view",
|
|
169
|
+
type: "function",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
inputs: [
|
|
173
|
+
{
|
|
174
|
+
components: [
|
|
175
|
+
{
|
|
176
|
+
components: [
|
|
177
|
+
{
|
|
178
|
+
internalType: "enum IGovernance.OperationType",
|
|
179
|
+
name: "operation_",
|
|
180
|
+
type: "IGovernance.OperationType",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
internalType: "address",
|
|
184
|
+
name: "to_",
|
|
185
|
+
type: "address",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
internalType: "bytes",
|
|
189
|
+
name: "data_",
|
|
190
|
+
type: "bytes",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "value_",
|
|
195
|
+
type: "uint256",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
internalType: "struct IGovernance.OperationData[]",
|
|
199
|
+
name: "operations",
|
|
200
|
+
type: "tuple[]",
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
internalType: "struct IGovernance.OperationBundle",
|
|
204
|
+
name: "operation_",
|
|
205
|
+
type: "tuple",
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
name: "hashOperation",
|
|
209
|
+
outputs: [
|
|
210
|
+
{
|
|
211
|
+
internalType: "bytes32",
|
|
212
|
+
name: "",
|
|
213
|
+
type: "bytes32",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
stateMutability: "pure",
|
|
217
|
+
type: "function",
|
|
218
|
+
},
|
|
219
|
+
];
|
|
220
|
+
const _bytecode = "0x60808060405234601b57611f3990816100218239308160070152f35b600080fdfe6080604052307f000000000000000000000000000000000000000000000000000000000000000014600436101561003557600080fd5b60003560e01c806334eeb5c61461088e5780634fd7829b146106c55780636693c477146106af578063796441bb146106995780638732efb6146103185780639a22031514610302578063b3f18456146102cd578063ce5f0f51146102b7578063e00246041461028f578063e088c352146102715763e1f45bc7146100b857600080fd5b610258576020366003190112610258576004356000818152600080516020611eed83398151915260205260409020546001906100fc906001600160a01b0316610b25565b0181600052600080516020611eed833981519152602052600160406000200154600052602052604060002061013d60058201546101376114ce565b90611c6d565b82600052600080516020611eed8339815191526020526002604060002001556000602060018060a01b03600080516020611ecd83398151915254166004604051809481936301dffb4f60e31b83525af180156102655760009061022c575b6101a8915061013761132b565b82600052600080516020611eed833981519152602052600360406000200155600b8101918254600160401b811015610216576101ef816008956001610206940181556116f6565b819391549060031b91821b91600019901b19161790565b905501805460ff19166001179055005b634e487b7160e01b600052604160045260246000fd5b506020813d60201161025d575b81610246602093836108dd565b81010312610258576101a8905161019b565b600080fd5b3d9150610239565b6040513d6000823e3d90fd5b600036600319011261025857602061028761167e565b604051908152f35b60003660031901126102585760206102a56115ac565b6040516001600160a01b039091168152f35b60003660031901126102585760206102876114ce565b6020366003190112610258576004356001600160401b038111610258576102876102fd60209236906004016109b6565b611413565b600036600319011261025857602061028761132b565b50610258576040366003190112610258576024356004356001600160401b038211610258578160040191803603916020600319840112610258576000818152600080516020611eed8339815191526020526040902054600190610383906001600160a01b0316610b25565b0181600052600080516020611eed833981519152602052600160406000200154600052602052604060002060ff6008820154166103bf81611031565b6001810361067c5750336000908152600690910160205260409020541561066757600052600080516020611eed833981519152602052600660406000206104096102fd36876109b6565b3360009081526008830160208190526040909120548061062a575b50816000526007830160205261043e336040600020611d9c565b5060018060a01b033316600052602052806040600020556104698161046336896109b6565b84611acf565b506000520160205260406000209235916022190182121561025857016004810135906001600160401b03821161025857602481018260051b36038113610258576104b5838593956111e7565b600091825260208220939060a2193683900301905b8484106104d357005b8035828112156102585760049084010160208101356002811015610258576104fb90886112a9565b60408101356001600160a01b03811681036102585761051a90886112c1565b600187016060820135603e1936849003018112156102585782016020018035906001600160401b0382116102585781360360208201136102585760009061056b836105658654610f74565b866112e6565b81601f84116001146105ba5793610597846001989560809560039995602099926105ad575b50506111d4565b90555b013560028a0155019601930192946104ca565b8992500101353880610590565b91601f19841685845260208420935b818110610610575084608094600398946020989460019b988c95106105f6575b505050811b01905561059a565b01880135600019838b1b60f8161c191690553880806105e9565b9193602060018192828888010135815501950192016105c9565b600784018160005280602052610644336040600020611ce8565b5081600052602052604060002054610424576106609084611876565b5038610424565b63562b6a4f60e01b6000523360045260246000fd5b6317d118a360e01b60005261069081611031565b60045260246000fd5b6000366003190112610258576020610287611145565b600036600319011261025857602061028761107c565b50610258576106d33661092b565b9080600052600080516020611eed8339815191526020526001610701818060a01b0360406000205416610b25565b0181600052600080516020611eed833981519152602052600160406000200154600052602052604060002090600982015490811561087d57600052600080516020611eed83398151915260205260066040600020019060005260205260406000209180511561086757602001518254906001600160a01b031660005b8281106107955760088401805460ff19166003179055005b60ff6107a18287610f35565b5054169060206107fd6107b48389610f35565b505460081c6001600160a01b0316936107cd848a610f35565b5061081660026107dd878d610f35565b50015491604051978895869563e355396d60e01b87526004870190610f51565b6024850152608060448501526001608485019101610fae565b90606483015203816000875af191821561026557600192610839575b500161077d565b6108599060203d8111610860575b61085181836108dd565b810190610b5e565b5038610832565b503d610847565b634e487b7160e01b600052603260045260246000fd5b63039f249b60e61b60005260046000fd5b50610258576108a561089f3661092b565b90610bac565b005b602081019081106001600160401b0382111761021657604052565b608081019081106001600160401b0382111761021657604052565b601f909101601f19168101906001600160401b0382119082101761021657604052565b6001600160401b0381116102165760051b60200190565b35906001600160a01b038216820361025857565b9060406003198301126102585760043591602435906001600160401b038211610258578060238301121561025857816004013561096781610900565b9261097560405194856108dd565b8184526024602085019260051b82010192831161025857602401905b82821061099e5750505090565b602080916109ab84610917565b815201910190610991565b9190602083820312610258576040516109ce816108a7565b9283908035906001600160401b03821161025857019180601f84011215610258578235926109fb84610900565b93610a0960405195866108dd565b80855260208086019160051b830101918383116102585760208101915b838310610a3557505050505052565b82356001600160401b038111610258578201906080828703601f1901126102585760405190610a63826108c2565b60208301356002811015610258578252610a7f60408401610917565b602083015260608301356001600160401b038111610258576020908401019187601f840112156102585782359260006001600160401b038511610b11575060405194610ad5601f8601601f1916602001876108dd565b84865289602086840101116102585760209560008787819882608097018386013783010152604084015201356060820152815201920191610a26565b634e487b7160e01b81526041600452602490fd5b6001600160a01b031660009081527fb93e2841340255f69de4f9300770e3cc1894dc081e8bf6d34a78e9ac897c79046020526040902090565b90816020910312610258575180151581036102585790565b91908201809211610b8357565b634e487b7160e01b600052601160045260246000fd5b81810292918115918404141715610b8357565b600090808252600080516020611eed8339815191526020526001610bda818060a01b03604085205416610b25565b01908252600080516020611eed8339815191526020526001604083200154825260205260408120600281015490811580610f2d575b610f27573415610eca5750348103610eb357600080516020611f0d83398151915254604051630d0e30db60e41b8152906020908290600490829034906001600160a01b03165af18015610ea857610e89575b505b610c6b61107c565b92610c7461167e565b93610c7d611145565b90610c9182610c8c8884610b76565b610b76565b60648103610e77575060649182610cb781610caf610cbe9589610b99565b049887610b99565b0494610b99565b049380610e09575b5081610d33575b50505080610cd85750565b610d3190610ce46115ac565b600080516020611f0d8339815191525460405163a9059cbb60e01b60208201526001600160a01b03928316602482015260448082019490945292835216610d2c6064836108dd565b611c8d565b565b7fb93e2841340255f69de4f9300770e3cc1894dc081e8bf6d34a78e9ac897c7902546001600160a01b031690813b15610e055791839160405193849263dcf2fc3960e01b845260448401604060048601528251809152602060648601930190865b818110610de0575050508380928692602483015203925af18015610dd557610dbd575b80610ccd565b610dc88280926108dd565b610dd25780610db7565b80fd5b6040513d84823e3d90fd5b82516001600160a01b0316855289975088965060209485019490920191600101610d94565b8380fd5b600080516020611ecd833981519152546001600160a01b031690813b15610e73578491602483926040519485938492630b32e9c760e31b845260048401525af18015610e685715610cc65783610e61919492946108dd565b9138610cc6565b6040513d86823e3d90fd5b8480fd5b630bef6e1760e21b8652600452602485fd5b610ea19060203d6020116108605761085181836108dd565b5038610c61565b6040513d85823e3d90fd5b63bf08c10d60e01b82526004523460245260449150fd5b600080516020611f0d833981519152546001909101546040516323b872dd60e01b60208201526001600160a01b03918216602482015230604482015260648082018590528152610f2292909116610d2c6084836108dd565b610c63565b50505050565b503415610c0f565b8054821015610867576000526003602060002091020190600090565b906002821015610f5e5752565b634e487b7160e01b600052602160045260246000fd5b90600182811c92168015610fa4575b6020831014610f8e57565b634e487b7160e01b600052602260045260246000fd5b91607f1691610f83565b60009291815491610fbe83610f74565b80835292600181169081156110145750600114610fda57505050565b60009081526020812093945091925b838310610ffa575060209250010190565b600181602092949394548385870101520191019190610fe9565b915050602093945060ff929192191683830152151560051b010190565b60041115610f5e57565b919082519283825260005b848110611067575050826000602080949584010152601f8019910116010190565b80602080928401015182828601015201611046565b600080516020611ead833981519152546040805190916110f5916020916001600160a01b03166110ac85836108dd565b601d82527f736c632e676f7665726e616e63652e6578656375746f72735368617265000000838301528451808095819462498bff60e81b8352866004840152602483019061103b565b03915afa91821561113b575060009161110c575090565b90506020813d602011611133575b81611127602093836108dd565b81010312610258575190565b3d915061111a565b513d6000823e3d90fd5b600080516020611ead833981519152546040805190916110f5916020916001600160a01b031661117585836108dd565b601c82527b736c632e676f7665726e616e63652e7472656173757279536861726560201b838301528451808095819462498bff60e81b8352866004840152602483019061103b565b8181106111c8575050565b600081556001016111bd565b8160011b916000199060031b1c19161790565b90600160401b81116102165781549181815582821061120557505050565b82600302926003840403610b835781600302916003830403610b8357600052602060002091820191015b81811061123a575050565b806000600392556001810161124f8154610f74565b9081611265575b5050600060028201550161122f565b81601f6000931160011461127d5750555b3880611256565b8183526020832061129991601f0160051c8101906001016111bd565b8082528160208120915555611276565b906002811015610f5e5760ff80198354169116179055565b8054610100600160a81b03191660089290921b610100600160a81b0316919091179055565b9190601f81116112f557505050565b610d31926000526020600020906020601f840160051c83019310611321575b601f0160051c01906111bd565b9091508190611314565b600080516020611ead833981519152546040516113ae91602091906001600160a01b031661135a6060836108dd565b602182527f736c632e676f7665726e616e63652e6578656375746f72735468726573686f6c83830152601960fa1b6040830152604051808095819462498bff60e81b8352866004840152602483019061103b565b03915afa908115610265576000916113e1575b50606481116113cd5790565b635fed39e960e01b60005260045260246000fd5b906020823d60201161140b575b816113fb602093836108dd565b81010312610dd2575051386113c1565b3d91506113ee565b604051602081019160208352816060810191516020604083015280518093526080820192602060808260051b8501019201936000905b82821061146c57505050611466925003601f1981018352826108dd565b51902090565b91935091602080600192607f1989820301855287519061148d818351610f51565b848060a01b038383015116838201526060806114b8604085015160806040860152608085019061103b565b9301519101529601920192018593919492611449565b600080516020611ead83398151915254604080519091611546916020916001600160a01b03166114fe85836108dd565b8282527f736c632e676f7665726e616e63652e6e65757472616c735468726573686f6c64838301528451808095819462498bff60e81b8352866004840152602483019061103b565b03915afa91821561113b575060009161157a575b50606481116115665790565b63066230b760e31b60005260045260246000fd5b906020823d6020116115a4575b81611594602093836108dd565b81010312610dd25750513861155a565b3d9150611587565b600080516020611ead83398151915254604080519091611624916020916001600160a01b03166115dc85836108dd565b601b82527a736c632e67656e6572616c2e74726561737572794164647265737360281b838301528451808095819463d502db9760e01b8352866004840152602483019061103b565b03915afa91821561113b575060009161163b575090565b6020813d602011611676575b81611654602093836108dd565b810103126116725751906001600160a01b0382168203610dd2575090565b5080fd5b3d9150611647565b600080516020611ead833981519152546040805190916110f5916020916001600160a01b03166116ae85836108dd565b601c82527b736c632e676f7665726e616e63652e6e65757472616c73536861726560201b838301528451808095819462498bff60e81b8352866004840152602483019061103b565b80548210156108675760005260206000200190600090565b9190918281146117dd576117228354610f74565b6001600160401b038111610216576117448161173e8454610f74565b846112e6565b600093601f821160011461177757611768929394829160009261176c5750506111d4565b9055565b015490503880610590565b845260208085208386529085209094601f198316815b8181106117c5575095836001959697106117ac575b505050811b019055565b015460001960f88460031b161c191690553880806117a2565b9192600180602092868b01548155019401920161178d565b509050565b818114611872578154916117f683836111e7565b60005260206000209060005260206000206000915b8383106118185750505050565b600380826001938503611832575b0192019201919061180b565b61184060ff825416866112a9565b611855848060a01b03825460081c16866112c1565b61186384820185870161170e565b60028101546002860155611826565b5050565b9060058201918160005282602052604060002054801515600014611ac657600019810191818311610b83576004019182546000198101908111610b83578082036119bc575b505050805480156119a65760001901906118d582826116f6565b6119905780549060008155816118fb575b50505560005260205260006040812055600190565b81600302916003830403610b8357600090815260208120918201915b82811061192457506118e6565b80826003925582600182016119398154610f74565b8061194e575b50505082600282015501611917565b601f81116001146119645750555b82388061193f565b8183526020832061198091601f0160051c8101906001016111bd565b808252816020812091555561195c565b634e487b7160e01b600052600060045260246000fd5b634e487b7160e01b600052603160045260246000fd5b6119c96119d191856116f6565b5091846116f6565b6119905781808203611ab6575b5050604051906119ed826108a7565b8054906119f982610900565b91611a0760405193846108dd565b808352602083019160005260206000206000925b828410611a47575050505090611a32918152611413565b600052836020526040600020553880806118bb565b60405190611a54826108c2565b82549060ff8216906002821015610f5e578360039360209360019652858060a01b039060081c1683820152604051611a9981611a9281898b01610fae565b03826108dd565b604082015260028601546060820152815201920193019290611a1b565b611abf916117e2565b38816119de565b50505050600090565b906005820191836000528260205260406000205415600014611ac657600401908154600160401b81101561021657806001611b0d92018455836116f6565b91909161199057516020815191611b2483856111e7565b01916000526020600020916000905b828210611b5157505050505491600052602052604060002055600190565b805180516002811015610f5e57611b6890866112a9565b6020810151611b80906001600160a01b0316866112c1565b6040810151805160018701916001600160401b03821161021657611bae82611ba88554610f74565b856112e6565b602090601f8311600114611bfd5793602093611bdc8460019895606095600399600092611bf25750506111d4565b90555b0151600288015501940191019092611b33565b015190503880610590565b90601f1983169184600052816000209260005b818110611c55575084606094600398946020989460019b988c9510611c3d575b505050811b019055611bdf565b0151600019838b1b60f8161c19169055388080611c30565b92936020600181928786015181550195019301611c10565b611c7960648383611df3565b90611c8a9260649109151590610b76565b90565b906000602091828151910182855af115610265576000513d611cdf57506001600160a01b0381163b155b611cbe5750565b635274afe760e01b60009081526001600160a01b0391909116600452602490fd5b60011415611cb7565b9060018201918160005282602052604060002054801515600014611ac6576000198101818111610b83578254600019810191908211610b8357818103611d65575b505050805480156119a6576000190190611d4382826116f6565b8154906000199060031b1b191690555560005260205260006040812055600190565b611d85611d756101ef93866116f6565b90549060031b1c928392866116f6565b905560005283602052604060002055388080611d29565b6000828152600182016020526040902054611dec57805490600160401b8210156102165782611dd56101ef8460018096018555846116f6565b905580549260005201602052604060002055600190565b5050600090565b90916000198383099280830292838086109503948086039514611e885784831115611e6f5790829109816000038216809204600281600302188082026002030280820260020302808202600203028082026002030280820260020302809102600203029360018380600003040190848311900302920304170290565b82634e487b71600052156003026011186020526024601cfd5b505091508115611e96570490565b634e487b7160e01b600052601260045260246000fdfeb93e2841340255f69de4f9300770e3cc1894dc081e8bf6d34a78e9ac897c7903b93e2841340255f69de4f9300770e3cc1894dc081e8bf6d34a78e9ac897c7901b93e2841340255f69de4f9300770e3cc1894dc081e8bf6d34a78e9ac897c7905b93e2841340255f69de4f9300770e3cc1894dc081e8bf6d34a78e9ac897c7900a164736f6c634300081e000a";
|
|
221
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
222
|
+
export class GovernanceUtils__factory extends ContractFactory {
|
|
223
|
+
constructor(...args) {
|
|
224
|
+
if (isSuperArgs(args)) {
|
|
225
|
+
super(...args);
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
super(_abi, _bytecode, args[0]);
|
|
229
|
+
}
|
|
230
|
+
this.contractName = "GovernanceUtils";
|
|
231
|
+
}
|
|
232
|
+
getDeployTransaction(overrides) {
|
|
233
|
+
return super.getDeployTransaction(overrides || {});
|
|
234
|
+
}
|
|
235
|
+
deploy(overrides) {
|
|
236
|
+
return super.deploy(overrides || {});
|
|
237
|
+
}
|
|
238
|
+
connect(runner) {
|
|
239
|
+
return super.connect(runner);
|
|
240
|
+
}
|
|
241
|
+
static contractName;
|
|
242
|
+
contractName;
|
|
243
|
+
static bytecode = _bytecode;
|
|
244
|
+
static abi = _abi;
|
|
245
|
+
static createInterface() {
|
|
246
|
+
return new Interface(_abi);
|
|
247
|
+
}
|
|
248
|
+
static connect(address, runner) {
|
|
249
|
+
return new Contract(address, _abi, runner);
|
|
250
|
+
}
|
|
251
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web3dotorg/evm-slc-core-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"author": "<TBD>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"lib.commonjs",
|
|
13
13
|
"lib.esm",
|
|
14
|
+
"abi/**",
|
|
14
15
|
"!**/*.tsbuildinfo"
|
|
15
16
|
],
|
|
16
17
|
"homepage": "https://github.com/web3dotorg/evm-slc-core#readme",
|