@skalenetwork/upgrade-tools 3.0.0-merge-stable.1 → 3.0.0-proxy-admin.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/dist/hardhat.config.d.ts +3 -3
- package/dist/hardhat.config.js +6 -4
- package/dist/hardhat.config.js.map +1 -0
- package/dist/src/abi.d.ts +2 -2
- package/dist/src/abi.js +8 -4
- package/dist/src/abi.js.map +1 -0
- package/dist/src/contractFactory.d.ts +4 -0
- package/dist/src/contractFactory.js +84 -0
- package/dist/src/contractFactory.js.map +1 -0
- package/dist/src/deploy.d.ts +4 -4
- package/dist/src/deploy.js +59 -60
- package/dist/src/deploy.js.map +1 -0
- package/dist/src/exitCodes.d.ts +7 -0
- package/dist/src/exitCodes.js +12 -0
- package/dist/src/exitCodes.js.map +1 -0
- package/dist/src/gnosis-safe.d.ts +2 -2
- package/dist/src/gnosis-safe.js +125 -81
- package/dist/src/gnosis-safe.js.map +1 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -0
- package/dist/src/nonceProvider.d.ts +10 -0
- package/dist/src/nonceProvider.js +34 -0
- package/dist/src/nonceProvider.js.map +1 -0
- package/dist/src/submitters/auto-submitter.d.ts +19 -5
- package/dist/src/submitters/auto-submitter.js +128 -118
- package/dist/src/submitters/auto-submitter.js.map +1 -0
- package/dist/src/submitters/eoa-submitter.d.ts +3 -2
- package/dist/src/submitters/eoa-submitter.js +19 -13
- package/dist/src/submitters/eoa-submitter.js.map +1 -0
- package/dist/src/submitters/index.js +1 -0
- package/dist/src/submitters/index.js.map +1 -0
- package/dist/src/submitters/safe-ima-legacy-marionette-submitter.d.ts +4 -3
- package/dist/src/submitters/safe-ima-legacy-marionette-submitter.js +14 -13
- package/dist/src/submitters/safe-ima-legacy-marionette-submitter.js.map +1 -0
- package/dist/src/submitters/safe-ima-marionette-submitter.d.ts +3 -3
- package/dist/src/submitters/safe-ima-marionette-submitter.js +13 -11
- package/dist/src/submitters/safe-ima-marionette-submitter.js.map +1 -0
- package/dist/src/submitters/safe-submitter.d.ts +4 -4
- package/dist/src/submitters/safe-submitter.js +3 -2
- package/dist/src/submitters/safe-submitter.js.map +1 -0
- package/dist/src/submitters/safe-to-ima-submitter.d.ts +11 -6
- package/dist/src/submitters/safe-to-ima-submitter.js +23 -15
- package/dist/src/submitters/safe-to-ima-submitter.js.map +1 -0
- package/dist/src/submitters/submitter.d.ts +3 -3
- package/dist/src/submitters/submitter.js +11 -7
- package/dist/src/submitters/submitter.js.map +1 -0
- package/dist/src/submitters/types/marionette.d.ts +6 -3
- package/dist/src/submitters/types/marionette.js +1 -0
- package/dist/src/submitters/types/marionette.js.map +1 -0
- package/dist/src/types/SkaleManifestData.js +1 -0
- package/dist/src/types/SkaleManifestData.js.map +1 -0
- package/dist/src/types/upgrader.d.ts +12 -0
- package/dist/src/types/upgrader.js +3 -0
- package/dist/src/types/upgrader.js.map +1 -0
- package/dist/src/upgrader.d.ts +26 -7
- package/dist/src/upgrader.js +175 -96
- package/dist/src/upgrader.js.map +1 -0
- package/dist/src/verification.d.ts +2 -2
- package/dist/src/verification.js +53 -28
- package/dist/src/verification.js.map +1 -0
- package/dist/src/version.js +11 -6
- package/dist/src/version.js.map +1 -0
- package/dist/typechain-types/AdminUpgradeabilityProxy.d.ts +59 -54
- package/dist/typechain-types/AdminUpgradeabilityProxy.js +1 -0
- package/dist/typechain-types/AdminUpgradeabilityProxy.js.map +1 -0
- package/dist/typechain-types/ProxyAdmin.d.ts +94 -137
- package/dist/typechain-types/ProxyAdmin.js +1 -0
- package/dist/typechain-types/ProxyAdmin.js.map +1 -0
- package/dist/typechain-types/common.d.ts +40 -11
- package/dist/typechain-types/common.js +1 -0
- package/dist/typechain-types/common.js.map +1 -0
- package/dist/typechain-types/factories/AdminUpgradeabilityProxy__factory.d.ts +71 -41
- package/dist/typechain-types/factories/AdminUpgradeabilityProxy__factory.js +8 -11
- package/dist/typechain-types/factories/AdminUpgradeabilityProxy__factory.js.map +1 -0
- package/dist/typechain-types/factories/ProxyAdmin__factory.d.ts +129 -41
- package/dist/typechain-types/factories/ProxyAdmin__factory.js +8 -11
- package/dist/typechain-types/factories/ProxyAdmin__factory.js.map +1 -0
- package/dist/typechain-types/factories/index.d.ts +2 -0
- package/dist/typechain-types/factories/index.js +11 -0
- package/dist/typechain-types/factories/index.js.map +1 -0
- package/dist/typechain-types/index.d.ts +1 -0
- package/dist/typechain-types/index.js +26 -1
- package/dist/typechain-types/index.js.map +1 -0
- package/package.json +15 -14
- package/dist/src/multiSend.d.ts +0 -2
- package/dist/src/multiSend.js +0 -46
|
@@ -1,49 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, BytesLike, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { PayableOverrides } from "../common";
|
|
3
4
|
import type { AdminUpgradeabilityProxy, AdminUpgradeabilityProxyInterface } from "../AdminUpgradeabilityProxy";
|
|
4
5
|
type AdminUpgradeabilityProxyConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
5
6
|
export declare class AdminUpgradeabilityProxy__factory extends ContractFactory {
|
|
6
7
|
constructor(...args: AdminUpgradeabilityProxyConstructorParams);
|
|
7
|
-
|
|
8
|
-
from?: string
|
|
9
|
-
}): Promise<
|
|
10
|
-
|
|
11
|
-
from?: string
|
|
12
|
-
}):
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly contractName: "AdminUpgradeabilityProxy";
|
|
8
|
+
getDeployTransaction(logic: AddressLike, admin: AddressLike, data: BytesLike, overrides?: PayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(logic: AddressLike, admin: AddressLike, data: BytesLike, overrides?: PayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<AdminUpgradeabilityProxy & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): AdminUpgradeabilityProxy__factory;
|
|
17
17
|
static readonly bytecode = "0x608060405260405162000ee038038062000ee08339810160408190526200002691620004a3565b8282828281620000398282600062000053565b506200004790508262000090565b505050505050620005d6565b6200005e83620000eb565b6000825111806200006c5750805b156200008b576200008983836200012d60201b620001791760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f620000bb6200015c565b604080516001600160a01b03928316815291841660208301520160405180910390a1620000e88162000195565b50565b620000f6816200024a565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606062000155838360405180606001604052806027815260200162000eb960279139620002fe565b9392505050565b60006200018660008051602062000e9983398151915260001b6200037d60201b620001a51760201c565b546001600160a01b0316919050565b6001600160a01b038116620002005760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b806200022960008051602062000e9983398151915260001b6200037d60201b620001a51760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b62000260816200038060201b620001a81760201c565b620002c45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401620001f7565b80620002297f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6200037d60201b620001a51760201c565b6060600080856001600160a01b0316856040516200031d919062000583565b600060405180830381855af49150503d80600081146200035a576040519150601f19603f3d011682016040523d82523d6000602084013e6200035f565b606091505b50909250905062000373868383876200038f565b9695505050505050565b90565b6001600160a01b03163b151590565b6060831562000400578251620003f8576001600160a01b0385163b620003f85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620001f7565b50816200040c565b6200040c838362000414565b949350505050565b815115620004255781518083602001fd5b8060405162461bcd60e51b8152600401620001f79190620005a1565b80516001600160a01b03811681146200045957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200049157818101518382015260200162000477565b83811115620000895750506000910152565b600080600060608486031215620004b957600080fd5b620004c48462000441565b9250620004d46020850162000441565b60408501519092506001600160401b0380821115620004f257600080fd5b818601915086601f8301126200050757600080fd5b8151818111156200051c576200051c6200045e565b604051601f8201601f19908116603f011681019083821181831017156200054757620005476200045e565b816040528281528960208487010111156200056157600080fd5b6200057483602083016020880162000474565b80955050505050509250925092565b600082516200059781846020870162000474565b9190910192915050565b6020815260008251806020840152620005c281604085016020870162000474565b601f01601f19169190910160400192915050565b6108b380620005e66000396000f3fe60806040523661001357610011610017565b005b6100115b61001f6101b7565b6001600160a01b0316336001600160a01b0316141561016f5760606001600160e01b031960003516631b2ce7f360e11b8114156100655761005e6101ea565b9150610167565b6001600160e01b0319811663278f794360e11b14156100865761005e610241565b6001600160e01b031981166308f2839760e41b14156100a75761005e610287565b6001600160e01b031981166303e1469160e61b14156100c85761005e6102b8565b6001600160e01b03198116635c60da1b60e01b14156100e95761005e6102f8565b60405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a4015b60405180910390fd5b815160208301f35b61017761030c565b565b606061019e83836040518060600160405280602781526020016108576027913961031c565b9392505050565b90565b6001600160a01b03163b151590565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b60606101f4610394565b600061020336600481846106a2565b81019061021091906106e8565b905061022d8160405180602001604052806000815250600061039f565b505060408051602081019091526000815290565b606060008061025336600481846106a2565b8101906102609190610719565b915091506102708282600161039f565b604051806020016040528060008152509250505090565b6060610291610394565b60006102a036600481846106a2565b8101906102ad91906106e8565b905061022d816103cb565b60606102c2610394565b60006102cc6101b7565b604080516001600160a01b03831660208201529192500160405160208183030381529060405291505090565b6060610302610394565b60006102cc610422565b610177610317610422565b610431565b6060600080856001600160a01b0316856040516103399190610807565b600060405180830381855af49150503d8060008114610374576040519150601f19603f3d011682016040523d82523d6000602084013e610379565b606091505b509150915061038a86838387610455565b9695505050505050565b341561017757600080fd5b6103a8836104d3565b6000825111806103b55750805b156103c6576103c48383610179565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103f46101b7565b604080516001600160a01b03928316815291841660208301520160405180910390a161041f81610513565b50565b600061042c6105bc565b905090565b3660008037600080366000845af43d6000803e808015610450573d6000f35b3d6000fd5b606083156104c15782516104ba576001600160a01b0385163b6104ba5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161015e565b50816104cb565b6104cb83836105e4565b949350505050565b6104dc8161060e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0381166105785760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b606482015260840161015e565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80546001600160a01b0319166001600160a01b039290921691909117905550565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6101db565b8151156105f45781518083602001fd5b8060405162461bcd60e51b815260040161015e9190610823565b6001600160a01b0381163b61067b5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161015e565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc61059b565b600080858511156106b257600080fd5b838611156106bf57600080fd5b5050820193919092039150565b80356001600160a01b03811681146106e357600080fd5b919050565b6000602082840312156106fa57600080fd5b61019e826106cc565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561072c57600080fd5b610735836106cc565b9150602083013567ffffffffffffffff8082111561075257600080fd5b818501915085601f83011261076657600080fd5b81358181111561077857610778610703565b604051601f8201601f19908116603f011681019083821181831017156107a0576107a0610703565b816040528281528860208487010111156107b957600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60005b838110156107f65781810151838201526020016107de565b838111156103c45750506000910152565b600082516108198184602087016107db565b9190910192915050565b60208152600082518060208401526108428160408501602087016107db565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220c305b1ecbe12f30c701a08768fe5424f3f90ab320940a940a3ef1f7469a68ab164736f6c63430008090033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564";
|
|
18
|
-
static readonly abi:
|
|
19
|
-
inputs: {
|
|
20
|
-
internalType:
|
|
21
|
-
name:
|
|
22
|
-
type:
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "logic";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly internalType: "address";
|
|
25
|
+
readonly name: "admin";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
}, {
|
|
28
|
+
readonly internalType: "bytes";
|
|
29
|
+
readonly name: "data";
|
|
30
|
+
readonly type: "bytes";
|
|
31
|
+
}];
|
|
32
|
+
readonly stateMutability: "payable";
|
|
33
|
+
readonly type: "constructor";
|
|
34
|
+
}, {
|
|
35
|
+
readonly anonymous: false;
|
|
36
|
+
readonly inputs: readonly [{
|
|
37
|
+
readonly indexed: false;
|
|
38
|
+
readonly internalType: "address";
|
|
39
|
+
readonly name: "previousAdmin";
|
|
40
|
+
readonly type: "address";
|
|
41
|
+
}, {
|
|
42
|
+
readonly indexed: false;
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
readonly name: "newAdmin";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}];
|
|
47
|
+
readonly name: "AdminChanged";
|
|
48
|
+
readonly type: "event";
|
|
49
|
+
}, {
|
|
50
|
+
readonly anonymous: false;
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly indexed: true;
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
readonly name: "beacon";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}];
|
|
57
|
+
readonly name: "BeaconUpgraded";
|
|
58
|
+
readonly type: "event";
|
|
59
|
+
}, {
|
|
60
|
+
readonly anonymous: false;
|
|
61
|
+
readonly inputs: readonly [{
|
|
62
|
+
readonly indexed: true;
|
|
63
|
+
readonly internalType: "address";
|
|
64
|
+
readonly name: "implementation";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}];
|
|
67
|
+
readonly name: "Upgraded";
|
|
68
|
+
readonly type: "event";
|
|
69
|
+
}, {
|
|
70
|
+
readonly stateMutability: "payable";
|
|
71
|
+
readonly type: "fallback";
|
|
72
|
+
}, {
|
|
73
|
+
readonly stateMutability: "payable";
|
|
74
|
+
readonly type: "receive";
|
|
75
|
+
}];
|
|
46
76
|
static createInterface(): AdminUpgradeabilityProxyInterface;
|
|
47
|
-
static connect(address: string,
|
|
77
|
+
static connect(address: string, runner?: ContractRunner | null): AdminUpgradeabilityProxy;
|
|
48
78
|
}
|
|
49
79
|
export {};
|
|
@@ -91,27 +91,24 @@ class AdminUpgradeabilityProxy__factory extends ethers_1.ContractFactory {
|
|
|
91
91
|
else {
|
|
92
92
|
super(_abi, _bytecode, args[0]);
|
|
93
93
|
}
|
|
94
|
-
this.contractName = "AdminUpgradeabilityProxy";
|
|
95
|
-
}
|
|
96
|
-
deploy(logic, admin, data, overrides) {
|
|
97
|
-
return super.deploy(logic, admin, data, overrides || {});
|
|
98
94
|
}
|
|
99
95
|
getDeployTransaction(logic, admin, data, overrides) {
|
|
100
96
|
return super.getDeployTransaction(logic, admin, data, overrides || {});
|
|
101
97
|
}
|
|
102
|
-
|
|
103
|
-
return super.
|
|
98
|
+
deploy(logic, admin, data, overrides) {
|
|
99
|
+
return super.deploy(logic, admin, data, overrides || {});
|
|
104
100
|
}
|
|
105
|
-
connect(
|
|
106
|
-
return super.connect(
|
|
101
|
+
connect(runner) {
|
|
102
|
+
return super.connect(runner);
|
|
107
103
|
}
|
|
108
104
|
static createInterface() {
|
|
109
|
-
return new ethers_1.
|
|
105
|
+
return new ethers_1.Interface(_abi);
|
|
110
106
|
}
|
|
111
|
-
static connect(address,
|
|
112
|
-
return new ethers_1.Contract(address, _abi,
|
|
107
|
+
static connect(address, runner) {
|
|
108
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
113
109
|
}
|
|
114
110
|
}
|
|
115
111
|
exports.AdminUpgradeabilityProxy__factory = AdminUpgradeabilityProxy__factory;
|
|
116
112
|
AdminUpgradeabilityProxy__factory.bytecode = _bytecode;
|
|
117
113
|
AdminUpgradeabilityProxy__factory.abi = _abi;
|
|
114
|
+
//# sourceMappingURL=AdminUpgradeabilityProxy__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminUpgradeabilityProxy__factory.js","sourceRoot":"","sources":["../../../typechain-types/factories/AdminUpgradeabilityProxy__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB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
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../common";
|
|
3
4
|
import type { ProxyAdmin, ProxyAdminInterface } from "../ProxyAdmin";
|
|
4
5
|
type ProxyAdminConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
5
6
|
export declare class ProxyAdmin__factory extends ContractFactory {
|
|
6
7
|
constructor(...args: ProxyAdminConstructorParams);
|
|
7
|
-
|
|
8
|
-
from?: string
|
|
9
|
-
}): Promise<
|
|
10
|
-
|
|
11
|
-
from?: string
|
|
12
|
-
}):
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly contractName: "ProxyAdmin";
|
|
8
|
+
getDeployTransaction(overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<ProxyAdmin & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): ProxyAdmin__factory;
|
|
17
17
|
static readonly bytecode = "0x608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61069a8061007e6000396000f3fe60806040526004361061007b5760003560e01c80639623609d1161004e5780639623609d1461011157806399a88ec414610124578063f2fde38b14610144578063f3b7dead1461016457600080fd5b8063204e1c7a14610080578063715018a6146100bc5780637eff275e146100d35780638da5cb5b146100f3575b600080fd5b34801561008c57600080fd5b506100a061009b366004610499565b610184565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c857600080fd5b506100d1610215565b005b3480156100df57600080fd5b506100d16100ee3660046104bd565b610229565b3480156100ff57600080fd5b506000546001600160a01b03166100a0565b6100d161011f36600461050c565b610291565b34801561013057600080fd5b506100d161013f3660046104bd565b610300565b34801561015057600080fd5b506100d161015f366004610499565b610336565b34801561017057600080fd5b506100a061017f366004610499565b6103b4565b6000806000836001600160a01b03166040516101aa90635c60da1b60e01b815260040190565b600060405180830381855afa9150503d80600081146101e5576040519150601f19603f3d011682016040523d82523d6000602084013e6101ea565b606091505b5091509150816101f957600080fd5b8080602001905181019061020d91906105e2565b949350505050565b61021d6103da565b6102276000610434565b565b6102316103da565b6040516308f2839760e41b81526001600160a01b038281166004830152831690638f283970906024015b600060405180830381600087803b15801561027557600080fd5b505af1158015610289573d6000803e3d6000fd5b505050505050565b6102996103da565b60405163278f794360e11b81526001600160a01b03841690634f1ef2869034906102c990869086906004016105ff565b6000604051808303818588803b1580156102e257600080fd5b505af11580156102f6573d6000803e3d6000fd5b5050505050505050565b6103086103da565b604051631b2ce7f360e11b81526001600160a01b038281166004830152831690633659cfe69060240161025b565b61033e6103da565b6001600160a01b0381166103a85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6103b181610434565b50565b6000806000836001600160a01b03166040516101aa906303e1469160e61b815260040190565b6000546001600160a01b031633146102275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161039f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146103b157600080fd5b6000602082840312156104ab57600080fd5b81356104b681610484565b9392505050565b600080604083850312156104d057600080fd5b82356104db81610484565b915060208301356104eb81610484565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561052157600080fd5b833561052c81610484565b9250602084013561053c81610484565b9150604084013567ffffffffffffffff8082111561055957600080fd5b818601915086601f83011261056d57600080fd5b81358181111561057f5761057f6104f6565b604051601f8201601f19908116603f011681019083821181831017156105a7576105a76104f6565b816040528281528960208487010111156105c057600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6000602082840312156105f457600080fd5b81516104b681610484565b60018060a01b038316815260006020604081840152835180604085015260005b8181101561063b5785810183015185820160600152820161061f565b8181111561064d576000606083870101525b50601f01601f19169290920160600194935050505056fea26469706673582212207ad53e1008cce369999f6b5f2f77109510b404ff1de9b47b639981fd68e6239264736f6c63430008090033";
|
|
18
|
-
static readonly abi:
|
|
19
|
-
anonymous:
|
|
20
|
-
inputs: {
|
|
21
|
-
indexed:
|
|
22
|
-
internalType:
|
|
23
|
-
name:
|
|
24
|
-
type:
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly anonymous: false;
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly indexed: true;
|
|
22
|
+
readonly internalType: "address";
|
|
23
|
+
readonly name: "previousOwner";
|
|
24
|
+
readonly type: "address";
|
|
25
|
+
}, {
|
|
26
|
+
readonly indexed: true;
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
readonly name: "newOwner";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}];
|
|
31
|
+
readonly name: "OwnershipTransferred";
|
|
32
|
+
readonly type: "event";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly internalType: "contract ITransparentUpgradeableProxy";
|
|
36
|
+
readonly name: "proxy";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly internalType: "address";
|
|
40
|
+
readonly name: "newAdmin";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
}];
|
|
43
|
+
readonly name: "changeProxyAdmin";
|
|
44
|
+
readonly outputs: readonly [];
|
|
45
|
+
readonly stateMutability: "nonpayable";
|
|
46
|
+
readonly type: "function";
|
|
47
|
+
}, {
|
|
48
|
+
readonly inputs: readonly [{
|
|
49
|
+
readonly internalType: "contract ITransparentUpgradeableProxy";
|
|
50
|
+
readonly name: "proxy";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
}];
|
|
53
|
+
readonly name: "getProxyAdmin";
|
|
54
|
+
readonly outputs: readonly [{
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}];
|
|
59
|
+
readonly stateMutability: "view";
|
|
60
|
+
readonly type: "function";
|
|
61
|
+
}, {
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly internalType: "contract ITransparentUpgradeableProxy";
|
|
64
|
+
readonly name: "proxy";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}];
|
|
67
|
+
readonly name: "getProxyImplementation";
|
|
68
|
+
readonly outputs: readonly [{
|
|
69
|
+
readonly internalType: "address";
|
|
70
|
+
readonly name: "";
|
|
71
|
+
readonly type: "address";
|
|
72
|
+
}];
|
|
73
|
+
readonly stateMutability: "view";
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [];
|
|
77
|
+
readonly name: "owner";
|
|
78
|
+
readonly outputs: readonly [{
|
|
79
|
+
readonly internalType: "address";
|
|
80
|
+
readonly name: "";
|
|
81
|
+
readonly type: "address";
|
|
82
|
+
}];
|
|
83
|
+
readonly stateMutability: "view";
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
}, {
|
|
86
|
+
readonly inputs: readonly [];
|
|
87
|
+
readonly name: "renounceOwnership";
|
|
88
|
+
readonly outputs: readonly [];
|
|
89
|
+
readonly stateMutability: "nonpayable";
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [{
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "newOwner";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}];
|
|
97
|
+
readonly name: "transferOwnership";
|
|
98
|
+
readonly outputs: readonly [];
|
|
99
|
+
readonly stateMutability: "nonpayable";
|
|
100
|
+
readonly type: "function";
|
|
101
|
+
}, {
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly internalType: "contract ITransparentUpgradeableProxy";
|
|
104
|
+
readonly name: "proxy";
|
|
105
|
+
readonly type: "address";
|
|
106
|
+
}, {
|
|
107
|
+
readonly internalType: "address";
|
|
108
|
+
readonly name: "implementation";
|
|
109
|
+
readonly type: "address";
|
|
110
|
+
}];
|
|
111
|
+
readonly name: "upgrade";
|
|
112
|
+
readonly outputs: readonly [];
|
|
113
|
+
readonly stateMutability: "nonpayable";
|
|
114
|
+
readonly type: "function";
|
|
115
|
+
}, {
|
|
116
|
+
readonly inputs: readonly [{
|
|
117
|
+
readonly internalType: "contract ITransparentUpgradeableProxy";
|
|
118
|
+
readonly name: "proxy";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
}, {
|
|
121
|
+
readonly internalType: "address";
|
|
122
|
+
readonly name: "implementation";
|
|
123
|
+
readonly type: "address";
|
|
124
|
+
}, {
|
|
125
|
+
readonly internalType: "bytes";
|
|
126
|
+
readonly name: "data";
|
|
127
|
+
readonly type: "bytes";
|
|
128
|
+
}];
|
|
129
|
+
readonly name: "upgradeAndCall";
|
|
130
|
+
readonly outputs: readonly [];
|
|
131
|
+
readonly stateMutability: "payable";
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
}];
|
|
46
134
|
static createInterface(): ProxyAdminInterface;
|
|
47
|
-
static connect(address: string,
|
|
135
|
+
static connect(address: string, runner?: ContractRunner | null): ProxyAdmin;
|
|
48
136
|
}
|
|
49
137
|
export {};
|
|
@@ -166,27 +166,24 @@ class ProxyAdmin__factory extends ethers_1.ContractFactory {
|
|
|
166
166
|
else {
|
|
167
167
|
super(_abi, _bytecode, args[0]);
|
|
168
168
|
}
|
|
169
|
-
this.contractName = "ProxyAdmin";
|
|
170
|
-
}
|
|
171
|
-
deploy(overrides) {
|
|
172
|
-
return super.deploy(overrides || {});
|
|
173
169
|
}
|
|
174
170
|
getDeployTransaction(overrides) {
|
|
175
171
|
return super.getDeployTransaction(overrides || {});
|
|
176
172
|
}
|
|
177
|
-
|
|
178
|
-
return super.
|
|
173
|
+
deploy(overrides) {
|
|
174
|
+
return super.deploy(overrides || {});
|
|
179
175
|
}
|
|
180
|
-
connect(
|
|
181
|
-
return super.connect(
|
|
176
|
+
connect(runner) {
|
|
177
|
+
return super.connect(runner);
|
|
182
178
|
}
|
|
183
179
|
static createInterface() {
|
|
184
|
-
return new ethers_1.
|
|
180
|
+
return new ethers_1.Interface(_abi);
|
|
185
181
|
}
|
|
186
|
-
static connect(address,
|
|
187
|
-
return new ethers_1.Contract(address, _abi,
|
|
182
|
+
static connect(address, runner) {
|
|
183
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
188
184
|
}
|
|
189
185
|
}
|
|
190
186
|
exports.ProxyAdmin__factory = ProxyAdmin__factory;
|
|
191
187
|
ProxyAdmin__factory.bytecode = _bytecode;
|
|
192
188
|
ProxyAdmin__factory.abi = _abi;
|
|
189
|
+
//# sourceMappingURL=ProxyAdmin__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProxyAdmin__factory.js","sourceRoot":"","sources":["../../../typechain-types/factories/ProxyAdmin__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAKhB,MAAM,IAAI,GAAG;IACX;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,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AAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,mBAAoB,SAAQ,wBAAe;IACtD,YAAY,GAAG,IAAiC;QAC9C,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE;YACrB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;SAChB;aAAM;YACL,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SACjC;IACH,CAAC;IAEQ,oBAAoB,CAC3B,SAAmD;QAEnD,OAAO,KAAK,CAAC,oBAAoB,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;IACQ,MAAM,CAAC,SAAmD;QACjE,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAIlC,CAAC;IACJ,CAAC;IACQ,OAAO,CAAC,MAA6B;QAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAwB,CAAC;IACtD,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAwB,CAAC;IACpD,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,MAA8B;QAC5D,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAA0B,CAAC;IACtE,CAAC;;AAhCH,kDAiCC;AARiB,4BAAQ,GAAG,SAAS,CAAC;AACrB,uBAAG,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProxyAdmin__factory = exports.AdminUpgradeabilityProxy__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var AdminUpgradeabilityProxy__factory_1 = require("./AdminUpgradeabilityProxy__factory");
|
|
8
|
+
Object.defineProperty(exports, "AdminUpgradeabilityProxy__factory", { enumerable: true, get: function () { return AdminUpgradeabilityProxy__factory_1.AdminUpgradeabilityProxy__factory; } });
|
|
9
|
+
var ProxyAdmin__factory_1 = require("./ProxyAdmin__factory");
|
|
10
|
+
Object.defineProperty(exports, "ProxyAdmin__factory", { enumerable: true, get: function () { return ProxyAdmin__factory_1.ProxyAdmin__factory; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../typechain-types/factories/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,yFAAwF;AAA/E,sJAAA,iCAAiC,OAAA;AAC1C,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { AdminUpgradeabilityProxy } from "./AdminUpgradeabilityProxy";
|
|
2
2
|
export type { ProxyAdmin } from "./ProxyAdmin";
|
|
3
|
+
export * as factories from "./factories";
|
|
3
4
|
export { AdminUpgradeabilityProxy__factory } from "./factories/AdminUpgradeabilityProxy__factory";
|
|
4
5
|
export { ProxyAdmin__factory } from "./factories/ProxyAdmin__factory";
|
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProxyAdmin__factory = exports.AdminUpgradeabilityProxy__factory = void 0;
|
|
26
|
+
exports.ProxyAdmin__factory = exports.AdminUpgradeabilityProxy__factory = exports.factories = void 0;
|
|
27
|
+
exports.factories = __importStar(require("./factories"));
|
|
4
28
|
var AdminUpgradeabilityProxy__factory_1 = require("./factories/AdminUpgradeabilityProxy__factory");
|
|
5
29
|
Object.defineProperty(exports, "AdminUpgradeabilityProxy__factory", { enumerable: true, get: function () { return AdminUpgradeabilityProxy__factory_1.AdminUpgradeabilityProxy__factory; } });
|
|
6
30
|
var ProxyAdmin__factory_1 = require("./factories/ProxyAdmin__factory");
|
|
7
31
|
Object.defineProperty(exports, "ProxyAdmin__factory", { enumerable: true, get: function () { return ProxyAdmin__factory_1.ProxyAdmin__factory; } });
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../typechain-types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,yDAAyC;AACzC,mGAAkG;AAAzF,sJAAA,iCAAiC,OAAA;AAC1C,uEAAsE;AAA7D,0HAAA,mBAAmB,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skalenetwork/upgrade-tools",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-proxy-admin.0",
|
|
4
4
|
"description": "Scripts to support upgrades of smart contracts",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**/*"
|
|
@@ -25,33 +25,34 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@openzeppelin/contracts-upgradeable": "^4.4.2",
|
|
27
27
|
"@tsconfig/recommended": "^1.0.2",
|
|
28
|
-
"@typechain/ethers-
|
|
29
|
-
"@typechain/hardhat": "^
|
|
28
|
+
"@typechain/ethers-v6": "^0.5.1",
|
|
29
|
+
"@typechain/hardhat": "^9.1.0",
|
|
30
30
|
"@types/node": "^20.6.0",
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
|
32
32
|
"@typescript-eslint/parser": "^6.6.0",
|
|
33
|
-
"cspell": "^
|
|
33
|
+
"cspell": "^8.8.3",
|
|
34
34
|
"eslint": "^8.15.0",
|
|
35
35
|
"install-peers-cli": "^2.2.0",
|
|
36
36
|
"ts-node": "^10.5.0",
|
|
37
|
-
"typechain": "^8.2
|
|
37
|
+
"typechain": "^8.3.2",
|
|
38
38
|
"typescript": "^5.1.6"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@safe-global/api-kit": "^
|
|
42
|
-
"@safe-global/protocol-kit": "^
|
|
43
|
-
"@safe-global/safe-core-sdk-types": "^
|
|
44
|
-
"@skalenetwork/skale-contracts-ethers-
|
|
41
|
+
"@safe-global/api-kit": "^2.4.1",
|
|
42
|
+
"@safe-global/protocol-kit": "^4.0.1",
|
|
43
|
+
"@safe-global/safe-core-sdk-types": "^5.0.1",
|
|
44
|
+
"@skalenetwork/skale-contracts-ethers-v6": "^1.0.2-develop.0",
|
|
45
45
|
"axios": "^1.4.0",
|
|
46
|
-
"ethereumjs-util": "^7.1.4"
|
|
46
|
+
"ethereumjs-util": "^7.1.4",
|
|
47
|
+
"semaphore-async-await": "^1.5.1"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
50
|
+
"@nomicfoundation/hardhat-ethers": "^3.0.0",
|
|
49
51
|
"@nomicfoundation/hardhat-verify": "^1.1.1",
|
|
50
|
-
"@
|
|
51
|
-
"@openzeppelin/hardhat-upgrades": "^1.14.0",
|
|
52
|
+
"@openzeppelin/hardhat-upgrades": "^3.1.1",
|
|
52
53
|
"@openzeppelin/upgrades-core": "^1.27.1",
|
|
53
54
|
"@types/mocha": "^9.1.0",
|
|
54
|
-
"ethers": "^
|
|
55
|
-
"hardhat": "^2.
|
|
55
|
+
"ethers": "^6.7.1",
|
|
56
|
+
"hardhat": "^2.9.9"
|
|
56
57
|
}
|
|
57
58
|
}
|
package/dist/src/multiSend.d.ts
DELETED
package/dist/src/multiSend.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.encodeTransaction = void 0;
|
|
4
|
-
const ethers_1 = require("ethers");
|
|
5
|
-
function padWithZeros(value, targetLength) {
|
|
6
|
-
return ("0".repeat(targetLength) + value).slice(-targetLength);
|
|
7
|
-
}
|
|
8
|
-
function encodeTransaction(operation, to, value, data) {
|
|
9
|
-
/// operation as a uint8 with 0 for a call or 1 for a delegatecall (=> 1 byte),
|
|
10
|
-
/// to as a address (=> 20 bytes),
|
|
11
|
-
/// value as a uint256 (=> 32 bytes),
|
|
12
|
-
/// data length as a uint256 (=> 32 bytes),
|
|
13
|
-
/// data as bytes.
|
|
14
|
-
let _operation;
|
|
15
|
-
if (operation === 0) {
|
|
16
|
-
_operation = "00";
|
|
17
|
-
}
|
|
18
|
-
else if (operation === 1) {
|
|
19
|
-
_operation = "01";
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
throw Error(`Operation has an incorrect value`);
|
|
23
|
-
}
|
|
24
|
-
let _to = to;
|
|
25
|
-
if (to.startsWith("0x")) {
|
|
26
|
-
_to = _to.slice(2);
|
|
27
|
-
}
|
|
28
|
-
_to = padWithZeros(_to, 20 * 2);
|
|
29
|
-
const _value = padWithZeros(ethers_1.BigNumber.from(value).toHexString().slice(2), 32 * 2);
|
|
30
|
-
let _data = data;
|
|
31
|
-
if (data.startsWith("0x")) {
|
|
32
|
-
_data = _data.slice(2);
|
|
33
|
-
}
|
|
34
|
-
if (_data.length % 2 !== 0) {
|
|
35
|
-
_data = "0" + _data;
|
|
36
|
-
}
|
|
37
|
-
const _dataLength = padWithZeros((_data.length / 2).toString(16), 32 * 2);
|
|
38
|
-
return "0x" + [
|
|
39
|
-
_operation,
|
|
40
|
-
_to,
|
|
41
|
-
_value,
|
|
42
|
-
_dataLength,
|
|
43
|
-
_data,
|
|
44
|
-
].join("");
|
|
45
|
-
}
|
|
46
|
-
exports.encodeTransaction = encodeTransaction;
|