@keel-fi/svm-alm-controller 1.0.0-rc.1
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/generated/accounts/controller.d.ts +29 -0
- package/dist/generated/accounts/controller.d.ts.map +1 -0
- package/dist/generated/accounts/index.d.ts +6 -0
- package/dist/generated/accounts/index.d.ts.map +1 -0
- package/dist/generated/accounts/integration.d.ts +45 -0
- package/dist/generated/accounts/integration.d.ts.map +1 -0
- package/dist/generated/accounts/oracle.d.ts +39 -0
- package/dist/generated/accounts/oracle.d.ts.map +1 -0
- package/dist/generated/accounts/permission.d.ts +43 -0
- package/dist/generated/accounts/permission.d.ts.map +1 -0
- package/dist/generated/accounts/reserve.d.ts +41 -0
- package/dist/generated/accounts/reserve.d.ts.map +1 -0
- package/dist/generated/index.d.ts +5 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/instructions/atomicSwapBorrow.d.ts +76 -0
- package/dist/generated/instructions/atomicSwapBorrow.d.ts.map +1 -0
- package/dist/generated/instructions/atomicSwapRepay.d.ts +78 -0
- package/dist/generated/instructions/atomicSwapRepay.d.ts.map +1 -0
- package/dist/generated/instructions/emitEvent.d.ts +37 -0
- package/dist/generated/instructions/emitEvent.d.ts.map +1 -0
- package/dist/generated/instructions/index.d.ts +19 -0
- package/dist/generated/instructions/index.d.ts.map +1 -0
- package/dist/generated/instructions/initializeController.d.ts +56 -0
- package/dist/generated/instructions/initializeController.d.ts.map +1 -0
- package/dist/generated/instructions/initializeIntegration.d.ts +74 -0
- package/dist/generated/instructions/initializeIntegration.d.ts.map +1 -0
- package/dist/generated/instructions/initializeOracle.d.ts +61 -0
- package/dist/generated/instructions/initializeOracle.d.ts.map +1 -0
- package/dist/generated/instructions/initializeReserve.d.ts +74 -0
- package/dist/generated/instructions/initializeReserve.d.ts.map +1 -0
- package/dist/generated/instructions/manageController.d.ts +47 -0
- package/dist/generated/instructions/manageController.d.ts.map +1 -0
- package/dist/generated/instructions/manageIntegration.d.ts +59 -0
- package/dist/generated/instructions/manageIntegration.d.ts.map +1 -0
- package/dist/generated/instructions/managePermission.d.ts +86 -0
- package/dist/generated/instructions/managePermission.d.ts.map +1 -0
- package/dist/generated/instructions/manageReserve.d.ts +56 -0
- package/dist/generated/instructions/manageReserve.d.ts.map +1 -0
- package/dist/generated/instructions/pull.d.ts +56 -0
- package/dist/generated/instructions/pull.d.ts.map +1 -0
- package/dist/generated/instructions/push.d.ts +56 -0
- package/dist/generated/instructions/push.d.ts.map +1 -0
- package/dist/generated/instructions/refreshOracle.d.ts +33 -0
- package/dist/generated/instructions/refreshOracle.d.ts.map +1 -0
- package/dist/generated/instructions/resetLzPushInFlight.d.ts +36 -0
- package/dist/generated/instructions/resetLzPushInFlight.d.ts.map +1 -0
- package/dist/generated/instructions/sync.d.ts +36 -0
- package/dist/generated/instructions/sync.d.ts.map +1 -0
- package/dist/generated/instructions/syncReserve.d.ts +39 -0
- package/dist/generated/instructions/syncReserve.d.ts.map +1 -0
- package/dist/generated/instructions/updateOracle.d.ts +50 -0
- package/dist/generated/instructions/updateOracle.d.ts.map +1 -0
- package/dist/generated/programs/index.d.ts +2 -0
- package/dist/generated/programs/index.d.ts.map +1 -0
- package/dist/generated/programs/svmAlmController.d.ts +71 -0
- package/dist/generated/programs/svmAlmController.d.ts.map +1 -0
- package/dist/generated/shared/index.d.ts +15 -0
- package/dist/generated/shared/index.d.ts.map +1 -0
- package/dist/generated/types/accountDiscriminators.d.ts +14 -0
- package/dist/generated/types/accountDiscriminators.d.ts.map +1 -0
- package/dist/generated/types/accountingAction.d.ts +14 -0
- package/dist/generated/types/accountingAction.d.ts.map +1 -0
- package/dist/generated/types/accountingDirection.d.ts +10 -0
- package/dist/generated/types/accountingDirection.d.ts.map +1 -0
- package/dist/generated/types/accountingEvent.d.ts +24 -0
- package/dist/generated/types/accountingEvent.d.ts.map +1 -0
- package/dist/generated/types/atomicSwapConfig.d.ts +29 -0
- package/dist/generated/types/atomicSwapConfig.d.ts.map +1 -0
- package/dist/generated/types/atomicSwapState.d.ts +21 -0
- package/dist/generated/types/atomicSwapState.d.ts.map +1 -0
- package/dist/generated/types/cctpBridgeConfig.d.ts +14 -0
- package/dist/generated/types/cctpBridgeConfig.d.ts.map +1 -0
- package/dist/generated/types/cctpBridgeState.d.ts +9 -0
- package/dist/generated/types/cctpBridgeState.d.ts.map +1 -0
- package/dist/generated/types/controllerStatus.d.ts +11 -0
- package/dist/generated/types/controllerStatus.d.ts.map +1 -0
- package/dist/generated/types/controllerUpdateEvent.d.ts +18 -0
- package/dist/generated/types/controllerUpdateEvent.d.ts.map +1 -0
- package/dist/generated/types/depositForBurnArgs.d.ts +15 -0
- package/dist/generated/types/depositForBurnArgs.d.ts.map +1 -0
- package/dist/generated/types/depositSingleTokenTypeExactAmountInArgs.d.ts +13 -0
- package/dist/generated/types/depositSingleTokenTypeExactAmountInArgs.d.ts.map +1 -0
- package/dist/generated/types/feed.d.ts +10 -0
- package/dist/generated/types/feed.d.ts.map +1 -0
- package/dist/generated/types/feedArgs.d.ts +9 -0
- package/dist/generated/types/feedArgs.d.ts.map +1 -0
- package/dist/generated/types/index.d.ts +42 -0
- package/dist/generated/types/index.d.ts.map +1 -0
- package/dist/generated/types/initializeArgs.d.ts +51 -0
- package/dist/generated/types/initializeArgs.d.ts.map +1 -0
- package/dist/generated/types/integrationConfig.d.ts +53 -0
- package/dist/generated/types/integrationConfig.d.ts.map +1 -0
- package/dist/generated/types/integrationState.d.ts +53 -0
- package/dist/generated/types/integrationState.d.ts.map +1 -0
- package/dist/generated/types/integrationStatus.d.ts +10 -0
- package/dist/generated/types/integrationStatus.d.ts.map +1 -0
- package/dist/generated/types/integrationType.d.ts +13 -0
- package/dist/generated/types/integrationType.d.ts.map +1 -0
- package/dist/generated/types/integrationUpdateEvent.d.ts +20 -0
- package/dist/generated/types/integrationUpdateEvent.d.ts.map +1 -0
- package/dist/generated/types/localToken.d.ts +27 -0
- package/dist/generated/types/localToken.d.ts.map +1 -0
- package/dist/generated/types/lzBridgeConfig.d.ts +16 -0
- package/dist/generated/types/lzBridgeConfig.d.ts.map +1 -0
- package/dist/generated/types/lzBridgeState.d.ts +10 -0
- package/dist/generated/types/lzBridgeState.d.ts.map +1 -0
- package/dist/generated/types/oFTStore.d.ts +29 -0
- package/dist/generated/types/oFTStore.d.ts.map +1 -0
- package/dist/generated/types/oftSendParams.d.ts +15 -0
- package/dist/generated/types/oftSendParams.d.ts.map +1 -0
- package/dist/generated/types/oracleUpdateEvent.d.ts +20 -0
- package/dist/generated/types/oracleUpdateEvent.d.ts.map +1 -0
- package/dist/generated/types/peerConfig.d.ts +9 -0
- package/dist/generated/types/peerConfig.d.ts.map +1 -0
- package/dist/generated/types/permissionStatus.d.ts +10 -0
- package/dist/generated/types/permissionStatus.d.ts.map +1 -0
- package/dist/generated/types/permissionUpdateEvent.d.ts +20 -0
- package/dist/generated/types/permissionUpdateEvent.d.ts.map +1 -0
- package/dist/generated/types/pullArgs.d.ts +38 -0
- package/dist/generated/types/pullArgs.d.ts.map +1 -0
- package/dist/generated/types/pushArgs.d.ts +44 -0
- package/dist/generated/types/pushArgs.d.ts.map +1 -0
- package/dist/generated/types/remoteTokenMessenger.d.ts +10 -0
- package/dist/generated/types/remoteTokenMessenger.d.ts.map +1 -0
- package/dist/generated/types/reserveStatus.d.ts +10 -0
- package/dist/generated/types/reserveStatus.d.ts.map +1 -0
- package/dist/generated/types/reserveUpdateEvent.d.ts +20 -0
- package/dist/generated/types/reserveUpdateEvent.d.ts.map +1 -0
- package/dist/generated/types/splTokenExternalConfig.d.ts +13 -0
- package/dist/generated/types/splTokenExternalConfig.d.ts.map +1 -0
- package/dist/generated/types/splTokenExternalState.d.ts +9 -0
- package/dist/generated/types/splTokenExternalState.d.ts.map +1 -0
- package/dist/generated/types/splTokenSwapConfig.d.ts +15 -0
- package/dist/generated/types/splTokenSwapConfig.d.ts.map +1 -0
- package/dist/generated/types/splTokenSwapState.d.ts +17 -0
- package/dist/generated/types/splTokenSwapState.d.ts.map +1 -0
- package/dist/generated/types/svmAlmControllerEvent.d.ts +53 -0
- package/dist/generated/types/svmAlmControllerEvent.d.ts.map +1 -0
- package/dist/generated/types/swapV1Subset.d.ts +17 -0
- package/dist/generated/types/swapV1Subset.d.ts.map +1 -0
- package/dist/generated/types/withdrawSingleTokenTypeExactAmountOutArgs.d.ts +13 -0
- package/dist/generated/types/withdrawSingleTokenTypeExactAmountOutArgs.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +3067 -0
- package/dist/index.js +3382 -0
- package/dist/pdas.d.ts +9 -0
- package/dist/pdas.d.ts.map +1 -0
- package/package.json +24 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
2
|
+
import { type ControllerStatus, type ControllerStatusArgs } from '../types';
|
|
3
|
+
export type Controller = {
|
|
4
|
+
id: number;
|
|
5
|
+
bump: number;
|
|
6
|
+
status: ControllerStatus;
|
|
7
|
+
authority: Address;
|
|
8
|
+
authorityBump: number;
|
|
9
|
+
padding: ReadonlyUint8Array;
|
|
10
|
+
};
|
|
11
|
+
export type ControllerArgs = {
|
|
12
|
+
id: number;
|
|
13
|
+
bump: number;
|
|
14
|
+
status: ControllerStatusArgs;
|
|
15
|
+
authority: Address;
|
|
16
|
+
authorityBump: number;
|
|
17
|
+
padding: ReadonlyUint8Array;
|
|
18
|
+
};
|
|
19
|
+
export declare function getControllerEncoder(): FixedSizeEncoder<ControllerArgs>;
|
|
20
|
+
export declare function getControllerDecoder(): FixedSizeDecoder<Controller>;
|
|
21
|
+
export declare function getControllerCodec(): FixedSizeCodec<ControllerArgs, Controller>;
|
|
22
|
+
export declare function decodeController<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Controller, TAddress>;
|
|
23
|
+
export declare function decodeController<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Controller, TAddress>;
|
|
24
|
+
export declare function fetchController<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Controller, TAddress>>;
|
|
25
|
+
export declare function fetchMaybeController<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Controller, TAddress>>;
|
|
26
|
+
export declare function fetchAllController(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Controller>[]>;
|
|
27
|
+
export declare function fetchAllMaybeController(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Controller>[]>;
|
|
28
|
+
export declare function getControllerSize(): number;
|
|
29
|
+
//# sourceMappingURL=controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/controller.ts"],"names":[],"mappings":"AAQA,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAapB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,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AG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAG7C;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAIhC;AAED,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,CAGrC;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
2
|
+
import { type IntegrationConfig, type IntegrationConfigArgs, type IntegrationState, type IntegrationStateArgs, type IntegrationStatus, type IntegrationStatusArgs } from '../types';
|
|
3
|
+
export type Integration = {
|
|
4
|
+
controller: Address;
|
|
5
|
+
description: ReadonlyUint8Array;
|
|
6
|
+
hash: ReadonlyUint8Array;
|
|
7
|
+
status: IntegrationStatus;
|
|
8
|
+
rateLimitSlope: bigint;
|
|
9
|
+
rateLimitMaxOutflow: bigint;
|
|
10
|
+
rateLimitOutflowAmountAvailable: bigint;
|
|
11
|
+
rateLimitRemainder: bigint;
|
|
12
|
+
lastRefreshTimestamp: bigint;
|
|
13
|
+
lastRefreshSlot: bigint;
|
|
14
|
+
config: IntegrationConfig;
|
|
15
|
+
state: IntegrationState;
|
|
16
|
+
permitLiquidation: boolean;
|
|
17
|
+
padding: ReadonlyUint8Array;
|
|
18
|
+
};
|
|
19
|
+
export type IntegrationArgs = {
|
|
20
|
+
controller: Address;
|
|
21
|
+
description: ReadonlyUint8Array;
|
|
22
|
+
hash: ReadonlyUint8Array;
|
|
23
|
+
status: IntegrationStatusArgs;
|
|
24
|
+
rateLimitSlope: number | bigint;
|
|
25
|
+
rateLimitMaxOutflow: number | bigint;
|
|
26
|
+
rateLimitOutflowAmountAvailable: number | bigint;
|
|
27
|
+
rateLimitRemainder: number | bigint;
|
|
28
|
+
lastRefreshTimestamp: number | bigint;
|
|
29
|
+
lastRefreshSlot: number | bigint;
|
|
30
|
+
config: IntegrationConfigArgs;
|
|
31
|
+
state: IntegrationStateArgs;
|
|
32
|
+
permitLiquidation: boolean;
|
|
33
|
+
padding: ReadonlyUint8Array;
|
|
34
|
+
};
|
|
35
|
+
export declare function getIntegrationEncoder(): FixedSizeEncoder<IntegrationArgs>;
|
|
36
|
+
export declare function getIntegrationDecoder(): FixedSizeDecoder<Integration>;
|
|
37
|
+
export declare function getIntegrationCodec(): FixedSizeCodec<IntegrationArgs, Integration>;
|
|
38
|
+
export declare function decodeIntegration<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Integration, TAddress>;
|
|
39
|
+
export declare function decodeIntegration<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Integration, TAddress>;
|
|
40
|
+
export declare function fetchIntegration<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Integration, TAddress>>;
|
|
41
|
+
export declare function fetchMaybeIntegration<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Integration, TAddress>>;
|
|
42
|
+
export declare function fetchAllIntegration(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Integration>[]>;
|
|
43
|
+
export declare function fetchAllMaybeIntegration(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Integration>[]>;
|
|
44
|
+
export declare function getIntegrationSize(): number;
|
|
45
|
+
//# sourceMappingURL=integration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/integration.ts"],"names":[],"mappings":"AAQA,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAepB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAOL,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC3B,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,OAAO,CAAC;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3B,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,CAAC,CAGtC;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
2
|
+
import { type Feed } from '../types';
|
|
3
|
+
export type Oracle = {
|
|
4
|
+
version: number;
|
|
5
|
+
authority: Address;
|
|
6
|
+
nonce: Address;
|
|
7
|
+
value: bigint;
|
|
8
|
+
precision: number;
|
|
9
|
+
lastUpdateSlot: bigint;
|
|
10
|
+
controller: Address;
|
|
11
|
+
baseMint: Address;
|
|
12
|
+
quoteMint: Address;
|
|
13
|
+
reserved: ReadonlyUint8Array;
|
|
14
|
+
feeds: Array<Feed>;
|
|
15
|
+
};
|
|
16
|
+
export type OracleArgs = {
|
|
17
|
+
version: number;
|
|
18
|
+
authority: Address;
|
|
19
|
+
nonce: Address;
|
|
20
|
+
value: number | bigint;
|
|
21
|
+
precision: number;
|
|
22
|
+
lastUpdateSlot: number | bigint;
|
|
23
|
+
controller: Address;
|
|
24
|
+
baseMint: Address;
|
|
25
|
+
quoteMint: Address;
|
|
26
|
+
reserved: ReadonlyUint8Array;
|
|
27
|
+
feeds: Array<Feed>;
|
|
28
|
+
};
|
|
29
|
+
export declare function getOracleEncoder(): FixedSizeEncoder<OracleArgs>;
|
|
30
|
+
export declare function getOracleDecoder(): FixedSizeDecoder<Oracle>;
|
|
31
|
+
export declare function getOracleCodec(): FixedSizeCodec<OracleArgs, Oracle>;
|
|
32
|
+
export declare function decodeOracle<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Oracle, TAddress>;
|
|
33
|
+
export declare function decodeOracle<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Oracle, TAddress>;
|
|
34
|
+
export declare function fetchOracle<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Oracle, TAddress>>;
|
|
35
|
+
export declare function fetchMaybeOracle<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Oracle, TAddress>>;
|
|
36
|
+
export declare function fetchAllOracle(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Oracle>[]>;
|
|
37
|
+
export declare function fetchAllMaybeOracle(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Oracle>[]>;
|
|
38
|
+
export declare function getOracleSize(): number;
|
|
39
|
+
//# sourceMappingURL=oracle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/oracle.ts"],"names":[],"mappings":"AAQA,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAmBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,IAAI,EACV,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,MAAM,GAAG;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,cAA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AC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAIpC;AAED,wBAAsB,gBAAgB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EACrE,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAGzC;AAED,wBAAsB,cAAc,CAClC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAI5B;AAED,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,CAGjC;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
2
|
+
import { type PermissionStatus, type PermissionStatusArgs } from '../types';
|
|
3
|
+
export type Permission = {
|
|
4
|
+
controller: Address;
|
|
5
|
+
authority: Address;
|
|
6
|
+
status: PermissionStatus;
|
|
7
|
+
canManagePermissions: boolean;
|
|
8
|
+
canInvokeExternalTransfer: boolean;
|
|
9
|
+
canExecuteSwap: boolean;
|
|
10
|
+
canReallocate: boolean;
|
|
11
|
+
canFreezeController: boolean;
|
|
12
|
+
canUnfreezeController: boolean;
|
|
13
|
+
canManageReservesAndIntegrations: boolean;
|
|
14
|
+
canSuspendPermissions: boolean;
|
|
15
|
+
canLiquidate: boolean;
|
|
16
|
+
padding: ReadonlyUint8Array;
|
|
17
|
+
};
|
|
18
|
+
export type PermissionArgs = {
|
|
19
|
+
controller: Address;
|
|
20
|
+
authority: Address;
|
|
21
|
+
status: PermissionStatusArgs;
|
|
22
|
+
canManagePermissions: boolean;
|
|
23
|
+
canInvokeExternalTransfer: boolean;
|
|
24
|
+
canExecuteSwap: boolean;
|
|
25
|
+
canReallocate: boolean;
|
|
26
|
+
canFreezeController: boolean;
|
|
27
|
+
canUnfreezeController: boolean;
|
|
28
|
+
canManageReservesAndIntegrations: boolean;
|
|
29
|
+
canSuspendPermissions: boolean;
|
|
30
|
+
canLiquidate: boolean;
|
|
31
|
+
padding: ReadonlyUint8Array;
|
|
32
|
+
};
|
|
33
|
+
export declare function getPermissionEncoder(): FixedSizeEncoder<PermissionArgs>;
|
|
34
|
+
export declare function getPermissionDecoder(): FixedSizeDecoder<Permission>;
|
|
35
|
+
export declare function getPermissionCodec(): FixedSizeCodec<PermissionArgs, Permission>;
|
|
36
|
+
export declare function decodePermission<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Permission, TAddress>;
|
|
37
|
+
export declare function decodePermission<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Permission, TAddress>;
|
|
38
|
+
export declare function fetchPermission<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Permission, TAddress>>;
|
|
39
|
+
export declare function fetchMaybePermission<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Permission, TAddress>>;
|
|
40
|
+
export declare function fetchAllPermission(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Permission>[]>;
|
|
41
|
+
export declare function fetchAllMaybePermission(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Permission>[]>;
|
|
42
|
+
export declare function getPermissionSize(): number;
|
|
43
|
+
//# sourceMappingURL=permission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/permission.ts"],"names":[],"mappings":"AAQA,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAWpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,gBAAgB,CAAC;IACzB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,yBAAyB,EAAE,OAAO,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,gCAAgC,EAAE,OAAO,CA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,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAIxC;AAED,wBAAsB,oBAAoB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EACzE,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAG7C;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAIhC;AAED,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,CAGrC;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
2
|
+
import { type ReserveStatus, type ReserveStatusArgs } from '../types';
|
|
3
|
+
export type Reserve = {
|
|
4
|
+
controller: Address;
|
|
5
|
+
mint: Address;
|
|
6
|
+
vault: Address;
|
|
7
|
+
status: ReserveStatus;
|
|
8
|
+
rateLimitSlope: bigint;
|
|
9
|
+
rateLimitMaxOutflow: bigint;
|
|
10
|
+
rateLimitOutflowAmountAvailable: bigint;
|
|
11
|
+
rateLimitRemainder: bigint;
|
|
12
|
+
lastBalance: bigint;
|
|
13
|
+
lastRefreshTimestamp: bigint;
|
|
14
|
+
lastRefreshSlot: bigint;
|
|
15
|
+
padding: ReadonlyUint8Array;
|
|
16
|
+
};
|
|
17
|
+
export type ReserveArgs = {
|
|
18
|
+
controller: Address;
|
|
19
|
+
mint: Address;
|
|
20
|
+
vault: Address;
|
|
21
|
+
status: ReserveStatusArgs;
|
|
22
|
+
rateLimitSlope: number | bigint;
|
|
23
|
+
rateLimitMaxOutflow: number | bigint;
|
|
24
|
+
rateLimitOutflowAmountAvailable: number | bigint;
|
|
25
|
+
rateLimitRemainder: number | bigint;
|
|
26
|
+
lastBalance: number | bigint;
|
|
27
|
+
lastRefreshTimestamp: number | bigint;
|
|
28
|
+
lastRefreshSlot: number | bigint;
|
|
29
|
+
padding: ReadonlyUint8Array;
|
|
30
|
+
};
|
|
31
|
+
export declare function getReserveEncoder(): FixedSizeEncoder<ReserveArgs>;
|
|
32
|
+
export declare function getReserveDecoder(): FixedSizeDecoder<Reserve>;
|
|
33
|
+
export declare function getReserveCodec(): FixedSizeCodec<ReserveArgs, Reserve>;
|
|
34
|
+
export declare function decodeReserve<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Reserve, TAddress>;
|
|
35
|
+
export declare function decodeReserve<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Reserve, TAddress>;
|
|
36
|
+
export declare function fetchReserve<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Reserve, TAddress>>;
|
|
37
|
+
export declare function fetchMaybeReserve<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Reserve, TAddress>>;
|
|
38
|
+
export declare function fetchAllReserve(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Reserve>[]>;
|
|
39
|
+
export declare function fetchAllMaybeReserve(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Reserve>[]>;
|
|
40
|
+
export declare function getReserveSize(): number;
|
|
41
|
+
//# sourceMappingURL=reserve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reserve.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/reserve.ts"],"names":[],"mappings":"AAQA,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAapB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,OAAO,GAAG;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,aAAa,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,+BAA+B,EAAE,MAAM,CAAC;IACxC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,kBAAkB,CAAC;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,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAIrC;AAED,wBAAsB,iBAAiB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EACtE,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAG1C;AAED,wBAAsB,eAAe,CACnC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAI7B;AAED,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAGlC;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
|
|
2
|
+
import { SVM_ALM_CONTROLLER_PROGRAM_ADDRESS } from '../programs';
|
|
3
|
+
export declare const ATOMIC_SWAP_BORROW_DISCRIMINATOR = 15;
|
|
4
|
+
export declare function getAtomicSwapBorrowDiscriminatorBytes(): ReadonlyUint8Array;
|
|
5
|
+
export type AtomicSwapBorrowInstruction<TProgram extends string = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS, TAccountController extends string | AccountMeta<string> = string, TAccountControllerAuthority extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountPermission extends string | AccountMeta<string> = string, TAccountIntegration extends string | AccountMeta<string> = string, TAccountReserveA extends string | AccountMeta<string> = string, TAccountVaultA extends string | AccountMeta<string> = string, TAccountMintA extends string | AccountMeta<string> = string, TAccountReserveB extends string | AccountMeta<string> = string, TAccountVaultB extends string | AccountMeta<string> = string, TAccountRecipientTokenAccountA extends string | AccountMeta<string> = string, TAccountRecipientTokenAccountB extends string | AccountMeta<string> = string, TAccountTokenProgramA extends string | AccountMeta<string> = string, TAccountSysvarInstruction extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountProgramId extends string | AccountMeta<string> = 'H3BpbuheXwBnfxjb2L66mxZ9nFhRmUentYwQDspd6yJ9', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
6
|
+
TAccountController extends string ? ReadonlyAccount<TAccountController> : TAccountController,
|
|
7
|
+
TAccountControllerAuthority extends string ? ReadonlyAccount<TAccountControllerAuthority> : TAccountControllerAuthority,
|
|
8
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
9
|
+
TAccountPermission extends string ? ReadonlyAccount<TAccountPermission> : TAccountPermission,
|
|
10
|
+
TAccountIntegration extends string ? WritableAccount<TAccountIntegration> : TAccountIntegration,
|
|
11
|
+
TAccountReserveA extends string ? WritableAccount<TAccountReserveA> : TAccountReserveA,
|
|
12
|
+
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
13
|
+
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
14
|
+
TAccountReserveB extends string ? WritableAccount<TAccountReserveB> : TAccountReserveB,
|
|
15
|
+
TAccountVaultB extends string ? ReadonlyAccount<TAccountVaultB> : TAccountVaultB,
|
|
16
|
+
TAccountRecipientTokenAccountA extends string ? WritableAccount<TAccountRecipientTokenAccountA> : TAccountRecipientTokenAccountA,
|
|
17
|
+
TAccountRecipientTokenAccountB extends string ? WritableAccount<TAccountRecipientTokenAccountB> : TAccountRecipientTokenAccountB,
|
|
18
|
+
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
19
|
+
TAccountSysvarInstruction extends string ? ReadonlyAccount<TAccountSysvarInstruction> : TAccountSysvarInstruction,
|
|
20
|
+
TAccountProgramId extends string ? ReadonlyAccount<TAccountProgramId> : TAccountProgramId,
|
|
21
|
+
...TRemainingAccounts
|
|
22
|
+
]>;
|
|
23
|
+
export type AtomicSwapBorrowInstructionData = {
|
|
24
|
+
discriminator: number;
|
|
25
|
+
amount: bigint;
|
|
26
|
+
};
|
|
27
|
+
export type AtomicSwapBorrowInstructionDataArgs = {
|
|
28
|
+
amount: number | bigint;
|
|
29
|
+
};
|
|
30
|
+
export declare function getAtomicSwapBorrowInstructionDataEncoder(): FixedSizeEncoder<AtomicSwapBorrowInstructionDataArgs>;
|
|
31
|
+
export declare function getAtomicSwapBorrowInstructionDataDecoder(): FixedSizeDecoder<AtomicSwapBorrowInstructionData>;
|
|
32
|
+
export declare function getAtomicSwapBorrowInstructionDataCodec(): FixedSizeCodec<AtomicSwapBorrowInstructionDataArgs, AtomicSwapBorrowInstructionData>;
|
|
33
|
+
export type AtomicSwapBorrowInput<TAccountController extends string = string, TAccountControllerAuthority extends string = string, TAccountAuthority extends string = string, TAccountPermission extends string = string, TAccountIntegration extends string = string, TAccountReserveA extends string = string, TAccountVaultA extends string = string, TAccountMintA extends string = string, TAccountReserveB extends string = string, TAccountVaultB extends string = string, TAccountRecipientTokenAccountA extends string = string, TAccountRecipientTokenAccountB extends string = string, TAccountTokenProgramA extends string = string, TAccountSysvarInstruction extends string = string, TAccountProgramId extends string = string> = {
|
|
34
|
+
controller: Address<TAccountController>;
|
|
35
|
+
controllerAuthority: Address<TAccountControllerAuthority>;
|
|
36
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
37
|
+
permission: Address<TAccountPermission>;
|
|
38
|
+
integration: Address<TAccountIntegration>;
|
|
39
|
+
reserveA: Address<TAccountReserveA>;
|
|
40
|
+
vaultA: Address<TAccountVaultA>;
|
|
41
|
+
mintA: Address<TAccountMintA>;
|
|
42
|
+
reserveB: Address<TAccountReserveB>;
|
|
43
|
+
vaultB: Address<TAccountVaultB>;
|
|
44
|
+
recipientTokenAccountA: Address<TAccountRecipientTokenAccountA>;
|
|
45
|
+
recipientTokenAccountB: Address<TAccountRecipientTokenAccountB>;
|
|
46
|
+
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
47
|
+
sysvarInstruction?: Address<TAccountSysvarInstruction>;
|
|
48
|
+
programId?: Address<TAccountProgramId>;
|
|
49
|
+
amount: AtomicSwapBorrowInstructionDataArgs['amount'];
|
|
50
|
+
};
|
|
51
|
+
export declare function getAtomicSwapBorrowInstruction<TAccountController extends string, TAccountControllerAuthority extends string, TAccountAuthority extends string, TAccountPermission extends string, TAccountIntegration extends string, TAccountReserveA extends string, TAccountVaultA extends string, TAccountMintA extends string, TAccountReserveB extends string, TAccountVaultB extends string, TAccountRecipientTokenAccountA extends string, TAccountRecipientTokenAccountB extends string, TAccountTokenProgramA extends string, TAccountSysvarInstruction extends string, TAccountProgramId extends string, TProgramAddress extends Address = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS>(input: AtomicSwapBorrowInput<TAccountController, TAccountControllerAuthority, TAccountAuthority, TAccountPermission, TAccountIntegration, TAccountReserveA, TAccountVaultA, TAccountMintA, TAccountReserveB, TAccountVaultB, TAccountRecipientTokenAccountA, TAccountRecipientTokenAccountB, TAccountTokenProgramA, TAccountSysvarInstruction, TAccountProgramId>, config?: {
|
|
52
|
+
programAddress?: TProgramAddress;
|
|
53
|
+
}): AtomicSwapBorrowInstruction<TProgramAddress, TAccountController, TAccountControllerAuthority, TAccountAuthority, TAccountPermission, TAccountIntegration, TAccountReserveA, TAccountVaultA, TAccountMintA, TAccountReserveB, TAccountVaultB, TAccountRecipientTokenAccountA, TAccountRecipientTokenAccountB, TAccountTokenProgramA, TAccountSysvarInstruction, TAccountProgramId>;
|
|
54
|
+
export type ParsedAtomicSwapBorrowInstruction<TProgram extends string = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
55
|
+
programAddress: Address<TProgram>;
|
|
56
|
+
accounts: {
|
|
57
|
+
controller: TAccountMetas[0];
|
|
58
|
+
controllerAuthority: TAccountMetas[1];
|
|
59
|
+
authority: TAccountMetas[2];
|
|
60
|
+
permission: TAccountMetas[3];
|
|
61
|
+
integration: TAccountMetas[4];
|
|
62
|
+
reserveA: TAccountMetas[5];
|
|
63
|
+
vaultA: TAccountMetas[6];
|
|
64
|
+
mintA: TAccountMetas[7];
|
|
65
|
+
reserveB: TAccountMetas[8];
|
|
66
|
+
vaultB: TAccountMetas[9];
|
|
67
|
+
recipientTokenAccountA: TAccountMetas[10];
|
|
68
|
+
recipientTokenAccountB: TAccountMetas[11];
|
|
69
|
+
tokenProgramA: TAccountMetas[12];
|
|
70
|
+
sysvarInstruction: TAccountMetas[13];
|
|
71
|
+
programId: TAccountMetas[14];
|
|
72
|
+
};
|
|
73
|
+
data: AtomicSwapBorrowInstructionData;
|
|
74
|
+
};
|
|
75
|
+
export declare function parseAtomicSwapBorrowInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAtomicSwapBorrowInstruction<TProgram, TAccountMetas>;
|
|
76
|
+
//# sourceMappingURL=atomicSwapBorrow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atomicSwapBorrow.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/atomicSwapBorrow.ts"],"names":[],"mappings":"AAQA,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAGjE,eAAO,MAAM,gCAAgC,KAAK,CAAC;AAEnD,wBAAgB,qCAAqC,uBAEpD;AAED,MAAM,MAAM,2BAA2B,CACrC,QAAQ,SAAS,MAAM,GAAG,OAAO,kCAAkC,EACnE,kBAAkB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAChE,2BAA2B,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACzE,iBAAiB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC/D,kBAAkB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAChE,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,gBAAgB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GA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address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
|
|
2
|
+
import { SVM_ALM_CONTROLLER_PROGRAM_ADDRESS } from '../programs';
|
|
3
|
+
export declare const ATOMIC_SWAP_REPAY_DISCRIMINATOR = 16;
|
|
4
|
+
export declare function getAtomicSwapRepayDiscriminatorBytes(): ReadonlyUint8Array;
|
|
5
|
+
export type AtomicSwapRepayInstruction<TProgram extends string = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountController extends string | AccountMeta<string> = string, TAccountControllerAuthority extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountPermission extends string | AccountMeta<string> = string, TAccountIntegration extends string | AccountMeta<string> = string, TAccountReserveA extends string | AccountMeta<string> = string, TAccountVaultA extends string | AccountMeta<string> = string, TAccountMintA extends string | AccountMeta<string> = string, TAccountReserveB extends string | AccountMeta<string> = string, TAccountVaultB extends string | AccountMeta<string> = string, TAccountMintB extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TAccountPayerAccountA extends string | AccountMeta<string> = string, TAccountPayerAccountB extends string | AccountMeta<string> = string, TAccountTokenProgramA extends string | AccountMeta<string> = string, TAccountTokenProgramB extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
6
|
+
TAccountPayer extends string ? ReadonlySignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
7
|
+
TAccountController extends string ? ReadonlyAccount<TAccountController> : TAccountController,
|
|
8
|
+
TAccountControllerAuthority extends string ? ReadonlyAccount<TAccountControllerAuthority> : TAccountControllerAuthority,
|
|
9
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
10
|
+
TAccountPermission extends string ? ReadonlyAccount<TAccountPermission> : TAccountPermission,
|
|
11
|
+
TAccountIntegration extends string ? WritableAccount<TAccountIntegration> : TAccountIntegration,
|
|
12
|
+
TAccountReserveA extends string ? WritableAccount<TAccountReserveA> : TAccountReserveA,
|
|
13
|
+
TAccountVaultA extends string ? WritableAccount<TAccountVaultA> : TAccountVaultA,
|
|
14
|
+
TAccountMintA extends string ? ReadonlyAccount<TAccountMintA> : TAccountMintA,
|
|
15
|
+
TAccountReserveB extends string ? WritableAccount<TAccountReserveB> : TAccountReserveB,
|
|
16
|
+
TAccountVaultB extends string ? WritableAccount<TAccountVaultB> : TAccountVaultB,
|
|
17
|
+
TAccountMintB extends string ? ReadonlyAccount<TAccountMintB> : TAccountMintB,
|
|
18
|
+
TAccountOracle extends string ? ReadonlyAccount<TAccountOracle> : TAccountOracle,
|
|
19
|
+
TAccountPayerAccountA extends string ? WritableAccount<TAccountPayerAccountA> : TAccountPayerAccountA,
|
|
20
|
+
TAccountPayerAccountB extends string ? WritableAccount<TAccountPayerAccountB> : TAccountPayerAccountB,
|
|
21
|
+
TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA,
|
|
22
|
+
TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB,
|
|
23
|
+
...TRemainingAccounts
|
|
24
|
+
]>;
|
|
25
|
+
export type AtomicSwapRepayInstructionData = {
|
|
26
|
+
discriminator: number;
|
|
27
|
+
};
|
|
28
|
+
export type AtomicSwapRepayInstructionDataArgs = {};
|
|
29
|
+
export declare function getAtomicSwapRepayInstructionDataEncoder(): FixedSizeEncoder<AtomicSwapRepayInstructionDataArgs>;
|
|
30
|
+
export declare function getAtomicSwapRepayInstructionDataDecoder(): FixedSizeDecoder<AtomicSwapRepayInstructionData>;
|
|
31
|
+
export declare function getAtomicSwapRepayInstructionDataCodec(): FixedSizeCodec<AtomicSwapRepayInstructionDataArgs, AtomicSwapRepayInstructionData>;
|
|
32
|
+
export type AtomicSwapRepayInput<TAccountPayer extends string = string, TAccountController extends string = string, TAccountControllerAuthority extends string = string, TAccountAuthority extends string = string, TAccountPermission extends string = string, TAccountIntegration extends string = string, TAccountReserveA extends string = string, TAccountVaultA extends string = string, TAccountMintA extends string = string, TAccountReserveB extends string = string, TAccountVaultB extends string = string, TAccountMintB extends string = string, TAccountOracle extends string = string, TAccountPayerAccountA extends string = string, TAccountPayerAccountB extends string = string, TAccountTokenProgramA extends string = string, TAccountTokenProgramB extends string = string> = {
|
|
33
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
34
|
+
controller: Address<TAccountController>;
|
|
35
|
+
controllerAuthority: Address<TAccountControllerAuthority>;
|
|
36
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
37
|
+
permission: Address<TAccountPermission>;
|
|
38
|
+
integration: Address<TAccountIntegration>;
|
|
39
|
+
reserveA: Address<TAccountReserveA>;
|
|
40
|
+
vaultA: Address<TAccountVaultA>;
|
|
41
|
+
mintA: Address<TAccountMintA>;
|
|
42
|
+
reserveB: Address<TAccountReserveB>;
|
|
43
|
+
vaultB: Address<TAccountVaultB>;
|
|
44
|
+
mintB: Address<TAccountMintB>;
|
|
45
|
+
oracle: Address<TAccountOracle>;
|
|
46
|
+
payerAccountA: Address<TAccountPayerAccountA>;
|
|
47
|
+
payerAccountB: Address<TAccountPayerAccountB>;
|
|
48
|
+
tokenProgramA: Address<TAccountTokenProgramA>;
|
|
49
|
+
tokenProgramB: Address<TAccountTokenProgramB>;
|
|
50
|
+
};
|
|
51
|
+
export declare function getAtomicSwapRepayInstruction<TAccountPayer extends string, TAccountController extends string, TAccountControllerAuthority extends string, TAccountAuthority extends string, TAccountPermission extends string, TAccountIntegration extends string, TAccountReserveA extends string, TAccountVaultA extends string, TAccountMintA extends string, TAccountReserveB extends string, TAccountVaultB extends string, TAccountMintB extends string, TAccountOracle extends string, TAccountPayerAccountA extends string, TAccountPayerAccountB extends string, TAccountTokenProgramA extends string, TAccountTokenProgramB extends string, TProgramAddress extends Address = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS>(input: AtomicSwapRepayInput<TAccountPayer, TAccountController, TAccountControllerAuthority, TAccountAuthority, TAccountPermission, TAccountIntegration, TAccountReserveA, TAccountVaultA, TAccountMintA, TAccountReserveB, TAccountVaultB, TAccountMintB, TAccountOracle, TAccountPayerAccountA, TAccountPayerAccountB, TAccountTokenProgramA, TAccountTokenProgramB>, config?: {
|
|
52
|
+
programAddress?: TProgramAddress;
|
|
53
|
+
}): AtomicSwapRepayInstruction<TProgramAddress, TAccountPayer, TAccountController, TAccountControllerAuthority, TAccountAuthority, TAccountPermission, TAccountIntegration, TAccountReserveA, TAccountVaultA, TAccountMintA, TAccountReserveB, TAccountVaultB, TAccountMintB, TAccountOracle, TAccountPayerAccountA, TAccountPayerAccountB, TAccountTokenProgramA, TAccountTokenProgramB>;
|
|
54
|
+
export type ParsedAtomicSwapRepayInstruction<TProgram extends string = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
55
|
+
programAddress: Address<TProgram>;
|
|
56
|
+
accounts: {
|
|
57
|
+
payer: TAccountMetas[0];
|
|
58
|
+
controller: TAccountMetas[1];
|
|
59
|
+
controllerAuthority: TAccountMetas[2];
|
|
60
|
+
authority: TAccountMetas[3];
|
|
61
|
+
permission: TAccountMetas[4];
|
|
62
|
+
integration: TAccountMetas[5];
|
|
63
|
+
reserveA: TAccountMetas[6];
|
|
64
|
+
vaultA: TAccountMetas[7];
|
|
65
|
+
mintA: TAccountMetas[8];
|
|
66
|
+
reserveB: TAccountMetas[9];
|
|
67
|
+
vaultB: TAccountMetas[10];
|
|
68
|
+
mintB: TAccountMetas[11];
|
|
69
|
+
oracle: TAccountMetas[12];
|
|
70
|
+
payerAccountA: TAccountMetas[13];
|
|
71
|
+
payerAccountB: TAccountMetas[14];
|
|
72
|
+
tokenProgramA: TAccountMetas[15];
|
|
73
|
+
tokenProgramB: TAccountMetas[16];
|
|
74
|
+
};
|
|
75
|
+
data: AtomicSwapRepayInstructionData;
|
|
76
|
+
};
|
|
77
|
+
export declare function parseAtomicSwapRepayInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAtomicSwapRepayInstruction<TProgram, TAccountMetas>;
|
|
78
|
+
//# sourceMappingURL=atomicSwapRepay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atomicSwapRepay.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/atomicSwapRepay.ts"],"names":[],"mappings":"AAQA,OAAO,EAOL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAGjE,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD,wBAAgB,oCAAoC,uBAEnD;AAED,MAAM,MAAM,0BAA0B,CACpC,QAAQ,SAAS,MAAM,GAAG,OAAO,kCAAkC,EACnE,aAAa,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC3D,kBAAkB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAChE,2BAA2B,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,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AE,aAAa,CAAC,EAAE,CAAC,CAAC;QAC1B,KAAK,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QACzB,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QAC1B,aAAa,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QACjC,aAAa,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QACjC,aAAa,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;QACjC,aAAa,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;KAClC,CAAC;IACF,IAAI,EAAE,8BAA8B,CAAC;CACtC,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,gCAAgC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAkC3D"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner } from '@solana/kit';
|
|
2
|
+
import { SVM_ALM_CONTROLLER_PROGRAM_ADDRESS } from '../programs';
|
|
3
|
+
export declare const EMIT_EVENT_DISCRIMINATOR = 0;
|
|
4
|
+
export declare function getEmitEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
5
|
+
export type EmitEventInstruction<TProgram extends string = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
6
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
7
|
+
...TRemainingAccounts
|
|
8
|
+
]>;
|
|
9
|
+
export type EmitEventInstructionData = {
|
|
10
|
+
discriminator: number;
|
|
11
|
+
controllerId: ReadonlyUint8Array;
|
|
12
|
+
data: ReadonlyUint8Array;
|
|
13
|
+
};
|
|
14
|
+
export type EmitEventInstructionDataArgs = {
|
|
15
|
+
controllerId: ReadonlyUint8Array;
|
|
16
|
+
data: ReadonlyUint8Array;
|
|
17
|
+
};
|
|
18
|
+
export declare function getEmitEventInstructionDataEncoder(): Encoder<EmitEventInstructionDataArgs>;
|
|
19
|
+
export declare function getEmitEventInstructionDataDecoder(): Decoder<EmitEventInstructionData>;
|
|
20
|
+
export declare function getEmitEventInstructionDataCodec(): Codec<EmitEventInstructionDataArgs, EmitEventInstructionData>;
|
|
21
|
+
export type EmitEventInput<TAccountAuthority extends string = string> = {
|
|
22
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
23
|
+
controllerId: EmitEventInstructionDataArgs['controllerId'];
|
|
24
|
+
data: EmitEventInstructionDataArgs['data'];
|
|
25
|
+
};
|
|
26
|
+
export declare function getEmitEventInstruction<TAccountAuthority extends string, TProgramAddress extends Address = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS>(input: EmitEventInput<TAccountAuthority>, config?: {
|
|
27
|
+
programAddress?: TProgramAddress;
|
|
28
|
+
}): EmitEventInstruction<TProgramAddress, TAccountAuthority>;
|
|
29
|
+
export type ParsedEmitEventInstruction<TProgram extends string = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
30
|
+
programAddress: Address<TProgram>;
|
|
31
|
+
accounts: {
|
|
32
|
+
authority: TAccountMetas[0];
|
|
33
|
+
};
|
|
34
|
+
data: EmitEventInstructionData;
|
|
35
|
+
};
|
|
36
|
+
export declare function parseEmitEventInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedEmitEventInstruction<TProgram, TAccountMetas>;
|
|
37
|
+
//# sourceMappingURL=emitEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emitEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/emitEvent.ts"],"names":[],"mappings":"AAQA,OAAO,EAeL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAGjE,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,wBAAgB,8BAA8B,uBAE7C;AAED,MAAM,MAAM,oBAAoB,CAC9B,QAAQ,SAAS,MAAM,GAAG,OAAO,kCAAkC,EACnE,iBAAiB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC/D,kBAAkB,SAAS,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC5D,WAAW,CAAC,QAAQ,CAAC,GACvB,mBAAmB,CAAC,kBAAkB,CAAC,GACvC,uBAAuB,CACrB;IACE,iBAAiB,SAAS,MAAM,GAC5B,qBAAqB,CAAC,iBAAiB,CAAC,GACtC,iBAAiB,CAAC,iBAAiB,CAAC,GACtC,iBAAiB;IACrB,GAAG,kBAAkB;CACtB,CACF,CAAC;AAEJ,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,kBAAkB,CAAC;IACjC,IAAI,EAAE,kBAAkB,CAAC;CAC1B,CAAC;A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AAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,0BAA0B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAgBrD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './atomicSwapBorrow';
|
|
2
|
+
export * from './atomicSwapRepay';
|
|
3
|
+
export * from './emitEvent';
|
|
4
|
+
export * from './initializeController';
|
|
5
|
+
export * from './initializeIntegration';
|
|
6
|
+
export * from './initializeOracle';
|
|
7
|
+
export * from './initializeReserve';
|
|
8
|
+
export * from './manageController';
|
|
9
|
+
export * from './manageIntegration';
|
|
10
|
+
export * from './managePermission';
|
|
11
|
+
export * from './manageReserve';
|
|
12
|
+
export * from './pull';
|
|
13
|
+
export * from './push';
|
|
14
|
+
export * from './refreshOracle';
|
|
15
|
+
export * from './resetLzPushInFlight';
|
|
16
|
+
export * from './sync';
|
|
17
|
+
export * from './syncReserve';
|
|
18
|
+
export * from './updateOracle';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/index.ts"],"names":[],"mappings":"AAQA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
2
|
+
import { SVM_ALM_CONTROLLER_PROGRAM_ADDRESS } from '../programs';
|
|
3
|
+
import { type ControllerStatus, type ControllerStatusArgs } from '../types';
|
|
4
|
+
export declare const INITIALIZE_CONTROLLER_DISCRIMINATOR = 1;
|
|
5
|
+
export declare function getInitializeControllerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
6
|
+
export type InitializeControllerInstruction<TProgram extends string = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountController extends string | AccountMeta<string> = string, TAccountControllerAuthority extends string | AccountMeta<string> = string, TAccountPermission extends string | AccountMeta<string> = string, TAccountProgramId extends string | AccountMeta<string> = 'H3BpbuheXwBnfxjb2L66mxZ9nFhRmUentYwQDspd6yJ9', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
7
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
8
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
9
|
+
TAccountController extends string ? WritableAccount<TAccountController> : TAccountController,
|
|
10
|
+
TAccountControllerAuthority extends string ? ReadonlyAccount<TAccountControllerAuthority> : TAccountControllerAuthority,
|
|
11
|
+
TAccountPermission extends string ? WritableAccount<TAccountPermission> : TAccountPermission,
|
|
12
|
+
TAccountProgramId extends string ? ReadonlyAccount<TAccountProgramId> : TAccountProgramId,
|
|
13
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
14
|
+
...TRemainingAccounts
|
|
15
|
+
]>;
|
|
16
|
+
export type InitializeControllerInstructionData = {
|
|
17
|
+
discriminator: number;
|
|
18
|
+
id: number;
|
|
19
|
+
status: ControllerStatus;
|
|
20
|
+
};
|
|
21
|
+
export type InitializeControllerInstructionDataArgs = {
|
|
22
|
+
id: number;
|
|
23
|
+
status: ControllerStatusArgs;
|
|
24
|
+
};
|
|
25
|
+
export declare function getInitializeControllerInstructionDataEncoder(): FixedSizeEncoder<InitializeControllerInstructionDataArgs>;
|
|
26
|
+
export declare function getInitializeControllerInstructionDataDecoder(): FixedSizeDecoder<InitializeControllerInstructionData>;
|
|
27
|
+
export declare function getInitializeControllerInstructionDataCodec(): FixedSizeCodec<InitializeControllerInstructionDataArgs, InitializeControllerInstructionData>;
|
|
28
|
+
export type InitializeControllerInput<TAccountPayer extends string = string, TAccountAuthority extends string = string, TAccountController extends string = string, TAccountControllerAuthority extends string = string, TAccountPermission extends string = string, TAccountProgramId extends string = string, TAccountSystemProgram extends string = string> = {
|
|
29
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
30
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
31
|
+
controller: Address<TAccountController>;
|
|
32
|
+
controllerAuthority: Address<TAccountControllerAuthority>;
|
|
33
|
+
permission: Address<TAccountPermission>;
|
|
34
|
+
programId?: Address<TAccountProgramId>;
|
|
35
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
36
|
+
id: InitializeControllerInstructionDataArgs['id'];
|
|
37
|
+
status: InitializeControllerInstructionDataArgs['status'];
|
|
38
|
+
};
|
|
39
|
+
export declare function getInitializeControllerInstruction<TAccountPayer extends string, TAccountAuthority extends string, TAccountController extends string, TAccountControllerAuthority extends string, TAccountPermission extends string, TAccountProgramId extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS>(input: InitializeControllerInput<TAccountPayer, TAccountAuthority, TAccountController, TAccountControllerAuthority, TAccountPermission, TAccountProgramId, TAccountSystemProgram>, config?: {
|
|
40
|
+
programAddress?: TProgramAddress;
|
|
41
|
+
}): InitializeControllerInstruction<TProgramAddress, TAccountPayer, TAccountAuthority, TAccountController, TAccountControllerAuthority, TAccountPermission, TAccountProgramId, TAccountSystemProgram>;
|
|
42
|
+
export type ParsedInitializeControllerInstruction<TProgram extends string = typeof SVM_ALM_CONTROLLER_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
43
|
+
programAddress: Address<TProgram>;
|
|
44
|
+
accounts: {
|
|
45
|
+
payer: TAccountMetas[0];
|
|
46
|
+
authority: TAccountMetas[1];
|
|
47
|
+
controller: TAccountMetas[2];
|
|
48
|
+
controllerAuthority: TAccountMetas[3];
|
|
49
|
+
permission: TAccountMetas[4];
|
|
50
|
+
programId: TAccountMetas[5];
|
|
51
|
+
systemProgram: TAccountMetas[6];
|
|
52
|
+
};
|
|
53
|
+
data: InitializeControllerInstructionData;
|
|
54
|
+
};
|
|
55
|
+
export declare function parseInitializeControllerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeControllerInstruction<TProgram, TAccountMetas>;
|
|
56
|
+
//# sourceMappingURL=initializeController.d.ts.map
|