damm-sdk 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +186 -10
- package/dist/index.cjs.map +7 -6
- package/dist/index.js +186 -10
- package/dist/index.js.map +7 -6
- package/dist/integrations/gnosis/gnosis.multisend.d.ts +1 -2
- package/dist/integrations/gnosis/gnosis.multisend.d.ts.map +1 -1
- package/dist/integrations/uniswapV4/uniswap.v4.d.ts.map +1 -1
- package/dist/lib/addresses.d.ts +2 -0
- package/dist/lib/addresses.d.ts.map +1 -0
- package/dist/lib/constants.d.ts +0 -3
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/integrations/gnosis/gnosis.multisend.ts +4 -2
- package/src/integrations/uniswapV4/uniswap.v4.ts +3 -4
- package/src/lib/addresses.ts +36 -0
- package/src/lib/constants.ts +0 -5
- package/src/lib/contractsRegistry.json +149 -0
- package/src/lib/index.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -45870,6 +45870,7 @@ __export(exports_src, {
|
|
|
45870
45870
|
increaseLiquidityTrx: () => increaseLiquidityTrx,
|
|
45871
45871
|
gnosisTrx: () => gnosisTrx,
|
|
45872
45872
|
getGnosisTrxSimulationResult: () => getGnosisTrxSimulationResult,
|
|
45873
|
+
getAddressOrThrow: () => getAddressOrThrow,
|
|
45873
45874
|
finalizeActionsV4: () => finalizeActionsV4,
|
|
45874
45875
|
executeTrx: () => executeTrx,
|
|
45875
45876
|
executeGnosisTrx: () => executeGnosisTrx,
|
|
@@ -45909,7 +45910,6 @@ __export(exports_src, {
|
|
|
45909
45910
|
USDT_ARB: () => USDT_ARB,
|
|
45910
45911
|
USDCe_ARB: () => USDCe_ARB,
|
|
45911
45912
|
USDC_ARB: () => USDC_ARB,
|
|
45912
|
-
UNISWAP_V3_SWAP_ROUTER_ARB: () => UNISWAP_V3_SWAP_ROUTER_ARB,
|
|
45913
45913
|
TransferCalldata: () => TransferCalldata,
|
|
45914
45914
|
SwapExactOutputSingleCalldata: () => SwapExactOutputSingleCalldata,
|
|
45915
45915
|
SwapExactInputSingleCalldataV4: () => SwapExactInputSingleCalldataV4,
|
|
@@ -45924,7 +45924,6 @@ __export(exports_src, {
|
|
|
45924
45924
|
MultiSendAbi: () => multisend_abi_default,
|
|
45925
45925
|
MintPositionCalldata: () => MintPositionCalldata,
|
|
45926
45926
|
IncreaseLiquidityCalldata: () => IncreaseLiquidityCalldata,
|
|
45927
|
-
GNOSIS_MULTISEND_ADDRESS: () => GNOSIS_MULTISEND_ADDRESS,
|
|
45928
45927
|
GMX_EXCHANGE_ROUTER_ARB: () => GMX_EXCHANGE_ROUTER_ARB,
|
|
45929
45928
|
GMXExchangeRouter: () => exchange_router_abi_default,
|
|
45930
45929
|
ERC721: () => erc721_abi_default,
|
|
@@ -45943,8 +45942,7 @@ __export(exports_src, {
|
|
|
45943
45942
|
ApproveCalldata: () => ApproveCalldata,
|
|
45944
45943
|
Actions: () => Actions2,
|
|
45945
45944
|
AaveL2Pool: () => aave_pool_L2_abi_default,
|
|
45946
|
-
AaveL1Pool: () => aave_pool_abi_default
|
|
45947
|
-
AAVE_V3_POOL_ARB: () => AAVE_V3_POOL_ARB
|
|
45945
|
+
AaveL1Pool: () => aave_pool_abi_default
|
|
45948
45946
|
});
|
|
45949
45947
|
module.exports = __toCommonJS(exports_src);
|
|
45950
45948
|
|
|
@@ -62021,9 +62019,6 @@ try {
|
|
|
62021
62019
|
} catch (error) {}
|
|
62022
62020
|
|
|
62023
62021
|
// src/lib/constants.ts
|
|
62024
|
-
var GNOSIS_MULTISEND_ADDRESS = "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761";
|
|
62025
|
-
var AAVE_V3_POOL_ARB = "0x794a61358D6845594F94dc1DB02A252b5b4814aD";
|
|
62026
|
-
var UNISWAP_V3_SWAP_ROUTER_ARB = "0xE592427A0AEce92De3Edee1F18E0157C05861564";
|
|
62027
62022
|
var USDC_ARB = "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
|
|
62028
62023
|
var USDT_ARB = "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9";
|
|
62029
62024
|
var USDCe_ARB = "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8";
|
|
@@ -62569,6 +62564,187 @@ var multisend_abi_default = [
|
|
|
62569
62564
|
type: "function"
|
|
62570
62565
|
}
|
|
62571
62566
|
];
|
|
62567
|
+
// src/lib/contractsRegistry.json
|
|
62568
|
+
var contractsRegistry_default = {
|
|
62569
|
+
arbitrumOne: {
|
|
62570
|
+
aaveV3: {
|
|
62571
|
+
pool: "0x794a61358D6845594F94dc1DB02A252b5b4814aD"
|
|
62572
|
+
},
|
|
62573
|
+
uniswapV3: {
|
|
62574
|
+
router: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
62575
|
+
positionManager: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
|
|
62576
|
+
},
|
|
62577
|
+
uniswapV4: {
|
|
62578
|
+
universalRouter: "0xA51afAFe0263b40EdaEf0Df8781eA9aa03E381a3",
|
|
62579
|
+
positionManager: "0xd88F38F930b7952f2DB2432Cb002E7abbF3dD869"
|
|
62580
|
+
},
|
|
62581
|
+
gnosisSafe: {
|
|
62582
|
+
v1_4_1: {
|
|
62583
|
+
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
62584
|
+
multisend: "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
62585
|
+
safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
|
|
62586
|
+
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
62587
|
+
}
|
|
62588
|
+
},
|
|
62589
|
+
zodiac: {
|
|
62590
|
+
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337"
|
|
62591
|
+
},
|
|
62592
|
+
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
62593
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
62594
|
+
tokens: {
|
|
62595
|
+
weth: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
62596
|
+
usdc: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
62597
|
+
usdt: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
|
|
62598
|
+
dai: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
|
62599
|
+
usdce: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
|
|
62600
|
+
aUSDT: "0x6ab707Aca953eDAeFBc4fD23bA73294241490620",
|
|
62601
|
+
aUSDC: "0x724dc807b04555b71ed48a6896b6F41593b8C637",
|
|
62602
|
+
aDAI: "0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE",
|
|
62603
|
+
aUSDCe: "0x625E7708f30cA75bfd92586e17077590C60eb4cD"
|
|
62604
|
+
}
|
|
62605
|
+
},
|
|
62606
|
+
base: {
|
|
62607
|
+
tokens: {
|
|
62608
|
+
usdc: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
62609
|
+
usdt: "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"
|
|
62610
|
+
},
|
|
62611
|
+
gnosisSafe: {
|
|
62612
|
+
v1_4_1: {
|
|
62613
|
+
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
62614
|
+
multisend: "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
62615
|
+
safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
|
|
62616
|
+
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
62617
|
+
}
|
|
62618
|
+
},
|
|
62619
|
+
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
62620
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
62621
|
+
uniswapV3: {
|
|
62622
|
+
router: "0x2626664c2603336E57B271c5C0b26F421741e481",
|
|
62623
|
+
positionManager: "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1"
|
|
62624
|
+
},
|
|
62625
|
+
zodiac: {
|
|
62626
|
+
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337"
|
|
62627
|
+
}
|
|
62628
|
+
},
|
|
62629
|
+
polygon: {
|
|
62630
|
+
uniswapV3: {
|
|
62631
|
+
router: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
62632
|
+
positionManager: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
|
|
62633
|
+
},
|
|
62634
|
+
gnosisSafe: {
|
|
62635
|
+
v1_4_1: {
|
|
62636
|
+
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
62637
|
+
multisend: "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
62638
|
+
safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
|
|
62639
|
+
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
62640
|
+
}
|
|
62641
|
+
},
|
|
62642
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
62643
|
+
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
62644
|
+
tokens: {
|
|
62645
|
+
usdce: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
|
|
62646
|
+
usdt: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F"
|
|
62647
|
+
},
|
|
62648
|
+
zodiac: {
|
|
62649
|
+
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337"
|
|
62650
|
+
}
|
|
62651
|
+
},
|
|
62652
|
+
bsc: {
|
|
62653
|
+
uniswapV3: {
|
|
62654
|
+
router: "0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",
|
|
62655
|
+
positionManager: "0x7b8A01B39D58278b5DE7e48c8449c9f4F5170613"
|
|
62656
|
+
},
|
|
62657
|
+
gnosisSafe: {
|
|
62658
|
+
v1_4_1: {
|
|
62659
|
+
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
62660
|
+
multisend: "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
62661
|
+
safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
|
|
62662
|
+
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
62663
|
+
}
|
|
62664
|
+
},
|
|
62665
|
+
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
62666
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
62667
|
+
tokens: {
|
|
62668
|
+
wbnb: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
|
|
62669
|
+
},
|
|
62670
|
+
zodiac: {
|
|
62671
|
+
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337"
|
|
62672
|
+
}
|
|
62673
|
+
},
|
|
62674
|
+
optimism: {
|
|
62675
|
+
tokens: {
|
|
62676
|
+
usdc: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
|
|
62677
|
+
usdt: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"
|
|
62678
|
+
},
|
|
62679
|
+
gnosisSafe: {
|
|
62680
|
+
v1_4_1: {
|
|
62681
|
+
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
62682
|
+
multisend: "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
62683
|
+
safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
|
|
62684
|
+
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
62685
|
+
}
|
|
62686
|
+
},
|
|
62687
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
62688
|
+
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
62689
|
+
},
|
|
62690
|
+
mainnet: {
|
|
62691
|
+
uniswapV3: {
|
|
62692
|
+
router: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
62693
|
+
positionManager: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
|
|
62694
|
+
},
|
|
62695
|
+
gnosisSafe: {
|
|
62696
|
+
v1_4_1: {
|
|
62697
|
+
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
62698
|
+
multisend: "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
62699
|
+
safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
|
|
62700
|
+
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
62701
|
+
}
|
|
62702
|
+
},
|
|
62703
|
+
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
62704
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
62705
|
+
tokens: {
|
|
62706
|
+
usdc: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
62707
|
+
usdt: "0xdac17f958d2ee523a2206206994597c13d831ec7"
|
|
62708
|
+
},
|
|
62709
|
+
zodiac: {
|
|
62710
|
+
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337"
|
|
62711
|
+
},
|
|
62712
|
+
morpho: {
|
|
62713
|
+
morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
|
|
62714
|
+
}
|
|
62715
|
+
}
|
|
62716
|
+
};
|
|
62717
|
+
|
|
62718
|
+
// src/lib/addresses.ts
|
|
62719
|
+
var chainIdToName = {
|
|
62720
|
+
1: "mainnet",
|
|
62721
|
+
10: "optimism",
|
|
62722
|
+
56: "bsc",
|
|
62723
|
+
137: "polygon",
|
|
62724
|
+
42161: "arbitrumOne",
|
|
62725
|
+
8453: "base"
|
|
62726
|
+
};
|
|
62727
|
+
function getAddressOrThrow(chainId, key2) {
|
|
62728
|
+
const chainName = chainIdToName[chainId];
|
|
62729
|
+
if (!chainName) {
|
|
62730
|
+
throw new Error(`Unsupported chainId: ${chainId}`);
|
|
62731
|
+
}
|
|
62732
|
+
let current = contractsRegistry_default[chainName];
|
|
62733
|
+
if (!current) {
|
|
62734
|
+
throw new Error(`No contracts found for chainId: ${chainId} (${chainName})`);
|
|
62735
|
+
}
|
|
62736
|
+
const path = key2.split(".");
|
|
62737
|
+
for (const segment of path) {
|
|
62738
|
+
if (typeof current !== "object" || current === null || !(segment in current)) {
|
|
62739
|
+
throw new Error(`Key "${key2}" not found for chainId ${chainId} (${chainName})`);
|
|
62740
|
+
}
|
|
62741
|
+
current = current[segment];
|
|
62742
|
+
}
|
|
62743
|
+
if (typeof current !== "string") {
|
|
62744
|
+
throw new Error(`Key "${key2}" does not resolve to an address for chainId ${chainId} (${chainName})`);
|
|
62745
|
+
}
|
|
62746
|
+
return current;
|
|
62747
|
+
}
|
|
62572
62748
|
|
|
62573
62749
|
// src/integrations/gnosis/gnosis.multisend.ts
|
|
62574
62750
|
var serializeCall = (call) => {
|
|
@@ -62617,8 +62793,8 @@ class MultisendBuilder {
|
|
|
62617
62793
|
data
|
|
62618
62794
|
};
|
|
62619
62795
|
}
|
|
62620
|
-
static new(
|
|
62621
|
-
return new MultisendBuilder(
|
|
62796
|
+
static new(chainId, version28 = "v1_4_1") {
|
|
62797
|
+
return new MultisendBuilder(getAddressOrThrow(chainId, `gnosisSafe.${version28}.multisend`));
|
|
62622
62798
|
}
|
|
62623
62799
|
}
|
|
62624
62800
|
// src/integrations/gnosis/safe.L2.abi.ts
|
|
@@ -81397,4 +81573,4 @@ var simulateOrThrow = async (env) => {
|
|
|
81397
81573
|
};
|
|
81398
81574
|
};
|
|
81399
81575
|
|
|
81400
|
-
//# debugId=
|
|
81576
|
+
//# debugId=000D782BC4D4CD5664756E2164756E21
|