Skip to content

Commit 3775117

Browse files
committed
Update proxy E2E tests
* they now use the new `testAccounts` (snapshots (partially) updated, * pass new `TestConfig` parameter to E2E test trees * update proxy E2E tests to use new block provider (80% done)
1 parent de4faa3 commit 3775117

23 files changed

Lines changed: 470 additions & 1749 deletions

packages/kusama/src/__snapshots__/assetHubKusama.proxy.e2e.test.ts.snap

Lines changed: 50 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
66
"data": {
77
"delay": 0,
88
"delegatee": "CuW7GM1JCXTG5Whmw7yV53Wi4trhqRFmDC49NSc4ZQ36UCg",
9-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
9+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
1010
"proxyType": "Any",
1111
},
1212
"method": "ProxyAdded",
@@ -16,7 +16,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
1616
"data": {
1717
"delay": 0,
1818
"delegatee": "Ftk6uzZmZVciEaSMHBZ3b1272KavruU4NxLjGLQVsUAKV3B",
19-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
19+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
2020
"proxyType": "NonTransfer",
2121
},
2222
"method": "ProxyAdded",
@@ -26,7 +26,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
2626
"data": {
2727
"delay": 0,
2828
"delegatee": "FF84pi37FUToJKQSPaMDYsY96BLNzhyLQ5opd2AWFu7HCKe",
29-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
29+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
3030
"proxyType": "CancelProxy",
3131
},
3232
"method": "ProxyAdded",
@@ -36,7 +36,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
3636
"data": {
3737
"delay": 0,
3838
"delegatee": "DfeV9UQE55S368Ym2LfgJJpXcfkF5MmjnwFDvAe9VKMBpAy",
39-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
39+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
4040
"proxyType": "Assets",
4141
},
4242
"method": "ProxyAdded",
@@ -46,7 +46,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
4646
"data": {
4747
"delay": 0,
4848
"delegatee": "EwHAaLmkR3hm3Yu2ULBtfASxRT8L8Hhn5m1VYciJ7RVr5F4",
49-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
49+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
5050
"proxyType": "AssetOwner",
5151
},
5252
"method": "ProxyAdded",
@@ -56,7 +56,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
5656
"data": {
5757
"delay": 0,
5858
"delegatee": "Eio83Zh4aVyhpaTTYr9wEp2pjiX1qTN4xngG9FKo5xoPwRQ",
59-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
59+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
6060
"proxyType": "AssetManager",
6161
},
6262
"method": "ProxyAdded",
@@ -66,7 +66,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
6666
"data": {
6767
"delay": 0,
6868
"delegatee": "FyhwkyfubTPKDEaEs9V58pV3z8pRrYiGRj6TgGWRu8eMLXH",
69-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
69+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
7070
"proxyType": "Collator",
7171
},
7272
"method": "ProxyAdded",
@@ -81,7 +81,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
8181
"data": {
8282
"delay": 0,
8383
"delegatee": "CuW7GM1JCXTG5Whmw7yV53Wi4trhqRFmDC49NSc4ZQ36UCg",
84-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
84+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
8585
"proxyType": "Any",
8686
},
8787
"method": "ProxyRemoved",
@@ -91,7 +91,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
9191
"data": {
9292
"delay": 0,
9393
"delegatee": "Ftk6uzZmZVciEaSMHBZ3b1272KavruU4NxLjGLQVsUAKV3B",
94-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
94+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
9595
"proxyType": "NonTransfer",
9696
},
9797
"method": "ProxyRemoved",
@@ -101,7 +101,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
101101
"data": {
102102
"delay": 0,
103103
"delegatee": "FF84pi37FUToJKQSPaMDYsY96BLNzhyLQ5opd2AWFu7HCKe",
104-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
104+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
105105
"proxyType": "CancelProxy",
106106
},
107107
"method": "ProxyRemoved",
@@ -111,7 +111,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
111111
"data": {
112112
"delay": 0,
113113
"delegatee": "DfeV9UQE55S368Ym2LfgJJpXcfkF5MmjnwFDvAe9VKMBpAy",
114-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
114+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
115115
"proxyType": "Assets",
116116
},
117117
"method": "ProxyRemoved",
@@ -121,7 +121,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
121121
"data": {
122122
"delay": 0,
123123
"delegatee": "EwHAaLmkR3hm3Yu2ULBtfASxRT8L8Hhn5m1VYciJ7RVr5F4",
124-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
124+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
125125
"proxyType": "AssetOwner",
126126
},
127127
"method": "ProxyRemoved",
@@ -131,7 +131,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
131131
"data": {
132132
"delay": 0,
133133
"delegatee": "Eio83Zh4aVyhpaTTYr9wEp2pjiX1qTN4xngG9FKo5xoPwRQ",
134-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
134+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
135135
"proxyType": "AssetManager",
136136
},
137137
"method": "ProxyRemoved",
@@ -141,7 +141,7 @@ exports[`Kusama AssetHub Proxy > add proxies (with/without delay) to an account,
141141
"data": {
142142
"delay": 0,
143143
"delegatee": "FyhwkyfubTPKDEaEs9V58pV3z8pRrYiGRj6TgGWRu8eMLXH",
144-
"delegator": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
144+
"delegator": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
145145
"proxyType": "Collator",
146146
},
147147
"method": "ProxyRemoved",
@@ -156,7 +156,7 @@ exports[`Kusama AssetHub Proxy > create and kill pure proxies > events when crea
156156
"data": {
157157
"disambiguationIndex": 0,
158158
"proxyType": "Any",
159-
"who": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
159+
"who": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
160160
},
161161
"method": "PureCreated",
162162
"section": "proxy",
@@ -165,7 +165,7 @@ exports[`Kusama AssetHub Proxy > create and kill pure proxies > events when crea
165165
"data": {
166166
"disambiguationIndex": 0,
167167
"proxyType": "NonTransfer",
168-
"who": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
168+
"who": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
169169
},
170170
"method": "PureCreated",
171171
"section": "proxy",
@@ -174,7 +174,7 @@ exports[`Kusama AssetHub Proxy > create and kill pure proxies > events when crea
174174
"data": {
175175
"disambiguationIndex": 0,
176176
"proxyType": "CancelProxy",
177-
"who": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
177+
"who": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
178178
},
179179
"method": "PureCreated",
180180
"section": "proxy",
@@ -183,7 +183,7 @@ exports[`Kusama AssetHub Proxy > create and kill pure proxies > events when crea
183183
"data": {
184184
"disambiguationIndex": 0,
185185
"proxyType": "Assets",
186-
"who": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
186+
"who": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
187187
},
188188
"method": "PureCreated",
189189
"section": "proxy",
@@ -192,7 +192,7 @@ exports[`Kusama AssetHub Proxy > create and kill pure proxies > events when crea
192192
"data": {
193193
"disambiguationIndex": 0,
194194
"proxyType": "AssetOwner",
195-
"who": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
195+
"who": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
196196
},
197197
"method": "PureCreated",
198198
"section": "proxy",
@@ -201,7 +201,7 @@ exports[`Kusama AssetHub Proxy > create and kill pure proxies > events when crea
201201
"data": {
202202
"disambiguationIndex": 0,
203203
"proxyType": "AssetManager",
204-
"who": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
204+
"who": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
205205
},
206206
"method": "PureCreated",
207207
"section": "proxy",
@@ -210,7 +210,7 @@ exports[`Kusama AssetHub Proxy > create and kill pure proxies > events when crea
210210
"data": {
211211
"disambiguationIndex": 0,
212212
"proxyType": "Collator",
213-
"who": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
213+
"who": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
214214
},
215215
"method": "PureCreated",
216216
"section": "proxy",
@@ -222,14 +222,17 @@ exports[`Kusama AssetHub Proxy > create and kill pure proxies > events when kill
222222
[
223223
{
224224
"data": {
225-
"result": {
226-
"Err": {
227-
"Module": {
228-
"error": "0x05000000",
229-
"index": 42,
230-
},
231-
},
232-
},
225+
"disambiguationIndex": 0,
226+
"proxyType": "Any",
227+
"pure": "Gnv77gxzKFNGZhM2k9YFHnmGMsXPgXkCSHDnK7GjhSavMV3",
228+
"spawner": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
229+
},
230+
"method": "PureKilled",
231+
"section": "proxy",
232+
},
233+
{
234+
"data": {
235+
"result": "Ok",
233236
},
234237
"method": "ProxyExecuted",
235238
"section": "proxy",
@@ -451,7 +454,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allow
451454
{
452455
"data": {
453456
"hash_": "(hash)",
454-
"sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
457+
"sender": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
455458
},
456459
"method": "Remarked",
457460
"section": "system",
@@ -1229,7 +1232,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allow
12291232
{
12301233
"data": {
12311234
"hash_": "(hash)",
1232-
"sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
1235+
"sender": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
12331236
},
12341237
"method": "Remarked",
12351238
"section": "system",
@@ -2094,8 +2097,8 @@ exports[`Kusama AssetHub Proxy > perform proxy call on behalf of delegator > eve
20942097
{
20952098
"data": {
20962099
"amount": 1000000000000,
2097-
"from": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
2098-
"to": "Fr4NzY1udSFFLzb2R3qxVQkwz9cZraWkyfH4h3mVVk7BK7P",
2100+
"from": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
2101+
"to": "D2oHoVDFJGy7iDYcY7fbm82CuNycWaSxCGpsQtLqkrE9JKf",
20992102
},
21002103
"method": "Transfer",
21012104
"section": "balances",
@@ -2115,11 +2118,23 @@ exports[`Kusama AssetHub Proxy > proxy announcement lifecycle test > events when
21152118
{
21162119
"data": {
21172120
"callHash": "(hash)",
2118-
"proxy": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP",
2119-
"real": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F",
2121+
"proxy": "EvvS4HELEC1nxVHsjYUsPvypd2kXeu78AguyiSN7kV2pTnk",
2122+
"real": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
21202123
},
21212124
"method": "Announced",
21222125
"section": "proxy",
21232126
},
21242127
]
21252128
`;
2129+
2130+
exports[`Kusama AssetHub Proxy > proxy announcement lifecycle test > events when Bob performs the announced proxy call 1`] = `
2131+
[
2132+
{
2133+
"data": {
2134+
"result": "Ok",
2135+
},
2136+
"method": "ProxyExecuted",
2137+
"section": "proxy",
2138+
},
2139+
]
2140+
`;

0 commit comments

Comments
 (0)