@across-protocol/contracts 6.0.0-beta.2 → 6.0.0-beta.4
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 +195 -34
- package/contracts/chain-adapters/Solana_Adapter.sol +4 -7
- package/contracts/handlers/HyperliquidDepositHandler.sol +2 -2
- package/contracts/interfaces/SpokePoolPeripheryInterface.sol +16 -4
- package/contracts/libraries/HyperCoreLib.sol +113 -20
- package/contracts/libraries/PeripherySigningLib.sol +56 -0
- package/contracts/periphery/SpokePoolPeriphery.sol +58 -10
- package/dist/broadcast/deployed-addresses.json +19 -0
- package/dist/evm/artifacts/Constants.sol/Constants.json +1 -1
- package/dist/evm/artifacts/DeploymentUtils.sol/DeploymentUtils.json +1 -1
- package/dist/evm/artifacts/DstOFTHandler.sol/DstOFTHandler.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockAddressWhitelist.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockFinder.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockIdentifierWhitelist.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockLpTokenFactory.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockOptimisticOracle.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockStore.json +1 -1
- package/dist/evm/artifacts/HyperCoreFlowExecutor.sol/HyperCoreFlowExecutor.json +1 -1
- package/dist/evm/artifacts/HyperCoreLib.sol/HyperCoreLib.json +1 -1
- package/dist/evm/artifacts/HyperliquidDepositHandler.sol/HyperliquidDepositHandler.json +1 -1
- package/dist/evm/artifacts/PeripherySigningLib.sol/PeripherySigningLib.json +1 -1
- package/dist/evm/artifacts/Solana_Adapter.sol/Solana_Adapter.json +1 -1
- package/dist/evm/artifacts/SpokePoolPeriphery.sol/SpokePoolPeriphery.json +1 -1
- package/dist/evm/artifacts/SpokePoolPeriphery.sol/SwapProxy.json +1 -1
- package/dist/evm/artifacts/SponsoredCCTPDstPeriphery.sol/SponsoredCCTPDstPeriphery.json +1 -1
- package/dist/evm/artifacts/SponsoredCCTPSrcPeriphery.sol/SponsoredCCTPSrcPeriphery.json +1 -1
- package/dist/evm/artifacts/SponsoredOFTSrcPeriphery.sol/SponsoredOFTSrcPeriphery.json +1 -1
- package/dist/evm/artifacts/SwapHandler.sol/SwapHandler.json +1 -1
- package/dist/evm/artifacts/Tron_SpokePoolPeriphery.sol/Tron_SpokePoolPeriphery.json +1 -1
- package/dist/evm/artifacts/Tron_SpokePoolPeriphery.sol/Tron_SwapProxy.json +1 -1
- package/dist/src/consts.js +1 -0
- package/dist/src/svm/assets/idl/index.d.ts +5 -7
- package/dist/src/svm/assets/idl/index.js +6 -14
- package/dist/src/svm/assets/idl/sponsored_cctp_src_periphery.json +41 -24
- package/dist/src/svm/assets/idl/svm_spoke.json +1001 -2171
- package/dist/src/svm/assets/index.d.ts +2 -3
- package/dist/src/svm/assets/index.js +0 -1
- package/dist/src/svm/assets/sponsored_cctp_src_periphery.d.ts +41 -24
- package/dist/src/svm/assets/svm_spoke.d.ts +996 -2166
- package/dist/src/svm/assets/token_messenger_minter_v2.d.ts +18 -18
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.d.ts +0 -1
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.js +0 -1
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.d.ts +24 -12
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.js +30 -12
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.d.ts +4 -5
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.js +4 -8
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.d.ts +1 -0
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.js +1 -0
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.d.ts +21 -0
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.d.ts +2 -2
- package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.js +2 -2
- package/dist/src/svm/clients/SvmSpoke/accounts/index.d.ts +0 -3
- package/dist/src/svm/clients/SvmSpoke/accounts/index.js +0 -3
- package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.d.ts +94 -22
- package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.js +133 -24
- package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.d.ts +75 -0
- package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.js +144 -0
- package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.d.ts +16 -8
- package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.js +3 -3
- package/dist/src/svm/clients/SvmSpoke/instructions/index.d.ts +2 -7
- package/dist/src/svm/clients/SvmSpoke/instructions/index.js +2 -7
- package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.d.ts +58 -0
- package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.js +134 -0
- package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.d.ts +29 -47
- package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.js +29 -61
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.d.ts +25 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.js +33 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.d.ts +18 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.d.ts +43 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.js +48 -0
- package/dist/src/svm/clients/SvmSpoke/types/index.d.ts +9 -1
- package/dist/src/svm/clients/SvmSpoke/types/index.js +9 -1
- package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.d.ts +39 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.js +59 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.d.ts +17 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.d.ts +19 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.js +28 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.d.ts +25 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillJit.d.ts +22 -0
- package/dist/src/svm/clients/SvmSpoke/types/{slowFill.js → v5FillJit.js} +11 -11
- package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.d.ts +29 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.js +38 -0
- package/dist/src/svm/web3-v1/cctpV2Helpers.d.ts +51 -65
- package/dist/src/svm/web3-v1/cctpV2Helpers.js +1 -1
- package/dist/src/svm/web3-v1/coders.d.ts +1 -1
- package/dist/src/svm/web3-v1/coders.js +4 -4
- package/dist/src/svm/web3-v1/conversionUtils.d.ts +1 -1
- package/dist/src/svm/web3-v1/conversionUtils.js +3 -3
- package/dist/src/svm/web3-v1/helpers.d.ts +1 -114
- package/dist/src/svm/web3-v1/helpers.js +1 -179
- package/dist/src/svm/web3-v1/instructionParamsUtils.d.ts +11 -26
- package/dist/src/svm/web3-v1/instructionParamsUtils.js +5 -90
- package/dist/src/svm/web3-v1/programConnectors.d.ts +1 -1
- package/dist/src/svm/web3-v1/programConnectors.js +2 -2
- package/dist/src/svm/web3-v1/relayHashUtils.d.ts +2 -6
- package/dist/src/svm/web3-v1/relayHashUtils.js +5 -66
- package/dist/src/svm/web3-v1/solanaProgramUtils.d.ts +1 -1
- package/dist/src/svm/web3-v1/solanaProgramUtils.js +7 -7
- package/dist/src/svm/web3-v1/transactionUtils.js +3 -3
- package/dist/src/svm/web3-v2/solanaProgramUtils.d.ts +1 -1
- package/dist/src/svm/web3-v2/solanaProgramUtils.js +4 -4
- package/dist/src/types/svm.d.ts +1 -46
- package/package.json +28 -13
- package/svm/idl/multicall_handler.json +31 -0
- package/svm/idl/sponsored_cctp_src_periphery.json +1982 -0
- package/svm/idl/svm_spoke.json +3930 -0
- package/dist/src/svm/assets/idl/test.json +0 -243
- package/dist/src/svm/assets/test.d.ts +0 -249
- package/dist/src/svm/assets/test.js +0 -2
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/messageSent.d.ts +0 -30
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/messageSent.js +0 -66
- package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.d.ts +0 -31
- package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.js +0 -70
- package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.d.ts +0 -31
- package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.js +0 -67
- package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.d.ts +0 -27
- package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.js +0 -66
- package/dist/src/svm/clients/SvmSpoke/instructions/deposit.d.ts +0 -131
- package/dist/src/svm/clients/SvmSpoke/instructions/deposit.js +0 -241
- package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.d.ts +0 -127
- package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.js +0 -239
- package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.d.ts +0 -104
- package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.js +0 -259
- package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.d.ts +0 -108
- package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.js +0 -265
- package/dist/src/svm/clients/SvmSpoke/instructions/getUnsafeDepositId.d.ts +0 -39
- package/dist/src/svm/clients/SvmSpoke/instructions/getUnsafeDepositId.js +0 -63
- package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.d.ts +0 -76
- package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.js +0 -187
- package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.d.ts +0 -135
- package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.js +0 -243
- package/dist/src/svm/clients/SvmSpoke/types/slowFill.d.ts +0 -22
- package/dist/target/types/svm_spoke.d.ts +0 -5106
- package/dist/target/types/svm_spoke.js +0 -2
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"address": "8tsEfDSiE4WUMf97oyyyasLAvWwjeRZb2GByh4w7HckA",
|
|
3
|
-
"metadata": {
|
|
4
|
-
"name": "test",
|
|
5
|
-
"version": "0.1.0",
|
|
6
|
-
"spec": "0.1.0",
|
|
7
|
-
"description": "Created with Anchor"
|
|
8
|
-
},
|
|
9
|
-
"instructions": [
|
|
10
|
-
{
|
|
11
|
-
"name": "initialize",
|
|
12
|
-
"discriminator": [
|
|
13
|
-
175,
|
|
14
|
-
175,
|
|
15
|
-
109,
|
|
16
|
-
31,
|
|
17
|
-
13,
|
|
18
|
-
152,
|
|
19
|
-
155,
|
|
20
|
-
237
|
|
21
|
-
],
|
|
22
|
-
"accounts": [
|
|
23
|
-
{
|
|
24
|
-
"name": "bitmap_account",
|
|
25
|
-
"writable": true,
|
|
26
|
-
"pda": {
|
|
27
|
-
"seeds": [
|
|
28
|
-
{
|
|
29
|
-
"kind": "const",
|
|
30
|
-
"value": [
|
|
31
|
-
98,
|
|
32
|
-
105,
|
|
33
|
-
116,
|
|
34
|
-
109,
|
|
35
|
-
97,
|
|
36
|
-
112,
|
|
37
|
-
95,
|
|
38
|
-
97,
|
|
39
|
-
99,
|
|
40
|
-
99,
|
|
41
|
-
111,
|
|
42
|
-
117,
|
|
43
|
-
110,
|
|
44
|
-
116
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "signer",
|
|
52
|
-
"writable": true,
|
|
53
|
-
"signer": true
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "system_program",
|
|
57
|
-
"address": "11111111111111111111111111111111"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"args": []
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "test_emit_large_log",
|
|
64
|
-
"discriminator": [
|
|
65
|
-
126,
|
|
66
|
-
64,
|
|
67
|
-
160,
|
|
68
|
-
189,
|
|
69
|
-
160,
|
|
70
|
-
160,
|
|
71
|
-
238,
|
|
72
|
-
68
|
|
73
|
-
],
|
|
74
|
-
"accounts": [],
|
|
75
|
-
"args": [
|
|
76
|
-
{
|
|
77
|
-
"name": "length",
|
|
78
|
-
"type": "u32"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "test_is_claimed",
|
|
84
|
-
"discriminator": [
|
|
85
|
-
82,
|
|
86
|
-
227,
|
|
87
|
-
141,
|
|
88
|
-
60,
|
|
89
|
-
27,
|
|
90
|
-
165,
|
|
91
|
-
109,
|
|
92
|
-
90
|
|
93
|
-
],
|
|
94
|
-
"accounts": [
|
|
95
|
-
{
|
|
96
|
-
"name": "bitmap_account"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"args": [
|
|
100
|
-
{
|
|
101
|
-
"name": "index",
|
|
102
|
-
"type": "u32"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"returns": "bool"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"name": "test_set_claimed",
|
|
109
|
-
"discriminator": [
|
|
110
|
-
15,
|
|
111
|
-
155,
|
|
112
|
-
67,
|
|
113
|
-
241,
|
|
114
|
-
20,
|
|
115
|
-
247,
|
|
116
|
-
21,
|
|
117
|
-
189
|
|
118
|
-
],
|
|
119
|
-
"accounts": [
|
|
120
|
-
{
|
|
121
|
-
"name": "bitmap_account",
|
|
122
|
-
"writable": true
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "signer",
|
|
126
|
-
"writable": true,
|
|
127
|
-
"signer": true
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"name": "system_program",
|
|
131
|
-
"address": "11111111111111111111111111111111"
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
"args": [
|
|
135
|
-
{
|
|
136
|
-
"name": "index",
|
|
137
|
-
"type": "u32"
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"name": "verify",
|
|
143
|
-
"discriminator": [
|
|
144
|
-
133,
|
|
145
|
-
161,
|
|
146
|
-
141,
|
|
147
|
-
48,
|
|
148
|
-
120,
|
|
149
|
-
198,
|
|
150
|
-
88,
|
|
151
|
-
150
|
|
152
|
-
],
|
|
153
|
-
"accounts": [],
|
|
154
|
-
"args": [
|
|
155
|
-
{
|
|
156
|
-
"name": "root",
|
|
157
|
-
"type": {
|
|
158
|
-
"array": [
|
|
159
|
-
"u8",
|
|
160
|
-
32
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"name": "leaf",
|
|
166
|
-
"type": {
|
|
167
|
-
"array": [
|
|
168
|
-
"u8",
|
|
169
|
-
32
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"name": "proof",
|
|
175
|
-
"type": {
|
|
176
|
-
"vec": {
|
|
177
|
-
"array": [
|
|
178
|
-
"u8",
|
|
179
|
-
32
|
|
180
|
-
]
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
"accounts": [
|
|
188
|
-
{
|
|
189
|
-
"name": "BitmapAccount",
|
|
190
|
-
"discriminator": [
|
|
191
|
-
152,
|
|
192
|
-
161,
|
|
193
|
-
147,
|
|
194
|
-
85,
|
|
195
|
-
213,
|
|
196
|
-
38,
|
|
197
|
-
59,
|
|
198
|
-
48
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
"events": [
|
|
203
|
-
{
|
|
204
|
-
"name": "TestEvent",
|
|
205
|
-
"discriminator": [
|
|
206
|
-
28,
|
|
207
|
-
52,
|
|
208
|
-
39,
|
|
209
|
-
105,
|
|
210
|
-
8,
|
|
211
|
-
210,
|
|
212
|
-
91,
|
|
213
|
-
9
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
],
|
|
217
|
-
"types": [
|
|
218
|
-
{
|
|
219
|
-
"name": "BitmapAccount",
|
|
220
|
-
"type": {
|
|
221
|
-
"kind": "struct",
|
|
222
|
-
"fields": [
|
|
223
|
-
{
|
|
224
|
-
"name": "claimed_bitmap",
|
|
225
|
-
"type": "bytes"
|
|
226
|
-
}
|
|
227
|
-
]
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"name": "TestEvent",
|
|
232
|
-
"type": {
|
|
233
|
-
"kind": "struct",
|
|
234
|
-
"fields": [
|
|
235
|
-
{
|
|
236
|
-
"name": "message",
|
|
237
|
-
"type": "string"
|
|
238
|
-
}
|
|
239
|
-
]
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
]
|
|
243
|
-
}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Program IDL in camelCase format in order to be used in JS/TS.
|
|
3
|
-
*
|
|
4
|
-
* Note that this is only a type helper and is not the actual IDL. The original
|
|
5
|
-
* IDL can be found at `target/idl/test.json`.
|
|
6
|
-
*/
|
|
7
|
-
export type Test = {
|
|
8
|
-
"address": "8tsEfDSiE4WUMf97oyyyasLAvWwjeRZb2GByh4w7HckA";
|
|
9
|
-
"metadata": {
|
|
10
|
-
"name": "test";
|
|
11
|
-
"version": "0.1.0";
|
|
12
|
-
"spec": "0.1.0";
|
|
13
|
-
"description": "Created with Anchor";
|
|
14
|
-
};
|
|
15
|
-
"instructions": [
|
|
16
|
-
{
|
|
17
|
-
"name": "initialize";
|
|
18
|
-
"discriminator": [
|
|
19
|
-
175,
|
|
20
|
-
175,
|
|
21
|
-
109,
|
|
22
|
-
31,
|
|
23
|
-
13,
|
|
24
|
-
152,
|
|
25
|
-
155,
|
|
26
|
-
237
|
|
27
|
-
];
|
|
28
|
-
"accounts": [
|
|
29
|
-
{
|
|
30
|
-
"name": "bitmapAccount";
|
|
31
|
-
"writable": true;
|
|
32
|
-
"pda": {
|
|
33
|
-
"seeds": [
|
|
34
|
-
{
|
|
35
|
-
"kind": "const";
|
|
36
|
-
"value": [
|
|
37
|
-
98,
|
|
38
|
-
105,
|
|
39
|
-
116,
|
|
40
|
-
109,
|
|
41
|
-
97,
|
|
42
|
-
112,
|
|
43
|
-
95,
|
|
44
|
-
97,
|
|
45
|
-
99,
|
|
46
|
-
99,
|
|
47
|
-
111,
|
|
48
|
-
117,
|
|
49
|
-
110,
|
|
50
|
-
116
|
|
51
|
-
];
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "signer";
|
|
58
|
-
"writable": true;
|
|
59
|
-
"signer": true;
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "systemProgram";
|
|
63
|
-
"address": "11111111111111111111111111111111";
|
|
64
|
-
}
|
|
65
|
-
];
|
|
66
|
-
"args": [];
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "testEmitLargeLog";
|
|
70
|
-
"discriminator": [
|
|
71
|
-
126,
|
|
72
|
-
64,
|
|
73
|
-
160,
|
|
74
|
-
189,
|
|
75
|
-
160,
|
|
76
|
-
160,
|
|
77
|
-
238,
|
|
78
|
-
68
|
|
79
|
-
];
|
|
80
|
-
"accounts": [];
|
|
81
|
-
"args": [
|
|
82
|
-
{
|
|
83
|
-
"name": "length";
|
|
84
|
-
"type": "u32";
|
|
85
|
-
}
|
|
86
|
-
];
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"name": "testIsClaimed";
|
|
90
|
-
"discriminator": [
|
|
91
|
-
82,
|
|
92
|
-
227,
|
|
93
|
-
141,
|
|
94
|
-
60,
|
|
95
|
-
27,
|
|
96
|
-
165,
|
|
97
|
-
109,
|
|
98
|
-
90
|
|
99
|
-
];
|
|
100
|
-
"accounts": [
|
|
101
|
-
{
|
|
102
|
-
"name": "bitmapAccount";
|
|
103
|
-
}
|
|
104
|
-
];
|
|
105
|
-
"args": [
|
|
106
|
-
{
|
|
107
|
-
"name": "index";
|
|
108
|
-
"type": "u32";
|
|
109
|
-
}
|
|
110
|
-
];
|
|
111
|
-
"returns": "bool";
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"name": "testSetClaimed";
|
|
115
|
-
"discriminator": [
|
|
116
|
-
15,
|
|
117
|
-
155,
|
|
118
|
-
67,
|
|
119
|
-
241,
|
|
120
|
-
20,
|
|
121
|
-
247,
|
|
122
|
-
21,
|
|
123
|
-
189
|
|
124
|
-
];
|
|
125
|
-
"accounts": [
|
|
126
|
-
{
|
|
127
|
-
"name": "bitmapAccount";
|
|
128
|
-
"writable": true;
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"name": "signer";
|
|
132
|
-
"writable": true;
|
|
133
|
-
"signer": true;
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"name": "systemProgram";
|
|
137
|
-
"address": "11111111111111111111111111111111";
|
|
138
|
-
}
|
|
139
|
-
];
|
|
140
|
-
"args": [
|
|
141
|
-
{
|
|
142
|
-
"name": "index";
|
|
143
|
-
"type": "u32";
|
|
144
|
-
}
|
|
145
|
-
];
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "verify";
|
|
149
|
-
"discriminator": [
|
|
150
|
-
133,
|
|
151
|
-
161,
|
|
152
|
-
141,
|
|
153
|
-
48,
|
|
154
|
-
120,
|
|
155
|
-
198,
|
|
156
|
-
88,
|
|
157
|
-
150
|
|
158
|
-
];
|
|
159
|
-
"accounts": [];
|
|
160
|
-
"args": [
|
|
161
|
-
{
|
|
162
|
-
"name": "root";
|
|
163
|
-
"type": {
|
|
164
|
-
"array": [
|
|
165
|
-
"u8",
|
|
166
|
-
32
|
|
167
|
-
];
|
|
168
|
-
};
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"name": "leaf";
|
|
172
|
-
"type": {
|
|
173
|
-
"array": [
|
|
174
|
-
"u8",
|
|
175
|
-
32
|
|
176
|
-
];
|
|
177
|
-
};
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"name": "proof";
|
|
181
|
-
"type": {
|
|
182
|
-
"vec": {
|
|
183
|
-
"array": [
|
|
184
|
-
"u8",
|
|
185
|
-
32
|
|
186
|
-
];
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
];
|
|
191
|
-
}
|
|
192
|
-
];
|
|
193
|
-
"accounts": [
|
|
194
|
-
{
|
|
195
|
-
"name": "bitmapAccount";
|
|
196
|
-
"discriminator": [
|
|
197
|
-
152,
|
|
198
|
-
161,
|
|
199
|
-
147,
|
|
200
|
-
85,
|
|
201
|
-
213,
|
|
202
|
-
38,
|
|
203
|
-
59,
|
|
204
|
-
48
|
|
205
|
-
];
|
|
206
|
-
}
|
|
207
|
-
];
|
|
208
|
-
"events": [
|
|
209
|
-
{
|
|
210
|
-
"name": "testEvent";
|
|
211
|
-
"discriminator": [
|
|
212
|
-
28,
|
|
213
|
-
52,
|
|
214
|
-
39,
|
|
215
|
-
105,
|
|
216
|
-
8,
|
|
217
|
-
210,
|
|
218
|
-
91,
|
|
219
|
-
9
|
|
220
|
-
];
|
|
221
|
-
}
|
|
222
|
-
];
|
|
223
|
-
"types": [
|
|
224
|
-
{
|
|
225
|
-
"name": "bitmapAccount";
|
|
226
|
-
"type": {
|
|
227
|
-
"kind": "struct";
|
|
228
|
-
"fields": [
|
|
229
|
-
{
|
|
230
|
-
"name": "claimedBitmap";
|
|
231
|
-
"type": "bytes";
|
|
232
|
-
}
|
|
233
|
-
];
|
|
234
|
-
};
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"name": "testEvent";
|
|
238
|
-
"type": {
|
|
239
|
-
"kind": "struct";
|
|
240
|
-
"fields": [
|
|
241
|
-
{
|
|
242
|
-
"name": "message";
|
|
243
|
-
"type": "string";
|
|
244
|
-
}
|
|
245
|
-
];
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
];
|
|
249
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
-
export declare const MESSAGE_SENT_DISCRIMINATOR: Uint8Array;
|
|
10
|
-
export declare function getMessageSentDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
11
|
-
export type MessageSent = {
|
|
12
|
-
discriminator: ReadonlyUint8Array;
|
|
13
|
-
rentPayer: Address;
|
|
14
|
-
createdAt: bigint;
|
|
15
|
-
message: ReadonlyUint8Array;
|
|
16
|
-
};
|
|
17
|
-
export type MessageSentArgs = {
|
|
18
|
-
rentPayer: Address;
|
|
19
|
-
createdAt: number | bigint;
|
|
20
|
-
message: ReadonlyUint8Array;
|
|
21
|
-
};
|
|
22
|
-
export declare function getMessageSentEncoder(): Encoder<MessageSentArgs>;
|
|
23
|
-
export declare function getMessageSentDecoder(): Decoder<MessageSent>;
|
|
24
|
-
export declare function getMessageSentCodec(): Codec<MessageSentArgs, MessageSent>;
|
|
25
|
-
export declare function decodeMessageSent<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<MessageSent, TAddress>;
|
|
26
|
-
export declare function decodeMessageSent<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<MessageSent, TAddress>;
|
|
27
|
-
export declare function fetchMessageSent<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<MessageSent, TAddress>>;
|
|
28
|
-
export declare function fetchMaybeMessageSent<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<MessageSent, TAddress>>;
|
|
29
|
-
export declare function fetchAllMessageSent(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<MessageSent>[]>;
|
|
30
|
-
export declare function fetchAllMaybeMessageSent(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<MessageSent>[]>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This code was AUTOGENERATED using the codama library.
|
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
-
* to add features, then rerun codama to update it.
|
|
6
|
-
*
|
|
7
|
-
* @see https://github.com/codama-idl/codama
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.MESSAGE_SENT_DISCRIMINATOR = void 0;
|
|
11
|
-
exports.getMessageSentDiscriminatorBytes = getMessageSentDiscriminatorBytes;
|
|
12
|
-
exports.getMessageSentEncoder = getMessageSentEncoder;
|
|
13
|
-
exports.getMessageSentDecoder = getMessageSentDecoder;
|
|
14
|
-
exports.getMessageSentCodec = getMessageSentCodec;
|
|
15
|
-
exports.decodeMessageSent = decodeMessageSent;
|
|
16
|
-
exports.fetchMessageSent = fetchMessageSent;
|
|
17
|
-
exports.fetchMaybeMessageSent = fetchMaybeMessageSent;
|
|
18
|
-
exports.fetchAllMessageSent = fetchAllMessageSent;
|
|
19
|
-
exports.fetchAllMaybeMessageSent = fetchAllMaybeMessageSent;
|
|
20
|
-
const kit_1 = require("@solana/kit");
|
|
21
|
-
exports.MESSAGE_SENT_DISCRIMINATOR = new Uint8Array([
|
|
22
|
-
131, 100, 133, 56, 166, 225, 151, 60,
|
|
23
|
-
]);
|
|
24
|
-
function getMessageSentDiscriminatorBytes() {
|
|
25
|
-
return (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(exports.MESSAGE_SENT_DISCRIMINATOR);
|
|
26
|
-
}
|
|
27
|
-
function getMessageSentEncoder() {
|
|
28
|
-
return (0, kit_1.transformEncoder)((0, kit_1.getStructEncoder)([
|
|
29
|
-
['discriminator', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
|
|
30
|
-
['rentPayer', (0, kit_1.getAddressEncoder)()],
|
|
31
|
-
['createdAt', (0, kit_1.getI64Encoder)()],
|
|
32
|
-
['message', (0, kit_1.addEncoderSizePrefix)((0, kit_1.getBytesEncoder)(), (0, kit_1.getU32Encoder)())],
|
|
33
|
-
]), (value) => ({ ...value, discriminator: exports.MESSAGE_SENT_DISCRIMINATOR }));
|
|
34
|
-
}
|
|
35
|
-
function getMessageSentDecoder() {
|
|
36
|
-
return (0, kit_1.getStructDecoder)([
|
|
37
|
-
['discriminator', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
|
|
38
|
-
['rentPayer', (0, kit_1.getAddressDecoder)()],
|
|
39
|
-
['createdAt', (0, kit_1.getI64Decoder)()],
|
|
40
|
-
['message', (0, kit_1.addDecoderSizePrefix)((0, kit_1.getBytesDecoder)(), (0, kit_1.getU32Decoder)())],
|
|
41
|
-
]);
|
|
42
|
-
}
|
|
43
|
-
function getMessageSentCodec() {
|
|
44
|
-
return (0, kit_1.combineCodec)(getMessageSentEncoder(), getMessageSentDecoder());
|
|
45
|
-
}
|
|
46
|
-
function decodeMessageSent(encodedAccount) {
|
|
47
|
-
return (0, kit_1.decodeAccount)(encodedAccount, getMessageSentDecoder());
|
|
48
|
-
}
|
|
49
|
-
async function fetchMessageSent(rpc, address, config) {
|
|
50
|
-
const maybeAccount = await fetchMaybeMessageSent(rpc, address, config);
|
|
51
|
-
(0, kit_1.assertAccountExists)(maybeAccount);
|
|
52
|
-
return maybeAccount;
|
|
53
|
-
}
|
|
54
|
-
async function fetchMaybeMessageSent(rpc, address, config) {
|
|
55
|
-
const maybeAccount = await (0, kit_1.fetchEncodedAccount)(rpc, address, config);
|
|
56
|
-
return decodeMessageSent(maybeAccount);
|
|
57
|
-
}
|
|
58
|
-
async function fetchAllMessageSent(rpc, addresses, config) {
|
|
59
|
-
const maybeAccounts = await fetchAllMaybeMessageSent(rpc, addresses, config);
|
|
60
|
-
(0, kit_1.assertAccountsExist)(maybeAccounts);
|
|
61
|
-
return maybeAccounts;
|
|
62
|
-
}
|
|
63
|
-
async function fetchAllMaybeMessageSent(rpc, addresses, config) {
|
|
64
|
-
const maybeAccounts = await (0, kit_1.fetchEncodedAccounts)(rpc, addresses, config);
|
|
65
|
-
return maybeAccounts.map((maybeAccount) => decodeMessageSent(maybeAccount));
|
|
66
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
-
import { type SlowFill, type SlowFillArgs } from '../types';
|
|
10
|
-
export declare const EXECUTE_SLOW_RELAY_LEAF_PARAMS_DISCRIMINATOR: Uint8Array;
|
|
11
|
-
export declare function getExecuteSlowRelayLeafParamsDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
12
|
-
export type ExecuteSlowRelayLeafParams = {
|
|
13
|
-
discriminator: ReadonlyUint8Array;
|
|
14
|
-
slowFillLeaf: SlowFill;
|
|
15
|
-
rootBundleId: number;
|
|
16
|
-
proof: Array<ReadonlyUint8Array>;
|
|
17
|
-
};
|
|
18
|
-
export type ExecuteSlowRelayLeafParamsArgs = {
|
|
19
|
-
slowFillLeaf: SlowFillArgs;
|
|
20
|
-
rootBundleId: number;
|
|
21
|
-
proof: Array<ReadonlyUint8Array>;
|
|
22
|
-
};
|
|
23
|
-
export declare function getExecuteSlowRelayLeafParamsEncoder(): Encoder<ExecuteSlowRelayLeafParamsArgs>;
|
|
24
|
-
export declare function getExecuteSlowRelayLeafParamsDecoder(): Decoder<ExecuteSlowRelayLeafParams>;
|
|
25
|
-
export declare function getExecuteSlowRelayLeafParamsCodec(): Codec<ExecuteSlowRelayLeafParamsArgs, ExecuteSlowRelayLeafParams>;
|
|
26
|
-
export declare function decodeExecuteSlowRelayLeafParams<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ExecuteSlowRelayLeafParams, TAddress>;
|
|
27
|
-
export declare function decodeExecuteSlowRelayLeafParams<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ExecuteSlowRelayLeafParams, TAddress>;
|
|
28
|
-
export declare function fetchExecuteSlowRelayLeafParams<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ExecuteSlowRelayLeafParams, TAddress>>;
|
|
29
|
-
export declare function fetchMaybeExecuteSlowRelayLeafParams<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ExecuteSlowRelayLeafParams, TAddress>>;
|
|
30
|
-
export declare function fetchAllExecuteSlowRelayLeafParams(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ExecuteSlowRelayLeafParams>[]>;
|
|
31
|
-
export declare function fetchAllMaybeExecuteSlowRelayLeafParams(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ExecuteSlowRelayLeafParams>[]>;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This code was AUTOGENERATED using the codama library.
|
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
-
* to add features, then rerun codama to update it.
|
|
6
|
-
*
|
|
7
|
-
* @see https://github.com/codama-idl/codama
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.EXECUTE_SLOW_RELAY_LEAF_PARAMS_DISCRIMINATOR = void 0;
|
|
11
|
-
exports.getExecuteSlowRelayLeafParamsDiscriminatorBytes = getExecuteSlowRelayLeafParamsDiscriminatorBytes;
|
|
12
|
-
exports.getExecuteSlowRelayLeafParamsEncoder = getExecuteSlowRelayLeafParamsEncoder;
|
|
13
|
-
exports.getExecuteSlowRelayLeafParamsDecoder = getExecuteSlowRelayLeafParamsDecoder;
|
|
14
|
-
exports.getExecuteSlowRelayLeafParamsCodec = getExecuteSlowRelayLeafParamsCodec;
|
|
15
|
-
exports.decodeExecuteSlowRelayLeafParams = decodeExecuteSlowRelayLeafParams;
|
|
16
|
-
exports.fetchExecuteSlowRelayLeafParams = fetchExecuteSlowRelayLeafParams;
|
|
17
|
-
exports.fetchMaybeExecuteSlowRelayLeafParams = fetchMaybeExecuteSlowRelayLeafParams;
|
|
18
|
-
exports.fetchAllExecuteSlowRelayLeafParams = fetchAllExecuteSlowRelayLeafParams;
|
|
19
|
-
exports.fetchAllMaybeExecuteSlowRelayLeafParams = fetchAllMaybeExecuteSlowRelayLeafParams;
|
|
20
|
-
const kit_1 = require("@solana/kit");
|
|
21
|
-
const types_1 = require("../types");
|
|
22
|
-
exports.EXECUTE_SLOW_RELAY_LEAF_PARAMS_DISCRIMINATOR = new Uint8Array([
|
|
23
|
-
135, 208, 119, 251, 14, 222, 66, 155,
|
|
24
|
-
]);
|
|
25
|
-
function getExecuteSlowRelayLeafParamsDiscriminatorBytes() {
|
|
26
|
-
return (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(exports.EXECUTE_SLOW_RELAY_LEAF_PARAMS_DISCRIMINATOR);
|
|
27
|
-
}
|
|
28
|
-
function getExecuteSlowRelayLeafParamsEncoder() {
|
|
29
|
-
return (0, kit_1.transformEncoder)((0, kit_1.getStructEncoder)([
|
|
30
|
-
['discriminator', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
|
|
31
|
-
['slowFillLeaf', (0, types_1.getSlowFillEncoder)()],
|
|
32
|
-
['rootBundleId', (0, kit_1.getU32Encoder)()],
|
|
33
|
-
['proof', (0, kit_1.getArrayEncoder)((0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 32))],
|
|
34
|
-
]), (value) => ({
|
|
35
|
-
...value,
|
|
36
|
-
discriminator: exports.EXECUTE_SLOW_RELAY_LEAF_PARAMS_DISCRIMINATOR,
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
function getExecuteSlowRelayLeafParamsDecoder() {
|
|
40
|
-
return (0, kit_1.getStructDecoder)([
|
|
41
|
-
['discriminator', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
|
|
42
|
-
['slowFillLeaf', (0, types_1.getSlowFillDecoder)()],
|
|
43
|
-
['rootBundleId', (0, kit_1.getU32Decoder)()],
|
|
44
|
-
['proof', (0, kit_1.getArrayDecoder)((0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 32))],
|
|
45
|
-
]);
|
|
46
|
-
}
|
|
47
|
-
function getExecuteSlowRelayLeafParamsCodec() {
|
|
48
|
-
return (0, kit_1.combineCodec)(getExecuteSlowRelayLeafParamsEncoder(), getExecuteSlowRelayLeafParamsDecoder());
|
|
49
|
-
}
|
|
50
|
-
function decodeExecuteSlowRelayLeafParams(encodedAccount) {
|
|
51
|
-
return (0, kit_1.decodeAccount)(encodedAccount, getExecuteSlowRelayLeafParamsDecoder());
|
|
52
|
-
}
|
|
53
|
-
async function fetchExecuteSlowRelayLeafParams(rpc, address, config) {
|
|
54
|
-
const maybeAccount = await fetchMaybeExecuteSlowRelayLeafParams(rpc, address, config);
|
|
55
|
-
(0, kit_1.assertAccountExists)(maybeAccount);
|
|
56
|
-
return maybeAccount;
|
|
57
|
-
}
|
|
58
|
-
async function fetchMaybeExecuteSlowRelayLeafParams(rpc, address, config) {
|
|
59
|
-
const maybeAccount = await (0, kit_1.fetchEncodedAccount)(rpc, address, config);
|
|
60
|
-
return decodeExecuteSlowRelayLeafParams(maybeAccount);
|
|
61
|
-
}
|
|
62
|
-
async function fetchAllExecuteSlowRelayLeafParams(rpc, addresses, config) {
|
|
63
|
-
const maybeAccounts = await fetchAllMaybeExecuteSlowRelayLeafParams(rpc, addresses, config);
|
|
64
|
-
(0, kit_1.assertAccountsExist)(maybeAccounts);
|
|
65
|
-
return maybeAccounts;
|
|
66
|
-
}
|
|
67
|
-
async function fetchAllMaybeExecuteSlowRelayLeafParams(rpc, addresses, config) {
|
|
68
|
-
const maybeAccounts = await (0, kit_1.fetchEncodedAccounts)(rpc, addresses, config);
|
|
69
|
-
return maybeAccounts.map((maybeAccount) => decodeExecuteSlowRelayLeafParams(maybeAccount));
|
|
70
|
-
}
|