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

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.3.5-dev.0",
3
+ "version": "1.3.6-dev.0",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -23,7 +23,7 @@
23
23
  "license": "ISC",
24
24
  "dependencies": {
25
25
  "@defisaver/eslint-config": "^1.0.0",
26
- "@defisaver/tokens": "^1.7.0",
26
+ "@defisaver/tokens": "^1.7.5",
27
27
  "@ethersproject/address": "^5.0.10",
28
28
  "@ethersproject/solidity": "^5.0.9",
29
29
  "@types/web3-eth-abi": "^1.2.2",
package/src/addresses.ts CHANGED
@@ -638,6 +638,42 @@ export const actionAddresses = {
638
638
  AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
639
639
  AaveV3DelegateCredit: '0x2A588cBCBd5e6c6ba7ED0E260B8107F599017DDE',
640
640
  },
641
+ [NETWORKS.plasma.chainId]: {
642
+ // Basic
643
+ DFSSell: '0xAC17f651591f417934EeA04CF6629584Eb50A4bB',
644
+ DFSSellNoFee: '0x0000000000000000000000000000000000000000',
645
+ WrapEth: '0x520E8b0573a03D26D0E39a409E85E28459e24C0E',
646
+ UnwrapEth: '0x93A6E0dC4C4a6033922d386e4cbd9e31278A2BBa',
647
+ SendToken: '0xa2ABA81e65543d18dd1a1E4A31Bc41C4a86453cf',
648
+ SendTokens: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
649
+ SendTokenAndUnwrap: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
650
+ PullToken: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
651
+ ApproveToken: '0xa898078f369A78CE6b8023715e8f6d2Ad7d2719f',
652
+ SumInputs: '0x13976feAeC930Cc51986605D6f479d97a3b90FA9',
653
+ SubInputs: '0x4E1946059Dc2426Ef3a9AE82fB30B7718a09B7E1',
654
+ TokenBalance: '0xCc0f04e8c34B670a1D06f4978C843952F690d3f4',
655
+ PermitToken: '0x2A588cBCBd5e6c6ba7ED0E260B8107F599017DDE',
656
+ MerklClaim: '0xA5b3aA3f06C2c0986E1f45ae36CD6C20392798f1',
657
+ TransferNFT: '0x6d1722AE426FF9f509726bdA037d5203d83e7818',
658
+ TokenizedVaultAdapter: '0x75198244Ad7b3ebFCbFd67e6e06B1452bd6Fa831',
659
+
660
+ // Flashloan
661
+ FLAction: '0xa67f6A6Af60dD626ce7bF3d4705ABe5D593D90Ec', // fix temp
662
+ FLAaveV3: '0xa67f6A6Af60dD626ce7bF3d4705ABe5D593D90Ec',
663
+
664
+ // AaveV3
665
+ AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
666
+ AaveV3Supply: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
667
+ AaveV3SetEMode: '0xEDFc68e2874B0AFc0963e18AE4D68522aEc7f97D',
668
+ AaveV3Payback: '0xCd84Bff225760B6b8BAcF1e90e8409C25769EF52',
669
+ AaveV3CollateralSwitch: '0xdDFFd19564F9703800Da8a2FB9c2b4a7242bf01F',
670
+ AaveV3ClaimRewards: '0x50bCFC115283dF48Ab6382551B9B93b08E197747',
671
+ AaveV3Borrow: '0x2D8BFD9FF88E3106ce7214621b0770c1578749A1',
672
+ AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
673
+ AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
674
+ AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
675
+ AaveV3DelegateCredit: '0x0a9b2080C14DaF008AE87C977dFDf5f5D6D0937F',
676
+ },
641
677
  };
642
678
 
643
679
  export const otherAddresses = {
@@ -703,6 +739,13 @@ export const otherAddresses = {
703
739
  DefisaverLogger: '0x44e98bb58d725f2ef93a195f518b335dcb784c78',
704
740
  Empty: '0x0000000000000000000000000000000000000000',
705
741
  },
742
+ [NETWORKS.plasma.chainId]: {
743
+ RecipeExecutor: '0xB8af168883D049FF9C811ab5B5DE179f3e7d6Fb7',
744
+ DFSRegistry: '0x44e98bB58d725F2eF93a195F518b335dCB784c78',
745
+ AdminVault: '0x6AB90ff536f0E2a880DbCdef1bB665C2acC0eDdC',
746
+ DefisaverLogger: '0x02a516861f41262F22617511d00B6FCcAb65f762',
747
+ Empty: '0x0000000000000000000000000000000000000000',
748
+ },
706
749
  };
707
750
 
708
751
  /**
package/src/config.ts CHANGED
@@ -54,6 +54,14 @@ export const NETWORKS : Networks = {
54
54
  rpcUrls: [],
55
55
  nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
56
56
  },
57
+ plasma: {
58
+ chainId: 9745,
59
+ chainName: 'Plasma',
60
+ blockExplorerUrls: ['https://plasmascan.to/'],
61
+ iconUrls: ['https://bridge.base.org/icons/base.svg'],
62
+ rpcUrls: [],
63
+ nativeCurrency: { name: 'XPL', decimals: 18, symbol: 'XPL' },
64
+ },
57
65
  };
58
66
 
59
67
  /**
package/src/types.ts CHANGED
@@ -31,6 +31,7 @@ type Networks = {
31
31
  arbitrum:Network,
32
32
  base:Network,
33
33
  linea:Network,
34
+ plasma:Network,
34
35
  };
35
36
 
36
37
  type TxSaverData = {