damm-sdk 1.1.31-alpha.3 → 1.1.31-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +49868 -42184
- package/dist/index.cjs.map +121 -57
- package/dist/index.js +421 -417
- package/dist/index.js.map +5 -5
- package/dist/integrations/cctp/index.d.ts +1 -1
- package/dist/integrations/cctp/index.d.ts.map +1 -1
- package/dist/integrations/erc721/index.d.ts +1 -1
- package/dist/integrations/erc721/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/integrations/cctp/index.ts +1 -1
- package/src/integrations/erc721/index.ts +1 -1
- package/src/lib/contractsRegistry.json +12 -6
package/dist/index.js
CHANGED
|
@@ -53083,7 +53083,7 @@ var contractsRegistry_default = {
|
|
|
53083
53083
|
tokens: {
|
|
53084
53084
|
weth: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
53085
53085
|
usdc: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
53086
|
-
|
|
53086
|
+
usdt0: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
|
|
53087
53087
|
dai: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
|
53088
53088
|
usdce: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
|
|
53089
53089
|
aUSDT: "0x6ab707Aca953eDAeFBc4fD23bA73294241490620",
|
|
@@ -53244,7 +53244,7 @@ var contractsRegistry_default = {
|
|
|
53244
53244
|
tokens: {
|
|
53245
53245
|
usdce: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
|
|
53246
53246
|
usdc: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
|
|
53247
|
-
|
|
53247
|
+
usdt0: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
|
|
53248
53248
|
dai: "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
|
|
53249
53249
|
sand: "0xBbba073C31bF03b8ACf7c28EF0738DeCF3695683",
|
|
53250
53250
|
weth: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
|
|
@@ -53336,9 +53336,15 @@ var contractsRegistry_default = {
|
|
|
53336
53336
|
merkl: {
|
|
53337
53337
|
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53338
53338
|
},
|
|
53339
|
+
uniswapV3: {
|
|
53340
|
+
router: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
|
|
53341
|
+
positionManager: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
|
|
53342
|
+
},
|
|
53339
53343
|
tokens: {
|
|
53340
53344
|
usdc: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
|
|
53341
|
-
|
|
53345
|
+
dai: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
|
53346
|
+
usdt: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
|
|
53347
|
+
usdt0: "0x01bFF41798a0BcF287b996046Ca68b395DbC1071",
|
|
53342
53348
|
velo: "0x3c8B650257cFb5f272f799F5e2b4e65093a11a05",
|
|
53343
53349
|
weth: "0x4200000000000000000000000000000000000006"
|
|
53344
53350
|
},
|
|
@@ -53425,7 +53431,7 @@ var contractsRegistry_default = {
|
|
|
53425
53431
|
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
53426
53432
|
tokens: {
|
|
53427
53433
|
usdc: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
53428
|
-
|
|
53434
|
+
usdt0: "0xdac17f958d2ee523a2206206994597c13d831ec7",
|
|
53429
53435
|
sand: "0x3845badAde8e6dFF049820680d1F14bD3903a5d0",
|
|
53430
53436
|
weth: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
|
|
53431
53437
|
},
|
|
@@ -53483,7 +53489,7 @@ var contractsRegistry_default = {
|
|
|
53483
53489
|
},
|
|
53484
53490
|
tokens: {
|
|
53485
53491
|
usdc: "0x078D782b760474a361dDA0AF3839290b0EF57AD6",
|
|
53486
|
-
|
|
53492
|
+
usdt0: "0x9151434b16b9763660705744891fA906F660EcC5",
|
|
53487
53493
|
dai: "0x20CAb320A855b39F724131C69424240519573f81",
|
|
53488
53494
|
weth: "0x4200000000000000000000000000000000000006"
|
|
53489
53495
|
},
|
|
@@ -53705,7 +53711,7 @@ var contractsRegistry_default = {
|
|
|
53705
53711
|
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53706
53712
|
},
|
|
53707
53713
|
tokens: {
|
|
53708
|
-
|
|
53714
|
+
usdt0: "0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e",
|
|
53709
53715
|
usdc: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
|
|
53710
53716
|
celo: "0x471EcE3750Da237f93B8E339c536989b8978a438",
|
|
53711
53717
|
uni: "0xeE571697998ec64e32B57D754D700c4dda2f2a0e"
|
|
@@ -85041,331 +85047,6 @@ var sendOFTTrx = ({
|
|
|
85041
85047
|
value: args.nativeFee
|
|
85042
85048
|
});
|
|
85043
85049
|
};
|
|
85044
|
-
// src/integrations/cctp/message.transmitter.v2.abi.ts
|
|
85045
|
-
var message_transmitter_v2_abi_default = [
|
|
85046
|
-
{
|
|
85047
|
-
inputs: [
|
|
85048
|
-
{ internalType: "uint32", name: "_localDomain", type: "uint32" },
|
|
85049
|
-
{ internalType: "uint32", name: "_version", type: "uint32" }
|
|
85050
|
-
],
|
|
85051
|
-
stateMutability: "nonpayable",
|
|
85052
|
-
type: "constructor"
|
|
85053
|
-
},
|
|
85054
|
-
{
|
|
85055
|
-
anonymous: false,
|
|
85056
|
-
inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
|
|
85057
|
-
name: "AttesterDisabled",
|
|
85058
|
-
type: "event"
|
|
85059
|
-
},
|
|
85060
|
-
{
|
|
85061
|
-
anonymous: false,
|
|
85062
|
-
inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
|
|
85063
|
-
name: "AttesterEnabled",
|
|
85064
|
-
type: "event"
|
|
85065
|
-
},
|
|
85066
|
-
{
|
|
85067
|
-
anonymous: false,
|
|
85068
|
-
inputs: [
|
|
85069
|
-
{ indexed: true, internalType: "address", name: "previousAttesterManager", type: "address" },
|
|
85070
|
-
{ indexed: true, internalType: "address", name: "newAttesterManager", type: "address" }
|
|
85071
|
-
],
|
|
85072
|
-
name: "AttesterManagerUpdated",
|
|
85073
|
-
type: "event"
|
|
85074
|
-
},
|
|
85075
|
-
{
|
|
85076
|
-
anonymous: false,
|
|
85077
|
-
inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
|
|
85078
|
-
name: "Initialized",
|
|
85079
|
-
type: "event"
|
|
85080
|
-
},
|
|
85081
|
-
{
|
|
85082
|
-
anonymous: false,
|
|
85083
|
-
inputs: [{ indexed: false, internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
85084
|
-
name: "MaxMessageBodySizeUpdated",
|
|
85085
|
-
type: "event"
|
|
85086
|
-
},
|
|
85087
|
-
{
|
|
85088
|
-
anonymous: false,
|
|
85089
|
-
inputs: [
|
|
85090
|
-
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
85091
|
-
{ indexed: false, internalType: "uint32", name: "sourceDomain", type: "uint32" },
|
|
85092
|
-
{ indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" },
|
|
85093
|
-
{ indexed: false, internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85094
|
-
{ indexed: true, internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
85095
|
-
{ indexed: false, internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85096
|
-
],
|
|
85097
|
-
name: "MessageReceived",
|
|
85098
|
-
type: "event"
|
|
85099
|
-
},
|
|
85100
|
-
{
|
|
85101
|
-
anonymous: false,
|
|
85102
|
-
inputs: [{ indexed: false, internalType: "bytes", name: "message", type: "bytes" }],
|
|
85103
|
-
name: "MessageSent",
|
|
85104
|
-
type: "event"
|
|
85105
|
-
},
|
|
85106
|
-
{
|
|
85107
|
-
anonymous: false,
|
|
85108
|
-
inputs: [
|
|
85109
|
-
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
85110
|
-
{ indexed: true, internalType: "address", name: "newOwner", type: "address" }
|
|
85111
|
-
],
|
|
85112
|
-
name: "OwnershipTransferStarted",
|
|
85113
|
-
type: "event"
|
|
85114
|
-
},
|
|
85115
|
-
{
|
|
85116
|
-
anonymous: false,
|
|
85117
|
-
inputs: [
|
|
85118
|
-
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
85119
|
-
{ indexed: true, internalType: "address", name: "newOwner", type: "address" }
|
|
85120
|
-
],
|
|
85121
|
-
name: "OwnershipTransferred",
|
|
85122
|
-
type: "event"
|
|
85123
|
-
},
|
|
85124
|
-
{ anonymous: false, inputs: [], name: "Pause", type: "event" },
|
|
85125
|
-
{
|
|
85126
|
-
anonymous: false,
|
|
85127
|
-
inputs: [{ indexed: true, internalType: "address", name: "newAddress", type: "address" }],
|
|
85128
|
-
name: "PauserChanged",
|
|
85129
|
-
type: "event"
|
|
85130
|
-
},
|
|
85131
|
-
{
|
|
85132
|
-
anonymous: false,
|
|
85133
|
-
inputs: [{ indexed: true, internalType: "address", name: "newRescuer", type: "address" }],
|
|
85134
|
-
name: "RescuerChanged",
|
|
85135
|
-
type: "event"
|
|
85136
|
-
},
|
|
85137
|
-
{
|
|
85138
|
-
anonymous: false,
|
|
85139
|
-
inputs: [
|
|
85140
|
-
{ indexed: false, internalType: "uint256", name: "oldSignatureThreshold", type: "uint256" },
|
|
85141
|
-
{ indexed: false, internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }
|
|
85142
|
-
],
|
|
85143
|
-
name: "SignatureThresholdUpdated",
|
|
85144
|
-
type: "event"
|
|
85145
|
-
},
|
|
85146
|
-
{ anonymous: false, inputs: [], name: "Unpause", type: "event" },
|
|
85147
|
-
{
|
|
85148
|
-
inputs: [],
|
|
85149
|
-
name: "NONCE_USED",
|
|
85150
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85151
|
-
stateMutability: "view",
|
|
85152
|
-
type: "function"
|
|
85153
|
-
},
|
|
85154
|
-
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85155
|
-
{
|
|
85156
|
-
inputs: [],
|
|
85157
|
-
name: "attesterManager",
|
|
85158
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85159
|
-
stateMutability: "view",
|
|
85160
|
-
type: "function"
|
|
85161
|
-
},
|
|
85162
|
-
{
|
|
85163
|
-
inputs: [{ internalType: "address", name: "attester", type: "address" }],
|
|
85164
|
-
name: "disableAttester",
|
|
85165
|
-
outputs: [],
|
|
85166
|
-
stateMutability: "nonpayable",
|
|
85167
|
-
type: "function"
|
|
85168
|
-
},
|
|
85169
|
-
{
|
|
85170
|
-
inputs: [{ internalType: "address", name: "newAttester", type: "address" }],
|
|
85171
|
-
name: "enableAttester",
|
|
85172
|
-
outputs: [],
|
|
85173
|
-
stateMutability: "nonpayable",
|
|
85174
|
-
type: "function"
|
|
85175
|
-
},
|
|
85176
|
-
{
|
|
85177
|
-
inputs: [{ internalType: "uint256", name: "index", type: "uint256" }],
|
|
85178
|
-
name: "getEnabledAttester",
|
|
85179
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85180
|
-
stateMutability: "view",
|
|
85181
|
-
type: "function"
|
|
85182
|
-
},
|
|
85183
|
-
{
|
|
85184
|
-
inputs: [],
|
|
85185
|
-
name: "getNumEnabledAttesters",
|
|
85186
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85187
|
-
stateMutability: "view",
|
|
85188
|
-
type: "function"
|
|
85189
|
-
},
|
|
85190
|
-
{
|
|
85191
|
-
inputs: [
|
|
85192
|
-
{ internalType: "address", name: "owner_", type: "address" },
|
|
85193
|
-
{ internalType: "address", name: "pauser_", type: "address" },
|
|
85194
|
-
{ internalType: "address", name: "rescuer_", type: "address" },
|
|
85195
|
-
{ internalType: "address", name: "attesterManager_", type: "address" },
|
|
85196
|
-
{ internalType: "address[]", name: "attesters_", type: "address[]" },
|
|
85197
|
-
{ internalType: "uint256", name: "signatureThreshold_", type: "uint256" },
|
|
85198
|
-
{ internalType: "uint256", name: "maxMessageBodySize_", type: "uint256" }
|
|
85199
|
-
],
|
|
85200
|
-
name: "initialize",
|
|
85201
|
-
outputs: [],
|
|
85202
|
-
stateMutability: "nonpayable",
|
|
85203
|
-
type: "function"
|
|
85204
|
-
},
|
|
85205
|
-
{
|
|
85206
|
-
inputs: [],
|
|
85207
|
-
name: "initializedVersion",
|
|
85208
|
-
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
|
|
85209
|
-
stateMutability: "view",
|
|
85210
|
-
type: "function"
|
|
85211
|
-
},
|
|
85212
|
-
{
|
|
85213
|
-
inputs: [{ internalType: "address", name: "attester", type: "address" }],
|
|
85214
|
-
name: "isEnabledAttester",
|
|
85215
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85216
|
-
stateMutability: "view",
|
|
85217
|
-
type: "function"
|
|
85218
|
-
},
|
|
85219
|
-
{
|
|
85220
|
-
inputs: [],
|
|
85221
|
-
name: "localDomain",
|
|
85222
|
-
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85223
|
-
stateMutability: "view",
|
|
85224
|
-
type: "function"
|
|
85225
|
-
},
|
|
85226
|
-
{
|
|
85227
|
-
inputs: [],
|
|
85228
|
-
name: "maxMessageBodySize",
|
|
85229
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85230
|
-
stateMutability: "view",
|
|
85231
|
-
type: "function"
|
|
85232
|
-
},
|
|
85233
|
-
{
|
|
85234
|
-
inputs: [],
|
|
85235
|
-
name: "owner",
|
|
85236
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85237
|
-
stateMutability: "view",
|
|
85238
|
-
type: "function"
|
|
85239
|
-
},
|
|
85240
|
-
{ inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85241
|
-
{
|
|
85242
|
-
inputs: [],
|
|
85243
|
-
name: "paused",
|
|
85244
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85245
|
-
stateMutability: "view",
|
|
85246
|
-
type: "function"
|
|
85247
|
-
},
|
|
85248
|
-
{
|
|
85249
|
-
inputs: [],
|
|
85250
|
-
name: "pauser",
|
|
85251
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85252
|
-
stateMutability: "view",
|
|
85253
|
-
type: "function"
|
|
85254
|
-
},
|
|
85255
|
-
{
|
|
85256
|
-
inputs: [],
|
|
85257
|
-
name: "pendingOwner",
|
|
85258
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85259
|
-
stateMutability: "view",
|
|
85260
|
-
type: "function"
|
|
85261
|
-
},
|
|
85262
|
-
{
|
|
85263
|
-
inputs: [
|
|
85264
|
-
{ internalType: "bytes", name: "message", type: "bytes" },
|
|
85265
|
-
{ internalType: "bytes", name: "attestation", type: "bytes" }
|
|
85266
|
-
],
|
|
85267
|
-
name: "receiveMessage",
|
|
85268
|
-
outputs: [{ internalType: "bool", name: "success", type: "bool" }],
|
|
85269
|
-
stateMutability: "nonpayable",
|
|
85270
|
-
type: "function"
|
|
85271
|
-
},
|
|
85272
|
-
{
|
|
85273
|
-
inputs: [
|
|
85274
|
-
{ internalType: "contract IERC20", name: "tokenContract", type: "address" },
|
|
85275
|
-
{ internalType: "address", name: "to", type: "address" },
|
|
85276
|
-
{ internalType: "uint256", name: "amount", type: "uint256" }
|
|
85277
|
-
],
|
|
85278
|
-
name: "rescueERC20",
|
|
85279
|
-
outputs: [],
|
|
85280
|
-
stateMutability: "nonpayable",
|
|
85281
|
-
type: "function"
|
|
85282
|
-
},
|
|
85283
|
-
{
|
|
85284
|
-
inputs: [],
|
|
85285
|
-
name: "rescuer",
|
|
85286
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85287
|
-
stateMutability: "view",
|
|
85288
|
-
type: "function"
|
|
85289
|
-
},
|
|
85290
|
-
{
|
|
85291
|
-
inputs: [
|
|
85292
|
-
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85293
|
-
{ internalType: "bytes32", name: "recipient", type: "bytes32" },
|
|
85294
|
-
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85295
|
-
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85296
|
-
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85297
|
-
],
|
|
85298
|
-
name: "sendMessage",
|
|
85299
|
-
outputs: [],
|
|
85300
|
-
stateMutability: "nonpayable",
|
|
85301
|
-
type: "function"
|
|
85302
|
-
},
|
|
85303
|
-
{
|
|
85304
|
-
inputs: [{ internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
85305
|
-
name: "setMaxMessageBodySize",
|
|
85306
|
-
outputs: [],
|
|
85307
|
-
stateMutability: "nonpayable",
|
|
85308
|
-
type: "function"
|
|
85309
|
-
},
|
|
85310
|
-
{
|
|
85311
|
-
inputs: [{ internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }],
|
|
85312
|
-
name: "setSignatureThreshold",
|
|
85313
|
-
outputs: [],
|
|
85314
|
-
stateMutability: "nonpayable",
|
|
85315
|
-
type: "function"
|
|
85316
|
-
},
|
|
85317
|
-
{
|
|
85318
|
-
inputs: [],
|
|
85319
|
-
name: "signatureThreshold",
|
|
85320
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85321
|
-
stateMutability: "view",
|
|
85322
|
-
type: "function"
|
|
85323
|
-
},
|
|
85324
|
-
{
|
|
85325
|
-
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
85326
|
-
name: "transferOwnership",
|
|
85327
|
-
outputs: [],
|
|
85328
|
-
stateMutability: "nonpayable",
|
|
85329
|
-
type: "function"
|
|
85330
|
-
},
|
|
85331
|
-
{ inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85332
|
-
{
|
|
85333
|
-
inputs: [{ internalType: "address", name: "newAttesterManager", type: "address" }],
|
|
85334
|
-
name: "updateAttesterManager",
|
|
85335
|
-
outputs: [],
|
|
85336
|
-
stateMutability: "nonpayable",
|
|
85337
|
-
type: "function"
|
|
85338
|
-
},
|
|
85339
|
-
{
|
|
85340
|
-
inputs: [{ internalType: "address", name: "_newPauser", type: "address" }],
|
|
85341
|
-
name: "updatePauser",
|
|
85342
|
-
outputs: [],
|
|
85343
|
-
stateMutability: "nonpayable",
|
|
85344
|
-
type: "function"
|
|
85345
|
-
},
|
|
85346
|
-
{
|
|
85347
|
-
inputs: [{ internalType: "address", name: "newRescuer", type: "address" }],
|
|
85348
|
-
name: "updateRescuer",
|
|
85349
|
-
outputs: [],
|
|
85350
|
-
stateMutability: "nonpayable",
|
|
85351
|
-
type: "function"
|
|
85352
|
-
},
|
|
85353
|
-
{
|
|
85354
|
-
inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
85355
|
-
name: "usedNonces",
|
|
85356
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85357
|
-
stateMutability: "view",
|
|
85358
|
-
type: "function"
|
|
85359
|
-
},
|
|
85360
|
-
{
|
|
85361
|
-
inputs: [],
|
|
85362
|
-
name: "version",
|
|
85363
|
-
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85364
|
-
stateMutability: "view",
|
|
85365
|
-
type: "function"
|
|
85366
|
-
}
|
|
85367
|
-
];
|
|
85368
|
-
|
|
85369
85050
|
// src/integrations/cctp/token.messenger.v2.abi.ts
|
|
85370
85051
|
var token_messenger_v2_abi_default = [
|
|
85371
85052
|
{
|
|
@@ -85718,7 +85399,330 @@ var token_messenger_v2_abi_default = [
|
|
|
85718
85399
|
type: "function"
|
|
85719
85400
|
}
|
|
85720
85401
|
];
|
|
85721
|
-
|
|
85402
|
+
// src/integrations/cctp/message.transmitter.v2.abi.ts
|
|
85403
|
+
var message_transmitter_v2_abi_default = [
|
|
85404
|
+
{
|
|
85405
|
+
inputs: [
|
|
85406
|
+
{ internalType: "uint32", name: "_localDomain", type: "uint32" },
|
|
85407
|
+
{ internalType: "uint32", name: "_version", type: "uint32" }
|
|
85408
|
+
],
|
|
85409
|
+
stateMutability: "nonpayable",
|
|
85410
|
+
type: "constructor"
|
|
85411
|
+
},
|
|
85412
|
+
{
|
|
85413
|
+
anonymous: false,
|
|
85414
|
+
inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
|
|
85415
|
+
name: "AttesterDisabled",
|
|
85416
|
+
type: "event"
|
|
85417
|
+
},
|
|
85418
|
+
{
|
|
85419
|
+
anonymous: false,
|
|
85420
|
+
inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
|
|
85421
|
+
name: "AttesterEnabled",
|
|
85422
|
+
type: "event"
|
|
85423
|
+
},
|
|
85424
|
+
{
|
|
85425
|
+
anonymous: false,
|
|
85426
|
+
inputs: [
|
|
85427
|
+
{ indexed: true, internalType: "address", name: "previousAttesterManager", type: "address" },
|
|
85428
|
+
{ indexed: true, internalType: "address", name: "newAttesterManager", type: "address" }
|
|
85429
|
+
],
|
|
85430
|
+
name: "AttesterManagerUpdated",
|
|
85431
|
+
type: "event"
|
|
85432
|
+
},
|
|
85433
|
+
{
|
|
85434
|
+
anonymous: false,
|
|
85435
|
+
inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
|
|
85436
|
+
name: "Initialized",
|
|
85437
|
+
type: "event"
|
|
85438
|
+
},
|
|
85439
|
+
{
|
|
85440
|
+
anonymous: false,
|
|
85441
|
+
inputs: [{ indexed: false, internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
85442
|
+
name: "MaxMessageBodySizeUpdated",
|
|
85443
|
+
type: "event"
|
|
85444
|
+
},
|
|
85445
|
+
{
|
|
85446
|
+
anonymous: false,
|
|
85447
|
+
inputs: [
|
|
85448
|
+
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
85449
|
+
{ indexed: false, internalType: "uint32", name: "sourceDomain", type: "uint32" },
|
|
85450
|
+
{ indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" },
|
|
85451
|
+
{ indexed: false, internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85452
|
+
{ indexed: true, internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
85453
|
+
{ indexed: false, internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85454
|
+
],
|
|
85455
|
+
name: "MessageReceived",
|
|
85456
|
+
type: "event"
|
|
85457
|
+
},
|
|
85458
|
+
{
|
|
85459
|
+
anonymous: false,
|
|
85460
|
+
inputs: [{ indexed: false, internalType: "bytes", name: "message", type: "bytes" }],
|
|
85461
|
+
name: "MessageSent",
|
|
85462
|
+
type: "event"
|
|
85463
|
+
},
|
|
85464
|
+
{
|
|
85465
|
+
anonymous: false,
|
|
85466
|
+
inputs: [
|
|
85467
|
+
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
85468
|
+
{ indexed: true, internalType: "address", name: "newOwner", type: "address" }
|
|
85469
|
+
],
|
|
85470
|
+
name: "OwnershipTransferStarted",
|
|
85471
|
+
type: "event"
|
|
85472
|
+
},
|
|
85473
|
+
{
|
|
85474
|
+
anonymous: false,
|
|
85475
|
+
inputs: [
|
|
85476
|
+
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
85477
|
+
{ indexed: true, internalType: "address", name: "newOwner", type: "address" }
|
|
85478
|
+
],
|
|
85479
|
+
name: "OwnershipTransferred",
|
|
85480
|
+
type: "event"
|
|
85481
|
+
},
|
|
85482
|
+
{ anonymous: false, inputs: [], name: "Pause", type: "event" },
|
|
85483
|
+
{
|
|
85484
|
+
anonymous: false,
|
|
85485
|
+
inputs: [{ indexed: true, internalType: "address", name: "newAddress", type: "address" }],
|
|
85486
|
+
name: "PauserChanged",
|
|
85487
|
+
type: "event"
|
|
85488
|
+
},
|
|
85489
|
+
{
|
|
85490
|
+
anonymous: false,
|
|
85491
|
+
inputs: [{ indexed: true, internalType: "address", name: "newRescuer", type: "address" }],
|
|
85492
|
+
name: "RescuerChanged",
|
|
85493
|
+
type: "event"
|
|
85494
|
+
},
|
|
85495
|
+
{
|
|
85496
|
+
anonymous: false,
|
|
85497
|
+
inputs: [
|
|
85498
|
+
{ indexed: false, internalType: "uint256", name: "oldSignatureThreshold", type: "uint256" },
|
|
85499
|
+
{ indexed: false, internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }
|
|
85500
|
+
],
|
|
85501
|
+
name: "SignatureThresholdUpdated",
|
|
85502
|
+
type: "event"
|
|
85503
|
+
},
|
|
85504
|
+
{ anonymous: false, inputs: [], name: "Unpause", type: "event" },
|
|
85505
|
+
{
|
|
85506
|
+
inputs: [],
|
|
85507
|
+
name: "NONCE_USED",
|
|
85508
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85509
|
+
stateMutability: "view",
|
|
85510
|
+
type: "function"
|
|
85511
|
+
},
|
|
85512
|
+
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85513
|
+
{
|
|
85514
|
+
inputs: [],
|
|
85515
|
+
name: "attesterManager",
|
|
85516
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85517
|
+
stateMutability: "view",
|
|
85518
|
+
type: "function"
|
|
85519
|
+
},
|
|
85520
|
+
{
|
|
85521
|
+
inputs: [{ internalType: "address", name: "attester", type: "address" }],
|
|
85522
|
+
name: "disableAttester",
|
|
85523
|
+
outputs: [],
|
|
85524
|
+
stateMutability: "nonpayable",
|
|
85525
|
+
type: "function"
|
|
85526
|
+
},
|
|
85527
|
+
{
|
|
85528
|
+
inputs: [{ internalType: "address", name: "newAttester", type: "address" }],
|
|
85529
|
+
name: "enableAttester",
|
|
85530
|
+
outputs: [],
|
|
85531
|
+
stateMutability: "nonpayable",
|
|
85532
|
+
type: "function"
|
|
85533
|
+
},
|
|
85534
|
+
{
|
|
85535
|
+
inputs: [{ internalType: "uint256", name: "index", type: "uint256" }],
|
|
85536
|
+
name: "getEnabledAttester",
|
|
85537
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85538
|
+
stateMutability: "view",
|
|
85539
|
+
type: "function"
|
|
85540
|
+
},
|
|
85541
|
+
{
|
|
85542
|
+
inputs: [],
|
|
85543
|
+
name: "getNumEnabledAttesters",
|
|
85544
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85545
|
+
stateMutability: "view",
|
|
85546
|
+
type: "function"
|
|
85547
|
+
},
|
|
85548
|
+
{
|
|
85549
|
+
inputs: [
|
|
85550
|
+
{ internalType: "address", name: "owner_", type: "address" },
|
|
85551
|
+
{ internalType: "address", name: "pauser_", type: "address" },
|
|
85552
|
+
{ internalType: "address", name: "rescuer_", type: "address" },
|
|
85553
|
+
{ internalType: "address", name: "attesterManager_", type: "address" },
|
|
85554
|
+
{ internalType: "address[]", name: "attesters_", type: "address[]" },
|
|
85555
|
+
{ internalType: "uint256", name: "signatureThreshold_", type: "uint256" },
|
|
85556
|
+
{ internalType: "uint256", name: "maxMessageBodySize_", type: "uint256" }
|
|
85557
|
+
],
|
|
85558
|
+
name: "initialize",
|
|
85559
|
+
outputs: [],
|
|
85560
|
+
stateMutability: "nonpayable",
|
|
85561
|
+
type: "function"
|
|
85562
|
+
},
|
|
85563
|
+
{
|
|
85564
|
+
inputs: [],
|
|
85565
|
+
name: "initializedVersion",
|
|
85566
|
+
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
|
|
85567
|
+
stateMutability: "view",
|
|
85568
|
+
type: "function"
|
|
85569
|
+
},
|
|
85570
|
+
{
|
|
85571
|
+
inputs: [{ internalType: "address", name: "attester", type: "address" }],
|
|
85572
|
+
name: "isEnabledAttester",
|
|
85573
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85574
|
+
stateMutability: "view",
|
|
85575
|
+
type: "function"
|
|
85576
|
+
},
|
|
85577
|
+
{
|
|
85578
|
+
inputs: [],
|
|
85579
|
+
name: "localDomain",
|
|
85580
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85581
|
+
stateMutability: "view",
|
|
85582
|
+
type: "function"
|
|
85583
|
+
},
|
|
85584
|
+
{
|
|
85585
|
+
inputs: [],
|
|
85586
|
+
name: "maxMessageBodySize",
|
|
85587
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85588
|
+
stateMutability: "view",
|
|
85589
|
+
type: "function"
|
|
85590
|
+
},
|
|
85591
|
+
{
|
|
85592
|
+
inputs: [],
|
|
85593
|
+
name: "owner",
|
|
85594
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85595
|
+
stateMutability: "view",
|
|
85596
|
+
type: "function"
|
|
85597
|
+
},
|
|
85598
|
+
{ inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85599
|
+
{
|
|
85600
|
+
inputs: [],
|
|
85601
|
+
name: "paused",
|
|
85602
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85603
|
+
stateMutability: "view",
|
|
85604
|
+
type: "function"
|
|
85605
|
+
},
|
|
85606
|
+
{
|
|
85607
|
+
inputs: [],
|
|
85608
|
+
name: "pauser",
|
|
85609
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85610
|
+
stateMutability: "view",
|
|
85611
|
+
type: "function"
|
|
85612
|
+
},
|
|
85613
|
+
{
|
|
85614
|
+
inputs: [],
|
|
85615
|
+
name: "pendingOwner",
|
|
85616
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85617
|
+
stateMutability: "view",
|
|
85618
|
+
type: "function"
|
|
85619
|
+
},
|
|
85620
|
+
{
|
|
85621
|
+
inputs: [
|
|
85622
|
+
{ internalType: "bytes", name: "message", type: "bytes" },
|
|
85623
|
+
{ internalType: "bytes", name: "attestation", type: "bytes" }
|
|
85624
|
+
],
|
|
85625
|
+
name: "receiveMessage",
|
|
85626
|
+
outputs: [{ internalType: "bool", name: "success", type: "bool" }],
|
|
85627
|
+
stateMutability: "nonpayable",
|
|
85628
|
+
type: "function"
|
|
85629
|
+
},
|
|
85630
|
+
{
|
|
85631
|
+
inputs: [
|
|
85632
|
+
{ internalType: "contract IERC20", name: "tokenContract", type: "address" },
|
|
85633
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
85634
|
+
{ internalType: "uint256", name: "amount", type: "uint256" }
|
|
85635
|
+
],
|
|
85636
|
+
name: "rescueERC20",
|
|
85637
|
+
outputs: [],
|
|
85638
|
+
stateMutability: "nonpayable",
|
|
85639
|
+
type: "function"
|
|
85640
|
+
},
|
|
85641
|
+
{
|
|
85642
|
+
inputs: [],
|
|
85643
|
+
name: "rescuer",
|
|
85644
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85645
|
+
stateMutability: "view",
|
|
85646
|
+
type: "function"
|
|
85647
|
+
},
|
|
85648
|
+
{
|
|
85649
|
+
inputs: [
|
|
85650
|
+
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85651
|
+
{ internalType: "bytes32", name: "recipient", type: "bytes32" },
|
|
85652
|
+
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85653
|
+
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85654
|
+
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85655
|
+
],
|
|
85656
|
+
name: "sendMessage",
|
|
85657
|
+
outputs: [],
|
|
85658
|
+
stateMutability: "nonpayable",
|
|
85659
|
+
type: "function"
|
|
85660
|
+
},
|
|
85661
|
+
{
|
|
85662
|
+
inputs: [{ internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
85663
|
+
name: "setMaxMessageBodySize",
|
|
85664
|
+
outputs: [],
|
|
85665
|
+
stateMutability: "nonpayable",
|
|
85666
|
+
type: "function"
|
|
85667
|
+
},
|
|
85668
|
+
{
|
|
85669
|
+
inputs: [{ internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }],
|
|
85670
|
+
name: "setSignatureThreshold",
|
|
85671
|
+
outputs: [],
|
|
85672
|
+
stateMutability: "nonpayable",
|
|
85673
|
+
type: "function"
|
|
85674
|
+
},
|
|
85675
|
+
{
|
|
85676
|
+
inputs: [],
|
|
85677
|
+
name: "signatureThreshold",
|
|
85678
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85679
|
+
stateMutability: "view",
|
|
85680
|
+
type: "function"
|
|
85681
|
+
},
|
|
85682
|
+
{
|
|
85683
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
85684
|
+
name: "transferOwnership",
|
|
85685
|
+
outputs: [],
|
|
85686
|
+
stateMutability: "nonpayable",
|
|
85687
|
+
type: "function"
|
|
85688
|
+
},
|
|
85689
|
+
{ inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85690
|
+
{
|
|
85691
|
+
inputs: [{ internalType: "address", name: "newAttesterManager", type: "address" }],
|
|
85692
|
+
name: "updateAttesterManager",
|
|
85693
|
+
outputs: [],
|
|
85694
|
+
stateMutability: "nonpayable",
|
|
85695
|
+
type: "function"
|
|
85696
|
+
},
|
|
85697
|
+
{
|
|
85698
|
+
inputs: [{ internalType: "address", name: "_newPauser", type: "address" }],
|
|
85699
|
+
name: "updatePauser",
|
|
85700
|
+
outputs: [],
|
|
85701
|
+
stateMutability: "nonpayable",
|
|
85702
|
+
type: "function"
|
|
85703
|
+
},
|
|
85704
|
+
{
|
|
85705
|
+
inputs: [{ internalType: "address", name: "newRescuer", type: "address" }],
|
|
85706
|
+
name: "updateRescuer",
|
|
85707
|
+
outputs: [],
|
|
85708
|
+
stateMutability: "nonpayable",
|
|
85709
|
+
type: "function"
|
|
85710
|
+
},
|
|
85711
|
+
{
|
|
85712
|
+
inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
85713
|
+
name: "usedNonces",
|
|
85714
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85715
|
+
stateMutability: "view",
|
|
85716
|
+
type: "function"
|
|
85717
|
+
},
|
|
85718
|
+
{
|
|
85719
|
+
inputs: [],
|
|
85720
|
+
name: "version",
|
|
85721
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85722
|
+
stateMutability: "view",
|
|
85723
|
+
type: "function"
|
|
85724
|
+
}
|
|
85725
|
+
];
|
|
85722
85726
|
// src/integrations/cctp/cctp.v2.ts
|
|
85723
85727
|
var messageTransmitterAbi = new exports_ethers.utils.Interface(message_transmitter_v2_abi_default);
|
|
85724
85728
|
var tokenMessengerAbi = new exports_ethers.utils.Interface(token_messenger_v2_abi_default);
|
|
@@ -85766,90 +85770,6 @@ var receiveMessageFromCctpTrx = ({
|
|
|
85766
85770
|
data: ReceiveMessageCalldata(args)
|
|
85767
85771
|
});
|
|
85768
85772
|
};
|
|
85769
|
-
// src/integrations/erc721/erc721.ts
|
|
85770
|
-
var erc721Interface = new exports_ethers.utils.Interface(erc721_abi_default2);
|
|
85771
|
-
var ApproveErc721CallData = ({ tokenId, spender }) => {
|
|
85772
|
-
return erc721Interface.encodeFunctionData("approve", [spender, tokenId]);
|
|
85773
|
-
};
|
|
85774
|
-
var approveErc721Trx = ({ tokenId, spender, token }) => {
|
|
85775
|
-
return createCall({
|
|
85776
|
-
to: token,
|
|
85777
|
-
data: ApproveErc721CallData({ tokenId, spender }),
|
|
85778
|
-
value: 0n,
|
|
85779
|
-
operation: 0
|
|
85780
|
-
});
|
|
85781
|
-
};
|
|
85782
|
-
var TransferFromErc721CallData = ({ from: from2, to, tokenId }) => {
|
|
85783
|
-
return erc721Interface.encodeFunctionData("transferFrom", [from2, to, tokenId]);
|
|
85784
|
-
};
|
|
85785
|
-
var transferFromErc721Trx = ({ from: from2, to, tokenId, token }) => {
|
|
85786
|
-
return createCall({
|
|
85787
|
-
to: token,
|
|
85788
|
-
data: TransferFromErc721CallData({ from: from2, to, tokenId }),
|
|
85789
|
-
value: 0n,
|
|
85790
|
-
operation: 0
|
|
85791
|
-
});
|
|
85792
|
-
};
|
|
85793
|
-
var SafeTransferFromWithDataErc721CallData = ({
|
|
85794
|
-
from: from2,
|
|
85795
|
-
to,
|
|
85796
|
-
tokenId,
|
|
85797
|
-
data
|
|
85798
|
-
}) => {
|
|
85799
|
-
return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId, data]);
|
|
85800
|
-
};
|
|
85801
|
-
var safeTransferFromWithDataErc721Trx = ({
|
|
85802
|
-
from: from2,
|
|
85803
|
-
to,
|
|
85804
|
-
tokenId,
|
|
85805
|
-
data,
|
|
85806
|
-
token
|
|
85807
|
-
}) => {
|
|
85808
|
-
return createCall({
|
|
85809
|
-
to: token,
|
|
85810
|
-
data: SafeTransferFromWithDataErc721CallData({ from: from2, to, tokenId, data }),
|
|
85811
|
-
value: 0n,
|
|
85812
|
-
operation: 0
|
|
85813
|
-
});
|
|
85814
|
-
};
|
|
85815
|
-
var SafeTransferFromErc721CallData = ({
|
|
85816
|
-
from: from2,
|
|
85817
|
-
to,
|
|
85818
|
-
tokenId
|
|
85819
|
-
}) => {
|
|
85820
|
-
return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId]);
|
|
85821
|
-
};
|
|
85822
|
-
var safeTransferFromErc721Trx = ({
|
|
85823
|
-
from: from2,
|
|
85824
|
-
to,
|
|
85825
|
-
tokenId,
|
|
85826
|
-
token
|
|
85827
|
-
}) => {
|
|
85828
|
-
return createCall({
|
|
85829
|
-
to: token,
|
|
85830
|
-
data: SafeTransferFromErc721CallData({ from: from2, to, tokenId }),
|
|
85831
|
-
value: 0n,
|
|
85832
|
-
operation: 0
|
|
85833
|
-
});
|
|
85834
|
-
};
|
|
85835
|
-
var SetApprovalForAllErc721CallData = ({
|
|
85836
|
-
operator,
|
|
85837
|
-
approved
|
|
85838
|
-
}) => {
|
|
85839
|
-
return erc721Interface.encodeFunctionData("setApprovalForAll", [operator, approved]);
|
|
85840
|
-
};
|
|
85841
|
-
var setApprovalForAllErc721Trx = ({
|
|
85842
|
-
operator,
|
|
85843
|
-
approved,
|
|
85844
|
-
token
|
|
85845
|
-
}) => {
|
|
85846
|
-
return createCall({
|
|
85847
|
-
to: token,
|
|
85848
|
-
data: SetApprovalForAllErc721CallData({ operator, approved }),
|
|
85849
|
-
value: 0n,
|
|
85850
|
-
operation: 0
|
|
85851
|
-
});
|
|
85852
|
-
};
|
|
85853
85773
|
// src/integrations/erc721/erc721.abi.ts
|
|
85854
85774
|
var erc721_abi_default2 = [
|
|
85855
85775
|
{
|
|
@@ -86051,6 +85971,90 @@ var erc721_abi_default2 = [
|
|
|
86051
85971
|
stateMutability: "nonpayable"
|
|
86052
85972
|
}
|
|
86053
85973
|
];
|
|
85974
|
+
// src/integrations/erc721/erc721.ts
|
|
85975
|
+
var erc721Interface = new exports_ethers.utils.Interface(erc721_abi_default2);
|
|
85976
|
+
var ApproveErc721CallData = ({ tokenId, spender }) => {
|
|
85977
|
+
return erc721Interface.encodeFunctionData("approve", [spender, tokenId]);
|
|
85978
|
+
};
|
|
85979
|
+
var approveErc721Trx = ({ tokenId, spender, token }) => {
|
|
85980
|
+
return createCall({
|
|
85981
|
+
to: token,
|
|
85982
|
+
data: ApproveErc721CallData({ tokenId, spender }),
|
|
85983
|
+
value: 0n,
|
|
85984
|
+
operation: 0
|
|
85985
|
+
});
|
|
85986
|
+
};
|
|
85987
|
+
var TransferFromErc721CallData = ({ from: from2, to, tokenId }) => {
|
|
85988
|
+
return erc721Interface.encodeFunctionData("transferFrom", [from2, to, tokenId]);
|
|
85989
|
+
};
|
|
85990
|
+
var transferFromErc721Trx = ({ from: from2, to, tokenId, token }) => {
|
|
85991
|
+
return createCall({
|
|
85992
|
+
to: token,
|
|
85993
|
+
data: TransferFromErc721CallData({ from: from2, to, tokenId }),
|
|
85994
|
+
value: 0n,
|
|
85995
|
+
operation: 0
|
|
85996
|
+
});
|
|
85997
|
+
};
|
|
85998
|
+
var SafeTransferFromWithDataErc721CallData = ({
|
|
85999
|
+
from: from2,
|
|
86000
|
+
to,
|
|
86001
|
+
tokenId,
|
|
86002
|
+
data
|
|
86003
|
+
}) => {
|
|
86004
|
+
return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId, data]);
|
|
86005
|
+
};
|
|
86006
|
+
var safeTransferFromWithDataErc721Trx = ({
|
|
86007
|
+
from: from2,
|
|
86008
|
+
to,
|
|
86009
|
+
tokenId,
|
|
86010
|
+
data,
|
|
86011
|
+
token
|
|
86012
|
+
}) => {
|
|
86013
|
+
return createCall({
|
|
86014
|
+
to: token,
|
|
86015
|
+
data: SafeTransferFromWithDataErc721CallData({ from: from2, to, tokenId, data }),
|
|
86016
|
+
value: 0n,
|
|
86017
|
+
operation: 0
|
|
86018
|
+
});
|
|
86019
|
+
};
|
|
86020
|
+
var SafeTransferFromErc721CallData = ({
|
|
86021
|
+
from: from2,
|
|
86022
|
+
to,
|
|
86023
|
+
tokenId
|
|
86024
|
+
}) => {
|
|
86025
|
+
return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId]);
|
|
86026
|
+
};
|
|
86027
|
+
var safeTransferFromErc721Trx = ({
|
|
86028
|
+
from: from2,
|
|
86029
|
+
to,
|
|
86030
|
+
tokenId,
|
|
86031
|
+
token
|
|
86032
|
+
}) => {
|
|
86033
|
+
return createCall({
|
|
86034
|
+
to: token,
|
|
86035
|
+
data: SafeTransferFromErc721CallData({ from: from2, to, tokenId }),
|
|
86036
|
+
value: 0n,
|
|
86037
|
+
operation: 0
|
|
86038
|
+
});
|
|
86039
|
+
};
|
|
86040
|
+
var SetApprovalForAllErc721CallData = ({
|
|
86041
|
+
operator,
|
|
86042
|
+
approved
|
|
86043
|
+
}) => {
|
|
86044
|
+
return erc721Interface.encodeFunctionData("setApprovalForAll", [operator, approved]);
|
|
86045
|
+
};
|
|
86046
|
+
var setApprovalForAllErc721Trx = ({
|
|
86047
|
+
operator,
|
|
86048
|
+
approved,
|
|
86049
|
+
token
|
|
86050
|
+
}) => {
|
|
86051
|
+
return createCall({
|
|
86052
|
+
to: token,
|
|
86053
|
+
data: SetApprovalForAllErc721CallData({ operator, approved }),
|
|
86054
|
+
value: 0n,
|
|
86055
|
+
operation: 0
|
|
86056
|
+
});
|
|
86057
|
+
};
|
|
86054
86058
|
// src/lib/utils.ts
|
|
86055
86059
|
var executeTrx = ({
|
|
86056
86060
|
client,
|
|
@@ -86350,4 +86354,4 @@ export {
|
|
|
86350
86354
|
aave_pool_abi_default as AaveL1PoolAbi
|
|
86351
86355
|
};
|
|
86352
86356
|
|
|
86353
|
-
//# debugId=
|
|
86357
|
+
//# debugId=56DA7048BD90032764756E2164756E21
|