@defisaver/sdk 1.3.6-dev.0 → 1.3.6-dev.1

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.
@@ -1487,6 +1487,27 @@ export declare const otherAddresses: {
1487
1487
  GHO?: undefined;
1488
1488
  LUSD?: undefined;
1489
1489
  BLUSD?: undefined;
1490
+ } | {
1491
+ RecipeExecutor: string;
1492
+ DFSRegistry: string;
1493
+ AdminVault: string;
1494
+ DefisaverLogger: string;
1495
+ Empty: string;
1496
+ DFSProxyRegistry?: undefined;
1497
+ ProxyRegistry?: undefined;
1498
+ McdCdpManager?: undefined;
1499
+ BCdpManager?: undefined;
1500
+ AaveDefaultMarket?: undefined;
1501
+ UniswapV3PositionManager?: undefined;
1502
+ RaiWethUniV2LPToken?: undefined;
1503
+ BalancerToken?: undefined;
1504
+ CrvToken?: undefined;
1505
+ CvxToken?: undefined;
1506
+ DAI?: undefined;
1507
+ GHO?: undefined;
1508
+ LUSD?: undefined;
1509
+ BLUSD?: undefined;
1510
+ DSGuardFactory?: undefined;
1490
1511
  };
1491
1512
  };
1492
1513
  /**
@@ -565,6 +565,40 @@ export const actionAddresses = {
565
565
  AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
566
566
  AaveV3DelegateCredit: '0x2A588cBCBd5e6c6ba7ED0E260B8107F599017DDE',
567
567
  },
568
+ [NETWORKS.plasma.chainId]: {
569
+ // Basic
570
+ DFSSell: '0xAC17f651591f417934EeA04CF6629584Eb50A4bB',
571
+ DFSSellNoFee: '0x0000000000000000000000000000000000000000',
572
+ WrapEth: '0x520E8b0573a03D26D0E39a409E85E28459e24C0E',
573
+ UnwrapEth: '0x93A6E0dC4C4a6033922d386e4cbd9e31278A2BBa',
574
+ SendToken: '0xa2ABA81e65543d18dd1a1E4A31Bc41C4a86453cf',
575
+ SendTokens: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
576
+ SendTokenAndUnwrap: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
577
+ PullToken: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
578
+ ApproveToken: '0xa898078f369A78CE6b8023715e8f6d2Ad7d2719f',
579
+ SumInputs: '0x13976feAeC930Cc51986605D6f479d97a3b90FA9',
580
+ SubInputs: '0x4E1946059Dc2426Ef3a9AE82fB30B7718a09B7E1',
581
+ TokenBalance: '0xCc0f04e8c34B670a1D06f4978C843952F690d3f4',
582
+ PermitToken: '0x2A588cBCBd5e6c6ba7ED0E260B8107F599017DDE',
583
+ MerklClaim: '0xA5b3aA3f06C2c0986E1f45ae36CD6C20392798f1',
584
+ TransferNFT: '0x6d1722AE426FF9f509726bdA037d5203d83e7818',
585
+ TokenizedVaultAdapter: '0x75198244Ad7b3ebFCbFd67e6e06B1452bd6Fa831',
586
+ // Flashloan
587
+ FLAction: '0xa67f6A6Af60dD626ce7bF3d4705ABe5D593D90Ec',
588
+ FLAaveV3: '0xa67f6A6Af60dD626ce7bF3d4705ABe5D593D90Ec',
589
+ // AaveV3
590
+ AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
591
+ AaveV3Supply: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
592
+ AaveV3SetEMode: '0xEDFc68e2874B0AFc0963e18AE4D68522aEc7f97D',
593
+ AaveV3Payback: '0xCd84Bff225760B6b8BAcF1e90e8409C25769EF52',
594
+ AaveV3CollateralSwitch: '0xdDFFd19564F9703800Da8a2FB9c2b4a7242bf01F',
595
+ AaveV3ClaimRewards: '0x50bCFC115283dF48Ab6382551B9B93b08E197747',
596
+ AaveV3Borrow: '0x2D8BFD9FF88E3106ce7214621b0770c1578749A1',
597
+ AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
598
+ AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
599
+ AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
600
+ AaveV3DelegateCredit: '0x0a9b2080C14DaF008AE87C977dFDf5f5D6D0937F',
601
+ },
568
602
  };
569
603
  export const otherAddresses = {
570
604
  [NETWORKS.ethereum.chainId]: {
@@ -623,6 +657,13 @@ export const otherAddresses = {
623
657
  DefisaverLogger: '0x44e98bb58d725f2ef93a195f518b335dcb784c78',
624
658
  Empty: '0x0000000000000000000000000000000000000000',
625
659
  },
660
+ [NETWORKS.plasma.chainId]: {
661
+ RecipeExecutor: '0xB8af168883D049FF9C811ab5B5DE179f3e7d6Fb7',
662
+ DFSRegistry: '0x44e98bB58d725F2eF93a195F518b335dCB784c78',
663
+ AdminVault: '0x6AB90ff536f0E2a880DbCdef1bB665C2acC0eDdC',
664
+ DefisaverLogger: '0x02a516861f41262F22617511d00B6FCcAb65f762',
665
+ Empty: '0x0000000000000000000000000000000000000000',
666
+ },
626
667
  };
627
668
  /**
628
669
  *
package/esm/src/config.js CHANGED
@@ -51,6 +51,14 @@ export const NETWORKS = {
51
51
  rpcUrls: [],
52
52
  nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
53
53
  },
54
+ plasma: {
55
+ chainId: 9745,
56
+ chainName: 'Plasma',
57
+ blockExplorerUrls: ['https://plasmascan.to/'],
58
+ iconUrls: ['https://bridge.base.org/icons/base.svg'],
59
+ rpcUrls: [],
60
+ nativeCurrency: { name: 'XPL', decimals: 18, symbol: 'XPL' },
61
+ },
54
62
  };
55
63
  /**
56
64
  *
@@ -2899,6 +2899,27 @@ declare const otherAddressesAllChains: {
2899
2899
  GHO?: undefined;
2900
2900
  LUSD?: undefined;
2901
2901
  BLUSD?: undefined;
2902
+ } | {
2903
+ RecipeExecutor: string;
2904
+ DFSRegistry: string;
2905
+ AdminVault: string;
2906
+ DefisaverLogger: string;
2907
+ Empty: string;
2908
+ DFSProxyRegistry?: undefined;
2909
+ ProxyRegistry?: undefined;
2910
+ McdCdpManager?: undefined;
2911
+ BCdpManager?: undefined;
2912
+ AaveDefaultMarket?: undefined;
2913
+ UniswapV3PositionManager?: undefined;
2914
+ RaiWethUniV2LPToken?: undefined;
2915
+ BalancerToken?: undefined;
2916
+ CrvToken?: undefined;
2917
+ CvxToken?: undefined;
2918
+ DAI?: undefined;
2919
+ GHO?: undefined;
2920
+ LUSD?: undefined;
2921
+ BLUSD?: undefined;
2922
+ DSGuardFactory?: undefined;
2902
2923
  };
2903
2924
  };
2904
2925
  declare const otherAddresses: (chainId?: null) => {
@@ -2985,6 +3006,27 @@ declare const otherAddresses: (chainId?: null) => {
2985
3006
  GHO?: undefined;
2986
3007
  LUSD?: undefined;
2987
3008
  BLUSD?: undefined;
3009
+ } | {
3010
+ RecipeExecutor: string;
3011
+ DFSRegistry: string;
3012
+ AdminVault: string;
3013
+ DefisaverLogger: string;
3014
+ Empty: string;
3015
+ DFSProxyRegistry?: undefined;
3016
+ ProxyRegistry?: undefined;
3017
+ McdCdpManager?: undefined;
3018
+ BCdpManager?: undefined;
3019
+ AaveDefaultMarket?: undefined;
3020
+ UniswapV3PositionManager?: undefined;
3021
+ RaiWethUniV2LPToken?: undefined;
3022
+ BalancerToken?: undefined;
3023
+ CrvToken?: undefined;
3024
+ CvxToken?: undefined;
3025
+ DAI?: undefined;
3026
+ GHO?: undefined;
3027
+ LUSD?: undefined;
3028
+ BLUSD?: undefined;
3029
+ DSGuardFactory?: undefined;
2988
3030
  };
2989
3031
  export { Action, ActionWithL2, Recipe, Strategy, DfsWeb3, actions, triggers, utils, configure, getNetworkData, CONFIG, networks, actionAddresses, actionAddressesAllChains, otherAddresses, otherAddressesAllChains, getAddr, };
2990
3032
  declare const _default: {
@@ -5888,6 +5930,27 @@ declare const _default: {
5888
5930
  GHO?: undefined;
5889
5931
  LUSD?: undefined;
5890
5932
  BLUSD?: undefined;
5933
+ } | {
5934
+ RecipeExecutor: string;
5935
+ DFSRegistry: string;
5936
+ AdminVault: string;
5937
+ DefisaverLogger: string;
5938
+ Empty: string;
5939
+ DFSProxyRegistry?: undefined;
5940
+ ProxyRegistry?: undefined;
5941
+ McdCdpManager?: undefined;
5942
+ BCdpManager?: undefined;
5943
+ AaveDefaultMarket?: undefined;
5944
+ UniswapV3PositionManager?: undefined;
5945
+ RaiWethUniV2LPToken?: undefined;
5946
+ BalancerToken?: undefined;
5947
+ CrvToken?: undefined;
5948
+ CvxToken?: undefined;
5949
+ DAI?: undefined;
5950
+ GHO?: undefined;
5951
+ LUSD?: undefined;
5952
+ BLUSD?: undefined;
5953
+ DSGuardFactory?: undefined;
5891
5954
  };
5892
5955
  otherAddressesAllChains: {
5893
5956
  [x: number]: {
@@ -5974,6 +6037,27 @@ declare const _default: {
5974
6037
  GHO?: undefined;
5975
6038
  LUSD?: undefined;
5976
6039
  BLUSD?: undefined;
6040
+ } | {
6041
+ RecipeExecutor: string;
6042
+ DFSRegistry: string;
6043
+ AdminVault: string;
6044
+ DefisaverLogger: string;
6045
+ Empty: string;
6046
+ DFSProxyRegistry?: undefined;
6047
+ ProxyRegistry?: undefined;
6048
+ McdCdpManager?: undefined;
6049
+ BCdpManager?: undefined;
6050
+ AaveDefaultMarket?: undefined;
6051
+ UniswapV3PositionManager?: undefined;
6052
+ RaiWethUniV2LPToken?: undefined;
6053
+ BalancerToken?: undefined;
6054
+ CrvToken?: undefined;
6055
+ CvxToken?: undefined;
6056
+ DAI?: undefined;
6057
+ GHO?: undefined;
6058
+ LUSD?: undefined;
6059
+ BLUSD?: undefined;
6060
+ DSGuardFactory?: undefined;
5977
6061
  };
5978
6062
  };
5979
6063
  getAddr: (name: string, chainId?: number) => string;
@@ -29,6 +29,7 @@ declare type Networks = {
29
29
  arbitrum: Network;
30
30
  base: Network;
31
31
  linea: Network;
32
+ plasma: Network;
32
33
  };
33
34
  declare type TxSaverData = {
34
35
  maxTxCostInFeeToken: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.3.6-dev.0",
3
+ "version": "1.3.6-dev.1",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
package/umd/index.js CHANGED
@@ -353,6 +353,18 @@ var NETWORKS = {
353
353
  decimals: 18,
354
354
  symbol: 'ETH'
355
355
  }
356
+ },
357
+ plasma: {
358
+ chainId: 9745,
359
+ chainName: 'Plasma',
360
+ blockExplorerUrls: ['https://plasmascan.to/'],
361
+ iconUrls: ['https://bridge.base.org/icons/base.svg'],
362
+ rpcUrls: [],
363
+ nativeCurrency: {
364
+ name: 'XPL',
365
+ decimals: 18,
366
+ symbol: 'XPL'
367
+ }
356
368
  }
357
369
  };
358
370
 
@@ -1868,6 +1880,41 @@ var actionAddresses = {
1868
1880
  AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
1869
1881
  AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
1870
1882
  AaveV3DelegateCredit: '0x2A588cBCBd5e6c6ba7ED0E260B8107F599017DDE'
1883
+ },
1884
+ [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.plasma.chainId]: {
1885
+ // Basic
1886
+ DFSSell: '0xAC17f651591f417934EeA04CF6629584Eb50A4bB',
1887
+ DFSSellNoFee: '0x0000000000000000000000000000000000000000',
1888
+ WrapEth: '0x520E8b0573a03D26D0E39a409E85E28459e24C0E',
1889
+ UnwrapEth: '0x93A6E0dC4C4a6033922d386e4cbd9e31278A2BBa',
1890
+ SendToken: '0xa2ABA81e65543d18dd1a1E4A31Bc41C4a86453cf',
1891
+ SendTokens: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
1892
+ SendTokenAndUnwrap: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
1893
+ PullToken: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
1894
+ ApproveToken: '0xa898078f369A78CE6b8023715e8f6d2Ad7d2719f',
1895
+ SumInputs: '0x13976feAeC930Cc51986605D6f479d97a3b90FA9',
1896
+ SubInputs: '0x4E1946059Dc2426Ef3a9AE82fB30B7718a09B7E1',
1897
+ TokenBalance: '0xCc0f04e8c34B670a1D06f4978C843952F690d3f4',
1898
+ PermitToken: '0x2A588cBCBd5e6c6ba7ED0E260B8107F599017DDE',
1899
+ MerklClaim: '0xA5b3aA3f06C2c0986E1f45ae36CD6C20392798f1',
1900
+ TransferNFT: '0x6d1722AE426FF9f509726bdA037d5203d83e7818',
1901
+ TokenizedVaultAdapter: '0x75198244Ad7b3ebFCbFd67e6e06B1452bd6Fa831',
1902
+ // Flashloan
1903
+ FLAction: '0xa67f6A6Af60dD626ce7bF3d4705ABe5D593D90Ec',
1904
+ // fix temp
1905
+ FLAaveV3: '0xa67f6A6Af60dD626ce7bF3d4705ABe5D593D90Ec',
1906
+ // AaveV3
1907
+ AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
1908
+ AaveV3Supply: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
1909
+ AaveV3SetEMode: '0xEDFc68e2874B0AFc0963e18AE4D68522aEc7f97D',
1910
+ AaveV3Payback: '0xCd84Bff225760B6b8BAcF1e90e8409C25769EF52',
1911
+ AaveV3CollateralSwitch: '0xdDFFd19564F9703800Da8a2FB9c2b4a7242bf01F',
1912
+ AaveV3ClaimRewards: '0x50bCFC115283dF48Ab6382551B9B93b08E197747',
1913
+ AaveV3Borrow: '0x2D8BFD9FF88E3106ce7214621b0770c1578749A1',
1914
+ AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
1915
+ AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
1916
+ AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
1917
+ AaveV3DelegateCredit: '0x0a9b2080C14DaF008AE87C977dFDf5f5D6D0937F'
1871
1918
  }
1872
1919
  };
1873
1920
  var otherAddresses = {
@@ -1926,6 +1973,13 @@ var otherAddresses = {
1926
1973
  AdminVault: '0x71a9ef13c960c2f1dd17962d3592a5bcdfad6de0',
1927
1974
  DefisaverLogger: '0x44e98bb58d725f2ef93a195f518b335dcb784c78',
1928
1975
  Empty: '0x0000000000000000000000000000000000000000'
1976
+ },
1977
+ [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.plasma.chainId]: {
1978
+ RecipeExecutor: '0xB8af168883D049FF9C811ab5B5DE179f3e7d6Fb7',
1979
+ DFSRegistry: '0x44e98bB58d725F2eF93a195F518b335dCB784c78',
1980
+ AdminVault: '0x6AB90ff536f0E2a880DbCdef1bB665C2acC0eDdC',
1981
+ DefisaverLogger: '0x02a516861f41262F22617511d00B6FCcAb65f762',
1982
+ Empty: '0x0000000000000000000000000000000000000000'
1929
1983
  }
1930
1984
  };
1931
1985