@kamino-finance/klend-sdk 5.10.25-beta.1 → 5.10.26-beta.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/dist/classes/index.d.ts +3 -0
- package/dist/classes/index.d.ts.map +1 -1
- package/dist/classes/index.js +3 -0
- package/dist/classes/index.js.map +1 -1
- package/dist/classes/manager.d.ts.map +1 -1
- package/dist/classes/manager.js +8 -0
- package/dist/classes/manager.js.map +1 -1
- package/dist/classes/stakePool.d.ts +8 -0
- package/dist/classes/stakePool.d.ts.map +1 -0
- package/dist/classes/stakePool.js +18 -0
- package/dist/classes/stakePool.js.map +1 -0
- package/dist/classes/standardStakePool.d.ts +254 -0
- package/dist/classes/standardStakePool.d.ts.map +1 -0
- package/dist/classes/standardStakePool.js +275 -0
- package/dist/classes/standardStakePool.js.map +1 -0
- package/dist/classes/types.d.ts +13 -1
- package/dist/classes/types.d.ts.map +1 -1
- package/dist/classes/unstakingPool.d.ts +111 -0
- package/dist/classes/unstakingPool.d.ts.map +1 -0
- package/dist/classes/unstakingPool.js +437 -0
- package/dist/classes/unstakingPool.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/accounts/PoolState.d.ts +50 -0
- package/dist/idl_codegen_unstaking_pool/accounts/PoolState.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/accounts/PoolState.js +156 -0
- package/dist/idl_codegen_unstaking_pool/accounts/PoolState.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/accounts/index.d.ts +3 -0
- package/dist/idl_codegen_unstaking_pool/accounts/index.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/accounts/index.js +6 -0
- package/dist/idl_codegen_unstaking_pool/accounts/index.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/errors/anchor.d.ts +435 -0
- package/dist/idl_codegen_unstaking_pool/errors/anchor.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/errors/anchor.js +767 -0
- package/dist/idl_codegen_unstaking_pool/errors/anchor.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/errors/custom.d.ts +163 -0
- package/dist/idl_codegen_unstaking_pool/errors/custom.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/errors/custom.js +290 -0
- package/dist/idl_codegen_unstaking_pool/errors/custom.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/errors/index.d.ts +6 -0
- package/dist/idl_codegen_unstaking_pool/errors/index.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/errors/index.js +75 -0
- package/dist/idl_codegen_unstaking_pool/errors/index.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/burn.d.ts +21 -0
- package/dist/idl_codegen_unstaking_pool/instructions/burn.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/burn.js +73 -0
- package/dist/idl_codegen_unstaking_pool/instructions/burn.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/collect.d.ts +16 -0
- package/dist/idl_codegen_unstaking_pool/instructions/collect.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/collect.js +29 -0
- package/dist/idl_codegen_unstaking_pool/instructions/collect.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/index.d.ts +11 -0
- package/dist/idl_codegen_unstaking_pool/instructions/index.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/index.js +14 -0
- package/dist/idl_codegen_unstaking_pool/instructions/index.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/initializePool.d.ts +15 -0
- package/dist/idl_codegen_unstaking_pool/instructions/initializePool.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/initializePool.js +28 -0
- package/dist/idl_codegen_unstaking_pool/instructions/initializePool.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/mint.d.ts +21 -0
- package/dist/idl_codegen_unstaking_pool/instructions/mint.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/mint.js +77 -0
- package/dist/idl_codegen_unstaking_pool/instructions/mint.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/updatePoolConfig.d.ts +13 -0
- package/dist/idl_codegen_unstaking_pool/instructions/updatePoolConfig.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/instructions/updatePoolConfig.js +58 -0
- package/dist/idl_codegen_unstaking_pool/instructions/updatePoolConfig.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/programId.d.ts +4 -0
- package/dist/idl_codegen_unstaking_pool/programId.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/programId.js +9 -0
- package/dist/idl_codegen_unstaking_pool/programId.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/types/PoolConfigField.d.ts +32 -0
- package/dist/idl_codegen_unstaking_pool/types/PoolConfigField.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/types/PoolConfigField.js +105 -0
- package/dist/idl_codegen_unstaking_pool/types/PoolConfigField.js.map +1 -0
- package/dist/idl_codegen_unstaking_pool/types/index.d.ts +5 -0
- package/dist/idl_codegen_unstaking_pool/types/index.d.ts.map +1 -0
- package/dist/idl_codegen_unstaking_pool/types/index.js +39 -0
- package/dist/idl_codegen_unstaking_pool/types/index.js.map +1 -0
- package/package.json +4 -1
- package/src/classes/index.ts +3 -0
- package/src/classes/manager.ts +15 -2
- package/src/classes/stakePool.ts +21 -0
- package/src/classes/standardStakePool.ts +361 -0
- package/src/classes/types.ts +17 -1
- package/src/classes/unstakingPool.ts +565 -0
- package/src/idl_codegen_unstaking_pool/accounts/PoolState.ts +163 -0
- package/src/idl_codegen_unstaking_pool/accounts/index.ts +2 -0
- package/src/idl_codegen_unstaking_pool/errors/anchor.ts +764 -0
- package/src/idl_codegen_unstaking_pool/errors/custom.ts +288 -0
- package/src/idl_codegen_unstaking_pool/errors/index.ts +49 -0
- package/src/idl_codegen_unstaking_pool/instructions/burn.ts +60 -0
- package/src/idl_codegen_unstaking_pool/instructions/collect.ts +43 -0
- package/src/idl_codegen_unstaking_pool/instructions/index.ts +10 -0
- package/src/idl_codegen_unstaking_pool/instructions/initializePool.ts +41 -0
- package/src/idl_codegen_unstaking_pool/instructions/mint.ts +64 -0
- package/src/idl_codegen_unstaking_pool/instructions/updatePoolConfig.ts +40 -0
- package/src/idl_codegen_unstaking_pool/programId.ts +7 -0
- package/src/idl_codegen_unstaking_pool/types/PoolConfigField.ts +85 -0
- package/src/idl_codegen_unstaking_pool/types/index.ts +6 -0
- package/src/idl_unstaking_pool.json +456 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.layout = void 0;
|
|
37
|
+
exports.burn = burn;
|
|
38
|
+
const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
39
|
+
const borsh = __importStar(require("@coral-xyz/borsh")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
40
|
+
const programId_1 = require("../programId");
|
|
41
|
+
exports.layout = borsh.struct([borsh.u64('sharesToBurn')]);
|
|
42
|
+
function burn(args, accounts, programId = programId_1.PROGRAM_ID) {
|
|
43
|
+
const keys = [
|
|
44
|
+
{ pubkey: accounts.user, isSigner: true, isWritable: false },
|
|
45
|
+
{ pubkey: accounts.userWsolToken, isSigner: false, isWritable: true },
|
|
46
|
+
{
|
|
47
|
+
pubkey: accounts.userUnstakingSolToken,
|
|
48
|
+
isSigner: false,
|
|
49
|
+
isWritable: true,
|
|
50
|
+
},
|
|
51
|
+
{ pubkey: accounts.wsolVault, isSigner: false, isWritable: true },
|
|
52
|
+
{ pubkey: accounts.wsolMint, isSigner: false, isWritable: true },
|
|
53
|
+
{ pubkey: accounts.poolState, isSigner: false, isWritable: true },
|
|
54
|
+
{ pubkey: accounts.unstakingSolMint, isSigner: false, isWritable: true },
|
|
55
|
+
{ pubkey: accounts.basePoolAuthority, isSigner: false, isWritable: true },
|
|
56
|
+
{ pubkey: accounts.systemProgram, isSigner: false, isWritable: false },
|
|
57
|
+
{
|
|
58
|
+
pubkey: accounts.unstakingSolTokenProgram,
|
|
59
|
+
isSigner: false,
|
|
60
|
+
isWritable: false,
|
|
61
|
+
},
|
|
62
|
+
{ pubkey: accounts.wsolTokenProgram, isSigner: false, isWritable: false },
|
|
63
|
+
];
|
|
64
|
+
const identifier = Buffer.from([116, 110, 29, 56, 107, 219, 42, 93]);
|
|
65
|
+
const buffer = Buffer.alloc(1000);
|
|
66
|
+
const len = exports.layout.encode({
|
|
67
|
+
sharesToBurn: args.sharesToBurn,
|
|
68
|
+
}, buffer);
|
|
69
|
+
const data = Buffer.concat([identifier, buffer]).slice(0, 8 + len);
|
|
70
|
+
const ix = new web3_js_1.TransactionInstruction({ keys, programId, data });
|
|
71
|
+
return ix;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=burn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"burn.js","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/instructions/burn.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,oBAiCC;AA3DD,6CAAiF,CAAC,wDAAwD;AAE1I,wDAA0C,CAAC,wDAAwD;AAEnG,4CAA0C;AAoB7B,QAAA,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AAEhE,SAAgB,IAAI,CAAC,IAAc,EAAE,QAAsB,EAAE,YAAuB,sBAAU;IAC5F,MAAM,IAAI,GAAuB;QAC/B,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE;QAC5D,EAAE,MAAM,EAAE,QAAQ,CAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE;QACrE;YACE,MAAM,EAAE,QAAQ,CAAC,qBAAqB;YACtC,QAAQ,EAAE,KAAK;YACf,UAAU,EAAE,IAAI;SACjB;QACD,EAAE,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,I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,gCAAsB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TransactionInstruction, PublicKey } from '@solana/web3.js';
|
|
2
|
+
export interface CollectAccounts {
|
|
3
|
+
payer: PublicKey;
|
|
4
|
+
stakeAccount: PublicKey;
|
|
5
|
+
poolState: PublicKey;
|
|
6
|
+
basePoolAuthority: PublicKey;
|
|
7
|
+
wsolVault: PublicKey;
|
|
8
|
+
wsolMint: PublicKey;
|
|
9
|
+
tokenProgram: PublicKey;
|
|
10
|
+
systemProgram: PublicKey;
|
|
11
|
+
clockProgramId: PublicKey;
|
|
12
|
+
stakeProgramId: PublicKey;
|
|
13
|
+
stakeHistoryProgramId: PublicKey;
|
|
14
|
+
}
|
|
15
|
+
export declare function collect(accounts: CollectAccounts, programId?: PublicKey): TransactionInstruction;
|
|
16
|
+
//# sourceMappingURL=collect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collect.d.ts","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/instructions/collect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAe,MAAM,iBAAiB,CAAC;AAMjF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,YAAY,EAAE,SAAS,CAAC;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,SAAS,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,SAAS,CAAC;IACxB,aAAa,EAAE,SAAS,CAAC;IACzB,cAAc,EAAE,SAAS,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC;IAC1B,qBAAqB,EAAE,SAAS,CAAC;CAClC;AAED,wBAAgB,OAAO,CAAC,QAAQ,EAAE,eAAe,EAAE,SAAS,GAAE,SAAsB,0BAsBnF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.collect = collect;
|
|
4
|
+
const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
|
+
const programId_1 = require("../programId");
|
|
6
|
+
function collect(accounts, programId = programId_1.PROGRAM_ID) {
|
|
7
|
+
const keys = [
|
|
8
|
+
{ pubkey: accounts.payer, isSigner: true, isWritable: true },
|
|
9
|
+
{ pubkey: accounts.stakeAccount, isSigner: false, isWritable: true },
|
|
10
|
+
{ pubkey: accounts.poolState, isSigner: false, isWritable: true },
|
|
11
|
+
{ pubkey: accounts.basePoolAuthority, isSigner: false, isWritable: true },
|
|
12
|
+
{ pubkey: accounts.wsolVault, isSigner: false, isWritable: true },
|
|
13
|
+
{ pubkey: accounts.wsolMint, isSigner: false, isWritable: false },
|
|
14
|
+
{ pubkey: accounts.tokenProgram, isSigner: false, isWritable: false },
|
|
15
|
+
{ pubkey: accounts.systemProgram, isSigner: false, isWritable: false },
|
|
16
|
+
{ pubkey: accounts.clockProgramId, isSigner: false, isWritable: false },
|
|
17
|
+
{ pubkey: accounts.stakeProgramId, isSigner: false, isWritable: false },
|
|
18
|
+
{
|
|
19
|
+
pubkey: accounts.stakeHistoryProgramId,
|
|
20
|
+
isSigner: false,
|
|
21
|
+
isWritable: false,
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
const identifier = Buffer.from([208, 47, 194, 155, 17, 98, 82, 236]);
|
|
25
|
+
const data = identifier;
|
|
26
|
+
const ix = new web3_js_1.TransactionInstruction({ keys, programId, data });
|
|
27
|
+
return ix;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=collect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collect.js","sourceRoot":"","sources":["../../../src/idl_codegen_un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E,KAAK;YACf,UAAU,EAAE,KAAK;SAClB;KACF,CAAC;IACF,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;IACrE,MAAM,IAAI,GAAG,UAAU,CAAC;IACxB,MAAM,EAAE,GAAG,IAAI,gCAAsB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { initializePool } from './initializePool';
|
|
2
|
+
export type { InitializePoolAccounts } from './initializePool';
|
|
3
|
+
export { mint } from './mint';
|
|
4
|
+
export type { MintArgs, MintAccounts } from './mint';
|
|
5
|
+
export { collect } from './collect';
|
|
6
|
+
export type { CollectAccounts } from './collect';
|
|
7
|
+
export { burn } from './burn';
|
|
8
|
+
export type { BurnArgs, BurnAccounts } from './burn';
|
|
9
|
+
export { updatePoolConfig } from './updatePoolConfig';
|
|
10
|
+
export type { UpdatePoolConfigArgs, UpdatePoolConfigAccounts } from './updatePoolConfig';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/instructions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePoolConfig = exports.burn = exports.collect = exports.mint = exports.initializePool = void 0;
|
|
4
|
+
var initializePool_1 = require("./initializePool");
|
|
5
|
+
Object.defineProperty(exports, "initializePool", { enumerable: true, get: function () { return initializePool_1.initializePool; } });
|
|
6
|
+
var mint_1 = require("./mint");
|
|
7
|
+
Object.defineProperty(exports, "mint", { enumerable: true, get: function () { return mint_1.mint; } });
|
|
8
|
+
var collect_1 = require("./collect");
|
|
9
|
+
Object.defineProperty(exports, "collect", { enumerable: true, get: function () { return collect_1.collect; } });
|
|
10
|
+
var burn_1 = require("./burn");
|
|
11
|
+
Object.defineProperty(exports, "burn", { enumerable: true, get: function () { return burn_1.burn; } });
|
|
12
|
+
var updatePoolConfig_1 = require("./updatePoolConfig");
|
|
13
|
+
Object.defineProperty(exports, "updatePoolConfig", { enumerable: true, get: function () { return updatePoolConfig_1.updatePoolConfig; } });
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/instructions/index.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AAEvB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AAEb,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAEhB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AAEb,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TransactionInstruction, PublicKey } from '@solana/web3.js';
|
|
2
|
+
export interface InitializePoolAccounts {
|
|
3
|
+
admin: PublicKey;
|
|
4
|
+
poolState: PublicKey;
|
|
5
|
+
unstakingSolMint: PublicKey;
|
|
6
|
+
wsolMint: PublicKey;
|
|
7
|
+
basePoolAuthority: PublicKey;
|
|
8
|
+
wsolVault: PublicKey;
|
|
9
|
+
systemProgram: PublicKey;
|
|
10
|
+
rent: PublicKey;
|
|
11
|
+
tokenProgram: PublicKey;
|
|
12
|
+
associatedTokenProgram: PublicKey;
|
|
13
|
+
}
|
|
14
|
+
export declare function initializePool(accounts: InitializePoolAccounts, programId?: PublicKey): TransactionInstruction;
|
|
15
|
+
//# sourceMappingURL=initializePool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initializePool.d.ts","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/instructions/initializePool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAe,MAAM,iBAAiB,CAAC;AAMjF,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,SAAS,CAAC;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,iBAAiB,EAAE,SAAS,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,SAAS,CAAC;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,SAAS,CAAC;IACxB,sBAAsB,EAAE,SAAS,CAAC;CACnC;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,sBAAsB,EAAE,SAAS,GAAE,SAAsB,0BAqBjG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initializePool = initializePool;
|
|
4
|
+
const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
|
+
const programId_1 = require("../programId");
|
|
6
|
+
function initializePool(accounts, programId = programId_1.PROGRAM_ID) {
|
|
7
|
+
const keys = [
|
|
8
|
+
{ pubkey: accounts.admin, isSigner: true, isWritable: true },
|
|
9
|
+
{ pubkey: accounts.poolState, isSigner: false, isWritable: true },
|
|
10
|
+
{ pubkey: accounts.unstakingSolMint, isSigner: false, isWritable: true },
|
|
11
|
+
{ pubkey: accounts.wsolMint, isSigner: false, isWritable: false },
|
|
12
|
+
{ pubkey: accounts.basePoolAuthority, isSigner: false, isWritable: false },
|
|
13
|
+
{ pubkey: accounts.wsolVault, isSigner: false, isWritable: true },
|
|
14
|
+
{ pubkey: accounts.systemProgram, isSigner: false, isWritable: false },
|
|
15
|
+
{ pubkey: accounts.rent, isSigner: false, isWritable: false },
|
|
16
|
+
{ pubkey: accounts.tokenProgram, isSigner: false, isWritable: false },
|
|
17
|
+
{
|
|
18
|
+
pubkey: accounts.associatedTokenProgram,
|
|
19
|
+
isSigner: false,
|
|
20
|
+
isWritable: false,
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
const identifier = Buffer.from([95, 180, 10, 172, 84, 174, 232, 40]);
|
|
24
|
+
const data = identifier;
|
|
25
|
+
const ix = new web3_js_1.TransactionInstruction({ keys, programId, data });
|
|
26
|
+
return ix;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=initializePool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initializePool.js","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/instructions/initializePool.ts"],"names":[],"mappings":";;AAmBA,wCAqBC;AAxCD,6CAAiF,CAAC,wDAAwD;AAI1I,4CAA0C;AAe1C,SAAgB,cAAc,CAAC,QAAgC,EAAE,YAAuB,sBAAU;IAChG,MAAM,IAAI,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AAG,IAAI,gCAAsB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TransactionInstruction, PublicKey } from '@solana/web3.js';
|
|
2
|
+
import BN from 'bn.js';
|
|
3
|
+
export interface MintArgs {
|
|
4
|
+
stakedSolToDeposit: BN;
|
|
5
|
+
}
|
|
6
|
+
export interface MintAccounts {
|
|
7
|
+
user: PublicKey;
|
|
8
|
+
actionAuthority: PublicKey;
|
|
9
|
+
userStakedSolToken: PublicKey;
|
|
10
|
+
userUnstakingSolToken: PublicKey;
|
|
11
|
+
stakedSolMint: PublicKey;
|
|
12
|
+
poolState: PublicKey;
|
|
13
|
+
unstakingSolMint: PublicKey;
|
|
14
|
+
basePoolAuthority: PublicKey;
|
|
15
|
+
systemProgram: PublicKey;
|
|
16
|
+
unstakingSolTokenProgram: PublicKey;
|
|
17
|
+
stakedSolTokenProgram: PublicKey;
|
|
18
|
+
}
|
|
19
|
+
export declare const layout: any;
|
|
20
|
+
export declare function mint(args: MintArgs, accounts: MintAccounts, programId?: PublicKey): TransactionInstruction;
|
|
21
|
+
//# sourceMappingURL=mint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mint.d.ts","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/instructions/mint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAe,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAE,MAAM,OAAO,CAAC;AAKvB,MAAM,WAAW,QAAQ;IACvB,kBAAkB,EAAE,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,eAAe,EAAE,SAAS,CAAC;IAC3B,kBAAkB,EAAE,SAAS,CAAC;IAC9B,qBAAqB,EAAE,SAAS,CAAC;IACjC,aAAa,EAAE,SAAS,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,SAAS,CAAC;IAC5B,iBAAiB,EAAE,SAAS,CAAC;IAC7B,aAAa,EAAE,SAAS,CAAC;IACzB,wBAAwB,EAAE,SAAS,CAAC;IACpC,qBAAqB,EAAE,SAAS,CAAC;CAClC;AAED,eAAO,MAAM,MAAM,KAAkD,CAAC;AAEtE,wBAAgB,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,GAAE,SAAsB,0BAqC7F"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.layout = void 0;
|
|
37
|
+
exports.mint = mint;
|
|
38
|
+
const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
39
|
+
const borsh = __importStar(require("@coral-xyz/borsh")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
40
|
+
const programId_1 = require("../programId");
|
|
41
|
+
exports.layout = borsh.struct([borsh.u64('stakedSolToDeposit')]);
|
|
42
|
+
function mint(args, accounts, programId = programId_1.PROGRAM_ID) {
|
|
43
|
+
const keys = [
|
|
44
|
+
{ pubkey: accounts.user, isSigner: true, isWritable: true },
|
|
45
|
+
{ pubkey: accounts.actionAuthority, isSigner: true, isWritable: false },
|
|
46
|
+
{ pubkey: accounts.userStakedSolToken, isSigner: false, isWritable: true },
|
|
47
|
+
{
|
|
48
|
+
pubkey: accounts.userUnstakingSolToken,
|
|
49
|
+
isSigner: false,
|
|
50
|
+
isWritable: true,
|
|
51
|
+
},
|
|
52
|
+
{ pubkey: accounts.stakedSolMint, isSigner: false, isWritable: true },
|
|
53
|
+
{ pubkey: accounts.poolState, isSigner: false, isWritable: true },
|
|
54
|
+
{ pubkey: accounts.unstakingSolMint, isSigner: false, isWritable: true },
|
|
55
|
+
{ pubkey: accounts.basePoolAuthority, isSigner: false, isWritable: true },
|
|
56
|
+
{ pubkey: accounts.systemProgram, isSigner: false, isWritable: false },
|
|
57
|
+
{
|
|
58
|
+
pubkey: accounts.unstakingSolTokenProgram,
|
|
59
|
+
isSigner: false,
|
|
60
|
+
isWritable: false,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
pubkey: accounts.stakedSolTokenProgram,
|
|
64
|
+
isSigner: false,
|
|
65
|
+
isWritable: false,
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
const identifier = Buffer.from([51, 57, 225, 47, 182, 146, 137, 166]);
|
|
69
|
+
const buffer = Buffer.alloc(1000);
|
|
70
|
+
const len = exports.layout.encode({
|
|
71
|
+
stakedSolToDeposit: args.stakedSolToDeposit,
|
|
72
|
+
}, buffer);
|
|
73
|
+
const data = Buffer.concat([identifier, buffer]).slice(0, 8 + len);
|
|
74
|
+
const ix = new web3_js_1.TransactionInstruction({ keys, programId, data });
|
|
75
|
+
return ix;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=mint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mint.js","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/instructions/mint.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,oBAqCC;AA/DD,6CAAiF,CAAC,wDAAwD;AAE1I,wDAA0C,CAAC,wDAAwD;AAEnG,4CAA0C;AAoB7B,QAAA,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAEtE,SAAgB,IAAI,CAAC,IAAc,EAAE,QAAsB,EAAE,YAAuB,sBAAU;IAC5F,MAAM,IAAI,GAAuB;QAC/B,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;QAC3D,EAAE,MAAM,EAAE,QAAQ,CAAC,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE;QACvE,EAAE,MAAM,EAAE,QAAQ,CAAC,kBAAkB,EAAE,QAAQ,EAAE,KAA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,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC;IACnE,MAAM,EAAE,GAAG,IAAI,gCAAsB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TransactionInstruction, PublicKey } from '@solana/web3.js';
|
|
2
|
+
import * as types from '../types';
|
|
3
|
+
export interface UpdatePoolConfigArgs {
|
|
4
|
+
entry: types.PoolConfigFieldKind;
|
|
5
|
+
data: Uint8Array;
|
|
6
|
+
}
|
|
7
|
+
export interface UpdatePoolConfigAccounts {
|
|
8
|
+
admin: PublicKey;
|
|
9
|
+
poolState: PublicKey;
|
|
10
|
+
}
|
|
11
|
+
export declare const layout: any;
|
|
12
|
+
export declare function updatePoolConfig(args: UpdatePoolConfigArgs, accounts: UpdatePoolConfigAccounts, programId?: PublicKey): TransactionInstruction;
|
|
13
|
+
//# sourceMappingURL=updatePoolConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePoolConfig.d.ts","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/instructions/updatePoolConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAe,MAAM,iBAAiB,CAAC;AAGjF,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAGlC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC;IACjC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,MAAM,KAA6E,CAAC;AAEjG,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,oBAAoB,EAC1B,QAAQ,EAAE,wBAAwB,EAClC,SAAS,GAAE,SAAsB,0BAkBlC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.layout = void 0;
|
|
37
|
+
exports.updatePoolConfig = updatePoolConfig;
|
|
38
|
+
const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
39
|
+
const borsh = __importStar(require("@coral-xyz/borsh")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
40
|
+
const types = __importStar(require("../types")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
41
|
+
const programId_1 = require("../programId");
|
|
42
|
+
exports.layout = borsh.struct([types.PoolConfigField.layout('entry'), borsh.vecU8('data')]);
|
|
43
|
+
function updatePoolConfig(args, accounts, programId = programId_1.PROGRAM_ID) {
|
|
44
|
+
const keys = [
|
|
45
|
+
{ pubkey: accounts.admin, isSigner: true, isWritable: false },
|
|
46
|
+
{ pubkey: accounts.poolState, isSigner: false, isWritable: true },
|
|
47
|
+
];
|
|
48
|
+
const identifier = Buffer.from([68, 236, 203, 122, 179, 62, 234, 252]);
|
|
49
|
+
const buffer = Buffer.alloc(1000);
|
|
50
|
+
const len = exports.layout.encode({
|
|
51
|
+
entry: args.entry.toEncodable(),
|
|
52
|
+
data: Buffer.from(args.data.buffer, args.data.byteOffset, args.data.length),
|
|
53
|
+
}, buffer);
|
|
54
|
+
const data = Buffer.concat([identifier, buffer]).slice(0, 8 + len);
|
|
55
|
+
const ix = new web3_js_1.TransactionInstruction({ keys, programId, data });
|
|
56
|
+
return ix;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=updatePoolConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePoolConfig.js","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/instructions/updatePoolConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,4CAqBC;AAvCD,6CAAiF,CAAC,wDAAwD;AAE1I,wDAA0C,CAAC,wDAAwD;AACnG,gDAAkC,CAAC,wDAAwD;AAC3F,4CAA0C;AAY7B,QAAA,M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C;AACZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"programId.d.ts","sourceRoot":"","sources":["../../src/idl_codegen_unstaking_pool/programId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,cAAc,WAA+D,CAAC;AAG3F,eAAO,MAAM,UAAU,EAAE,SAA0B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PROGRAM_ID = exports.PROGRAM_ID_CLI = void 0;
|
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
|
5
|
+
// Program ID passed with the cli --program-id flag when running the code generator. Do not edit, it will get overwritten.
|
|
6
|
+
exports.PROGRAM_ID_CLI = new web3_js_1.PublicKey('USo1uB8RsRuM8y8e8vbL3mwR22EzSTLyZqaJPoZvn3a');
|
|
7
|
+
// This constant will not get overwritten on subsequent code generations and it's safe to modify it's value.
|
|
8
|
+
exports.PROGRAM_ID = exports.PROGRAM_ID_CLI;
|
|
9
|
+
//# sourceMappingURL=programId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"programId.js","sourceRoot":"","sources":["../../src/idl_codegen_unstaking_pool/programId.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE5C,0HAA0H;AAC7G,QAAA,cAAc,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AAE3F,4GAA4G;AAC/F,QAAA,UAAU,GAAc,sBAAc,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as types from '../types';
|
|
2
|
+
import * as borsh from '@coral-xyz/borsh';
|
|
3
|
+
export interface ActionAuthorityJSON {
|
|
4
|
+
kind: 'ActionAuthority';
|
|
5
|
+
}
|
|
6
|
+
export declare class ActionAuthority {
|
|
7
|
+
static readonly discriminator = 0;
|
|
8
|
+
static readonly kind = "ActionAuthority";
|
|
9
|
+
readonly discriminator = 0;
|
|
10
|
+
readonly kind = "ActionAuthority";
|
|
11
|
+
toJSON(): ActionAuthorityJSON;
|
|
12
|
+
toEncodable(): {
|
|
13
|
+
ActionAuthority: {};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface LookupTableJSON {
|
|
17
|
+
kind: 'LookupTable';
|
|
18
|
+
}
|
|
19
|
+
export declare class LookupTable {
|
|
20
|
+
static readonly discriminator = 1;
|
|
21
|
+
static readonly kind = "LookupTable";
|
|
22
|
+
readonly discriminator = 1;
|
|
23
|
+
readonly kind = "LookupTable";
|
|
24
|
+
toJSON(): LookupTableJSON;
|
|
25
|
+
toEncodable(): {
|
|
26
|
+
LookupTable: {};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export declare function fromDecoded(obj: any): types.PoolConfigFieldKind;
|
|
30
|
+
export declare function fromJSON(obj: types.PoolConfigFieldJSON): types.PoolConfigFieldKind;
|
|
31
|
+
export declare function layout(property?: string): borsh.EnumLayout<unknown>;
|
|
32
|
+
//# sourceMappingURL=PoolConfigField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoolConfigField.d.ts","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/types/PoolConfigField.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAE1C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,qBAAa,eAAe;IAC1B,MAAM,CAAC,QAAQ,CAAC,aAAa,KAAK;IAClC,MAAM,CAAC,QAAQ,CAAC,IAAI,qBAAqB;IACzC,QAAQ,CAAC,aAAa,KAAK;IAC3B,QAAQ,CAAC,IAAI,qBAAqB;IAElC,MAAM,IAAI,mBAAmB;IAM7B,WAAW;;;CAKZ;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,qBAAa,WAAW;IACtB,MAAM,CAAC,QAAQ,CAAC,aAAa,KAAK;IAClC,MAAM,CAAC,QAAQ,CAAC,IAAI,iBAAiB;IACrC,QAAQ,CAAC,aAAa,KAAK;IAC3B,QAAQ,CAAC,IAAI,iBAAiB;IAE9B,MAAM,IAAI,eAAe;IAMzB,WAAW;;;CAKZ;AAGD,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,CAAC,mBAAmB,CAa/D;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CASlF;AAED,wBAAgB,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,6BAMvC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.LookupTable = exports.ActionAuthority = void 0;
|
|
37
|
+
exports.fromDecoded = fromDecoded;
|
|
38
|
+
exports.fromJSON = fromJSON;
|
|
39
|
+
exports.layout = layout;
|
|
40
|
+
const borsh = __importStar(require("@coral-xyz/borsh"));
|
|
41
|
+
class ActionAuthority {
|
|
42
|
+
static discriminator = 0;
|
|
43
|
+
static kind = 'ActionAuthority';
|
|
44
|
+
discriminator = 0;
|
|
45
|
+
kind = 'ActionAuthority';
|
|
46
|
+
toJSON() {
|
|
47
|
+
return {
|
|
48
|
+
kind: 'ActionAuthority',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
toEncodable() {
|
|
52
|
+
return {
|
|
53
|
+
ActionAuthority: {},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ActionAuthority = ActionAuthority;
|
|
58
|
+
class LookupTable {
|
|
59
|
+
static discriminator = 1;
|
|
60
|
+
static kind = 'LookupTable';
|
|
61
|
+
discriminator = 1;
|
|
62
|
+
kind = 'LookupTable';
|
|
63
|
+
toJSON() {
|
|
64
|
+
return {
|
|
65
|
+
kind: 'LookupTable',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
toEncodable() {
|
|
69
|
+
return {
|
|
70
|
+
LookupTable: {},
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.LookupTable = LookupTable;
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
76
|
+
function fromDecoded(obj) {
|
|
77
|
+
if (typeof obj !== 'object') {
|
|
78
|
+
throw new Error('Invalid enum object');
|
|
79
|
+
}
|
|
80
|
+
if ('ActionAuthority' in obj) {
|
|
81
|
+
return new ActionAuthority();
|
|
82
|
+
}
|
|
83
|
+
if ('LookupTable' in obj) {
|
|
84
|
+
return new LookupTable();
|
|
85
|
+
}
|
|
86
|
+
throw new Error('Invalid enum object');
|
|
87
|
+
}
|
|
88
|
+
function fromJSON(obj) {
|
|
89
|
+
switch (obj.kind) {
|
|
90
|
+
case 'ActionAuthority': {
|
|
91
|
+
return new ActionAuthority();
|
|
92
|
+
}
|
|
93
|
+
case 'LookupTable': {
|
|
94
|
+
return new LookupTable();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function layout(property) {
|
|
99
|
+
const ret = borsh.rustEnum([borsh.struct([], 'ActionAuthority'), borsh.struct([], 'LookupTable')]);
|
|
100
|
+
if (property !== undefined) {
|
|
101
|
+
return ret.replicate(property);
|
|
102
|
+
}
|
|
103
|
+
return ret;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=PoolConfigField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoolConfigField.js","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/types/PoolConfigField.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,kCAaC;AAED,4BASC;AAED,wBAMC;AAjFD,wDAA0C;AAM1C,MAAa,eAAe;IAC1B,MAAM,CAAU,aAAa,GAAG,CAAC,CAAC;IAClC,MAAM,CAAU,IAAI,GAAG,iBAAiB,CAAC;IAChC,aAAa,GAAG,CAAC,CAAC;IAClB,IAAI,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AAK,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACnG,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as PoolConfigField from './PoolConfigField';
|
|
2
|
+
export { PoolConfigField };
|
|
3
|
+
export type PoolConfigFieldKind = PoolConfigField.ActionAuthority | PoolConfigField.LookupTable;
|
|
4
|
+
export type PoolConfigFieldJSON = PoolConfigField.ActionAuthorityJSON | PoolConfigField.LookupTableJSON;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/idl_codegen_unstaking_pool/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,eAAe,GAAG,eAAe,CAAC,WAAW,CAAC;AAChG,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,mBAAmB,GAAG,eAAe,CAAC,eAAe,CAAC"}
|