@pendle/sdk-boros 0.4.17 → 0.4.19

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.
@@ -39,8 +39,8 @@ export declare const PROD_ADDRESSES_CONFIG: {
39
39
  readonly EXPLORER_CONTRACT_ADDRESS: "0x40808080804111c374C8F1dc78b13FB57Df93197";
40
40
  readonly CHAIN_ID: 42161;
41
41
  readonly MULTI_TOKEN_MERKLE_DISTRIBUTOR_ADDRESS: "0x580bd289c25e7f254634e6ad8a95d631393c7172";
42
- readonly MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: "0xAe94ccf0Cc9E6A783bc5ec3515f745bFaF68960A";
43
- readonly LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: "0x5fa1be763d5eb2cb4df90f557468421bd7f27fbf";
42
+ readonly MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: "0xD0808080803c59dBF8825290bca8979786C2d65B";
43
+ readonly LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: "0xD180808080402FE41711Db560B8db5C41e21Df71";
44
44
  };
45
45
  export declare const DEV_ADDRESSES_CONFIG: {
46
46
  readonly ROUTER_ADDRESS: "0x17386DF702Cc9ec208669aB3ca5b49abE5a26dF3";
package/dist/addresses.js CHANGED
@@ -14,8 +14,8 @@ const PROD_ADDRESSES = {
14
14
  EXPLORER_CONTRACT_ADDRESS: '0x40808080804111c374C8F1dc78b13FB57Df93197',
15
15
  CHAIN_ID: 42161,
16
16
  MULTI_TOKEN_MERKLE_DISTRIBUTOR_ADDRESS: '0x580bd289c25e7f254634e6ad8a95d631393c7172',
17
- MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: '0xAe94ccf0Cc9E6A783bc5ec3515f745bFaF68960A',
18
- LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: '0x5fa1be763d5eb2cb4df90f557468421bd7f27fbf',
17
+ MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: '0xD0808080803c59dBF8825290bca8979786C2d65B',
18
+ LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: '0xD180808080402FE41711Db560B8db5C41e21Df71',
19
19
  };
20
20
  const DEV_ADDRESSES = {
21
21
  ROUTER_ADDRESS: '0x17386DF702Cc9ec208669aB3ca5b49abE5a26dF3',
@@ -9,4 +9,10 @@ export declare class WrappedEth {
9
9
  gas: bigint;
10
10
  value: bigint;
11
11
  }>;
12
+ withdraw(userAddress: Address, amount: bigint): Promise<{
13
+ from: `0x${string}`;
14
+ to: string;
15
+ data: `0x${string}`;
16
+ gas: bigint;
17
+ }>;
12
18
  }
@@ -35,6 +35,22 @@ class WrappedEth {
35
35
  value: amount,
36
36
  };
37
37
  }
38
+ async withdraw(userAddress, amount) {
39
+ const data = (0, viem_1.encodeFunctionData)({
40
+ abi: abi_1.wethAbi,
41
+ functionName: 'withdraw',
42
+ args: [amount],
43
+ });
44
+ const gas = await this.wrappedEthContract.estimateGas.withdraw([amount], {
45
+ account: userAddress,
46
+ });
47
+ return {
48
+ from: userAddress,
49
+ to: constants_1.WETH_ADDRESS,
50
+ data,
51
+ gas,
52
+ };
53
+ }
38
54
  }
39
55
  exports.WrappedEth = WrappedEth;
40
56
  //# sourceMappingURL=wrapped-eth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wrapped-eth.js","sourceRoot":"","sources":["../../../src/entities/wrappedEth/wrapped-eth.ts"],"names":[],"mappings":";;;AAAA,+BAA0F;AAC1F,2CAA2C;AAC3C,yCAAuC;AACvC,wCAAuC;AACvC,+BAAgC;AAEhC,MAAa,UAAU;IACb,kBAAkB,CAAC;IAC3B;QACE,IAAI,CAAC,kBAAkB,GAAG,IAAA,kBAAW,EAAC;YACpC,OAAO,EAAE,wBAAY;YACrB,GAAG,EAAE,aAAO;YACZ,MAAM,EAAE,IAAA,yBAAkB,EAAC;gBACzB,KAAK,EAAE,iBAAQ;gBACf,SAAS,EAAE,IAAA,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C5D,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,WAAW;SACrB,CAAC,CAAC;QACH,OAAO;YACL,IAAI,EAAE,WAAW;YACjB,EAAE,EAAE,wBAAY;YAChB,IAAI;YACJ,GAAG;YACH,KAAK,EAAE,MAAM;SACd,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,WAAoB,EAAE,MAAc;QACjD,MAAM,IAAI,GAAG,IAAA,yBAAkB,EAAC;YAC9B,GAAG,EAAE,aAAO;YACZ,YAAY,EAAE,UAAU;YACxB,IAAI,EAAE,CAAC,MAAM,CAAC;SACf,CAAC,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE;YACvE,OAAO,EAAE,WAAW;SACrB,CAAC,CAAC;QACH,OAAO;YACL,IAAI,EAAE,WAAW;YACjB,EAAE,EAAE,wBAAY;YAChB,IAAI;YACJ,GAAG;SACJ,CAAC;IACJ,CAAC;CACF;AA/CD,gCA+CC"}
@@ -18,19 +18,32 @@ export type PendleContractErrorMessageHandler = {
18
18
  AuthInvalidConnectionId: () => string;
19
19
  AuthInvalidMessage: () => string;
20
20
  AuthInvalidNonce: () => string;
21
+ AuthSelectorNotAllowed: () => string;
21
22
  BOROS20NotEnoughBalance: (account: Hex, balance: bigint, value: bigint) => string;
23
+ CLOInvalidThreshold: () => string;
24
+ CLOMarketInvalidStatus: () => string;
25
+ CLOThresholdNotMet: () => string;
26
+ DeleveragerDuplicateMarketId: () => string;
27
+ DeleveragerHealthNonRisky: () => string;
28
+ DeleveragerNonZeroRemainingSize: () => string;
29
+ DeleveragerUnsatCondition: () => string;
30
+ DeleveragerWinnerInBadDebt: () => string;
22
31
  DivFailed: () => string;
23
32
  DivWadFailed: () => string;
33
+ DuplicateOracleType: () => string;
24
34
  ERC20InsufficientAllowance: (spender: Address, allowance: bigint, needed: bigint) => string;
25
35
  ERC20InsufficientBalance: (sender: Address, balance: bigint, needed: bigint) => string;
26
36
  ERC20InvalidApprover: (approver: Address) => string;
27
37
  ERC20InvalidReceiver: (receiver: Address) => string;
28
38
  ERC20InvalidSender: (sender: Address) => string;
29
39
  ERC20InvalidSpender: (spender: Address) => string;
30
- FIndexDeviationTooHigh: () => string;
31
40
  FIndexInvalidTime: () => string;
32
41
  FIndexNotDueForUpdate: () => string;
33
42
  FIndexUpdatedAtMaturity: () => string;
43
+ FailedCall: () => string;
44
+ FundingRateMismatch: () => string;
45
+ FundingTimestampMismatch: () => string;
46
+ InsufficientProfit: () => string;
34
47
  InvalidAMMAcc: () => string;
35
48
  InvalidAMMId: () => string;
36
49
  InvalidFeeRates: () => string;
@@ -39,6 +52,8 @@ export type PendleContractErrorMessageHandler = {
39
52
  InvalidNumTicks: () => string;
40
53
  InvalidObservationWindow: () => string;
41
54
  InvalidTokenId: () => string;
55
+ LiquidationAMMNotAllowed: () => string;
56
+ MHInvalidLiquidator: () => string;
42
57
  MHMarketExists: () => string;
43
58
  MHMarketNotByFactory: () => string;
44
59
  MHMarketNotExists: () => string;
@@ -58,7 +73,6 @@ export type PendleContractErrorMessageHandler = {
58
73
  MMMarketMismatch: () => string;
59
74
  MMMarketNotEntered: () => string;
60
75
  MMSimulationOnly: () => string;
61
- MMSubaccountLimitExceeded: () => string;
62
76
  MMTokenMismatch: () => string;
63
77
  MMTransferDenied: () => string;
64
78
  MarketCLO: () => string;
@@ -83,14 +97,31 @@ export type PendleContractErrorMessageHandler = {
83
97
  MathInvalidExponent: () => string;
84
98
  MathOutOfBounds: () => string;
85
99
  MulWadFailed: () => string;
100
+ NotEnoughReports: () => string;
101
+ OrderCancellerDuplicateMarketId: () => string;
102
+ OrderCancellerDuplicateOrderId: () => string;
103
+ OrderCancellerInvalidOrder: () => string;
104
+ OrderCancellerNotRisky: () => string;
86
105
  Overflow: () => string;
106
+ PauserNotRisky: () => string;
107
+ PauserTokenMismatch: () => string;
108
+ ProfitMismatch: () => string;
87
109
  SDivWadFailed: () => string;
88
110
  SMulWadFailed: () => string;
111
+ SimulationOnly: () => string;
89
112
  TradeALOAMMNotAllowed: () => string;
113
+ TradeAMMAlreadySet: () => string;
90
114
  TradeMarketIdMismatch: () => string;
115
+ TradeOnlyAMMAccount: () => string;
91
116
  TradeOnlyForIsolated: () => string;
92
117
  TradeOnlyMainAccount: () => string;
93
118
  TradeUndesiredRate: () => string;
94
119
  TradeUndesiredSide: () => string;
95
120
  Unauthorized: () => string;
121
+ WithdrawalPoliceInvalidThreshold: () => string;
122
+ WithdrawalPoliceUnsatCondition: () => string;
123
+ ZoneInvalidGlobalCooldown: () => string;
124
+ ZoneInvalidLiqSettings: () => string;
125
+ ZoneInvalidRateDeviationConfig: () => string;
126
+ ZoneMarketInvalidStatus: () => string;
96
127
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pendle/sdk-boros",
3
3
  "description": "Pendle SDK for Boros",
4
4
  "license": "MIT",
5
- "version": "0.4.17",
5
+ "version": "0.4.19",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [