damm-sdk 1.4.38 → 1.4.40
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/dist/index.cjs +1201 -71
- package/dist/index.cjs.map +7 -7
- package/dist/index.js +1201 -71
- package/dist/index.js.map +7 -7
- package/dist/integrations/lagoonV2/lagoon.v2.permissions.d.ts +30 -10
- package/dist/integrations/lagoonV2/lagoon.v2.permissions.d.ts.map +1 -1
- package/dist/integrations/lagoonV2/vault.abi.d.ts +2 -2
- package/dist/integrations/pendle/pendle.d.ts +13 -24
- package/dist/integrations/pendle/pendle.d.ts.map +1 -1
- package/dist/integrations/pendle/pendle.router.abi.d.ts +3653 -3
- package/dist/integrations/pendle/pendle.router.abi.d.ts.map +1 -1
- package/dist/integrations/pendle/pendle.router.encoders.d.ts +384 -0
- package/dist/integrations/pendle/pendle.router.encoders.d.ts.map +1 -0
- package/package.json +3 -2
- package/src/integrations/lagoonV2/lagoon.v2.permissions.ts +62 -10
- package/src/integrations/lagoonV2/vault.abi.ts +2 -2
- package/src/integrations/pendle/pendle.router.abi.ts +796 -3
- package/src/integrations/pendle/pendle.router.encoders.ts +977 -0
- package/src/integrations/pendle/pendle.ts +13 -78
- package/src/lib/contractsRegistry.json +57 -27
|
@@ -44,28 +44,48 @@ export type LagoonV2Rates = Readonly<{
|
|
|
44
44
|
haircutRate: number;
|
|
45
45
|
}>;
|
|
46
46
|
/**
|
|
47
|
-
* Encodes a `settleDeposit(uint256
|
|
47
|
+
* Encodes a `settleDeposit(uint256 newTotalAssets)` call.
|
|
48
48
|
* Selector: 0xd24ca58a
|
|
49
49
|
* Role: Safe (Settler)
|
|
50
|
+
*
|
|
51
|
+
* The uint256 arg is the vault's NEW TOTAL ASSETS (NAV) — NOT an epoch. Verified
|
|
52
|
+
* against the deployed v0.6 impl (`settleDeposit` calls
|
|
53
|
+
* `ERC7540Lib.updateTotalAssets(_newTotalAssets)`) and the v0.5 contract; same
|
|
54
|
+
* selector and semantics on both, so this encoder is valid for v0.5 and v0.6.
|
|
55
|
+
*
|
|
56
|
+
* `epoch` is a deprecated alias for `newTotalAssets`, retained for backwards
|
|
57
|
+
* compatibility — prefer `newTotalAssets`.
|
|
50
58
|
*/
|
|
51
|
-
export declare const LagoonV2SettleDepositCalldata: ({ epoch }: {
|
|
52
|
-
|
|
59
|
+
export declare const LagoonV2SettleDepositCalldata: ({ newTotalAssets, epoch, }: {
|
|
60
|
+
newTotalAssets?: bigint | undefined;
|
|
61
|
+
/** @deprecated misnomer — pass `newTotalAssets` (the NAV) instead. */
|
|
62
|
+
epoch?: bigint | undefined;
|
|
53
63
|
}) => HexString;
|
|
54
|
-
export declare const lagoonV2SettleDepositTrx: ({ vault, epoch }: {
|
|
64
|
+
export declare const lagoonV2SettleDepositTrx: ({ vault, newTotalAssets, epoch, }: {
|
|
55
65
|
vault: Address;
|
|
56
|
-
|
|
66
|
+
newTotalAssets?: bigint | undefined;
|
|
67
|
+
/** @deprecated misnomer — pass `newTotalAssets` (the NAV) instead. */
|
|
68
|
+
epoch?: bigint | undefined;
|
|
57
69
|
}) => Unwrapable<Call>;
|
|
58
70
|
/**
|
|
59
|
-
* Encodes a `settleRedeem(uint256
|
|
71
|
+
* Encodes a `settleRedeem(uint256 newTotalAssets)` call.
|
|
60
72
|
* Selector: 0xa627df66
|
|
61
73
|
* Role: Safe (Settler)
|
|
74
|
+
*
|
|
75
|
+
* As with settleDeposit, the uint256 arg is the NAV (verified against the deployed
|
|
76
|
+
* v0.6 impl + v0.5 contract). `epoch` is a deprecated alias kept for backwards
|
|
77
|
+
* compatibility — prefer `newTotalAssets`.
|
|
62
78
|
*/
|
|
63
|
-
export declare const LagoonV2SettleRedeemCalldata: ({ epoch }: {
|
|
64
|
-
|
|
79
|
+
export declare const LagoonV2SettleRedeemCalldata: ({ newTotalAssets, epoch, }: {
|
|
80
|
+
newTotalAssets?: bigint | undefined;
|
|
81
|
+
/** @deprecated misnomer — pass `newTotalAssets` (the NAV) instead. */
|
|
82
|
+
epoch?: bigint | undefined;
|
|
65
83
|
}) => HexString;
|
|
66
|
-
export declare const lagoonV2SettleRedeemTrx: ({ vault, epoch }: {
|
|
84
|
+
export declare const lagoonV2SettleRedeemTrx: ({ vault, newTotalAssets, epoch, }: {
|
|
67
85
|
vault: Address;
|
|
68
|
-
|
|
86
|
+
newTotalAssets?: bigint | undefined;
|
|
87
|
+
/** @deprecated misnomer — pass `newTotalAssets` (the NAV) instead. */
|
|
88
|
+
epoch?: bigint | undefined;
|
|
69
89
|
}) => Unwrapable<Call>;
|
|
70
90
|
/**
|
|
71
91
|
* Encodes an `updateNewTotalAssets(uint256 newTotalAssets)` call.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lagoon.v2.permissions.d.ts","sourceRoot":"","sources":["../../../src/integrations/lagoonV2/lagoon.v2.permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAc,KAAK,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAO/E;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AA4BH
|
|
1
|
+
{"version":3,"file":"lagoon.v2.permissions.d.ts","sourceRoot":"","sources":["../../../src/integrations/lagoonV2/lagoon.v2.permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAc,KAAK,IAAI,EAAE,KAAK,SAAS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A4B;WAI9B,OAAO;oBACE,OAAO;MACvB,WAAW,IAAI,CAOlB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qCAAqC;wBAG1B,OAAO;MAC3B,SAMH,CAAC;AAEF,eAAO,MAAM,gCAAgC;WAIlC,OAAO;wBACM,OAAO;MAC3B,WAAW,IAAI,CAOlB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mCAAmC;sBAA8C,OAAO;MAAK,SAMzG,CAAC;AAEF,eAAO,MAAM,8BAA8B;WAIhC,OAAO;sBACI,OAAO;MACzB,WAAW,IAAI,CAOlB,CAAC"}
|
|
@@ -48,7 +48,7 @@ declare const _default: readonly [{
|
|
|
48
48
|
readonly type: "function";
|
|
49
49
|
readonly name: "settleDeposit";
|
|
50
50
|
readonly inputs: readonly [{
|
|
51
|
-
readonly name: "
|
|
51
|
+
readonly name: "newTotalAssets";
|
|
52
52
|
readonly type: "uint256";
|
|
53
53
|
readonly internalType: "uint256";
|
|
54
54
|
}];
|
|
@@ -58,7 +58,7 @@ declare const _default: readonly [{
|
|
|
58
58
|
readonly type: "function";
|
|
59
59
|
readonly name: "settleRedeem";
|
|
60
60
|
readonly inputs: readonly [{
|
|
61
|
-
readonly name: "
|
|
61
|
+
readonly name: "newTotalAssets";
|
|
62
62
|
readonly type: "uint256";
|
|
63
63
|
readonly internalType: "uint256";
|
|
64
64
|
}];
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export type PendleMerkleClaimArgs = Readonly<{
|
|
15
|
-
receiver: Address;
|
|
16
|
-
tokens: Address[];
|
|
17
|
-
totalAccrueds: bigint[];
|
|
18
|
-
proofs: HexString[][];
|
|
19
|
-
}>;
|
|
20
|
-
export declare const pendleMerkleClaimCalldata: ({ receiver, tokens, totalAccrueds, proofs, }: PendleMerkleClaimArgs) => HexString;
|
|
21
|
-
export declare const pendleMerkleClaimTrx: ({ args, distributorAddress, }: {
|
|
22
|
-
args: PendleMerkleClaimArgs;
|
|
23
|
-
distributorAddress: Address;
|
|
24
|
-
}) => Unwrapable<Call>;
|
|
1
|
+
/**
|
|
2
|
+
* Pendle encoders — re-export shim.
|
|
3
|
+
*
|
|
4
|
+
* All logic lives in `./pendle.router.encoders`. This file exists for backward
|
|
5
|
+
* compatibility: existing callers that import from `./pendle` (or from the
|
|
6
|
+
* package index which re-exports `./pendle`) continue to work unchanged.
|
|
7
|
+
*
|
|
8
|
+
* History:
|
|
9
|
+
* - Originally contained ethers v5 encoders for redeemDueInterestAndRewards + merkle claim.
|
|
10
|
+
* - Refactored [DeFi-Kit#275]: migrated to viem, all router encoders consolidated into
|
|
11
|
+
* `pendle.router.encoders.ts`. Behaviour is unchanged; only the encoding library changed.
|
|
12
|
+
*/
|
|
13
|
+
export * from "./pendle.router.encoders";
|
|
25
14
|
//# sourceMappingURL=pendle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pendle.d.ts","sourceRoot":"","sources":["../../../src/integrations/pendle/pendle.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pendle.d.ts","sourceRoot":"","sources":["../../../src/integrations/pendle/pendle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,cAAc,0BAA0B,CAAC"}
|