@defisaver/sdk 1.0.48 → 1.0.49
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 +1 -1
- package/src/addresses.ts +44 -0
- package/src/config.ts +9 -1
- package/src/types.ts +1 -0
package/package.json
CHANGED
package/src/addresses.ts
CHANGED
|
@@ -313,6 +313,40 @@ export const actionAddresses = {
|
|
|
313
313
|
UniWithdrawV3: '0xa004c22eFd0CD87847DE83Ce9ab92af5382c2efe',
|
|
314
314
|
UniCreatePoolV3: '0x334Ab3C12a4c0315566fd9308880Dad71F838Dc5',
|
|
315
315
|
},
|
|
316
|
+
[NETWORKS.base.chainId]: {
|
|
317
|
+
// Basic
|
|
318
|
+
DFSSell: '0xCc0f04e8c34B670a1D06f4978C843952F690d3f4',
|
|
319
|
+
WrapEth: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
320
|
+
UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
|
321
|
+
SendToken: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
|
|
322
|
+
PullToken: '0x5B0B7E38C2a8e46CfAe13c360BC5927570BeEe94',
|
|
323
|
+
|
|
324
|
+
// Flashloan
|
|
325
|
+
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
326
|
+
FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
327
|
+
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
328
|
+
|
|
329
|
+
// AaveV3
|
|
330
|
+
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
331
|
+
AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
332
|
+
AaveV3Supply: '0x741FcFC1D708CEA0d845Fd04de51022b6d00e060',
|
|
333
|
+
AaveV3SetEMode: '0xdeF8B05Ce194D50C376233C9C5530027f6180442',
|
|
334
|
+
AaveV3Payback: '0x1A8B4DF4DE4274630A5c5a8E42Fa5F0DdF654ec2',
|
|
335
|
+
AaveV3CollateralSwitch: '0xFdfeA6469c537b19A334726E01621810bc49B929',
|
|
336
|
+
AaveV3ClaimRewards: '0xCeB876C6A4dd76aFe645622db00D4E051D16dA66',
|
|
337
|
+
AaveV3Borrow: '0x8C6eC1A4869e2B307Ee1667e1c18D5776b61CCe3',
|
|
338
|
+
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
339
|
+
AaveV3View: '0x125b8b832BD7F2EBD77Eef148A6319AdE751C44b',
|
|
340
|
+
|
|
341
|
+
// CompV3
|
|
342
|
+
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
343
|
+
CompV3Borrow: '0x74346bf868Dc9201922A7F7DD26917F7BF5F0f3b',
|
|
344
|
+
CompV3Claim: '0xD51F6C1c9bE837E5fd93e31214AeCaFde753E90e',
|
|
345
|
+
CompV3Payback: '0x73c627b48cb7c2b319E496fc55535Db6eD2c3445',
|
|
346
|
+
CompV3Supply: '0x94b63bf925C2Ab17F7df6914E110E969cC36A93e',
|
|
347
|
+
CompV3Transfer: '0xdCAF9C6Bccc062Bc1b8704AA37005897FeA257a0',
|
|
348
|
+
CompV3Withdraw: '0x8543133c3827D29b67D2b012101f463c870C1790',
|
|
349
|
+
},
|
|
316
350
|
};
|
|
317
351
|
|
|
318
352
|
export const otherAddresses = {
|
|
@@ -360,6 +394,16 @@ export const otherAddresses = {
|
|
|
360
394
|
|
|
361
395
|
UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
|
362
396
|
},
|
|
397
|
+
[NETWORKS.base.chainId]: {
|
|
398
|
+
RecipeExecutor: '0xdDFFd19564F9703800Da8a2FB9c2b4a7242bf01F',
|
|
399
|
+
DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
|
|
400
|
+
ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
401
|
+
|
|
402
|
+
DSGuardFactory: '0x7783da8958013a57a5514737a4FBDFF06A0056e1',
|
|
403
|
+
AdminVault: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
404
|
+
DefisaverLogger: '0xc9D6EfA6e08B66a5Cdc516Bcd5807c2fa69E0f2A',
|
|
405
|
+
Empty: '0x0000000000000000000000000000000000000000',
|
|
406
|
+
},
|
|
363
407
|
};
|
|
364
408
|
|
|
365
409
|
/**
|
package/src/config.ts
CHANGED
|
@@ -38,6 +38,14 @@ export const NETWORKS : Networks = {
|
|
|
38
38
|
rpcUrls: ['https://arb1.arbitrum.io/rpc'],
|
|
39
39
|
nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
|
|
40
40
|
},
|
|
41
|
+
base: {
|
|
42
|
+
chainId: 8453,
|
|
43
|
+
chainName: 'Base',
|
|
44
|
+
blockExplorerUrls: ['https://basescan.io/'],
|
|
45
|
+
iconUrls: ['https://bridge.base.org/icons/base.svg'],
|
|
46
|
+
rpcUrls: [],
|
|
47
|
+
nativeCurrency: { name: 'Ethereum', decimals: 18, symbol: 'ETH' },
|
|
48
|
+
},
|
|
41
49
|
};
|
|
42
50
|
|
|
43
51
|
/**
|
|
@@ -73,4 +81,4 @@ export const configure = (config : Config) => {
|
|
|
73
81
|
CONFIG[key as keyof Config] = config[key as keyof Config];
|
|
74
82
|
if (key === 'chainId') dfsTokensSetConfig('network', config[key]);
|
|
75
83
|
});
|
|
76
|
-
};
|
|
84
|
+
};
|