@stargatefinance/stg-evm-sdk-v2 0.0.11
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/artifacts/src/StargateBase.sol/StargateBase.json +1348 -0
- package/artifacts/src/StargateOFT.sol/StargateOFT.json +1374 -0
- package/artifacts/src/StargatePool.sol/StargatePool.json +1722 -0
- package/artifacts/src/StargatePoolNative.sol/StargatePoolNative.json +1717 -0
- package/artifacts/src/feelibs/FeeLibBase.sol/FeeLibBase.json +313 -0
- package/artifacts/src/feelibs/FeeLibV1.sol/FeeConfigLib.json +10 -0
- package/artifacts/src/feelibs/FeeLibV1.sol/FeeLibV1.json +561 -0
- package/artifacts/src/intent/IntentBase.sol/IntentBase.json +231 -0
- package/artifacts/src/intent/IntentOFT.sol/IntentOFT.json +247 -0
- package/artifacts/src/intent/IntentPool.sol/IntentPool.json +350 -0
- package/artifacts/src/intent/IntentPoolNative.sol/IWETH.json +24 -0
- package/artifacts/src/intent/IntentPoolNative.sol/IntentPoolNative.json +367 -0
- package/artifacts/src/interfaces/IBridgedUSDCMinter.sol/IBridgedUSDCMinter.json +48 -0
- package/artifacts/src/interfaces/ICreditMessaging.sol/ICreditMessaging.json +113 -0
- package/artifacts/src/interfaces/ICreditMessagingHandler.sol/ICreditMessagingHandler.json +71 -0
- package/artifacts/src/interfaces/IERC20Minter.sol/IERC20Minter.json +47 -0
- package/artifacts/src/interfaces/IStargate.sol/IStargate.json +661 -0
- package/artifacts/src/interfaces/IStargateFeeLib.sol/IStargateFeeLib.json +230 -0
- package/artifacts/src/interfaces/IStargatePool.sol/IStargatePool.json +939 -0
- package/artifacts/src/interfaces/ITokenMessaging.sol/ITokenMessaging.json +494 -0
- package/artifacts/src/interfaces/ITokenMessagingHandler.sol/ITokenMessagingHandler.json +78 -0
- package/artifacts/src/interfaces/permit2/IAllowanceTransfer.sol/IAllowanceTransfer.json +495 -0
- package/artifacts/src/interfaces/permit2/IEIP712.sol/IEIP712.json +24 -0
- package/artifacts/src/interfaces/permit2/IPermit2.sol/IPermit2.json +874 -0
- package/artifacts/src/interfaces/permit2/ISignatureTransfer.sol/ISignatureTransfer.json +403 -0
- package/artifacts/src/libs/AddressCast.sol/AddressCast.json +10 -0
- package/artifacts/src/libs/Bus.sol/BusLib.json +92 -0
- package/artifacts/src/libs/CreditMsgCodec.sol/CreditMsgCodec.json +16 -0
- package/artifacts/src/libs/MessagingHelper.sol/MessagingHelper.json +10 -0
- package/artifacts/src/libs/PassengerCodec.sol/PassengerCodec.json +16 -0
- package/artifacts/src/libs/Path.sol/PathLib.json +26 -0
- package/artifacts/src/libs/RideBusOptionsLibV1.sol/RideBusOptionsLibV1.json +16 -0
- package/artifacts/src/libs/TokenMsgCodec.sol/TokenMsgCodec.json +16 -0
- package/artifacts/src/libs/Transfer.sol/Transfer.json +21 -0
- package/artifacts/src/libs/Transfer.sol/TransferLib.json +21 -0
- package/artifacts/src/messaging/CreditMessaging.sol/CreditMessaging.json +1033 -0
- package/artifacts/src/messaging/CreditMessagingOptions.sol/CreditMessagingOptions.json +229 -0
- package/artifacts/src/messaging/MessagingBase.sol/MessagingBase.json +701 -0
- package/artifacts/src/messaging/TokenMessaging.sol/TokenMessaging.json +1692 -0
- package/artifacts/src/messaging/TokenMessagingOptions.sol/TokenMessagingOptions.json +239 -0
- package/artifacts/src/mocks/ERC20Token.sol/ERC20Token.json +335 -0
- package/artifacts/src/mocks/FeeLibMock.sol/FeeLibMock.json +230 -0
- package/artifacts/src/mocks/OFTToken.sol/OFTToken.json +380 -0
- package/artifacts/src/mocks/PoolToken.sol/PoolToken.json +406 -0
- package/artifacts/src/mocks/USDC.sol/USDC.json +381 -0
- package/artifacts/src/mocks/WETH.sol/WETH.json +310 -0
- package/artifacts/src/peripheral/Planner.sol/Planner.json +212 -0
- package/artifacts/src/peripheral/RebateCampaign.sol/RebateCampaign.json +237 -0
- package/artifacts/src/peripheral/Treasurer.sol/Treasurer.json +194 -0
- package/artifacts/src/usdc/StargateOFTUSDC.sol/StargateOFTUSDC.json +1374 -0
- package/artifacts/src/usdc/StargatePoolUSDC.sol/StargatePoolUSDC.json +1748 -0
- package/artifacts/src/utils/LPToken.sol/LPToken.json +496 -0
- package/deployments/arbsep-testnet/FeeLibV1ETH.json +466 -0
- package/deployments/arbsep-testnet/MessagingETH.json +1356 -0
- package/deployments/arbsep-testnet/StargatePoolNative.json +1933 -0
- package/deployments/avalanche-testnet/FeeLibV1USDT.json +466 -0
- package/deployments/avalanche-testnet/MessagingUSDT.json +1356 -0
- package/deployments/avalanche-testnet/StargatePoolUSDT.json +1939 -0
- package/deployments/bsc-sandbox-local/CreditMessaging.json +1393 -0
- package/deployments/bsc-sandbox-local/FeeLibV1BUSD.json +828 -0
- package/deployments/bsc-sandbox-local/FeeLibV1ETH.json +828 -0
- package/deployments/bsc-sandbox-local/FeeLibV1LUSD.json +828 -0
- package/deployments/bsc-sandbox-local/FeeLibV1USDC.json +828 -0
- package/deployments/bsc-sandbox-local/FeeLibV1USDT.json +828 -0
- package/deployments/bsc-sandbox-local/IntentOFTBUSD.json +337 -0
- package/deployments/bsc-sandbox-local/IntentOFTETH.json +337 -0
- package/deployments/bsc-sandbox-local/IntentOFTLUSD.json +337 -0
- package/deployments/bsc-sandbox-local/IntentOFTUSDC.json +337 -0
- package/deployments/bsc-sandbox-local/IntentOFTUSDT.json +337 -0
- package/deployments/bsc-sandbox-local/OFTTokenBUSD.json +571 -0
- package/deployments/bsc-sandbox-local/OFTTokenETH.json +571 -0
- package/deployments/bsc-sandbox-local/OFTTokenLUSD.json +571 -0
- package/deployments/bsc-sandbox-local/OFTTokenUSDC.json +558 -0
- package/deployments/bsc-sandbox-local/OFTTokenUSDT.json +571 -0
- package/deployments/bsc-sandbox-local/Permit2Mock.json +923 -0
- package/deployments/bsc-sandbox-local/StargateOFTBUSD.json +1803 -0
- package/deployments/bsc-sandbox-local/StargateOFTETH.json +1803 -0
- package/deployments/bsc-sandbox-local/StargateOFTLUSD.json +1803 -0
- package/deployments/bsc-sandbox-local/StargateOFTUSDC.json +1792 -0
- package/deployments/bsc-sandbox-local/StargateOFTUSDT.json +1803 -0
- package/deployments/bsc-sandbox-local/TokenMessaging.json +2166 -0
- package/deployments/bsc-sandbox-local/WETH.json +453 -0
- package/deployments/bsc-testnet/FeeLibV1ETH.json +466 -0
- package/deployments/bsc-testnet/FeeLibV1USDT.json +466 -0
- package/deployments/bsc-testnet/MessagingETH.json +1356 -0
- package/deployments/bsc-testnet/MessagingUSDT.json +1356 -0
- package/deployments/bsc-testnet/OFTTokenETH.json +557 -0
- package/deployments/bsc-testnet/StargateOFTETH.json +1601 -0
- package/deployments/bsc-testnet/StargatePoolUSDT.json +1939 -0
- package/deployments/ethereum-sandbox-local/CreditMessaging.json +1393 -0
- package/deployments/ethereum-sandbox-local/FeeLibV1BUSD.json +828 -0
- package/deployments/ethereum-sandbox-local/FeeLibV1ETH.json +828 -0
- package/deployments/ethereum-sandbox-local/FeeLibV1LUSD.json +828 -0
- package/deployments/ethereum-sandbox-local/FeeLibV1USDC.json +828 -0
- package/deployments/ethereum-sandbox-local/FeeLibV1USDT.json +828 -0
- package/deployments/ethereum-sandbox-local/IntentOFTBUSD.json +337 -0
- package/deployments/ethereum-sandbox-local/IntentPoolLUSD.json +440 -0
- package/deployments/ethereum-sandbox-local/IntentPoolNative.json +444 -0
- package/deployments/ethereum-sandbox-local/IntentPoolUSDC.json +440 -0
- package/deployments/ethereum-sandbox-local/IntentPoolUSDT.json +440 -0
- package/deployments/ethereum-sandbox-local/OFTTokenBUSD.json +571 -0
- package/deployments/ethereum-sandbox-local/Permit2Mock.json +923 -0
- package/deployments/ethereum-sandbox-local/PoolTokenLUSD.json +597 -0
- package/deployments/ethereum-sandbox-local/PoolTokenUSDC.json +597 -0
- package/deployments/ethereum-sandbox-local/PoolTokenUSDT.json +597 -0
- package/deployments/ethereum-sandbox-local/StargateOFTBUSD.json +1803 -0
- package/deployments/ethereum-sandbox-local/StargatePoolLUSD.json +2239 -0
- package/deployments/ethereum-sandbox-local/StargatePoolNative.json +2233 -0
- package/deployments/ethereum-sandbox-local/StargatePoolUSDC.json +2257 -0
- package/deployments/ethereum-sandbox-local/StargatePoolUSDT.json +2239 -0
- package/deployments/ethereum-sandbox-local/TokenMessaging.json +2166 -0
- package/deployments/ethereum-sandbox-local/WETH.json +453 -0
- package/deployments/polygon-sandbox-local/CreditMessaging.json +1393 -0
- package/deployments/polygon-sandbox-local/FeeLibV1BUSD.json +828 -0
- package/deployments/polygon-sandbox-local/FeeLibV1ETH.json +828 -0
- package/deployments/polygon-sandbox-local/FeeLibV1LUSD.json +828 -0
- package/deployments/polygon-sandbox-local/FeeLibV1USDC.json +828 -0
- package/deployments/polygon-sandbox-local/FeeLibV1USDT.json +828 -0
- package/deployments/polygon-sandbox-local/IntentOFTBUSD.json +337 -0
- package/deployments/polygon-sandbox-local/IntentOFTETH.json +337 -0
- package/deployments/polygon-sandbox-local/IntentOFTLUSD.json +337 -0
- package/deployments/polygon-sandbox-local/IntentOFTUSDC.json +337 -0
- package/deployments/polygon-sandbox-local/IntentPoolUSDT.json +440 -0
- package/deployments/polygon-sandbox-local/OFTTokenBUSD.json +571 -0
- package/deployments/polygon-sandbox-local/OFTTokenETH.json +571 -0
- package/deployments/polygon-sandbox-local/OFTTokenLUSD.json +571 -0
- package/deployments/polygon-sandbox-local/OFTTokenUSDC.json +558 -0
- package/deployments/polygon-sandbox-local/Permit2Mock.json +923 -0
- package/deployments/polygon-sandbox-local/PoolTokenUSDT.json +597 -0
- package/deployments/polygon-sandbox-local/StargateOFTBUSD.json +1803 -0
- package/deployments/polygon-sandbox-local/StargateOFTETH.json +1803 -0
- package/deployments/polygon-sandbox-local/StargateOFTLUSD.json +1803 -0
- package/deployments/polygon-sandbox-local/StargateOFTUSDC.json +1792 -0
- package/deployments/polygon-sandbox-local/StargatePoolUSDT.json +2239 -0
- package/deployments/polygon-sandbox-local/TokenMessaging.json +2166 -0
- package/deployments/polygon-sandbox-local/WETH.json +453 -0
- package/deployments/polygon-testnet/FeeLibV1USDT.json +481 -0
- package/deployments/polygon-testnet/MessagingUSDT.json +1371 -0
- package/deployments/polygon-testnet/OFTTokenUSDT.json +572 -0
- package/deployments/polygon-testnet/StargateOFTUSDT.json +1616 -0
- package/deployments/sepolia-testnet/FeeLibV1ETH.json +466 -0
- package/deployments/sepolia-testnet/MessagingETH.json +1356 -0
- package/deployments/sepolia-testnet/StargatePoolNative.json +1933 -0
- package/dist/index.cjs +24634 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +31486 -0
- package/dist/index.d.ts +31486 -0
- package/dist/index.mjs +24558 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ISignatureTransfer",
|
|
4
|
+
"sourceName": "src/interfaces/permit2/ISignatureTransfer.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint256",
|
|
10
|
+
"name": "maxAmount",
|
|
11
|
+
"type": "uint256"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"name": "InvalidAmount",
|
|
15
|
+
"type": "error"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputs": [],
|
|
19
|
+
"name": "LengthMismatch",
|
|
20
|
+
"type": "error"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"anonymous": false,
|
|
24
|
+
"inputs": [
|
|
25
|
+
{
|
|
26
|
+
"indexed": true,
|
|
27
|
+
"internalType": "address",
|
|
28
|
+
"name": "owner",
|
|
29
|
+
"type": "address"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"indexed": false,
|
|
33
|
+
"internalType": "uint256",
|
|
34
|
+
"name": "word",
|
|
35
|
+
"type": "uint256"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"indexed": false,
|
|
39
|
+
"internalType": "uint256",
|
|
40
|
+
"name": "mask",
|
|
41
|
+
"type": "uint256"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"name": "UnorderedNonceInvalidation",
|
|
45
|
+
"type": "event"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"inputs": [],
|
|
49
|
+
"name": "DOMAIN_SEPARATOR",
|
|
50
|
+
"outputs": [
|
|
51
|
+
{
|
|
52
|
+
"internalType": "bytes32",
|
|
53
|
+
"name": "",
|
|
54
|
+
"type": "bytes32"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"stateMutability": "view",
|
|
58
|
+
"type": "function"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"inputs": [
|
|
62
|
+
{
|
|
63
|
+
"internalType": "uint256",
|
|
64
|
+
"name": "wordPos",
|
|
65
|
+
"type": "uint256"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"internalType": "uint256",
|
|
69
|
+
"name": "mask",
|
|
70
|
+
"type": "uint256"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"name": "invalidateUnorderedNonces",
|
|
74
|
+
"outputs": [],
|
|
75
|
+
"stateMutability": "nonpayable",
|
|
76
|
+
"type": "function"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"inputs": [
|
|
80
|
+
{
|
|
81
|
+
"internalType": "address",
|
|
82
|
+
"name": "",
|
|
83
|
+
"type": "address"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"internalType": "uint256",
|
|
87
|
+
"name": "",
|
|
88
|
+
"type": "uint256"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"name": "nonceBitmap",
|
|
92
|
+
"outputs": [
|
|
93
|
+
{
|
|
94
|
+
"internalType": "uint256",
|
|
95
|
+
"name": "",
|
|
96
|
+
"type": "uint256"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"stateMutability": "view",
|
|
100
|
+
"type": "function"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"inputs": [
|
|
104
|
+
{
|
|
105
|
+
"components": [
|
|
106
|
+
{
|
|
107
|
+
"components": [
|
|
108
|
+
{
|
|
109
|
+
"internalType": "address",
|
|
110
|
+
"name": "token",
|
|
111
|
+
"type": "address"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"internalType": "uint256",
|
|
115
|
+
"name": "amount",
|
|
116
|
+
"type": "uint256"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"internalType": "struct ISignatureTransfer.TokenPermissions",
|
|
120
|
+
"name": "permitted",
|
|
121
|
+
"type": "tuple"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "uint256",
|
|
125
|
+
"name": "nonce",
|
|
126
|
+
"type": "uint256"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"internalType": "uint256",
|
|
130
|
+
"name": "deadline",
|
|
131
|
+
"type": "uint256"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"internalType": "struct ISignatureTransfer.PermitTransferFrom",
|
|
135
|
+
"name": "permit",
|
|
136
|
+
"type": "tuple"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"components": [
|
|
140
|
+
{
|
|
141
|
+
"internalType": "address",
|
|
142
|
+
"name": "to",
|
|
143
|
+
"type": "address"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"internalType": "uint256",
|
|
147
|
+
"name": "requestedAmount",
|
|
148
|
+
"type": "uint256"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"internalType": "struct ISignatureTransfer.SignatureTransferDetails",
|
|
152
|
+
"name": "transferDetails",
|
|
153
|
+
"type": "tuple"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"internalType": "address",
|
|
157
|
+
"name": "owner",
|
|
158
|
+
"type": "address"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"internalType": "bytes",
|
|
162
|
+
"name": "signature",
|
|
163
|
+
"type": "bytes"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"name": "permitTransferFrom",
|
|
167
|
+
"outputs": [],
|
|
168
|
+
"stateMutability": "nonpayable",
|
|
169
|
+
"type": "function"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"inputs": [
|
|
173
|
+
{
|
|
174
|
+
"components": [
|
|
175
|
+
{
|
|
176
|
+
"components": [
|
|
177
|
+
{
|
|
178
|
+
"internalType": "address",
|
|
179
|
+
"name": "token",
|
|
180
|
+
"type": "address"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"internalType": "uint256",
|
|
184
|
+
"name": "amount",
|
|
185
|
+
"type": "uint256"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"internalType": "struct ISignatureTransfer.TokenPermissions[]",
|
|
189
|
+
"name": "permitted",
|
|
190
|
+
"type": "tuple[]"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"internalType": "uint256",
|
|
194
|
+
"name": "nonce",
|
|
195
|
+
"type": "uint256"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"internalType": "uint256",
|
|
199
|
+
"name": "deadline",
|
|
200
|
+
"type": "uint256"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"internalType": "struct ISignatureTransfer.PermitBatchTransferFrom",
|
|
204
|
+
"name": "permit",
|
|
205
|
+
"type": "tuple"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"components": [
|
|
209
|
+
{
|
|
210
|
+
"internalType": "address",
|
|
211
|
+
"name": "to",
|
|
212
|
+
"type": "address"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"internalType": "uint256",
|
|
216
|
+
"name": "requestedAmount",
|
|
217
|
+
"type": "uint256"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"internalType": "struct ISignatureTransfer.SignatureTransferDetails[]",
|
|
221
|
+
"name": "transferDetails",
|
|
222
|
+
"type": "tuple[]"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"internalType": "address",
|
|
226
|
+
"name": "owner",
|
|
227
|
+
"type": "address"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"internalType": "bytes",
|
|
231
|
+
"name": "signature",
|
|
232
|
+
"type": "bytes"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"name": "permitTransferFrom",
|
|
236
|
+
"outputs": [],
|
|
237
|
+
"stateMutability": "nonpayable",
|
|
238
|
+
"type": "function"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"inputs": [
|
|
242
|
+
{
|
|
243
|
+
"components": [
|
|
244
|
+
{
|
|
245
|
+
"components": [
|
|
246
|
+
{
|
|
247
|
+
"internalType": "address",
|
|
248
|
+
"name": "token",
|
|
249
|
+
"type": "address"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"internalType": "uint256",
|
|
253
|
+
"name": "amount",
|
|
254
|
+
"type": "uint256"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"internalType": "struct ISignatureTransfer.TokenPermissions",
|
|
258
|
+
"name": "permitted",
|
|
259
|
+
"type": "tuple"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"internalType": "uint256",
|
|
263
|
+
"name": "nonce",
|
|
264
|
+
"type": "uint256"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"internalType": "uint256",
|
|
268
|
+
"name": "deadline",
|
|
269
|
+
"type": "uint256"
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
"internalType": "struct ISignatureTransfer.PermitTransferFrom",
|
|
273
|
+
"name": "permit",
|
|
274
|
+
"type": "tuple"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"components": [
|
|
278
|
+
{
|
|
279
|
+
"internalType": "address",
|
|
280
|
+
"name": "to",
|
|
281
|
+
"type": "address"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"internalType": "uint256",
|
|
285
|
+
"name": "requestedAmount",
|
|
286
|
+
"type": "uint256"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"internalType": "struct ISignatureTransfer.SignatureTransferDetails",
|
|
290
|
+
"name": "transferDetails",
|
|
291
|
+
"type": "tuple"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"internalType": "address",
|
|
295
|
+
"name": "owner",
|
|
296
|
+
"type": "address"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"internalType": "bytes32",
|
|
300
|
+
"name": "witness",
|
|
301
|
+
"type": "bytes32"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"internalType": "string",
|
|
305
|
+
"name": "witnessTypeString",
|
|
306
|
+
"type": "string"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"internalType": "bytes",
|
|
310
|
+
"name": "signature",
|
|
311
|
+
"type": "bytes"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"name": "permitWitnessTransferFrom",
|
|
315
|
+
"outputs": [],
|
|
316
|
+
"stateMutability": "nonpayable",
|
|
317
|
+
"type": "function"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"inputs": [
|
|
321
|
+
{
|
|
322
|
+
"components": [
|
|
323
|
+
{
|
|
324
|
+
"components": [
|
|
325
|
+
{
|
|
326
|
+
"internalType": "address",
|
|
327
|
+
"name": "token",
|
|
328
|
+
"type": "address"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"internalType": "uint256",
|
|
332
|
+
"name": "amount",
|
|
333
|
+
"type": "uint256"
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"internalType": "struct ISignatureTransfer.TokenPermissions[]",
|
|
337
|
+
"name": "permitted",
|
|
338
|
+
"type": "tuple[]"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"internalType": "uint256",
|
|
342
|
+
"name": "nonce",
|
|
343
|
+
"type": "uint256"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"internalType": "uint256",
|
|
347
|
+
"name": "deadline",
|
|
348
|
+
"type": "uint256"
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"internalType": "struct ISignatureTransfer.PermitBatchTransferFrom",
|
|
352
|
+
"name": "permit",
|
|
353
|
+
"type": "tuple"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"components": [
|
|
357
|
+
{
|
|
358
|
+
"internalType": "address",
|
|
359
|
+
"name": "to",
|
|
360
|
+
"type": "address"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"internalType": "uint256",
|
|
364
|
+
"name": "requestedAmount",
|
|
365
|
+
"type": "uint256"
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"internalType": "struct ISignatureTransfer.SignatureTransferDetails[]",
|
|
369
|
+
"name": "transferDetails",
|
|
370
|
+
"type": "tuple[]"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"internalType": "address",
|
|
374
|
+
"name": "owner",
|
|
375
|
+
"type": "address"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"internalType": "bytes32",
|
|
379
|
+
"name": "witness",
|
|
380
|
+
"type": "bytes32"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"internalType": "string",
|
|
384
|
+
"name": "witnessTypeString",
|
|
385
|
+
"type": "string"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"internalType": "bytes",
|
|
389
|
+
"name": "signature",
|
|
390
|
+
"type": "bytes"
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
"name": "permitWitnessTransferFrom",
|
|
394
|
+
"outputs": [],
|
|
395
|
+
"stateMutability": "nonpayable",
|
|
396
|
+
"type": "function"
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
"bytecode": "0x",
|
|
400
|
+
"deployedBytecode": "0x",
|
|
401
|
+
"linkReferences": {},
|
|
402
|
+
"deployedLinkReferences": {}
|
|
403
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "AddressCast",
|
|
4
|
+
"sourceName": "src/libs/AddressCast.sol",
|
|
5
|
+
"abi": [],
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b11f5c1261442dc6fd2794f1c24223e42afc74909615ee423af97214170528e064736f6c63430008160033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b11f5c1261442dc6fd2794f1c24223e42afc74909615ee423af97214170528e064736f6c63430008160033",
|
|
8
|
+
"linkReferences": {},
|
|
9
|
+
"deployedLinkReferences": {}
|
|
10
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "BusLib",
|
|
4
|
+
"sourceName": "src/libs/Bus.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "Bus_BusFull",
|
|
9
|
+
"type": "error"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"inputs": [],
|
|
13
|
+
"name": "Bus_ComposeMsgTooLarge",
|
|
14
|
+
"type": "error"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"inputs": [],
|
|
18
|
+
"name": "Bus_InvalidBusFare",
|
|
19
|
+
"type": "error"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"inputs": [],
|
|
23
|
+
"name": "Bus_InvalidPassenger",
|
|
24
|
+
"type": "error"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"inputs": [],
|
|
28
|
+
"name": "Bus_ZeroLzComposeGas",
|
|
29
|
+
"type": "error"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"anonymous": false,
|
|
33
|
+
"inputs": [
|
|
34
|
+
{
|
|
35
|
+
"indexed": false,
|
|
36
|
+
"internalType": "uint32",
|
|
37
|
+
"name": "dstEid",
|
|
38
|
+
"type": "uint32"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"indexed": false,
|
|
42
|
+
"internalType": "uint56",
|
|
43
|
+
"name": "startTicketId",
|
|
44
|
+
"type": "uint56"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"indexed": false,
|
|
48
|
+
"internalType": "uint8",
|
|
49
|
+
"name": "numPassengers",
|
|
50
|
+
"type": "uint8"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"indexed": false,
|
|
54
|
+
"internalType": "bytes32",
|
|
55
|
+
"name": "guid",
|
|
56
|
+
"type": "bytes32"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"name": "BusDriven",
|
|
60
|
+
"type": "event"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"anonymous": false,
|
|
64
|
+
"inputs": [
|
|
65
|
+
{
|
|
66
|
+
"indexed": false,
|
|
67
|
+
"internalType": "uint32",
|
|
68
|
+
"name": "dstEid",
|
|
69
|
+
"type": "uint32"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"indexed": false,
|
|
73
|
+
"internalType": "uint56",
|
|
74
|
+
"name": "tickedId",
|
|
75
|
+
"type": "uint56"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"indexed": false,
|
|
79
|
+
"internalType": "bytes",
|
|
80
|
+
"name": "passenger",
|
|
81
|
+
"type": "bytes"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"name": "BusRode",
|
|
85
|
+
"type": "event"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122039a8732d4169a7db814aa827cb7ac94002d26c83b6b2aa69eb652ee33e02130a64736f6c63430008160033",
|
|
89
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122039a8732d4169a7db814aa827cb7ac94002d26c83b6b2aa69eb652ee33e02130a64736f6c63430008160033",
|
|
90
|
+
"linkReferences": {},
|
|
91
|
+
"deployedLinkReferences": {}
|
|
92
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "CreditMsgCodec",
|
|
4
|
+
"sourceName": "src/libs/CreditMsgCodec.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "CreditMsgCodec_InvalidMessage",
|
|
9
|
+
"type": "error"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b3ff0629a2dd363ec2bd42346a990c222838cf990eaf14ee7f7964f5be9ae5bc64736f6c63430008160033",
|
|
13
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b3ff0629a2dd363ec2bd42346a990c222838cf990eaf14ee7f7964f5be9ae5bc64736f6c63430008160033",
|
|
14
|
+
"linkReferences": {},
|
|
15
|
+
"deployedLinkReferences": {}
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "MessagingHelper",
|
|
4
|
+
"sourceName": "src/libs/MessagingHelper.sol",
|
|
5
|
+
"abi": [],
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203a3349376b3cbb697ada62f09672268af5024dffea2725b4ec8d0ed66398dc7e64736f6c63430008160033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203a3349376b3cbb697ada62f09672268af5024dffea2725b4ec8d0ed66398dc7e64736f6c63430008160033",
|
|
8
|
+
"linkReferences": {},
|
|
9
|
+
"deployedLinkReferences": {}
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "PassengerCodec",
|
|
4
|
+
"sourceName": "src/libs/PassengerCodec.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "PassengerCodec_InvalidPassenger",
|
|
9
|
+
"type": "error"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122003c94e625993ae23b563f5e4a908129d71a65711908448da8b426c80ae49794064736f6c63430008160033",
|
|
13
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122003c94e625993ae23b563f5e4a908129d71a65711908448da8b426c80ae49794064736f6c63430008160033",
|
|
14
|
+
"linkReferences": {},
|
|
15
|
+
"deployedLinkReferences": {}
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "PathLib",
|
|
4
|
+
"sourceName": "src/libs/Path.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "Path_AlreadyHasCredit",
|
|
9
|
+
"type": "error"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"inputs": [],
|
|
13
|
+
"name": "Path_CreditTooMuch",
|
|
14
|
+
"type": "error"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"inputs": [],
|
|
18
|
+
"name": "Path_InsufficientCredit",
|
|
19
|
+
"type": "error"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122000136c4877364cdd56cd757178b692753387eeba55a19078b936d8855c10691c64736f6c63430008160033",
|
|
23
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122000136c4877364cdd56cd757178b692753387eeba55a19078b936d8855c10691c64736f6c63430008160033",
|
|
24
|
+
"linkReferences": {},
|
|
25
|
+
"deployedLinkReferences": {}
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "RideBusOptionsLibV1",
|
|
4
|
+
"sourceName": "src/libs/RideBusOptionsLibV1.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "RideBusOptions_InvalidOptions",
|
|
9
|
+
"type": "error"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220444ee68f49f2b02b6964f5650124d3dc5d3f8ecc5c802e9d77762f2e7ec6274564736f6c63430008160033",
|
|
13
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220444ee68f49f2b02b6964f5650124d3dc5d3f8ecc5c802e9d77762f2e7ec6274564736f6c63430008160033",
|
|
14
|
+
"linkReferences": {},
|
|
15
|
+
"deployedLinkReferences": {}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "TokenMsgCodec",
|
|
4
|
+
"sourceName": "src/libs/TokenMsgCodec.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "TokenMsgCodec_InvalidMessage",
|
|
9
|
+
"type": "error"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220272d95121206fd51b9bc8cfc19c80b9ab49dce23be650217aa622ab2e55a1c1c64736f6c63430008160033",
|
|
13
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220272d95121206fd51b9bc8cfc19c80b9ab49dce23be650217aa622ab2e55a1c1c64736f6c63430008160033",
|
|
14
|
+
"linkReferences": {},
|
|
15
|
+
"deployedLinkReferences": {}
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "Transfer",
|
|
4
|
+
"sourceName": "src/libs/Transfer.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "Transfer_ApproveFailed",
|
|
9
|
+
"type": "error"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"inputs": [],
|
|
13
|
+
"name": "Transfer_TransferFailed",
|
|
14
|
+
"type": "error"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b25e18248acd01b05763cae87f2b9f0fc996af0879c88e2f47b623891904a8b664736f6c63430008160033",
|
|
18
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b25e18248acd01b05763cae87f2b9f0fc996af0879c88e2f47b623891904a8b664736f6c63430008160033",
|
|
19
|
+
"linkReferences": {},
|
|
20
|
+
"deployedLinkReferences": {}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "TransferLib",
|
|
4
|
+
"sourceName": "src/libs/Transfer.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "ApproveFailed",
|
|
9
|
+
"type": "error"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"inputs": [],
|
|
13
|
+
"name": "TransferFailed",
|
|
14
|
+
"type": "error"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220ebd0ad902ea7f71867aa78cefde400d606845ac3ff41b06baf1ebcc74492c95764736f6c63430008160033",
|
|
18
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220ebd0ad902ea7f71867aa78cefde400d606845ac3ff41b06baf1ebcc74492c95764736f6c63430008160033",
|
|
19
|
+
"linkReferences": {},
|
|
20
|
+
"deployedLinkReferences": {}
|
|
21
|
+
}
|