@safe-global/safe-deployments 1.37.36 → 1.37.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -10
- package/dist/assets/v1.3.0/compatibility_fallback_handler.json +16 -6
- package/dist/assets/v1.3.0/create_call.json +16 -6
- package/dist/assets/v1.3.0/gnosis_safe.json +16 -6
- package/dist/assets/v1.3.0/gnosis_safe_l2.json +17 -7
- package/dist/assets/v1.3.0/multi_send.json +16 -6
- package/dist/assets/v1.3.0/multi_send_call_only.json +16 -6
- package/dist/assets/v1.3.0/proxy_factory.json +16 -6
- package/dist/assets/v1.3.0/sign_message_lib.json +16 -6
- package/dist/assets/v1.3.0/simulate_tx_accessor.json +16 -6
- package/dist/assets/v1.4.1/compatibility_fallback_handler.json +13 -3
- package/dist/assets/v1.4.1/create_call.json +13 -3
- package/dist/assets/v1.4.1/multi_send.json +13 -3
- package/dist/assets/v1.4.1/multi_send_call_only.json +13 -3
- package/dist/assets/v1.4.1/safe.json +13 -3
- package/dist/assets/v1.4.1/safe_l2.json +13 -3
- package/dist/assets/v1.4.1/safe_migration.json +14 -3
- package/dist/assets/v1.4.1/safe_proxy_factory.json +13 -3
- package/dist/assets/v1.4.1/safe_to_l2_migration.json +14 -3
- package/dist/assets/v1.4.1/safe_to_l2_setup.json +14 -3
- package/dist/assets/v1.4.1/sign_message_lib.json +13 -3
- package/dist/assets/v1.4.1/simulate_tx_accessor.json +13 -3
- package/dist/assets/v1.5.0/compatibility_fallback_handler.json +380 -0
- package/dist/assets/v1.5.0/create_call.json +85 -0
- package/dist/assets/v1.5.0/extensible_fallback_handler.json +440 -0
- package/dist/assets/v1.5.0/multi_send.json +37 -0
- package/dist/assets/v1.5.0/multi_send_call_only.json +32 -0
- package/dist/assets/v1.5.0/safe.json +1016 -0
- package/dist/assets/v1.5.0/safe_l2.json +1121 -0
- package/dist/assets/v1.5.0/safe_migration.json +133 -0
- package/dist/assets/v1.5.0/safe_proxy_factory.json +248 -0
- package/dist/assets/v1.5.0/safe_to_l2_setup.json +50 -0
- package/dist/assets/v1.5.0/sign_message_lib.json +64 -0
- package/dist/assets/v1.5.0/simulate_tx_accessor.json +68 -0
- package/dist/assets/v1.5.0/token_callback_handler.json +188 -0
- package/dist/deployments.d.ts +3 -2
- package/dist/deployments.js +52 -19
- package/dist/handler.d.ts +26 -0
- package/dist/handler.js +40 -8
- package/package.json +1 -1
- package/src/__tests__/assets.test.ts +0 -16
- package/src/__tests__/factories.test.ts +10 -4
- package/src/__tests__/handler.test.ts +49 -9
- package/src/__tests__/libs.test.ts +43 -10
- package/src/__tests__/safes.test.ts +70 -10
- package/src/__tests__/utils.test.ts +141 -95
- package/src/assets/v1.3.0/compatibility_fallback_handler.json +16 -6
- package/src/assets/v1.3.0/create_call.json +16 -6
- package/src/assets/v1.3.0/gnosis_safe.json +16 -6
- package/src/assets/v1.3.0/gnosis_safe_l2.json +17 -7
- package/src/assets/v1.3.0/multi_send.json +16 -6
- package/src/assets/v1.3.0/multi_send_call_only.json +16 -6
- package/src/assets/v1.3.0/proxy_factory.json +16 -6
- package/src/assets/v1.3.0/sign_message_lib.json +16 -6
- package/src/assets/v1.3.0/simulate_tx_accessor.json +16 -6
- package/src/assets/v1.4.1/compatibility_fallback_handler.json +13 -3
- package/src/assets/v1.4.1/create_call.json +13 -3
- package/src/assets/v1.4.1/multi_send.json +13 -3
- package/src/assets/v1.4.1/multi_send_call_only.json +13 -3
- package/src/assets/v1.4.1/safe.json +13 -3
- package/src/assets/v1.4.1/safe_l2.json +13 -3
- package/src/assets/v1.4.1/safe_migration.json +14 -3
- package/src/assets/v1.4.1/safe_proxy_factory.json +13 -3
- package/src/assets/v1.4.1/safe_to_l2_migration.json +14 -3
- package/src/assets/v1.4.1/safe_to_l2_setup.json +14 -3
- package/src/assets/v1.4.1/sign_message_lib.json +13 -3
- package/src/assets/v1.4.1/simulate_tx_accessor.json +13 -3
- package/src/assets/v1.5.0/compatibility_fallback_handler.json +380 -0
- package/src/assets/v1.5.0/create_call.json +85 -0
- package/src/assets/v1.5.0/extensible_fallback_handler.json +440 -0
- package/src/assets/v1.5.0/multi_send.json +37 -0
- package/src/assets/v1.5.0/multi_send_call_only.json +32 -0
- package/src/assets/v1.5.0/safe.json +1016 -0
- package/src/assets/v1.5.0/safe_l2.json +1121 -0
- package/src/assets/v1.5.0/safe_migration.json +133 -0
- package/src/assets/v1.5.0/safe_proxy_factory.json +248 -0
- package/src/assets/v1.5.0/safe_to_l2_setup.json +50 -0
- package/src/assets/v1.5.0/sign_message_lib.json +64 -0
- package/src/assets/v1.5.0/simulate_tx_accessor.json +68 -0
- package/src/assets/v1.5.0/token_callback_handler.json +188 -0
- package/src/deployments.ts +50 -15
- package/src/handler.ts +46 -6
- package/src/__tests__/assets/v1/v1.0.0/gnosis_safe.json +0 -796
- package/src/__tests__/assets/v1/v1.0.0/proxy_factory.json +0 -111
- package/src/__tests__/assets/v1/v1.1.1/create_and_add_modules.json +0 -59
- package/src/__tests__/assets/v1/v1.1.1/create_call.json +0 -90
- package/src/__tests__/assets/v1/v1.1.1/default_callback_handler.json +0 -212
- package/src/__tests__/assets/v1/v1.1.1/gnosis_safe.json +0 -1001
- package/src/__tests__/assets/v1/v1.1.1/multi_send.json +0 -45
- package/src/__tests__/assets/v1/v1.1.1/proxy_factory.json +0 -191
- package/src/__tests__/assets/v1/v1.2.0/gnosis_safe.json +0 -1022
- package/src/__tests__/assets/v1/v1.3.0/compatibility_fallback_handler.json +0 -588
- package/src/__tests__/assets/v1/v1.3.0/create_call.json +0 -331
- package/src/__tests__/assets/v1/v1.3.0/gnosis_safe.json +0 -1296
- package/src/__tests__/assets/v1/v1.3.0/gnosis_safe_l2.json +0 -1401
- package/src/__tests__/assets/v1/v1.3.0/multi_send.json +0 -283
- package/src/__tests__/assets/v1/v1.3.0/multi_send_call_only.json +0 -278
- package/src/__tests__/assets/v1/v1.3.0/proxy_factory.json +0 -426
- package/src/__tests__/assets/v1/v1.3.0/sign_message_lib.json +0 -310
- package/src/__tests__/assets/v1/v1.3.0/simulate_tx_accessor.json +0 -314
- package/src/__tests__/assets/v1/v1.4.1/compatibility_fallback_handler.json +0 -447
- package/src/__tests__/assets/v1/v1.4.1/create_call.json +0 -192
- package/src/__tests__/assets/v1/v1.4.1/multi_send.json +0 -144
- package/src/__tests__/assets/v1/v1.4.1/multi_send_call_only.json +0 -139
- package/src/__tests__/assets/v1/v1.4.1/safe.json +0 -1123
- package/src/__tests__/assets/v1/v1.4.1/safe_l2.json +0 -1228
- package/src/__tests__/assets/v1/v1.4.1/safe_proxy_factory.json +0 -263
- package/src/__tests__/assets/v1/v1.4.1/sign_message_lib.json +0 -171
- package/src/__tests__/assets/v1/v1.4.1/simulate_tx_accessor.json +0 -175
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
{
|
|
2
|
+
"released": true,
|
|
3
|
+
"contractName": "TokenCallbackHandler",
|
|
4
|
+
"version": "1.5.0",
|
|
5
|
+
"deployments": {
|
|
6
|
+
"canonical": {
|
|
7
|
+
"address": "0x54e86d004d71a8D2112ec75FaCE57D730b0433F3",
|
|
8
|
+
"codeHash": "0xcbc723172700efa52cc33ee26c7fc7e284edc8097f9dc307857fe525fec98cd8"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"networkAddresses": {
|
|
12
|
+
"1": "canonical",
|
|
13
|
+
"11155111": "canonical"
|
|
14
|
+
},
|
|
15
|
+
"abi": [
|
|
16
|
+
[
|
|
17
|
+
{
|
|
18
|
+
"inputs": [
|
|
19
|
+
{
|
|
20
|
+
"internalType": "address",
|
|
21
|
+
"name": "",
|
|
22
|
+
"type": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"internalType": "address",
|
|
26
|
+
"name": "",
|
|
27
|
+
"type": "address"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"internalType": "uint256[]",
|
|
31
|
+
"name": "",
|
|
32
|
+
"type": "uint256[]"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"internalType": "uint256[]",
|
|
36
|
+
"name": "",
|
|
37
|
+
"type": "uint256[]"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"internalType": "bytes",
|
|
41
|
+
"name": "",
|
|
42
|
+
"type": "bytes"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"name": "onERC1155BatchReceived",
|
|
46
|
+
"outputs": [
|
|
47
|
+
{
|
|
48
|
+
"internalType": "bytes4",
|
|
49
|
+
"name": "",
|
|
50
|
+
"type": "bytes4"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"stateMutability": "view",
|
|
54
|
+
"type": "function"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"inputs": [
|
|
58
|
+
{
|
|
59
|
+
"internalType": "address",
|
|
60
|
+
"name": "",
|
|
61
|
+
"type": "address"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"internalType": "address",
|
|
65
|
+
"name": "",
|
|
66
|
+
"type": "address"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"internalType": "uint256",
|
|
70
|
+
"name": "",
|
|
71
|
+
"type": "uint256"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"internalType": "uint256",
|
|
75
|
+
"name": "",
|
|
76
|
+
"type": "uint256"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"internalType": "bytes",
|
|
80
|
+
"name": "",
|
|
81
|
+
"type": "bytes"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"name": "onERC1155Received",
|
|
85
|
+
"outputs": [
|
|
86
|
+
{
|
|
87
|
+
"internalType": "bytes4",
|
|
88
|
+
"name": "",
|
|
89
|
+
"type": "bytes4"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"stateMutability": "view",
|
|
93
|
+
"type": "function"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"inputs": [
|
|
97
|
+
{
|
|
98
|
+
"internalType": "address",
|
|
99
|
+
"name": "",
|
|
100
|
+
"type": "address"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"internalType": "address",
|
|
104
|
+
"name": "",
|
|
105
|
+
"type": "address"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"internalType": "uint256",
|
|
109
|
+
"name": "",
|
|
110
|
+
"type": "uint256"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"internalType": "bytes",
|
|
114
|
+
"name": "",
|
|
115
|
+
"type": "bytes"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"name": "onERC721Received",
|
|
119
|
+
"outputs": [
|
|
120
|
+
{
|
|
121
|
+
"internalType": "bytes4",
|
|
122
|
+
"name": "",
|
|
123
|
+
"type": "bytes4"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"stateMutability": "view",
|
|
127
|
+
"type": "function"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"inputs": [
|
|
131
|
+
{
|
|
132
|
+
"internalType": "bytes4",
|
|
133
|
+
"name": "interfaceId",
|
|
134
|
+
"type": "bytes4"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"name": "supportsInterface",
|
|
138
|
+
"outputs": [
|
|
139
|
+
{
|
|
140
|
+
"internalType": "bool",
|
|
141
|
+
"name": "",
|
|
142
|
+
"type": "bool"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"stateMutability": "view",
|
|
146
|
+
"type": "function"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"inputs": [
|
|
150
|
+
{
|
|
151
|
+
"internalType": "address",
|
|
152
|
+
"name": "",
|
|
153
|
+
"type": "address"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"internalType": "address",
|
|
157
|
+
"name": "",
|
|
158
|
+
"type": "address"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"internalType": "address",
|
|
162
|
+
"name": "",
|
|
163
|
+
"type": "address"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"internalType": "uint256",
|
|
167
|
+
"name": "",
|
|
168
|
+
"type": "uint256"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"internalType": "bytes",
|
|
172
|
+
"name": "",
|
|
173
|
+
"type": "bytes"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"internalType": "bytes",
|
|
177
|
+
"name": "",
|
|
178
|
+
"type": "bytes"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"name": "tokensReceived",
|
|
182
|
+
"outputs": [],
|
|
183
|
+
"stateMutability": "pure",
|
|
184
|
+
"type": "function"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
]
|
|
188
|
+
}
|
package/dist/deployments.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { SingletonDeploymentJSON } from './types';
|
|
2
2
|
declare const _ACCESSOR_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
3
3
|
declare const _FACTORY_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
4
|
-
declare const
|
|
4
|
+
declare const _TOKEN_CALLBACK_HANDLER_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
5
5
|
declare const _COMPAT_FALLBACK_HANDLER_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
6
|
+
declare const _EXTENSIBLE_FALLBACK_HANDLER_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
6
7
|
declare const _SAFE_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
7
8
|
declare const _SAFE_L2_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
8
9
|
declare const _MULTI_SEND_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
@@ -12,4 +13,4 @@ declare const _SIGN_MESSAGE_LIB_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
|
12
13
|
declare const _SAFE_MIGRATION_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
13
14
|
declare const _SAFE_TO_L2_MIGRATION_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
14
15
|
declare const _SAFE_TO_L2_SETUP_DEPLOYMENTS: SingletonDeploymentJSON[];
|
|
15
|
-
export { _ACCESSOR_DEPLOYMENTS, _FACTORY_DEPLOYMENTS,
|
|
16
|
+
export { _ACCESSOR_DEPLOYMENTS, _FACTORY_DEPLOYMENTS, _TOKEN_CALLBACK_HANDLER_DEPLOYMENTS, _COMPAT_FALLBACK_HANDLER_DEPLOYMENTS, _EXTENSIBLE_FALLBACK_HANDLER_DEPLOYMENTS, _SAFE_DEPLOYMENTS, _SAFE_L2_DEPLOYMENTS, _MULTI_SEND_DEPLOYMENTS, _MULTI_SEND_CALL_ONLY_DEPLOYMENTS, _CREATE_CALL_DEPLOYMENTS, _SIGN_MESSAGE_LIB_DEPLOYMENTS, _SAFE_MIGRATION_DEPLOYMENTS, _SAFE_TO_L2_MIGRATION_DEPLOYMENTS, _SAFE_TO_L2_SETUP_DEPLOYMENTS, };
|
package/dist/deployments.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports._SAFE_TO_L2_SETUP_DEPLOYMENTS = exports._SAFE_TO_L2_MIGRATION_DEPLOYMENTS = exports._SAFE_MIGRATION_DEPLOYMENTS = exports._SIGN_MESSAGE_LIB_DEPLOYMENTS = exports._CREATE_CALL_DEPLOYMENTS = exports._MULTI_SEND_CALL_ONLY_DEPLOYMENTS = exports._MULTI_SEND_DEPLOYMENTS = exports._SAFE_L2_DEPLOYMENTS = exports._SAFE_DEPLOYMENTS = exports._COMPAT_FALLBACK_HANDLER_DEPLOYMENTS = exports.
|
|
6
|
+
exports._SAFE_TO_L2_SETUP_DEPLOYMENTS = exports._SAFE_TO_L2_MIGRATION_DEPLOYMENTS = exports._SAFE_MIGRATION_DEPLOYMENTS = exports._SIGN_MESSAGE_LIB_DEPLOYMENTS = exports._CREATE_CALL_DEPLOYMENTS = exports._MULTI_SEND_CALL_ONLY_DEPLOYMENTS = exports._MULTI_SEND_DEPLOYMENTS = exports._SAFE_L2_DEPLOYMENTS = exports._SAFE_DEPLOYMENTS = exports._EXTENSIBLE_FALLBACK_HANDLER_DEPLOYMENTS = exports._COMPAT_FALLBACK_HANDLER_DEPLOYMENTS = exports._TOKEN_CALLBACK_HANDLER_DEPLOYMENTS = exports._FACTORY_DEPLOYMENTS = exports._ACCESSOR_DEPLOYMENTS = void 0;
|
|
7
7
|
// This is a file where all the deployments are consolidated
|
|
8
8
|
// We do it in a separate file so we don't have to repeat comments about the array order and the type casting.
|
|
9
9
|
// We use some specific types (like `AddressType`) in the `SingletonDeploymentJSON` type, but the TypeScript cannot infer that from the JSON files.
|
|
@@ -12,13 +12,20 @@ exports._SAFE_TO_L2_SETUP_DEPLOYMENTS = exports._SAFE_TO_L2_MIGRATION_DEPLOYMENT
|
|
|
12
12
|
// The arrays are prefixed with an underscore because they are not meant to be imported directly.
|
|
13
13
|
const simulate_tx_accessor_json_1 = __importDefault(require("./assets/v1.3.0/simulate_tx_accessor.json"));
|
|
14
14
|
const simulate_tx_accessor_json_2 = __importDefault(require("./assets/v1.4.1/simulate_tx_accessor.json"));
|
|
15
|
-
const
|
|
15
|
+
const simulate_tx_accessor_json_3 = __importDefault(require("./assets/v1.5.0/simulate_tx_accessor.json"));
|
|
16
|
+
const _ACCESSOR_DEPLOYMENTS = [
|
|
17
|
+
simulate_tx_accessor_json_3.default,
|
|
18
|
+
simulate_tx_accessor_json_2.default,
|
|
19
|
+
simulate_tx_accessor_json_1.default,
|
|
20
|
+
];
|
|
16
21
|
exports._ACCESSOR_DEPLOYMENTS = _ACCESSOR_DEPLOYMENTS;
|
|
17
22
|
const proxy_factory_json_1 = __importDefault(require("./assets/v1.0.0/proxy_factory.json"));
|
|
18
23
|
const proxy_factory_json_2 = __importDefault(require("./assets/v1.1.1/proxy_factory.json"));
|
|
19
24
|
const proxy_factory_json_3 = __importDefault(require("./assets/v1.3.0/proxy_factory.json"));
|
|
20
25
|
const safe_proxy_factory_json_1 = __importDefault(require("./assets/v1.4.1/safe_proxy_factory.json"));
|
|
26
|
+
const safe_proxy_factory_json_2 = __importDefault(require("./assets/v1.5.0/safe_proxy_factory.json"));
|
|
21
27
|
const _FACTORY_DEPLOYMENTS = [
|
|
28
|
+
safe_proxy_factory_json_2.default,
|
|
22
29
|
safe_proxy_factory_json_1.default,
|
|
23
30
|
proxy_factory_json_3.default,
|
|
24
31
|
proxy_factory_json_2.default,
|
|
@@ -26,55 +33,81 @@ const _FACTORY_DEPLOYMENTS = [
|
|
|
26
33
|
];
|
|
27
34
|
exports._FACTORY_DEPLOYMENTS = _FACTORY_DEPLOYMENTS;
|
|
28
35
|
const default_callback_handler_json_1 = __importDefault(require("./assets/v1.1.1/default_callback_handler.json"));
|
|
29
|
-
const
|
|
30
|
-
|
|
36
|
+
const token_callback_handler_json_1 = __importDefault(require("./assets/v1.5.0/token_callback_handler.json"));
|
|
37
|
+
const _TOKEN_CALLBACK_HANDLER_DEPLOYMENTS = [
|
|
38
|
+
token_callback_handler_json_1.default,
|
|
39
|
+
default_callback_handler_json_1.default,
|
|
40
|
+
];
|
|
41
|
+
exports._TOKEN_CALLBACK_HANDLER_DEPLOYMENTS = _TOKEN_CALLBACK_HANDLER_DEPLOYMENTS;
|
|
31
42
|
const compatibility_fallback_handler_json_1 = __importDefault(require("./assets/v1.3.0/compatibility_fallback_handler.json"));
|
|
32
43
|
const compatibility_fallback_handler_json_2 = __importDefault(require("./assets/v1.4.1/compatibility_fallback_handler.json"));
|
|
44
|
+
const compatibility_fallback_handler_json_3 = __importDefault(require("./assets/v1.5.0/compatibility_fallback_handler.json"));
|
|
33
45
|
const _COMPAT_FALLBACK_HANDLER_DEPLOYMENTS = [
|
|
46
|
+
compatibility_fallback_handler_json_3.default,
|
|
34
47
|
compatibility_fallback_handler_json_2.default,
|
|
35
48
|
compatibility_fallback_handler_json_1.default,
|
|
36
49
|
];
|
|
37
50
|
exports._COMPAT_FALLBACK_HANDLER_DEPLOYMENTS = _COMPAT_FALLBACK_HANDLER_DEPLOYMENTS;
|
|
51
|
+
const extensible_fallback_handler_json_1 = __importDefault(require("./assets/v1.5.0/extensible_fallback_handler.json"));
|
|
52
|
+
const _EXTENSIBLE_FALLBACK_HANDLER_DEPLOYMENTS = [extensible_fallback_handler_json_1.default];
|
|
53
|
+
exports._EXTENSIBLE_FALLBACK_HANDLER_DEPLOYMENTS = _EXTENSIBLE_FALLBACK_HANDLER_DEPLOYMENTS;
|
|
54
|
+
const gnosis_safe_json_1 = __importDefault(require("./assets/v1.0.0/gnosis_safe.json"));
|
|
55
|
+
const gnosis_safe_json_2 = __importDefault(require("./assets/v1.1.1/gnosis_safe.json"));
|
|
56
|
+
const gnosis_safe_json_3 = __importDefault(require("./assets/v1.2.0/gnosis_safe.json"));
|
|
57
|
+
const gnosis_safe_json_4 = __importDefault(require("./assets/v1.3.0/gnosis_safe.json"));
|
|
38
58
|
const safe_json_1 = __importDefault(require("./assets/v1.4.1/safe.json"));
|
|
39
|
-
const
|
|
40
|
-
const gnosis_safe_json_2 = __importDefault(require("./assets/v1.2.0/gnosis_safe.json"));
|
|
41
|
-
const gnosis_safe_json_3 = __importDefault(require("./assets/v1.1.1/gnosis_safe.json"));
|
|
42
|
-
const gnosis_safe_json_4 = __importDefault(require("./assets/v1.0.0/gnosis_safe.json"));
|
|
59
|
+
const safe_json_2 = __importDefault(require("./assets/v1.5.0/safe.json"));
|
|
43
60
|
const _SAFE_DEPLOYMENTS = [
|
|
61
|
+
safe_json_2.default,
|
|
44
62
|
safe_json_1.default,
|
|
45
|
-
gnosis_safe_json_1.default,
|
|
46
|
-
gnosis_safe_json_2.default,
|
|
47
|
-
gnosis_safe_json_3.default,
|
|
48
63
|
gnosis_safe_json_4.default,
|
|
64
|
+
gnosis_safe_json_3.default,
|
|
65
|
+
gnosis_safe_json_2.default,
|
|
66
|
+
gnosis_safe_json_1.default,
|
|
49
67
|
];
|
|
50
68
|
exports._SAFE_DEPLOYMENTS = _SAFE_DEPLOYMENTS;
|
|
51
|
-
const safe_l2_json_1 = __importDefault(require("./assets/v1.4.1/safe_l2.json"));
|
|
52
69
|
const gnosis_safe_l2_json_1 = __importDefault(require("./assets/v1.3.0/gnosis_safe_l2.json"));
|
|
53
|
-
const
|
|
70
|
+
const safe_l2_json_1 = __importDefault(require("./assets/v1.4.1/safe_l2.json"));
|
|
71
|
+
const safe_l2_json_2 = __importDefault(require("./assets/v1.5.0/safe_l2.json"));
|
|
72
|
+
const _SAFE_L2_DEPLOYMENTS = [safe_l2_json_2.default, safe_l2_json_1.default, gnosis_safe_l2_json_1.default];
|
|
54
73
|
exports._SAFE_L2_DEPLOYMENTS = _SAFE_L2_DEPLOYMENTS;
|
|
55
74
|
const multi_send_json_1 = __importDefault(require("./assets/v1.1.1/multi_send.json"));
|
|
56
75
|
const multi_send_json_2 = __importDefault(require("./assets/v1.3.0/multi_send.json"));
|
|
57
76
|
const multi_send_json_3 = __importDefault(require("./assets/v1.4.1/multi_send.json"));
|
|
58
|
-
const
|
|
77
|
+
const multi_send_json_4 = __importDefault(require("./assets/v1.5.0/multi_send.json"));
|
|
78
|
+
const _MULTI_SEND_DEPLOYMENTS = [multi_send_json_4.default, multi_send_json_3.default, multi_send_json_2.default, multi_send_json_1.default];
|
|
59
79
|
exports._MULTI_SEND_DEPLOYMENTS = _MULTI_SEND_DEPLOYMENTS;
|
|
60
80
|
const multi_send_call_only_json_1 = __importDefault(require("./assets/v1.3.0/multi_send_call_only.json"));
|
|
61
81
|
const multi_send_call_only_json_2 = __importDefault(require("./assets/v1.4.1/multi_send_call_only.json"));
|
|
62
|
-
const
|
|
82
|
+
const multi_send_call_only_json_3 = __importDefault(require("./assets/v1.5.0/multi_send_call_only.json"));
|
|
83
|
+
const _MULTI_SEND_CALL_ONLY_DEPLOYMENTS = [
|
|
84
|
+
multi_send_call_only_json_3.default,
|
|
85
|
+
multi_send_call_only_json_2.default,
|
|
86
|
+
multi_send_call_only_json_1.default,
|
|
87
|
+
];
|
|
63
88
|
exports._MULTI_SEND_CALL_ONLY_DEPLOYMENTS = _MULTI_SEND_CALL_ONLY_DEPLOYMENTS;
|
|
64
89
|
const create_call_json_1 = __importDefault(require("./assets/v1.3.0/create_call.json"));
|
|
65
90
|
const create_call_json_2 = __importDefault(require("./assets/v1.4.1/create_call.json"));
|
|
66
|
-
const
|
|
91
|
+
const create_call_json_3 = __importDefault(require("./assets/v1.5.0/create_call.json"));
|
|
92
|
+
const _CREATE_CALL_DEPLOYMENTS = [create_call_json_3.default, create_call_json_2.default, create_call_json_1.default];
|
|
67
93
|
exports._CREATE_CALL_DEPLOYMENTS = _CREATE_CALL_DEPLOYMENTS;
|
|
68
94
|
const sign_message_lib_json_1 = __importDefault(require("./assets/v1.3.0/sign_message_lib.json"));
|
|
69
95
|
const sign_message_lib_json_2 = __importDefault(require("./assets/v1.4.1/sign_message_lib.json"));
|
|
70
|
-
const
|
|
96
|
+
const sign_message_lib_json_3 = __importDefault(require("./assets/v1.5.0/sign_message_lib.json"));
|
|
97
|
+
const _SIGN_MESSAGE_LIB_DEPLOYMENTS = [
|
|
98
|
+
sign_message_lib_json_3.default,
|
|
99
|
+
sign_message_lib_json_2.default,
|
|
100
|
+
sign_message_lib_json_1.default,
|
|
101
|
+
];
|
|
71
102
|
exports._SIGN_MESSAGE_LIB_DEPLOYMENTS = _SIGN_MESSAGE_LIB_DEPLOYMENTS;
|
|
72
103
|
const safe_migration_json_1 = __importDefault(require("./assets/v1.4.1/safe_migration.json"));
|
|
73
|
-
const
|
|
104
|
+
const safe_migration_json_2 = __importDefault(require("./assets/v1.5.0/safe_migration.json"));
|
|
105
|
+
const _SAFE_MIGRATION_DEPLOYMENTS = [safe_migration_json_2.default, safe_migration_json_1.default];
|
|
74
106
|
exports._SAFE_MIGRATION_DEPLOYMENTS = _SAFE_MIGRATION_DEPLOYMENTS;
|
|
75
107
|
const safe_to_l2_migration_json_1 = __importDefault(require("./assets/v1.4.1/safe_to_l2_migration.json"));
|
|
76
108
|
const _SAFE_TO_L2_MIGRATION_DEPLOYMENTS = [safe_to_l2_migration_json_1.default];
|
|
77
109
|
exports._SAFE_TO_L2_MIGRATION_DEPLOYMENTS = _SAFE_TO_L2_MIGRATION_DEPLOYMENTS;
|
|
78
110
|
const safe_to_l2_setup_json_1 = __importDefault(require("./assets/v1.4.1/safe_to_l2_setup.json"));
|
|
79
|
-
const
|
|
111
|
+
const safe_to_l2_setup_json_2 = __importDefault(require("./assets/v1.5.0/safe_to_l2_setup.json"));
|
|
112
|
+
const _SAFE_TO_L2_SETUP_DEPLOYMENTS = [safe_to_l2_setup_json_2.default, safe_to_l2_setup_json_1.default];
|
|
80
113
|
exports._SAFE_TO_L2_SETUP_DEPLOYMENTS = _SAFE_TO_L2_SETUP_DEPLOYMENTS;
|
package/dist/handler.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { DeploymentFilter, SingletonDeployment, SingletonDeploymentV2 } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Get the token callback handler deployment based on the provided filter.
|
|
4
|
+
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
5
|
+
* @returns {SingletonDeployment | undefined} - The found deployment or undefined if not found.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getTokenCallbackHandlerDeployment: (filter?: DeploymentFilter) => SingletonDeployment | undefined;
|
|
2
8
|
/**
|
|
3
9
|
* Get the default callback handler deployment based on the provided filter.
|
|
10
|
+
* Note that this is an alias to `getTokenCallbackHandlerDeployment` for API backwards compatibility.
|
|
4
11
|
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
5
12
|
* @returns {SingletonDeployment | undefined} - The found deployment or undefined if not found.
|
|
6
13
|
*/
|
|
@@ -10,6 +17,13 @@ export declare const getDefaultCallbackHandlerDeployment: (filter?: DeploymentFi
|
|
|
10
17
|
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
11
18
|
* @returns {SingletonDeploymentV2 | undefined} - The found deployments in version 2 format or undefined if not found.
|
|
12
19
|
*/
|
|
20
|
+
export declare const getTokenCallbackHandlerDeployments: (filter?: DeploymentFilter) => SingletonDeploymentV2 | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Get all default callback handler deployments based on the provided filter.
|
|
23
|
+
* Note that this is an alias to `getTokenCallbackHandlerDeployments` for API backwards compatibility.
|
|
24
|
+
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
25
|
+
* @returns {SingletonDeploymentV2 | undefined} - The found deployments in version 2 format or undefined if not found.
|
|
26
|
+
*/
|
|
13
27
|
export declare const getDefaultCallbackHandlerDeployments: (filter?: DeploymentFilter) => SingletonDeploymentV2 | undefined;
|
|
14
28
|
/**
|
|
15
29
|
* Get the compatibility fallback handler deployment based on the provided filter.
|
|
@@ -23,6 +37,18 @@ export declare const getCompatibilityFallbackHandlerDeployment: (filter?: Deploy
|
|
|
23
37
|
* @returns {SingletonDeploymentV2 | undefined} - The found deployments in version 2 format or undefined if not found.
|
|
24
38
|
*/
|
|
25
39
|
export declare const getCompatibilityFallbackHandlerDeployments: (filter?: DeploymentFilter) => SingletonDeploymentV2 | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Get the extensible fallback handler deployment based on the provided filter.
|
|
42
|
+
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
43
|
+
* @returns {SingletonDeployment | undefined} - The found deployment or undefined if not found.
|
|
44
|
+
*/
|
|
45
|
+
export declare const getExtensibleFallbackHandlerDeployment: (filter?: DeploymentFilter) => SingletonDeployment | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Get all extensible fallback handler deployments based on the provided filter.
|
|
48
|
+
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
49
|
+
* @returns {SingletonDeploymentV2 | undefined} - The found deployments in version 2 format or undefined if not found.
|
|
50
|
+
*/
|
|
51
|
+
export declare const getExtensibleFallbackHandlerDeployments: (filter?: DeploymentFilter) => SingletonDeploymentV2 | undefined;
|
|
26
52
|
/**
|
|
27
53
|
* Get the fallback handler deployment based on the provided filter. This method is an alias for `getCompatibilityFallbackHandlerDeployment`.
|
|
28
54
|
* Kept for backwards compatibility.
|
package/dist/handler.js
CHANGED
|
@@ -1,26 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFallbackHandlerDeployment = exports.getCompatibilityFallbackHandlerDeployments = exports.getCompatibilityFallbackHandlerDeployment = exports.getDefaultCallbackHandlerDeployments = exports.getDefaultCallbackHandlerDeployment = void 0;
|
|
3
|
+
exports.getFallbackHandlerDeployment = exports.getExtensibleFallbackHandlerDeployments = exports.getExtensibleFallbackHandlerDeployment = exports.getCompatibilityFallbackHandlerDeployments = exports.getCompatibilityFallbackHandlerDeployment = exports.getDefaultCallbackHandlerDeployments = exports.getTokenCallbackHandlerDeployments = exports.getDefaultCallbackHandlerDeployment = exports.getTokenCallbackHandlerDeployment = void 0;
|
|
4
4
|
const utils_1 = require("./utils");
|
|
5
5
|
const deployments_1 = require("./deployments");
|
|
6
6
|
/**
|
|
7
|
-
* Get the
|
|
7
|
+
* Get the token callback handler deployment based on the provided filter.
|
|
8
8
|
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
9
9
|
* @returns {SingletonDeployment | undefined} - The found deployment or undefined if not found.
|
|
10
10
|
*/
|
|
11
|
-
const
|
|
12
|
-
return (0, utils_1.findDeployment)(filter, deployments_1.
|
|
11
|
+
const getTokenCallbackHandlerDeployment = (filter) => {
|
|
12
|
+
return (0, utils_1.findDeployment)(filter, deployments_1._TOKEN_CALLBACK_HANDLER_DEPLOYMENTS);
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
14
|
+
exports.getTokenCallbackHandlerDeployment = getTokenCallbackHandlerDeployment;
|
|
15
|
+
/**
|
|
16
|
+
* Get the default callback handler deployment based on the provided filter.
|
|
17
|
+
* Note that this is an alias to `getTokenCallbackHandlerDeployment` for API backwards compatibility.
|
|
18
|
+
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
19
|
+
* @returns {SingletonDeployment | undefined} - The found deployment or undefined if not found.
|
|
20
|
+
*/
|
|
21
|
+
exports.getDefaultCallbackHandlerDeployment = exports.getTokenCallbackHandlerDeployment;
|
|
15
22
|
/**
|
|
16
23
|
* Get all default callback handler deployments based on the provided filter.
|
|
17
24
|
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
18
25
|
* @returns {SingletonDeploymentV2 | undefined} - The found deployments in version 2 format or undefined if not found.
|
|
19
26
|
*/
|
|
20
|
-
const
|
|
21
|
-
return (0, utils_1.findDeployment)(filter, deployments_1.
|
|
27
|
+
const getTokenCallbackHandlerDeployments = (filter) => {
|
|
28
|
+
return (0, utils_1.findDeployment)(filter, deployments_1._TOKEN_CALLBACK_HANDLER_DEPLOYMENTS, "multiple" /* DeploymentFormats.MULTIPLE */);
|
|
22
29
|
};
|
|
23
|
-
exports.
|
|
30
|
+
exports.getTokenCallbackHandlerDeployments = getTokenCallbackHandlerDeployments;
|
|
31
|
+
/**
|
|
32
|
+
* Get all default callback handler deployments based on the provided filter.
|
|
33
|
+
* Note that this is an alias to `getTokenCallbackHandlerDeployments` for API backwards compatibility.
|
|
34
|
+
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
35
|
+
* @returns {SingletonDeploymentV2 | undefined} - The found deployments in version 2 format or undefined if not found.
|
|
36
|
+
*/
|
|
37
|
+
exports.getDefaultCallbackHandlerDeployments = exports.getTokenCallbackHandlerDeployments;
|
|
24
38
|
/**
|
|
25
39
|
* Get the compatibility fallback handler deployment based on the provided filter.
|
|
26
40
|
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
@@ -39,6 +53,24 @@ const getCompatibilityFallbackHandlerDeployments = (filter) => {
|
|
|
39
53
|
return (0, utils_1.findDeployment)(filter, deployments_1._COMPAT_FALLBACK_HANDLER_DEPLOYMENTS, "multiple" /* DeploymentFormats.MULTIPLE */);
|
|
40
54
|
};
|
|
41
55
|
exports.getCompatibilityFallbackHandlerDeployments = getCompatibilityFallbackHandlerDeployments;
|
|
56
|
+
/**
|
|
57
|
+
* Get the extensible fallback handler deployment based on the provided filter.
|
|
58
|
+
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
59
|
+
* @returns {SingletonDeployment | undefined} - The found deployment or undefined if not found.
|
|
60
|
+
*/
|
|
61
|
+
const getExtensibleFallbackHandlerDeployment = (filter) => {
|
|
62
|
+
return (0, utils_1.findDeployment)(filter, deployments_1._EXTENSIBLE_FALLBACK_HANDLER_DEPLOYMENTS);
|
|
63
|
+
};
|
|
64
|
+
exports.getExtensibleFallbackHandlerDeployment = getExtensibleFallbackHandlerDeployment;
|
|
65
|
+
/**
|
|
66
|
+
* Get all extensible fallback handler deployments based on the provided filter.
|
|
67
|
+
* @param {DeploymentFilter} [filter] - Optional filter to apply to the deployment search.
|
|
68
|
+
* @returns {SingletonDeploymentV2 | undefined} - The found deployments in version 2 format or undefined if not found.
|
|
69
|
+
*/
|
|
70
|
+
const getExtensibleFallbackHandlerDeployments = (filter) => {
|
|
71
|
+
return (0, utils_1.findDeployment)(filter, deployments_1._EXTENSIBLE_FALLBACK_HANDLER_DEPLOYMENTS, "multiple" /* DeploymentFormats.MULTIPLE */);
|
|
72
|
+
};
|
|
73
|
+
exports.getExtensibleFallbackHandlerDeployments = getExtensibleFallbackHandlerDeployments;
|
|
42
74
|
/**
|
|
43
75
|
* Get the fallback handler deployment based on the provided filter. This method is an alias for `getCompatibilityFallbackHandlerDeployment`.
|
|
44
76
|
* Kept for backwards compatibility.
|
package/package.json
CHANGED
|
@@ -77,22 +77,6 @@ describe('assets/', () => {
|
|
|
77
77
|
expect(KNOWN_ADDRESS_TYPES).toContain(addressType);
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
|
|
81
|
-
it('no network can contain zksync address together with other address types', async () => {
|
|
82
|
-
const deploymentJson = await readAssetJSON(version, file);
|
|
83
|
-
if (!deploymentJson) {
|
|
84
|
-
throw new Error(`Failed to read asset ${version}/${file}`);
|
|
85
|
-
}
|
|
86
|
-
const { networkAddresses } = deploymentJson;
|
|
87
|
-
|
|
88
|
-
for (const network of Object.keys(networkAddresses)) {
|
|
89
|
-
const addressTypes = networkAddresses[network];
|
|
90
|
-
|
|
91
|
-
if (Array.isArray(addressTypes)) {
|
|
92
|
-
expect(addressTypes).not.toContain('zksync');
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
80
|
});
|
|
97
81
|
}
|
|
98
82
|
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import ProxyFactory141 from './assets/v1/v1.4.1/safe_proxy_factory.json';
|
|
1
|
+
import SafeProxyFactory from '../assets/v1.5.0/safe_proxy_factory.json';
|
|
3
2
|
import { getProxyFactoryDeployment } from '../factories';
|
|
4
3
|
|
|
5
4
|
describe('factories.ts', () => {
|
|
6
5
|
describe('getProxyFactoryDeployment', () => {
|
|
7
6
|
it('should find the latest deployment first', () => {
|
|
8
7
|
const result = getProxyFactoryDeployment();
|
|
9
|
-
expect(result).toMatchObject(
|
|
10
|
-
|
|
8
|
+
expect(result).toMatchObject({
|
|
9
|
+
defaultAddress: SafeProxyFactory.deployments.canonical.address,
|
|
10
|
+
contractName: 'SafeProxyFactory',
|
|
11
|
+
version: '1.5.0',
|
|
12
|
+
networkAddresses: {
|
|
13
|
+
['1']: SafeProxyFactory.deployments.canonical.address,
|
|
14
|
+
},
|
|
15
|
+
abi: SafeProxyFactory.abi,
|
|
16
|
+
});
|
|
11
17
|
});
|
|
12
18
|
});
|
|
13
19
|
});
|
|
@@ -1,31 +1,71 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import TokenCallbackHandler from '../assets/v1.5.0/token_callback_handler.json';
|
|
2
|
+
import CompatibilityFallbackHandler from '../assets/v1.5.0/compatibility_fallback_handler.json';
|
|
3
|
+
import ExtensibleFallbackHandler from '../assets/v1.5.0/extensible_fallback_handler.json';
|
|
3
4
|
import {
|
|
4
|
-
|
|
5
|
+
getTokenCallbackHandlerDeployment,
|
|
5
6
|
getCompatibilityFallbackHandlerDeployment,
|
|
7
|
+
getExtensibleFallbackHandlerDeployment,
|
|
6
8
|
getFallbackHandlerDeployment,
|
|
7
9
|
} from '../handler';
|
|
8
10
|
|
|
9
11
|
describe('handler.ts', () => {
|
|
10
|
-
describe('
|
|
12
|
+
describe('getTokenCallbackHandlerDeployment', () => {
|
|
11
13
|
it('should find the preferred deployment first', () => {
|
|
12
|
-
const result =
|
|
13
|
-
expect(result).toMatchObject(
|
|
14
|
+
const result = getTokenCallbackHandlerDeployment();
|
|
15
|
+
expect(result).toMatchObject({
|
|
16
|
+
defaultAddress: TokenCallbackHandler.deployments.canonical.address,
|
|
17
|
+
contractName: 'TokenCallbackHandler',
|
|
18
|
+
version: '1.5.0',
|
|
19
|
+
networkAddresses: {
|
|
20
|
+
['1']: TokenCallbackHandler.deployments.canonical.address,
|
|
21
|
+
},
|
|
22
|
+
abi: TokenCallbackHandler.abi,
|
|
23
|
+
});
|
|
14
24
|
});
|
|
15
25
|
});
|
|
16
26
|
|
|
17
27
|
describe('getCompatibilityFallbackHandlerDeployment', () => {
|
|
18
28
|
it('should find the preferred deployment first', () => {
|
|
19
29
|
const result = getCompatibilityFallbackHandlerDeployment();
|
|
20
|
-
expect(result).toMatchObject(
|
|
30
|
+
expect(result).toMatchObject({
|
|
31
|
+
defaultAddress: CompatibilityFallbackHandler.deployments.canonical.address,
|
|
32
|
+
contractName: 'CompatibilityFallbackHandler',
|
|
33
|
+
version: '1.5.0',
|
|
34
|
+
networkAddresses: {
|
|
35
|
+
['1']: CompatibilityFallbackHandler.deployments.canonical.address,
|
|
36
|
+
},
|
|
37
|
+
abi: CompatibilityFallbackHandler.abi,
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
describe('getExtensibleFallbackHandlerDeployment', () => {
|
|
43
|
+
it('should find the preferred deployment first', () => {
|
|
44
|
+
const result = getExtensibleFallbackHandlerDeployment();
|
|
45
|
+
expect(result).toMatchObject({
|
|
46
|
+
defaultAddress: ExtensibleFallbackHandler.deployments.canonical.address,
|
|
47
|
+
contractName: 'ExtensibleFallbackHandler',
|
|
48
|
+
version: '1.5.0',
|
|
49
|
+
networkAddresses: {
|
|
50
|
+
['1']: ExtensibleFallbackHandler.deployments.canonical.address,
|
|
51
|
+
},
|
|
52
|
+
abi: ExtensibleFallbackHandler.abi,
|
|
53
|
+
});
|
|
21
54
|
});
|
|
22
55
|
});
|
|
23
56
|
|
|
24
57
|
describe('getFallbackHandlerDeployment', () => {
|
|
25
58
|
it('should find the preferred deployment first', () => {
|
|
26
59
|
const result = getFallbackHandlerDeployment();
|
|
27
|
-
expect(result).toMatchObject(
|
|
28
|
-
|
|
60
|
+
expect(result).toMatchObject({
|
|
61
|
+
defaultAddress: CompatibilityFallbackHandler.deployments.canonical.address,
|
|
62
|
+
contractName: 'CompatibilityFallbackHandler',
|
|
63
|
+
version: '1.5.0',
|
|
64
|
+
networkAddresses: {
|
|
65
|
+
['1']: CompatibilityFallbackHandler.deployments.canonical.address,
|
|
66
|
+
},
|
|
67
|
+
abi: CompatibilityFallbackHandler.abi,
|
|
68
|
+
});
|
|
29
69
|
});
|
|
30
70
|
});
|
|
31
71
|
});
|