damm-sdk 1.1.31-alpha.4 → 1.1.31-alpha.6
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 +23331 -20143
- package/dist/index.cjs.map +84 -52
- package/dist/index.js +359 -361
- 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/erc721.ts +1 -1
- package/src/integrations/erc721/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -85047,35 +85047,52 @@ var sendOFTTrx = ({
|
|
|
85047
85047
|
value: args.nativeFee
|
|
85048
85048
|
});
|
|
85049
85049
|
};
|
|
85050
|
-
// src/integrations/cctp/
|
|
85051
|
-
var
|
|
85050
|
+
// src/integrations/cctp/token.messenger.v2.abi.ts
|
|
85051
|
+
var token_messenger_v2_abi_default = [
|
|
85052
85052
|
{
|
|
85053
85053
|
inputs: [
|
|
85054
|
-
{ internalType: "
|
|
85055
|
-
{ internalType: "uint32", name: "
|
|
85054
|
+
{ internalType: "address", name: "_messageTransmitter", type: "address" },
|
|
85055
|
+
{ internalType: "uint32", name: "_messageBodyVersion", type: "uint32" }
|
|
85056
85056
|
],
|
|
85057
85057
|
stateMutability: "nonpayable",
|
|
85058
85058
|
type: "constructor"
|
|
85059
85059
|
},
|
|
85060
85060
|
{
|
|
85061
85061
|
anonymous: false,
|
|
85062
|
-
inputs: [{ indexed: true, internalType: "address", name: "
|
|
85063
|
-
name: "
|
|
85062
|
+
inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
|
|
85063
|
+
name: "Denylisted",
|
|
85064
85064
|
type: "event"
|
|
85065
85065
|
},
|
|
85066
85066
|
{
|
|
85067
85067
|
anonymous: false,
|
|
85068
|
-
inputs: [
|
|
85069
|
-
|
|
85068
|
+
inputs: [
|
|
85069
|
+
{ indexed: true, internalType: "address", name: "oldDenylister", type: "address" },
|
|
85070
|
+
{ indexed: true, internalType: "address", name: "newDenylister", type: "address" }
|
|
85071
|
+
],
|
|
85072
|
+
name: "DenylisterChanged",
|
|
85070
85073
|
type: "event"
|
|
85071
85074
|
},
|
|
85072
85075
|
{
|
|
85073
85076
|
anonymous: false,
|
|
85074
85077
|
inputs: [
|
|
85075
|
-
{ indexed: true, internalType: "address", name: "
|
|
85076
|
-
{ indexed:
|
|
85078
|
+
{ indexed: true, internalType: "address", name: "burnToken", type: "address" },
|
|
85079
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
|
|
85080
|
+
{ indexed: true, internalType: "address", name: "depositor", type: "address" },
|
|
85081
|
+
{ indexed: false, internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85082
|
+
{ indexed: false, internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85083
|
+
{ indexed: false, internalType: "bytes32", name: "destinationTokenMessenger", type: "bytes32" },
|
|
85084
|
+
{ indexed: false, internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85085
|
+
{ indexed: false, internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85086
|
+
{ indexed: true, internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85087
|
+
{ indexed: false, internalType: "bytes", name: "hookData", type: "bytes" }
|
|
85077
85088
|
],
|
|
85078
|
-
name: "
|
|
85089
|
+
name: "DepositForBurn",
|
|
85090
|
+
type: "event"
|
|
85091
|
+
},
|
|
85092
|
+
{
|
|
85093
|
+
anonymous: false,
|
|
85094
|
+
inputs: [{ indexed: false, internalType: "address", name: "feeRecipient", type: "address" }],
|
|
85095
|
+
name: "FeeRecipientSet",
|
|
85079
85096
|
type: "event"
|
|
85080
85097
|
},
|
|
85081
85098
|
{
|
|
@@ -85086,27 +85103,25 @@ var message_transmitter_v2_abi_default = [
|
|
|
85086
85103
|
},
|
|
85087
85104
|
{
|
|
85088
85105
|
anonymous: false,
|
|
85089
|
-
inputs: [{ indexed: false, internalType: "
|
|
85090
|
-
name: "
|
|
85106
|
+
inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
|
|
85107
|
+
name: "LocalMinterAdded",
|
|
85091
85108
|
type: "event"
|
|
85092
85109
|
},
|
|
85093
85110
|
{
|
|
85094
85111
|
anonymous: false,
|
|
85095
|
-
inputs: [
|
|
85096
|
-
|
|
85097
|
-
{ indexed: false, internalType: "uint32", name: "sourceDomain", type: "uint32" },
|
|
85098
|
-
{ indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" },
|
|
85099
|
-
{ indexed: false, internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85100
|
-
{ indexed: true, internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
85101
|
-
{ indexed: false, internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85102
|
-
],
|
|
85103
|
-
name: "MessageReceived",
|
|
85112
|
+
inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
|
|
85113
|
+
name: "LocalMinterRemoved",
|
|
85104
85114
|
type: "event"
|
|
85105
85115
|
},
|
|
85106
85116
|
{
|
|
85107
85117
|
anonymous: false,
|
|
85108
|
-
inputs: [
|
|
85109
|
-
|
|
85118
|
+
inputs: [
|
|
85119
|
+
{ indexed: true, internalType: "address", name: "mintRecipient", type: "address" },
|
|
85120
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
|
|
85121
|
+
{ indexed: true, internalType: "address", name: "mintToken", type: "address" },
|
|
85122
|
+
{ indexed: false, internalType: "uint256", name: "feeCollected", type: "uint256" }
|
|
85123
|
+
],
|
|
85124
|
+
name: "MintAndWithdraw",
|
|
85110
85125
|
type: "event"
|
|
85111
85126
|
},
|
|
85112
85127
|
{
|
|
@@ -85127,11 +85142,22 @@ var message_transmitter_v2_abi_default = [
|
|
|
85127
85142
|
name: "OwnershipTransferred",
|
|
85128
85143
|
type: "event"
|
|
85129
85144
|
},
|
|
85130
|
-
{ anonymous: false, inputs: [], name: "Pause", type: "event" },
|
|
85131
85145
|
{
|
|
85132
85146
|
anonymous: false,
|
|
85133
|
-
inputs: [
|
|
85134
|
-
|
|
85147
|
+
inputs: [
|
|
85148
|
+
{ indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
|
|
85149
|
+
{ indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
85150
|
+
],
|
|
85151
|
+
name: "RemoteTokenMessengerAdded",
|
|
85152
|
+
type: "event"
|
|
85153
|
+
},
|
|
85154
|
+
{
|
|
85155
|
+
anonymous: false,
|
|
85156
|
+
inputs: [
|
|
85157
|
+
{ indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
|
|
85158
|
+
{ indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
85159
|
+
],
|
|
85160
|
+
name: "RemoteTokenMessengerRemoved",
|
|
85135
85161
|
type: "event"
|
|
85136
85162
|
},
|
|
85137
85163
|
{
|
|
@@ -85142,66 +85168,113 @@ var message_transmitter_v2_abi_default = [
|
|
|
85142
85168
|
},
|
|
85143
85169
|
{
|
|
85144
85170
|
anonymous: false,
|
|
85171
|
+
inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
|
|
85172
|
+
name: "UnDenylisted",
|
|
85173
|
+
type: "event"
|
|
85174
|
+
},
|
|
85175
|
+
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85176
|
+
{
|
|
85177
|
+
inputs: [{ internalType: "address", name: "newLocalMinter", type: "address" }],
|
|
85178
|
+
name: "addLocalMinter",
|
|
85179
|
+
outputs: [],
|
|
85180
|
+
stateMutability: "nonpayable",
|
|
85181
|
+
type: "function"
|
|
85182
|
+
},
|
|
85183
|
+
{
|
|
85145
85184
|
inputs: [
|
|
85146
|
-
{
|
|
85147
|
-
{
|
|
85185
|
+
{ internalType: "uint32", name: "domain", type: "uint32" },
|
|
85186
|
+
{ internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
85148
85187
|
],
|
|
85149
|
-
name: "
|
|
85150
|
-
|
|
85188
|
+
name: "addRemoteTokenMessenger",
|
|
85189
|
+
outputs: [],
|
|
85190
|
+
stateMutability: "nonpayable",
|
|
85191
|
+
type: "function"
|
|
85151
85192
|
},
|
|
85152
|
-
{ anonymous: false, inputs: [], name: "Unpause", type: "event" },
|
|
85153
85193
|
{
|
|
85154
|
-
inputs: [],
|
|
85155
|
-
name: "
|
|
85156
|
-
outputs: [
|
|
85157
|
-
stateMutability: "
|
|
85194
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
85195
|
+
name: "denylist",
|
|
85196
|
+
outputs: [],
|
|
85197
|
+
stateMutability: "nonpayable",
|
|
85158
85198
|
type: "function"
|
|
85159
85199
|
},
|
|
85160
|
-
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85161
85200
|
{
|
|
85162
85201
|
inputs: [],
|
|
85163
|
-
name: "
|
|
85202
|
+
name: "denylister",
|
|
85164
85203
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85165
85204
|
stateMutability: "view",
|
|
85166
85205
|
type: "function"
|
|
85167
85206
|
},
|
|
85168
85207
|
{
|
|
85169
|
-
inputs: [
|
|
85170
|
-
|
|
85208
|
+
inputs: [
|
|
85209
|
+
{ internalType: "uint256", name: "amount", type: "uint256" },
|
|
85210
|
+
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85211
|
+
{ internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85212
|
+
{ internalType: "address", name: "burnToken", type: "address" },
|
|
85213
|
+
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85214
|
+
{ internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85215
|
+
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" }
|
|
85216
|
+
],
|
|
85217
|
+
name: "depositForBurn",
|
|
85171
85218
|
outputs: [],
|
|
85172
85219
|
stateMutability: "nonpayable",
|
|
85173
85220
|
type: "function"
|
|
85174
85221
|
},
|
|
85175
85222
|
{
|
|
85176
|
-
inputs: [
|
|
85177
|
-
|
|
85223
|
+
inputs: [
|
|
85224
|
+
{ internalType: "uint256", name: "amount", type: "uint256" },
|
|
85225
|
+
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85226
|
+
{ internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85227
|
+
{ internalType: "address", name: "burnToken", type: "address" },
|
|
85228
|
+
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85229
|
+
{ internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85230
|
+
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85231
|
+
{ internalType: "bytes", name: "hookData", type: "bytes" }
|
|
85232
|
+
],
|
|
85233
|
+
name: "depositForBurnWithHook",
|
|
85178
85234
|
outputs: [],
|
|
85179
85235
|
stateMutability: "nonpayable",
|
|
85180
85236
|
type: "function"
|
|
85181
85237
|
},
|
|
85182
85238
|
{
|
|
85183
|
-
inputs: [
|
|
85184
|
-
name: "
|
|
85239
|
+
inputs: [],
|
|
85240
|
+
name: "feeRecipient",
|
|
85185
85241
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85186
85242
|
stateMutability: "view",
|
|
85187
85243
|
type: "function"
|
|
85188
85244
|
},
|
|
85189
85245
|
{
|
|
85190
|
-
inputs: [
|
|
85191
|
-
|
|
85192
|
-
|
|
85193
|
-
|
|
85246
|
+
inputs: [
|
|
85247
|
+
{ internalType: "uint32", name: "remoteDomain", type: "uint32" },
|
|
85248
|
+
{ internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85249
|
+
{ internalType: "uint32", name: "", type: "uint32" },
|
|
85250
|
+
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85251
|
+
],
|
|
85252
|
+
name: "handleReceiveFinalizedMessage",
|
|
85253
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85254
|
+
stateMutability: "nonpayable",
|
|
85255
|
+
type: "function"
|
|
85256
|
+
},
|
|
85257
|
+
{
|
|
85258
|
+
inputs: [
|
|
85259
|
+
{ internalType: "uint32", name: "remoteDomain", type: "uint32" },
|
|
85260
|
+
{ internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85261
|
+
{ internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
85262
|
+
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85263
|
+
],
|
|
85264
|
+
name: "handleReceiveUnfinalizedMessage",
|
|
85265
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85266
|
+
stateMutability: "nonpayable",
|
|
85194
85267
|
type: "function"
|
|
85195
85268
|
},
|
|
85196
85269
|
{
|
|
85197
85270
|
inputs: [
|
|
85198
85271
|
{ internalType: "address", name: "owner_", type: "address" },
|
|
85199
|
-
{ internalType: "address", name: "pauser_", type: "address" },
|
|
85200
85272
|
{ internalType: "address", name: "rescuer_", type: "address" },
|
|
85201
|
-
{ internalType: "address", name: "
|
|
85202
|
-
{ internalType: "address
|
|
85203
|
-
{ internalType: "
|
|
85204
|
-
{ internalType: "
|
|
85273
|
+
{ internalType: "address", name: "feeRecipient_", type: "address" },
|
|
85274
|
+
{ internalType: "address", name: "denylister_", type: "address" },
|
|
85275
|
+
{ internalType: "address", name: "tokenMinter_", type: "address" },
|
|
85276
|
+
{ internalType: "uint32[]", name: "remoteDomains_", type: "uint32[]" },
|
|
85277
|
+
{ internalType: "bytes32[]", name: "remoteTokenMessengers_", type: "bytes32[]" }
|
|
85205
85278
|
],
|
|
85206
85279
|
name: "initialize",
|
|
85207
85280
|
outputs: [],
|
|
@@ -85216,62 +85289,59 @@ var message_transmitter_v2_abi_default = [
|
|
|
85216
85289
|
type: "function"
|
|
85217
85290
|
},
|
|
85218
85291
|
{
|
|
85219
|
-
inputs: [{ internalType: "address", name: "
|
|
85220
|
-
name: "
|
|
85292
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
85293
|
+
name: "isDenylisted",
|
|
85221
85294
|
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85222
85295
|
stateMutability: "view",
|
|
85223
85296
|
type: "function"
|
|
85224
85297
|
},
|
|
85225
85298
|
{
|
|
85226
85299
|
inputs: [],
|
|
85227
|
-
name: "
|
|
85228
|
-
outputs: [{ internalType: "
|
|
85300
|
+
name: "localMessageTransmitter",
|
|
85301
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85229
85302
|
stateMutability: "view",
|
|
85230
85303
|
type: "function"
|
|
85231
85304
|
},
|
|
85232
85305
|
{
|
|
85233
85306
|
inputs: [],
|
|
85234
|
-
name: "
|
|
85235
|
-
outputs: [{ internalType: "
|
|
85307
|
+
name: "localMinter",
|
|
85308
|
+
outputs: [{ internalType: "contract ITokenMinterV2", name: "", type: "address" }],
|
|
85236
85309
|
stateMutability: "view",
|
|
85237
85310
|
type: "function"
|
|
85238
85311
|
},
|
|
85239
85312
|
{
|
|
85240
85313
|
inputs: [],
|
|
85241
|
-
name: "
|
|
85242
|
-
outputs: [{ internalType: "
|
|
85314
|
+
name: "messageBodyVersion",
|
|
85315
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85243
85316
|
stateMutability: "view",
|
|
85244
85317
|
type: "function"
|
|
85245
85318
|
},
|
|
85246
|
-
{ inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85247
85319
|
{
|
|
85248
85320
|
inputs: [],
|
|
85249
|
-
name: "
|
|
85250
|
-
outputs: [{ internalType: "
|
|
85321
|
+
name: "owner",
|
|
85322
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85251
85323
|
stateMutability: "view",
|
|
85252
85324
|
type: "function"
|
|
85253
85325
|
},
|
|
85254
85326
|
{
|
|
85255
85327
|
inputs: [],
|
|
85256
|
-
name: "
|
|
85328
|
+
name: "pendingOwner",
|
|
85257
85329
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85258
85330
|
stateMutability: "view",
|
|
85259
85331
|
type: "function"
|
|
85260
85332
|
},
|
|
85261
85333
|
{
|
|
85262
|
-
inputs: [],
|
|
85263
|
-
name: "
|
|
85264
|
-
outputs: [{ internalType: "
|
|
85334
|
+
inputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85335
|
+
name: "remoteTokenMessengers",
|
|
85336
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
85265
85337
|
stateMutability: "view",
|
|
85266
85338
|
type: "function"
|
|
85267
85339
|
},
|
|
85340
|
+
{ inputs: [], name: "removeLocalMinter", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85268
85341
|
{
|
|
85269
|
-
inputs: [
|
|
85270
|
-
|
|
85271
|
-
|
|
85272
|
-
],
|
|
85273
|
-
name: "receiveMessage",
|
|
85274
|
-
outputs: [{ internalType: "bool", name: "success", type: "bool" }],
|
|
85342
|
+
inputs: [{ internalType: "uint32", name: "domain", type: "uint32" }],
|
|
85343
|
+
name: "removeRemoteTokenMessenger",
|
|
85344
|
+
outputs: [],
|
|
85275
85345
|
stateMutability: "nonpayable",
|
|
85276
85346
|
type: "function"
|
|
85277
85347
|
},
|
|
@@ -85294,39 +85364,12 @@ var message_transmitter_v2_abi_default = [
|
|
|
85294
85364
|
type: "function"
|
|
85295
85365
|
},
|
|
85296
85366
|
{
|
|
85297
|
-
inputs: [
|
|
85298
|
-
|
|
85299
|
-
{ internalType: "bytes32", name: "recipient", type: "bytes32" },
|
|
85300
|
-
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85301
|
-
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85302
|
-
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85303
|
-
],
|
|
85304
|
-
name: "sendMessage",
|
|
85305
|
-
outputs: [],
|
|
85306
|
-
stateMutability: "nonpayable",
|
|
85307
|
-
type: "function"
|
|
85308
|
-
},
|
|
85309
|
-
{
|
|
85310
|
-
inputs: [{ internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
85311
|
-
name: "setMaxMessageBodySize",
|
|
85312
|
-
outputs: [],
|
|
85313
|
-
stateMutability: "nonpayable",
|
|
85314
|
-
type: "function"
|
|
85315
|
-
},
|
|
85316
|
-
{
|
|
85317
|
-
inputs: [{ internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }],
|
|
85318
|
-
name: "setSignatureThreshold",
|
|
85367
|
+
inputs: [{ internalType: "address", name: "_feeRecipient", type: "address" }],
|
|
85368
|
+
name: "setFeeRecipient",
|
|
85319
85369
|
outputs: [],
|
|
85320
85370
|
stateMutability: "nonpayable",
|
|
85321
85371
|
type: "function"
|
|
85322
85372
|
},
|
|
85323
|
-
{
|
|
85324
|
-
inputs: [],
|
|
85325
|
-
name: "signatureThreshold",
|
|
85326
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85327
|
-
stateMutability: "view",
|
|
85328
|
-
type: "function"
|
|
85329
|
-
},
|
|
85330
85373
|
{
|
|
85331
85374
|
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
85332
85375
|
name: "transferOwnership",
|
|
@@ -85334,17 +85377,16 @@ var message_transmitter_v2_abi_default = [
|
|
|
85334
85377
|
stateMutability: "nonpayable",
|
|
85335
85378
|
type: "function"
|
|
85336
85379
|
},
|
|
85337
|
-
{ inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85338
85380
|
{
|
|
85339
|
-
inputs: [{ internalType: "address", name: "
|
|
85340
|
-
name: "
|
|
85381
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
85382
|
+
name: "unDenylist",
|
|
85341
85383
|
outputs: [],
|
|
85342
85384
|
stateMutability: "nonpayable",
|
|
85343
85385
|
type: "function"
|
|
85344
85386
|
},
|
|
85345
85387
|
{
|
|
85346
|
-
inputs: [{ internalType: "address", name: "
|
|
85347
|
-
name: "
|
|
85388
|
+
inputs: [{ internalType: "address", name: "newDenylister", type: "address" }],
|
|
85389
|
+
name: "updateDenylister",
|
|
85348
85390
|
outputs: [],
|
|
85349
85391
|
stateMutability: "nonpayable",
|
|
85350
85392
|
type: "function"
|
|
@@ -85355,69 +85397,37 @@ var message_transmitter_v2_abi_default = [
|
|
|
85355
85397
|
outputs: [],
|
|
85356
85398
|
stateMutability: "nonpayable",
|
|
85357
85399
|
type: "function"
|
|
85358
|
-
},
|
|
85359
|
-
{
|
|
85360
|
-
inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
85361
|
-
name: "usedNonces",
|
|
85362
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85363
|
-
stateMutability: "view",
|
|
85364
|
-
type: "function"
|
|
85365
|
-
},
|
|
85366
|
-
{
|
|
85367
|
-
inputs: [],
|
|
85368
|
-
name: "version",
|
|
85369
|
-
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85370
|
-
stateMutability: "view",
|
|
85371
|
-
type: "function"
|
|
85372
85400
|
}
|
|
85373
85401
|
];
|
|
85374
|
-
|
|
85375
|
-
|
|
85376
|
-
var token_messenger_v2_abi_default = [
|
|
85402
|
+
// src/integrations/cctp/message.transmitter.v2.abi.ts
|
|
85403
|
+
var message_transmitter_v2_abi_default = [
|
|
85377
85404
|
{
|
|
85378
85405
|
inputs: [
|
|
85379
|
-
{ internalType: "
|
|
85380
|
-
{ internalType: "uint32", name: "
|
|
85406
|
+
{ internalType: "uint32", name: "_localDomain", type: "uint32" },
|
|
85407
|
+
{ internalType: "uint32", name: "_version", type: "uint32" }
|
|
85381
85408
|
],
|
|
85382
85409
|
stateMutability: "nonpayable",
|
|
85383
85410
|
type: "constructor"
|
|
85384
85411
|
},
|
|
85385
85412
|
{
|
|
85386
85413
|
anonymous: false,
|
|
85387
|
-
inputs: [{ indexed: true, internalType: "address", name: "
|
|
85388
|
-
name: "
|
|
85414
|
+
inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
|
|
85415
|
+
name: "AttesterDisabled",
|
|
85389
85416
|
type: "event"
|
|
85390
85417
|
},
|
|
85391
85418
|
{
|
|
85392
85419
|
anonymous: false,
|
|
85393
|
-
inputs: [
|
|
85394
|
-
|
|
85395
|
-
{ indexed: true, internalType: "address", name: "newDenylister", type: "address" }
|
|
85396
|
-
],
|
|
85397
|
-
name: "DenylisterChanged",
|
|
85420
|
+
inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
|
|
85421
|
+
name: "AttesterEnabled",
|
|
85398
85422
|
type: "event"
|
|
85399
85423
|
},
|
|
85400
85424
|
{
|
|
85401
85425
|
anonymous: false,
|
|
85402
85426
|
inputs: [
|
|
85403
|
-
{ indexed: true, internalType: "address", name: "
|
|
85404
|
-
{ indexed:
|
|
85405
|
-
{ indexed: true, internalType: "address", name: "depositor", type: "address" },
|
|
85406
|
-
{ indexed: false, internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85407
|
-
{ indexed: false, internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85408
|
-
{ indexed: false, internalType: "bytes32", name: "destinationTokenMessenger", type: "bytes32" },
|
|
85409
|
-
{ indexed: false, internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85410
|
-
{ indexed: false, internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85411
|
-
{ indexed: true, internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85412
|
-
{ indexed: false, internalType: "bytes", name: "hookData", type: "bytes" }
|
|
85427
|
+
{ indexed: true, internalType: "address", name: "previousAttesterManager", type: "address" },
|
|
85428
|
+
{ indexed: true, internalType: "address", name: "newAttesterManager", type: "address" }
|
|
85413
85429
|
],
|
|
85414
|
-
name: "
|
|
85415
|
-
type: "event"
|
|
85416
|
-
},
|
|
85417
|
-
{
|
|
85418
|
-
anonymous: false,
|
|
85419
|
-
inputs: [{ indexed: false, internalType: "address", name: "feeRecipient", type: "address" }],
|
|
85420
|
-
name: "FeeRecipientSet",
|
|
85430
|
+
name: "AttesterManagerUpdated",
|
|
85421
85431
|
type: "event"
|
|
85422
85432
|
},
|
|
85423
85433
|
{
|
|
@@ -85428,25 +85438,27 @@ var token_messenger_v2_abi_default = [
|
|
|
85428
85438
|
},
|
|
85429
85439
|
{
|
|
85430
85440
|
anonymous: false,
|
|
85431
|
-
inputs: [{ indexed: false, internalType: "
|
|
85432
|
-
name: "
|
|
85441
|
+
inputs: [{ indexed: false, internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
85442
|
+
name: "MaxMessageBodySizeUpdated",
|
|
85433
85443
|
type: "event"
|
|
85434
85444
|
},
|
|
85435
85445
|
{
|
|
85436
85446
|
anonymous: false,
|
|
85437
|
-
inputs: [
|
|
85438
|
-
|
|
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",
|
|
85439
85456
|
type: "event"
|
|
85440
85457
|
},
|
|
85441
85458
|
{
|
|
85442
85459
|
anonymous: false,
|
|
85443
|
-
inputs: [
|
|
85444
|
-
|
|
85445
|
-
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
|
|
85446
|
-
{ indexed: true, internalType: "address", name: "mintToken", type: "address" },
|
|
85447
|
-
{ indexed: false, internalType: "uint256", name: "feeCollected", type: "uint256" }
|
|
85448
|
-
],
|
|
85449
|
-
name: "MintAndWithdraw",
|
|
85460
|
+
inputs: [{ indexed: false, internalType: "bytes", name: "message", type: "bytes" }],
|
|
85461
|
+
name: "MessageSent",
|
|
85450
85462
|
type: "event"
|
|
85451
85463
|
},
|
|
85452
85464
|
{
|
|
@@ -85467,22 +85479,11 @@ var token_messenger_v2_abi_default = [
|
|
|
85467
85479
|
name: "OwnershipTransferred",
|
|
85468
85480
|
type: "event"
|
|
85469
85481
|
},
|
|
85482
|
+
{ anonymous: false, inputs: [], name: "Pause", type: "event" },
|
|
85470
85483
|
{
|
|
85471
85484
|
anonymous: false,
|
|
85472
|
-
inputs: [
|
|
85473
|
-
|
|
85474
|
-
{ indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
85475
|
-
],
|
|
85476
|
-
name: "RemoteTokenMessengerAdded",
|
|
85477
|
-
type: "event"
|
|
85478
|
-
},
|
|
85479
|
-
{
|
|
85480
|
-
anonymous: false,
|
|
85481
|
-
inputs: [
|
|
85482
|
-
{ indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
|
|
85483
|
-
{ indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
85484
|
-
],
|
|
85485
|
-
name: "RemoteTokenMessengerRemoved",
|
|
85485
|
+
inputs: [{ indexed: true, internalType: "address", name: "newAddress", type: "address" }],
|
|
85486
|
+
name: "PauserChanged",
|
|
85486
85487
|
type: "event"
|
|
85487
85488
|
},
|
|
85488
85489
|
{
|
|
@@ -85493,113 +85494,66 @@ var token_messenger_v2_abi_default = [
|
|
|
85493
85494
|
},
|
|
85494
85495
|
{
|
|
85495
85496
|
anonymous: false,
|
|
85496
|
-
inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
|
|
85497
|
-
name: "UnDenylisted",
|
|
85498
|
-
type: "event"
|
|
85499
|
-
},
|
|
85500
|
-
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85501
|
-
{
|
|
85502
|
-
inputs: [{ internalType: "address", name: "newLocalMinter", type: "address" }],
|
|
85503
|
-
name: "addLocalMinter",
|
|
85504
|
-
outputs: [],
|
|
85505
|
-
stateMutability: "nonpayable",
|
|
85506
|
-
type: "function"
|
|
85507
|
-
},
|
|
85508
|
-
{
|
|
85509
85497
|
inputs: [
|
|
85510
|
-
{ internalType: "
|
|
85511
|
-
{ internalType: "
|
|
85498
|
+
{ indexed: false, internalType: "uint256", name: "oldSignatureThreshold", type: "uint256" },
|
|
85499
|
+
{ indexed: false, internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }
|
|
85512
85500
|
],
|
|
85513
|
-
name: "
|
|
85514
|
-
|
|
85515
|
-
stateMutability: "nonpayable",
|
|
85516
|
-
type: "function"
|
|
85501
|
+
name: "SignatureThresholdUpdated",
|
|
85502
|
+
type: "event"
|
|
85517
85503
|
},
|
|
85504
|
+
{ anonymous: false, inputs: [], name: "Unpause", type: "event" },
|
|
85518
85505
|
{
|
|
85519
|
-
inputs: [
|
|
85520
|
-
name: "
|
|
85521
|
-
outputs: [],
|
|
85522
|
-
stateMutability: "
|
|
85506
|
+
inputs: [],
|
|
85507
|
+
name: "NONCE_USED",
|
|
85508
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85509
|
+
stateMutability: "view",
|
|
85523
85510
|
type: "function"
|
|
85524
85511
|
},
|
|
85512
|
+
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85525
85513
|
{
|
|
85526
85514
|
inputs: [],
|
|
85527
|
-
name: "
|
|
85515
|
+
name: "attesterManager",
|
|
85528
85516
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85529
85517
|
stateMutability: "view",
|
|
85530
85518
|
type: "function"
|
|
85531
85519
|
},
|
|
85532
85520
|
{
|
|
85533
|
-
inputs: [
|
|
85534
|
-
|
|
85535
|
-
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85536
|
-
{ internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85537
|
-
{ internalType: "address", name: "burnToken", type: "address" },
|
|
85538
|
-
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85539
|
-
{ internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85540
|
-
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" }
|
|
85541
|
-
],
|
|
85542
|
-
name: "depositForBurn",
|
|
85521
|
+
inputs: [{ internalType: "address", name: "attester", type: "address" }],
|
|
85522
|
+
name: "disableAttester",
|
|
85543
85523
|
outputs: [],
|
|
85544
85524
|
stateMutability: "nonpayable",
|
|
85545
85525
|
type: "function"
|
|
85546
85526
|
},
|
|
85547
85527
|
{
|
|
85548
|
-
inputs: [
|
|
85549
|
-
|
|
85550
|
-
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85551
|
-
{ internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85552
|
-
{ internalType: "address", name: "burnToken", type: "address" },
|
|
85553
|
-
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85554
|
-
{ internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85555
|
-
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85556
|
-
{ internalType: "bytes", name: "hookData", type: "bytes" }
|
|
85557
|
-
],
|
|
85558
|
-
name: "depositForBurnWithHook",
|
|
85528
|
+
inputs: [{ internalType: "address", name: "newAttester", type: "address" }],
|
|
85529
|
+
name: "enableAttester",
|
|
85559
85530
|
outputs: [],
|
|
85560
85531
|
stateMutability: "nonpayable",
|
|
85561
85532
|
type: "function"
|
|
85562
85533
|
},
|
|
85563
85534
|
{
|
|
85564
|
-
inputs: [],
|
|
85565
|
-
name: "
|
|
85535
|
+
inputs: [{ internalType: "uint256", name: "index", type: "uint256" }],
|
|
85536
|
+
name: "getEnabledAttester",
|
|
85566
85537
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85567
85538
|
stateMutability: "view",
|
|
85568
85539
|
type: "function"
|
|
85569
85540
|
},
|
|
85570
85541
|
{
|
|
85571
|
-
inputs: [
|
|
85572
|
-
|
|
85573
|
-
|
|
85574
|
-
|
|
85575
|
-
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85576
|
-
],
|
|
85577
|
-
name: "handleReceiveFinalizedMessage",
|
|
85578
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85579
|
-
stateMutability: "nonpayable",
|
|
85580
|
-
type: "function"
|
|
85581
|
-
},
|
|
85582
|
-
{
|
|
85583
|
-
inputs: [
|
|
85584
|
-
{ internalType: "uint32", name: "remoteDomain", type: "uint32" },
|
|
85585
|
-
{ internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85586
|
-
{ internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
85587
|
-
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85588
|
-
],
|
|
85589
|
-
name: "handleReceiveUnfinalizedMessage",
|
|
85590
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85591
|
-
stateMutability: "nonpayable",
|
|
85542
|
+
inputs: [],
|
|
85543
|
+
name: "getNumEnabledAttesters",
|
|
85544
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85545
|
+
stateMutability: "view",
|
|
85592
85546
|
type: "function"
|
|
85593
85547
|
},
|
|
85594
85548
|
{
|
|
85595
85549
|
inputs: [
|
|
85596
85550
|
{ internalType: "address", name: "owner_", type: "address" },
|
|
85551
|
+
{ internalType: "address", name: "pauser_", type: "address" },
|
|
85597
85552
|
{ internalType: "address", name: "rescuer_", type: "address" },
|
|
85598
|
-
{ internalType: "address", name: "
|
|
85599
|
-
{ internalType: "address", name: "
|
|
85600
|
-
{ internalType: "
|
|
85601
|
-
{ internalType: "
|
|
85602
|
-
{ internalType: "bytes32[]", name: "remoteTokenMessengers_", type: "bytes32[]" }
|
|
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" }
|
|
85603
85557
|
],
|
|
85604
85558
|
name: "initialize",
|
|
85605
85559
|
outputs: [],
|
|
@@ -85614,36 +85568,44 @@ var token_messenger_v2_abi_default = [
|
|
|
85614
85568
|
type: "function"
|
|
85615
85569
|
},
|
|
85616
85570
|
{
|
|
85617
|
-
inputs: [{ internalType: "address", name: "
|
|
85618
|
-
name: "
|
|
85571
|
+
inputs: [{ internalType: "address", name: "attester", type: "address" }],
|
|
85572
|
+
name: "isEnabledAttester",
|
|
85619
85573
|
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85620
85574
|
stateMutability: "view",
|
|
85621
85575
|
type: "function"
|
|
85622
85576
|
},
|
|
85623
85577
|
{
|
|
85624
85578
|
inputs: [],
|
|
85625
|
-
name: "
|
|
85626
|
-
outputs: [{ internalType: "
|
|
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" }],
|
|
85627
85588
|
stateMutability: "view",
|
|
85628
85589
|
type: "function"
|
|
85629
85590
|
},
|
|
85630
85591
|
{
|
|
85631
85592
|
inputs: [],
|
|
85632
|
-
name: "
|
|
85633
|
-
outputs: [{ internalType: "
|
|
85593
|
+
name: "owner",
|
|
85594
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85634
85595
|
stateMutability: "view",
|
|
85635
85596
|
type: "function"
|
|
85636
85597
|
},
|
|
85598
|
+
{ inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85637
85599
|
{
|
|
85638
85600
|
inputs: [],
|
|
85639
|
-
name: "
|
|
85640
|
-
outputs: [{ internalType: "
|
|
85601
|
+
name: "paused",
|
|
85602
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85641
85603
|
stateMutability: "view",
|
|
85642
85604
|
type: "function"
|
|
85643
85605
|
},
|
|
85644
85606
|
{
|
|
85645
85607
|
inputs: [],
|
|
85646
|
-
name: "
|
|
85608
|
+
name: "pauser",
|
|
85647
85609
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85648
85610
|
stateMutability: "view",
|
|
85649
85611
|
type: "function"
|
|
@@ -85656,17 +85618,12 @@ var token_messenger_v2_abi_default = [
|
|
|
85656
85618
|
type: "function"
|
|
85657
85619
|
},
|
|
85658
85620
|
{
|
|
85659
|
-
inputs: [
|
|
85660
|
-
|
|
85661
|
-
|
|
85662
|
-
|
|
85663
|
-
|
|
85664
|
-
|
|
85665
|
-
{ inputs: [], name: "removeLocalMinter", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85666
|
-
{
|
|
85667
|
-
inputs: [{ internalType: "uint32", name: "domain", type: "uint32" }],
|
|
85668
|
-
name: "removeRemoteTokenMessenger",
|
|
85669
|
-
outputs: [],
|
|
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" }],
|
|
85670
85627
|
stateMutability: "nonpayable",
|
|
85671
85628
|
type: "function"
|
|
85672
85629
|
},
|
|
@@ -85689,12 +85646,39 @@ var token_messenger_v2_abi_default = [
|
|
|
85689
85646
|
type: "function"
|
|
85690
85647
|
},
|
|
85691
85648
|
{
|
|
85692
|
-
inputs: [
|
|
85693
|
-
|
|
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",
|
|
85694
85671
|
outputs: [],
|
|
85695
85672
|
stateMutability: "nonpayable",
|
|
85696
85673
|
type: "function"
|
|
85697
85674
|
},
|
|
85675
|
+
{
|
|
85676
|
+
inputs: [],
|
|
85677
|
+
name: "signatureThreshold",
|
|
85678
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85679
|
+
stateMutability: "view",
|
|
85680
|
+
type: "function"
|
|
85681
|
+
},
|
|
85698
85682
|
{
|
|
85699
85683
|
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
85700
85684
|
name: "transferOwnership",
|
|
@@ -85702,16 +85686,17 @@ var token_messenger_v2_abi_default = [
|
|
|
85702
85686
|
stateMutability: "nonpayable",
|
|
85703
85687
|
type: "function"
|
|
85704
85688
|
},
|
|
85689
|
+
{ inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85705
85690
|
{
|
|
85706
|
-
inputs: [{ internalType: "address", name: "
|
|
85707
|
-
name: "
|
|
85691
|
+
inputs: [{ internalType: "address", name: "newAttesterManager", type: "address" }],
|
|
85692
|
+
name: "updateAttesterManager",
|
|
85708
85693
|
outputs: [],
|
|
85709
85694
|
stateMutability: "nonpayable",
|
|
85710
85695
|
type: "function"
|
|
85711
85696
|
},
|
|
85712
85697
|
{
|
|
85713
|
-
inputs: [{ internalType: "address", name: "
|
|
85714
|
-
name: "
|
|
85698
|
+
inputs: [{ internalType: "address", name: "_newPauser", type: "address" }],
|
|
85699
|
+
name: "updatePauser",
|
|
85715
85700
|
outputs: [],
|
|
85716
85701
|
stateMutability: "nonpayable",
|
|
85717
85702
|
type: "function"
|
|
@@ -85722,9 +85707,22 @@ var token_messenger_v2_abi_default = [
|
|
|
85722
85707
|
outputs: [],
|
|
85723
85708
|
stateMutability: "nonpayable",
|
|
85724
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"
|
|
85725
85724
|
}
|
|
85726
85725
|
];
|
|
85727
|
-
|
|
85728
85726
|
// src/integrations/cctp/cctp.v2.ts
|
|
85729
85727
|
var messageTransmitterAbi = new exports_ethers.utils.Interface(message_transmitter_v2_abi_default);
|
|
85730
85728
|
var tokenMessengerAbi = new exports_ethers.utils.Interface(token_messenger_v2_abi_default);
|
|
@@ -85772,90 +85770,6 @@ var receiveMessageFromCctpTrx = ({
|
|
|
85772
85770
|
data: ReceiveMessageCalldata(args)
|
|
85773
85771
|
});
|
|
85774
85772
|
};
|
|
85775
|
-
// src/integrations/erc721/erc721.ts
|
|
85776
|
-
var erc721Interface = new exports_ethers.utils.Interface(erc721_abi_default2);
|
|
85777
|
-
var ApproveErc721CallData = ({ tokenId, spender }) => {
|
|
85778
|
-
return erc721Interface.encodeFunctionData("approve", [spender, tokenId]);
|
|
85779
|
-
};
|
|
85780
|
-
var approveErc721Trx = ({ tokenId, spender, token }) => {
|
|
85781
|
-
return createCall({
|
|
85782
|
-
to: token,
|
|
85783
|
-
data: ApproveErc721CallData({ tokenId, spender }),
|
|
85784
|
-
value: 0n,
|
|
85785
|
-
operation: 0
|
|
85786
|
-
});
|
|
85787
|
-
};
|
|
85788
|
-
var TransferFromErc721CallData = ({ from: from2, to, tokenId }) => {
|
|
85789
|
-
return erc721Interface.encodeFunctionData("transferFrom", [from2, to, tokenId]);
|
|
85790
|
-
};
|
|
85791
|
-
var transferFromErc721Trx = ({ from: from2, to, tokenId, token }) => {
|
|
85792
|
-
return createCall({
|
|
85793
|
-
to: token,
|
|
85794
|
-
data: TransferFromErc721CallData({ from: from2, to, tokenId }),
|
|
85795
|
-
value: 0n,
|
|
85796
|
-
operation: 0
|
|
85797
|
-
});
|
|
85798
|
-
};
|
|
85799
|
-
var SafeTransferFromWithDataErc721CallData = ({
|
|
85800
|
-
from: from2,
|
|
85801
|
-
to,
|
|
85802
|
-
tokenId,
|
|
85803
|
-
data
|
|
85804
|
-
}) => {
|
|
85805
|
-
return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId, data]);
|
|
85806
|
-
};
|
|
85807
|
-
var safeTransferFromWithDataErc721Trx = ({
|
|
85808
|
-
from: from2,
|
|
85809
|
-
to,
|
|
85810
|
-
tokenId,
|
|
85811
|
-
data,
|
|
85812
|
-
token
|
|
85813
|
-
}) => {
|
|
85814
|
-
return createCall({
|
|
85815
|
-
to: token,
|
|
85816
|
-
data: SafeTransferFromWithDataErc721CallData({ from: from2, to, tokenId, data }),
|
|
85817
|
-
value: 0n,
|
|
85818
|
-
operation: 0
|
|
85819
|
-
});
|
|
85820
|
-
};
|
|
85821
|
-
var SafeTransferFromErc721CallData = ({
|
|
85822
|
-
from: from2,
|
|
85823
|
-
to,
|
|
85824
|
-
tokenId
|
|
85825
|
-
}) => {
|
|
85826
|
-
return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId]);
|
|
85827
|
-
};
|
|
85828
|
-
var safeTransferFromErc721Trx = ({
|
|
85829
|
-
from: from2,
|
|
85830
|
-
to,
|
|
85831
|
-
tokenId,
|
|
85832
|
-
token
|
|
85833
|
-
}) => {
|
|
85834
|
-
return createCall({
|
|
85835
|
-
to: token,
|
|
85836
|
-
data: SafeTransferFromErc721CallData({ from: from2, to, tokenId }),
|
|
85837
|
-
value: 0n,
|
|
85838
|
-
operation: 0
|
|
85839
|
-
});
|
|
85840
|
-
};
|
|
85841
|
-
var SetApprovalForAllErc721CallData = ({
|
|
85842
|
-
operator,
|
|
85843
|
-
approved
|
|
85844
|
-
}) => {
|
|
85845
|
-
return erc721Interface.encodeFunctionData("setApprovalForAll", [operator, approved]);
|
|
85846
|
-
};
|
|
85847
|
-
var setApprovalForAllErc721Trx = ({
|
|
85848
|
-
operator,
|
|
85849
|
-
approved,
|
|
85850
|
-
token
|
|
85851
|
-
}) => {
|
|
85852
|
-
return createCall({
|
|
85853
|
-
to: token,
|
|
85854
|
-
data: SetApprovalForAllErc721CallData({ operator, approved }),
|
|
85855
|
-
value: 0n,
|
|
85856
|
-
operation: 0
|
|
85857
|
-
});
|
|
85858
|
-
};
|
|
85859
85773
|
// src/integrations/erc721/erc721.abi.ts
|
|
85860
85774
|
var erc721_abi_default2 = [
|
|
85861
85775
|
{
|
|
@@ -86057,6 +85971,90 @@ var erc721_abi_default2 = [
|
|
|
86057
85971
|
stateMutability: "nonpayable"
|
|
86058
85972
|
}
|
|
86059
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
|
+
};
|
|
86060
86058
|
// src/lib/utils.ts
|
|
86061
86059
|
var executeTrx = ({
|
|
86062
86060
|
client,
|
|
@@ -86356,4 +86354,4 @@ export {
|
|
|
86356
86354
|
aave_pool_abi_default as AaveL1PoolAbi
|
|
86357
86355
|
};
|
|
86358
86356
|
|
|
86359
|
-
//# debugId=
|
|
86357
|
+
//# debugId=56DA7048BD90032764756E2164756E21
|