@sly-rentals/core 4.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.json +14113 -8121
- package/dist/cjs/accounts/contract.js +60 -29
- package/dist/cjs/accounts/contract.js.map +1 -1
- package/dist/cjs/audit/events-registry.js +13 -0
- package/dist/cjs/audit/events-registry.js.map +1 -1
- package/dist/cjs/audit/events.js +220 -0
- package/dist/cjs/audit/events.js.map +1 -1
- package/dist/cjs/cost/estimate.js +18 -4
- package/dist/cjs/cost/estimate.js.map +1 -1
- package/dist/cjs/cost/estimate.test.js +11 -1
- package/dist/cjs/cost/estimate.test.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/configState.js +3 -1
- package/dist/cjs/generated/codama/accounts/configState.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/contractState.js +4 -0
- package/dist/cjs/generated/codama/accounts/contractState.js.map +1 -1
- package/dist/cjs/generated/codama/errors/srsly.js +3 -3
- package/dist/cjs/generated/codama/errors/srsly.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/createContract.js +2 -0
- package/dist/cjs/generated/codama/instructions/createContract.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/index.js +2 -0
- package/dist/cjs/generated/codama/instructions/index.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/migrateConfig.js +119 -0
- package/dist/cjs/generated/codama/instructions/migrateConfig.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/migrateContract.js +84 -0
- package/dist/cjs/generated/codama/instructions/migrateContract.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/updateConfig.js +2 -0
- package/dist/cjs/generated/codama/instructions/updateConfig.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/updateContract.js +2 -0
- package/dist/cjs/generated/codama/instructions/updateContract.js.map +1 -1
- package/dist/cjs/generated/codama/programs/srsly.js +15 -7
- package/dist/cjs/generated/codama/programs/srsly.js.map +1 -1
- package/dist/cjs/generated/codama/types/borrowerClaimed.js +31 -0
- package/dist/cjs/generated/codama/types/borrowerClaimed.js.map +1 -0
- package/dist/cjs/generated/codama/types/borrowerClosed.js +29 -0
- package/dist/cjs/generated/codama/types/borrowerClosed.js.map +1 -0
- package/dist/cjs/generated/codama/types/borrowerCreated.js +29 -0
- package/dist/cjs/generated/codama/types/borrowerCreated.js.map +1 -0
- package/dist/cjs/generated/codama/types/contractCloseQueued.js +29 -0
- package/dist/cjs/generated/codama/types/contractCloseQueued.js.map +1 -0
- package/dist/cjs/generated/codama/types/contractClosed.js +29 -0
- package/dist/cjs/generated/codama/types/contractClosed.js.map +1 -0
- package/dist/cjs/generated/codama/types/contractCreated.js +47 -0
- package/dist/cjs/generated/codama/types/contractCreated.js.map +1 -0
- package/dist/cjs/generated/codama/types/contractUpdated.js +39 -0
- package/dist/cjs/generated/codama/types/contractUpdated.js.map +1 -0
- package/dist/cjs/generated/codama/types/delegateSet.js +31 -0
- package/dist/cjs/generated/codama/types/delegateSet.js.map +1 -0
- package/dist/cjs/generated/codama/types/index.js +14 -0
- package/dist/cjs/generated/codama/types/index.js.map +1 -1
- package/dist/cjs/generated/codama/types/reservationKnockedOff.js +41 -0
- package/dist/cjs/generated/codama/types/reservationKnockedOff.js.map +1 -0
- package/dist/cjs/generated/codama/types/reservationPlaced.js +37 -0
- package/dist/cjs/generated/codama/types/reservationPlaced.js.map +1 -0
- package/dist/cjs/generated/codama/types/staleDecayApplied.js +33 -0
- package/dist/cjs/generated/codama/types/staleDecayApplied.js.map +1 -0
- package/dist/cjs/generated/codama/types/threadClosed.js +29 -0
- package/dist/cjs/generated/codama/types/threadClosed.js.map +1 -0
- package/dist/cjs/generated/codama/types/threadCreated.js +33 -0
- package/dist/cjs/generated/codama/types/threadCreated.js.map +1 -0
- package/dist/cjs/generated/codama/types/threadFunded.js +39 -0
- package/dist/cjs/generated/codama/types/threadFunded.js.map +1 -0
- package/dist/cjs/idl/srsly.json +3152 -302
- package/dist/cjs/instructions/createContract.js +1 -0
- package/dist/cjs/instructions/createContract.js.map +1 -1
- package/dist/cjs/instructions/index.js +5 -1
- package/dist/cjs/instructions/index.js.map +1 -1
- package/dist/cjs/instructions/migrateConfig.js +41 -0
- package/dist/cjs/instructions/migrateConfig.js.map +1 -0
- package/dist/cjs/instructions/migrateContract.js +47 -0
- package/dist/cjs/instructions/migrateContract.js.map +1 -0
- package/dist/cjs/instructions/reserveRental.js +4 -3
- package/dist/cjs/instructions/reserveRental.js.map +1 -1
- package/dist/cjs/instructions/updateConfig.js +1 -0
- package/dist/cjs/instructions/updateConfig.js.map +1 -1
- package/dist/cjs/instructions/updateContract.js +3 -1
- package/dist/cjs/instructions/updateContract.js.map +1 -1
- package/dist/cjs/kit/index.js +6 -1
- package/dist/cjs/kit/index.js.map +1 -1
- package/dist/cjs/legacy/index.js +3 -1
- package/dist/cjs/legacy/index.js.map +1 -1
- package/dist/cjs/package.json +1 -2
- package/dist/cjs/params/index.js +1 -0
- package/dist/cjs/params/index.js.map +1 -1
- package/dist/cjs/params/points.js +110 -0
- package/dist/cjs/params/points.js.map +1 -0
- package/dist/cjs/utils/clock.js +42 -0
- package/dist/cjs/utils/clock.js.map +1 -0
- package/dist/cjs/utils/contractSnapshot.js +46 -5
- package/dist/cjs/utils/contractSnapshot.js.map +1 -1
- package/dist/cjs/utils/contractSnapshot.test.js +28 -3
- package/dist/cjs/utils/contractSnapshot.test.js.map +1 -1
- package/dist/cjs/utils/index.js +7 -1
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/staleDecay.js +47 -0
- package/dist/cjs/utils/staleDecay.js.map +1 -0
- package/dist/cjs/utils/staleDecay.test.js +71 -0
- package/dist/cjs/utils/staleDecay.test.js.map +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/accounts/contract.js +59 -29
- package/dist/esm/accounts/contract.js.map +1 -1
- package/dist/esm/audit/events-registry.js +13 -0
- package/dist/esm/audit/events-registry.js.map +1 -1
- package/dist/esm/audit/events.js +220 -0
- package/dist/esm/audit/events.js.map +1 -1
- package/dist/esm/cost/estimate.js +18 -4
- package/dist/esm/cost/estimate.js.map +1 -1
- package/dist/esm/cost/estimate.test.js +11 -1
- package/dist/esm/cost/estimate.test.js.map +1 -1
- package/dist/esm/generated/codama/accounts/configState.js +3 -1
- package/dist/esm/generated/codama/accounts/configState.js.map +1 -1
- package/dist/esm/generated/codama/accounts/contractState.js +5 -1
- package/dist/esm/generated/codama/accounts/contractState.js.map +1 -1
- package/dist/esm/generated/codama/errors/srsly.js +5 -5
- package/dist/esm/generated/codama/errors/srsly.js.map +1 -1
- package/dist/esm/generated/codama/instructions/createContract.js +2 -0
- package/dist/esm/generated/codama/instructions/createContract.js.map +1 -1
- package/dist/esm/generated/codama/instructions/index.js +2 -0
- package/dist/esm/generated/codama/instructions/index.js.map +1 -1
- package/dist/esm/generated/codama/instructions/migrateConfig.js +109 -0
- package/dist/esm/generated/codama/instructions/migrateConfig.js.map +1 -0
- package/dist/esm/generated/codama/instructions/migrateContract.js +75 -0
- package/dist/esm/generated/codama/instructions/migrateContract.js.map +1 -0
- package/dist/esm/generated/codama/instructions/updateConfig.js +2 -0
- package/dist/esm/generated/codama/instructions/updateConfig.js.map +1 -1
- package/dist/esm/generated/codama/instructions/updateContract.js +3 -1
- package/dist/esm/generated/codama/instructions/updateContract.js.map +1 -1
- package/dist/esm/generated/codama/programs/srsly.js +15 -7
- package/dist/esm/generated/codama/programs/srsly.js.map +1 -1
- package/dist/esm/generated/codama/types/borrowerClaimed.js +26 -0
- package/dist/esm/generated/codama/types/borrowerClaimed.js.map +1 -0
- package/dist/esm/generated/codama/types/borrowerClosed.js +24 -0
- package/dist/esm/generated/codama/types/borrowerClosed.js.map +1 -0
- package/dist/esm/generated/codama/types/borrowerCreated.js +24 -0
- package/dist/esm/generated/codama/types/borrowerCreated.js.map +1 -0
- package/dist/esm/generated/codama/types/contractCloseQueued.js +24 -0
- package/dist/esm/generated/codama/types/contractCloseQueued.js.map +1 -0
- package/dist/esm/generated/codama/types/contractClosed.js +24 -0
- package/dist/esm/generated/codama/types/contractClosed.js.map +1 -0
- package/dist/esm/generated/codama/types/contractCreated.js +42 -0
- package/dist/esm/generated/codama/types/contractCreated.js.map +1 -0
- package/dist/esm/generated/codama/types/contractUpdated.js +34 -0
- package/dist/esm/generated/codama/types/contractUpdated.js.map +1 -0
- package/dist/esm/generated/codama/types/delegateSet.js +26 -0
- package/dist/esm/generated/codama/types/delegateSet.js.map +1 -0
- package/dist/esm/generated/codama/types/index.js +14 -0
- package/dist/esm/generated/codama/types/index.js.map +1 -1
- package/dist/esm/generated/codama/types/reservationKnockedOff.js +36 -0
- package/dist/esm/generated/codama/types/reservationKnockedOff.js.map +1 -0
- package/dist/esm/generated/codama/types/reservationPlaced.js +32 -0
- package/dist/esm/generated/codama/types/reservationPlaced.js.map +1 -0
- package/dist/esm/generated/codama/types/staleDecayApplied.js +28 -0
- package/dist/esm/generated/codama/types/staleDecayApplied.js.map +1 -0
- package/dist/esm/generated/codama/types/threadClosed.js +24 -0
- package/dist/esm/generated/codama/types/threadClosed.js.map +1 -0
- package/dist/esm/generated/codama/types/threadCreated.js +28 -0
- package/dist/esm/generated/codama/types/threadCreated.js.map +1 -0
- package/dist/esm/generated/codama/types/threadFunded.js +34 -0
- package/dist/esm/generated/codama/types/threadFunded.js.map +1 -0
- package/dist/esm/idl/srsly.json +3152 -302
- package/dist/esm/instructions/createContract.js +1 -0
- package/dist/esm/instructions/createContract.js.map +1 -1
- package/dist/esm/instructions/index.js +2 -0
- package/dist/esm/instructions/index.js.map +1 -1
- package/dist/esm/instructions/migrateConfig.js +38 -0
- package/dist/esm/instructions/migrateConfig.js.map +1 -0
- package/dist/esm/instructions/migrateContract.js +44 -0
- package/dist/esm/instructions/migrateContract.js.map +1 -0
- package/dist/esm/instructions/reserveRental.js +4 -3
- package/dist/esm/instructions/reserveRental.js.map +1 -1
- package/dist/esm/instructions/updateConfig.js +1 -0
- package/dist/esm/instructions/updateConfig.js.map +1 -1
- package/dist/esm/instructions/updateContract.js +3 -1
- package/dist/esm/instructions/updateContract.js.map +1 -1
- package/dist/esm/kit/index.js +4 -0
- package/dist/esm/kit/index.js.map +1 -1
- package/dist/esm/legacy/index.js +2 -0
- package/dist/esm/legacy/index.js.map +1 -1
- package/dist/esm/package.json +1 -2
- package/dist/esm/params/index.js +1 -0
- package/dist/esm/params/index.js.map +1 -1
- package/dist/esm/params/points.js +104 -0
- package/dist/esm/params/points.js.map +1 -0
- package/dist/esm/utils/clock.js +39 -0
- package/dist/esm/utils/clock.js.map +1 -0
- package/dist/esm/utils/contractSnapshot.js +46 -5
- package/dist/esm/utils/contractSnapshot.js.map +1 -1
- package/dist/esm/utils/contractSnapshot.test.js +28 -3
- package/dist/esm/utils/contractSnapshot.test.js.map +1 -1
- package/dist/esm/utils/index.js +4 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/staleDecay.js +44 -0
- package/dist/esm/utils/staleDecay.js.map +1 -0
- package/dist/esm/utils/staleDecay.test.js +69 -0
- package/dist/esm/utils/staleDecay.test.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/idl/srsly.json +3153 -303
- package/dist/types/accounts/contract.d.ts +11 -5
- package/dist/types/accounts/contract.d.ts.map +1 -1
- package/dist/types/audit/events-registry.d.ts +1 -1
- package/dist/types/audit/events-registry.d.ts.map +1 -1
- package/dist/types/audit/events.d.ts.map +1 -1
- package/dist/types/audit/index.d.ts +1 -1
- package/dist/types/audit/index.d.ts.map +1 -1
- package/dist/types/audit/types.d.ts +121 -1
- package/dist/types/audit/types.d.ts.map +1 -1
- package/dist/types/cost/estimate.d.ts +17 -2
- package/dist/types/cost/estimate.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/configState.d.ts +16 -0
- package/dist/types/generated/codama/accounts/configState.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/contractState.d.ts +40 -0
- package/dist/types/generated/codama/accounts/contractState.d.ts.map +1 -1
- package/dist/types/generated/codama/errors/srsly.d.ts +1 -1
- package/dist/types/generated/codama/errors/srsly.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/createContract.d.ts +4 -0
- package/dist/types/generated/codama/instructions/createContract.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/index.d.ts +2 -0
- package/dist/types/generated/codama/instructions/index.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/migrateConfig.d.ts +66 -0
- package/dist/types/generated/codama/instructions/migrateConfig.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/migrateContract.d.ts +59 -0
- package/dist/types/generated/codama/instructions/migrateContract.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/updateConfig.d.ts +16 -0
- package/dist/types/generated/codama/instructions/updateConfig.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/updateContract.d.ts +22 -0
- package/dist/types/generated/codama/instructions/updateContract.d.ts.map +1 -1
- package/dist/types/generated/codama/programs/srsly.d.ts +14 -8
- package/dist/types/generated/codama/programs/srsly.d.ts.map +1 -1
- package/dist/types/generated/codama/types/borrowerClaimed.d.ts +23 -0
- package/dist/types/generated/codama/types/borrowerClaimed.d.ts.map +1 -0
- package/dist/types/generated/codama/types/borrowerClosed.d.ts +18 -0
- package/dist/types/generated/codama/types/borrowerClosed.d.ts.map +1 -0
- package/dist/types/generated/codama/types/borrowerCreated.d.ts +18 -0
- package/dist/types/generated/codama/types/borrowerCreated.d.ts.map +1 -0
- package/dist/types/generated/codama/types/contractCloseQueued.d.ts +22 -0
- package/dist/types/generated/codama/types/contractCloseQueued.d.ts.map +1 -0
- package/dist/types/generated/codama/types/contractClosed.d.ts +18 -0
- package/dist/types/generated/codama/types/contractClosed.d.ts.map +1 -0
- package/dist/types/generated/codama/types/contractCreated.d.ts +39 -0
- package/dist/types/generated/codama/types/contractCreated.d.ts.map +1 -0
- package/dist/types/generated/codama/types/contractUpdated.d.ts +34 -0
- package/dist/types/generated/codama/types/contractUpdated.d.ts.map +1 -0
- package/dist/types/generated/codama/types/delegateSet.d.ts +23 -0
- package/dist/types/generated/codama/types/delegateSet.d.ts.map +1 -0
- package/dist/types/generated/codama/types/index.d.ts +14 -0
- package/dist/types/generated/codama/types/index.d.ts.map +1 -1
- package/dist/types/generated/codama/types/reservationKnockedOff.d.ts +33 -0
- package/dist/types/generated/codama/types/reservationKnockedOff.d.ts.map +1 -0
- package/dist/types/generated/codama/types/reservationPlaced.d.ts +32 -0
- package/dist/types/generated/codama/types/reservationPlaced.d.ts.map +1 -0
- package/dist/types/generated/codama/types/staleDecayApplied.d.ts +31 -0
- package/dist/types/generated/codama/types/staleDecayApplied.d.ts.map +1 -0
- package/dist/types/generated/codama/types/threadClosed.d.ts +18 -0
- package/dist/types/generated/codama/types/threadClosed.d.ts.map +1 -0
- package/dist/types/generated/codama/types/threadCreated.d.ts +25 -0
- package/dist/types/generated/codama/types/threadCreated.d.ts.map +1 -0
- package/dist/types/generated/codama/types/threadFunded.d.ts +28 -0
- package/dist/types/generated/codama/types/threadFunded.d.ts.map +1 -0
- package/dist/types/instructions/createContract.d.ts +10 -0
- package/dist/types/instructions/createContract.d.ts.map +1 -1
- package/dist/types/instructions/index.d.ts +2 -0
- package/dist/types/instructions/index.d.ts.map +1 -1
- package/dist/types/instructions/migrateConfig.d.ts +39 -0
- package/dist/types/instructions/migrateConfig.d.ts.map +1 -0
- package/dist/types/instructions/migrateContract.d.ts +44 -0
- package/dist/types/instructions/migrateContract.d.ts.map +1 -0
- package/dist/types/instructions/reserveRental.d.ts +10 -2
- package/dist/types/instructions/reserveRental.d.ts.map +1 -1
- package/dist/types/instructions/updateConfig.d.ts +7 -0
- package/dist/types/instructions/updateConfig.d.ts.map +1 -1
- package/dist/types/instructions/updateContract.d.ts +7 -0
- package/dist/types/instructions/updateContract.d.ts.map +1 -1
- package/dist/types/kit/index.d.ts +1 -0
- package/dist/types/kit/index.d.ts.map +1 -1
- package/dist/types/legacy/index.d.ts +2 -0
- package/dist/types/legacy/index.d.ts.map +1 -1
- package/dist/types/params/index.d.ts +1 -0
- package/dist/types/params/index.d.ts.map +1 -1
- package/dist/types/params/points.d.ts +71 -0
- package/dist/types/params/points.d.ts.map +1 -0
- package/dist/types/utils/clock.d.ts +24 -0
- package/dist/types/utils/clock.d.ts.map +1 -0
- package/dist/types/utils/contractSnapshot.d.ts +24 -1
- package/dist/types/utils/contractSnapshot.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/staleDecay.d.ts +21 -0
- package/dist/types/utils/staleDecay.d.ts.map +1 -0
- package/dist/types/utils/staleDecay.test.d.ts +2 -0
- package/dist/types/utils/staleDecay.test.d.ts.map +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -4
|
@@ -0,0 +1,66 @@
|
|
|
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 AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
+
import { SRSLY_PROGRAM_ADDRESS } from "../programs";
|
|
10
|
+
export declare const MIGRATE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getMigrateConfigDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type MigrateConfigInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
14
|
+
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
15
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
16
|
+
...TRemainingAccounts
|
|
17
|
+
]>;
|
|
18
|
+
export type MigrateConfigInstructionData = {
|
|
19
|
+
discriminator: ReadonlyUint8Array;
|
|
20
|
+
};
|
|
21
|
+
export type MigrateConfigInstructionDataArgs = {};
|
|
22
|
+
export declare function getMigrateConfigInstructionDataEncoder(): FixedSizeEncoder<MigrateConfigInstructionDataArgs>;
|
|
23
|
+
export declare function getMigrateConfigInstructionDataDecoder(): FixedSizeDecoder<MigrateConfigInstructionData>;
|
|
24
|
+
export declare function getMigrateConfigInstructionDataCodec(): FixedSizeCodec<MigrateConfigInstructionDataArgs, MigrateConfigInstructionData>;
|
|
25
|
+
export type MigrateConfigAsyncInput<TAccountPayer extends string = string, TAccountConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
26
|
+
/**
|
|
27
|
+
* Anyone can pay the realloc rent — the cost is tiny (2 bytes of
|
|
28
|
+
* rent ≈ 14_000 lamports).
|
|
29
|
+
*/
|
|
30
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
31
|
+
/** seeds are enforced by `seeds`/`bump`. */
|
|
32
|
+
config?: Address<TAccountConfig>;
|
|
33
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
34
|
+
};
|
|
35
|
+
export declare function getMigrateConfigInstructionAsync<TAccountPayer extends string, TAccountConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: MigrateConfigAsyncInput<TAccountPayer, TAccountConfig, TAccountSystemProgram>, config?: {
|
|
36
|
+
programAddress?: TProgramAddress;
|
|
37
|
+
}): Promise<MigrateConfigInstruction<TProgramAddress, TAccountPayer, TAccountConfig, TAccountSystemProgram>>;
|
|
38
|
+
export type MigrateConfigInput<TAccountPayer extends string = string, TAccountConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
39
|
+
/**
|
|
40
|
+
* Anyone can pay the realloc rent — the cost is tiny (2 bytes of
|
|
41
|
+
* rent ≈ 14_000 lamports).
|
|
42
|
+
*/
|
|
43
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
44
|
+
/** seeds are enforced by `seeds`/`bump`. */
|
|
45
|
+
config: Address<TAccountConfig>;
|
|
46
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
47
|
+
};
|
|
48
|
+
export declare function getMigrateConfigInstruction<TAccountPayer extends string, TAccountConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: MigrateConfigInput<TAccountPayer, TAccountConfig, TAccountSystemProgram>, config?: {
|
|
49
|
+
programAddress?: TProgramAddress;
|
|
50
|
+
}): MigrateConfigInstruction<TProgramAddress, TAccountPayer, TAccountConfig, TAccountSystemProgram>;
|
|
51
|
+
export type ParsedMigrateConfigInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
52
|
+
programAddress: Address<TProgram>;
|
|
53
|
+
accounts: {
|
|
54
|
+
/**
|
|
55
|
+
* Anyone can pay the realloc rent — the cost is tiny (2 bytes of
|
|
56
|
+
* rent ≈ 14_000 lamports).
|
|
57
|
+
*/
|
|
58
|
+
payer: TAccountMetas[0];
|
|
59
|
+
/** seeds are enforced by `seeds`/`bump`. */
|
|
60
|
+
config: TAccountMetas[1];
|
|
61
|
+
systemProgram: TAccountMetas[2];
|
|
62
|
+
};
|
|
63
|
+
data: MigrateConfigInstructionData;
|
|
64
|
+
};
|
|
65
|
+
export declare function parseMigrateConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedMigrateConfigInstruction<TProgram, TAccountMetas>;
|
|
66
|
+
//# sourceMappingURL=migrateConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrateConfig.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/instructions/migrateConfig.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAUL,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,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,4BAA4B,yBAEvC,CAAC;AAEH,wBAAgB,kCAAkC,uBAIjD;AAED,MAAM,MAAM,wBAAwB,CAClC,QAAQ,SAAS,MAAM,GAAG,OAAO,qBAAqB,EACtD,aAAa,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC3D,cAAc,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC5D,qBAAqB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GACxD,kCAAkC,EACpC,kBAAkB,SAAS,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC5D,WAAW,CAAC,QAAQ,CAAC,GACvB,mBAAmB,CAAC,kBAAkB,CAAC,GACvC,uBAAuB,CACrB;IACE,aAAa,SAAS,MAAM,GACxB,qBAAqB,CAAC,aAAa,CA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AAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,8BAA8B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAoBzD"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
+
import { SRSLY_PROGRAM_ADDRESS } from "../programs";
|
|
10
|
+
export declare const MIGRATE_CONTRACT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getMigrateContractDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type MigrateContractInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountContract extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
14
|
+
TAccountContract extends string ? WritableAccount<TAccountContract> : TAccountContract,
|
|
15
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
16
|
+
...TRemainingAccounts
|
|
17
|
+
]>;
|
|
18
|
+
export type MigrateContractInstructionData = {
|
|
19
|
+
discriminator: ReadonlyUint8Array;
|
|
20
|
+
};
|
|
21
|
+
export type MigrateContractInstructionDataArgs = {};
|
|
22
|
+
export declare function getMigrateContractInstructionDataEncoder(): FixedSizeEncoder<MigrateContractInstructionDataArgs>;
|
|
23
|
+
export declare function getMigrateContractInstructionDataDecoder(): FixedSizeDecoder<MigrateContractInstructionData>;
|
|
24
|
+
export declare function getMigrateContractInstructionDataCodec(): FixedSizeCodec<MigrateContractInstructionDataArgs, MigrateContractInstructionData>;
|
|
25
|
+
export type MigrateContractInput<TAccountPayer extends string = string, TAccountContract extends string = string, TAccountSystemProgram extends string = string> = {
|
|
26
|
+
/**
|
|
27
|
+
* Anyone can pay the realloc rent — migration is permissionless so
|
|
28
|
+
* a crank can sweep every known PDA without per-owner coordination.
|
|
29
|
+
*/
|
|
30
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
31
|
+
/**
|
|
32
|
+
* We use `UncheckedAccount` because v1 bytes don't deserialize
|
|
33
|
+
* against the v2 struct.
|
|
34
|
+
*/
|
|
35
|
+
contract: Address<TAccountContract>;
|
|
36
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
37
|
+
};
|
|
38
|
+
export declare function getMigrateContractInstruction<TAccountPayer extends string, TAccountContract extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: MigrateContractInput<TAccountPayer, TAccountContract, TAccountSystemProgram>, config?: {
|
|
39
|
+
programAddress?: TProgramAddress;
|
|
40
|
+
}): MigrateContractInstruction<TProgramAddress, TAccountPayer, TAccountContract, TAccountSystemProgram>;
|
|
41
|
+
export type ParsedMigrateContractInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
42
|
+
programAddress: Address<TProgram>;
|
|
43
|
+
accounts: {
|
|
44
|
+
/**
|
|
45
|
+
* Anyone can pay the realloc rent — migration is permissionless so
|
|
46
|
+
* a crank can sweep every known PDA without per-owner coordination.
|
|
47
|
+
*/
|
|
48
|
+
payer: TAccountMetas[0];
|
|
49
|
+
/**
|
|
50
|
+
* We use `UncheckedAccount` because v1 bytes don't deserialize
|
|
51
|
+
* against the v2 struct.
|
|
52
|
+
*/
|
|
53
|
+
contract: TAccountMetas[1];
|
|
54
|
+
systemProgram: TAccountMetas[2];
|
|
55
|
+
};
|
|
56
|
+
data: MigrateContractInstructionData;
|
|
57
|
+
};
|
|
58
|
+
export declare function parseMigrateContractInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedMigrateContractInstruction<TProgram, TAccountMetas>;
|
|
59
|
+
//# sourceMappingURL=migrateContract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrateContract.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/instructions/migrateContract.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,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,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,8BAA8B,yBAEzC,CAAC;AAEH,wBAAgB,oCAAoC,uBAInD;AAED,MAAM,MAAM,0BAA0B,CACpC,QAAQ,SAAS,MAAM,GAAG,OAAO,qBAAqB,EACtD,aAAa,SAAS,M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
55
55
|
*/
|
|
56
56
|
contestedMultiplierMaxBps: Option<number>;
|
|
57
|
+
/**
|
|
58
|
+
* Daily stale-discount in bps (e.g. 200 = 2%/day off the stored rate
|
|
59
|
+
* per idle day). 0 disables the mechanic protocol-wide. Combines with
|
|
60
|
+
* each contract's `stale_discount_max_bps` to cap the total decay.
|
|
61
|
+
* Range 0..=10_000.
|
|
62
|
+
*/
|
|
63
|
+
staleDiscountPerDayBps: Option<number>;
|
|
57
64
|
};
|
|
58
65
|
export type UpdateConfigInstructionDataArgs = {
|
|
59
66
|
/** New admin address (admin) */
|
|
@@ -94,6 +101,13 @@ export type UpdateConfigInstructionDataArgs = {
|
|
|
94
101
|
* 100 = 1× (disables ramp) and 10_000 = 100×. Range 100..=10_000.
|
|
95
102
|
*/
|
|
96
103
|
contestedMultiplierMaxBps: OptionOrNullable<number>;
|
|
104
|
+
/**
|
|
105
|
+
* Daily stale-discount in bps (e.g. 200 = 2%/day off the stored rate
|
|
106
|
+
* per idle day). 0 disables the mechanic protocol-wide. Combines with
|
|
107
|
+
* each contract's `stale_discount_max_bps` to cap the total decay.
|
|
108
|
+
* Range 0..=10_000.
|
|
109
|
+
*/
|
|
110
|
+
staleDiscountPerDayBps: OptionOrNullable<number>;
|
|
97
111
|
};
|
|
98
112
|
export declare function getUpdateConfigInstructionDataEncoder(): Encoder<UpdateConfigInstructionDataArgs>;
|
|
99
113
|
export declare function getUpdateConfigInstructionDataDecoder(): Decoder<UpdateConfigInstructionData>;
|
|
@@ -118,6 +132,7 @@ export type UpdateConfigAsyncInput<TAccountAdmin extends string = string, TAccou
|
|
|
118
132
|
captureRateBps: UpdateConfigInstructionDataArgs["captureRateBps"];
|
|
119
133
|
atlasPerPoint: UpdateConfigInstructionDataArgs["atlasPerPoint"];
|
|
120
134
|
contestedMultiplierMaxBps: UpdateConfigInstructionDataArgs["contestedMultiplierMaxBps"];
|
|
135
|
+
staleDiscountPerDayBps: UpdateConfigInstructionDataArgs["staleDiscountPerDayBps"];
|
|
121
136
|
};
|
|
122
137
|
export declare function getUpdateConfigInstructionAsync<TAccountAdmin extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: UpdateConfigAsyncInput<TAccountAdmin, TAccountConfig>, config?: {
|
|
123
138
|
programAddress?: TProgramAddress;
|
|
@@ -142,6 +157,7 @@ export type UpdateConfigInput<TAccountAdmin extends string = string, TAccountCon
|
|
|
142
157
|
captureRateBps: UpdateConfigInstructionDataArgs["captureRateBps"];
|
|
143
158
|
atlasPerPoint: UpdateConfigInstructionDataArgs["atlasPerPoint"];
|
|
144
159
|
contestedMultiplierMaxBps: UpdateConfigInstructionDataArgs["contestedMultiplierMaxBps"];
|
|
160
|
+
staleDiscountPerDayBps: UpdateConfigInstructionDataArgs["staleDiscountPerDayBps"];
|
|
145
161
|
};
|
|
146
162
|
export declare function getUpdateConfigInstruction<TAccountAdmin extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: UpdateConfigInput<TAccountAdmin, TAccountConfig>, config?: {
|
|
147
163
|
programAddress?: TProgramAddress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateConfig.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/instructions/updateConfig.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EA4BL,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,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,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AE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7B,6CAA6C;IAC7C,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACpC,8CAA8C;IAC9C,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACpC,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3B,wCAAwC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACjC,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1B,+EAA+E;IAC/E,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/B,kEAAkE;IAClE,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"updateConfig.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/instructions/updateConfig.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EA4BL,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,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,2BAA2B,yBAEtC,CAAC;AAEH,wBAAgB,iCAAiC,uBAIhD;AAED,MAAM,MAAM,uBAAuB,CACjC,QAAQ,SAAS,MAAM,GAAG,OAAO,qBAAqB,EACtD,aAAa,SAAS,MAAM,GAAG,WAAW,CA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AAC,EAAE,eAAe,CAAA;CAAE,GAC5C,uBAAuB,CAAC,eAAe,EAAE,aAAa,EAAE,cAAc,CAAC,CAyBzE;AAED,MAAM,MAAM,6BAA6B,CACvC,QAAQ,SAAS,MAAM,GAAG,OAAO,qBAAqB,EACtD,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE,IACnE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC1B,CAAC;IACF,IAAI,EAAE,2BAA2B,CAAC;CACnC,CAAC;AAEF,wBAAgB,4BAA4B,CAC1C,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,6BAA6B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAgBxD"}
|
|
@@ -35,6 +35,16 @@ export type UpdateContractInstructionData = {
|
|
|
35
35
|
* 1..=10 enables it with the chosen sensitivity. Default 1.
|
|
36
36
|
*/
|
|
37
37
|
contestedThreshold: Option<number>;
|
|
38
|
+
/**
|
|
39
|
+
* Per-contract cap on the stale-discount writeback (bps).
|
|
40
|
+
* 0 → mechanic disabled for this contract (rate never decays).
|
|
41
|
+
* 5_000 → up to 50% discount; rate floored at 50% of its stored value.
|
|
42
|
+
* 10_000 → no per-contract cap; the writeback still clamps at the
|
|
43
|
+
* program-wide minimum rate (`config.stardust_to_atlas`).
|
|
44
|
+
* Range 0..=10_000. Owner can update at any time; the new cap
|
|
45
|
+
* applies on the next `rental_accept` writeback.
|
|
46
|
+
*/
|
|
47
|
+
staleDiscountMaxBps: Option<number>;
|
|
38
48
|
};
|
|
39
49
|
export type UpdateContractInstructionDataArgs = {
|
|
40
50
|
/** Rental rate per day in Stardust */
|
|
@@ -55,6 +65,16 @@ export type UpdateContractInstructionDataArgs = {
|
|
|
55
65
|
* 1..=10 enables it with the chosen sensitivity. Default 1.
|
|
56
66
|
*/
|
|
57
67
|
contestedThreshold: OptionOrNullable<number>;
|
|
68
|
+
/**
|
|
69
|
+
* Per-contract cap on the stale-discount writeback (bps).
|
|
70
|
+
* 0 → mechanic disabled for this contract (rate never decays).
|
|
71
|
+
* 5_000 → up to 50% discount; rate floored at 50% of its stored value.
|
|
72
|
+
* 10_000 → no per-contract cap; the writeback still clamps at the
|
|
73
|
+
* program-wide minimum rate (`config.stardust_to_atlas`).
|
|
74
|
+
* Range 0..=10_000. Owner can update at any time; the new cap
|
|
75
|
+
* applies on the next `rental_accept` writeback.
|
|
76
|
+
*/
|
|
77
|
+
staleDiscountMaxBps: OptionOrNullable<number>;
|
|
58
78
|
};
|
|
59
79
|
export declare function getUpdateContractInstructionDataEncoder(): Encoder<UpdateContractInstructionDataArgs>;
|
|
60
80
|
export declare function getUpdateContractInstructionDataDecoder(): Decoder<UpdateContractInstructionData>;
|
|
@@ -70,6 +90,7 @@ export type UpdateContractAsyncInput<TAccountAuthority extends string = string,
|
|
|
70
90
|
reservationsDisabled: UpdateContractInstructionDataArgs["reservationsDisabled"];
|
|
71
91
|
toClose: UpdateContractInstructionDataArgs["toClose"];
|
|
72
92
|
contestedThreshold: UpdateContractInstructionDataArgs["contestedThreshold"];
|
|
93
|
+
staleDiscountMaxBps: UpdateContractInstructionDataArgs["staleDiscountMaxBps"];
|
|
73
94
|
};
|
|
74
95
|
export declare function getUpdateContractInstructionAsync<TAccountAuthority extends string, TAccountConfig extends string, TAccountContract extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: UpdateContractAsyncInput<TAccountAuthority, TAccountConfig, TAccountContract>, config?: {
|
|
75
96
|
programAddress?: TProgramAddress;
|
|
@@ -85,6 +106,7 @@ export type UpdateContractInput<TAccountAuthority extends string = string, TAcco
|
|
|
85
106
|
reservationsDisabled: UpdateContractInstructionDataArgs["reservationsDisabled"];
|
|
86
107
|
toClose: UpdateContractInstructionDataArgs["toClose"];
|
|
87
108
|
contestedThreshold: UpdateContractInstructionDataArgs["contestedThreshold"];
|
|
109
|
+
staleDiscountMaxBps: UpdateContractInstructionDataArgs["staleDiscountMaxBps"];
|
|
88
110
|
};
|
|
89
111
|
export declare function getUpdateContractInstruction<TAccountAuthority extends string, TAccountConfig extends string, TAccountContract extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: UpdateContractInput<TAccountAuthority, TAccountConfig, TAccountContract>, config?: {
|
|
90
112
|
programAddress?: TProgramAddress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateContract.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/instructions/updateContract.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"updateContract.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/instructions/updateContract.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAsBL,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,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,6BAA6B,yBAExC,CAAC;AAEH,wBAAgB,mCAAmC,uBAIlD;AAED,MAAM,MAAM,yBAAyB,CACnC,QAAQ,SAAS,MAAM,G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AAmB,CAAC,kBAAkB,CAAC,GACxC,+BAA+B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAoB1D"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
8
|
import { type Address, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
-
import { type ParsedAcceptRentalInstruction, type ParsedCancelRentalInstruction, type ParsedClaimBorrowerInstruction, type ParsedClaimContractInstruction, type ParsedCloseBorrowerInstruction, type ParsedCloseContractInstruction, type ParsedCloseContractThreadInstruction, type ParsedCloseRentalInstruction, type ParsedCreateBorrowerInstruction, type ParsedCreateConfigInstruction, type ParsedCreateContractInstruction, type ParsedCreateContractThreadInstruction, type ParsedDeleteBorrowerInstruction, type ParsedDeleteConfigInstruction, type ParsedDeleteContractInstruction, type ParsedDeleteContractThreadInstruction, type ParsedDeleteRentalInstruction, type ParsedInvalidateRentalInstruction, type ParsedProcessContractInstruction, type ParsedReleaseRentalInstruction, type ParsedReserveRentalInstruction, type ParsedSetDelegateInstruction, type ParsedUpdateConfigInstruction, type ParsedUpdateContractInstruction, type ParsedUpdateContractThreadInstruction } from "../instructions";
|
|
9
|
+
import { type ParsedAcceptRentalInstruction, type ParsedCancelRentalInstruction, type ParsedClaimBorrowerInstruction, type ParsedClaimContractInstruction, type ParsedCloseBorrowerInstruction, type ParsedCloseContractInstruction, type ParsedCloseContractThreadInstruction, type ParsedCloseRentalInstruction, type ParsedCreateBorrowerInstruction, type ParsedCreateConfigInstruction, type ParsedCreateContractInstruction, type ParsedCreateContractThreadInstruction, type ParsedDeleteBorrowerInstruction, type ParsedDeleteConfigInstruction, type ParsedDeleteContractInstruction, type ParsedDeleteContractThreadInstruction, type ParsedDeleteRentalInstruction, type ParsedInvalidateRentalInstruction, type ParsedMigrateConfigInstruction, type ParsedMigrateContractInstruction, type ParsedProcessContractInstruction, type ParsedReleaseRentalInstruction, type ParsedReserveRentalInstruction, type ParsedSetDelegateInstruction, type ParsedUpdateConfigInstruction, type ParsedUpdateContractInstruction, type ParsedUpdateContractThreadInstruction } from "../instructions";
|
|
10
10
|
export declare const SRSLY_PROGRAM_ADDRESS: Address<"SRSLYxcFnjd5jG2DpJw4as6UEyjwJQK1U4J1TD1hvZH">;
|
|
11
11
|
export declare enum SrslyAccount {
|
|
12
12
|
BorrowerState = 0,
|
|
@@ -36,13 +36,15 @@ export declare enum SrslyInstruction {
|
|
|
36
36
|
DeleteContractThread = 15,
|
|
37
37
|
DeleteRental = 16,
|
|
38
38
|
InvalidateRental = 17,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
MigrateConfig = 18,
|
|
40
|
+
MigrateContract = 19,
|
|
41
|
+
ProcessContract = 20,
|
|
42
|
+
ReleaseRental = 21,
|
|
43
|
+
ReserveRental = 22,
|
|
44
|
+
SetDelegate = 23,
|
|
45
|
+
UpdateConfig = 24,
|
|
46
|
+
UpdateContract = 25,
|
|
47
|
+
UpdateContractThread = 26
|
|
46
48
|
}
|
|
47
49
|
export declare function identifySrslyInstruction(instruction: {
|
|
48
50
|
data: ReadonlyUint8Array;
|
|
@@ -84,6 +86,10 @@ export type ParsedSrslyInstruction<TProgram extends string = "SRSLYxcFnjd5jG2DpJ
|
|
|
84
86
|
} & ParsedDeleteRentalInstruction<TProgram>) | ({
|
|
85
87
|
instructionType: SrslyInstruction.InvalidateRental;
|
|
86
88
|
} & ParsedInvalidateRentalInstruction<TProgram>) | ({
|
|
89
|
+
instructionType: SrslyInstruction.MigrateConfig;
|
|
90
|
+
} & ParsedMigrateConfigInstruction<TProgram>) | ({
|
|
91
|
+
instructionType: SrslyInstruction.MigrateContract;
|
|
92
|
+
} & ParsedMigrateContractInstruction<TProgram>) | ({
|
|
87
93
|
instructionType: SrslyInstruction.ProcessContract;
|
|
88
94
|
} & ParsedProcessContractInstruction<TProgram>) | ({
|
|
89
95
|
instructionType: SrslyInstruction.ReleaseRental;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"srsly.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/programs/srsly.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC1C,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC1C,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC3C,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,qBAAqB,EACiB,OAAO,CAAC,6CAA6C,CAAC,CAAC;AAE1G,oBAAY,YAAY;IACtB,aAAa,IAAA;IACb,WAAW,IAAA;IACX,aAAa,IAAA;IACb,WAAW,IAAA;CACZ;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAAG,kBAAkB,GACzD,YAAY,CAiDd;AAED,oBAAY,gBAAgB;IAC1B,YAAY,IAAA;IACZ,YAAY,IAAA;IACZ,aAAa,IAAA;IACb,aAAa,IAAA;IACb,aAAa,IAAA;IACb,aAAa,IAAA;IACb,mBAAmB,IAAA;IACnB,WAAW,IAAA;IACX,cAAc,IAAA;IACd,YAAY,IAAA;IACZ,cAAc,KAAA;IACd,oBAAoB,KAAA;IACpB,cAAc,KAAA;IACd,YAAY,KAAA;IACZ,cAAc,KAAA;IACd,oBAAoB,KAAA;IACpB,YAAY,KAAA;IACZ,gBAAgB,KAAA;IAChB,eAAe,KAAA;IACf,aAAa,KAAA;IACb,aAAa,KAAA;IACb,WAAW,KAAA;IACX,YAAY,KAAA;IACZ,cAAc,KAAA;IACd,oBAAoB,KAAA;CACrB;AAED,wBAAgB,wBAAwB,CACtC,WAAW,EAAE;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAAG,kBAAkB,GAC7D,gBAAgB,
|
|
1
|
+
{"version":3,"file":"srsly.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/programs/srsly.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC1C,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC1C,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC3C,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,qBAAqB,EACiB,OAAO,CAAC,6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|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/** Emitted when the borrower's managed token account drains to their wallet. */
|
|
10
|
+
export type BorrowerClaimed = {
|
|
11
|
+
borrowerState: Address;
|
|
12
|
+
borrower: Address;
|
|
13
|
+
amount: bigint;
|
|
14
|
+
};
|
|
15
|
+
export type BorrowerClaimedArgs = {
|
|
16
|
+
borrowerState: Address;
|
|
17
|
+
borrower: Address;
|
|
18
|
+
amount: number | bigint;
|
|
19
|
+
};
|
|
20
|
+
export declare function getBorrowerClaimedEncoder(): FixedSizeEncoder<BorrowerClaimedArgs>;
|
|
21
|
+
export declare function getBorrowerClaimedDecoder(): FixedSizeDecoder<BorrowerClaimed>;
|
|
22
|
+
export declare function getBorrowerClaimedCodec(): FixedSizeCodec<BorrowerClaimedArgs, BorrowerClaimed>;
|
|
23
|
+
//# sourceMappingURL=borrowerClaimed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borrowerClaimed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/borrowerClaimed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,gFAAgF;AAChF,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,CAMjF;AAED,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,eAAe,CAAC,CAM7E;AAED,wBAAgB,uBAAuB,IAAI,cAAc,CACvD,mBAAmB,EACnB,eAAe,CAChB,CAEA"}
|
|
@@ -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
|
+
/** Emitted when a borrower closes their state PDA + managed token account. */
|
|
10
|
+
export type BorrowerClosed = {
|
|
11
|
+
borrowerState: Address;
|
|
12
|
+
borrower: Address;
|
|
13
|
+
};
|
|
14
|
+
export type BorrowerClosedArgs = BorrowerClosed;
|
|
15
|
+
export declare function getBorrowerClosedEncoder(): FixedSizeEncoder<BorrowerClosedArgs>;
|
|
16
|
+
export declare function getBorrowerClosedDecoder(): FixedSizeDecoder<BorrowerClosed>;
|
|
17
|
+
export declare function getBorrowerClosedCodec(): FixedSizeCodec<BorrowerClosedArgs, BorrowerClosed>;
|
|
18
|
+
//# sourceMappingURL=borrowerClosed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borrowerClosed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/borrowerClosed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAML,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,8EAA8E;AAC9E,MAAM,MAAM,cAAc,GAAG;IAAE,aAAa,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AAE3E,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAEhD,wBAAgB,wBAAwB,IAAI,gBAAgB,CAAC,kBAAkB,CAAC,CAK/E;AAED,wBAAgB,wBAAwB,IAAI,gBAAgB,CAAC,cAAc,CAAC,CAK3E;AAED,wBAAgB,sBAAsB,IAAI,cAAc,CACtD,kBAAkB,EAClB,cAAc,CACf,CAEA"}
|
|
@@ -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
|
+
/** Emitted when a borrower opens their state PDA + managed token account. */
|
|
10
|
+
export type BorrowerCreated = {
|
|
11
|
+
borrowerState: Address;
|
|
12
|
+
borrower: Address;
|
|
13
|
+
};
|
|
14
|
+
export type BorrowerCreatedArgs = BorrowerCreated;
|
|
15
|
+
export declare function getBorrowerCreatedEncoder(): FixedSizeEncoder<BorrowerCreatedArgs>;
|
|
16
|
+
export declare function getBorrowerCreatedDecoder(): FixedSizeDecoder<BorrowerCreated>;
|
|
17
|
+
export declare function getBorrowerCreatedCodec(): FixedSizeCodec<BorrowerCreatedArgs, BorrowerCreated>;
|
|
18
|
+
//# sourceMappingURL=borrowerCreated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borrowerCreated.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/borrowerCreated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAML,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,6EAA6E;AAC7E,MAAM,MAAM,eAAe,GAAG;IAAE,aAAa,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5E,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,CAKjF;AAED,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,eAAe,CAAC,CAK7E;AAED,wBAAgB,uBAAuB,IAAI,cAAc,CACvD,mBAAmB,EACnB,eAAe,CAChB,CAEA"}
|
|
@@ -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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
/**
|
|
10
|
+
* Emitted when `contract_close` sets `to_close = true` because a live
|
|
11
|
+
* active rental is blocking immediate closure. The contract will close
|
|
12
|
+
* automatically when that rental ends.
|
|
13
|
+
*/
|
|
14
|
+
export type ContractCloseQueued = {
|
|
15
|
+
contract: Address;
|
|
16
|
+
owner: Address;
|
|
17
|
+
};
|
|
18
|
+
export type ContractCloseQueuedArgs = ContractCloseQueued;
|
|
19
|
+
export declare function getContractCloseQueuedEncoder(): FixedSizeEncoder<ContractCloseQueuedArgs>;
|
|
20
|
+
export declare function getContractCloseQueuedDecoder(): FixedSizeDecoder<ContractCloseQueued>;
|
|
21
|
+
export declare function getContractCloseQueuedCodec(): FixedSizeCodec<ContractCloseQueuedArgs, ContractCloseQueued>;
|
|
22
|
+
//# sourceMappingURL=contractCloseQueued.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contractCloseQueued.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/contractCloseQueued.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAML,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAExE,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAE1D,wBAAgB,6BAA6B,IAAI,gBAAgB,CAAC,uBAAuB,CAAC,CAKzF;AAED,wBAAgB,6BAA6B,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,CAKrF;AAED,wBAAgB,2BAA2B,IAAI,cAAc,CAC3D,uBAAuB,EACvB,mBAAmB,CACpB,CAKA"}
|
|
@@ -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
|
+
/** Emitted when `contract_close` actually closes the contract account. */
|
|
10
|
+
export type ContractClosed = {
|
|
11
|
+
contract: Address;
|
|
12
|
+
owner: Address;
|
|
13
|
+
};
|
|
14
|
+
export type ContractClosedArgs = ContractClosed;
|
|
15
|
+
export declare function getContractClosedEncoder(): FixedSizeEncoder<ContractClosedArgs>;
|
|
16
|
+
export declare function getContractClosedDecoder(): FixedSizeDecoder<ContractClosed>;
|
|
17
|
+
export declare function getContractClosedCodec(): FixedSizeCodec<ContractClosedArgs, ContractClosed>;
|
|
18
|
+
//# sourceMappingURL=contractClosed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contractClosed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/contractClosed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAML,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,0EAA0E;AAC1E,MAAM,MAAM,cAAc,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAEhD,wBAAgB,wBAAwB,IAAI,gBAAgB,CAAC,kBAAkB,CAAC,CAK/E;AAED,wBAAgB,wBAAwB,IAAI,gBAAgB,CAAC,cAAc,CAAC,CAK3E;AAED,wBAAgB,sBAAsB,IAAI,cAAc,CACtD,kBAAkB,EAClB,cAAc,CACf,CAEA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/** Emitted when a contract is created (fleet listed for rental). */
|
|
10
|
+
export type ContractCreated = {
|
|
11
|
+
contract: Address;
|
|
12
|
+
owner: Address;
|
|
13
|
+
fleet: Address;
|
|
14
|
+
gameId: Address;
|
|
15
|
+
rate: bigint;
|
|
16
|
+
durationMinSeconds: bigint;
|
|
17
|
+
durationMaxSeconds: bigint;
|
|
18
|
+
cancelDelayMin: bigint;
|
|
19
|
+
reservationsDisabled: boolean;
|
|
20
|
+
contestedThreshold: number;
|
|
21
|
+
staleDiscountMaxBps: number;
|
|
22
|
+
};
|
|
23
|
+
export type ContractCreatedArgs = {
|
|
24
|
+
contract: Address;
|
|
25
|
+
owner: Address;
|
|
26
|
+
fleet: Address;
|
|
27
|
+
gameId: Address;
|
|
28
|
+
rate: number | bigint;
|
|
29
|
+
durationMinSeconds: number | bigint;
|
|
30
|
+
durationMaxSeconds: number | bigint;
|
|
31
|
+
cancelDelayMin: number | bigint;
|
|
32
|
+
reservationsDisabled: boolean;
|
|
33
|
+
contestedThreshold: number;
|
|
34
|
+
staleDiscountMaxBps: number;
|
|
35
|
+
};
|
|
36
|
+
export declare function getContractCreatedEncoder(): FixedSizeEncoder<ContractCreatedArgs>;
|
|
37
|
+
export declare function getContractCreatedDecoder(): FixedSizeDecoder<ContractCreated>;
|
|
38
|
+
export declare function getContractCreatedCodec(): FixedSizeCodec<ContractCreatedArgs, ContractCreated>;
|
|
39
|
+
//# sourceMappingURL=contractCreated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contractCreated.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/contractCreated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAgBL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,oEAAoE;AACpE,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,CAcjF;AAED,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,eAAe,CAAC,CAc7E;AAED,wBAAgB,uBAAuB,IAAI,cAAc,CACvD,mBAAmB,EACnB,eAAe,CAChB,CAEA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
/**
|
|
10
|
+
* Emitted after `contract_update` applies term changes.
|
|
11
|
+
* Carries the post-update values so indexers don't need to diff state.
|
|
12
|
+
*/
|
|
13
|
+
export type ContractUpdated = {
|
|
14
|
+
contract: Address;
|
|
15
|
+
owner: Address;
|
|
16
|
+
rate: bigint;
|
|
17
|
+
durationMinSeconds: bigint;
|
|
18
|
+
durationMaxSeconds: bigint;
|
|
19
|
+
cancelDelayMin: bigint;
|
|
20
|
+
reservationsDisabled: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type ContractUpdatedArgs = {
|
|
23
|
+
contract: Address;
|
|
24
|
+
owner: Address;
|
|
25
|
+
rate: number | bigint;
|
|
26
|
+
durationMinSeconds: number | bigint;
|
|
27
|
+
durationMaxSeconds: number | bigint;
|
|
28
|
+
cancelDelayMin: number | bigint;
|
|
29
|
+
reservationsDisabled: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare function getContractUpdatedEncoder(): FixedSizeEncoder<ContractUpdatedArgs>;
|
|
32
|
+
export declare function getContractUpdatedDecoder(): FixedSizeDecoder<ContractUpdated>;
|
|
33
|
+
export declare function getContractUpdatedCodec(): FixedSizeCodec<ContractUpdatedArgs, ContractUpdated>;
|
|
34
|
+
//# sourceMappingURL=contractUpdated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contractUpdated.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/contractUpdated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,oBAAoB,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,CAUjF;AAED,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,eAAe,CAAC,CAU7E;AAED,wBAAgB,uBAAuB,IAAI,cAAc,CACvD,mBAAmB,EACnB,eAAe,CAChB,CAEA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 Codec, type Decoder, type Encoder, type Option, type OptionOrNullable } from "@solana/kit";
|
|
9
|
+
/** Emitted when the contract owner sets or clears the delegate. */
|
|
10
|
+
export type DelegateSet = {
|
|
11
|
+
contract: Address;
|
|
12
|
+
owner: Address;
|
|
13
|
+
delegate: Option<Address>;
|
|
14
|
+
};
|
|
15
|
+
export type DelegateSetArgs = {
|
|
16
|
+
contract: Address;
|
|
17
|
+
owner: Address;
|
|
18
|
+
delegate: OptionOrNullable<Address>;
|
|
19
|
+
};
|
|
20
|
+
export declare function getDelegateSetEncoder(): Encoder<DelegateSetArgs>;
|
|
21
|
+
export declare function getDelegateSetDecoder(): Decoder<DelegateSet>;
|
|
22
|
+
export declare function getDelegateSetCodec(): Codec<DelegateSetArgs, DelegateSet>;
|
|
23
|
+
//# sourceMappingURL=delegateSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delegateSet.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/delegateSet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,mEAAmE;AACnE,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CACrC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,eAAe,CAAC,CAMhE;AAED,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC,CAM5D;AAED,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,eAAe,EAAE,WAAW,CAAC,CAEzE"}
|