damm-sdk 1.1.31-alpha.3 → 1.1.31-alpha.30
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 +731 -667
- package/dist/index.cjs.map +8 -8
- package/dist/index.js +49998 -42254
- package/dist/index.js.map +124 -60
- 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/dist/integrations/lagoonV1/factory.abi.d.ts +57 -91
- package/dist/integrations/lagoonV1/factory.abi.d.ts.map +1 -1
- package/dist/integrations/lagoonV1/lagoon.v1.d.ts +5 -3
- package/dist/integrations/lagoonV1/lagoon.v1.d.ts.map +1 -1
- package/dist/integrations/slipstream/{guage.abi.d.ts → gauge.abi.d.ts} +1 -1
- package/dist/integrations/slipstream/{guage.abi.d.ts.map → gauge.abi.d.ts.map} +1 -1
- package/dist/integrations/slipstream/index.d.ts +1 -1
- package/dist/integrations/slipstream/slipstream.d.ts +9 -9
- 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/src/integrations/lagoonV1/factory.abi.ts +33 -58
- package/src/integrations/lagoonV1/lagoon.v1.ts +22 -19
- package/src/integrations/slipstream/index.ts +1 -1
- package/src/integrations/slipstream/slipstream.ts +23 -23
- package/src/lib/contractsRegistry.json +103 -11
- /package/src/integrations/slipstream/{guage.abi.ts → gauge.abi.ts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -44330,9 +44330,9 @@ __export(exports_src, {
|
|
|
44330
44330
|
slipstreamSwapExactInputSingleTrx: () => slipstreamSwapExactInputSingleTrx,
|
|
44331
44331
|
slipstreamMintPositionTrx: () => slipstreamMintPositionTrx,
|
|
44332
44332
|
slipstreamIncreaseLiquidityTrx: () => slipstreamIncreaseLiquidityTrx,
|
|
44333
|
-
|
|
44334
|
-
|
|
44335
|
-
|
|
44333
|
+
slipstreamGaugeWithdrawTrx: () => slipstreamGaugeWithdrawTrx,
|
|
44334
|
+
slipstreamGaugeGetRewardTrx: () => slipstreamGaugeGetRewardTrx,
|
|
44335
|
+
slipstreamGaugeDepositTrx: () => slipstreamGaugeDepositTrx,
|
|
44336
44336
|
slipstreamDecreaseLiquidityTrx: () => slipstreamDecreaseLiquidityTrx,
|
|
44337
44337
|
slipstreamCollectFeesTrx: () => slipstreamCollectFeesTrx,
|
|
44338
44338
|
slipstreamBurnPositionTrx: () => slipstreamBurnPositionTrx,
|
|
@@ -44435,10 +44435,10 @@ __export(exports_src, {
|
|
|
44435
44435
|
SlipstreamPositionManagerAbi: () => position_manager_abi_default3,
|
|
44436
44436
|
SlipstreamMintPositionCalldata: () => SlipstreamMintPositionCalldata,
|
|
44437
44437
|
SlipstreamIncreaseLiquidityCalldata: () => SlipstreamIncreaseLiquidityCalldata,
|
|
44438
|
-
|
|
44439
|
-
|
|
44440
|
-
|
|
44441
|
-
|
|
44438
|
+
SlipstreamGaugeWithdrawCalldata: () => SlipstreamGaugeWithdrawCalldata,
|
|
44439
|
+
SlipstreamGaugeGetRewardCalldata: () => SlipstreamGaugeGetRewardCalldata,
|
|
44440
|
+
SlipstreamGaugeDepositCalldata: () => SlipstreamGaugeDepositCalldata,
|
|
44441
|
+
SlipstreamGaugeAbi: () => gauge_abi_default,
|
|
44442
44442
|
SlipstreamDecreaseLiquidityCalldata: () => SlipstreamDecreaseLiquidityCalldata,
|
|
44443
44443
|
SlipstreamCollectFeesCalldata: () => SlipstreamCollectFeesCalldata,
|
|
44444
44444
|
SlipstreamBurnPositionCalldata: () => SlipstreamBurnPositionCalldata,
|
|
@@ -53246,6 +53246,10 @@ var contractsRegistry_default = {
|
|
|
53246
53246
|
registry: "0x6dA4D1859bA1d02D095D2246142CdAd52233e27C",
|
|
53247
53247
|
vaultImpl: "0xE50554ec802375C9c3F9c087a8a7bb8C26d3DEDf"
|
|
53248
53248
|
},
|
|
53249
|
+
cow: {
|
|
53250
|
+
gpV2VaultRelayer: "0xC92E8bdf79f0507f65a392b0ab4667716BFE0110",
|
|
53251
|
+
cowOrderSigner: "0x23dA9AdE38E4477b23770DeD512fD37b12381FAB"
|
|
53252
|
+
},
|
|
53249
53253
|
uniswapV4: {
|
|
53250
53254
|
universalRouter: "0xA51afAFe0263b40EdaEf0Df8781eA9aa03E381a3",
|
|
53251
53255
|
positionManager: "0xd88F38F930b7952f2DB2432Cb002E7abbF3dD869",
|
|
@@ -53285,7 +53289,7 @@ var contractsRegistry_default = {
|
|
|
53285
53289
|
tokens: {
|
|
53286
53290
|
weth: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
53287
53291
|
usdc: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
53288
|
-
|
|
53292
|
+
usdt0: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
|
|
53289
53293
|
dai: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
|
53290
53294
|
usdce: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
|
|
53291
53295
|
aUSDT: "0x6ab707Aca953eDAeFBc4fD23bA73294241490620",
|
|
@@ -53342,6 +53346,10 @@ var contractsRegistry_default = {
|
|
|
53342
53346
|
weth: "0x4200000000000000000000000000000000000006",
|
|
53343
53347
|
aero: "0x940181a94A35A4569E4529A3CDfB74e38FD98631"
|
|
53344
53348
|
},
|
|
53349
|
+
cow: {
|
|
53350
|
+
gpV2VaultRelayer: "0xC92E8bdf79f0507f65a392b0ab4667716BFE0110",
|
|
53351
|
+
cowOrderSigner: "0x23dA9AdE38E4477b23770DeD512fD37b12381FAB"
|
|
53352
|
+
},
|
|
53345
53353
|
merkl: {
|
|
53346
53354
|
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53347
53355
|
},
|
|
@@ -53373,7 +53381,7 @@ var contractsRegistry_default = {
|
|
|
53373
53381
|
slipstream: {
|
|
53374
53382
|
router: "0xBE6D8f0d05cC4be24d5167a3eF062215bE6D18a5",
|
|
53375
53383
|
positionManager: "0x827922686190790b37229fd06084350E74485b72",
|
|
53376
|
-
|
|
53384
|
+
gaugeImpl: "0xF5601F95708256A118EF5971820327F362442D2d"
|
|
53377
53385
|
},
|
|
53378
53386
|
enso: {
|
|
53379
53387
|
routerV2: "0xF75584eF6673aD213a685a1B58Cc0330B8eA22Cf"
|
|
@@ -53410,6 +53418,10 @@ var contractsRegistry_default = {
|
|
|
53410
53418
|
router: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
53411
53419
|
positionManager: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
|
|
53412
53420
|
},
|
|
53421
|
+
cow: {
|
|
53422
|
+
gpV2VaultRelayer: "0xC92E8bdf79f0507f65a392b0ab4667716BFE0110",
|
|
53423
|
+
cowOrderSigner: "0x23dA9AdE38E4477b23770DeD512fD37b12381FAB"
|
|
53424
|
+
},
|
|
53413
53425
|
merkl: {
|
|
53414
53426
|
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53415
53427
|
},
|
|
@@ -53446,7 +53458,7 @@ var contractsRegistry_default = {
|
|
|
53446
53458
|
tokens: {
|
|
53447
53459
|
usdce: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
|
|
53448
53460
|
usdc: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
|
|
53449
|
-
|
|
53461
|
+
usdt0: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
|
|
53450
53462
|
dai: "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
|
|
53451
53463
|
sand: "0xBbba073C31bF03b8ACf7c28EF0738DeCF3695683",
|
|
53452
53464
|
weth: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
|
|
@@ -53494,6 +53506,10 @@ var contractsRegistry_default = {
|
|
|
53494
53506
|
merkl: {
|
|
53495
53507
|
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53496
53508
|
},
|
|
53509
|
+
cow: {
|
|
53510
|
+
gpV2VaultRelayer: "0xC92E8bdf79f0507f65a392b0ab4667716BFE0110",
|
|
53511
|
+
cowOrderSigner: "0x23dA9AdE38E4477b23770DeD512fD37b12381FAB"
|
|
53512
|
+
},
|
|
53497
53513
|
gnosisSafe: {
|
|
53498
53514
|
v1_4_1: {
|
|
53499
53515
|
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
@@ -53538,11 +53554,25 @@ var contractsRegistry_default = {
|
|
|
53538
53554
|
merkl: {
|
|
53539
53555
|
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53540
53556
|
},
|
|
53557
|
+
lagoonV0_5: {
|
|
53558
|
+
factory: "0xA8E0684887b9475f8942DF6a89bEBa5B25219632",
|
|
53559
|
+
vaultImpl: "0xBB2dcC67A94946400a605F2a97933471bE8BC538",
|
|
53560
|
+
registry: "0x7AB55B30e3c382451FCCa104521a8B5F45bEeaf9"
|
|
53561
|
+
},
|
|
53562
|
+
uniswapV3: {
|
|
53563
|
+
router: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
|
|
53564
|
+
positionManager: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
|
|
53565
|
+
},
|
|
53541
53566
|
tokens: {
|
|
53542
53567
|
usdc: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
|
|
53543
|
-
|
|
53568
|
+
dai: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
|
53569
|
+
usdt: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
|
|
53570
|
+
usdt0: "0x01bFF41798a0BcF287b996046Ca68b395DbC1071",
|
|
53544
53571
|
velo: "0x3c8B650257cFb5f272f799F5e2b4e65093a11a05",
|
|
53545
|
-
weth: "0x4200000000000000000000000000000000000006"
|
|
53572
|
+
weth: "0x4200000000000000000000000000000000000006",
|
|
53573
|
+
wbtc: "0x68f180fcCe6836688e9084f035309E29Bf0A2095",
|
|
53574
|
+
tbtc: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
|
|
53575
|
+
op: "0x4200000000000000000000000000000000000042"
|
|
53546
53576
|
},
|
|
53547
53577
|
gnosisSafe: {
|
|
53548
53578
|
v1_4_1: {
|
|
@@ -53555,7 +53585,7 @@ var contractsRegistry_default = {
|
|
|
53555
53585
|
zodiac: {
|
|
53556
53586
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
53557
53587
|
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
53558
|
-
multisendUnwrapper: "
|
|
53588
|
+
multisendUnwrapper: "0x93B7fCbc63ED8a3a24B59e1C3e6649D50B7427c0",
|
|
53559
53589
|
delayModule: "0xd54895B1121A2eE3f37b502F507631FA1331BED6"
|
|
53560
53590
|
},
|
|
53561
53591
|
enso: {
|
|
@@ -53578,7 +53608,7 @@ var contractsRegistry_default = {
|
|
|
53578
53608
|
slipstream: {
|
|
53579
53609
|
router: "0x0792a633F0c19c351081CF4B211F68F79bCc9676",
|
|
53580
53610
|
positionManager: "0x416b433906b1B72FA758e166e239c43d68dC6F29",
|
|
53581
|
-
|
|
53611
|
+
gaugeImpl: "0x7155b84A704F0657975827c65Ff6fe42e3A962bb"
|
|
53582
53612
|
},
|
|
53583
53613
|
OFTAdapters: {
|
|
53584
53614
|
"0x01bFF41798a0BcF287b996046Ca68b395DbC1071": "0xF03b4d9AC1D5d1E7c4cEf54C2A313b9fe051A0aD"
|
|
@@ -53604,6 +53634,10 @@ var contractsRegistry_default = {
|
|
|
53604
53634
|
merkl: {
|
|
53605
53635
|
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53606
53636
|
},
|
|
53637
|
+
cow: {
|
|
53638
|
+
gpV2VaultRelayer: "0xC92E8bdf79f0507f65a392b0ab4667716BFE0110",
|
|
53639
|
+
cowOrderSigner: "0x23dA9AdE38E4477b23770DeD512fD37b12381FAB"
|
|
53640
|
+
},
|
|
53607
53641
|
uniswapV4: {
|
|
53608
53642
|
universalRouter: "0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af",
|
|
53609
53643
|
positionManager: "0xbD216513d74C8cf14cf4747E6AaA6420FF64ee9e",
|
|
@@ -53627,7 +53661,7 @@ var contractsRegistry_default = {
|
|
|
53627
53661
|
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
53628
53662
|
tokens: {
|
|
53629
53663
|
usdc: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
53630
|
-
|
|
53664
|
+
usdt0: "0xdac17f958d2ee523a2206206994597c13d831ec7",
|
|
53631
53665
|
sand: "0x3845badAde8e6dFF049820680d1F14bD3903a5d0",
|
|
53632
53666
|
weth: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
|
|
53633
53667
|
},
|
|
@@ -53679,13 +53713,13 @@ var contractsRegistry_default = {
|
|
|
53679
53713
|
positionManager: "0x943e6e07a7E8E791dAFC44083e54041D743C46E9"
|
|
53680
53714
|
},
|
|
53681
53715
|
lagoonV0_5: {
|
|
53682
|
-
factory: "
|
|
53716
|
+
factory: "0x6FC0F2320483fa03FBFdF626DDbAE2CC4B112b51",
|
|
53683
53717
|
registry: "0x652716FaD571f04D26a3c8fFd9E593F17123Ab20",
|
|
53684
53718
|
vaultImpl: "0xE50554ec802375C9c3F9c087a8a7bb8C26d3DEDf"
|
|
53685
53719
|
},
|
|
53686
53720
|
tokens: {
|
|
53687
53721
|
usdc: "0x078D782b760474a361dDA0AF3839290b0EF57AD6",
|
|
53688
|
-
|
|
53722
|
+
usdt0: "0x9151434b16b9763660705744891fA906F660EcC5",
|
|
53689
53723
|
dai: "0x20CAb320A855b39F724131C69424240519573f81",
|
|
53690
53724
|
weth: "0x4200000000000000000000000000000000000006"
|
|
53691
53725
|
},
|
|
@@ -53907,7 +53941,7 @@ var contractsRegistry_default = {
|
|
|
53907
53941
|
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53908
53942
|
},
|
|
53909
53943
|
tokens: {
|
|
53910
|
-
|
|
53944
|
+
usdt0: "0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e",
|
|
53911
53945
|
usdc: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
|
|
53912
53946
|
celo: "0x471EcE3750Da237f93B8E339c536989b8978a438",
|
|
53913
53947
|
uni: "0xeE571697998ec64e32B57D754D700c4dda2f2a0e"
|
|
@@ -53918,6 +53952,63 @@ var contractsRegistry_default = {
|
|
|
53918
53952
|
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
53919
53953
|
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
53920
53954
|
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
53955
|
+
},
|
|
53956
|
+
monad: {
|
|
53957
|
+
merkl: {
|
|
53958
|
+
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53959
|
+
},
|
|
53960
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
53961
|
+
tokens: {
|
|
53962
|
+
usdt0: "0xe7cd86e13AC4309349F30B3435a9d337750fC82D",
|
|
53963
|
+
usdc: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603"
|
|
53964
|
+
},
|
|
53965
|
+
OFTAdapters: {
|
|
53966
|
+
"0xe7cd86e13AC4309349F30B3435a9d337750fC82D": "0x9151434b16b9763660705744891fa906f660ecc5"
|
|
53967
|
+
},
|
|
53968
|
+
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
53969
|
+
cctp: {
|
|
53970
|
+
tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
|
|
53971
|
+
messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
|
|
53972
|
+
},
|
|
53973
|
+
enso: {
|
|
53974
|
+
routerV2: "0xCfBAa9Cfce952Ca4F4069874fF1Df8c05e37a3c7"
|
|
53975
|
+
}
|
|
53976
|
+
},
|
|
53977
|
+
plasma: {
|
|
53978
|
+
aaveV3: {
|
|
53979
|
+
pool: "0x925a2A7214Ed92428B5b1B090F80b25700095e12"
|
|
53980
|
+
},
|
|
53981
|
+
zodiac: {
|
|
53982
|
+
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
53983
|
+
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
53984
|
+
delayModule: "0x01F8cabB808D7dE0dF4202D4B60C8310d2f1339b",
|
|
53985
|
+
multisendUnwrapper: "0x93B7fCbc63ED8a3a24B59e1C3e6649D50B7427c0"
|
|
53986
|
+
},
|
|
53987
|
+
gnosisSafe: {
|
|
53988
|
+
v1_4_1: {
|
|
53989
|
+
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
53990
|
+
multisend: "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
53991
|
+
safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
|
|
53992
|
+
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
53993
|
+
}
|
|
53994
|
+
},
|
|
53995
|
+
merkl: {
|
|
53996
|
+
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53997
|
+
},
|
|
53998
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
53999
|
+
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
54000
|
+
tokens: {
|
|
54001
|
+
usdt0: "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb",
|
|
54002
|
+
wxlp: "0x6100E367285b01F48D07953803A2d8dCA5D19873",
|
|
54003
|
+
syrupUSDT: "0xC4374775489CB9C56003BF2C9b12495fC64F0771"
|
|
54004
|
+
},
|
|
54005
|
+
OFTAdapters: {
|
|
54006
|
+
"0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb": "0x02ca37966753bdddf11216b73b16c1de756a7cf9"
|
|
54007
|
+
},
|
|
54008
|
+
enso: {
|
|
54009
|
+
routerV2: "0xCfBAa9Cfce952Ca4F4069874fF1Df8c05e37a3c7"
|
|
54010
|
+
},
|
|
54011
|
+
wrappedNativeToken: "0x6100E367285b01F48D07953803A2d8dCA5D19873"
|
|
53921
54012
|
}
|
|
53922
54013
|
};
|
|
53923
54014
|
|
|
@@ -74040,20 +74131,12 @@ var transferFromPermit2Trx = ({
|
|
|
74040
74131
|
// src/integrations/lagoonV1/factory.abi.ts
|
|
74041
74132
|
var factory_abi_default = [
|
|
74042
74133
|
{
|
|
74043
|
-
inputs: [
|
|
74044
|
-
{ internalType: "address", name: "_registry", type: "address" },
|
|
74045
|
-
{ internalType: "address", name: "_implementation", type: "address" },
|
|
74046
|
-
{ internalType: "address", name: "_owner", type: "address" },
|
|
74047
|
-
{ internalType: "address", name: "_wrappedNativeToken", type: "address" }
|
|
74048
|
-
],
|
|
74134
|
+
inputs: [{ internalType: "bool", name: "disable", type: "bool" }],
|
|
74049
74135
|
stateMutability: "nonpayable",
|
|
74050
74136
|
type: "constructor"
|
|
74051
74137
|
},
|
|
74052
|
-
{
|
|
74053
|
-
|
|
74054
|
-
name: "BeaconInvalidImplementation",
|
|
74055
|
-
type: "error"
|
|
74056
|
-
},
|
|
74138
|
+
{ inputs: [], name: "InvalidInitialization", type: "error" },
|
|
74139
|
+
{ inputs: [], name: "NotInitializing", type: "error" },
|
|
74057
74140
|
{
|
|
74058
74141
|
inputs: [{ internalType: "address", name: "owner", type: "address" }],
|
|
74059
74142
|
name: "OwnableInvalidOwner",
|
|
@@ -74066,11 +74149,8 @@ var factory_abi_default = [
|
|
|
74066
74149
|
},
|
|
74067
74150
|
{
|
|
74068
74151
|
anonymous: false,
|
|
74069
|
-
inputs: [
|
|
74070
|
-
|
|
74071
|
-
{ indexed: false, internalType: "address", name: "deployer", type: "address" }
|
|
74072
|
-
],
|
|
74073
|
-
name: "BeaconProxyDeployed",
|
|
74152
|
+
inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
|
|
74153
|
+
name: "Initialized",
|
|
74074
74154
|
type: "event"
|
|
74075
74155
|
},
|
|
74076
74156
|
{
|
|
@@ -74084,39 +74164,21 @@ var factory_abi_default = [
|
|
|
74084
74164
|
},
|
|
74085
74165
|
{
|
|
74086
74166
|
anonymous: false,
|
|
74087
|
-
inputs: [{ indexed: true, internalType: "address", name: "implementation", type: "address" }],
|
|
74088
|
-
name: "Upgraded",
|
|
74089
|
-
type: "event"
|
|
74090
|
-
},
|
|
74091
|
-
{
|
|
74092
|
-
inputs: [],
|
|
74093
|
-
name: "REGISTRY",
|
|
74094
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
74095
|
-
stateMutability: "view",
|
|
74096
|
-
type: "function"
|
|
74097
|
-
},
|
|
74098
|
-
{
|
|
74099
|
-
inputs: [],
|
|
74100
|
-
name: "WRAPPED_NATIVE",
|
|
74101
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
74102
|
-
stateMutability: "view",
|
|
74103
|
-
type: "function"
|
|
74104
|
-
},
|
|
74105
|
-
{
|
|
74106
74167
|
inputs: [
|
|
74107
|
-
{ internalType: "
|
|
74108
|
-
{ internalType: "
|
|
74168
|
+
{ indexed: false, internalType: "address", name: "proxy", type: "address" },
|
|
74169
|
+
{ indexed: false, internalType: "address", name: "deployer", type: "address" }
|
|
74109
74170
|
],
|
|
74110
|
-
name: "
|
|
74111
|
-
|
|
74112
|
-
stateMutability: "nonpayable",
|
|
74113
|
-
type: "function"
|
|
74171
|
+
name: "ProxyDeployed",
|
|
74172
|
+
type: "event"
|
|
74114
74173
|
},
|
|
74115
74174
|
{
|
|
74116
74175
|
inputs: [
|
|
74176
|
+
{ internalType: "address", name: "_logic", type: "address" },
|
|
74177
|
+
{ internalType: "address", name: "_initialOwner", type: "address" },
|
|
74178
|
+
{ internalType: "uint256", name: "_initialDelay", type: "uint256" },
|
|
74117
74179
|
{
|
|
74118
74180
|
components: [
|
|
74119
|
-
{ internalType: "
|
|
74181
|
+
{ internalType: "contract IERC20", name: "underlying", type: "address" },
|
|
74120
74182
|
{ internalType: "string", name: "name", type: "string" },
|
|
74121
74183
|
{ internalType: "string", name: "symbol", type: "string" },
|
|
74122
74184
|
{ internalType: "address", name: "safe", type: "address" },
|
|
@@ -74130,7 +74192,7 @@ var factory_abi_default = [
|
|
|
74130
74192
|
{ internalType: "uint256", name: "rateUpdateCooldown", type: "uint256" }
|
|
74131
74193
|
],
|
|
74132
74194
|
internalType: "struct InitStruct",
|
|
74133
|
-
name: "
|
|
74195
|
+
name: "_init",
|
|
74134
74196
|
type: "tuple"
|
|
74135
74197
|
},
|
|
74136
74198
|
{ internalType: "bytes32", name: "salt", type: "bytes32" }
|
|
@@ -74141,29 +74203,33 @@ var factory_abi_default = [
|
|
|
74141
74203
|
type: "function"
|
|
74142
74204
|
},
|
|
74143
74205
|
{
|
|
74144
|
-
inputs: [
|
|
74145
|
-
|
|
74146
|
-
|
|
74147
|
-
|
|
74206
|
+
inputs: [
|
|
74207
|
+
{ internalType: "address", name: "_registry", type: "address" },
|
|
74208
|
+
{ internalType: "address", name: "_wrappedNativeToken", type: "address" },
|
|
74209
|
+
{ internalType: "address", name: "owner", type: "address" }
|
|
74210
|
+
],
|
|
74211
|
+
name: "initialize",
|
|
74212
|
+
outputs: [],
|
|
74213
|
+
stateMutability: "nonpayable",
|
|
74148
74214
|
type: "function"
|
|
74149
74215
|
},
|
|
74150
74216
|
{
|
|
74151
|
-
inputs: [{ internalType: "
|
|
74152
|
-
name: "
|
|
74153
|
-
outputs: [{ internalType: "
|
|
74217
|
+
inputs: [{ internalType: "address", name: "vault", type: "address" }],
|
|
74218
|
+
name: "isInstance",
|
|
74219
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
74154
74220
|
stateMutability: "view",
|
|
74155
74221
|
type: "function"
|
|
74156
74222
|
},
|
|
74157
74223
|
{
|
|
74158
|
-
inputs: [
|
|
74159
|
-
name: "
|
|
74160
|
-
outputs: [{ internalType: "
|
|
74224
|
+
inputs: [],
|
|
74225
|
+
name: "owner",
|
|
74226
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
74161
74227
|
stateMutability: "view",
|
|
74162
74228
|
type: "function"
|
|
74163
74229
|
},
|
|
74164
74230
|
{
|
|
74165
74231
|
inputs: [],
|
|
74166
|
-
name: "
|
|
74232
|
+
name: "registry",
|
|
74167
74233
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
74168
74234
|
stateMutability: "view",
|
|
74169
74235
|
type: "function"
|
|
@@ -74177,10 +74243,10 @@ var factory_abi_default = [
|
|
|
74177
74243
|
type: "function"
|
|
74178
74244
|
},
|
|
74179
74245
|
{
|
|
74180
|
-
inputs: [
|
|
74181
|
-
name: "
|
|
74182
|
-
outputs: [],
|
|
74183
|
-
stateMutability: "
|
|
74246
|
+
inputs: [],
|
|
74247
|
+
name: "wrappedNativeToken",
|
|
74248
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
74249
|
+
stateMutability: "view",
|
|
74184
74250
|
type: "function"
|
|
74185
74251
|
}
|
|
74186
74252
|
];
|
|
@@ -76732,6 +76798,9 @@ var import_utils2 = __toESM(require_utils6());
|
|
|
76732
76798
|
var factoryInterface = new exports_ethers.utils.Interface(factory_abi_default);
|
|
76733
76799
|
var vaultInterface = new exports_ethers.utils.Interface(vault_abi_default);
|
|
76734
76800
|
var CreateVaultProxyCalldata = ({
|
|
76801
|
+
logic,
|
|
76802
|
+
initialOwner,
|
|
76803
|
+
initialDelay,
|
|
76735
76804
|
underlying,
|
|
76736
76805
|
name,
|
|
76737
76806
|
symbol,
|
|
@@ -76753,6 +76822,9 @@ var CreateVaultProxyCalldata = ({
|
|
|
76753
76822
|
throw new Error("Management rate must be less than 10_000");
|
|
76754
76823
|
}
|
|
76755
76824
|
return factoryInterface.encodeFunctionData("createVaultProxy", [
|
|
76825
|
+
logic,
|
|
76826
|
+
initialOwner,
|
|
76827
|
+
initialDelay,
|
|
76756
76828
|
[
|
|
76757
76829
|
underlying,
|
|
76758
76830
|
name,
|
|
@@ -76820,24 +76892,20 @@ var revokeFromVaultWhitelistTrx = ({
|
|
|
76820
76892
|
data: RevokeFromVaultWhitelistCalldata({ accounts })
|
|
76821
76893
|
});
|
|
76822
76894
|
};
|
|
76823
|
-
var DEFAULT_BEACON_PROXY_BYTECODE = "0x60a060405260405161057738038061057783398101604081905261002291610354565b61002c828261003e565b506001600160a01b0316608052610445565b610047826100fb565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e905f90a28051156100ef576100ea826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e49190610416565b82610209565b505050565b6100f761027c565b5050565b806001600160a01b03163b5f0361013557604051631933b43b60e21b81526001600160a01b03821660048201526024015b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b815290515f92841691635c60da1b9160048083019260209291908290030181865afa1580156101ae573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101d29190610416565b9050806001600160a01b03163b5f036100f757604051634c9c8ce360e01b81526001600160a01b038216600482015260240161012c565b60605f80846001600160a01b031684604051610225919061042f565b5f60405180830381855af49150503d805f811461025d576040519150601f19603f3d011682016040523d82523d5f602084013e610262565b606091505b50909250905061027385838361029d565b95945050505050565b341561029b5760405163b398979f60e01b815260040160405180910390fd5b565b6060826102b2576102ad826102fc565b6102f5565b81511580156102c957506001600160a01b0384163b155b156102f257604051639996b31560e01b81526001600160a01b038516600482015260240161012c565b50805b9392505050565b80511561030c5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80516001600160a01b038116811461033b575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f8060408385031215610365575f80fd5b61036e83610325565b60208401519092506001600160401b03811115610389575f80fd5b8301601f81018513610399575f80fd5b80516001600160401b038111156103b2576103b2610340565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103e0576103e0610340565b6040528181528282016020018710156103f7575f80fd5b8160208401602083015e5f602083830101528093505050509250929050565b5f60208284031215610426575f80fd5b6102f582610325565b5f82518060208501845e5f920191825250919050565b60805161011b61045c5f395f601d015261011b5ff3fe6080604052600a600c565b005b60186014601a565b609d565b565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156076573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906098919060ba565b905090565b365f80375f80365f845af43d5f803e80801560b6573d5ff35b3d5ffd5b5f6020828403121560c9575f80fd5b81516001600160a01b038116811460de575f80fd5b939250505056fea2646970667358221220f3f8bde1ff2300e7d2f385e994cbd18d6090f0728ec3966312315c91effc44bd64736f6c634300081a0033";
|
|
76824
|
-
var DEFAULT_BEACON_PROXY_CONSTRUCTOR_TYPES = ["address", "bytes"];
|
|
76825
|
-
var MANTLE_BEACON_PROXY_BYTECODE = "0x608060405234801561000f575f80fd5b5060043610610097575f3560e01c806306433b1b1461009b5780633659cfe6146100d85780635c60da1b146100ed5780636b44e6be146100fe578063715018a6146101305780638da5cb5b1461013857806394888e7214610140578063a2f7b3a514610153578063b884496a14610166578063d999984d14610179578063f2fde38b146101a0575b5f80fd5b6100c27f00000000000000000000000047a144e67834408716cb40fa87fc886d63362ddc81565b6040516100cf9190610502565b60405180910390f35b6100eb6100e6366004610531565b6101b3565b005b6001546001600160a01b03166100c2565b61012061010c366004610531565b60026020525f908152604090205460ff1681565b60405190151581526020016100cf565b6100eb6101c7565b6100c26101da565b6100c261014e36600461054a565b6101e8565b6100c2610161366004610590565b610219565b6100c26101743660046105bb565b610241565b6100c27f00000000000000000000000078c1b0c915c4faa5fffa6cabf0219da63d7f4cb881565b6100eb6101ae366004610531565b6103af565b6101bb6103f2565b6101c481610424565b50565b6101cf6103f2565b6101d85f610499565b565b5f546001600160a01b031690565b5f610212836040516020016101fd91906106fd565b60405160208183030381529060405283610241565b9392505050565b60038181548110610228575f80fd5b5f918252602090912001546001600160a01b0316905081565b5f80823063660b88ee60e01b867f00000000000000000000000047a144e67834408716cb40fa87fc886d63362ddc7f00000000000000000000000078c1b0c915c4faa5fffa6cabf0219da63d7f4cb86040516024016102a29392919061088c565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516102df906104e8565b6102ea9291906108be565b8190604051809103905ff5905080158015610307573d5f803e3d5ffd5b506001600160a01b0381165f818152600260209081526040808320805460ff191660019081179091556003805491820181559093527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90920180546001600160a01b03191684179055815192835233908301529192507ffa8e336138457120a1572efbe25f72698abd5cca1c9be0bce42ad406ff350a2b910160405180910390a19392505050565b6103b76103f2565b6001600160a01b0381166103e9575f604051631e4fbdf760e01b81526004016103e09190610502565b60405180910390fd5b6101c481610499565b336103fb6101da565b6001600160a01b0316146101d8573360405163118cdaa760e01b81526004016103e09190610502565b806001600160a01b03163b5f03610450578060405163211eb15960e21b81526004016103e09190610502565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61059a806108ea83390190565b6001600160a01b03169052565b6001600160a01b0391909116815260200190565b80356001600160a01b038116811461052c575f80fd5b919050565b5f60208284031215610541575f80fd5b61021282610516565b5f806040838503121561055b575f80fd5b82356001600160401b03811115610570575f80fd5b83016101808186031215610582575f80fd5b946020939093013593505050565b5f602082840312156105a0575f80fd5b5035919050565b634e487b7160e01b5f52604160045260245ffd5b5f80604083850312156105cc575f80fd5b82356001600160401b038111156105e1575f80fd5b8301601f810185136105f1575f80fd5b80356001600160401b0381111561060a5761060a6105a7565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610638576106386105a7565b60405281815282820160200187101561064f575f80fd5b816020840160208301375f6020928201830152969401359450505050565b5f808335601e19843603018112610682575f80fd5b83016020810192503590506001600160401b038111156106a0575f80fd5b8036038213156106ae575f80fd5b9250929050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b803561ffff8116811461052c575f80fd5b8035801515811461052c575f80fd5b602081526107166020820161071184610516565b6104f5565b5f610724602084018461066d565b610180604085015261073b6101a0850182846106b5565b91505061074b604085018561066d565b848303601f190160608601526107628382846106b5565b9250505061077260608501610516565b61077f60808501826104f5565b5061078c60808501610516565b61079960a08501826104f5565b506107a660a08501610516565b6107b360c08501826104f5565b506107c060c08501610516565b6107cd60e08501826104f5565b506107da60e08501610516565b6107e86101008501826104f5565b506107f661010085016106dd565b61ffff81166101208501525061080f61012085016106dd565b61ffff81166101408501525061082861014085016106ee565b80151561016085015250610160939093013561018092909201919091525090565b5f81518084525f5b8181101561086d57602081850181015186830182015201610851565b505f602082860101526020601f19601f83011685010191505092915050565b606081525f61089e6060830186610849565b6001600160a01b0394851660208401529290931660409091015292915050565b6001600160a01b03831681526040602082018190525f906108e190830184610849565b94935050505056fe60a060405260405161059a38038061059a8339810160408190526100229161035f565b61002c828261003e565b506001600160a01b0316608052610468565b610047826100fb565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e905f90a28051156100ef576100ea826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e49190610420565b826101fb565b505050565b6100f761026e565b5050565b806001600160a01b03163b5f036101305780604051631933b43b60e21b81526004016101279190610439565b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b815290515f92841691635c60da1b9160048083019260209291908290030181865afa1580156101a9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101cd9190610420565b9050806001600160a01b03163b5f036100f75780604051634c9c8ce360e01b81526004016101279190610439565b60605f80846001600160a01b031684604051610217919061044d565b5f60405180830381855af49150503d805f811461024f576040519150601f19603f3d011682016040523d82523d5f602084013e610254565b606091505b50909250905061026585838361028f565b95945050505050565b341561028d5760405163b398979f60e01b815260040160405180910390fd5b565b6060826102a45761029f826102e5565b6102de565b81511580156102bb57506001600160a01b0384163b155b156102db5783604051639996b31560e01b81526004016101279190610439565b50805b9392505050565b8051156102f55780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80516001600160a01b0381168114610324575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f5b8381101561035757818101518382015260200161033f565b50505f910152565b5f8060408385031215610370575f80fd5b6103798361030e565b60208401519092506001600160401b03811115610394575f80fd5b8301601f810185136103a4575f80fd5b80516001600160401b038111156103bd576103bd610329565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103eb576103eb610329565b604052818152828201602001871015610402575f80fd5b61041382602083016020860161033d565b8093505050509250929050565b5f60208284031215610430575f80fd5b6102de8261030e565b6001600160a01b0391909116815260200190565b5f825161045e81846020870161033d565b9190910192915050565b60805161011b61047f5f395f601d015261011b5ff3fe6080604052600a600c565b005b60186014601a565b609d565b565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156076573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906098919060ba565b905090565b365f80375f80365f845af43d5f803e80801560b6573d5ff35b3d5ffd5b5f6020828403121560c9575f80fd5b81516001600160a01b038116811460de575f80fd5b939250505056fea2646970667358221220dfad6b628dac716b652bae592eb1139cbc08afad3c3085fccbf631db05d488c264736f6c634300081a0033a264697066735822122010b8cb7b19bcb3e39a7f880852c69fc077f9c4b1d599af38d31eb770d4f6f0b764736f6c634300081a0033";
|
|
76895
|
+
var OPTIN_PROXY_CREATION_BYTECODE = "0x60c060405260405161154038038061154083398101604081905261002291610490565b61002c85856100a8565b8161003782826101b8565b5050828260405161004790610454565b6001600160a01b0390921682526020820152604001604051809103905ff080158015610075573d5f803e3d5ffd5b506001600160a01b031660805261009361008e60805190565b610216565b5050506001600160a01b031660a052506105f7565b5f6001600160a01b03831661011e57816001600160a01b03166345f55b3c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100f3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610117919061057b565b90506101b2565b6001600160a01b03821663f3c665f7610135610262565b856040518363ffffffff1660e01b8152600401610153929190610594565b602060405180830381865afa15801561016e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061019291906105ae565b6101af5760405163474245d760e11b815260040160405180910390fd5b50815b92915050565b6101c18261027f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561020a5761020582826102e5565b505050565b610212610358565b5050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61023f610379565b8260405161024e929190610594565b60405180910390a161025f81610398565b50565b5f61027a5f5f80516020611520833981519152610389565b905090565b806001600160a01b03163b5f036102b45780604051634c9c8ce360e01b81526004016102ab91906105cd565b60405180910390fd5b805f805160206115208339815191525b80546001600160a01b0319166001600160a01b039290921691909117905550565b60605f80846001600160a01b03168460405161030191906105e1565b5f60405180830381855af49150503d805f8114610339576040519150601f19603f3d011682016040523d82523d5f602084013e61033e565b606091505b50909250905061034f8583836103d5565b95945050505050565b34156103775760405163b398979f60e01b815260040160405180910390fd5b565b5f5f805160206115008339815191525b546001600160a01b0316919050565b6001600160a01b0381166103c1575f604051633173bdd160e11b81526004016102ab91906105cd565b805f805160206115008339815191526102c4565b6060826103ea576103e58261042b565b610424565b815115801561040157506001600160a01b0384163b155b156104215783604051639996b31560e01b81526004016102ab91906105cd565b50805b9392505050565b80511561043b5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b61095180610baf83390190565b80516001600160a01b0381168114610477575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f805f805f60a086880312156104a4575f80fd5b6104ad86610461565b94506104bb60208701610461565b93506104c960408701610461565b6060870151608088015191945092506001600160401b038111156104eb575f80fd5b8601601f810188136104fb575f80fd5b80516001600160401b038111156105145761051461047c565b604051601f8201601f19908116603f011681016001600160401b03811182821017156105425761054261047c565b6040528181528282016020018a1015610559575f80fd5b8160208401602083015e5f602083830101528093505050509295509295909350565b5f6020828403121561058b575f80fd5b61042482610461565b6001600160a01b0392831681529116602082015260400190565b5f602082840312156105be575f80fd5b81518015158114610424575f80fd5b6001600160a01b0391909116815260200190565b5f82518060208501845e5f920191825250919050565b60805160a05161059361061c5f395f81816038015260f401525f607201526105935ff3fe60806040526004361061001d575f3560e01c806306433b1b14610027575b610025610070565b005b348015610032575f80fd5b5061005a7f000000000000000000000000000000000000000000000000000000000000000081565b60405161006791906103eb565b60405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036101c2575f356001600160e01b03191663278f794360e11b146100d2576040516334ad5dbb60e21b815260040160405180910390fd5b5f806100e136600481846103ff565b8101906100ee919061043a565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f3c665f76101296101cc565b6040516001600160e01b031960e084901b1681526001600160a01b0391821660048201529085166024820152604401602060405180830381865afa158015610173573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101979190610508565b6101b45760405163474245d760e11b815260040160405180910390fd5b6101be82826101f0565b5050565b6101ca61024a565b565b5f6101eb5f8051602061053e833981519152546001600160a01b031690565b905090565b6101f98261025a565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156102425761023d82826102bd565b505050565b6101be61032f565b6101ca6102556101cc565b61034e565b806001600160a01b03163b5f0361028f5780604051634c9c8ce360e01b815260040161028691906103eb565b60405180910390fd5b5f8051602061053e83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b0316846040516102d99190610527565b5f60405180830381855af49150503d805f8114610311576040519150601f19603f3d011682016040523d82523d5f602084013e610316565b606091505b509150915061032685838361036c565b95945050505050565b34156101ca5760405163b398979f60e01b815260040160405180910390fd5b365f80375f80365f845af43d5f803e808015610368573d5ff35b3d5ffd5b6060826103815761037c826103c2565b6103bb565b815115801561039857506001600160a01b0384163b155b156103b85783604051639996b31560e01b815260040161028691906103eb565b50805b9392505050565b8051156103d25780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b0391909116815260200190565b5f808585111561040d575f80fd5b83861115610419575f80fd5b5050820193919092039150565b634e487b7160e01b5f52604160045260245ffd5b5f806040838503121561044b575f80fd5b82356001600160a01b0381168114610461575f80fd5b915060208301356001600160401b0381111561047b575f80fd5b8301601f8101851361048b575f80fd5b80356001600160401b038111156104a4576104a4610426565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104d2576104d2610426565b6040528181528282016020018710156104e9575f80fd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215610518575f80fd5b815180151581146103bb575f80fd5b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122054a7e97969c29f5ce4c21e7feeef7fb958d11e31d8152e7ae4ea8a848a71848c64736f6c634300081a0033608060405234801561000f575f80fd5b5060405161095138038061095183398101604081905261002e91610158565b81806001600160a01b03811661005e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61006781610109565b5050620151808110156100925760405163013ccc8d60e01b8152620151806004820152602401610055565b62278d008111156100bb57604051630b94129b60e31b815262278d006004820152602401610055565b5f1960018190556003556005819055604080518281525f60208201527fa580b4a9812995ffed1b336481c3f3bfeb3414df9f587a9d73856bab25aa4eee910160405180910390a1505061018f565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f8060408385031215610169575f80fd5b82516001600160a01b038116811461017f575f80fd5b6020939093015192949293505050565b6107b58061019c5f395ff3fe6080604052600436106100b7575f3560e01c8063033f8dbc146100bb5780634125ff90146100e3578063432efade146100f9578063554f94db1461011a578063657081b31461012e5780636a42b8f81461014d578063715018a6146101625780638b677b03146101765780638da5cb5b146101a25780639623609d146101b65780639f81aed7146101c9578063a36f141c146101df578063ad3cb1cc146101f4578063f2fde38b14610231578063f6b12cf914610250575b5f80fd5b3480156100c6575f80fd5b506100d060045481565b6040519081526020015b60405180910390f35b3480156100ee575f80fd5b506100d062278d0081565b348015610104575f80fd5b506101186101133660046105a6565b610265565b005b348015610125575f80fd5b50610118610326565b348015610139575f80fd5b506101186101483660046105d1565b6103a8565b348015610158575f80fd5b506100d060055481565b34801561016d575f80fd5b50610118610420565b348015610181575f80fd5b50600254610195906001600160a01b031681565b6040516100da91906105f3565b3480156101ad575f80fd5b50610195610433565b6101186101c436600461061b565b610441565b3480156101d4575f80fd5b506100d06201518081565b3480156101ea575f80fd5b506100d060035481565b3480156101ff575f80fd5b50610224604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516100da919061071d565b34801561023c575f80fd5b5061011861024b3660046105d1565b6104e8565b34801561025b575f80fd5b506100d060015481565b61026d610525565b6201518081101561029b5760405163013ccc8d60e01b81526201518060048201526024015b60405180910390fd5b62278d008111156102c457604051630b94129b60e31b815262278d006004820152602401610292565b60048190556005546102d6904261072f565b60038190556005546004546040805192835260208301919091528101919091527fab7d3921ca5710b1f874b995128f2d434b8b28080cc90e5b7ae542d01a41dd6e9060600160405180910390a150565b61032e610525565b60035442101561035157604051634040f3a760e01b815260040160405180910390fd5b7fa580b4a9812995ffed1b336481c3f3bfeb3414df9f587a9d73856bab25aa4eee60045460055460405161038f929190918252602082015260400190565b60405180910390a1600480546005555f90555f19600355565b6103b0610525565b600280546001600160a01b0319166001600160a01b0383161790556005546103d8904261072f565b60018190556002546040519182526001600160a01b0316907fb995d606597d17deae0e0b28f4668c00c67c22d7bed7b95db2a5ac7f1b96aa2b9060200160405180910390a250565b610428610525565b6104315f610557565b565b5f546001600160a01b031690565b610449610525565b60015442101561046c57604051634040f3a760e01b815260040160405180910390fd5b60025460405163278f794360e11b81526001600160a01b0380861692634f1ef2869234926104a09216908690600401610754565b5f604051808303818588803b1580156104b7575f80fd5b505af11580156104c9573d5f803e3d5ffd5b5050600280546001600160a01b031916905550505f1960015550505050565b6104f0610525565b6001600160a01b038116610519575f604051631e4fbdf760e01b815260040161029291906105f3565b61052281610557565b50565b3361052e610433565b6001600160a01b031614610431573360405163118cdaa760e01b815260040161029291906105f3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156105b6575f80fd5b5035919050565b6001600160a01b0381168114610522575f80fd5b5f602082840312156105e1575f80fd5b81356105ec816105bd565b9392505050565b6001600160a01b0391909116815260200190565b634e487b7160e01b5f52604160045260245ffd5b5f805f6060848603121561062d575f80fd5b8335610638816105bd565b92506020840135610648816105bd565b915060408401356001600160401b03811115610662575f80fd5b8401601f81018613610672575f80fd5b80356001600160401b0381111561068b5761068b610607565b604051601f8201601f19908116603f011681016001600160401b03811182821017156106b9576106b9610607565b6040528181528282016020018810156106d0575f80fd5b816020840160208301375f602083830101528093505050509250925092565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6105ec60208301846106ef565b8082018082111561074e57634e487b7160e01b5f52601160045260245ffd5b92915050565b6001600160a01b03831681526040602082018190525f90610777908301846106ef565b94935050505056fea2646970667358221220e27ebccd00d28ef8e1c57bfd0e4ffadef9ac6d95a3f3cc646f6f86755492f76564736f6c634300081a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc";
|
|
76826
76896
|
var calculateDeterministicVaultAddress = ({
|
|
76827
76897
|
factoryAddress,
|
|
76828
76898
|
registry,
|
|
76829
76899
|
wrappedNativeToken,
|
|
76830
|
-
initStruct
|
|
76831
|
-
chainId
|
|
76900
|
+
initStruct
|
|
76832
76901
|
}) => {
|
|
76833
|
-
const beaconProxyBytecode = chainId === 5000 ? MANTLE_BEACON_PROXY_BYTECODE : DEFAULT_BEACON_PROXY_BYTECODE;
|
|
76834
76902
|
const initEncoded = import_utils2.defaultAbiCoder.encode(["tuple(address,string,string,address,address,address,address,address,uint16,uint16,bool,uint256)"], [
|
|
76835
76903
|
[
|
|
76836
76904
|
initStruct.underlying,
|
|
76837
76905
|
initStruct.name,
|
|
76838
76906
|
initStruct.symbol,
|
|
76839
76907
|
initStruct.safe,
|
|
76840
|
-
initStruct.whitelistManager,
|
|
76908
|
+
initStruct.enableWhitelist ? initStruct.whitelistManager : ZERO_ADDRESS,
|
|
76841
76909
|
initStruct.valuationManager,
|
|
76842
76910
|
initStruct.admin,
|
|
76843
76911
|
initStruct.feeReceiver,
|
|
@@ -76851,11 +76919,8 @@ var calculateDeterministicVaultAddress = ({
|
|
|
76851
76919
|
"function initialize(bytes data, address feeRegistry, address wrappedNativeToken)"
|
|
76852
76920
|
]);
|
|
76853
76921
|
const initCall = iface.encodeFunctionData("initialize", [initEncoded, registry, wrappedNativeToken]);
|
|
76854
|
-
const constructorEncoded = import_utils2.defaultAbiCoder.encode(
|
|
76855
|
-
|
|
76856
|
-
initCall
|
|
76857
|
-
]);
|
|
76858
|
-
const initCode = beaconProxyBytecode + constructorEncoded.slice(2);
|
|
76922
|
+
const constructorEncoded = import_utils2.defaultAbiCoder.encode(["address", "address", "address", "uint256", "bytes"], [initStruct.logic, registry, initStruct.initialOwner, initStruct.initialDelay, initCall]);
|
|
76923
|
+
const initCode = OPTIN_PROXY_CREATION_BYTECODE + constructorEncoded.slice(2);
|
|
76859
76924
|
const create2Inputs = import_utils2.solidityPack(["bytes1", "address", "bytes32", "bytes32"], ["0xff", factoryAddress, initStruct.salt, import_utils2.keccak256(initCode)]);
|
|
76860
76925
|
const computedAddress = `0x${import_utils2.keccak256(create2Inputs).slice(-40)}`;
|
|
76861
76926
|
return import_utils2.getAddress(computedAddress);
|
|
@@ -80902,226 +80967,8 @@ var position_manager_abi_default3 = [
|
|
|
80902
80967
|
{ type: "receive", stateMutability: "payable" }
|
|
80903
80968
|
];
|
|
80904
80969
|
|
|
80905
|
-
// src/integrations/slipstream/
|
|
80906
|
-
var
|
|
80907
|
-
var positionManagerInterface2 = new exports_ethers.utils.Interface(position_manager_abi_default3);
|
|
80908
|
-
var guageInterface = new exports_ethers.utils.Interface(guage_abi_default);
|
|
80909
|
-
var RouterSwapExactInputSingleCalldata = ({
|
|
80910
|
-
tokenIn,
|
|
80911
|
-
tokenOut,
|
|
80912
|
-
tickSpacing,
|
|
80913
|
-
recipient,
|
|
80914
|
-
deadline,
|
|
80915
|
-
amountIn,
|
|
80916
|
-
amountOutMinimum,
|
|
80917
|
-
sqrtPriceLimitX96
|
|
80918
|
-
}) => {
|
|
80919
|
-
return swapRouterInterface2.encodeFunctionData("exactInputSingle", [
|
|
80920
|
-
[tokenIn, tokenOut, tickSpacing, recipient, deadline, amountIn, amountOutMinimum, sqrtPriceLimitX96]
|
|
80921
|
-
]);
|
|
80922
|
-
};
|
|
80923
|
-
var RouterSwapExactOutputSingleCalldata = ({
|
|
80924
|
-
tokenIn,
|
|
80925
|
-
tokenOut,
|
|
80926
|
-
tickSpacing,
|
|
80927
|
-
recipient,
|
|
80928
|
-
deadline,
|
|
80929
|
-
amountOut,
|
|
80930
|
-
amountInMaximum,
|
|
80931
|
-
sqrtPriceLimitX96
|
|
80932
|
-
}) => {
|
|
80933
|
-
return swapRouterInterface2.encodeFunctionData("exactOutputSingle", [
|
|
80934
|
-
[tokenIn, tokenOut, tickSpacing, recipient, deadline, amountOut, amountInMaximum, sqrtPriceLimitX96]
|
|
80935
|
-
]);
|
|
80936
|
-
};
|
|
80937
|
-
var slipstreamSwapExactInputSingleTrx = ({
|
|
80938
|
-
swapParams,
|
|
80939
|
-
swapRouter
|
|
80940
|
-
}) => {
|
|
80941
|
-
return createCall({
|
|
80942
|
-
to: swapRouter,
|
|
80943
|
-
data: RouterSwapExactInputSingleCalldata(swapParams),
|
|
80944
|
-
value: 0n,
|
|
80945
|
-
operation: 0
|
|
80946
|
-
});
|
|
80947
|
-
};
|
|
80948
|
-
var slipstreamSwapExactOutputSingleTrx = ({
|
|
80949
|
-
swapParams,
|
|
80950
|
-
swapRouter
|
|
80951
|
-
}) => {
|
|
80952
|
-
return createCall({
|
|
80953
|
-
to: swapRouter,
|
|
80954
|
-
data: RouterSwapExactOutputSingleCalldata(swapParams),
|
|
80955
|
-
value: 0n,
|
|
80956
|
-
operation: 0
|
|
80957
|
-
});
|
|
80958
|
-
};
|
|
80959
|
-
var SlipstreamMintPositionCalldata = ({
|
|
80960
|
-
token0,
|
|
80961
|
-
token1,
|
|
80962
|
-
tickSpacing,
|
|
80963
|
-
tickLower,
|
|
80964
|
-
tickUpper,
|
|
80965
|
-
amount0Desired,
|
|
80966
|
-
amount1Desired,
|
|
80967
|
-
amount0Min,
|
|
80968
|
-
amount1Min,
|
|
80969
|
-
recipient,
|
|
80970
|
-
deadline,
|
|
80971
|
-
sqrtPriceX96
|
|
80972
|
-
}) => {
|
|
80973
|
-
return positionManagerInterface2.encodeFunctionData("mint", [
|
|
80974
|
-
[
|
|
80975
|
-
token0,
|
|
80976
|
-
token1,
|
|
80977
|
-
tickSpacing,
|
|
80978
|
-
tickLower,
|
|
80979
|
-
tickUpper,
|
|
80980
|
-
amount0Desired,
|
|
80981
|
-
amount1Desired,
|
|
80982
|
-
amount0Min,
|
|
80983
|
-
amount1Min,
|
|
80984
|
-
recipient,
|
|
80985
|
-
deadline,
|
|
80986
|
-
sqrtPriceX96
|
|
80987
|
-
]
|
|
80988
|
-
]);
|
|
80989
|
-
};
|
|
80990
|
-
var slipstreamMintPositionTrx = ({
|
|
80991
|
-
mintParams,
|
|
80992
|
-
positionManager
|
|
80993
|
-
}) => {
|
|
80994
|
-
return createCall({
|
|
80995
|
-
to: positionManager,
|
|
80996
|
-
data: SlipstreamMintPositionCalldata(mintParams),
|
|
80997
|
-
value: 0n,
|
|
80998
|
-
operation: 0
|
|
80999
|
-
});
|
|
81000
|
-
};
|
|
81001
|
-
var SlipstreamIncreaseLiquidityCalldata = ({
|
|
81002
|
-
tokenId,
|
|
81003
|
-
amount0Desired,
|
|
81004
|
-
amount1Desired,
|
|
81005
|
-
amount0Min,
|
|
81006
|
-
amount1Min,
|
|
81007
|
-
deadline
|
|
81008
|
-
}) => {
|
|
81009
|
-
return positionManagerInterface2.encodeFunctionData("increaseLiquidity", [
|
|
81010
|
-
[tokenId, amount0Desired, amount1Desired, amount0Min, amount1Min, deadline]
|
|
81011
|
-
]);
|
|
81012
|
-
};
|
|
81013
|
-
var slipstreamIncreaseLiquidityTrx = ({
|
|
81014
|
-
increaseParams,
|
|
81015
|
-
positionManager
|
|
81016
|
-
}) => {
|
|
81017
|
-
return createCall({
|
|
81018
|
-
to: positionManager,
|
|
81019
|
-
data: SlipstreamIncreaseLiquidityCalldata(increaseParams),
|
|
81020
|
-
value: 0n,
|
|
81021
|
-
operation: 0
|
|
81022
|
-
});
|
|
81023
|
-
};
|
|
81024
|
-
var SlipstreamDecreaseLiquidityCalldata = ({
|
|
81025
|
-
tokenId,
|
|
81026
|
-
liquidity,
|
|
81027
|
-
amount0Min,
|
|
81028
|
-
amount1Min,
|
|
81029
|
-
deadline
|
|
81030
|
-
}) => {
|
|
81031
|
-
return positionManagerInterface2.encodeFunctionData("decreaseLiquidity", [
|
|
81032
|
-
[tokenId, liquidity, amount0Min, amount1Min, deadline]
|
|
81033
|
-
]);
|
|
81034
|
-
};
|
|
81035
|
-
var slipstreamDecreaseLiquidityTrx = ({
|
|
81036
|
-
decreaseParams,
|
|
81037
|
-
positionManager
|
|
81038
|
-
}) => {
|
|
81039
|
-
return createCall({
|
|
81040
|
-
to: positionManager,
|
|
81041
|
-
data: SlipstreamDecreaseLiquidityCalldata(decreaseParams),
|
|
81042
|
-
value: 0n,
|
|
81043
|
-
operation: 0
|
|
81044
|
-
});
|
|
81045
|
-
};
|
|
81046
|
-
var SlipstreamBurnPositionCalldata = ({ tokenId }) => {
|
|
81047
|
-
return positionManagerInterface2.encodeFunctionData("burn", [[tokenId]]);
|
|
81048
|
-
};
|
|
81049
|
-
var slipstreamBurnPositionTrx = ({
|
|
81050
|
-
burnParams,
|
|
81051
|
-
positionManager
|
|
81052
|
-
}) => {
|
|
81053
|
-
return createCall({
|
|
81054
|
-
to: positionManager,
|
|
81055
|
-
data: SlipstreamBurnPositionCalldata(burnParams),
|
|
81056
|
-
value: 0n,
|
|
81057
|
-
operation: 0
|
|
81058
|
-
});
|
|
81059
|
-
};
|
|
81060
|
-
var SlipstreamCollectFeesCalldata = ({
|
|
81061
|
-
tokenId,
|
|
81062
|
-
recipient,
|
|
81063
|
-
amount0Max,
|
|
81064
|
-
amount1Max
|
|
81065
|
-
}) => {
|
|
81066
|
-
return positionManagerInterface2.encodeFunctionData("collect", [
|
|
81067
|
-
[tokenId, recipient, amount0Max, amount1Max]
|
|
81068
|
-
]);
|
|
81069
|
-
};
|
|
81070
|
-
var slipstreamCollectFeesTrx = ({
|
|
81071
|
-
collectParams,
|
|
81072
|
-
positionManager
|
|
81073
|
-
}) => {
|
|
81074
|
-
return createCall({
|
|
81075
|
-
to: positionManager,
|
|
81076
|
-
data: SlipstreamCollectFeesCalldata(collectParams),
|
|
81077
|
-
value: 0n,
|
|
81078
|
-
operation: 0
|
|
81079
|
-
});
|
|
81080
|
-
};
|
|
81081
|
-
var SlipstreamGuageDepositCalldata = ({ tokenId }) => {
|
|
81082
|
-
return guageInterface.encodeFunctionData("deposit", [tokenId]);
|
|
81083
|
-
};
|
|
81084
|
-
var slipstreamGuageDepositTrx = ({
|
|
81085
|
-
tokenId,
|
|
81086
|
-
guage
|
|
81087
|
-
}) => {
|
|
81088
|
-
return createCall({
|
|
81089
|
-
to: guage,
|
|
81090
|
-
data: SlipstreamGuageDepositCalldata({ tokenId }),
|
|
81091
|
-
value: 0n,
|
|
81092
|
-
operation: 0
|
|
81093
|
-
});
|
|
81094
|
-
};
|
|
81095
|
-
var SlipstreamGuageWithdrawCalldata = ({ tokenId }) => {
|
|
81096
|
-
return guageInterface.encodeFunctionData("withdraw", [tokenId]);
|
|
81097
|
-
};
|
|
81098
|
-
var slipstreamGuageWithdrawTrx = ({
|
|
81099
|
-
tokenId,
|
|
81100
|
-
guage
|
|
81101
|
-
}) => {
|
|
81102
|
-
return createCall({
|
|
81103
|
-
to: guage,
|
|
81104
|
-
data: SlipstreamGuageWithdrawCalldata({ tokenId }),
|
|
81105
|
-
value: 0n,
|
|
81106
|
-
operation: 0
|
|
81107
|
-
});
|
|
81108
|
-
};
|
|
81109
|
-
var SlipstreamGuageGetRewardCalldata = ({ tokenId }) => {
|
|
81110
|
-
return guageInterface.encodeFunctionData("getReward", [tokenId]);
|
|
81111
|
-
};
|
|
81112
|
-
var slipstreamGuageGetRewardTrx = ({
|
|
81113
|
-
tokenId,
|
|
81114
|
-
guage
|
|
81115
|
-
}) => {
|
|
81116
|
-
return createCall({
|
|
81117
|
-
to: guage,
|
|
81118
|
-
data: SlipstreamGuageGetRewardCalldata({ tokenId }),
|
|
81119
|
-
value: 0n,
|
|
81120
|
-
operation: 0
|
|
81121
|
-
});
|
|
81122
|
-
};
|
|
81123
|
-
// src/integrations/slipstream/guage.abi.ts
|
|
81124
|
-
var guage_abi_default = [
|
|
80970
|
+
// src/integrations/slipstream/gauge.abi.ts
|
|
80971
|
+
var gauge_abi_default = [
|
|
81125
80972
|
{
|
|
81126
80973
|
name: "ClaimFees",
|
|
81127
80974
|
type: "event",
|
|
@@ -81533,6 +81380,225 @@ var guage_abi_default = [
|
|
|
81533
81380
|
stateMutability: "nonpayable"
|
|
81534
81381
|
}
|
|
81535
81382
|
];
|
|
81383
|
+
|
|
81384
|
+
// src/integrations/slipstream/slipstream.ts
|
|
81385
|
+
var swapRouterInterface2 = new exports_ethers.utils.Interface(swap_router_abi_default2);
|
|
81386
|
+
var positionManagerInterface2 = new exports_ethers.utils.Interface(position_manager_abi_default3);
|
|
81387
|
+
var gaugeInterface = new exports_ethers.utils.Interface(gauge_abi_default);
|
|
81388
|
+
var RouterSwapExactInputSingleCalldata = ({
|
|
81389
|
+
tokenIn,
|
|
81390
|
+
tokenOut,
|
|
81391
|
+
tickSpacing,
|
|
81392
|
+
recipient,
|
|
81393
|
+
deadline,
|
|
81394
|
+
amountIn,
|
|
81395
|
+
amountOutMinimum,
|
|
81396
|
+
sqrtPriceLimitX96
|
|
81397
|
+
}) => {
|
|
81398
|
+
return swapRouterInterface2.encodeFunctionData("exactInputSingle", [
|
|
81399
|
+
[tokenIn, tokenOut, tickSpacing, recipient, deadline, amountIn, amountOutMinimum, sqrtPriceLimitX96]
|
|
81400
|
+
]);
|
|
81401
|
+
};
|
|
81402
|
+
var RouterSwapExactOutputSingleCalldata = ({
|
|
81403
|
+
tokenIn,
|
|
81404
|
+
tokenOut,
|
|
81405
|
+
tickSpacing,
|
|
81406
|
+
recipient,
|
|
81407
|
+
deadline,
|
|
81408
|
+
amountOut,
|
|
81409
|
+
amountInMaximum,
|
|
81410
|
+
sqrtPriceLimitX96
|
|
81411
|
+
}) => {
|
|
81412
|
+
return swapRouterInterface2.encodeFunctionData("exactOutputSingle", [
|
|
81413
|
+
[tokenIn, tokenOut, tickSpacing, recipient, deadline, amountOut, amountInMaximum, sqrtPriceLimitX96]
|
|
81414
|
+
]);
|
|
81415
|
+
};
|
|
81416
|
+
var slipstreamSwapExactInputSingleTrx = ({
|
|
81417
|
+
swapParams,
|
|
81418
|
+
swapRouter
|
|
81419
|
+
}) => {
|
|
81420
|
+
return createCall({
|
|
81421
|
+
to: swapRouter,
|
|
81422
|
+
data: RouterSwapExactInputSingleCalldata(swapParams),
|
|
81423
|
+
value: 0n,
|
|
81424
|
+
operation: 0
|
|
81425
|
+
});
|
|
81426
|
+
};
|
|
81427
|
+
var slipstreamSwapExactOutputSingleTrx = ({
|
|
81428
|
+
swapParams,
|
|
81429
|
+
swapRouter
|
|
81430
|
+
}) => {
|
|
81431
|
+
return createCall({
|
|
81432
|
+
to: swapRouter,
|
|
81433
|
+
data: RouterSwapExactOutputSingleCalldata(swapParams),
|
|
81434
|
+
value: 0n,
|
|
81435
|
+
operation: 0
|
|
81436
|
+
});
|
|
81437
|
+
};
|
|
81438
|
+
var SlipstreamMintPositionCalldata = ({
|
|
81439
|
+
token0,
|
|
81440
|
+
token1,
|
|
81441
|
+
tickSpacing,
|
|
81442
|
+
tickLower,
|
|
81443
|
+
tickUpper,
|
|
81444
|
+
amount0Desired,
|
|
81445
|
+
amount1Desired,
|
|
81446
|
+
amount0Min,
|
|
81447
|
+
amount1Min,
|
|
81448
|
+
recipient,
|
|
81449
|
+
deadline,
|
|
81450
|
+
sqrtPriceX96
|
|
81451
|
+
}) => {
|
|
81452
|
+
return positionManagerInterface2.encodeFunctionData("mint", [
|
|
81453
|
+
[
|
|
81454
|
+
token0,
|
|
81455
|
+
token1,
|
|
81456
|
+
tickSpacing,
|
|
81457
|
+
tickLower,
|
|
81458
|
+
tickUpper,
|
|
81459
|
+
amount0Desired,
|
|
81460
|
+
amount1Desired,
|
|
81461
|
+
amount0Min,
|
|
81462
|
+
amount1Min,
|
|
81463
|
+
recipient,
|
|
81464
|
+
deadline,
|
|
81465
|
+
sqrtPriceX96
|
|
81466
|
+
]
|
|
81467
|
+
]);
|
|
81468
|
+
};
|
|
81469
|
+
var slipstreamMintPositionTrx = ({
|
|
81470
|
+
mintParams,
|
|
81471
|
+
positionManager
|
|
81472
|
+
}) => {
|
|
81473
|
+
return createCall({
|
|
81474
|
+
to: positionManager,
|
|
81475
|
+
data: SlipstreamMintPositionCalldata(mintParams),
|
|
81476
|
+
value: 0n,
|
|
81477
|
+
operation: 0
|
|
81478
|
+
});
|
|
81479
|
+
};
|
|
81480
|
+
var SlipstreamIncreaseLiquidityCalldata = ({
|
|
81481
|
+
tokenId,
|
|
81482
|
+
amount0Desired,
|
|
81483
|
+
amount1Desired,
|
|
81484
|
+
amount0Min,
|
|
81485
|
+
amount1Min,
|
|
81486
|
+
deadline
|
|
81487
|
+
}) => {
|
|
81488
|
+
return positionManagerInterface2.encodeFunctionData("increaseLiquidity", [
|
|
81489
|
+
[tokenId, amount0Desired, amount1Desired, amount0Min, amount1Min, deadline]
|
|
81490
|
+
]);
|
|
81491
|
+
};
|
|
81492
|
+
var slipstreamIncreaseLiquidityTrx = ({
|
|
81493
|
+
increaseParams,
|
|
81494
|
+
positionManager
|
|
81495
|
+
}) => {
|
|
81496
|
+
return createCall({
|
|
81497
|
+
to: positionManager,
|
|
81498
|
+
data: SlipstreamIncreaseLiquidityCalldata(increaseParams),
|
|
81499
|
+
value: 0n,
|
|
81500
|
+
operation: 0
|
|
81501
|
+
});
|
|
81502
|
+
};
|
|
81503
|
+
var SlipstreamDecreaseLiquidityCalldata = ({
|
|
81504
|
+
tokenId,
|
|
81505
|
+
liquidity,
|
|
81506
|
+
amount0Min,
|
|
81507
|
+
amount1Min,
|
|
81508
|
+
deadline
|
|
81509
|
+
}) => {
|
|
81510
|
+
return positionManagerInterface2.encodeFunctionData("decreaseLiquidity", [
|
|
81511
|
+
[tokenId, liquidity, amount0Min, amount1Min, deadline]
|
|
81512
|
+
]);
|
|
81513
|
+
};
|
|
81514
|
+
var slipstreamDecreaseLiquidityTrx = ({
|
|
81515
|
+
decreaseParams,
|
|
81516
|
+
positionManager
|
|
81517
|
+
}) => {
|
|
81518
|
+
return createCall({
|
|
81519
|
+
to: positionManager,
|
|
81520
|
+
data: SlipstreamDecreaseLiquidityCalldata(decreaseParams),
|
|
81521
|
+
value: 0n,
|
|
81522
|
+
operation: 0
|
|
81523
|
+
});
|
|
81524
|
+
};
|
|
81525
|
+
var SlipstreamBurnPositionCalldata = ({ tokenId }) => {
|
|
81526
|
+
return positionManagerInterface2.encodeFunctionData("burn", [[tokenId]]);
|
|
81527
|
+
};
|
|
81528
|
+
var slipstreamBurnPositionTrx = ({
|
|
81529
|
+
burnParams,
|
|
81530
|
+
positionManager
|
|
81531
|
+
}) => {
|
|
81532
|
+
return createCall({
|
|
81533
|
+
to: positionManager,
|
|
81534
|
+
data: SlipstreamBurnPositionCalldata(burnParams),
|
|
81535
|
+
value: 0n,
|
|
81536
|
+
operation: 0
|
|
81537
|
+
});
|
|
81538
|
+
};
|
|
81539
|
+
var SlipstreamCollectFeesCalldata = ({
|
|
81540
|
+
tokenId,
|
|
81541
|
+
recipient,
|
|
81542
|
+
amount0Max,
|
|
81543
|
+
amount1Max
|
|
81544
|
+
}) => {
|
|
81545
|
+
return positionManagerInterface2.encodeFunctionData("collect", [
|
|
81546
|
+
[tokenId, recipient, amount0Max, amount1Max]
|
|
81547
|
+
]);
|
|
81548
|
+
};
|
|
81549
|
+
var slipstreamCollectFeesTrx = ({
|
|
81550
|
+
collectParams,
|
|
81551
|
+
positionManager
|
|
81552
|
+
}) => {
|
|
81553
|
+
return createCall({
|
|
81554
|
+
to: positionManager,
|
|
81555
|
+
data: SlipstreamCollectFeesCalldata(collectParams),
|
|
81556
|
+
value: 0n,
|
|
81557
|
+
operation: 0
|
|
81558
|
+
});
|
|
81559
|
+
};
|
|
81560
|
+
var SlipstreamGaugeDepositCalldata = ({ tokenId }) => {
|
|
81561
|
+
return gaugeInterface.encodeFunctionData("deposit", [tokenId]);
|
|
81562
|
+
};
|
|
81563
|
+
var slipstreamGaugeDepositTrx = ({
|
|
81564
|
+
tokenId,
|
|
81565
|
+
gauge
|
|
81566
|
+
}) => {
|
|
81567
|
+
return createCall({
|
|
81568
|
+
to: gauge,
|
|
81569
|
+
data: SlipstreamGaugeDepositCalldata({ tokenId }),
|
|
81570
|
+
value: 0n,
|
|
81571
|
+
operation: 0
|
|
81572
|
+
});
|
|
81573
|
+
};
|
|
81574
|
+
var SlipstreamGaugeWithdrawCalldata = ({ tokenId }) => {
|
|
81575
|
+
return gaugeInterface.encodeFunctionData("withdraw", [tokenId]);
|
|
81576
|
+
};
|
|
81577
|
+
var slipstreamGaugeWithdrawTrx = ({
|
|
81578
|
+
tokenId,
|
|
81579
|
+
gauge
|
|
81580
|
+
}) => {
|
|
81581
|
+
return createCall({
|
|
81582
|
+
to: gauge,
|
|
81583
|
+
data: SlipstreamGaugeWithdrawCalldata({ tokenId }),
|
|
81584
|
+
value: 0n,
|
|
81585
|
+
operation: 0
|
|
81586
|
+
});
|
|
81587
|
+
};
|
|
81588
|
+
var SlipstreamGaugeGetRewardCalldata = ({ tokenId }) => {
|
|
81589
|
+
return gaugeInterface.encodeFunctionData("getReward", [tokenId]);
|
|
81590
|
+
};
|
|
81591
|
+
var slipstreamGaugeGetRewardTrx = ({
|
|
81592
|
+
tokenId,
|
|
81593
|
+
gauge
|
|
81594
|
+
}) => {
|
|
81595
|
+
return createCall({
|
|
81596
|
+
to: gauge,
|
|
81597
|
+
data: SlipstreamGaugeGetRewardCalldata({ tokenId }),
|
|
81598
|
+
value: 0n,
|
|
81599
|
+
operation: 0
|
|
81600
|
+
});
|
|
81601
|
+
};
|
|
81536
81602
|
// src/integrations/morphoVault/morpho.vault.abi.ts
|
|
81537
81603
|
var morpho_vault_abi_default = [
|
|
81538
81604
|
{
|
|
@@ -85243,35 +85309,52 @@ var sendOFTTrx = ({
|
|
|
85243
85309
|
value: args.nativeFee
|
|
85244
85310
|
});
|
|
85245
85311
|
};
|
|
85246
|
-
// src/integrations/cctp/
|
|
85247
|
-
var
|
|
85312
|
+
// src/integrations/cctp/token.messenger.v2.abi.ts
|
|
85313
|
+
var token_messenger_v2_abi_default = [
|
|
85248
85314
|
{
|
|
85249
85315
|
inputs: [
|
|
85250
|
-
{ internalType: "
|
|
85251
|
-
{ internalType: "uint32", name: "
|
|
85316
|
+
{ internalType: "address", name: "_messageTransmitter", type: "address" },
|
|
85317
|
+
{ internalType: "uint32", name: "_messageBodyVersion", type: "uint32" }
|
|
85252
85318
|
],
|
|
85253
85319
|
stateMutability: "nonpayable",
|
|
85254
85320
|
type: "constructor"
|
|
85255
85321
|
},
|
|
85256
85322
|
{
|
|
85257
85323
|
anonymous: false,
|
|
85258
|
-
inputs: [{ indexed: true, internalType: "address", name: "
|
|
85259
|
-
name: "
|
|
85324
|
+
inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
|
|
85325
|
+
name: "Denylisted",
|
|
85260
85326
|
type: "event"
|
|
85261
85327
|
},
|
|
85262
85328
|
{
|
|
85263
85329
|
anonymous: false,
|
|
85264
|
-
inputs: [
|
|
85265
|
-
|
|
85330
|
+
inputs: [
|
|
85331
|
+
{ indexed: true, internalType: "address", name: "oldDenylister", type: "address" },
|
|
85332
|
+
{ indexed: true, internalType: "address", name: "newDenylister", type: "address" }
|
|
85333
|
+
],
|
|
85334
|
+
name: "DenylisterChanged",
|
|
85266
85335
|
type: "event"
|
|
85267
85336
|
},
|
|
85268
85337
|
{
|
|
85269
85338
|
anonymous: false,
|
|
85270
85339
|
inputs: [
|
|
85271
|
-
{ indexed: true, internalType: "address", name: "
|
|
85272
|
-
{ indexed:
|
|
85340
|
+
{ indexed: true, internalType: "address", name: "burnToken", type: "address" },
|
|
85341
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
|
|
85342
|
+
{ indexed: true, internalType: "address", name: "depositor", type: "address" },
|
|
85343
|
+
{ indexed: false, internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85344
|
+
{ indexed: false, internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85345
|
+
{ indexed: false, internalType: "bytes32", name: "destinationTokenMessenger", type: "bytes32" },
|
|
85346
|
+
{ indexed: false, internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85347
|
+
{ indexed: false, internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85348
|
+
{ indexed: true, internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85349
|
+
{ indexed: false, internalType: "bytes", name: "hookData", type: "bytes" }
|
|
85273
85350
|
],
|
|
85274
|
-
name: "
|
|
85351
|
+
name: "DepositForBurn",
|
|
85352
|
+
type: "event"
|
|
85353
|
+
},
|
|
85354
|
+
{
|
|
85355
|
+
anonymous: false,
|
|
85356
|
+
inputs: [{ indexed: false, internalType: "address", name: "feeRecipient", type: "address" }],
|
|
85357
|
+
name: "FeeRecipientSet",
|
|
85275
85358
|
type: "event"
|
|
85276
85359
|
},
|
|
85277
85360
|
{
|
|
@@ -85282,27 +85365,25 @@ var message_transmitter_v2_abi_default = [
|
|
|
85282
85365
|
},
|
|
85283
85366
|
{
|
|
85284
85367
|
anonymous: false,
|
|
85285
|
-
inputs: [{ indexed: false, internalType: "
|
|
85286
|
-
name: "
|
|
85368
|
+
inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
|
|
85369
|
+
name: "LocalMinterAdded",
|
|
85287
85370
|
type: "event"
|
|
85288
85371
|
},
|
|
85289
85372
|
{
|
|
85290
85373
|
anonymous: false,
|
|
85291
|
-
inputs: [
|
|
85292
|
-
|
|
85293
|
-
{ indexed: false, internalType: "uint32", name: "sourceDomain", type: "uint32" },
|
|
85294
|
-
{ indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" },
|
|
85295
|
-
{ indexed: false, internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85296
|
-
{ indexed: true, internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
85297
|
-
{ indexed: false, internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85298
|
-
],
|
|
85299
|
-
name: "MessageReceived",
|
|
85374
|
+
inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
|
|
85375
|
+
name: "LocalMinterRemoved",
|
|
85300
85376
|
type: "event"
|
|
85301
85377
|
},
|
|
85302
85378
|
{
|
|
85303
85379
|
anonymous: false,
|
|
85304
|
-
inputs: [
|
|
85305
|
-
|
|
85380
|
+
inputs: [
|
|
85381
|
+
{ indexed: true, internalType: "address", name: "mintRecipient", type: "address" },
|
|
85382
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
|
|
85383
|
+
{ indexed: true, internalType: "address", name: "mintToken", type: "address" },
|
|
85384
|
+
{ indexed: false, internalType: "uint256", name: "feeCollected", type: "uint256" }
|
|
85385
|
+
],
|
|
85386
|
+
name: "MintAndWithdraw",
|
|
85306
85387
|
type: "event"
|
|
85307
85388
|
},
|
|
85308
85389
|
{
|
|
@@ -85323,11 +85404,22 @@ var message_transmitter_v2_abi_default = [
|
|
|
85323
85404
|
name: "OwnershipTransferred",
|
|
85324
85405
|
type: "event"
|
|
85325
85406
|
},
|
|
85326
|
-
{ anonymous: false, inputs: [], name: "Pause", type: "event" },
|
|
85327
85407
|
{
|
|
85328
85408
|
anonymous: false,
|
|
85329
|
-
inputs: [
|
|
85330
|
-
|
|
85409
|
+
inputs: [
|
|
85410
|
+
{ indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
|
|
85411
|
+
{ indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
85412
|
+
],
|
|
85413
|
+
name: "RemoteTokenMessengerAdded",
|
|
85414
|
+
type: "event"
|
|
85415
|
+
},
|
|
85416
|
+
{
|
|
85417
|
+
anonymous: false,
|
|
85418
|
+
inputs: [
|
|
85419
|
+
{ indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
|
|
85420
|
+
{ indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
85421
|
+
],
|
|
85422
|
+
name: "RemoteTokenMessengerRemoved",
|
|
85331
85423
|
type: "event"
|
|
85332
85424
|
},
|
|
85333
85425
|
{
|
|
@@ -85338,66 +85430,113 @@ var message_transmitter_v2_abi_default = [
|
|
|
85338
85430
|
},
|
|
85339
85431
|
{
|
|
85340
85432
|
anonymous: false,
|
|
85433
|
+
inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
|
|
85434
|
+
name: "UnDenylisted",
|
|
85435
|
+
type: "event"
|
|
85436
|
+
},
|
|
85437
|
+
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85438
|
+
{
|
|
85439
|
+
inputs: [{ internalType: "address", name: "newLocalMinter", type: "address" }],
|
|
85440
|
+
name: "addLocalMinter",
|
|
85441
|
+
outputs: [],
|
|
85442
|
+
stateMutability: "nonpayable",
|
|
85443
|
+
type: "function"
|
|
85444
|
+
},
|
|
85445
|
+
{
|
|
85341
85446
|
inputs: [
|
|
85342
|
-
{
|
|
85343
|
-
{
|
|
85447
|
+
{ internalType: "uint32", name: "domain", type: "uint32" },
|
|
85448
|
+
{ internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
85344
85449
|
],
|
|
85345
|
-
name: "
|
|
85346
|
-
|
|
85450
|
+
name: "addRemoteTokenMessenger",
|
|
85451
|
+
outputs: [],
|
|
85452
|
+
stateMutability: "nonpayable",
|
|
85453
|
+
type: "function"
|
|
85347
85454
|
},
|
|
85348
|
-
{ anonymous: false, inputs: [], name: "Unpause", type: "event" },
|
|
85349
85455
|
{
|
|
85350
|
-
inputs: [],
|
|
85351
|
-
name: "
|
|
85352
|
-
outputs: [
|
|
85353
|
-
stateMutability: "
|
|
85456
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
85457
|
+
name: "denylist",
|
|
85458
|
+
outputs: [],
|
|
85459
|
+
stateMutability: "nonpayable",
|
|
85354
85460
|
type: "function"
|
|
85355
85461
|
},
|
|
85356
|
-
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85357
85462
|
{
|
|
85358
85463
|
inputs: [],
|
|
85359
|
-
name: "
|
|
85464
|
+
name: "denylister",
|
|
85360
85465
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85361
85466
|
stateMutability: "view",
|
|
85362
85467
|
type: "function"
|
|
85363
85468
|
},
|
|
85364
85469
|
{
|
|
85365
|
-
inputs: [
|
|
85366
|
-
|
|
85470
|
+
inputs: [
|
|
85471
|
+
{ internalType: "uint256", name: "amount", type: "uint256" },
|
|
85472
|
+
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85473
|
+
{ internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85474
|
+
{ internalType: "address", name: "burnToken", type: "address" },
|
|
85475
|
+
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85476
|
+
{ internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85477
|
+
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" }
|
|
85478
|
+
],
|
|
85479
|
+
name: "depositForBurn",
|
|
85367
85480
|
outputs: [],
|
|
85368
85481
|
stateMutability: "nonpayable",
|
|
85369
85482
|
type: "function"
|
|
85370
85483
|
},
|
|
85371
85484
|
{
|
|
85372
|
-
inputs: [
|
|
85373
|
-
|
|
85485
|
+
inputs: [
|
|
85486
|
+
{ internalType: "uint256", name: "amount", type: "uint256" },
|
|
85487
|
+
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85488
|
+
{ internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85489
|
+
{ internalType: "address", name: "burnToken", type: "address" },
|
|
85490
|
+
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85491
|
+
{ internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85492
|
+
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85493
|
+
{ internalType: "bytes", name: "hookData", type: "bytes" }
|
|
85494
|
+
],
|
|
85495
|
+
name: "depositForBurnWithHook",
|
|
85374
85496
|
outputs: [],
|
|
85375
85497
|
stateMutability: "nonpayable",
|
|
85376
85498
|
type: "function"
|
|
85377
85499
|
},
|
|
85378
85500
|
{
|
|
85379
|
-
inputs: [
|
|
85380
|
-
name: "
|
|
85501
|
+
inputs: [],
|
|
85502
|
+
name: "feeRecipient",
|
|
85381
85503
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85382
85504
|
stateMutability: "view",
|
|
85383
85505
|
type: "function"
|
|
85384
85506
|
},
|
|
85385
85507
|
{
|
|
85386
|
-
inputs: [
|
|
85387
|
-
|
|
85388
|
-
|
|
85389
|
-
|
|
85508
|
+
inputs: [
|
|
85509
|
+
{ internalType: "uint32", name: "remoteDomain", type: "uint32" },
|
|
85510
|
+
{ internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85511
|
+
{ internalType: "uint32", name: "", type: "uint32" },
|
|
85512
|
+
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85513
|
+
],
|
|
85514
|
+
name: "handleReceiveFinalizedMessage",
|
|
85515
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85516
|
+
stateMutability: "nonpayable",
|
|
85517
|
+
type: "function"
|
|
85518
|
+
},
|
|
85519
|
+
{
|
|
85520
|
+
inputs: [
|
|
85521
|
+
{ internalType: "uint32", name: "remoteDomain", type: "uint32" },
|
|
85522
|
+
{ internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85523
|
+
{ internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
85524
|
+
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85525
|
+
],
|
|
85526
|
+
name: "handleReceiveUnfinalizedMessage",
|
|
85527
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85528
|
+
stateMutability: "nonpayable",
|
|
85390
85529
|
type: "function"
|
|
85391
85530
|
},
|
|
85392
85531
|
{
|
|
85393
85532
|
inputs: [
|
|
85394
85533
|
{ internalType: "address", name: "owner_", type: "address" },
|
|
85395
|
-
{ internalType: "address", name: "pauser_", type: "address" },
|
|
85396
85534
|
{ internalType: "address", name: "rescuer_", type: "address" },
|
|
85397
|
-
{ internalType: "address", name: "
|
|
85398
|
-
{ internalType: "address
|
|
85399
|
-
{ internalType: "
|
|
85400
|
-
{ internalType: "
|
|
85535
|
+
{ internalType: "address", name: "feeRecipient_", type: "address" },
|
|
85536
|
+
{ internalType: "address", name: "denylister_", type: "address" },
|
|
85537
|
+
{ internalType: "address", name: "tokenMinter_", type: "address" },
|
|
85538
|
+
{ internalType: "uint32[]", name: "remoteDomains_", type: "uint32[]" },
|
|
85539
|
+
{ internalType: "bytes32[]", name: "remoteTokenMessengers_", type: "bytes32[]" }
|
|
85401
85540
|
],
|
|
85402
85541
|
name: "initialize",
|
|
85403
85542
|
outputs: [],
|
|
@@ -85412,62 +85551,59 @@ var message_transmitter_v2_abi_default = [
|
|
|
85412
85551
|
type: "function"
|
|
85413
85552
|
},
|
|
85414
85553
|
{
|
|
85415
|
-
inputs: [{ internalType: "address", name: "
|
|
85416
|
-
name: "
|
|
85554
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
85555
|
+
name: "isDenylisted",
|
|
85417
85556
|
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85418
85557
|
stateMutability: "view",
|
|
85419
85558
|
type: "function"
|
|
85420
85559
|
},
|
|
85421
85560
|
{
|
|
85422
85561
|
inputs: [],
|
|
85423
|
-
name: "
|
|
85424
|
-
outputs: [{ internalType: "
|
|
85562
|
+
name: "localMessageTransmitter",
|
|
85563
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85425
85564
|
stateMutability: "view",
|
|
85426
85565
|
type: "function"
|
|
85427
85566
|
},
|
|
85428
85567
|
{
|
|
85429
85568
|
inputs: [],
|
|
85430
|
-
name: "
|
|
85431
|
-
outputs: [{ internalType: "
|
|
85569
|
+
name: "localMinter",
|
|
85570
|
+
outputs: [{ internalType: "contract ITokenMinterV2", name: "", type: "address" }],
|
|
85432
85571
|
stateMutability: "view",
|
|
85433
85572
|
type: "function"
|
|
85434
85573
|
},
|
|
85435
85574
|
{
|
|
85436
85575
|
inputs: [],
|
|
85437
|
-
name: "
|
|
85438
|
-
outputs: [{ internalType: "
|
|
85576
|
+
name: "messageBodyVersion",
|
|
85577
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85439
85578
|
stateMutability: "view",
|
|
85440
85579
|
type: "function"
|
|
85441
85580
|
},
|
|
85442
|
-
{ inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85443
85581
|
{
|
|
85444
85582
|
inputs: [],
|
|
85445
|
-
name: "
|
|
85446
|
-
outputs: [{ internalType: "
|
|
85583
|
+
name: "owner",
|
|
85584
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85447
85585
|
stateMutability: "view",
|
|
85448
85586
|
type: "function"
|
|
85449
85587
|
},
|
|
85450
85588
|
{
|
|
85451
85589
|
inputs: [],
|
|
85452
|
-
name: "
|
|
85590
|
+
name: "pendingOwner",
|
|
85453
85591
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85454
85592
|
stateMutability: "view",
|
|
85455
85593
|
type: "function"
|
|
85456
85594
|
},
|
|
85457
85595
|
{
|
|
85458
|
-
inputs: [],
|
|
85459
|
-
name: "
|
|
85460
|
-
outputs: [{ internalType: "
|
|
85596
|
+
inputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85597
|
+
name: "remoteTokenMessengers",
|
|
85598
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
85461
85599
|
stateMutability: "view",
|
|
85462
85600
|
type: "function"
|
|
85463
85601
|
},
|
|
85602
|
+
{ inputs: [], name: "removeLocalMinter", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85464
85603
|
{
|
|
85465
|
-
inputs: [
|
|
85466
|
-
|
|
85467
|
-
|
|
85468
|
-
],
|
|
85469
|
-
name: "receiveMessage",
|
|
85470
|
-
outputs: [{ internalType: "bool", name: "success", type: "bool" }],
|
|
85604
|
+
inputs: [{ internalType: "uint32", name: "domain", type: "uint32" }],
|
|
85605
|
+
name: "removeRemoteTokenMessenger",
|
|
85606
|
+
outputs: [],
|
|
85471
85607
|
stateMutability: "nonpayable",
|
|
85472
85608
|
type: "function"
|
|
85473
85609
|
},
|
|
@@ -85490,39 +85626,12 @@ var message_transmitter_v2_abi_default = [
|
|
|
85490
85626
|
type: "function"
|
|
85491
85627
|
},
|
|
85492
85628
|
{
|
|
85493
|
-
inputs: [
|
|
85494
|
-
|
|
85495
|
-
{ internalType: "bytes32", name: "recipient", type: "bytes32" },
|
|
85496
|
-
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85497
|
-
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85498
|
-
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85499
|
-
],
|
|
85500
|
-
name: "sendMessage",
|
|
85501
|
-
outputs: [],
|
|
85502
|
-
stateMutability: "nonpayable",
|
|
85503
|
-
type: "function"
|
|
85504
|
-
},
|
|
85505
|
-
{
|
|
85506
|
-
inputs: [{ internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
85507
|
-
name: "setMaxMessageBodySize",
|
|
85508
|
-
outputs: [],
|
|
85509
|
-
stateMutability: "nonpayable",
|
|
85510
|
-
type: "function"
|
|
85511
|
-
},
|
|
85512
|
-
{
|
|
85513
|
-
inputs: [{ internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }],
|
|
85514
|
-
name: "setSignatureThreshold",
|
|
85629
|
+
inputs: [{ internalType: "address", name: "_feeRecipient", type: "address" }],
|
|
85630
|
+
name: "setFeeRecipient",
|
|
85515
85631
|
outputs: [],
|
|
85516
85632
|
stateMutability: "nonpayable",
|
|
85517
85633
|
type: "function"
|
|
85518
85634
|
},
|
|
85519
|
-
{
|
|
85520
|
-
inputs: [],
|
|
85521
|
-
name: "signatureThreshold",
|
|
85522
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85523
|
-
stateMutability: "view",
|
|
85524
|
-
type: "function"
|
|
85525
|
-
},
|
|
85526
85635
|
{
|
|
85527
85636
|
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
85528
85637
|
name: "transferOwnership",
|
|
@@ -85530,17 +85639,16 @@ var message_transmitter_v2_abi_default = [
|
|
|
85530
85639
|
stateMutability: "nonpayable",
|
|
85531
85640
|
type: "function"
|
|
85532
85641
|
},
|
|
85533
|
-
{ inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85534
85642
|
{
|
|
85535
|
-
inputs: [{ internalType: "address", name: "
|
|
85536
|
-
name: "
|
|
85643
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
85644
|
+
name: "unDenylist",
|
|
85537
85645
|
outputs: [],
|
|
85538
85646
|
stateMutability: "nonpayable",
|
|
85539
85647
|
type: "function"
|
|
85540
85648
|
},
|
|
85541
85649
|
{
|
|
85542
|
-
inputs: [{ internalType: "address", name: "
|
|
85543
|
-
name: "
|
|
85650
|
+
inputs: [{ internalType: "address", name: "newDenylister", type: "address" }],
|
|
85651
|
+
name: "updateDenylister",
|
|
85544
85652
|
outputs: [],
|
|
85545
85653
|
stateMutability: "nonpayable",
|
|
85546
85654
|
type: "function"
|
|
@@ -85551,69 +85659,37 @@ var message_transmitter_v2_abi_default = [
|
|
|
85551
85659
|
outputs: [],
|
|
85552
85660
|
stateMutability: "nonpayable",
|
|
85553
85661
|
type: "function"
|
|
85554
|
-
},
|
|
85555
|
-
{
|
|
85556
|
-
inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
85557
|
-
name: "usedNonces",
|
|
85558
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85559
|
-
stateMutability: "view",
|
|
85560
|
-
type: "function"
|
|
85561
|
-
},
|
|
85562
|
-
{
|
|
85563
|
-
inputs: [],
|
|
85564
|
-
name: "version",
|
|
85565
|
-
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85566
|
-
stateMutability: "view",
|
|
85567
|
-
type: "function"
|
|
85568
85662
|
}
|
|
85569
85663
|
];
|
|
85570
|
-
|
|
85571
|
-
|
|
85572
|
-
var token_messenger_v2_abi_default = [
|
|
85664
|
+
// src/integrations/cctp/message.transmitter.v2.abi.ts
|
|
85665
|
+
var message_transmitter_v2_abi_default = [
|
|
85573
85666
|
{
|
|
85574
85667
|
inputs: [
|
|
85575
|
-
{ internalType: "
|
|
85576
|
-
{ internalType: "uint32", name: "
|
|
85668
|
+
{ internalType: "uint32", name: "_localDomain", type: "uint32" },
|
|
85669
|
+
{ internalType: "uint32", name: "_version", type: "uint32" }
|
|
85577
85670
|
],
|
|
85578
85671
|
stateMutability: "nonpayable",
|
|
85579
85672
|
type: "constructor"
|
|
85580
85673
|
},
|
|
85581
85674
|
{
|
|
85582
85675
|
anonymous: false,
|
|
85583
|
-
inputs: [{ indexed: true, internalType: "address", name: "
|
|
85584
|
-
name: "
|
|
85676
|
+
inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
|
|
85677
|
+
name: "AttesterDisabled",
|
|
85585
85678
|
type: "event"
|
|
85586
85679
|
},
|
|
85587
85680
|
{
|
|
85588
85681
|
anonymous: false,
|
|
85589
|
-
inputs: [
|
|
85590
|
-
|
|
85591
|
-
{ indexed: true, internalType: "address", name: "newDenylister", type: "address" }
|
|
85592
|
-
],
|
|
85593
|
-
name: "DenylisterChanged",
|
|
85682
|
+
inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
|
|
85683
|
+
name: "AttesterEnabled",
|
|
85594
85684
|
type: "event"
|
|
85595
85685
|
},
|
|
85596
85686
|
{
|
|
85597
85687
|
anonymous: false,
|
|
85598
85688
|
inputs: [
|
|
85599
|
-
{ indexed: true, internalType: "address", name: "
|
|
85600
|
-
{ indexed:
|
|
85601
|
-
{ indexed: true, internalType: "address", name: "depositor", type: "address" },
|
|
85602
|
-
{ indexed: false, internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85603
|
-
{ indexed: false, internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85604
|
-
{ indexed: false, internalType: "bytes32", name: "destinationTokenMessenger", type: "bytes32" },
|
|
85605
|
-
{ indexed: false, internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85606
|
-
{ indexed: false, internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85607
|
-
{ indexed: true, internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85608
|
-
{ indexed: false, internalType: "bytes", name: "hookData", type: "bytes" }
|
|
85689
|
+
{ indexed: true, internalType: "address", name: "previousAttesterManager", type: "address" },
|
|
85690
|
+
{ indexed: true, internalType: "address", name: "newAttesterManager", type: "address" }
|
|
85609
85691
|
],
|
|
85610
|
-
name: "
|
|
85611
|
-
type: "event"
|
|
85612
|
-
},
|
|
85613
|
-
{
|
|
85614
|
-
anonymous: false,
|
|
85615
|
-
inputs: [{ indexed: false, internalType: "address", name: "feeRecipient", type: "address" }],
|
|
85616
|
-
name: "FeeRecipientSet",
|
|
85692
|
+
name: "AttesterManagerUpdated",
|
|
85617
85693
|
type: "event"
|
|
85618
85694
|
},
|
|
85619
85695
|
{
|
|
@@ -85624,25 +85700,27 @@ var token_messenger_v2_abi_default = [
|
|
|
85624
85700
|
},
|
|
85625
85701
|
{
|
|
85626
85702
|
anonymous: false,
|
|
85627
|
-
inputs: [{ indexed: false, internalType: "
|
|
85628
|
-
name: "
|
|
85703
|
+
inputs: [{ indexed: false, internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
85704
|
+
name: "MaxMessageBodySizeUpdated",
|
|
85629
85705
|
type: "event"
|
|
85630
85706
|
},
|
|
85631
85707
|
{
|
|
85632
85708
|
anonymous: false,
|
|
85633
|
-
inputs: [
|
|
85634
|
-
|
|
85709
|
+
inputs: [
|
|
85710
|
+
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
85711
|
+
{ indexed: false, internalType: "uint32", name: "sourceDomain", type: "uint32" },
|
|
85712
|
+
{ indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" },
|
|
85713
|
+
{ indexed: false, internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85714
|
+
{ indexed: true, internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
85715
|
+
{ indexed: false, internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85716
|
+
],
|
|
85717
|
+
name: "MessageReceived",
|
|
85635
85718
|
type: "event"
|
|
85636
85719
|
},
|
|
85637
85720
|
{
|
|
85638
85721
|
anonymous: false,
|
|
85639
|
-
inputs: [
|
|
85640
|
-
|
|
85641
|
-
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
|
|
85642
|
-
{ indexed: true, internalType: "address", name: "mintToken", type: "address" },
|
|
85643
|
-
{ indexed: false, internalType: "uint256", name: "feeCollected", type: "uint256" }
|
|
85644
|
-
],
|
|
85645
|
-
name: "MintAndWithdraw",
|
|
85722
|
+
inputs: [{ indexed: false, internalType: "bytes", name: "message", type: "bytes" }],
|
|
85723
|
+
name: "MessageSent",
|
|
85646
85724
|
type: "event"
|
|
85647
85725
|
},
|
|
85648
85726
|
{
|
|
@@ -85663,22 +85741,11 @@ var token_messenger_v2_abi_default = [
|
|
|
85663
85741
|
name: "OwnershipTransferred",
|
|
85664
85742
|
type: "event"
|
|
85665
85743
|
},
|
|
85744
|
+
{ anonymous: false, inputs: [], name: "Pause", type: "event" },
|
|
85666
85745
|
{
|
|
85667
85746
|
anonymous: false,
|
|
85668
|
-
inputs: [
|
|
85669
|
-
|
|
85670
|
-
{ indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
85671
|
-
],
|
|
85672
|
-
name: "RemoteTokenMessengerAdded",
|
|
85673
|
-
type: "event"
|
|
85674
|
-
},
|
|
85675
|
-
{
|
|
85676
|
-
anonymous: false,
|
|
85677
|
-
inputs: [
|
|
85678
|
-
{ indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
|
|
85679
|
-
{ indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
85680
|
-
],
|
|
85681
|
-
name: "RemoteTokenMessengerRemoved",
|
|
85747
|
+
inputs: [{ indexed: true, internalType: "address", name: "newAddress", type: "address" }],
|
|
85748
|
+
name: "PauserChanged",
|
|
85682
85749
|
type: "event"
|
|
85683
85750
|
},
|
|
85684
85751
|
{
|
|
@@ -85689,113 +85756,66 @@ var token_messenger_v2_abi_default = [
|
|
|
85689
85756
|
},
|
|
85690
85757
|
{
|
|
85691
85758
|
anonymous: false,
|
|
85692
|
-
inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
|
|
85693
|
-
name: "UnDenylisted",
|
|
85694
|
-
type: "event"
|
|
85695
|
-
},
|
|
85696
|
-
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85697
|
-
{
|
|
85698
|
-
inputs: [{ internalType: "address", name: "newLocalMinter", type: "address" }],
|
|
85699
|
-
name: "addLocalMinter",
|
|
85700
|
-
outputs: [],
|
|
85701
|
-
stateMutability: "nonpayable",
|
|
85702
|
-
type: "function"
|
|
85703
|
-
},
|
|
85704
|
-
{
|
|
85705
85759
|
inputs: [
|
|
85706
|
-
{ internalType: "
|
|
85707
|
-
{ internalType: "
|
|
85760
|
+
{ indexed: false, internalType: "uint256", name: "oldSignatureThreshold", type: "uint256" },
|
|
85761
|
+
{ indexed: false, internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }
|
|
85708
85762
|
],
|
|
85709
|
-
name: "
|
|
85710
|
-
|
|
85711
|
-
stateMutability: "nonpayable",
|
|
85712
|
-
type: "function"
|
|
85763
|
+
name: "SignatureThresholdUpdated",
|
|
85764
|
+
type: "event"
|
|
85713
85765
|
},
|
|
85766
|
+
{ anonymous: false, inputs: [], name: "Unpause", type: "event" },
|
|
85714
85767
|
{
|
|
85715
|
-
inputs: [
|
|
85716
|
-
name: "
|
|
85717
|
-
outputs: [],
|
|
85718
|
-
stateMutability: "
|
|
85768
|
+
inputs: [],
|
|
85769
|
+
name: "NONCE_USED",
|
|
85770
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85771
|
+
stateMutability: "view",
|
|
85719
85772
|
type: "function"
|
|
85720
85773
|
},
|
|
85774
|
+
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85721
85775
|
{
|
|
85722
85776
|
inputs: [],
|
|
85723
|
-
name: "
|
|
85777
|
+
name: "attesterManager",
|
|
85724
85778
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85725
85779
|
stateMutability: "view",
|
|
85726
85780
|
type: "function"
|
|
85727
85781
|
},
|
|
85728
85782
|
{
|
|
85729
|
-
inputs: [
|
|
85730
|
-
|
|
85731
|
-
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85732
|
-
{ internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85733
|
-
{ internalType: "address", name: "burnToken", type: "address" },
|
|
85734
|
-
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85735
|
-
{ internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85736
|
-
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" }
|
|
85737
|
-
],
|
|
85738
|
-
name: "depositForBurn",
|
|
85783
|
+
inputs: [{ internalType: "address", name: "attester", type: "address" }],
|
|
85784
|
+
name: "disableAttester",
|
|
85739
85785
|
outputs: [],
|
|
85740
85786
|
stateMutability: "nonpayable",
|
|
85741
85787
|
type: "function"
|
|
85742
85788
|
},
|
|
85743
85789
|
{
|
|
85744
|
-
inputs: [
|
|
85745
|
-
|
|
85746
|
-
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85747
|
-
{ internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
85748
|
-
{ internalType: "address", name: "burnToken", type: "address" },
|
|
85749
|
-
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85750
|
-
{ internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
85751
|
-
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85752
|
-
{ internalType: "bytes", name: "hookData", type: "bytes" }
|
|
85753
|
-
],
|
|
85754
|
-
name: "depositForBurnWithHook",
|
|
85790
|
+
inputs: [{ internalType: "address", name: "newAttester", type: "address" }],
|
|
85791
|
+
name: "enableAttester",
|
|
85755
85792
|
outputs: [],
|
|
85756
85793
|
stateMutability: "nonpayable",
|
|
85757
85794
|
type: "function"
|
|
85758
85795
|
},
|
|
85759
85796
|
{
|
|
85760
|
-
inputs: [],
|
|
85761
|
-
name: "
|
|
85797
|
+
inputs: [{ internalType: "uint256", name: "index", type: "uint256" }],
|
|
85798
|
+
name: "getEnabledAttester",
|
|
85762
85799
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85763
85800
|
stateMutability: "view",
|
|
85764
85801
|
type: "function"
|
|
85765
85802
|
},
|
|
85766
85803
|
{
|
|
85767
|
-
inputs: [
|
|
85768
|
-
|
|
85769
|
-
|
|
85770
|
-
|
|
85771
|
-
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85772
|
-
],
|
|
85773
|
-
name: "handleReceiveFinalizedMessage",
|
|
85774
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85775
|
-
stateMutability: "nonpayable",
|
|
85776
|
-
type: "function"
|
|
85777
|
-
},
|
|
85778
|
-
{
|
|
85779
|
-
inputs: [
|
|
85780
|
-
{ internalType: "uint32", name: "remoteDomain", type: "uint32" },
|
|
85781
|
-
{ internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
85782
|
-
{ internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
85783
|
-
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85784
|
-
],
|
|
85785
|
-
name: "handleReceiveUnfinalizedMessage",
|
|
85786
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85787
|
-
stateMutability: "nonpayable",
|
|
85804
|
+
inputs: [],
|
|
85805
|
+
name: "getNumEnabledAttesters",
|
|
85806
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85807
|
+
stateMutability: "view",
|
|
85788
85808
|
type: "function"
|
|
85789
85809
|
},
|
|
85790
85810
|
{
|
|
85791
85811
|
inputs: [
|
|
85792
85812
|
{ internalType: "address", name: "owner_", type: "address" },
|
|
85813
|
+
{ internalType: "address", name: "pauser_", type: "address" },
|
|
85793
85814
|
{ internalType: "address", name: "rescuer_", type: "address" },
|
|
85794
|
-
{ internalType: "address", name: "
|
|
85795
|
-
{ internalType: "address", name: "
|
|
85796
|
-
{ internalType: "
|
|
85797
|
-
{ internalType: "
|
|
85798
|
-
{ internalType: "bytes32[]", name: "remoteTokenMessengers_", type: "bytes32[]" }
|
|
85815
|
+
{ internalType: "address", name: "attesterManager_", type: "address" },
|
|
85816
|
+
{ internalType: "address[]", name: "attesters_", type: "address[]" },
|
|
85817
|
+
{ internalType: "uint256", name: "signatureThreshold_", type: "uint256" },
|
|
85818
|
+
{ internalType: "uint256", name: "maxMessageBodySize_", type: "uint256" }
|
|
85799
85819
|
],
|
|
85800
85820
|
name: "initialize",
|
|
85801
85821
|
outputs: [],
|
|
@@ -85810,59 +85830,62 @@ var token_messenger_v2_abi_default = [
|
|
|
85810
85830
|
type: "function"
|
|
85811
85831
|
},
|
|
85812
85832
|
{
|
|
85813
|
-
inputs: [{ internalType: "address", name: "
|
|
85814
|
-
name: "
|
|
85833
|
+
inputs: [{ internalType: "address", name: "attester", type: "address" }],
|
|
85834
|
+
name: "isEnabledAttester",
|
|
85815
85835
|
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85816
85836
|
stateMutability: "view",
|
|
85817
85837
|
type: "function"
|
|
85818
85838
|
},
|
|
85819
85839
|
{
|
|
85820
85840
|
inputs: [],
|
|
85821
|
-
name: "
|
|
85822
|
-
outputs: [{ internalType: "
|
|
85841
|
+
name: "localDomain",
|
|
85842
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85823
85843
|
stateMutability: "view",
|
|
85824
85844
|
type: "function"
|
|
85825
85845
|
},
|
|
85826
85846
|
{
|
|
85827
85847
|
inputs: [],
|
|
85828
|
-
name: "
|
|
85829
|
-
outputs: [{ internalType: "
|
|
85848
|
+
name: "maxMessageBodySize",
|
|
85849
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85830
85850
|
stateMutability: "view",
|
|
85831
85851
|
type: "function"
|
|
85832
85852
|
},
|
|
85833
85853
|
{
|
|
85834
85854
|
inputs: [],
|
|
85835
|
-
name: "
|
|
85836
|
-
outputs: [{ internalType: "
|
|
85855
|
+
name: "owner",
|
|
85856
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85837
85857
|
stateMutability: "view",
|
|
85838
85858
|
type: "function"
|
|
85839
85859
|
},
|
|
85860
|
+
{ inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85840
85861
|
{
|
|
85841
85862
|
inputs: [],
|
|
85842
|
-
name: "
|
|
85843
|
-
outputs: [{ internalType: "
|
|
85863
|
+
name: "paused",
|
|
85864
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
85844
85865
|
stateMutability: "view",
|
|
85845
85866
|
type: "function"
|
|
85846
85867
|
},
|
|
85847
85868
|
{
|
|
85848
85869
|
inputs: [],
|
|
85849
|
-
name: "
|
|
85870
|
+
name: "pauser",
|
|
85850
85871
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85851
85872
|
stateMutability: "view",
|
|
85852
85873
|
type: "function"
|
|
85853
85874
|
},
|
|
85854
85875
|
{
|
|
85855
|
-
inputs: [
|
|
85856
|
-
name: "
|
|
85857
|
-
outputs: [{ internalType: "
|
|
85876
|
+
inputs: [],
|
|
85877
|
+
name: "pendingOwner",
|
|
85878
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
85858
85879
|
stateMutability: "view",
|
|
85859
85880
|
type: "function"
|
|
85860
85881
|
},
|
|
85861
|
-
{ inputs: [], name: "removeLocalMinter", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85862
85882
|
{
|
|
85863
|
-
inputs: [
|
|
85864
|
-
|
|
85865
|
-
|
|
85883
|
+
inputs: [
|
|
85884
|
+
{ internalType: "bytes", name: "message", type: "bytes" },
|
|
85885
|
+
{ internalType: "bytes", name: "attestation", type: "bytes" }
|
|
85886
|
+
],
|
|
85887
|
+
name: "receiveMessage",
|
|
85888
|
+
outputs: [{ internalType: "bool", name: "success", type: "bool" }],
|
|
85866
85889
|
stateMutability: "nonpayable",
|
|
85867
85890
|
type: "function"
|
|
85868
85891
|
},
|
|
@@ -85885,12 +85908,39 @@ var token_messenger_v2_abi_default = [
|
|
|
85885
85908
|
type: "function"
|
|
85886
85909
|
},
|
|
85887
85910
|
{
|
|
85888
|
-
inputs: [
|
|
85889
|
-
|
|
85911
|
+
inputs: [
|
|
85912
|
+
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
85913
|
+
{ internalType: "bytes32", name: "recipient", type: "bytes32" },
|
|
85914
|
+
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
85915
|
+
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
85916
|
+
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
85917
|
+
],
|
|
85918
|
+
name: "sendMessage",
|
|
85919
|
+
outputs: [],
|
|
85920
|
+
stateMutability: "nonpayable",
|
|
85921
|
+
type: "function"
|
|
85922
|
+
},
|
|
85923
|
+
{
|
|
85924
|
+
inputs: [{ internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
85925
|
+
name: "setMaxMessageBodySize",
|
|
85890
85926
|
outputs: [],
|
|
85891
85927
|
stateMutability: "nonpayable",
|
|
85892
85928
|
type: "function"
|
|
85893
85929
|
},
|
|
85930
|
+
{
|
|
85931
|
+
inputs: [{ internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }],
|
|
85932
|
+
name: "setSignatureThreshold",
|
|
85933
|
+
outputs: [],
|
|
85934
|
+
stateMutability: "nonpayable",
|
|
85935
|
+
type: "function"
|
|
85936
|
+
},
|
|
85937
|
+
{
|
|
85938
|
+
inputs: [],
|
|
85939
|
+
name: "signatureThreshold",
|
|
85940
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85941
|
+
stateMutability: "view",
|
|
85942
|
+
type: "function"
|
|
85943
|
+
},
|
|
85894
85944
|
{
|
|
85895
85945
|
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
85896
85946
|
name: "transferOwnership",
|
|
@@ -85898,16 +85948,17 @@ var token_messenger_v2_abi_default = [
|
|
|
85898
85948
|
stateMutability: "nonpayable",
|
|
85899
85949
|
type: "function"
|
|
85900
85950
|
},
|
|
85951
|
+
{ inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
85901
85952
|
{
|
|
85902
|
-
inputs: [{ internalType: "address", name: "
|
|
85903
|
-
name: "
|
|
85953
|
+
inputs: [{ internalType: "address", name: "newAttesterManager", type: "address" }],
|
|
85954
|
+
name: "updateAttesterManager",
|
|
85904
85955
|
outputs: [],
|
|
85905
85956
|
stateMutability: "nonpayable",
|
|
85906
85957
|
type: "function"
|
|
85907
85958
|
},
|
|
85908
85959
|
{
|
|
85909
|
-
inputs: [{ internalType: "address", name: "
|
|
85910
|
-
name: "
|
|
85960
|
+
inputs: [{ internalType: "address", name: "_newPauser", type: "address" }],
|
|
85961
|
+
name: "updatePauser",
|
|
85911
85962
|
outputs: [],
|
|
85912
85963
|
stateMutability: "nonpayable",
|
|
85913
85964
|
type: "function"
|
|
@@ -85918,9 +85969,22 @@ var token_messenger_v2_abi_default = [
|
|
|
85918
85969
|
outputs: [],
|
|
85919
85970
|
stateMutability: "nonpayable",
|
|
85920
85971
|
type: "function"
|
|
85972
|
+
},
|
|
85973
|
+
{
|
|
85974
|
+
inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
85975
|
+
name: "usedNonces",
|
|
85976
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
85977
|
+
stateMutability: "view",
|
|
85978
|
+
type: "function"
|
|
85979
|
+
},
|
|
85980
|
+
{
|
|
85981
|
+
inputs: [],
|
|
85982
|
+
name: "version",
|
|
85983
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
85984
|
+
stateMutability: "view",
|
|
85985
|
+
type: "function"
|
|
85921
85986
|
}
|
|
85922
85987
|
];
|
|
85923
|
-
|
|
85924
85988
|
// src/integrations/cctp/cctp.v2.ts
|
|
85925
85989
|
var messageTransmitterAbi = new exports_ethers.utils.Interface(message_transmitter_v2_abi_default);
|
|
85926
85990
|
var tokenMessengerAbi = new exports_ethers.utils.Interface(token_messenger_v2_abi_default);
|
|
@@ -85968,90 +86032,6 @@ var receiveMessageFromCctpTrx = ({
|
|
|
85968
86032
|
data: ReceiveMessageCalldata(args)
|
|
85969
86033
|
});
|
|
85970
86034
|
};
|
|
85971
|
-
// src/integrations/erc721/erc721.ts
|
|
85972
|
-
var erc721Interface = new exports_ethers.utils.Interface(erc721_abi_default2);
|
|
85973
|
-
var ApproveErc721CallData = ({ tokenId, spender }) => {
|
|
85974
|
-
return erc721Interface.encodeFunctionData("approve", [spender, tokenId]);
|
|
85975
|
-
};
|
|
85976
|
-
var approveErc721Trx = ({ tokenId, spender, token }) => {
|
|
85977
|
-
return createCall({
|
|
85978
|
-
to: token,
|
|
85979
|
-
data: ApproveErc721CallData({ tokenId, spender }),
|
|
85980
|
-
value: 0n,
|
|
85981
|
-
operation: 0
|
|
85982
|
-
});
|
|
85983
|
-
};
|
|
85984
|
-
var TransferFromErc721CallData = ({ from: from2, to, tokenId }) => {
|
|
85985
|
-
return erc721Interface.encodeFunctionData("transferFrom", [from2, to, tokenId]);
|
|
85986
|
-
};
|
|
85987
|
-
var transferFromErc721Trx = ({ from: from2, to, tokenId, token }) => {
|
|
85988
|
-
return createCall({
|
|
85989
|
-
to: token,
|
|
85990
|
-
data: TransferFromErc721CallData({ from: from2, to, tokenId }),
|
|
85991
|
-
value: 0n,
|
|
85992
|
-
operation: 0
|
|
85993
|
-
});
|
|
85994
|
-
};
|
|
85995
|
-
var SafeTransferFromWithDataErc721CallData = ({
|
|
85996
|
-
from: from2,
|
|
85997
|
-
to,
|
|
85998
|
-
tokenId,
|
|
85999
|
-
data
|
|
86000
|
-
}) => {
|
|
86001
|
-
return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId, data]);
|
|
86002
|
-
};
|
|
86003
|
-
var safeTransferFromWithDataErc721Trx = ({
|
|
86004
|
-
from: from2,
|
|
86005
|
-
to,
|
|
86006
|
-
tokenId,
|
|
86007
|
-
data,
|
|
86008
|
-
token
|
|
86009
|
-
}) => {
|
|
86010
|
-
return createCall({
|
|
86011
|
-
to: token,
|
|
86012
|
-
data: SafeTransferFromWithDataErc721CallData({ from: from2, to, tokenId, data }),
|
|
86013
|
-
value: 0n,
|
|
86014
|
-
operation: 0
|
|
86015
|
-
});
|
|
86016
|
-
};
|
|
86017
|
-
var SafeTransferFromErc721CallData = ({
|
|
86018
|
-
from: from2,
|
|
86019
|
-
to,
|
|
86020
|
-
tokenId
|
|
86021
|
-
}) => {
|
|
86022
|
-
return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId]);
|
|
86023
|
-
};
|
|
86024
|
-
var safeTransferFromErc721Trx = ({
|
|
86025
|
-
from: from2,
|
|
86026
|
-
to,
|
|
86027
|
-
tokenId,
|
|
86028
|
-
token
|
|
86029
|
-
}) => {
|
|
86030
|
-
return createCall({
|
|
86031
|
-
to: token,
|
|
86032
|
-
data: SafeTransferFromErc721CallData({ from: from2, to, tokenId }),
|
|
86033
|
-
value: 0n,
|
|
86034
|
-
operation: 0
|
|
86035
|
-
});
|
|
86036
|
-
};
|
|
86037
|
-
var SetApprovalForAllErc721CallData = ({
|
|
86038
|
-
operator,
|
|
86039
|
-
approved
|
|
86040
|
-
}) => {
|
|
86041
|
-
return erc721Interface.encodeFunctionData("setApprovalForAll", [operator, approved]);
|
|
86042
|
-
};
|
|
86043
|
-
var setApprovalForAllErc721Trx = ({
|
|
86044
|
-
operator,
|
|
86045
|
-
approved,
|
|
86046
|
-
token
|
|
86047
|
-
}) => {
|
|
86048
|
-
return createCall({
|
|
86049
|
-
to: token,
|
|
86050
|
-
data: SetApprovalForAllErc721CallData({ operator, approved }),
|
|
86051
|
-
value: 0n,
|
|
86052
|
-
operation: 0
|
|
86053
|
-
});
|
|
86054
|
-
};
|
|
86055
86035
|
// src/integrations/erc721/erc721.abi.ts
|
|
86056
86036
|
var erc721_abi_default2 = [
|
|
86057
86037
|
{
|
|
@@ -86253,6 +86233,90 @@ var erc721_abi_default2 = [
|
|
|
86253
86233
|
stateMutability: "nonpayable"
|
|
86254
86234
|
}
|
|
86255
86235
|
];
|
|
86236
|
+
// src/integrations/erc721/erc721.ts
|
|
86237
|
+
var erc721Interface = new exports_ethers.utils.Interface(erc721_abi_default2);
|
|
86238
|
+
var ApproveErc721CallData = ({ tokenId, spender }) => {
|
|
86239
|
+
return erc721Interface.encodeFunctionData("approve", [spender, tokenId]);
|
|
86240
|
+
};
|
|
86241
|
+
var approveErc721Trx = ({ tokenId, spender, token }) => {
|
|
86242
|
+
return createCall({
|
|
86243
|
+
to: token,
|
|
86244
|
+
data: ApproveErc721CallData({ tokenId, spender }),
|
|
86245
|
+
value: 0n,
|
|
86246
|
+
operation: 0
|
|
86247
|
+
});
|
|
86248
|
+
};
|
|
86249
|
+
var TransferFromErc721CallData = ({ from: from2, to, tokenId }) => {
|
|
86250
|
+
return erc721Interface.encodeFunctionData("transferFrom", [from2, to, tokenId]);
|
|
86251
|
+
};
|
|
86252
|
+
var transferFromErc721Trx = ({ from: from2, to, tokenId, token }) => {
|
|
86253
|
+
return createCall({
|
|
86254
|
+
to: token,
|
|
86255
|
+
data: TransferFromErc721CallData({ from: from2, to, tokenId }),
|
|
86256
|
+
value: 0n,
|
|
86257
|
+
operation: 0
|
|
86258
|
+
});
|
|
86259
|
+
};
|
|
86260
|
+
var SafeTransferFromWithDataErc721CallData = ({
|
|
86261
|
+
from: from2,
|
|
86262
|
+
to,
|
|
86263
|
+
tokenId,
|
|
86264
|
+
data
|
|
86265
|
+
}) => {
|
|
86266
|
+
return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId, data]);
|
|
86267
|
+
};
|
|
86268
|
+
var safeTransferFromWithDataErc721Trx = ({
|
|
86269
|
+
from: from2,
|
|
86270
|
+
to,
|
|
86271
|
+
tokenId,
|
|
86272
|
+
data,
|
|
86273
|
+
token
|
|
86274
|
+
}) => {
|
|
86275
|
+
return createCall({
|
|
86276
|
+
to: token,
|
|
86277
|
+
data: SafeTransferFromWithDataErc721CallData({ from: from2, to, tokenId, data }),
|
|
86278
|
+
value: 0n,
|
|
86279
|
+
operation: 0
|
|
86280
|
+
});
|
|
86281
|
+
};
|
|
86282
|
+
var SafeTransferFromErc721CallData = ({
|
|
86283
|
+
from: from2,
|
|
86284
|
+
to,
|
|
86285
|
+
tokenId
|
|
86286
|
+
}) => {
|
|
86287
|
+
return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId]);
|
|
86288
|
+
};
|
|
86289
|
+
var safeTransferFromErc721Trx = ({
|
|
86290
|
+
from: from2,
|
|
86291
|
+
to,
|
|
86292
|
+
tokenId,
|
|
86293
|
+
token
|
|
86294
|
+
}) => {
|
|
86295
|
+
return createCall({
|
|
86296
|
+
to: token,
|
|
86297
|
+
data: SafeTransferFromErc721CallData({ from: from2, to, tokenId }),
|
|
86298
|
+
value: 0n,
|
|
86299
|
+
operation: 0
|
|
86300
|
+
});
|
|
86301
|
+
};
|
|
86302
|
+
var SetApprovalForAllErc721CallData = ({
|
|
86303
|
+
operator,
|
|
86304
|
+
approved
|
|
86305
|
+
}) => {
|
|
86306
|
+
return erc721Interface.encodeFunctionData("setApprovalForAll", [operator, approved]);
|
|
86307
|
+
};
|
|
86308
|
+
var setApprovalForAllErc721Trx = ({
|
|
86309
|
+
operator,
|
|
86310
|
+
approved,
|
|
86311
|
+
token
|
|
86312
|
+
}) => {
|
|
86313
|
+
return createCall({
|
|
86314
|
+
to: token,
|
|
86315
|
+
data: SetApprovalForAllErc721CallData({ operator, approved }),
|
|
86316
|
+
value: 0n,
|
|
86317
|
+
operation: 0
|
|
86318
|
+
});
|
|
86319
|
+
};
|
|
86256
86320
|
// src/lib/utils.ts
|
|
86257
86321
|
var executeTrx = ({
|
|
86258
86322
|
client,
|
|
@@ -86347,4 +86411,4 @@ var simulateOrThrow = async (env2) => {
|
|
|
86347
86411
|
};
|
|
86348
86412
|
};
|
|
86349
86413
|
|
|
86350
|
-
//# debugId=
|
|
86414
|
+
//# debugId=2AB548C7C0C64BCB64756E2164756E21
|