@skalenetwork/upgrade-tools 3.0.0-linter.34 → 3.0.0-linter.36
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 +1 -1
- package/dist/hardhat.config.js +2 -2
- package/dist/hardhat.config.js.map +1 -1
- package/dist/src/abi.d.ts +1 -1
- package/dist/src/abi.js +1 -1
- package/dist/src/abi.js.map +1 -1
- package/dist/src/contractFactory.d.ts +1 -1
- package/dist/src/deploy.d.ts +1 -1
- package/dist/src/deploy.js +2 -2
- package/dist/src/deploy.js.map +1 -1
- package/dist/src/gnosis-safe.d.ts +2 -2
- package/dist/src/gnosis-safe.js +35 -53
- package/dist/src/gnosis-safe.js.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/nonceProvider.js +1 -1
- package/dist/src/nonceProvider.js.map +1 -1
- package/dist/src/submitters/auto-submitter.js +11 -13
- package/dist/src/submitters/auto-submitter.js.map +1 -1
- package/dist/src/submitters/eoa-submitter.d.ts +2 -2
- package/dist/src/submitters/eoa-submitter.js +1 -1
- package/dist/src/submitters/eoa-submitter.js.map +1 -1
- package/dist/src/submitters/safe-ima-legacy-marionette-submitter.d.ts +4 -3
- package/dist/src/submitters/safe-ima-legacy-marionette-submitter.js +6 -5
- package/dist/src/submitters/safe-ima-legacy-marionette-submitter.js.map +1 -1
- package/dist/src/submitters/safe-ima-marionette-submitter.d.ts +2 -2
- package/dist/src/submitters/safe-ima-marionette-submitter.js +10 -11
- package/dist/src/submitters/safe-ima-marionette-submitter.js.map +1 -1
- package/dist/src/submitters/safe-submitter.d.ts +4 -4
- package/dist/src/submitters/safe-submitter.js.map +1 -1
- package/dist/src/submitters/safe-to-ima-submitter.d.ts +4 -4
- package/dist/src/submitters/safe-to-ima-submitter.js +4 -2
- package/dist/src/submitters/safe-to-ima-submitter.js.map +1 -1
- package/dist/src/submitters/submitter.d.ts +2 -2
- package/dist/src/submitters/types/marionette.d.ts +5 -1
- package/dist/src/upgrader.d.ts +5 -3
- package/dist/src/upgrader.js +27 -62
- package/dist/src/upgrader.js.map +1 -1
- package/dist/src/verification.js +1 -1
- package/dist/src/verification.js.map +1 -1
- package/dist/typechain-types/AdminUpgradeabilityProxy.d.ts +59 -54
- package/dist/typechain-types/ProxyAdmin.d.ts +94 -137
- package/dist/typechain-types/common.d.ts +40 -11
- package/dist/typechain-types/factories/AdminUpgradeabilityProxy__factory.d.ts +71 -41
- package/dist/typechain-types/factories/AdminUpgradeabilityProxy__factory.js +7 -11
- package/dist/typechain-types/factories/AdminUpgradeabilityProxy__factory.js.map +1 -1
- package/dist/typechain-types/factories/ProxyAdmin__factory.d.ts +129 -41
- package/dist/typechain-types/factories/ProxyAdmin__factory.js +7 -11
- package/dist/typechain-types/factories/ProxyAdmin__factory.js.map +1 -1
- 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 +25 -1
- package/dist/typechain-types/index.js.map +1 -1
- package/package.json +13 -13
- package/dist/src/multiSend.d.ts +0 -10
- package/dist/src/multiSend.js +0 -26
- package/dist/src/multiSend.js.map +0 -1
|
@@ -1,49 +1,137 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
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,25 +166,21 @@ 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;
|
|
@@ -1 +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,
|
|
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,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,uCAAuC;gBACrD,IAAI,EAAE,OAAO;gBACb,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AoB,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,6 +1,30 @@
|
|
|
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");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../typechain-types/index.ts"],"names":[],"mappings":"
|
|
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-linter.
|
|
3
|
+
"version": "3.0.0-linter.36",
|
|
4
4
|
"description": "Scripts to support upgrades of smart contracts",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**/*"
|
|
@@ -25,33 +25,33 @@
|
|
|
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.0",
|
|
45
45
|
"axios": "^1.4.0",
|
|
46
46
|
"ethereumjs-util": "^7.1.4"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
+
"@nomicfoundation/hardhat-ethers": "^3.0.0",
|
|
49
50
|
"@nomicfoundation/hardhat-verify": "^1.1.1",
|
|
50
|
-
"@
|
|
51
|
-
"@openzeppelin/hardhat-upgrades": "^1.14.0",
|
|
51
|
+
"@openzeppelin/hardhat-upgrades": "^3.1.1",
|
|
52
52
|
"@openzeppelin/upgrades-core": "^1.27.1",
|
|
53
53
|
"@types/mocha": "^9.1.0",
|
|
54
|
-
"ethers": "^
|
|
55
|
-
"hardhat": "2.
|
|
54
|
+
"ethers": "^6.1.0",
|
|
55
|
+
"hardhat": "^2.9.9"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/dist/src/multiSend.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BigNumberish, BytesLike } from "ethers";
|
|
2
|
-
import { OperationType } from "@safe-global/safe-core-sdk-types";
|
|
3
|
-
interface Transaction {
|
|
4
|
-
operation: OperationType;
|
|
5
|
-
to: string;
|
|
6
|
-
value: BigNumberish;
|
|
7
|
-
data: BytesLike;
|
|
8
|
-
}
|
|
9
|
-
export declare const encodeTransaction: (transaction: Transaction) => string;
|
|
10
|
-
export {};
|
package/dist/src/multiSend.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.encodeTransaction = void 0;
|
|
4
|
-
const utils_1 = require("ethers/lib/utils");
|
|
5
|
-
const OPERATION_BYTES = 1;
|
|
6
|
-
const ADDRESS_BYTES = 20;
|
|
7
|
-
const UINT256_BYTES = 32;
|
|
8
|
-
const TO_BYTES = ADDRESS_BYTES;
|
|
9
|
-
const VALUE_BYTES = UINT256_BYTES;
|
|
10
|
-
const DATA_LENGTH_BYTES = UINT256_BYTES;
|
|
11
|
-
const encodeTransaction = (transaction) => {
|
|
12
|
-
const operation = (0, utils_1.hexZeroPad)((0, utils_1.hexValue)(transaction.operation), OPERATION_BYTES);
|
|
13
|
-
const to = (0, utils_1.hexZeroPad)((0, utils_1.hexValue)(transaction.to), TO_BYTES);
|
|
14
|
-
const value = (0, utils_1.hexZeroPad)((0, utils_1.hexValue)(transaction.value), VALUE_BYTES);
|
|
15
|
-
const data = (0, utils_1.hexlify)(transaction.data);
|
|
16
|
-
const dataLength = (0, utils_1.hexZeroPad)((0, utils_1.hexValue)((0, utils_1.hexDataLength)(data)), DATA_LENGTH_BYTES);
|
|
17
|
-
return (0, utils_1.hexConcat)([
|
|
18
|
-
operation,
|
|
19
|
-
to,
|
|
20
|
-
value,
|
|
21
|
-
dataLength,
|
|
22
|
-
data
|
|
23
|
-
]);
|
|
24
|
-
};
|
|
25
|
-
exports.encodeTransaction = encodeTransaction;
|
|
26
|
-
//# sourceMappingURL=multiSend.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multiSend.js","sourceRoot":"","sources":["../../src/multiSend.ts"],"names":[],"mappings":";;;AACA,4CAM0B;AAsB1B,MAAM,eAAe,GAAG,CAAC,CAAC;AAC1B,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,QAAQ,GAAG,aAAa,CAAC;AAC/B,MAAM,WAAW,GAAG,aAAa,CAAC;AAClC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAEjC,MAAM,iBAAiB,GAAG,CAAC,WAAwB,EAAE,EAAE;IAC1D,MAAM,SAAS,GAAG,IAAA,kBAAU,EACxB,IAAA,gBAAQ,EAAC,WAAW,CAAC,SAAS,CAAC,EAC/B,eAAe,CAClB,CAAC;IACF,MAAM,EAAE,GAAG,IAAA,kBAAU,EACjB,IAAA,gBAAQ,EAAC,WAAW,CAAC,EAAE,CAAC,EACxB,QAAQ,CACX,CAAC;IACF,MAAM,KAAK,GAAG,IAAA,kBAAU,EACpB,IAAA,gBAAQ,EAAC,WAAW,CAAC,KAAK,CAAC,EAC3B,WAAW,CACd,CAAC;IACF,MAAM,IAAI,GAAG,IAAA,eAAO,EAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,UAAU,GAAG,IAAA,kBAAU,EACzB,IAAA,gBAAQ,EAAC,IAAA,qBAAa,EAAC,IAAI,CAAC,CAAC,EAC7B,iBAAiB,CACpB,CAAC;IAEF,OAAO,IAAA,iBAAS,EAAC;QACb,SAAS;QACT,EAAE;QACF,KAAK;QACL,UAAU;QACV,IAAI;KACP,CAAC,CAAC;AACP,CAAC,CAAC;AA1BW,QAAA,iBAAiB,qBA0B5B"}
|