@percolatorct/sdk 1.0.0-beta.26 → 1.0.0-beta.27
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/abi/instructions.d.ts +20 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -40,7 +40,7 @@ export declare const IX_TAG: {
|
|
|
40
40
|
readonly DepositFeeCredits: 27;
|
|
41
41
|
readonly ConvertReleasedPnl: 28;
|
|
42
42
|
readonly ResolvePermissionless: 29;
|
|
43
|
-
/** @deprecated Use ResolvePermissionless */ readonly AcceptAdmin:
|
|
43
|
+
/** @deprecated Use ResolvePermissionless */ readonly AcceptAdmin: 82;
|
|
44
44
|
readonly ForceCloseResolved: 30;
|
|
45
45
|
readonly SetPythOracle: 32;
|
|
46
46
|
readonly UpdateMarkPrice: 33;
|
|
@@ -1194,3 +1194,22 @@ export interface SetLpCollateralParamsArgs {
|
|
|
1194
1194
|
ltvBps: number;
|
|
1195
1195
|
}
|
|
1196
1196
|
export declare function encodeSetLpCollateralParams(args: SetLpCollateralParamsArgs): Uint8Array;
|
|
1197
|
+
/**
|
|
1198
|
+
* AcceptAdmin (Tag 82, Phase E 2026-04-17) — complete a two-step admin transfer.
|
|
1199
|
+
*
|
|
1200
|
+
* Called by the PROPOSED new admin (the pubkey passed to UpdateAdmin with
|
|
1201
|
+
* `new_admin != default()`). The signer must match config.pending_admin
|
|
1202
|
+
* exactly. On success, header.admin is swapped to pending_admin and
|
|
1203
|
+
* pending_admin is cleared.
|
|
1204
|
+
*
|
|
1205
|
+
* Use `try_update_admin` then `try_accept_admin` for a full rotation, or
|
|
1206
|
+
* skip AcceptAdmin entirely to leave a pending transfer that the old
|
|
1207
|
+
* admin can overwrite (propose-again) or the new admin can never accept.
|
|
1208
|
+
*
|
|
1209
|
+
* Accounts:
|
|
1210
|
+
* [0] new admin (signer, must match pending_admin)
|
|
1211
|
+
* [1] slab (writable)
|
|
1212
|
+
*
|
|
1213
|
+
* Instruction data: tag(1) = 1 byte. No payload.
|
|
1214
|
+
*/
|
|
1215
|
+
export declare function encodeAcceptAdmin(): Uint8Array;
|
package/dist/index.js
CHANGED
|
@@ -234,7 +234,9 @@ var IX_TAG = {
|
|
|
234
234
|
/** PERC-314: Set dispute params (window_slots + bond_amount, admin only). */
|
|
235
235
|
SetDisputeParams: 80,
|
|
236
236
|
/** PERC-315: Set LP collateral params (enabled + ltv_bps, admin only). */
|
|
237
|
-
SetLpCollateralParams: 81
|
|
237
|
+
SetLpCollateralParams: 81,
|
|
238
|
+
/** Phase E (2026-04-17): Accept a pending admin transfer. Signer must match pending_admin. */
|
|
239
|
+
AcceptAdmin: 82
|
|
238
240
|
// 78: removed (keeper fund)
|
|
239
241
|
};
|
|
240
242
|
Object.freeze(IX_TAG);
|
|
@@ -785,6 +787,9 @@ function encodeSetLpCollateralParams(args) {
|
|
|
785
787
|
encU16(args.ltvBps)
|
|
786
788
|
);
|
|
787
789
|
}
|
|
790
|
+
function encodeAcceptAdmin() {
|
|
791
|
+
return encU8(IX_TAG.AcceptAdmin);
|
|
792
|
+
}
|
|
788
793
|
|
|
789
794
|
// src/abi/accounts.ts
|
|
790
795
|
import {
|
|
@@ -6589,6 +6594,7 @@ export {
|
|
|
6589
6594
|
encU32,
|
|
6590
6595
|
encU64,
|
|
6591
6596
|
encU8,
|
|
6597
|
+
encodeAcceptAdmin,
|
|
6592
6598
|
encodeAdminForceClose,
|
|
6593
6599
|
encodeAdvanceEpoch,
|
|
6594
6600
|
encodeAdvanceOraclePhase,
|