@pendle/sdk-boros 1.6.4 → 1.7.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/CHANGELOG.md +14 -0
- package/dist/utils/signing/index.d.ts +1 -1
- package/dist/utils/signing/index.js +2 -1
- package/dist/utils/signing/index.js.map +1 -1
- package/dist/utils/signing/otc.d.ts +12 -9
- package/dist/utils/signing/otc.js +9 -4
- package/dist/utils/signing/otc.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @pendle/sdk-boros
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 95b7dcd: `LockBondMessage` names a `MarketAcc` owner. **Breaking for every bond-lock call site.** The struct is now `{ owner: bytes26, bondId: bytes32, amount: uint256, nonce: uint64 }` — the `account` (bytes21) and `tokenId` (uint16) fields are gone, replaced by the packed `owner`. Typehash is `0x0cb5a769c0ba6739026546b41f822584939cad9f3f81852bdcc7eef3a227f149`.
|
|
8
|
+
|
|
9
|
+
- `signLockBondMessageWithAgent({ owner, bondId, amount, nonce? })` — was `{ account, tokenId, bondId, amount, nonce? }`.
|
|
10
|
+
- `hashLockBondMessage` / the `LockBondMessage` interface / `LOCK_BOND_MESSAGE_TYPES` follow the same shape.
|
|
11
|
+
- New `deriveBondOwner({ root, accountId, tokenId, marketId, cross })` — the bytes26 to sign over.
|
|
12
|
+
|
|
13
|
+
`lockOTCBond` used to force `owner = account.toCross(tokenId)`, so a bond always left the cross account no matter which account signed the trade. The contract applies no cross check any more: the bond is locked from — and released back to — the account the party signed with, cross or isolated. That makes the marketId bits the signer's responsibility, and they must match the `cross` flag in that party's `AcceptOTCFull`; the backend re-derives the same bytes26 and rejects a mismatch as an invalid signature. Use `deriveBondOwner` rather than packing by hand.
|
|
14
|
+
|
|
15
|
+
This is a coordinated cutover with the redesigned OTC module — `lockOTCBond` / `releaseOTCBond` changed selectors, so the new shape only works against the new router.
|
|
16
|
+
|
|
3
17
|
## 1.6.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { advanceHighWaterMark, allocateNonceBase, bulkSignWithAgent, bulkSignWithAgentV2, generateCashSwapNonce, getAgentSignature, signCancelStopOrderRequest, signCancelStopOrderV2Request, signCashSwapMessage, signStopOrderRequest, signUpdateSettings, signWithAgent, type SignedAgentExecution, } from './agent';
|
|
2
2
|
export { createPendleBorosRouterDomain, EIP712_DOMAIN_TYPES, hashStopOrderRequest } from './common';
|
|
3
|
-
export { type OTCTradeReq, type AcceptOTCFullMessage, type ExecuteOTCTradeMessage, type LockBondMessage, type CancelOTCTradeMessage, type P2pDealParams, type P2pOfferParams, OTC_TRADE_REQ_TYPES, ACCEPT_OTC_FULL_MESSAGE_TYPES, EXECUTE_OTC_TRADE_MESSAGE_TYPES, LOCK_BOND_MESSAGE_TYPES, CANCEL_OTC_TRADE_MESSAGE_TYPES, generateOrderSalt, hashAcceptOTCFullMessage, hashLockBondMessage, signAcceptOTCFullMessageWithAgent, signLockBondMessageWithAgent, signCancelOTCTradeMessageWithAgent, buildP2pTrade, computeOtcTradeId, deriveBondId, } from './otc';
|
|
3
|
+
export { type OTCTradeReq, type AcceptOTCFullMessage, type ExecuteOTCTradeMessage, type LockBondMessage, type CancelOTCTradeMessage, type P2pDealParams, type P2pOfferParams, OTC_TRADE_REQ_TYPES, ACCEPT_OTC_FULL_MESSAGE_TYPES, EXECUTE_OTC_TRADE_MESSAGE_TYPES, LOCK_BOND_MESSAGE_TYPES, CANCEL_OTC_TRADE_MESSAGE_TYPES, generateOrderSalt, hashAcceptOTCFullMessage, hashLockBondMessage, signAcceptOTCFullMessageWithAgent, signLockBondMessageWithAgent, signCancelOTCTradeMessageWithAgent, buildP2pTrade, computeOtcTradeId, deriveBondId, deriveBondOwner, } from './otc';
|
|
4
4
|
export { signApproveAgentMessage, signDepositFromBoxMessage, signSetAccManagerMessage, } from './sensitive';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.signSetAccManagerMessage = exports.signDepositFromBoxMessage = exports.signApproveAgentMessage = exports.deriveBondId = exports.computeOtcTradeId = exports.buildP2pTrade = exports.signCancelOTCTradeMessageWithAgent = exports.signLockBondMessageWithAgent = exports.signAcceptOTCFullMessageWithAgent = exports.hashLockBondMessage = exports.hashAcceptOTCFullMessage = exports.generateOrderSalt = exports.CANCEL_OTC_TRADE_MESSAGE_TYPES = exports.LOCK_BOND_MESSAGE_TYPES = exports.EXECUTE_OTC_TRADE_MESSAGE_TYPES = exports.ACCEPT_OTC_FULL_MESSAGE_TYPES = exports.OTC_TRADE_REQ_TYPES = exports.hashStopOrderRequest = exports.EIP712_DOMAIN_TYPES = exports.createPendleBorosRouterDomain = exports.signWithAgent = exports.signUpdateSettings = exports.signStopOrderRequest = exports.signCashSwapMessage = exports.signCancelStopOrderV2Request = exports.signCancelStopOrderRequest = exports.getAgentSignature = exports.generateCashSwapNonce = exports.bulkSignWithAgentV2 = exports.bulkSignWithAgent = exports.allocateNonceBase = exports.advanceHighWaterMark = void 0;
|
|
3
|
+
exports.signSetAccManagerMessage = exports.signDepositFromBoxMessage = exports.signApproveAgentMessage = exports.deriveBondOwner = exports.deriveBondId = exports.computeOtcTradeId = exports.buildP2pTrade = exports.signCancelOTCTradeMessageWithAgent = exports.signLockBondMessageWithAgent = exports.signAcceptOTCFullMessageWithAgent = exports.hashLockBondMessage = exports.hashAcceptOTCFullMessage = exports.generateOrderSalt = exports.CANCEL_OTC_TRADE_MESSAGE_TYPES = exports.LOCK_BOND_MESSAGE_TYPES = exports.EXECUTE_OTC_TRADE_MESSAGE_TYPES = exports.ACCEPT_OTC_FULL_MESSAGE_TYPES = exports.OTC_TRADE_REQ_TYPES = exports.hashStopOrderRequest = exports.EIP712_DOMAIN_TYPES = exports.createPendleBorosRouterDomain = exports.signWithAgent = exports.signUpdateSettings = exports.signStopOrderRequest = exports.signCashSwapMessage = exports.signCancelStopOrderV2Request = exports.signCancelStopOrderRequest = exports.getAgentSignature = exports.generateCashSwapNonce = exports.bulkSignWithAgentV2 = exports.bulkSignWithAgent = exports.allocateNonceBase = exports.advanceHighWaterMark = void 0;
|
|
4
4
|
var agent_1 = require("./agent");
|
|
5
5
|
Object.defineProperty(exports, "advanceHighWaterMark", { enumerable: true, get: function () { return agent_1.advanceHighWaterMark; } });
|
|
6
6
|
Object.defineProperty(exports, "allocateNonceBase", { enumerable: true, get: function () { return agent_1.allocateNonceBase; } });
|
|
@@ -33,6 +33,7 @@ Object.defineProperty(exports, "signCancelOTCTradeMessageWithAgent", { enumerabl
|
|
|
33
33
|
Object.defineProperty(exports, "buildP2pTrade", { enumerable: true, get: function () { return otc_1.buildP2pTrade; } });
|
|
34
34
|
Object.defineProperty(exports, "computeOtcTradeId", { enumerable: true, get: function () { return otc_1.computeOtcTradeId; } });
|
|
35
35
|
Object.defineProperty(exports, "deriveBondId", { enumerable: true, get: function () { return otc_1.deriveBondId; } });
|
|
36
|
+
Object.defineProperty(exports, "deriveBondOwner", { enumerable: true, get: function () { return otc_1.deriveBondOwner; } });
|
|
36
37
|
var sensitive_1 = require("./sensitive");
|
|
37
38
|
Object.defineProperty(exports, "signApproveAgentMessage", { enumerable: true, get: function () { return sensitive_1.signApproveAgentMessage; } });
|
|
38
39
|
Object.defineProperty(exports, "signDepositFromBoxMessage", { enumerable: true, get: function () { return sensitive_1.signDepositFromBoxMessage; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/signing/index.ts"],"names":[],"mappings":";;;AAAA,iCAciB;AAbf,6GAAA,oBAAoB,OAAA;AACpB,0GAAA,iBAAiB,OAAA;AACjB,0GAAA,iBAAiB,OAAA;AACjB,4GAAA,mBAAm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AA;AACjB,mGAAA,YAAY,OAAA;AACZ,sGAAA,eAAe,OAAA;AAEjB,yCAIqB;AAHnB,oHAAA,uBAAuB,OAAA;AACvB,sHAAA,yBAAyB,OAAA;AACzB,qHAAA,wBAAwB,OAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Address, Hex } from 'viem';
|
|
2
|
+
import { MarketAcc, MarketId, TokenId } from '../../types';
|
|
2
3
|
export declare function generateOrderSalt(): bigint;
|
|
3
4
|
export declare const OTC_TRADE_REQ_TYPES: readonly [{
|
|
4
5
|
readonly name: "marketId";
|
|
@@ -43,11 +44,8 @@ export declare const EXECUTE_OTC_TRADE_MESSAGE_TYPES: readonly [{
|
|
|
43
44
|
readonly type: "uint64";
|
|
44
45
|
}];
|
|
45
46
|
export declare const LOCK_BOND_MESSAGE_TYPES: readonly [{
|
|
46
|
-
readonly name: "
|
|
47
|
-
readonly type: "
|
|
48
|
-
}, {
|
|
49
|
-
readonly name: "tokenId";
|
|
50
|
-
readonly type: "uint16";
|
|
47
|
+
readonly name: "owner";
|
|
48
|
+
readonly type: "bytes26";
|
|
51
49
|
}, {
|
|
52
50
|
readonly name: "bondId";
|
|
53
51
|
readonly type: "bytes32";
|
|
@@ -78,8 +76,7 @@ export interface ExecuteOTCTradeMessage {
|
|
|
78
76
|
expiry: bigint;
|
|
79
77
|
}
|
|
80
78
|
export interface LockBondMessage {
|
|
81
|
-
|
|
82
|
-
tokenId: number;
|
|
79
|
+
owner: MarketAcc;
|
|
83
80
|
bondId: Hex;
|
|
84
81
|
amount: bigint;
|
|
85
82
|
nonce: bigint;
|
|
@@ -103,8 +100,7 @@ export declare function signAcceptOTCFullMessageWithAgent(params: {
|
|
|
103
100
|
}>;
|
|
104
101
|
export declare function hashLockBondMessage(message: LockBondMessage, routerAddress?: Address, chainId?: number): Hex;
|
|
105
102
|
export declare function signLockBondMessageWithAgent(params: {
|
|
106
|
-
|
|
107
|
-
tokenId: number;
|
|
103
|
+
owner: MarketAcc;
|
|
108
104
|
bondId: Hex;
|
|
109
105
|
amount: bigint;
|
|
110
106
|
nonce?: bigint;
|
|
@@ -134,6 +130,13 @@ export declare function computeOtcTradeId(trade: {
|
|
|
134
130
|
salt: bigint | string;
|
|
135
131
|
}): Hex;
|
|
136
132
|
export declare function deriveBondId(account: Address, salt: bigint): Hex;
|
|
133
|
+
export declare function deriveBondOwner(params: {
|
|
134
|
+
root: Address;
|
|
135
|
+
accountId: number;
|
|
136
|
+
tokenId: TokenId;
|
|
137
|
+
marketId: MarketId;
|
|
138
|
+
cross: boolean;
|
|
139
|
+
}): MarketAcc;
|
|
137
140
|
export declare function signCancelOTCTradeMessageWithAgent(params: {
|
|
138
141
|
tradeId: Hex;
|
|
139
142
|
}): Promise<{
|
|
@@ -9,10 +9,13 @@ exports.signLockBondMessageWithAgent = signLockBondMessageWithAgent;
|
|
|
9
9
|
exports.buildP2pTrade = buildP2pTrade;
|
|
10
10
|
exports.computeOtcTradeId = computeOtcTradeId;
|
|
11
11
|
exports.deriveBondId = deriveBondId;
|
|
12
|
+
exports.deriveBondOwner = deriveBondOwner;
|
|
12
13
|
exports.signCancelOTCTradeMessageWithAgent = signCancelOTCTradeMessageWithAgent;
|
|
13
14
|
const node_crypto_1 = require("node:crypto");
|
|
14
15
|
const viem_1 = require("viem");
|
|
16
|
+
const constants_1 = require("../../constants");
|
|
15
17
|
const entities_1 = require("../../entities");
|
|
18
|
+
const accountLib_1 = require("../accountLib");
|
|
16
19
|
const agent_1 = require("./agent");
|
|
17
20
|
const common_1 = require("./common");
|
|
18
21
|
function generateOrderSalt() {
|
|
@@ -39,8 +42,7 @@ exports.EXECUTE_OTC_TRADE_MESSAGE_TYPES = [
|
|
|
39
42
|
{ name: 'expiry', type: 'uint64' },
|
|
40
43
|
];
|
|
41
44
|
exports.LOCK_BOND_MESSAGE_TYPES = [
|
|
42
|
-
{ name: '
|
|
43
|
-
{ name: 'tokenId', type: 'uint16' },
|
|
45
|
+
{ name: 'owner', type: 'bytes26' },
|
|
44
46
|
{ name: 'bondId', type: 'bytes32' },
|
|
45
47
|
{ name: 'amount', type: 'uint256' },
|
|
46
48
|
{ name: 'nonce', type: 'uint64' },
|
|
@@ -118,8 +120,7 @@ async function signLockBondMessageWithAgent(params) {
|
|
|
118
120
|
},
|
|
119
121
|
primaryType: 'LockBondMessage',
|
|
120
122
|
message: {
|
|
121
|
-
|
|
122
|
-
tokenId: params.tokenId,
|
|
123
|
+
owner: params.owner,
|
|
123
124
|
bondId: params.bondId,
|
|
124
125
|
amount: params.amount,
|
|
125
126
|
nonce,
|
|
@@ -153,6 +154,10 @@ function computeOtcTradeId(trade) {
|
|
|
153
154
|
function deriveBondId(account, salt) {
|
|
154
155
|
return (0, viem_1.keccak256)((0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)('address account, uint256 salt'), [account, salt]));
|
|
155
156
|
}
|
|
157
|
+
function deriveBondOwner(params) {
|
|
158
|
+
const { root, accountId, tokenId, marketId, cross } = params;
|
|
159
|
+
return accountLib_1.MarketAccLib.pack(root, accountId, tokenId, cross ? constants_1.CROSS_MARKET_ID : marketId);
|
|
160
|
+
}
|
|
156
161
|
async function signCancelOTCTradeMessageWithAgent(params) {
|
|
157
162
|
const agent = (0, entities_1.getInternalAgent)();
|
|
158
163
|
const agentAddress = await agent.getAddress();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otc.js","sourceRoot":"","sources":["../../../src/utils/signing/otc.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"otc.js","sourceRoot":"","sources":["../../../src/utils/signing/otc.ts"],"names":[],"mappings":";;;AASA,8CAGC;AAwED,4DAoBC;AAQD,8EAiCC;AAED,kDAUC;AAED,oEAgCC;AAiCD,sCAUC;AAID,8CAwBC;AAID,oCAEC;AAMD,0CASC;AAED,gFAmBC;AAhTD,6CAA0C;AAC1C,+BAA8G;AAC9G,+CAAkD;AAClD,6CAAkD;AAElD,8CAA6C;AAC7C,mCAA4C;A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