@reflectmoney/junior 1.0.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/README.md +119 -0
- package/dist/classes/JuniorTranche.d.ts +201 -0
- package/dist/classes/JuniorTranche.js +709 -0
- package/dist/classes/PdaClient.d.ts +20 -0
- package/dist/classes/PdaClient.js +68 -0
- package/dist/classes/index.d.ts +2 -0
- package/dist/classes/index.js +18 -0
- package/dist/constants/index.d.ts +22 -0
- package/dist/constants/index.js +25 -0
- package/dist/generated/accounts/asset.d.ts +38 -0
- package/dist/generated/accounts/asset.js +74 -0
- package/dist/generated/accounts/cooldown.d.ts +40 -0
- package/dist/generated/accounts/cooldown.js +79 -0
- package/dist/generated/accounts/index.d.ts +12 -0
- package/dist/generated/accounts/index.js +28 -0
- package/dist/generated/accounts/liquidityPool.d.ts +57 -0
- package/dist/generated/accounts/liquidityPool.js +81 -0
- package/dist/generated/accounts/settings.d.ts +41 -0
- package/dist/generated/accounts/settings.js +80 -0
- package/dist/generated/accounts/userPermissions.d.ts +34 -0
- package/dist/generated/accounts/userPermissions.js +70 -0
- package/dist/generated/errors/index.d.ts +8 -0
- package/dist/generated/errors/index.js +24 -0
- package/dist/generated/errors/rlp.d.ts +131 -0
- package/dist/generated/errors/rlp.js +197 -0
- package/dist/generated/index.d.ts +12 -0
- package/dist/generated/index.js +28 -0
- package/dist/generated/instructions/addAsset.d.ts +80 -0
- package/dist/generated/instructions/addAsset.js +188 -0
- package/dist/generated/instructions/createPermissionAccount.d.ts +67 -0
- package/dist/generated/instructions/createPermissionAccount.js +166 -0
- package/dist/generated/instructions/deposit.d.ts +115 -0
- package/dist/generated/instructions/deposit.js +294 -0
- package/dist/generated/instructions/forceRemoveAsset.d.ts +82 -0
- package/dist/generated/instructions/forceRemoveAsset.js +186 -0
- package/dist/generated/instructions/freezeFunctionality.d.ts +72 -0
- package/dist/generated/instructions/freezeFunctionality.js +175 -0
- package/dist/generated/instructions/index.d.ts +23 -0
- package/dist/generated/instructions/index.js +39 -0
- package/dist/generated/instructions/initializeLp.d.ts +99 -0
- package/dist/generated/instructions/initializeLp.js +230 -0
- package/dist/generated/instructions/initializePoolReserve.d.ts +83 -0
- package/dist/generated/instructions/initializePoolReserve.js +228 -0
- package/dist/generated/instructions/initializeRlp.d.ts +67 -0
- package/dist/generated/instructions/initializeRlp.js +163 -0
- package/dist/generated/instructions/requestWithdrawal.d.ts +99 -0
- package/dist/generated/instructions/requestWithdrawal.js +254 -0
- package/dist/generated/instructions/slash.d.ts +151 -0
- package/dist/generated/instructions/slash.js +212 -0
- package/dist/generated/instructions/swap.d.ts +119 -0
- package/dist/generated/instructions/swap.js +309 -0
- package/dist/generated/instructions/updateActionRole.d.ts +76 -0
- package/dist/generated/instructions/updateActionRole.js +174 -0
- package/dist/generated/instructions/updateDepositCap.d.ts +71 -0
- package/dist/generated/instructions/updateDepositCap.js +156 -0
- package/dist/generated/instructions/updateOracle.d.ts +66 -0
- package/dist/generated/instructions/updateOracle.js +151 -0
- package/dist/generated/instructions/updateRoleHolder.d.ts +80 -0
- package/dist/generated/instructions/updateRoleHolder.js +185 -0
- package/dist/generated/instructions/withdraw.d.ts +95 -0
- package/dist/generated/instructions/withdraw.js +235 -0
- package/dist/generated/programs/index.d.ts +8 -0
- package/dist/generated/programs/index.js +24 -0
- package/dist/generated/programs/rlp.d.ts +75 -0
- package/dist/generated/programs/rlp.js +233 -0
- package/dist/generated/shared/index.d.ts +49 -0
- package/dist/generated/shared/index.js +94 -0
- package/dist/generated/types/accessControl.d.ts +20 -0
- package/dist/generated/types/accessControl.js +29 -0
- package/dist/generated/types/accessLevel.d.ts +16 -0
- package/dist/generated/types/accessLevel.js +28 -0
- package/dist/generated/types/accessMap.d.ts +20 -0
- package/dist/generated/types/accessMap.js +35 -0
- package/dist/generated/types/action.d.ts +32 -0
- package/dist/generated/types/action.js +44 -0
- package/dist/generated/types/actionMapping.d.ts +22 -0
- package/dist/generated/types/actionMapping.js +31 -0
- package/dist/generated/types/addAssetEvent.d.ts +17 -0
- package/dist/generated/types/addAssetEvent.js +30 -0
- package/dist/generated/types/createPermissionAccountEvent.d.ts +16 -0
- package/dist/generated/types/createPermissionAccountEvent.js +28 -0
- package/dist/generated/types/depositEvent.d.ts +27 -0
- package/dist/generated/types/depositEvent.js +36 -0
- package/dist/generated/types/depositRewardEvent.d.ts +21 -0
- package/dist/generated/types/depositRewardEvent.js +30 -0
- package/dist/generated/types/forceRemoveAssetEvent.d.ts +18 -0
- package/dist/generated/types/forceRemoveAssetEvent.js +32 -0
- package/dist/generated/types/freezeProtocolActionEvent.d.ts +20 -0
- package/dist/generated/types/freezeProtocolActionEvent.js +29 -0
- package/dist/generated/types/index.d.ts +32 -0
- package/dist/generated/types/index.js +48 -0
- package/dist/generated/types/initializeLiquidityPoolEvent.d.ts +17 -0
- package/dist/generated/types/initializeLiquidityPoolEvent.js +30 -0
- package/dist/generated/types/initializeRlpEvent.d.ts +15 -0
- package/dist/generated/types/initializeRlpEvent.js +22 -0
- package/dist/generated/types/killSwitch.d.ts +15 -0
- package/dist/generated/types/killSwitch.js +22 -0
- package/dist/generated/types/levelRoles.d.ts +18 -0
- package/dist/generated/types/levelRoles.js +23 -0
- package/dist/generated/types/oracle.d.ts +25 -0
- package/dist/generated/types/oracle.js +56 -0
- package/dist/generated/types/requestWithdrawEvent.d.ts +21 -0
- package/dist/generated/types/requestWithdrawEvent.js +30 -0
- package/dist/generated/types/role.d.ts +21 -0
- package/dist/generated/types/role.js +33 -0
- package/dist/generated/types/slashEvent.d.ts +27 -0
- package/dist/generated/types/slashEvent.js +36 -0
- package/dist/generated/types/swapEvent.d.ts +23 -0
- package/dist/generated/types/swapEvent.js +32 -0
- package/dist/generated/types/update.d.ts +16 -0
- package/dist/generated/types/update.js +28 -0
- package/dist/generated/types/updateActionRoleEvent.d.ts +22 -0
- package/dist/generated/types/updateActionRoleEvent.js +31 -0
- package/dist/generated/types/updateDepositCapEvent.d.ts +21 -0
- package/dist/generated/types/updateDepositCapEvent.js +30 -0
- package/dist/generated/types/updateOracleEvent.d.ts +18 -0
- package/dist/generated/types/updateOracleEvent.js +32 -0
- package/dist/generated/types/updateRoleHolderEvent.d.ts +22 -0
- package/dist/generated/types/updateRoleHolderEvent.js +31 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +19 -0
- package/package.json +41 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.Action = void 0;
|
|
11
|
+
exports.getActionEncoder = getActionEncoder;
|
|
12
|
+
exports.getActionDecoder = getActionDecoder;
|
|
13
|
+
exports.getActionCodec = getActionCodec;
|
|
14
|
+
const kit_1 = require("@solana/kit");
|
|
15
|
+
var Action;
|
|
16
|
+
(function (Action) {
|
|
17
|
+
Action[Action["Deposit"] = 0] = "Deposit";
|
|
18
|
+
Action[Action["Withdraw"] = 1] = "Withdraw";
|
|
19
|
+
Action[Action["Slash"] = 2] = "Slash";
|
|
20
|
+
Action[Action["Swap"] = 3] = "Swap";
|
|
21
|
+
Action[Action["FreezeDeposit"] = 4] = "FreezeDeposit";
|
|
22
|
+
Action[Action["FreezeWithdraw"] = 5] = "FreezeWithdraw";
|
|
23
|
+
Action[Action["FreezeSlash"] = 6] = "FreezeSlash";
|
|
24
|
+
Action[Action["FreezeSwap"] = 7] = "FreezeSwap";
|
|
25
|
+
Action[Action["InitializeLiquidityPool"] = 8] = "InitializeLiquidityPool";
|
|
26
|
+
Action[Action["AddAsset"] = 9] = "AddAsset";
|
|
27
|
+
Action[Action["UpdateDepositCap"] = 10] = "UpdateDepositCap";
|
|
28
|
+
Action[Action["DepositRewards"] = 11] = "DepositRewards";
|
|
29
|
+
Action[Action["Management"] = 12] = "Management";
|
|
30
|
+
Action[Action["SuspendDeposits"] = 13] = "SuspendDeposits";
|
|
31
|
+
Action[Action["UpdateRole"] = 14] = "UpdateRole";
|
|
32
|
+
Action[Action["UpdateAction"] = 15] = "UpdateAction";
|
|
33
|
+
Action[Action["UpdateOracle"] = 16] = "UpdateOracle";
|
|
34
|
+
Action[Action["RemovePoolAsset"] = 17] = "RemovePoolAsset";
|
|
35
|
+
})(Action || (exports.Action = Action = {}));
|
|
36
|
+
function getActionEncoder() {
|
|
37
|
+
return (0, kit_1.getEnumEncoder)(Action);
|
|
38
|
+
}
|
|
39
|
+
function getActionDecoder() {
|
|
40
|
+
return (0, kit_1.getEnumDecoder)(Action);
|
|
41
|
+
}
|
|
42
|
+
function getActionCodec() {
|
|
43
|
+
return (0, kit_1.combineCodec)(getActionEncoder(), getActionDecoder());
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
import { type Action, type ActionArgs, type Role, type RoleArgs } from ".";
|
|
10
|
+
export type ActionMapping = {
|
|
11
|
+
action: Action;
|
|
12
|
+
allowedRoles: Array<Role>;
|
|
13
|
+
roleCount: number;
|
|
14
|
+
};
|
|
15
|
+
export type ActionMappingArgs = {
|
|
16
|
+
action: ActionArgs;
|
|
17
|
+
allowedRoles: Array<RoleArgs>;
|
|
18
|
+
roleCount: number;
|
|
19
|
+
};
|
|
20
|
+
export declare function getActionMappingEncoder(): FixedSizeEncoder<ActionMappingArgs>;
|
|
21
|
+
export declare function getActionMappingDecoder(): FixedSizeDecoder<ActionMapping>;
|
|
22
|
+
export declare function getActionMappingCodec(): FixedSizeCodec<ActionMappingArgs, ActionMapping>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getActionMappingEncoder = getActionMappingEncoder;
|
|
11
|
+
exports.getActionMappingDecoder = getActionMappingDecoder;
|
|
12
|
+
exports.getActionMappingCodec = getActionMappingCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
const _1 = require(".");
|
|
15
|
+
function getActionMappingEncoder() {
|
|
16
|
+
return (0, kit_1.getStructEncoder)([
|
|
17
|
+
["action", (0, _1.getActionEncoder)()],
|
|
18
|
+
["allowedRoles", (0, kit_1.getArrayEncoder)((0, _1.getRoleEncoder)(), { size: 18 })],
|
|
19
|
+
["roleCount", (0, kit_1.getU8Encoder)()],
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
22
|
+
function getActionMappingDecoder() {
|
|
23
|
+
return (0, kit_1.getStructDecoder)([
|
|
24
|
+
["action", (0, _1.getActionDecoder)()],
|
|
25
|
+
["allowedRoles", (0, kit_1.getArrayDecoder)((0, _1.getRoleDecoder)(), { size: 18 })],
|
|
26
|
+
["roleCount", (0, kit_1.getU8Decoder)()],
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
function getActionMappingCodec() {
|
|
30
|
+
return (0, kit_1.combineCodec)(getActionMappingEncoder(), getActionMappingDecoder());
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export type AddAssetEvent = {
|
|
10
|
+
admin: Address;
|
|
11
|
+
asset: Address;
|
|
12
|
+
oracle: Address;
|
|
13
|
+
};
|
|
14
|
+
export type AddAssetEventArgs = AddAssetEvent;
|
|
15
|
+
export declare function getAddAssetEventEncoder(): FixedSizeEncoder<AddAssetEventArgs>;
|
|
16
|
+
export declare function getAddAssetEventDecoder(): FixedSizeDecoder<AddAssetEvent>;
|
|
17
|
+
export declare function getAddAssetEventCodec(): FixedSizeCodec<AddAssetEventArgs, AddAssetEvent>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getAddAssetEventEncoder = getAddAssetEventEncoder;
|
|
11
|
+
exports.getAddAssetEventDecoder = getAddAssetEventDecoder;
|
|
12
|
+
exports.getAddAssetEventCodec = getAddAssetEventCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getAddAssetEventEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([
|
|
16
|
+
["admin", (0, kit_1.getAddressEncoder)()],
|
|
17
|
+
["asset", (0, kit_1.getAddressEncoder)()],
|
|
18
|
+
["oracle", (0, kit_1.getAddressEncoder)()],
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
function getAddAssetEventDecoder() {
|
|
22
|
+
return (0, kit_1.getStructDecoder)([
|
|
23
|
+
["admin", (0, kit_1.getAddressDecoder)()],
|
|
24
|
+
["asset", (0, kit_1.getAddressDecoder)()],
|
|
25
|
+
["oracle", (0, kit_1.getAddressDecoder)()],
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
function getAddAssetEventCodec() {
|
|
29
|
+
return (0, kit_1.combineCodec)(getAddAssetEventEncoder(), getAddAssetEventDecoder());
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export type CreatePermissionAccountEvent = {
|
|
10
|
+
admin: Address;
|
|
11
|
+
newAdmin: Address;
|
|
12
|
+
};
|
|
13
|
+
export type CreatePermissionAccountEventArgs = CreatePermissionAccountEvent;
|
|
14
|
+
export declare function getCreatePermissionAccountEventEncoder(): FixedSizeEncoder<CreatePermissionAccountEventArgs>;
|
|
15
|
+
export declare function getCreatePermissionAccountEventDecoder(): FixedSizeDecoder<CreatePermissionAccountEvent>;
|
|
16
|
+
export declare function getCreatePermissionAccountEventCodec(): FixedSizeCodec<CreatePermissionAccountEventArgs, CreatePermissionAccountEvent>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getCreatePermissionAccountEventEncoder = getCreatePermissionAccountEventEncoder;
|
|
11
|
+
exports.getCreatePermissionAccountEventDecoder = getCreatePermissionAccountEventDecoder;
|
|
12
|
+
exports.getCreatePermissionAccountEventCodec = getCreatePermissionAccountEventCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getCreatePermissionAccountEventEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([
|
|
16
|
+
["admin", (0, kit_1.getAddressEncoder)()],
|
|
17
|
+
["newAdmin", (0, kit_1.getAddressEncoder)()],
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
20
|
+
function getCreatePermissionAccountEventDecoder() {
|
|
21
|
+
return (0, kit_1.getStructDecoder)([
|
|
22
|
+
["admin", (0, kit_1.getAddressDecoder)()],
|
|
23
|
+
["newAdmin", (0, kit_1.getAddressDecoder)()],
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
function getCreatePermissionAccountEventCodec() {
|
|
27
|
+
return (0, kit_1.combineCodec)(getCreatePermissionAccountEventEncoder(), getCreatePermissionAccountEventDecoder());
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export type DepositEvent = {
|
|
10
|
+
from: Address;
|
|
11
|
+
liquidityPoolId: number;
|
|
12
|
+
asset: Address;
|
|
13
|
+
amountIn: bigint;
|
|
14
|
+
amountOut: bigint;
|
|
15
|
+
usdValue: bigint;
|
|
16
|
+
};
|
|
17
|
+
export type DepositEventArgs = {
|
|
18
|
+
from: Address;
|
|
19
|
+
liquidityPoolId: number;
|
|
20
|
+
asset: Address;
|
|
21
|
+
amountIn: number | bigint;
|
|
22
|
+
amountOut: number | bigint;
|
|
23
|
+
usdValue: number | bigint;
|
|
24
|
+
};
|
|
25
|
+
export declare function getDepositEventEncoder(): FixedSizeEncoder<DepositEventArgs>;
|
|
26
|
+
export declare function getDepositEventDecoder(): FixedSizeDecoder<DepositEvent>;
|
|
27
|
+
export declare function getDepositEventCodec(): FixedSizeCodec<DepositEventArgs, DepositEvent>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getDepositEventEncoder = getDepositEventEncoder;
|
|
11
|
+
exports.getDepositEventDecoder = getDepositEventDecoder;
|
|
12
|
+
exports.getDepositEventCodec = getDepositEventCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getDepositEventEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([
|
|
16
|
+
["from", (0, kit_1.getAddressEncoder)()],
|
|
17
|
+
["liquidityPoolId", (0, kit_1.getU8Encoder)()],
|
|
18
|
+
["asset", (0, kit_1.getAddressEncoder)()],
|
|
19
|
+
["amountIn", (0, kit_1.getU64Encoder)()],
|
|
20
|
+
["amountOut", (0, kit_1.getU64Encoder)()],
|
|
21
|
+
["usdValue", (0, kit_1.getU128Encoder)()],
|
|
22
|
+
]);
|
|
23
|
+
}
|
|
24
|
+
function getDepositEventDecoder() {
|
|
25
|
+
return (0, kit_1.getStructDecoder)([
|
|
26
|
+
["from", (0, kit_1.getAddressDecoder)()],
|
|
27
|
+
["liquidityPoolId", (0, kit_1.getU8Decoder)()],
|
|
28
|
+
["asset", (0, kit_1.getAddressDecoder)()],
|
|
29
|
+
["amountIn", (0, kit_1.getU64Decoder)()],
|
|
30
|
+
["amountOut", (0, kit_1.getU64Decoder)()],
|
|
31
|
+
["usdValue", (0, kit_1.getU128Decoder)()],
|
|
32
|
+
]);
|
|
33
|
+
}
|
|
34
|
+
function getDepositEventCodec() {
|
|
35
|
+
return (0, kit_1.combineCodec)(getDepositEventEncoder(), getDepositEventDecoder());
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export type DepositRewardEvent = {
|
|
10
|
+
authority: Address;
|
|
11
|
+
asset: Address;
|
|
12
|
+
amount: bigint;
|
|
13
|
+
};
|
|
14
|
+
export type DepositRewardEventArgs = {
|
|
15
|
+
authority: Address;
|
|
16
|
+
asset: Address;
|
|
17
|
+
amount: number | bigint;
|
|
18
|
+
};
|
|
19
|
+
export declare function getDepositRewardEventEncoder(): FixedSizeEncoder<DepositRewardEventArgs>;
|
|
20
|
+
export declare function getDepositRewardEventDecoder(): FixedSizeDecoder<DepositRewardEvent>;
|
|
21
|
+
export declare function getDepositRewardEventCodec(): FixedSizeCodec<DepositRewardEventArgs, DepositRewardEvent>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getDepositRewardEventEncoder = getDepositRewardEventEncoder;
|
|
11
|
+
exports.getDepositRewardEventDecoder = getDepositRewardEventDecoder;
|
|
12
|
+
exports.getDepositRewardEventCodec = getDepositRewardEventCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getDepositRewardEventEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([
|
|
16
|
+
["authority", (0, kit_1.getAddressEncoder)()],
|
|
17
|
+
["asset", (0, kit_1.getAddressEncoder)()],
|
|
18
|
+
["amount", (0, kit_1.getU64Encoder)()],
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
function getDepositRewardEventDecoder() {
|
|
22
|
+
return (0, kit_1.getStructDecoder)([
|
|
23
|
+
["authority", (0, kit_1.getAddressDecoder)()],
|
|
24
|
+
["asset", (0, kit_1.getAddressDecoder)()],
|
|
25
|
+
["amount", (0, kit_1.getU64Decoder)()],
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
function getDepositRewardEventCodec() {
|
|
29
|
+
return (0, kit_1.combineCodec)(getDepositRewardEventEncoder(), getDepositRewardEventDecoder());
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export type ForceRemoveAssetEvent = {
|
|
10
|
+
admin: Address;
|
|
11
|
+
liquidityPool: Address;
|
|
12
|
+
asset: Address;
|
|
13
|
+
assetIndex: number;
|
|
14
|
+
};
|
|
15
|
+
export type ForceRemoveAssetEventArgs = ForceRemoveAssetEvent;
|
|
16
|
+
export declare function getForceRemoveAssetEventEncoder(): FixedSizeEncoder<ForceRemoveAssetEventArgs>;
|
|
17
|
+
export declare function getForceRemoveAssetEventDecoder(): FixedSizeDecoder<ForceRemoveAssetEvent>;
|
|
18
|
+
export declare function getForceRemoveAssetEventCodec(): FixedSizeCodec<ForceRemoveAssetEventArgs, ForceRemoveAssetEvent>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getForceRemoveAssetEventEncoder = getForceRemoveAssetEventEncoder;
|
|
11
|
+
exports.getForceRemoveAssetEventDecoder = getForceRemoveAssetEventDecoder;
|
|
12
|
+
exports.getForceRemoveAssetEventCodec = getForceRemoveAssetEventCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getForceRemoveAssetEventEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([
|
|
16
|
+
["admin", (0, kit_1.getAddressEncoder)()],
|
|
17
|
+
["liquidityPool", (0, kit_1.getAddressEncoder)()],
|
|
18
|
+
["asset", (0, kit_1.getAddressEncoder)()],
|
|
19
|
+
["assetIndex", (0, kit_1.getU8Encoder)()],
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
22
|
+
function getForceRemoveAssetEventDecoder() {
|
|
23
|
+
return (0, kit_1.getStructDecoder)([
|
|
24
|
+
["admin", (0, kit_1.getAddressDecoder)()],
|
|
25
|
+
["liquidityPool", (0, kit_1.getAddressDecoder)()],
|
|
26
|
+
["asset", (0, kit_1.getAddressDecoder)()],
|
|
27
|
+
["assetIndex", (0, kit_1.getU8Decoder)()],
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
30
|
+
function getForceRemoveAssetEventCodec() {
|
|
31
|
+
return (0, kit_1.combineCodec)(getForceRemoveAssetEventEncoder(), getForceRemoveAssetEventDecoder());
|
|
32
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
import { type Action, type ActionArgs } from ".";
|
|
10
|
+
export type FreezeProtocolActionEvent = {
|
|
11
|
+
action: Action;
|
|
12
|
+
freeze: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type FreezeProtocolActionEventArgs = {
|
|
15
|
+
action: ActionArgs;
|
|
16
|
+
freeze: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function getFreezeProtocolActionEventEncoder(): FixedSizeEncoder<FreezeProtocolActionEventArgs>;
|
|
19
|
+
export declare function getFreezeProtocolActionEventDecoder(): FixedSizeDecoder<FreezeProtocolActionEvent>;
|
|
20
|
+
export declare function getFreezeProtocolActionEventCodec(): FixedSizeCodec<FreezeProtocolActionEventArgs, FreezeProtocolActionEvent>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getFreezeProtocolActionEventEncoder = getFreezeProtocolActionEventEncoder;
|
|
11
|
+
exports.getFreezeProtocolActionEventDecoder = getFreezeProtocolActionEventDecoder;
|
|
12
|
+
exports.getFreezeProtocolActionEventCodec = getFreezeProtocolActionEventCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
const _1 = require(".");
|
|
15
|
+
function getFreezeProtocolActionEventEncoder() {
|
|
16
|
+
return (0, kit_1.getStructEncoder)([
|
|
17
|
+
["action", (0, _1.getActionEncoder)()],
|
|
18
|
+
["freeze", (0, kit_1.getBooleanEncoder)()],
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
function getFreezeProtocolActionEventDecoder() {
|
|
22
|
+
return (0, kit_1.getStructDecoder)([
|
|
23
|
+
["action", (0, _1.getActionDecoder)()],
|
|
24
|
+
["freeze", (0, kit_1.getBooleanDecoder)()],
|
|
25
|
+
]);
|
|
26
|
+
}
|
|
27
|
+
function getFreezeProtocolActionEventCodec() {
|
|
28
|
+
return (0, kit_1.combineCodec)(getFreezeProtocolActionEventEncoder(), getFreezeProtocolActionEventDecoder());
|
|
29
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
export * from "./accessControl";
|
|
9
|
+
export * from "./accessLevel";
|
|
10
|
+
export * from "./accessMap";
|
|
11
|
+
export * from "./action";
|
|
12
|
+
export * from "./actionMapping";
|
|
13
|
+
export * from "./addAssetEvent";
|
|
14
|
+
export * from "./createPermissionAccountEvent";
|
|
15
|
+
export * from "./depositEvent";
|
|
16
|
+
export * from "./depositRewardEvent";
|
|
17
|
+
export * from "./forceRemoveAssetEvent";
|
|
18
|
+
export * from "./freezeProtocolActionEvent";
|
|
19
|
+
export * from "./initializeLiquidityPoolEvent";
|
|
20
|
+
export * from "./initializeRlpEvent";
|
|
21
|
+
export * from "./killSwitch";
|
|
22
|
+
export * from "./levelRoles";
|
|
23
|
+
export * from "./oracle";
|
|
24
|
+
export * from "./requestWithdrawEvent";
|
|
25
|
+
export * from "./role";
|
|
26
|
+
export * from "./slashEvent";
|
|
27
|
+
export * from "./swapEvent";
|
|
28
|
+
export * from "./update";
|
|
29
|
+
export * from "./updateActionRoleEvent";
|
|
30
|
+
export * from "./updateDepositCapEvent";
|
|
31
|
+
export * from "./updateOracleEvent";
|
|
32
|
+
export * from "./updateRoleHolderEvent";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
__exportStar(require("./accessControl"), exports);
|
|
25
|
+
__exportStar(require("./accessLevel"), exports);
|
|
26
|
+
__exportStar(require("./accessMap"), exports);
|
|
27
|
+
__exportStar(require("./action"), exports);
|
|
28
|
+
__exportStar(require("./actionMapping"), exports);
|
|
29
|
+
__exportStar(require("./addAssetEvent"), exports);
|
|
30
|
+
__exportStar(require("./createPermissionAccountEvent"), exports);
|
|
31
|
+
__exportStar(require("./depositEvent"), exports);
|
|
32
|
+
__exportStar(require("./depositRewardEvent"), exports);
|
|
33
|
+
__exportStar(require("./forceRemoveAssetEvent"), exports);
|
|
34
|
+
__exportStar(require("./freezeProtocolActionEvent"), exports);
|
|
35
|
+
__exportStar(require("./initializeLiquidityPoolEvent"), exports);
|
|
36
|
+
__exportStar(require("./initializeRlpEvent"), exports);
|
|
37
|
+
__exportStar(require("./killSwitch"), exports);
|
|
38
|
+
__exportStar(require("./levelRoles"), exports);
|
|
39
|
+
__exportStar(require("./oracle"), exports);
|
|
40
|
+
__exportStar(require("./requestWithdrawEvent"), exports);
|
|
41
|
+
__exportStar(require("./role"), exports);
|
|
42
|
+
__exportStar(require("./slashEvent"), exports);
|
|
43
|
+
__exportStar(require("./swapEvent"), exports);
|
|
44
|
+
__exportStar(require("./update"), exports);
|
|
45
|
+
__exportStar(require("./updateActionRoleEvent"), exports);
|
|
46
|
+
__exportStar(require("./updateDepositCapEvent"), exports);
|
|
47
|
+
__exportStar(require("./updateOracleEvent"), exports);
|
|
48
|
+
__exportStar(require("./updateRoleHolderEvent"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export type InitializeLiquidityPoolEvent = {
|
|
10
|
+
admin: Address;
|
|
11
|
+
liquidityPool: Address;
|
|
12
|
+
lpToken: Address;
|
|
13
|
+
};
|
|
14
|
+
export type InitializeLiquidityPoolEventArgs = InitializeLiquidityPoolEvent;
|
|
15
|
+
export declare function getInitializeLiquidityPoolEventEncoder(): FixedSizeEncoder<InitializeLiquidityPoolEventArgs>;
|
|
16
|
+
export declare function getInitializeLiquidityPoolEventDecoder(): FixedSizeDecoder<InitializeLiquidityPoolEvent>;
|
|
17
|
+
export declare function getInitializeLiquidityPoolEventCodec(): FixedSizeCodec<InitializeLiquidityPoolEventArgs, InitializeLiquidityPoolEvent>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getInitializeLiquidityPoolEventEncoder = getInitializeLiquidityPoolEventEncoder;
|
|
11
|
+
exports.getInitializeLiquidityPoolEventDecoder = getInitializeLiquidityPoolEventDecoder;
|
|
12
|
+
exports.getInitializeLiquidityPoolEventCodec = getInitializeLiquidityPoolEventCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getInitializeLiquidityPoolEventEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([
|
|
16
|
+
["admin", (0, kit_1.getAddressEncoder)()],
|
|
17
|
+
["liquidityPool", (0, kit_1.getAddressEncoder)()],
|
|
18
|
+
["lpToken", (0, kit_1.getAddressEncoder)()],
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
function getInitializeLiquidityPoolEventDecoder() {
|
|
22
|
+
return (0, kit_1.getStructDecoder)([
|
|
23
|
+
["admin", (0, kit_1.getAddressDecoder)()],
|
|
24
|
+
["liquidityPool", (0, kit_1.getAddressDecoder)()],
|
|
25
|
+
["lpToken", (0, kit_1.getAddressDecoder)()],
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
function getInitializeLiquidityPoolEventCodec() {
|
|
29
|
+
return (0, kit_1.combineCodec)(getInitializeLiquidityPoolEventEncoder(), getInitializeLiquidityPoolEventDecoder());
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export type InitializeRlpEvent = {
|
|
10
|
+
caller: Address;
|
|
11
|
+
};
|
|
12
|
+
export type InitializeRlpEventArgs = InitializeRlpEvent;
|
|
13
|
+
export declare function getInitializeRlpEventEncoder(): FixedSizeEncoder<InitializeRlpEventArgs>;
|
|
14
|
+
export declare function getInitializeRlpEventDecoder(): FixedSizeDecoder<InitializeRlpEvent>;
|
|
15
|
+
export declare function getInitializeRlpEventCodec(): FixedSizeCodec<InitializeRlpEventArgs, InitializeRlpEvent>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getInitializeRlpEventEncoder = getInitializeRlpEventEncoder;
|
|
11
|
+
exports.getInitializeRlpEventDecoder = getInitializeRlpEventDecoder;
|
|
12
|
+
exports.getInitializeRlpEventCodec = getInitializeRlpEventCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getInitializeRlpEventEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([["caller", (0, kit_1.getAddressEncoder)()]]);
|
|
16
|
+
}
|
|
17
|
+
function getInitializeRlpEventDecoder() {
|
|
18
|
+
return (0, kit_1.getStructDecoder)([["caller", (0, kit_1.getAddressDecoder)()]]);
|
|
19
|
+
}
|
|
20
|
+
function getInitializeRlpEventCodec() {
|
|
21
|
+
return (0, kit_1.combineCodec)(getInitializeRlpEventEncoder(), getInitializeRlpEventDecoder());
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export type KillSwitch = {
|
|
10
|
+
frozen: number;
|
|
11
|
+
};
|
|
12
|
+
export type KillSwitchArgs = KillSwitch;
|
|
13
|
+
export declare function getKillSwitchEncoder(): FixedSizeEncoder<KillSwitchArgs>;
|
|
14
|
+
export declare function getKillSwitchDecoder(): FixedSizeDecoder<KillSwitch>;
|
|
15
|
+
export declare function getKillSwitchCodec(): FixedSizeCodec<KillSwitchArgs, KillSwitch>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getKillSwitchEncoder = getKillSwitchEncoder;
|
|
11
|
+
exports.getKillSwitchDecoder = getKillSwitchDecoder;
|
|
12
|
+
exports.getKillSwitchCodec = getKillSwitchCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getKillSwitchEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([["frozen", (0, kit_1.getU32Encoder)()]]);
|
|
16
|
+
}
|
|
17
|
+
function getKillSwitchDecoder() {
|
|
18
|
+
return (0, kit_1.getStructDecoder)([["frozen", (0, kit_1.getU32Decoder)()]]);
|
|
19
|
+
}
|
|
20
|
+
function getKillSwitchCodec() {
|
|
21
|
+
return (0, kit_1.combineCodec)(getKillSwitchEncoder(), getKillSwitchDecoder());
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Codec, type Decoder, type Encoder } from "@solana/kit";
|
|
9
|
+
import { type Role, type RoleArgs } from ".";
|
|
10
|
+
export type LevelRoles = {
|
|
11
|
+
roles: Array<Role>;
|
|
12
|
+
};
|
|
13
|
+
export type LevelRolesArgs = {
|
|
14
|
+
roles: Array<RoleArgs>;
|
|
15
|
+
};
|
|
16
|
+
export declare function getLevelRolesEncoder(): Encoder<LevelRolesArgs>;
|
|
17
|
+
export declare function getLevelRolesDecoder(): Decoder<LevelRoles>;
|
|
18
|
+
export declare function getLevelRolesCodec(): Codec<LevelRolesArgs, LevelRoles>;
|