@defisaver/sdk 1.3.17 → 1.3.18

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/esm/src/Recipe.js CHANGED
@@ -119,7 +119,7 @@ export class Recipe {
119
119
  data.shouldTakeFeeFromPosition,
120
120
  ];
121
121
  return [
122
- getAddr('RecipeExecutorForTxSaver', CONFIG.chainId),
122
+ this.recipeExecutorAddress,
123
123
  // @ts-expect-error Interface of AbiCoder is wrong :(
124
124
  AbiCoder.encodeFunctionCall(executeTaskAbi, [encodedRecipe, encodedTxSaverData]),
125
125
  ];
@@ -1697,7 +1697,6 @@ export declare const actionAddresses: {
1697
1697
  export declare const otherAddresses: {
1698
1698
  [x: number]: {
1699
1699
  RecipeExecutor: string;
1700
- RecipeExecutorForTxSaver: string;
1701
1700
  DFSRegistry: string;
1702
1701
  DFSProxyRegistry: string;
1703
1702
  ProxyRegistry: string;
@@ -1720,7 +1719,6 @@ export declare const otherAddresses: {
1720
1719
  DefisaverLogger?: undefined;
1721
1720
  } | {
1722
1721
  RecipeExecutor: string;
1723
- RecipeExecutorForTxSaver: string;
1724
1722
  DFSRegistry: string;
1725
1723
  ProxyRegistry: string;
1726
1724
  SFProxyEntryPoint: string;
@@ -1743,7 +1741,6 @@ export declare const otherAddresses: {
1743
1741
  BLUSD?: undefined;
1744
1742
  } | {
1745
1743
  RecipeExecutor: string;
1746
- RecipeExecutorForTxSaver: string;
1747
1744
  DFSRegistry: string;
1748
1745
  ProxyRegistry: string;
1749
1746
  SFProxyEntryPoint: string;
@@ -1771,7 +1768,6 @@ export declare const otherAddresses: {
1771
1768
  AdminVault: string;
1772
1769
  DefisaverLogger: string;
1773
1770
  Empty: string;
1774
- RecipeExecutorForTxSaver?: undefined;
1775
1771
  DFSProxyRegistry?: undefined;
1776
1772
  ProxyRegistry?: undefined;
1777
1773
  SFProxyEntryPoint?: undefined;
@@ -1793,7 +1789,6 @@ export declare const otherAddresses: {
1793
1789
  AdminVault: string;
1794
1790
  DefisaverLogger: string;
1795
1791
  Empty: string;
1796
- RecipeExecutorForTxSaver?: undefined;
1797
1792
  DFSProxyRegistry?: undefined;
1798
1793
  ProxyRegistry?: undefined;
1799
1794
  SFProxyEntryPoint?: undefined;
@@ -645,7 +645,6 @@ export const actionAddresses = {
645
645
  export const otherAddresses = {
646
646
  [NETWORKS.ethereum.chainId]: {
647
647
  RecipeExecutor: '0xbc3Fc959FeF3F12a41738f406c02198cdeE7481F',
648
- RecipeExecutorForTxSaver: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
649
648
  DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
650
649
  DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
651
650
  ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
@@ -666,7 +665,6 @@ export const otherAddresses = {
666
665
  },
667
666
  [NETWORKS.optimism.chainId]: {
668
667
  RecipeExecutor: '0xEC891E6b5A93F5f29241De6B234a4e77A5456A1C',
669
- RecipeExecutorForTxSaver: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
670
668
  DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
671
669
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
672
670
  SFProxyEntryPoint: '0x06299D4A07E8C6D7C1aEc14Ab2F46DF05Dd9588E',
@@ -678,7 +676,6 @@ export const otherAddresses = {
678
676
  },
679
677
  [NETWORKS.arbitrum.chainId]: {
680
678
  RecipeExecutor: '0x667609f05DdC5E9Fb939eC376F07953403745cf3',
681
- RecipeExecutorForTxSaver: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
682
679
  DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
683
680
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
684
681
  SFProxyEntryPoint: '0x15D776C062bF292f8F70A81533E49adC7C06Cb69',
@@ -690,7 +687,6 @@ export const otherAddresses = {
690
687
  },
691
688
  [NETWORKS.base.chainId]: {
692
689
  RecipeExecutor: '0xc91305DdE651c899EF8eE1D0C33E7dab1B5ABF0D',
693
- RecipeExecutorForTxSaver: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
694
690
  DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
695
691
  ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
696
692
  SFProxyEntryPoint: '0xab6e5cde983fF98Cdb0F61f5F99cb58D40D0c837',
@@ -3401,7 +3401,6 @@ declare const actionAddresses: (chainId?: null) => {
3401
3401
  declare const otherAddressesAllChains: {
3402
3402
  [x: number]: {
3403
3403
  RecipeExecutor: string;
3404
- RecipeExecutorForTxSaver: string;
3405
3404
  DFSRegistry: string;
3406
3405
  DFSProxyRegistry: string;
3407
3406
  ProxyRegistry: string;
@@ -3424,7 +3423,6 @@ declare const otherAddressesAllChains: {
3424
3423
  DefisaverLogger?: undefined;
3425
3424
  } | {
3426
3425
  RecipeExecutor: string;
3427
- RecipeExecutorForTxSaver: string;
3428
3426
  DFSRegistry: string;
3429
3427
  ProxyRegistry: string;
3430
3428
  SFProxyEntryPoint: string;
@@ -3447,7 +3445,6 @@ declare const otherAddressesAllChains: {
3447
3445
  BLUSD?: undefined;
3448
3446
  } | {
3449
3447
  RecipeExecutor: string;
3450
- RecipeExecutorForTxSaver: string;
3451
3448
  DFSRegistry: string;
3452
3449
  ProxyRegistry: string;
3453
3450
  SFProxyEntryPoint: string;
@@ -3475,7 +3472,6 @@ declare const otherAddressesAllChains: {
3475
3472
  AdminVault: string;
3476
3473
  DefisaverLogger: string;
3477
3474
  Empty: string;
3478
- RecipeExecutorForTxSaver?: undefined;
3479
3475
  DFSProxyRegistry?: undefined;
3480
3476
  ProxyRegistry?: undefined;
3481
3477
  SFProxyEntryPoint?: undefined;
@@ -3497,7 +3493,6 @@ declare const otherAddressesAllChains: {
3497
3493
  AdminVault: string;
3498
3494
  DefisaverLogger: string;
3499
3495
  Empty: string;
3500
- RecipeExecutorForTxSaver?: undefined;
3501
3496
  DFSProxyRegistry?: undefined;
3502
3497
  ProxyRegistry?: undefined;
3503
3498
  SFProxyEntryPoint?: undefined;
@@ -3518,7 +3513,6 @@ declare const otherAddressesAllChains: {
3518
3513
  };
3519
3514
  declare const otherAddresses: (chainId?: null) => {
3520
3515
  RecipeExecutor: string;
3521
- RecipeExecutorForTxSaver: string;
3522
3516
  DFSRegistry: string;
3523
3517
  DFSProxyRegistry: string;
3524
3518
  ProxyRegistry: string;
@@ -3541,7 +3535,6 @@ declare const otherAddresses: (chainId?: null) => {
3541
3535
  DefisaverLogger?: undefined;
3542
3536
  } | {
3543
3537
  RecipeExecutor: string;
3544
- RecipeExecutorForTxSaver: string;
3545
3538
  DFSRegistry: string;
3546
3539
  ProxyRegistry: string;
3547
3540
  SFProxyEntryPoint: string;
@@ -3564,7 +3557,6 @@ declare const otherAddresses: (chainId?: null) => {
3564
3557
  BLUSD?: undefined;
3565
3558
  } | {
3566
3559
  RecipeExecutor: string;
3567
- RecipeExecutorForTxSaver: string;
3568
3560
  DFSRegistry: string;
3569
3561
  ProxyRegistry: string;
3570
3562
  SFProxyEntryPoint: string;
@@ -3592,7 +3584,6 @@ declare const otherAddresses: (chainId?: null) => {
3592
3584
  AdminVault: string;
3593
3585
  DefisaverLogger: string;
3594
3586
  Empty: string;
3595
- RecipeExecutorForTxSaver?: undefined;
3596
3587
  DFSProxyRegistry?: undefined;
3597
3588
  ProxyRegistry?: undefined;
3598
3589
  SFProxyEntryPoint?: undefined;
@@ -3614,7 +3605,6 @@ declare const otherAddresses: (chainId?: null) => {
3614
3605
  AdminVault: string;
3615
3606
  DefisaverLogger: string;
3616
3607
  Empty: string;
3617
- RecipeExecutorForTxSaver?: undefined;
3618
3608
  DFSProxyRegistry?: undefined;
3619
3609
  ProxyRegistry?: undefined;
3620
3610
  SFProxyEntryPoint?: undefined;
@@ -7036,7 +7026,6 @@ declare const _default: {
7036
7026
  };
7037
7027
  otherAddresses: (chainId?: null) => {
7038
7028
  RecipeExecutor: string;
7039
- RecipeExecutorForTxSaver: string;
7040
7029
  DFSRegistry: string;
7041
7030
  DFSProxyRegistry: string;
7042
7031
  ProxyRegistry: string;
@@ -7059,7 +7048,6 @@ declare const _default: {
7059
7048
  DefisaverLogger?: undefined;
7060
7049
  } | {
7061
7050
  RecipeExecutor: string;
7062
- RecipeExecutorForTxSaver: string;
7063
7051
  DFSRegistry: string;
7064
7052
  ProxyRegistry: string;
7065
7053
  SFProxyEntryPoint: string;
@@ -7082,7 +7070,6 @@ declare const _default: {
7082
7070
  BLUSD?: undefined;
7083
7071
  } | {
7084
7072
  RecipeExecutor: string;
7085
- RecipeExecutorForTxSaver: string;
7086
7073
  DFSRegistry: string;
7087
7074
  ProxyRegistry: string;
7088
7075
  SFProxyEntryPoint: string;
@@ -7110,7 +7097,6 @@ declare const _default: {
7110
7097
  AdminVault: string;
7111
7098
  DefisaverLogger: string;
7112
7099
  Empty: string;
7113
- RecipeExecutorForTxSaver?: undefined;
7114
7100
  DFSProxyRegistry?: undefined;
7115
7101
  ProxyRegistry?: undefined;
7116
7102
  SFProxyEntryPoint?: undefined;
@@ -7132,7 +7118,6 @@ declare const _default: {
7132
7118
  AdminVault: string;
7133
7119
  DefisaverLogger: string;
7134
7120
  Empty: string;
7135
- RecipeExecutorForTxSaver?: undefined;
7136
7121
  DFSProxyRegistry?: undefined;
7137
7122
  ProxyRegistry?: undefined;
7138
7123
  SFProxyEntryPoint?: undefined;
@@ -7153,7 +7138,6 @@ declare const _default: {
7153
7138
  otherAddressesAllChains: {
7154
7139
  [x: number]: {
7155
7140
  RecipeExecutor: string;
7156
- RecipeExecutorForTxSaver: string;
7157
7141
  DFSRegistry: string;
7158
7142
  DFSProxyRegistry: string;
7159
7143
  ProxyRegistry: string;
@@ -7176,7 +7160,6 @@ declare const _default: {
7176
7160
  DefisaverLogger?: undefined;
7177
7161
  } | {
7178
7162
  RecipeExecutor: string;
7179
- RecipeExecutorForTxSaver: string;
7180
7163
  DFSRegistry: string;
7181
7164
  ProxyRegistry: string;
7182
7165
  SFProxyEntryPoint: string;
@@ -7199,7 +7182,6 @@ declare const _default: {
7199
7182
  BLUSD?: undefined;
7200
7183
  } | {
7201
7184
  RecipeExecutor: string;
7202
- RecipeExecutorForTxSaver: string;
7203
7185
  DFSRegistry: string;
7204
7186
  ProxyRegistry: string;
7205
7187
  SFProxyEntryPoint: string;
@@ -7227,7 +7209,6 @@ declare const _default: {
7227
7209
  AdminVault: string;
7228
7210
  DefisaverLogger: string;
7229
7211
  Empty: string;
7230
- RecipeExecutorForTxSaver?: undefined;
7231
7212
  DFSProxyRegistry?: undefined;
7232
7213
  ProxyRegistry?: undefined;
7233
7214
  SFProxyEntryPoint?: undefined;
@@ -7249,7 +7230,6 @@ declare const _default: {
7249
7230
  AdminVault: string;
7250
7231
  DefisaverLogger: string;
7251
7232
  Empty: string;
7252
- RecipeExecutorForTxSaver?: undefined;
7253
7233
  DFSProxyRegistry?: undefined;
7254
7234
  ProxyRegistry?: undefined;
7255
7235
  SFProxyEntryPoint?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.3.17",
3
+ "version": "1.3.18",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
package/src/Recipe.ts CHANGED
@@ -143,7 +143,7 @@ export class Recipe {
143
143
  data.shouldTakeFeeFromPosition,
144
144
  ];
145
145
  return [
146
- getAddr('RecipeExecutorForTxSaver', CONFIG.chainId),
146
+ this.recipeExecutorAddress,
147
147
  // @ts-expect-error Interface of AbiCoder is wrong :(
148
148
  AbiCoder.encodeFunctionCall(executeTaskAbi, [encodedRecipe, encodedTxSaverData]),
149
149
  ];
package/src/addresses.ts CHANGED
@@ -759,8 +759,6 @@ export const actionAddresses = {
759
759
  export const otherAddresses = {
760
760
  [NETWORKS.ethereum.chainId]: {
761
761
  RecipeExecutor: '0xbc3Fc959FeF3F12a41738f406c02198cdeE7481F',
762
- RecipeExecutorForTxSaver:
763
- '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
764
762
  DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
765
763
  DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
766
764
  ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
@@ -783,7 +781,6 @@ export const otherAddresses = {
783
781
  },
784
782
  [NETWORKS.optimism.chainId]: {
785
783
  RecipeExecutor: '0xEC891E6b5A93F5f29241De6B234a4e77A5456A1C',
786
- RecipeExecutorForTxSaver: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
787
784
  DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
788
785
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
789
786
  SFProxyEntryPoint: '0x06299D4A07E8C6D7C1aEc14Ab2F46DF05Dd9588E',
@@ -797,7 +794,6 @@ export const otherAddresses = {
797
794
  },
798
795
  [NETWORKS.arbitrum.chainId]: {
799
796
  RecipeExecutor: '0x667609f05DdC5E9Fb939eC376F07953403745cf3',
800
- RecipeExecutorForTxSaver: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
801
797
  DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
802
798
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
803
799
  SFProxyEntryPoint: '0x15D776C062bF292f8F70A81533E49adC7C06Cb69',
@@ -811,7 +807,6 @@ export const otherAddresses = {
811
807
  },
812
808
  [NETWORKS.base.chainId]: {
813
809
  RecipeExecutor: '0xc91305DdE651c899EF8eE1D0C33E7dab1B5ABF0D',
814
- RecipeExecutorForTxSaver: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
815
810
  DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
816
811
  ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
817
812
  SFProxyEntryPoint: '0xab6e5cde983fF98Cdb0F61f5F99cb58D40D0c837',
package/umd/index.js CHANGED
@@ -1200,7 +1200,7 @@ class Recipe {
1200
1200
  });
1201
1201
  var encodedRecipe = _assertClassBrand(_Recipe_brand, this, _encodeForCall).call(this)[0];
1202
1202
  var encodedTxSaverData = [data.maxTxCostInFeeToken, data.feeToken, data.tokenPriceInEth, data.deadline, data.shouldTakeFeeFromPosition];
1203
- return [(0,_addresses__WEBPACK_IMPORTED_MODULE_4__.getAddr)('RecipeExecutorForTxSaver', _config__WEBPACK_IMPORTED_MODULE_6__.CONFIG.chainId),
1203
+ return [this.recipeExecutorAddress,
1204
1204
  // @ts-expect-error Interface of AbiCoder is wrong :(
1205
1205
  web3_eth_abi__WEBPACK_IMPORTED_MODULE_0___default().encodeFunctionCall(executeTaskAbi, [encodedRecipe, encodedTxSaverData])];
1206
1206
  }
@@ -1965,7 +1965,6 @@ var actionAddresses = {
1965
1965
  var otherAddresses = {
1966
1966
  [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.ethereum.chainId]: {
1967
1967
  RecipeExecutor: '0xbc3Fc959FeF3F12a41738f406c02198cdeE7481F',
1968
- RecipeExecutorForTxSaver: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
1969
1968
  DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
1970
1969
  DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
1971
1970
  ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
@@ -1986,7 +1985,6 @@ var otherAddresses = {
1986
1985
  },
1987
1986
  [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.optimism.chainId]: {
1988
1987
  RecipeExecutor: '0xEC891E6b5A93F5f29241De6B234a4e77A5456A1C',
1989
- RecipeExecutorForTxSaver: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
1990
1988
  DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
1991
1989
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
1992
1990
  SFProxyEntryPoint: '0x06299D4A07E8C6D7C1aEc14Ab2F46DF05Dd9588E',
@@ -1998,7 +1996,6 @@ var otherAddresses = {
1998
1996
  },
1999
1997
  [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.arbitrum.chainId]: {
2000
1998
  RecipeExecutor: '0x667609f05DdC5E9Fb939eC376F07953403745cf3',
2001
- RecipeExecutorForTxSaver: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
2002
1999
  DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
2003
2000
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
2004
2001
  SFProxyEntryPoint: '0x15D776C062bF292f8F70A81533E49adC7C06Cb69',
@@ -2010,7 +2007,6 @@ var otherAddresses = {
2010
2007
  },
2011
2008
  [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.base.chainId]: {
2012
2009
  RecipeExecutor: '0xc91305DdE651c899EF8eE1D0C33E7dab1B5ABF0D',
2013
- RecipeExecutorForTxSaver: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
2014
2010
  DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
2015
2011
  ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
2016
2012
  SFProxyEntryPoint: '0xab6e5cde983fF98Cdb0F61f5F99cb58D40D0c837',