@wuwei-labs/srsly 2.3.3-canary.36.16828894446.0 → 3.0.0-beta.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/README.md +126 -462
- package/dist/cjs/accounts/borrower.js +47 -0
- package/dist/cjs/accounts/borrower.js.map +1 -0
- package/dist/cjs/accounts/config.js +47 -0
- package/dist/cjs/accounts/config.js.map +1 -0
- package/dist/cjs/accounts/contract.js +47 -0
- package/dist/cjs/accounts/contract.js.map +1 -0
- package/dist/cjs/accounts/fleet.js +77 -0
- package/dist/cjs/accounts/fleet.js.map +1 -0
- package/dist/cjs/accounts/rental.js +47 -0
- package/dist/cjs/accounts/rental.js.map +1 -0
- package/dist/cjs/demos.js +124 -59
- package/dist/cjs/demos.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/borrowerState.js +84 -0
- package/dist/cjs/generated/codama/accounts/borrowerState.js.map +1 -0
- package/dist/cjs/generated/codama/accounts/configState.js +37 -52
- package/dist/cjs/generated/codama/accounts/configState.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/contractState.js +27 -51
- package/dist/cjs/generated/codama/accounts/contractState.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/index.js +5 -2
- package/dist/cjs/generated/codama/accounts/index.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/memberState.js +78 -0
- package/dist/cjs/generated/codama/accounts/memberState.js.map +1 -0
- package/dist/cjs/generated/codama/accounts/rentalState.js +23 -59
- package/dist/cjs/generated/codama/accounts/rentalState.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/thread.js +45 -61
- package/dist/cjs/generated/codama/accounts/thread.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/vaultState.js +82 -0
- package/dist/cjs/generated/codama/accounts/vaultState.js.map +1 -0
- package/dist/cjs/generated/codama/errors/index.js +2 -2
- package/dist/cjs/generated/codama/errors/srsly.js +158 -19
- package/dist/cjs/generated/codama/errors/srsly.js.map +1 -1
- package/dist/cjs/generated/codama/index.js +2 -2
- package/dist/cjs/generated/codama/instructions/acceptRental.js +107 -40
- package/dist/cjs/generated/codama/instructions/acceptRental.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/cancelRental.js +53 -56
- package/dist/cjs/generated/codama/instructions/cancelRental.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/captureRental.js +129 -0
- package/dist/cjs/generated/codama/instructions/captureRental.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/claimBorrower.js +222 -0
- package/dist/cjs/generated/codama/instructions/claimBorrower.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/claimBorrowerPayments.js +225 -0
- package/dist/cjs/generated/codama/instructions/claimBorrowerPayments.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/claimContractPayments.js +230 -0
- package/dist/cjs/generated/codama/instructions/claimContractPayments.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/closeBorrower.js +84 -0
- package/dist/cjs/generated/codama/instructions/closeBorrower.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/closeContract.js +140 -31
- package/dist/cjs/generated/codama/instructions/closeContract.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/closeRental.js +31 -28
- package/dist/cjs/generated/codama/instructions/closeRental.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/createConfig.js +212 -0
- package/dist/cjs/generated/codama/instructions/createConfig.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/createContract.js +47 -45
- package/dist/cjs/generated/codama/instructions/createContract.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/deleteBorrower.js +126 -0
- package/dist/cjs/generated/codama/instructions/deleteBorrower.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/deleteConfig.js +193 -0
- package/dist/cjs/generated/codama/instructions/deleteConfig.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/deleteContract.js +115 -0
- package/dist/cjs/generated/codama/instructions/deleteContract.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/deleteRental.js +115 -0
- package/dist/cjs/generated/codama/instructions/deleteRental.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/discountBorrower.js +118 -0
- package/dist/cjs/generated/codama/instructions/discountBorrower.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/index.js +15 -4
- package/dist/cjs/generated/codama/instructions/index.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/payRental.js +95 -68
- package/dist/cjs/generated/codama/instructions/payRental.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/{resetRental.js → releaseRental.js} +79 -38
- package/dist/cjs/generated/codama/instructions/releaseRental.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/reserveRental.js +255 -0
- package/dist/cjs/generated/codama/instructions/reserveRental.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/{initializeConfig.js → updateBorrower.js} +45 -52
- package/dist/cjs/generated/codama/instructions/updateBorrower.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/updateConfig.js +41 -32
- package/dist/cjs/generated/codama/instructions/updateConfig.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/updateContract.js +134 -0
- package/dist/cjs/generated/codama/instructions/updateContract.js.map +1 -0
- package/dist/cjs/generated/codama/programs/index.js +2 -2
- package/dist/cjs/generated/codama/programs/srsly.js +74 -18
- package/dist/cjs/generated/codama/programs/srsly.js.map +1 -1
- package/dist/cjs/generated/codama/shared/index.js +2 -2
- package/dist/cjs/generated/codama/shared/index.js.map +1 -1
- package/dist/cjs/generated/codama/types/capturedFlagData.js +31 -0
- package/dist/cjs/generated/codama/types/capturedFlagData.js.map +1 -0
- package/dist/cjs/generated/codama/types/index.js +7 -9
- package/dist/cjs/generated/codama/types/index.js.map +1 -1
- package/dist/cjs/generated/codama/types/memberConfig.js +33 -0
- package/dist/cjs/generated/codama/types/memberConfig.js.map +1 -0
- package/dist/cjs/generated/codama/types/memberType.js +55 -0
- package/dist/cjs/generated/codama/types/memberType.js.map +1 -0
- package/dist/cjs/generated/codama/types/paymentFrequency.js +2 -2
- package/dist/cjs/generated/codama/types/schedule.js +65 -0
- package/dist/cjs/generated/codama/types/schedule.js.map +1 -0
- package/dist/cjs/generated/codama/types/signal.js +48 -0
- package/dist/cjs/generated/codama/types/signal.js.map +1 -0
- package/dist/cjs/generated/codama/types/trigger.js +36 -23
- package/dist/cjs/generated/codama/types/trigger.js.map +1 -1
- package/dist/cjs/index.js +172 -245
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/instructions/acceptRental.js +153 -0
- package/dist/cjs/instructions/acceptRental.js.map +1 -0
- package/dist/cjs/instructions/cancelRental.js +100 -0
- package/dist/cjs/instructions/cancelRental.js.map +1 -0
- package/dist/cjs/instructions/captureRental.js +85 -0
- package/dist/cjs/instructions/captureRental.js.map +1 -0
- package/dist/cjs/instructions/claimBorrower.js +66 -0
- package/dist/cjs/instructions/claimBorrower.js.map +1 -0
- package/dist/cjs/instructions/claimBorrowerPayments.js +69 -0
- package/dist/cjs/instructions/claimBorrowerPayments.js.map +1 -0
- package/dist/cjs/instructions/claimContractPayments.js +79 -0
- package/dist/cjs/instructions/claimContractPayments.js.map +1 -0
- package/dist/cjs/instructions/closeBorrower.js +60 -0
- package/dist/cjs/instructions/closeBorrower.js.map +1 -0
- package/dist/cjs/instructions/closeContract.js +120 -0
- package/dist/cjs/instructions/closeContract.js.map +1 -0
- package/dist/cjs/instructions/closeRental.js +105 -0
- package/dist/cjs/instructions/closeRental.js.map +1 -0
- package/dist/cjs/instructions/createConfig.js +74 -0
- package/dist/cjs/instructions/createConfig.js.map +1 -0
- package/dist/cjs/instructions/createContract.js +131 -0
- package/dist/cjs/instructions/createContract.js.map +1 -0
- package/dist/cjs/instructions/deleteBorrower.js +60 -0
- package/dist/cjs/instructions/deleteBorrower.js.map +1 -0
- package/dist/cjs/instructions/deleteConfig.js +79 -0
- package/dist/cjs/instructions/deleteConfig.js.map +1 -0
- package/dist/cjs/instructions/deleteRental.js +75 -0
- package/dist/cjs/instructions/deleteRental.js.map +1 -0
- package/dist/cjs/instructions/discountBorrower.js +75 -0
- package/dist/cjs/instructions/discountBorrower.js.map +1 -0
- package/dist/cjs/instructions/releaseRental.js +132 -0
- package/dist/cjs/instructions/releaseRental.js.map +1 -0
- package/dist/cjs/instructions/reserveRental.js +135 -0
- package/dist/cjs/instructions/reserveRental.js.map +1 -0
- package/dist/cjs/instructions/updateBorrower.js +89 -0
- package/dist/cjs/instructions/updateBorrower.js.map +1 -0
- package/dist/cjs/instructions/updateConfig.js +103 -0
- package/dist/cjs/instructions/updateConfig.js.map +1 -0
- package/dist/cjs/instructions/updateContract.js +107 -0
- package/dist/cjs/instructions/updateContract.js.map +1 -0
- package/dist/cjs/package.json +30 -32
- package/dist/cjs/params/amount.js +125 -0
- package/dist/cjs/params/amount.js.map +1 -0
- package/dist/cjs/params/duration.js +120 -0
- package/dist/cjs/params/duration.js.map +1 -0
- package/dist/cjs/params/schedule.js +164 -0
- package/dist/cjs/params/schedule.js.map +1 -0
- package/dist/cjs/pda/constants.js +73 -0
- package/dist/cjs/pda/constants.js.map +1 -0
- package/dist/cjs/pda/index.js +73 -0
- package/dist/cjs/pda/index.js.map +1 -0
- package/dist/cjs/pda/sage.js +175 -0
- package/dist/cjs/pda/sage.js.map +1 -0
- package/dist/cjs/pda/slyvault.js +56 -0
- package/dist/cjs/pda/slyvault.js.map +1 -0
- package/dist/cjs/pda/srsly.js +120 -0
- package/dist/cjs/pda/srsly.js.map +1 -0
- package/dist/cjs/pda/thread.js +64 -0
- package/dist/cjs/pda/thread.js.map +1 -0
- package/dist/cjs/pda/token.js +62 -0
- package/dist/cjs/pda/token.js.map +1 -0
- package/dist/cjs/utils/addresses.js +90 -0
- package/dist/cjs/utils/addresses.js.map +1 -0
- package/dist/cjs/utils/config.js +100 -187
- package/dist/cjs/utils/config.js.map +1 -1
- package/dist/cjs/utils/index.js +32 -28
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/instructions.js +79 -0
- package/dist/cjs/utils/instructions.js.map +1 -0
- package/dist/cjs/utils/signer.js +113 -94
- package/dist/cjs/utils/signer.js.map +1 -1
- package/dist/cjs/utils/web3js.js +76 -0
- package/dist/cjs/utils/web3js.js.map +1 -0
- package/dist/cjs/version.js +7 -0
- package/dist/cjs/version.js.map +1 -0
- package/dist/esm/accounts/borrower.js +44 -0
- package/dist/esm/accounts/borrower.js.map +1 -0
- package/dist/esm/accounts/config.js +44 -0
- package/dist/esm/accounts/config.js.map +1 -0
- package/dist/esm/accounts/contract.js +44 -0
- package/dist/esm/accounts/contract.js.map +1 -0
- package/dist/esm/accounts/fleet.js +74 -0
- package/dist/esm/accounts/fleet.js.map +1 -0
- package/dist/esm/accounts/rental.js +44 -0
- package/dist/esm/accounts/rental.js.map +1 -0
- package/dist/esm/demos.js +123 -18
- package/dist/esm/demos.js.map +1 -1
- package/dist/esm/generated/codama/accounts/borrowerState.js +72 -0
- package/dist/esm/generated/codama/accounts/borrowerState.js.map +1 -0
- package/dist/esm/generated/codama/accounts/configState.js +38 -53
- package/dist/esm/generated/codama/accounts/configState.js.map +1 -1
- package/dist/esm/generated/codama/accounts/contractState.js +28 -52
- package/dist/esm/generated/codama/accounts/contractState.js.map +1 -1
- package/dist/esm/generated/codama/accounts/index.js +5 -2
- package/dist/esm/generated/codama/accounts/index.js.map +1 -1
- package/dist/esm/generated/codama/accounts/memberState.js +66 -0
- package/dist/esm/generated/codama/accounts/memberState.js.map +1 -0
- package/dist/esm/generated/codama/accounts/rentalState.js +23 -60
- package/dist/esm/generated/codama/accounts/rentalState.js.map +1 -1
- package/dist/esm/generated/codama/accounts/thread.js +47 -63
- package/dist/esm/generated/codama/accounts/thread.js.map +1 -1
- package/dist/esm/generated/codama/accounts/vaultState.js +70 -0
- package/dist/esm/generated/codama/accounts/vaultState.js.map +1 -0
- package/dist/esm/generated/codama/errors/index.js +2 -2
- package/dist/esm/generated/codama/errors/srsly.js +156 -18
- package/dist/esm/generated/codama/errors/srsly.js.map +1 -1
- package/dist/esm/generated/codama/index.js +2 -2
- package/dist/esm/generated/codama/instructions/acceptRental.js +107 -40
- package/dist/esm/generated/codama/instructions/acceptRental.js.map +1 -1
- package/dist/esm/generated/codama/instructions/cancelRental.js +54 -57
- package/dist/esm/generated/codama/instructions/cancelRental.js.map +1 -1
- package/dist/esm/generated/codama/instructions/captureRental.js +119 -0
- package/dist/esm/generated/codama/instructions/captureRental.js.map +1 -0
- package/dist/esm/generated/codama/instructions/claimBorrower.js +212 -0
- package/dist/esm/generated/codama/instructions/claimBorrower.js.map +1 -0
- package/dist/esm/generated/codama/instructions/claimContractPayments.js +220 -0
- package/dist/esm/generated/codama/instructions/claimContractPayments.js.map +1 -0
- package/dist/esm/generated/codama/instructions/closeBorrower.js +75 -0
- package/dist/esm/generated/codama/instructions/closeBorrower.js.map +1 -0
- package/dist/esm/generated/codama/instructions/closeContract.js +142 -33
- package/dist/esm/generated/codama/instructions/closeContract.js.map +1 -1
- package/dist/esm/generated/codama/instructions/closeRental.js +31 -28
- package/dist/esm/generated/codama/instructions/closeRental.js.map +1 -1
- package/dist/esm/generated/codama/instructions/createConfig.js +202 -0
- package/dist/esm/generated/codama/instructions/createConfig.js.map +1 -0
- package/dist/esm/generated/codama/instructions/createContract.js +48 -46
- package/dist/esm/generated/codama/instructions/createContract.js.map +1 -1
- package/dist/esm/generated/codama/instructions/deleteBorrower.js +116 -0
- package/dist/esm/generated/codama/instructions/deleteBorrower.js.map +1 -0
- package/dist/esm/generated/codama/instructions/deleteConfig.js +183 -0
- package/dist/esm/generated/codama/instructions/deleteConfig.js.map +1 -0
- package/dist/esm/generated/codama/instructions/deleteContract.js +105 -0
- package/dist/esm/generated/codama/instructions/deleteContract.js.map +1 -0
- package/dist/esm/generated/codama/instructions/deleteRental.js +105 -0
- package/dist/esm/generated/codama/instructions/deleteRental.js.map +1 -0
- package/dist/esm/generated/codama/instructions/discountBorrower.js +108 -0
- package/dist/esm/generated/codama/instructions/discountBorrower.js.map +1 -0
- package/dist/esm/generated/codama/instructions/index.js +15 -4
- package/dist/esm/generated/codama/instructions/index.js.map +1 -1
- package/dist/esm/generated/codama/instructions/payRental.js +95 -68
- package/dist/esm/generated/codama/instructions/payRental.js.map +1 -1
- package/dist/esm/generated/codama/instructions/{resetRental.js → releaseRental.js} +73 -32
- package/dist/esm/generated/codama/instructions/releaseRental.js.map +1 -0
- package/dist/esm/generated/codama/instructions/reserveRental.js +245 -0
- package/dist/esm/generated/codama/instructions/reserveRental.js.map +1 -0
- package/dist/esm/generated/codama/instructions/{initializeConfig.js → updateBorrower.js} +38 -45
- package/dist/esm/generated/codama/instructions/updateBorrower.js.map +1 -0
- package/dist/esm/generated/codama/instructions/updateConfig.js +42 -33
- package/dist/esm/generated/codama/instructions/updateConfig.js.map +1 -1
- package/dist/esm/generated/codama/instructions/updateContract.js +124 -0
- package/dist/esm/generated/codama/instructions/updateContract.js.map +1 -0
- package/dist/esm/generated/codama/programs/index.js +2 -2
- package/dist/esm/generated/codama/programs/srsly.js +74 -18
- package/dist/esm/generated/codama/programs/srsly.js.map +1 -1
- package/dist/esm/generated/codama/shared/index.js +2 -2
- package/dist/esm/generated/codama/shared/index.js.map +1 -1
- package/dist/esm/generated/codama/types/capturedFlagData.js +26 -0
- package/dist/esm/generated/codama/types/capturedFlagData.js.map +1 -0
- package/dist/esm/generated/codama/types/index.js +7 -9
- package/dist/esm/generated/codama/types/index.js.map +1 -1
- package/dist/esm/generated/codama/types/memberConfig.js +28 -0
- package/dist/esm/generated/codama/types/memberConfig.js.map +1 -0
- package/dist/esm/generated/codama/types/memberType.js +48 -0
- package/dist/esm/generated/codama/types/memberType.js.map +1 -0
- package/dist/esm/generated/codama/types/paymentFrequency.js +2 -2
- package/dist/esm/generated/codama/types/schedule.js +58 -0
- package/dist/esm/generated/codama/types/schedule.js.map +1 -0
- package/dist/esm/generated/codama/types/signal.js +41 -0
- package/dist/esm/generated/codama/types/signal.js.map +1 -0
- package/dist/esm/generated/codama/types/trigger.js +37 -24
- package/dist/esm/generated/codama/types/trigger.js.map +1 -1
- package/dist/esm/index.js +78 -208
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/instructions/acceptRental.js +150 -0
- package/dist/esm/instructions/acceptRental.js.map +1 -0
- package/dist/esm/instructions/cancelRental.js +97 -0
- package/dist/esm/instructions/cancelRental.js.map +1 -0
- package/dist/esm/instructions/captureRental.js +82 -0
- package/dist/esm/instructions/captureRental.js.map +1 -0
- package/dist/esm/instructions/claimBorrower.js +63 -0
- package/dist/esm/instructions/claimBorrower.js.map +1 -0
- package/dist/esm/instructions/claimContractPayments.js +76 -0
- package/dist/esm/instructions/claimContractPayments.js.map +1 -0
- package/dist/esm/instructions/closeBorrower.js +57 -0
- package/dist/esm/instructions/closeBorrower.js.map +1 -0
- package/dist/esm/instructions/closeContract.js +117 -0
- package/dist/esm/instructions/closeContract.js.map +1 -0
- package/dist/esm/instructions/closeRental.js +102 -0
- package/dist/esm/instructions/closeRental.js.map +1 -0
- package/dist/esm/instructions/createConfig.js +71 -0
- package/dist/esm/instructions/createConfig.js.map +1 -0
- package/dist/esm/instructions/createContract.js +128 -0
- package/dist/esm/instructions/createContract.js.map +1 -0
- package/dist/esm/instructions/deleteBorrower.js +57 -0
- package/dist/esm/instructions/deleteBorrower.js.map +1 -0
- package/dist/esm/instructions/deleteConfig.js +76 -0
- package/dist/esm/instructions/deleteConfig.js.map +1 -0
- package/dist/esm/instructions/deleteRental.js +72 -0
- package/dist/esm/instructions/deleteRental.js.map +1 -0
- package/dist/esm/instructions/discountBorrower.js +72 -0
- package/dist/esm/instructions/discountBorrower.js.map +1 -0
- package/dist/esm/instructions/releaseRental.js +129 -0
- package/dist/esm/instructions/releaseRental.js.map +1 -0
- package/dist/esm/instructions/reserveRental.js +132 -0
- package/dist/esm/instructions/reserveRental.js.map +1 -0
- package/dist/esm/instructions/updateBorrower.js +86 -0
- package/dist/esm/instructions/updateBorrower.js.map +1 -0
- package/dist/esm/instructions/updateConfig.js +100 -0
- package/dist/esm/instructions/updateConfig.js.map +1 -0
- package/dist/esm/instructions/updateContract.js +104 -0
- package/dist/esm/instructions/updateContract.js.map +1 -0
- package/dist/esm/package.json +30 -32
- package/dist/esm/params/amount.js +119 -0
- package/dist/esm/params/amount.js.map +1 -0
- package/dist/esm/params/duration.js +115 -0
- package/dist/esm/params/duration.js.map +1 -0
- package/dist/esm/params/schedule.js +157 -0
- package/dist/esm/params/schedule.js.map +1 -0
- package/dist/esm/pda/constants.js +67 -0
- package/dist/esm/pda/constants.js.map +1 -0
- package/dist/esm/pda/index.js +42 -0
- package/dist/esm/pda/index.js.map +1 -0
- package/dist/esm/pda/sage.js +168 -0
- package/dist/esm/pda/sage.js.map +1 -0
- package/dist/esm/pda/slyvault.js +53 -0
- package/dist/esm/pda/slyvault.js.map +1 -0
- package/dist/esm/pda/srsly.js +113 -0
- package/dist/esm/pda/srsly.js.map +1 -0
- package/dist/esm/pda/thread.js +61 -0
- package/dist/esm/pda/thread.js.map +1 -0
- package/dist/esm/pda/token.js +59 -0
- package/dist/esm/pda/token.js.map +1 -0
- package/dist/esm/utils/addresses.js +85 -0
- package/dist/esm/utils/addresses.js.map +1 -0
- package/dist/esm/utils/config.js +95 -149
- package/dist/esm/utils/config.js.map +1 -1
- package/dist/esm/utils/index.js +12 -14
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/instructions.js +76 -0
- package/dist/esm/utils/instructions.js.map +1 -0
- package/dist/esm/utils/signer.js +109 -90
- package/dist/esm/utils/signer.js.map +1 -1
- package/dist/esm/utils/web3js.js +72 -0
- package/dist/esm/utils/web3js.js.map +1 -0
- package/dist/esm/version.js +4 -0
- package/dist/esm/version.js.map +1 -0
- package/dist/types/accounts/borrower.d.ts +34 -0
- package/dist/types/accounts/borrower.d.ts.map +1 -0
- package/dist/types/accounts/config.d.ts +31 -0
- package/dist/types/accounts/config.d.ts.map +1 -0
- package/dist/types/accounts/contract.d.ts +34 -0
- package/dist/types/accounts/contract.d.ts.map +1 -0
- package/dist/types/accounts/fleet.d.ts +49 -0
- package/dist/types/accounts/fleet.d.ts.map +1 -0
- package/dist/types/accounts/rental.d.ts +34 -0
- package/dist/types/accounts/rental.d.ts.map +1 -0
- package/dist/types/demos.d.ts +20 -52
- package/dist/types/demos.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/borrowerState.d.ts +94 -0
- package/dist/types/generated/codama/accounts/borrowerState.d.ts.map +1 -0
- package/dist/types/generated/codama/accounts/configState.d.ts +65 -22
- package/dist/types/generated/codama/accounts/configState.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/contractState.d.ts +62 -23
- package/dist/types/generated/codama/accounts/contractState.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/index.d.ts +5 -2
- package/dist/types/generated/codama/accounts/index.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/memberState.d.ts +58 -0
- package/dist/types/generated/codama/accounts/memberState.d.ts.map +1 -0
- package/dist/types/generated/codama/accounts/rentalState.d.ts +35 -39
- package/dist/types/generated/codama/accounts/rentalState.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/thread.d.ts +44 -51
- package/dist/types/generated/codama/accounts/thread.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/vaultState.d.ts +66 -0
- package/dist/types/generated/codama/accounts/vaultState.d.ts.map +1 -0
- package/dist/types/generated/codama/errors/index.d.ts +2 -2
- package/dist/types/generated/codama/errors/srsly.d.ts +111 -19
- package/dist/types/generated/codama/errors/srsly.d.ts.map +1 -1
- package/dist/types/generated/codama/index.d.ts +2 -2
- package/dist/types/generated/codama/instructions/acceptRental.d.ts +60 -45
- package/dist/types/generated/codama/instructions/acceptRental.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/cancelRental.d.ts +37 -32
- package/dist/types/generated/codama/instructions/cancelRental.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/captureRental.d.ts +59 -0
- package/dist/types/generated/codama/instructions/captureRental.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/claimBorrower.d.ts +90 -0
- package/dist/types/generated/codama/instructions/claimBorrower.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/claimBorrowerPayments.d.ts +75 -0
- package/dist/types/generated/codama/instructions/claimBorrowerPayments.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/claimContractPayments.d.ts +98 -0
- package/dist/types/generated/codama/instructions/claimContractPayments.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/closeBorrower.d.ts +43 -0
- package/dist/types/generated/codama/instructions/closeBorrower.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/closeContract.d.ts +44 -28
- package/dist/types/generated/codama/instructions/closeContract.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/closeRental.d.ts +38 -34
- package/dist/types/generated/codama/instructions/closeRental.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/createConfig.d.ts +79 -0
- package/dist/types/generated/codama/instructions/createConfig.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/createContract.d.ts +38 -30
- package/dist/types/generated/codama/instructions/createContract.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/deleteBorrower.d.ts +55 -0
- package/dist/types/generated/codama/instructions/deleteBorrower.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/deleteConfig.d.ts +75 -0
- package/dist/types/generated/codama/instructions/deleteConfig.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/deleteContract.d.ts +55 -0
- package/dist/types/generated/codama/instructions/deleteContract.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/deleteRental.d.ts +55 -0
- package/dist/types/generated/codama/instructions/deleteRental.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/discountBorrower.d.ts +56 -0
- package/dist/types/generated/codama/instructions/discountBorrower.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/index.d.ts +15 -4
- package/dist/types/generated/codama/instructions/index.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/payRental.d.ts +61 -46
- package/dist/types/generated/codama/instructions/payRental.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/releaseRental.d.ts +105 -0
- package/dist/types/generated/codama/instructions/releaseRental.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/reserveRental.d.ts +129 -0
- package/dist/types/generated/codama/instructions/reserveRental.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/updateBorrower.d.ts +62 -0
- package/dist/types/generated/codama/instructions/updateBorrower.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/updateConfig.d.ts +88 -28
- package/dist/types/generated/codama/instructions/updateConfig.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/updateContract.d.ts +88 -0
- package/dist/types/generated/codama/instructions/updateContract.d.ts.map +1 -0
- package/dist/types/generated/codama/programs/index.d.ts +2 -2
- package/dist/types/generated/codama/programs/srsly.d.ts +57 -21
- package/dist/types/generated/codama/programs/srsly.d.ts.map +1 -1
- package/dist/types/generated/codama/shared/index.d.ts +2 -13
- package/dist/types/generated/codama/shared/index.d.ts.map +1 -1
- package/dist/types/generated/codama/types/capturedFlagData.d.ts +35 -0
- package/dist/types/generated/codama/types/capturedFlagData.d.ts.map +1 -0
- package/dist/types/generated/codama/types/index.d.ts +7 -9
- package/dist/types/generated/codama/types/index.d.ts.map +1 -1
- package/dist/types/generated/codama/types/memberConfig.d.ts +33 -0
- package/dist/types/generated/codama/types/memberConfig.d.ts.map +1 -0
- package/dist/types/generated/codama/types/memberType.d.ts +48 -0
- package/dist/types/generated/codama/types/memberType.d.ts.map +1 -0
- package/dist/types/generated/codama/types/paymentFrequency.d.ts +2 -2
- package/dist/types/generated/codama/types/schedule.d.ts +46 -0
- package/dist/types/generated/codama/types/schedule.d.ts.map +1 -0
- package/dist/types/generated/codama/types/signal.d.ts +56 -0
- package/dist/types/generated/codama/types/signal.d.ts.map +1 -0
- package/dist/types/generated/codama/types/trigger.d.ts +45 -34
- package/dist/types/generated/codama/types/trigger.d.ts.map +1 -1
- package/dist/types/index.d.ts +37 -207
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/instructions/acceptRental.d.ts +99 -0
- package/dist/types/instructions/acceptRental.d.ts.map +1 -0
- package/dist/types/instructions/cancelRental.d.ts +90 -0
- package/dist/types/instructions/cancelRental.d.ts.map +1 -0
- package/dist/types/instructions/captureRental.d.ts +58 -0
- package/dist/types/instructions/captureRental.d.ts.map +1 -0
- package/dist/types/instructions/claimBorrower.d.ts +53 -0
- package/dist/types/instructions/claimBorrower.d.ts.map +1 -0
- package/dist/types/instructions/claimBorrowerPayments.d.ts +59 -0
- package/dist/types/instructions/claimBorrowerPayments.d.ts.map +1 -0
- package/dist/types/instructions/claimContractPayments.d.ts +78 -0
- package/dist/types/instructions/claimContractPayments.d.ts.map +1 -0
- package/dist/types/instructions/closeBorrower.d.ts +45 -0
- package/dist/types/instructions/closeBorrower.d.ts.map +1 -0
- package/dist/types/instructions/closeContract.d.ts +91 -0
- package/dist/types/instructions/closeContract.d.ts.map +1 -0
- package/dist/types/instructions/closeRental.d.ts +62 -0
- package/dist/types/instructions/closeRental.d.ts.map +1 -0
- package/dist/types/instructions/createConfig.d.ts +62 -0
- package/dist/types/instructions/createConfig.d.ts.map +1 -0
- package/dist/types/instructions/createContract.d.ts +127 -0
- package/dist/types/instructions/createContract.d.ts.map +1 -0
- package/dist/types/instructions/deleteBorrower.d.ts +53 -0
- package/dist/types/instructions/deleteBorrower.d.ts.map +1 -0
- package/dist/types/instructions/deleteConfig.d.ts +64 -0
- package/dist/types/instructions/deleteConfig.d.ts.map +1 -0
- package/dist/types/instructions/deleteRental.d.ts +67 -0
- package/dist/types/instructions/deleteRental.d.ts.map +1 -0
- package/dist/types/instructions/discountBorrower.d.ts +64 -0
- package/dist/types/instructions/discountBorrower.d.ts.map +1 -0
- package/dist/types/instructions/releaseRental.d.ts +104 -0
- package/dist/types/instructions/releaseRental.d.ts.map +1 -0
- package/dist/types/instructions/reserveRental.d.ts +80 -0
- package/dist/types/instructions/reserveRental.d.ts.map +1 -0
- package/dist/types/instructions/updateBorrower.d.ts +81 -0
- package/dist/types/instructions/updateBorrower.d.ts.map +1 -0
- package/dist/types/instructions/updateConfig.d.ts +142 -0
- package/dist/types/instructions/updateConfig.d.ts.map +1 -0
- package/dist/types/instructions/updateContract.d.ts +113 -0
- package/dist/types/instructions/updateContract.d.ts.map +1 -0
- package/dist/types/params/amount.d.ts +70 -0
- package/dist/types/params/amount.d.ts.map +1 -0
- package/dist/types/params/duration.d.ts +65 -0
- package/dist/types/params/duration.d.ts.map +1 -0
- package/dist/types/params/schedule.d.ts +74 -0
- package/dist/types/params/schedule.d.ts.map +1 -0
- package/dist/types/pda/constants.d.ts +51 -0
- package/dist/types/pda/constants.d.ts.map +1 -0
- package/dist/types/pda/index.d.ts +36 -0
- package/dist/types/pda/index.d.ts.map +1 -0
- package/dist/types/pda/sage.d.ts +69 -0
- package/dist/types/pda/sage.d.ts.map +1 -0
- package/dist/types/pda/slyvault.d.ts +29 -0
- package/dist/types/pda/slyvault.d.ts.map +1 -0
- package/dist/types/pda/srsly.d.ts +40 -0
- package/dist/types/pda/srsly.d.ts.map +1 -0
- package/dist/types/pda/thread.d.ts +31 -0
- package/dist/types/pda/thread.d.ts.map +1 -0
- package/dist/types/pda/token.d.ts +29 -0
- package/dist/types/pda/token.d.ts.map +1 -0
- package/dist/types/utils/addresses.d.ts +75 -0
- package/dist/types/utils/addresses.d.ts.map +1 -0
- package/dist/types/utils/config.d.ts +103 -83
- package/dist/types/utils/config.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +7 -14
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/instructions.d.ts +52 -0
- package/dist/types/utils/instructions.d.ts.map +1 -0
- package/dist/types/utils/signer.d.ts +78 -39
- package/dist/types/utils/signer.d.ts.map +1 -1
- package/dist/types/utils/web3js.d.ts +85 -0
- package/dist/types/utils/web3js.d.ts.map +1 -0
- package/dist/types/version.d.ts +2 -0
- package/dist/types/version.d.ts.map +1 -0
- package/package.json +32 -47
- package/dist/cjs/config/index.js +0 -12
- package/dist/cjs/config/index.js.map +0 -1
- package/dist/cjs/config/initialize.js +0 -95
- package/dist/cjs/config/initialize.js.map +0 -1
- package/dist/cjs/config/update.js +0 -163
- package/dist/cjs/config/update.js.map +0 -1
- package/dist/cjs/contract/close.js +0 -159
- package/dist/cjs/contract/close.js.map +0 -1
- package/dist/cjs/contract/create.js +0 -259
- package/dist/cjs/contract/create.js.map +0 -1
- package/dist/cjs/contract/index.js +0 -68
- package/dist/cjs/contract/index.js.map +0 -1
- package/dist/cjs/generated/codama/instructions/initializeConfig.js.map +0 -1
- package/dist/cjs/generated/codama/instructions/resetRental.js.map +0 -1
- package/dist/cjs/generated/codama/types/clockData.js +0 -58
- package/dist/cjs/generated/codama/types/clockData.js.map +0 -1
- package/dist/cjs/generated/codama/types/equality.js +0 -30
- package/dist/cjs/generated/codama/types/equality.js.map +0 -1
- package/dist/cjs/generated/codama/types/execContext.js +0 -68
- package/dist/cjs/generated/codama/types/execContext.js.map +0 -1
- package/dist/cjs/generated/codama/types/serializableAccount.js +0 -58
- package/dist/cjs/generated/codama/types/serializableAccount.js.map +0 -1
- package/dist/cjs/generated/codama/types/serializableInstruction.js +0 -59
- package/dist/cjs/generated/codama/types/serializableInstruction.js.map +0 -1
- package/dist/cjs/generated/codama/types/threadResponse.js +0 -68
- package/dist/cjs/generated/codama/types/threadResponse.js.map +0 -1
- package/dist/cjs/generated/codama/types/triggerContext.js +0 -49
- package/dist/cjs/generated/codama/types/triggerContext.js.map +0 -1
- package/dist/cjs/idl/index.js +0 -27
- package/dist/cjs/idl/index.js.map +0 -1
- package/dist/cjs/idl/srsly-data.js +0 -3140
- package/dist/cjs/idl/srsly-data.js.map +0 -1
- package/dist/cjs/idl/srsly.json +0 -3104
- package/dist/cjs/rental/accept.js +0 -263
- package/dist/cjs/rental/accept.js.map +0 -1
- package/dist/cjs/rental/cancel.js +0 -184
- package/dist/cjs/rental/cancel.js.map +0 -1
- package/dist/cjs/rental/close.js +0 -184
- package/dist/cjs/rental/close.js.map +0 -1
- package/dist/cjs/rental/index.js +0 -105
- package/dist/cjs/rental/index.js.map +0 -1
- package/dist/cjs/rental/reset.js +0 -192
- package/dist/cjs/rental/reset.js.map +0 -1
- package/dist/cjs/types/payment-frequency.js +0 -87
- package/dist/cjs/types/payment-frequency.js.map +0 -1
- package/dist/cjs/types/srsly.js +0 -3
- package/dist/cjs/types/srsly.js.map +0 -1
- package/dist/cjs/utils/constants.js +0 -78
- package/dist/cjs/utils/constants.js.map +0 -1
- package/dist/cjs/utils/cron.js +0 -204
- package/dist/cjs/utils/cron.js.map +0 -1
- package/dist/cjs/utils/derive-pda.js +0 -415
- package/dist/cjs/utils/derive-pda.js.map +0 -1
- package/dist/cjs/utils/fetch-accounts.js +0 -241
- package/dist/cjs/utils/fetch-accounts.js.map +0 -1
- package/dist/cjs/utils/instruction-converter.js +0 -125
- package/dist/cjs/utils/instruction-converter.js.map +0 -1
- package/dist/cjs/utils/param-converters.js +0 -190
- package/dist/cjs/utils/param-converters.js.map +0 -1
- package/dist/cjs/utils/payment-frequency.js +0 -111
- package/dist/cjs/utils/payment-frequency.js.map +0 -1
- package/dist/cjs/utils/schedule-builder.js +0 -158
- package/dist/cjs/utils/schedule-builder.js.map +0 -1
- package/dist/cjs/utils/schedule-validation.js +0 -136
- package/dist/cjs/utils/schedule-validation.js.map +0 -1
- package/dist/cjs/utils/smart-params.js +0 -52
- package/dist/cjs/utils/smart-params.js.map +0 -1
- package/dist/esm/config/index.js +0 -7
- package/dist/esm/config/index.js.map +0 -1
- package/dist/esm/config/initialize.js +0 -92
- package/dist/esm/config/initialize.js.map +0 -1
- package/dist/esm/config/update.js +0 -159
- package/dist/esm/config/update.js.map +0 -1
- package/dist/esm/contract/close.js +0 -154
- package/dist/esm/contract/close.js.map +0 -1
- package/dist/esm/contract/create.js +0 -255
- package/dist/esm/contract/create.js.map +0 -1
- package/dist/esm/contract/index.js +0 -52
- package/dist/esm/contract/index.js.map +0 -1
- package/dist/esm/generated/codama/instructions/initializeConfig.js.map +0 -1
- package/dist/esm/generated/codama/instructions/resetRental.js.map +0 -1
- package/dist/esm/generated/codama/types/clockData.js +0 -53
- package/dist/esm/generated/codama/types/clockData.js.map +0 -1
- package/dist/esm/generated/codama/types/equality.js +0 -24
- package/dist/esm/generated/codama/types/equality.js.map +0 -1
- package/dist/esm/generated/codama/types/execContext.js +0 -63
- package/dist/esm/generated/codama/types/execContext.js.map +0 -1
- package/dist/esm/generated/codama/types/serializableAccount.js +0 -53
- package/dist/esm/generated/codama/types/serializableAccount.js.map +0 -1
- package/dist/esm/generated/codama/types/serializableInstruction.js +0 -54
- package/dist/esm/generated/codama/types/serializableInstruction.js.map +0 -1
- package/dist/esm/generated/codama/types/threadResponse.js +0 -63
- package/dist/esm/generated/codama/types/threadResponse.js.map +0 -1
- package/dist/esm/generated/codama/types/triggerContext.js +0 -42
- package/dist/esm/generated/codama/types/triggerContext.js.map +0 -1
- package/dist/esm/idl/index.js +0 -21
- package/dist/esm/idl/index.js.map +0 -1
- package/dist/esm/idl/srsly-data.js +0 -3137
- package/dist/esm/idl/srsly-data.js.map +0 -1
- package/dist/esm/idl/srsly.json +0 -3104
- package/dist/esm/rental/accept.js +0 -258
- package/dist/esm/rental/accept.js.map +0 -1
- package/dist/esm/rental/cancel.js +0 -179
- package/dist/esm/rental/cancel.js.map +0 -1
- package/dist/esm/rental/close.js +0 -179
- package/dist/esm/rental/close.js.map +0 -1
- package/dist/esm/rental/index.js +0 -89
- package/dist/esm/rental/index.js.map +0 -1
- package/dist/esm/rental/reset.js +0 -187
- package/dist/esm/rental/reset.js.map +0 -1
- package/dist/esm/types/payment-frequency.js +0 -83
- package/dist/esm/types/payment-frequency.js.map +0 -1
- package/dist/esm/types/srsly.js +0 -2
- package/dist/esm/types/srsly.js.map +0 -1
- package/dist/esm/utils/constants.js +0 -70
- package/dist/esm/utils/constants.js.map +0 -1
- package/dist/esm/utils/cron.js +0 -195
- package/dist/esm/utils/cron.js.map +0 -1
- package/dist/esm/utils/derive-pda.js +0 -402
- package/dist/esm/utils/derive-pda.js.map +0 -1
- package/dist/esm/utils/fetch-accounts.js +0 -233
- package/dist/esm/utils/fetch-accounts.js.map +0 -1
- package/dist/esm/utils/instruction-converter.js +0 -120
- package/dist/esm/utils/instruction-converter.js.map +0 -1
- package/dist/esm/utils/param-converters.js +0 -182
- package/dist/esm/utils/param-converters.js.map +0 -1
- package/dist/esm/utils/payment-frequency.js +0 -104
- package/dist/esm/utils/payment-frequency.js.map +0 -1
- package/dist/esm/utils/schedule-builder.js +0 -153
- package/dist/esm/utils/schedule-builder.js.map +0 -1
- package/dist/esm/utils/schedule-validation.js +0 -132
- package/dist/esm/utils/schedule-validation.js.map +0 -1
- package/dist/esm/utils/smart-params.js +0 -49
- package/dist/esm/utils/smart-params.js.map +0 -1
- package/dist/types/config/index.d.ts +0 -7
- package/dist/types/config/index.d.ts.map +0 -1
- package/dist/types/config/initialize.d.ts +0 -66
- package/dist/types/config/initialize.d.ts.map +0 -1
- package/dist/types/config/update.d.ts +0 -143
- package/dist/types/config/update.d.ts.map +0 -1
- package/dist/types/contract/close.d.ts +0 -124
- package/dist/types/contract/close.d.ts.map +0 -1
- package/dist/types/contract/create.d.ts +0 -150
- package/dist/types/contract/create.d.ts.map +0 -1
- package/dist/types/contract/index.d.ts +0 -52
- package/dist/types/contract/index.d.ts.map +0 -1
- package/dist/types/generated/codama/instructions/initializeConfig.d.ts +0 -60
- package/dist/types/generated/codama/instructions/initializeConfig.d.ts.map +0 -1
- package/dist/types/generated/codama/instructions/resetRental.d.ts +0 -79
- package/dist/types/generated/codama/instructions/resetRental.d.ts.map +0 -1
- package/dist/types/generated/codama/types/clockData.d.ts +0 -30
- package/dist/types/generated/codama/types/clockData.d.ts.map +0 -1
- package/dist/types/generated/codama/types/equality.d.ts +0 -18
- package/dist/types/generated/codama/types/equality.d.ts.map +0 -1
- package/dist/types/generated/codama/types/execContext.d.ts +0 -49
- package/dist/types/generated/codama/types/execContext.d.ts.map +0 -1
- package/dist/types/generated/codama/types/serializableAccount.d.ts +0 -23
- package/dist/types/generated/codama/types/serializableAccount.d.ts.map +0 -1
- package/dist/types/generated/codama/types/serializableInstruction.d.ts +0 -31
- package/dist/types/generated/codama/types/serializableInstruction.d.ts.map +0 -1
- package/dist/types/generated/codama/types/threadResponse.d.ts +0 -43
- package/dist/types/generated/codama/types/threadResponse.d.ts.map +0 -1
- package/dist/types/generated/codama/types/triggerContext.d.ts +0 -75
- package/dist/types/generated/codama/types/triggerContext.d.ts.map +0 -1
- package/dist/types/idl/index.d.ts +0 -21
- package/dist/types/idl/index.d.ts.map +0 -1
- package/dist/types/idl/srsly-data.d.ts +0 -1458
- package/dist/types/idl/srsly-data.d.ts.map +0 -1
- package/dist/types/rental/accept.d.ts +0 -196
- package/dist/types/rental/accept.d.ts.map +0 -1
- package/dist/types/rental/cancel.d.ts +0 -141
- package/dist/types/rental/cancel.d.ts.map +0 -1
- package/dist/types/rental/close.d.ts +0 -130
- package/dist/types/rental/close.d.ts.map +0 -1
- package/dist/types/rental/index.d.ts +0 -89
- package/dist/types/rental/index.d.ts.map +0 -1
- package/dist/types/rental/reset.d.ts +0 -166
- package/dist/types/rental/reset.d.ts.map +0 -1
- package/dist/types/types/payment-frequency.d.ts +0 -55
- package/dist/types/types/payment-frequency.d.ts.map +0 -1
- package/dist/types/types/srsly.d.ts +0 -3111
- package/dist/types/types/srsly.d.ts.map +0 -1
- package/dist/types/utils/constants.d.ts +0 -26
- package/dist/types/utils/constants.d.ts.map +0 -1
- package/dist/types/utils/cron.d.ts +0 -77
- package/dist/types/utils/cron.d.ts.map +0 -1
- package/dist/types/utils/derive-pda.d.ts +0 -213
- package/dist/types/utils/derive-pda.d.ts.map +0 -1
- package/dist/types/utils/fetch-accounts.d.ts +0 -158
- package/dist/types/utils/fetch-accounts.d.ts.map +0 -1
- package/dist/types/utils/instruction-converter.d.ts +0 -171
- package/dist/types/utils/instruction-converter.d.ts.map +0 -1
- package/dist/types/utils/param-converters.d.ts +0 -67
- package/dist/types/utils/param-converters.d.ts.map +0 -1
- package/dist/types/utils/payment-frequency.d.ts +0 -38
- package/dist/types/utils/payment-frequency.d.ts.map +0 -1
- package/dist/types/utils/schedule-builder.d.ts +0 -64
- package/dist/types/utils/schedule-builder.d.ts.map +0 -1
- package/dist/types/utils/schedule-validation.d.ts +0 -36
- package/dist/types/utils/schedule-validation.d.ts.map +0 -1
- package/dist/types/utils/smart-params.d.ts +0 -112
- package/dist/types/utils/smart-params.d.ts.map +0 -1
|
@@ -1,1458 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was AUTO-GENERATED from the Anchor IDL.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE manually - it will be overwritten.
|
|
4
|
-
*
|
|
5
|
-
* Generated by: generate.mjs
|
|
6
|
-
*/
|
|
7
|
-
export declare const IDL: {
|
|
8
|
-
readonly address: "SRSLY1fq9TJqCk1gNSE7VZL2bztvTn9wm4VR8u8jMKT";
|
|
9
|
-
readonly metadata: {
|
|
10
|
-
readonly name: "srsly";
|
|
11
|
-
readonly version: "2.0.0";
|
|
12
|
-
readonly spec: "0.1.0";
|
|
13
|
-
readonly description: "Space Rental from SLY";
|
|
14
|
-
};
|
|
15
|
-
readonly instructions: readonly [{
|
|
16
|
-
readonly name: "accept_rental";
|
|
17
|
-
readonly docs: readonly ["Accept a rental contract by providing payment and specifying duration."];
|
|
18
|
-
readonly discriminator: readonly [192, 221, 241, 212, 141, 161, 36, 146];
|
|
19
|
-
readonly accounts: readonly [{
|
|
20
|
-
readonly name: "config";
|
|
21
|
-
readonly pda: {
|
|
22
|
-
readonly seeds: readonly [{
|
|
23
|
-
readonly kind: "const";
|
|
24
|
-
readonly value: readonly [99, 111, 110, 102, 105, 103];
|
|
25
|
-
}];
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
readonly name: "mint";
|
|
29
|
-
}, {
|
|
30
|
-
readonly name: "borrower";
|
|
31
|
-
readonly writable: true;
|
|
32
|
-
readonly signer: true;
|
|
33
|
-
}, {
|
|
34
|
-
readonly name: "borrower_profile";
|
|
35
|
-
}, {
|
|
36
|
-
readonly name: "borrower_profile_faction";
|
|
37
|
-
}, {
|
|
38
|
-
readonly name: "borrower_token_account";
|
|
39
|
-
readonly writable: true;
|
|
40
|
-
readonly pda: {
|
|
41
|
-
readonly seeds: readonly [{
|
|
42
|
-
readonly kind: "account";
|
|
43
|
-
readonly path: "borrower";
|
|
44
|
-
}, {
|
|
45
|
-
readonly kind: "const";
|
|
46
|
-
readonly value: readonly [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
47
|
-
}, {
|
|
48
|
-
readonly kind: "account";
|
|
49
|
-
readonly path: "mint";
|
|
50
|
-
}];
|
|
51
|
-
readonly program: {
|
|
52
|
-
readonly kind: "const";
|
|
53
|
-
readonly value: readonly [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
}, {
|
|
57
|
-
readonly name: "fleet";
|
|
58
|
-
readonly writable: true;
|
|
59
|
-
readonly relations: readonly ["contract"];
|
|
60
|
-
}, {
|
|
61
|
-
readonly name: "game_id";
|
|
62
|
-
}, {
|
|
63
|
-
readonly name: "starbase";
|
|
64
|
-
}, {
|
|
65
|
-
readonly name: "starbase_player";
|
|
66
|
-
readonly writable: true;
|
|
67
|
-
}, {
|
|
68
|
-
readonly name: "contract";
|
|
69
|
-
readonly writable: true;
|
|
70
|
-
readonly pda: {
|
|
71
|
-
readonly seeds: readonly [{
|
|
72
|
-
readonly kind: "const";
|
|
73
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 99, 111, 110, 116, 114, 97, 99, 116];
|
|
74
|
-
}, {
|
|
75
|
-
readonly kind: "account";
|
|
76
|
-
readonly path: "contract.fleet";
|
|
77
|
-
readonly account: "ContractState";
|
|
78
|
-
}];
|
|
79
|
-
};
|
|
80
|
-
}, {
|
|
81
|
-
readonly name: "rental_state";
|
|
82
|
-
readonly writable: true;
|
|
83
|
-
readonly pda: {
|
|
84
|
-
readonly seeds: readonly [{
|
|
85
|
-
readonly kind: "const";
|
|
86
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 115, 116, 97, 116, 101];
|
|
87
|
-
}, {
|
|
88
|
-
readonly kind: "account";
|
|
89
|
-
readonly path: "contract";
|
|
90
|
-
}, {
|
|
91
|
-
readonly kind: "account";
|
|
92
|
-
readonly path: "borrower";
|
|
93
|
-
}];
|
|
94
|
-
};
|
|
95
|
-
}, {
|
|
96
|
-
readonly name: "rental_authority";
|
|
97
|
-
readonly pda: {
|
|
98
|
-
readonly seeds: readonly [{
|
|
99
|
-
readonly kind: "const";
|
|
100
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
|
|
101
|
-
}];
|
|
102
|
-
};
|
|
103
|
-
}, {
|
|
104
|
-
readonly name: "rental_token_account";
|
|
105
|
-
readonly writable: true;
|
|
106
|
-
readonly pda: {
|
|
107
|
-
readonly seeds: readonly [{
|
|
108
|
-
readonly kind: "account";
|
|
109
|
-
readonly path: "rental_state";
|
|
110
|
-
}, {
|
|
111
|
-
readonly kind: "const";
|
|
112
|
-
readonly value: readonly [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
113
|
-
}, {
|
|
114
|
-
readonly kind: "account";
|
|
115
|
-
readonly path: "mint";
|
|
116
|
-
}];
|
|
117
|
-
readonly program: {
|
|
118
|
-
readonly kind: "const";
|
|
119
|
-
readonly value: readonly [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
}, {
|
|
123
|
-
readonly name: "fee_token_account";
|
|
124
|
-
readonly writable: true;
|
|
125
|
-
readonly pda: {
|
|
126
|
-
readonly seeds: readonly [{
|
|
127
|
-
readonly kind: "account";
|
|
128
|
-
readonly path: "config.fees_account";
|
|
129
|
-
readonly account: "ConfigState";
|
|
130
|
-
}, {
|
|
131
|
-
readonly kind: "const";
|
|
132
|
-
readonly value: readonly [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
133
|
-
}, {
|
|
134
|
-
readonly kind: "account";
|
|
135
|
-
readonly path: "mint";
|
|
136
|
-
}];
|
|
137
|
-
readonly program: {
|
|
138
|
-
readonly kind: "const";
|
|
139
|
-
readonly value: readonly [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
}, {
|
|
143
|
-
readonly name: "rental_thread";
|
|
144
|
-
readonly writable: true;
|
|
145
|
-
}, {
|
|
146
|
-
readonly name: "sage_program";
|
|
147
|
-
}, {
|
|
148
|
-
readonly name: "antegen_program";
|
|
149
|
-
readonly address: "AgThdyi1P5RkVeZD2rQahTvs8HePJoGFFxKtvok5s2J1";
|
|
150
|
-
}, {
|
|
151
|
-
readonly name: "token_program";
|
|
152
|
-
readonly address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
153
|
-
}, {
|
|
154
|
-
readonly name: "associated_token_program";
|
|
155
|
-
readonly address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
156
|
-
}, {
|
|
157
|
-
readonly name: "system_program";
|
|
158
|
-
readonly address: "11111111111111111111111111111111";
|
|
159
|
-
}];
|
|
160
|
-
readonly args: readonly [{
|
|
161
|
-
readonly name: "amount";
|
|
162
|
-
readonly type: "u64";
|
|
163
|
-
}, {
|
|
164
|
-
readonly name: "duration";
|
|
165
|
-
readonly type: "u64";
|
|
166
|
-
}];
|
|
167
|
-
}, {
|
|
168
|
-
readonly name: "cancel_rental";
|
|
169
|
-
readonly docs: readonly ["Cancel an active rental early with prorated refunds."];
|
|
170
|
-
readonly discriminator: readonly [97, 204, 63, 8, 84, 34, 28, 43];
|
|
171
|
-
readonly accounts: readonly [{
|
|
172
|
-
readonly name: "config";
|
|
173
|
-
readonly pda: {
|
|
174
|
-
readonly seeds: readonly [{
|
|
175
|
-
readonly kind: "const";
|
|
176
|
-
readonly value: readonly [99, 111, 110, 102, 105, 103];
|
|
177
|
-
}];
|
|
178
|
-
};
|
|
179
|
-
}, {
|
|
180
|
-
readonly name: "mint";
|
|
181
|
-
}, {
|
|
182
|
-
readonly name: "borrower";
|
|
183
|
-
readonly writable: true;
|
|
184
|
-
readonly signer: true;
|
|
185
|
-
}, {
|
|
186
|
-
readonly name: "borrower_token_account";
|
|
187
|
-
readonly writable: true;
|
|
188
|
-
readonly pda: {
|
|
189
|
-
readonly seeds: readonly [{
|
|
190
|
-
readonly kind: "account";
|
|
191
|
-
readonly path: "borrower";
|
|
192
|
-
}, {
|
|
193
|
-
readonly kind: "const";
|
|
194
|
-
readonly value: readonly [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
195
|
-
}, {
|
|
196
|
-
readonly kind: "account";
|
|
197
|
-
readonly path: "mint";
|
|
198
|
-
}];
|
|
199
|
-
readonly program: {
|
|
200
|
-
readonly kind: "const";
|
|
201
|
-
readonly value: readonly [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
}, {
|
|
205
|
-
readonly name: "rental_thread";
|
|
206
|
-
readonly writable: true;
|
|
207
|
-
}, {
|
|
208
|
-
readonly name: "contract";
|
|
209
|
-
}, {
|
|
210
|
-
readonly name: "rental_state";
|
|
211
|
-
readonly writable: true;
|
|
212
|
-
readonly pda: {
|
|
213
|
-
readonly seeds: readonly [{
|
|
214
|
-
readonly kind: "const";
|
|
215
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 115, 116, 97, 116, 101];
|
|
216
|
-
}, {
|
|
217
|
-
readonly kind: "account";
|
|
218
|
-
readonly path: "contract";
|
|
219
|
-
}, {
|
|
220
|
-
readonly kind: "account";
|
|
221
|
-
readonly path: "borrower";
|
|
222
|
-
}];
|
|
223
|
-
};
|
|
224
|
-
}, {
|
|
225
|
-
readonly name: "rental_token_account";
|
|
226
|
-
readonly writable: true;
|
|
227
|
-
readonly pda: {
|
|
228
|
-
readonly seeds: readonly [{
|
|
229
|
-
readonly kind: "account";
|
|
230
|
-
readonly path: "rental_state";
|
|
231
|
-
}, {
|
|
232
|
-
readonly kind: "const";
|
|
233
|
-
readonly value: readonly [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
234
|
-
}, {
|
|
235
|
-
readonly kind: "account";
|
|
236
|
-
readonly path: "mint";
|
|
237
|
-
}];
|
|
238
|
-
readonly program: {
|
|
239
|
-
readonly kind: "const";
|
|
240
|
-
readonly value: readonly [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
241
|
-
};
|
|
242
|
-
};
|
|
243
|
-
}, {
|
|
244
|
-
readonly name: "rental_authority";
|
|
245
|
-
readonly pda: {
|
|
246
|
-
readonly seeds: readonly [{
|
|
247
|
-
readonly kind: "const";
|
|
248
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
|
|
249
|
-
}];
|
|
250
|
-
};
|
|
251
|
-
}, {
|
|
252
|
-
readonly name: "token_program";
|
|
253
|
-
readonly address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
254
|
-
}, {
|
|
255
|
-
readonly name: "associated_token_program";
|
|
256
|
-
readonly address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
257
|
-
}, {
|
|
258
|
-
readonly name: "system_program";
|
|
259
|
-
readonly address: "11111111111111111111111111111111";
|
|
260
|
-
}];
|
|
261
|
-
readonly args: readonly [];
|
|
262
|
-
}, {
|
|
263
|
-
readonly name: "close_contract";
|
|
264
|
-
readonly docs: readonly ["Closes a rental contract. Contract must have no active rentals."];
|
|
265
|
-
readonly discriminator: readonly [37, 244, 34, 168, 92, 202, 80, 106];
|
|
266
|
-
readonly accounts: readonly [{
|
|
267
|
-
readonly name: "owner";
|
|
268
|
-
readonly writable: true;
|
|
269
|
-
readonly signer: true;
|
|
270
|
-
readonly relations: readonly ["contract"];
|
|
271
|
-
}, {
|
|
272
|
-
readonly name: "fleet";
|
|
273
|
-
readonly writable: true;
|
|
274
|
-
}, {
|
|
275
|
-
readonly name: "game_id";
|
|
276
|
-
}, {
|
|
277
|
-
readonly name: "starbase";
|
|
278
|
-
}, {
|
|
279
|
-
readonly name: "starbase_player";
|
|
280
|
-
readonly writable: true;
|
|
281
|
-
}, {
|
|
282
|
-
readonly name: "contract";
|
|
283
|
-
readonly writable: true;
|
|
284
|
-
readonly pda: {
|
|
285
|
-
readonly seeds: readonly [{
|
|
286
|
-
readonly kind: "const";
|
|
287
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 99, 111, 110, 116, 114, 97, 99, 116];
|
|
288
|
-
}, {
|
|
289
|
-
readonly kind: "account";
|
|
290
|
-
readonly path: "contract.fleet";
|
|
291
|
-
readonly account: "ContractState";
|
|
292
|
-
}];
|
|
293
|
-
};
|
|
294
|
-
}, {
|
|
295
|
-
readonly name: "rental_authority";
|
|
296
|
-
readonly pda: {
|
|
297
|
-
readonly seeds: readonly [{
|
|
298
|
-
readonly kind: "const";
|
|
299
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
|
|
300
|
-
}];
|
|
301
|
-
};
|
|
302
|
-
}, {
|
|
303
|
-
readonly name: "sage_program";
|
|
304
|
-
}];
|
|
305
|
-
readonly args: readonly [];
|
|
306
|
-
}, {
|
|
307
|
-
readonly name: "close_rental";
|
|
308
|
-
readonly docs: readonly ["Close a completed or expired rental and clean up state."];
|
|
309
|
-
readonly discriminator: readonly [179, 188, 113, 211, 41, 232, 51, 51];
|
|
310
|
-
readonly accounts: readonly [{
|
|
311
|
-
readonly name: "config";
|
|
312
|
-
readonly pda: {
|
|
313
|
-
readonly seeds: readonly [{
|
|
314
|
-
readonly kind: "const";
|
|
315
|
-
readonly value: readonly [99, 111, 110, 102, 105, 103];
|
|
316
|
-
}];
|
|
317
|
-
};
|
|
318
|
-
}, {
|
|
319
|
-
readonly name: "mint";
|
|
320
|
-
}, {
|
|
321
|
-
readonly name: "payer";
|
|
322
|
-
readonly writable: true;
|
|
323
|
-
readonly signer: true;
|
|
324
|
-
}, {
|
|
325
|
-
readonly name: "borrower";
|
|
326
|
-
readonly writable: true;
|
|
327
|
-
readonly relations: readonly ["rental_state"];
|
|
328
|
-
}, {
|
|
329
|
-
readonly name: "owner";
|
|
330
|
-
readonly writable: true;
|
|
331
|
-
}, {
|
|
332
|
-
readonly name: "owner_token_account";
|
|
333
|
-
readonly writable: true;
|
|
334
|
-
readonly pda: {
|
|
335
|
-
readonly seeds: readonly [{
|
|
336
|
-
readonly kind: "account";
|
|
337
|
-
readonly path: "owner";
|
|
338
|
-
}, {
|
|
339
|
-
readonly kind: "const";
|
|
340
|
-
readonly value: readonly [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
341
|
-
}, {
|
|
342
|
-
readonly kind: "account";
|
|
343
|
-
readonly path: "mint";
|
|
344
|
-
}];
|
|
345
|
-
readonly program: {
|
|
346
|
-
readonly kind: "const";
|
|
347
|
-
readonly value: readonly [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
}, {
|
|
351
|
-
readonly name: "contract";
|
|
352
|
-
readonly writable: true;
|
|
353
|
-
}, {
|
|
354
|
-
readonly name: "rental_state";
|
|
355
|
-
readonly writable: true;
|
|
356
|
-
readonly pda: {
|
|
357
|
-
readonly seeds: readonly [{
|
|
358
|
-
readonly kind: "const";
|
|
359
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 115, 116, 97, 116, 101];
|
|
360
|
-
}, {
|
|
361
|
-
readonly kind: "account";
|
|
362
|
-
readonly path: "contract";
|
|
363
|
-
}, {
|
|
364
|
-
readonly kind: "account";
|
|
365
|
-
readonly path: "borrower";
|
|
366
|
-
}];
|
|
367
|
-
};
|
|
368
|
-
}, {
|
|
369
|
-
readonly name: "rental_token_account";
|
|
370
|
-
readonly writable: true;
|
|
371
|
-
readonly pda: {
|
|
372
|
-
readonly seeds: readonly [{
|
|
373
|
-
readonly kind: "account";
|
|
374
|
-
readonly path: "rental_state";
|
|
375
|
-
}, {
|
|
376
|
-
readonly kind: "const";
|
|
377
|
-
readonly value: readonly [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
378
|
-
}, {
|
|
379
|
-
readonly kind: "account";
|
|
380
|
-
readonly path: "mint";
|
|
381
|
-
}];
|
|
382
|
-
readonly program: {
|
|
383
|
-
readonly kind: "const";
|
|
384
|
-
readonly value: readonly [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
|
-
}, {
|
|
388
|
-
readonly name: "rental_authority";
|
|
389
|
-
readonly pda: {
|
|
390
|
-
readonly seeds: readonly [{
|
|
391
|
-
readonly kind: "const";
|
|
392
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
|
|
393
|
-
}];
|
|
394
|
-
};
|
|
395
|
-
}, {
|
|
396
|
-
readonly name: "rental_thread";
|
|
397
|
-
readonly writable: true;
|
|
398
|
-
}, {
|
|
399
|
-
readonly name: "fleet";
|
|
400
|
-
readonly writable: true;
|
|
401
|
-
}, {
|
|
402
|
-
readonly name: "game_id";
|
|
403
|
-
}, {
|
|
404
|
-
readonly name: "starbase";
|
|
405
|
-
}, {
|
|
406
|
-
readonly name: "starbase_player";
|
|
407
|
-
readonly writable: true;
|
|
408
|
-
}, {
|
|
409
|
-
readonly name: "sage_program";
|
|
410
|
-
}, {
|
|
411
|
-
readonly name: "antegen_program";
|
|
412
|
-
readonly address: "AgThdyi1P5RkVeZD2rQahTvs8HePJoGFFxKtvok5s2J1";
|
|
413
|
-
}, {
|
|
414
|
-
readonly name: "token_program";
|
|
415
|
-
readonly address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
416
|
-
}, {
|
|
417
|
-
readonly name: "associated_token_program";
|
|
418
|
-
readonly address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
419
|
-
}, {
|
|
420
|
-
readonly name: "system_program";
|
|
421
|
-
readonly address: "11111111111111111111111111111111";
|
|
422
|
-
}];
|
|
423
|
-
readonly args: readonly [];
|
|
424
|
-
}, {
|
|
425
|
-
readonly name: "create_contract";
|
|
426
|
-
readonly docs: readonly ["Creates a new rental contract for a fleet with specified terms."];
|
|
427
|
-
readonly discriminator: readonly [244, 48, 244, 178, 216, 88, 122, 52];
|
|
428
|
-
readonly accounts: readonly [{
|
|
429
|
-
readonly name: "config";
|
|
430
|
-
readonly pda: {
|
|
431
|
-
readonly seeds: readonly [{
|
|
432
|
-
readonly kind: "const";
|
|
433
|
-
readonly value: readonly [99, 111, 110, 102, 105, 103];
|
|
434
|
-
}];
|
|
435
|
-
};
|
|
436
|
-
}, {
|
|
437
|
-
readonly name: "mint";
|
|
438
|
-
}, {
|
|
439
|
-
readonly name: "owner";
|
|
440
|
-
readonly writable: true;
|
|
441
|
-
readonly signer: true;
|
|
442
|
-
}, {
|
|
443
|
-
readonly name: "owner_token_account";
|
|
444
|
-
readonly writable: true;
|
|
445
|
-
readonly pda: {
|
|
446
|
-
readonly seeds: readonly [{
|
|
447
|
-
readonly kind: "account";
|
|
448
|
-
readonly path: "owner";
|
|
449
|
-
}, {
|
|
450
|
-
readonly kind: "const";
|
|
451
|
-
readonly value: readonly [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
452
|
-
}, {
|
|
453
|
-
readonly kind: "account";
|
|
454
|
-
readonly path: "mint";
|
|
455
|
-
}];
|
|
456
|
-
readonly program: {
|
|
457
|
-
readonly kind: "const";
|
|
458
|
-
readonly value: readonly [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
459
|
-
};
|
|
460
|
-
};
|
|
461
|
-
}, {
|
|
462
|
-
readonly name: "fleet";
|
|
463
|
-
readonly writable: true;
|
|
464
|
-
}, {
|
|
465
|
-
readonly name: "owner_profile";
|
|
466
|
-
}, {
|
|
467
|
-
readonly name: "game_id";
|
|
468
|
-
}, {
|
|
469
|
-
readonly name: "contract";
|
|
470
|
-
readonly writable: true;
|
|
471
|
-
readonly pda: {
|
|
472
|
-
readonly seeds: readonly [{
|
|
473
|
-
readonly kind: "const";
|
|
474
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 99, 111, 110, 116, 114, 97, 99, 116];
|
|
475
|
-
}, {
|
|
476
|
-
readonly kind: "account";
|
|
477
|
-
readonly path: "fleet";
|
|
478
|
-
}];
|
|
479
|
-
};
|
|
480
|
-
}, {
|
|
481
|
-
readonly name: "rental_authority";
|
|
482
|
-
readonly pda: {
|
|
483
|
-
readonly seeds: readonly [{
|
|
484
|
-
readonly kind: "const";
|
|
485
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
|
|
486
|
-
}];
|
|
487
|
-
};
|
|
488
|
-
}, {
|
|
489
|
-
readonly name: "token_program";
|
|
490
|
-
readonly address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
491
|
-
}, {
|
|
492
|
-
readonly name: "associated_token_program";
|
|
493
|
-
readonly address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
494
|
-
}, {
|
|
495
|
-
readonly name: "system_program";
|
|
496
|
-
readonly address: "11111111111111111111111111111111";
|
|
497
|
-
}, {
|
|
498
|
-
readonly name: "sage_program";
|
|
499
|
-
}];
|
|
500
|
-
readonly args: readonly [{
|
|
501
|
-
readonly name: "rate";
|
|
502
|
-
readonly type: "u64";
|
|
503
|
-
}, {
|
|
504
|
-
readonly name: "duration_min";
|
|
505
|
-
readonly type: "u64";
|
|
506
|
-
}, {
|
|
507
|
-
readonly name: "duration_max";
|
|
508
|
-
readonly type: "u64";
|
|
509
|
-
}, {
|
|
510
|
-
readonly name: "payments_feq";
|
|
511
|
-
readonly type: "string";
|
|
512
|
-
}, {
|
|
513
|
-
readonly name: "owner_key_index";
|
|
514
|
-
readonly type: "u16";
|
|
515
|
-
}];
|
|
516
|
-
}, {
|
|
517
|
-
readonly name: "initialize_config";
|
|
518
|
-
readonly docs: readonly ["Initialize global program configuration. Called once during deployment."];
|
|
519
|
-
readonly discriminator: readonly [208, 127, 21, 1, 194, 190, 196, 70];
|
|
520
|
-
readonly accounts: readonly [{
|
|
521
|
-
readonly name: "config";
|
|
522
|
-
readonly writable: true;
|
|
523
|
-
readonly pda: {
|
|
524
|
-
readonly seeds: readonly [{
|
|
525
|
-
readonly kind: "const";
|
|
526
|
-
readonly value: readonly [99, 111, 110, 102, 105, 103];
|
|
527
|
-
}];
|
|
528
|
-
};
|
|
529
|
-
}, {
|
|
530
|
-
readonly name: "authority";
|
|
531
|
-
readonly writable: true;
|
|
532
|
-
readonly signer: true;
|
|
533
|
-
readonly address: "5xoQptcACAAAwPunPAgNgoGfEqywR5VyZdUdzGpaTp2z";
|
|
534
|
-
}, {
|
|
535
|
-
readonly name: "system_program";
|
|
536
|
-
readonly address: "11111111111111111111111111111111";
|
|
537
|
-
}];
|
|
538
|
-
readonly args: readonly [{
|
|
539
|
-
readonly name: "fees_account";
|
|
540
|
-
readonly type: "pubkey";
|
|
541
|
-
}, {
|
|
542
|
-
readonly name: "atlas_mint";
|
|
543
|
-
readonly type: "pubkey";
|
|
544
|
-
}];
|
|
545
|
-
}, {
|
|
546
|
-
readonly name: "pay_rental";
|
|
547
|
-
readonly docs: readonly ["Process recurring rental payments via automated Clockwork thread."];
|
|
548
|
-
readonly discriminator: readonly [114, 15, 111, 207, 115, 207, 108, 169];
|
|
549
|
-
readonly accounts: readonly [{
|
|
550
|
-
readonly name: "config";
|
|
551
|
-
readonly pda: {
|
|
552
|
-
readonly seeds: readonly [{
|
|
553
|
-
readonly kind: "const";
|
|
554
|
-
readonly value: readonly [99, 111, 110, 102, 105, 103];
|
|
555
|
-
}];
|
|
556
|
-
};
|
|
557
|
-
}, {
|
|
558
|
-
readonly name: "borrower";
|
|
559
|
-
readonly writable: true;
|
|
560
|
-
}, {
|
|
561
|
-
readonly name: "owner";
|
|
562
|
-
readonly writable: true;
|
|
563
|
-
}, {
|
|
564
|
-
readonly name: "owner_token_account";
|
|
565
|
-
readonly writable: true;
|
|
566
|
-
}, {
|
|
567
|
-
readonly name: "fleet";
|
|
568
|
-
readonly writable: true;
|
|
569
|
-
}, {
|
|
570
|
-
readonly name: "game_id";
|
|
571
|
-
}, {
|
|
572
|
-
readonly name: "starbase";
|
|
573
|
-
}, {
|
|
574
|
-
readonly name: "starbase_player";
|
|
575
|
-
readonly writable: true;
|
|
576
|
-
}, {
|
|
577
|
-
readonly name: "contract";
|
|
578
|
-
readonly writable: true;
|
|
579
|
-
readonly pda: {
|
|
580
|
-
readonly seeds: readonly [{
|
|
581
|
-
readonly kind: "const";
|
|
582
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 99, 111, 110, 116, 114, 97, 99, 116];
|
|
583
|
-
}, {
|
|
584
|
-
readonly kind: "account";
|
|
585
|
-
readonly path: "contract.fleet";
|
|
586
|
-
readonly account: "ContractState";
|
|
587
|
-
}];
|
|
588
|
-
};
|
|
589
|
-
}, {
|
|
590
|
-
readonly name: "rental_state";
|
|
591
|
-
readonly writable: true;
|
|
592
|
-
}, {
|
|
593
|
-
readonly name: "rental_authority";
|
|
594
|
-
readonly pda: {
|
|
595
|
-
readonly seeds: readonly [{
|
|
596
|
-
readonly kind: "const";
|
|
597
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
|
|
598
|
-
}];
|
|
599
|
-
};
|
|
600
|
-
}, {
|
|
601
|
-
readonly name: "rental_token_account";
|
|
602
|
-
readonly writable: true;
|
|
603
|
-
readonly pda: {
|
|
604
|
-
readonly seeds: readonly [{
|
|
605
|
-
readonly kind: "account";
|
|
606
|
-
readonly path: "rental_state";
|
|
607
|
-
}, {
|
|
608
|
-
readonly kind: "const";
|
|
609
|
-
readonly value: readonly [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
610
|
-
}, {
|
|
611
|
-
readonly kind: "account";
|
|
612
|
-
readonly path: "config.atlas_mint";
|
|
613
|
-
readonly account: "ConfigState";
|
|
614
|
-
}];
|
|
615
|
-
readonly program: {
|
|
616
|
-
readonly kind: "const";
|
|
617
|
-
readonly value: readonly [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
618
|
-
};
|
|
619
|
-
};
|
|
620
|
-
}, {
|
|
621
|
-
readonly name: "rental_thread";
|
|
622
|
-
readonly writable: true;
|
|
623
|
-
readonly signer: true;
|
|
624
|
-
}, {
|
|
625
|
-
readonly name: "sage_program";
|
|
626
|
-
}, {
|
|
627
|
-
readonly name: "antegen_program";
|
|
628
|
-
readonly address: "AgThdyi1P5RkVeZD2rQahTvs8HePJoGFFxKtvok5s2J1";
|
|
629
|
-
}, {
|
|
630
|
-
readonly name: "token_program";
|
|
631
|
-
readonly address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
632
|
-
}];
|
|
633
|
-
readonly args: readonly [];
|
|
634
|
-
readonly returns: {
|
|
635
|
-
readonly defined: {
|
|
636
|
-
readonly name: "ThreadResponse";
|
|
637
|
-
};
|
|
638
|
-
};
|
|
639
|
-
}, {
|
|
640
|
-
readonly name: "reset_rental";
|
|
641
|
-
readonly docs: readonly ["Reset a cancelled rental and process refunds."];
|
|
642
|
-
readonly discriminator: readonly [139, 185, 76, 32, 61, 143, 163, 183];
|
|
643
|
-
readonly accounts: readonly [{
|
|
644
|
-
readonly name: "signer";
|
|
645
|
-
readonly writable: true;
|
|
646
|
-
readonly signer: true;
|
|
647
|
-
}, {
|
|
648
|
-
readonly name: "fleet";
|
|
649
|
-
readonly writable: true;
|
|
650
|
-
}, {
|
|
651
|
-
readonly name: "game_id";
|
|
652
|
-
}, {
|
|
653
|
-
readonly name: "starbase";
|
|
654
|
-
}, {
|
|
655
|
-
readonly name: "starbase_player";
|
|
656
|
-
readonly writable: true;
|
|
657
|
-
}, {
|
|
658
|
-
readonly name: "rental_state";
|
|
659
|
-
}, {
|
|
660
|
-
readonly name: "contract";
|
|
661
|
-
readonly writable: true;
|
|
662
|
-
}, {
|
|
663
|
-
readonly name: "owner";
|
|
664
|
-
readonly writable: true;
|
|
665
|
-
}, {
|
|
666
|
-
readonly name: "rental_authority";
|
|
667
|
-
readonly pda: {
|
|
668
|
-
readonly seeds: readonly [{
|
|
669
|
-
readonly kind: "const";
|
|
670
|
-
readonly value: readonly [114, 101, 110, 116, 97, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
|
|
671
|
-
}];
|
|
672
|
-
};
|
|
673
|
-
}, {
|
|
674
|
-
readonly name: "sage_program";
|
|
675
|
-
}];
|
|
676
|
-
readonly args: readonly [];
|
|
677
|
-
}, {
|
|
678
|
-
readonly name: "update_config";
|
|
679
|
-
readonly docs: readonly ["Update program configuration. Only callable by config authority."];
|
|
680
|
-
readonly discriminator: readonly [29, 158, 252, 191, 10, 83, 219, 99];
|
|
681
|
-
readonly accounts: readonly [{
|
|
682
|
-
readonly name: "config";
|
|
683
|
-
readonly writable: true;
|
|
684
|
-
readonly pda: {
|
|
685
|
-
readonly seeds: readonly [{
|
|
686
|
-
readonly kind: "const";
|
|
687
|
-
readonly value: readonly [99, 111, 110, 102, 105, 103];
|
|
688
|
-
}];
|
|
689
|
-
};
|
|
690
|
-
}, {
|
|
691
|
-
readonly name: "authority";
|
|
692
|
-
readonly signer: true;
|
|
693
|
-
readonly relations: readonly ["config"];
|
|
694
|
-
}];
|
|
695
|
-
readonly args: readonly [{
|
|
696
|
-
readonly name: "params";
|
|
697
|
-
readonly type: {
|
|
698
|
-
readonly defined: {
|
|
699
|
-
readonly name: "ConfigUpdateParams";
|
|
700
|
-
};
|
|
701
|
-
};
|
|
702
|
-
}];
|
|
703
|
-
}];
|
|
704
|
-
readonly accounts: readonly [{
|
|
705
|
-
readonly name: "ConfigState";
|
|
706
|
-
readonly discriminator: readonly [193, 77, 160, 128, 208, 254, 180, 135];
|
|
707
|
-
}, {
|
|
708
|
-
readonly name: "ContractState";
|
|
709
|
-
readonly discriminator: readonly [190, 138, 10, 223, 189, 116, 222, 115];
|
|
710
|
-
}, {
|
|
711
|
-
readonly name: "RentalState";
|
|
712
|
-
readonly discriminator: readonly [97, 162, 29, 222, 251, 251, 180, 244];
|
|
713
|
-
}, {
|
|
714
|
-
readonly name: "Thread";
|
|
715
|
-
readonly discriminator: readonly [186, 27, 154, 111, 51, 36, 159, 90];
|
|
716
|
-
}];
|
|
717
|
-
readonly errors: readonly [{
|
|
718
|
-
readonly code: 6000;
|
|
719
|
-
readonly name: "Unauthorized";
|
|
720
|
-
readonly msg: "Unauthorized to use this instruction. Check that you have the correct authority.";
|
|
721
|
-
}, {
|
|
722
|
-
readonly code: 6001;
|
|
723
|
-
readonly name: "InvalidDurationMinimum";
|
|
724
|
-
readonly msg: "Invalid duration minimum. Must be between configured minimum and the contract's duration maximum.";
|
|
725
|
-
}, {
|
|
726
|
-
readonly code: 6002;
|
|
727
|
-
readonly name: "InvalidDurationMaximum";
|
|
728
|
-
readonly msg: "Invalid duration maximum. Must be greater than or equal to duration minimum and less than config maximum.";
|
|
729
|
-
}, {
|
|
730
|
-
readonly code: 6003;
|
|
731
|
-
readonly name: "InvalidRateCalculation";
|
|
732
|
-
readonly msg: "Invalid payment amount (rate * payment periods). Check your calculation.";
|
|
733
|
-
}, {
|
|
734
|
-
readonly code: 6004;
|
|
735
|
-
readonly name: "FleetAlreadyRented";
|
|
736
|
-
readonly msg: "Fleet is already rented. Wait for current rental to end or be cancelled.";
|
|
737
|
-
}, {
|
|
738
|
-
readonly code: 6005;
|
|
739
|
-
readonly name: "InvalidRate";
|
|
740
|
-
readonly msg: "Invalid rental rate. Rate must be greater than or equal to 0 ATLAS.";
|
|
741
|
-
}, {
|
|
742
|
-
readonly code: 6006;
|
|
743
|
-
readonly name: "InvalidPaymentFrequency";
|
|
744
|
-
readonly msg: "Invalid payment frequency. Must be one of the allowed frequencies configured in the program.";
|
|
745
|
-
}, {
|
|
746
|
-
readonly code: 6007;
|
|
747
|
-
readonly name: "InsufficientCancellationNotice";
|
|
748
|
-
readonly msg: "Insufficient cancellation notice. Must cancel at least one payment period before rental ends.";
|
|
749
|
-
}, {
|
|
750
|
-
readonly code: 6008;
|
|
751
|
-
readonly name: "ContractClosed";
|
|
752
|
-
readonly msg: "Contract is closed and no longer accepts rentals. Find another available fleet.";
|
|
753
|
-
}, {
|
|
754
|
-
readonly code: 6009;
|
|
755
|
-
readonly name: "InvalidThreadContext";
|
|
756
|
-
readonly msg: "Thread has invalid execution context. Thread may have been corrupted or incorrectly initialized.";
|
|
757
|
-
}, {
|
|
758
|
-
readonly code: 6010;
|
|
759
|
-
readonly name: "RentalIsActive";
|
|
760
|
-
readonly msg: "Rental is still active. Wait for it to expire or use rental_cancel to end early.";
|
|
761
|
-
}, {
|
|
762
|
-
readonly code: 6011;
|
|
763
|
-
readonly name: "RentalStateExists";
|
|
764
|
-
readonly msg: "Rental state still exists. Cannot reset fleet until rental state is properly closed.";
|
|
765
|
-
}, {
|
|
766
|
-
readonly code: 6012;
|
|
767
|
-
readonly name: "InvalidFeeRate";
|
|
768
|
-
readonly msg: "Invalid fee rate. Service fee must be <= 10% (1000 bps), base_bps must be > 0.";
|
|
769
|
-
}, {
|
|
770
|
-
readonly code: 6013;
|
|
771
|
-
readonly name: "InvalidRentalDuration";
|
|
772
|
-
readonly msg: "Invalid rental duration. Min >= 1 hour, max >= min, max <= 3 months.";
|
|
773
|
-
}, {
|
|
774
|
-
readonly code: 6014;
|
|
775
|
-
readonly name: "UnauthorizedConfigUpdate";
|
|
776
|
-
readonly msg: "Only the config authority can update settings. Check the authority address.";
|
|
777
|
-
}, {
|
|
778
|
-
readonly code: 6015;
|
|
779
|
-
readonly name: "InvalidAtlasConversionRate";
|
|
780
|
-
readonly msg: "Invalid ATLAS conversion rate. Must be greater than 0 (typically 100,000,000 for 1 ATLAS).";
|
|
781
|
-
}, {
|
|
782
|
-
readonly code: 6016;
|
|
783
|
-
readonly name: "AccountOwnedByWrongProgram";
|
|
784
|
-
readonly msg: "Account is owned by a different program than expected. Check account initialization.";
|
|
785
|
-
}, {
|
|
786
|
-
readonly code: 6017;
|
|
787
|
-
readonly name: "InvalidDurationMinimumAlignment";
|
|
788
|
-
readonly msg: "Duration minimum must be a multiple of the payment frequency (e.g., daily = 86400 seconds).";
|
|
789
|
-
}, {
|
|
790
|
-
readonly code: 6018;
|
|
791
|
-
readonly name: "InvalidDurationMaximumAlignment";
|
|
792
|
-
readonly msg: "Duration maximum must be a multiple of the payment frequency (e.g., daily = 86400 seconds).";
|
|
793
|
-
}, {
|
|
794
|
-
readonly code: 6019;
|
|
795
|
-
readonly name: "RentalExpired";
|
|
796
|
-
readonly msg: "Rental has expired. Use rental_close instruction to process final payment and clean up.";
|
|
797
|
-
}, {
|
|
798
|
-
readonly code: 6020;
|
|
799
|
-
readonly name: "InvalidThread";
|
|
800
|
-
readonly msg: "Thread account does not match the rental state's thread reference. Use the correct thread.";
|
|
801
|
-
}, {
|
|
802
|
-
readonly code: 6021;
|
|
803
|
-
readonly name: "RentalAlreadyCancelled";
|
|
804
|
-
readonly msg: "Rental has already been cancelled. No further action needed.";
|
|
805
|
-
}, {
|
|
806
|
-
readonly code: 6022;
|
|
807
|
-
readonly name: "InvalidStarbase";
|
|
808
|
-
readonly msg: "Invalid starbase - doesn't match stored value in rental state.";
|
|
809
|
-
}, {
|
|
810
|
-
readonly code: 6023;
|
|
811
|
-
readonly name: "InvalidStarbasePlayer";
|
|
812
|
-
readonly msg: "Invalid starbase player - doesn't match stored value in rental state.";
|
|
813
|
-
}];
|
|
814
|
-
readonly types: readonly [{
|
|
815
|
-
readonly name: "ClockData";
|
|
816
|
-
readonly docs: readonly ["The clock object, representing a specific moment in time recorded by a Solana cluster."];
|
|
817
|
-
readonly type: {
|
|
818
|
-
readonly kind: "struct";
|
|
819
|
-
readonly fields: readonly [{
|
|
820
|
-
readonly name: "slot";
|
|
821
|
-
readonly docs: readonly ["The current slot."];
|
|
822
|
-
readonly type: "u64";
|
|
823
|
-
}, {
|
|
824
|
-
readonly name: "epoch";
|
|
825
|
-
readonly docs: readonly ["The bank epoch."];
|
|
826
|
-
readonly type: "u64";
|
|
827
|
-
}, {
|
|
828
|
-
readonly name: "unix_timestamp";
|
|
829
|
-
readonly docs: readonly ["The current unix timestamp."];
|
|
830
|
-
readonly type: "i64";
|
|
831
|
-
}];
|
|
832
|
-
};
|
|
833
|
-
}, {
|
|
834
|
-
readonly name: "ConfigState";
|
|
835
|
-
readonly docs: readonly ["Global configuration for the SRSLY rental program.", "", "PDA derived from `CONFIG_SEED`. Contains system-wide settings including fees,", "duration limits, and payment frequencies. Only config authority can update."];
|
|
836
|
-
readonly type: {
|
|
837
|
-
readonly kind: "struct";
|
|
838
|
-
readonly fields: readonly [{
|
|
839
|
-
readonly name: "version";
|
|
840
|
-
readonly docs: readonly ["Account version for migrations"];
|
|
841
|
-
readonly type: "u8";
|
|
842
|
-
}, {
|
|
843
|
-
readonly name: "bump";
|
|
844
|
-
readonly docs: readonly ["PDA bump seed"];
|
|
845
|
-
readonly type: "u8";
|
|
846
|
-
}, {
|
|
847
|
-
readonly name: "authority";
|
|
848
|
-
readonly docs: readonly ["Authority that can update configuration"];
|
|
849
|
-
readonly type: "pubkey";
|
|
850
|
-
}, {
|
|
851
|
-
readonly name: "stardust_to_atlas";
|
|
852
|
-
readonly docs: readonly ["Stardust to ATLAS conversion rate (default: 100M = 1 ATLAS)"];
|
|
853
|
-
readonly type: "u64";
|
|
854
|
-
}, {
|
|
855
|
-
readonly name: "service_fee_bps";
|
|
856
|
-
readonly docs: readonly ["Service fee in basis points (default: 1000 = 10%, max: 10%)"];
|
|
857
|
-
readonly type: "u64";
|
|
858
|
-
}, {
|
|
859
|
-
readonly name: "base_bps";
|
|
860
|
-
readonly docs: readonly ["Basis points denominator (default: 10,000)"];
|
|
861
|
-
readonly type: "u64";
|
|
862
|
-
}, {
|
|
863
|
-
readonly name: "rental_duration_min_seconds";
|
|
864
|
-
readonly docs: readonly ["Minimum rental duration (default: 3600s = 1 hour)"];
|
|
865
|
-
readonly type: "u64";
|
|
866
|
-
}, {
|
|
867
|
-
readonly name: "rental_duration_max_seconds";
|
|
868
|
-
readonly docs: readonly ["Maximum rental duration (default: 8,035,200s ≈ 3 months)"];
|
|
869
|
-
readonly type: "u64";
|
|
870
|
-
}, {
|
|
871
|
-
readonly name: "fees_account";
|
|
872
|
-
readonly docs: readonly ["Address that receives collected fees"];
|
|
873
|
-
readonly type: "pubkey";
|
|
874
|
-
}, {
|
|
875
|
-
readonly name: "atlas_mint";
|
|
876
|
-
readonly docs: readonly ["ATLAS token mint for payments"];
|
|
877
|
-
readonly type: "pubkey";
|
|
878
|
-
}, {
|
|
879
|
-
readonly name: "default_payment_frequency";
|
|
880
|
-
readonly docs: readonly ["Default payment frequency (default: Daily)"];
|
|
881
|
-
readonly type: {
|
|
882
|
-
readonly defined: {
|
|
883
|
-
readonly name: "PaymentFrequency";
|
|
884
|
-
};
|
|
885
|
-
};
|
|
886
|
-
}, {
|
|
887
|
-
readonly name: "allowed_frequencies";
|
|
888
|
-
readonly docs: readonly ["Allowed payment frequencies (max 10)"];
|
|
889
|
-
readonly type: {
|
|
890
|
-
readonly vec: {
|
|
891
|
-
readonly defined: {
|
|
892
|
-
readonly name: "PaymentFrequency";
|
|
893
|
-
};
|
|
894
|
-
};
|
|
895
|
-
};
|
|
896
|
-
}];
|
|
897
|
-
};
|
|
898
|
-
}, {
|
|
899
|
-
readonly name: "ConfigUpdateParams";
|
|
900
|
-
readonly docs: readonly ["Parameters for updating global configuration. All fields are optional", "for partial updates."];
|
|
901
|
-
readonly type: {
|
|
902
|
-
readonly kind: "struct";
|
|
903
|
-
readonly fields: readonly [{
|
|
904
|
-
readonly name: "authority";
|
|
905
|
-
readonly docs: readonly ["New authority address"];
|
|
906
|
-
readonly type: {
|
|
907
|
-
readonly option: "pubkey";
|
|
908
|
-
};
|
|
909
|
-
}, {
|
|
910
|
-
readonly name: "stardust_to_atlas";
|
|
911
|
-
readonly docs: readonly ["Stardust to ATLAS conversion rate"];
|
|
912
|
-
readonly type: {
|
|
913
|
-
readonly option: "u64";
|
|
914
|
-
};
|
|
915
|
-
}, {
|
|
916
|
-
readonly name: "service_fee_bps";
|
|
917
|
-
readonly docs: readonly ["Service fee in basis points (1000 = 10%)"];
|
|
918
|
-
readonly type: {
|
|
919
|
-
readonly option: "u64";
|
|
920
|
-
};
|
|
921
|
-
}, {
|
|
922
|
-
readonly name: "base_bps";
|
|
923
|
-
readonly docs: readonly ["Basis points denominator"];
|
|
924
|
-
readonly type: {
|
|
925
|
-
readonly option: "u64";
|
|
926
|
-
};
|
|
927
|
-
}, {
|
|
928
|
-
readonly name: "rental_duration_min_seconds";
|
|
929
|
-
readonly docs: readonly ["Minimum rental duration in seconds"];
|
|
930
|
-
readonly type: {
|
|
931
|
-
readonly option: "u64";
|
|
932
|
-
};
|
|
933
|
-
}, {
|
|
934
|
-
readonly name: "rental_duration_max_seconds";
|
|
935
|
-
readonly docs: readonly ["Maximum rental duration in seconds"];
|
|
936
|
-
readonly type: {
|
|
937
|
-
readonly option: "u64";
|
|
938
|
-
};
|
|
939
|
-
}, {
|
|
940
|
-
readonly name: "fees_account";
|
|
941
|
-
readonly docs: readonly ["Fee collection address"];
|
|
942
|
-
readonly type: {
|
|
943
|
-
readonly option: "pubkey";
|
|
944
|
-
};
|
|
945
|
-
}, {
|
|
946
|
-
readonly name: "atlas_mint";
|
|
947
|
-
readonly docs: readonly ["ATLAS token mint address"];
|
|
948
|
-
readonly type: {
|
|
949
|
-
readonly option: "pubkey";
|
|
950
|
-
};
|
|
951
|
-
}, {
|
|
952
|
-
readonly name: "default_payment_frequency";
|
|
953
|
-
readonly docs: readonly ["Default payment frequency"];
|
|
954
|
-
readonly type: {
|
|
955
|
-
readonly option: {
|
|
956
|
-
readonly defined: {
|
|
957
|
-
readonly name: "PaymentFrequency";
|
|
958
|
-
};
|
|
959
|
-
};
|
|
960
|
-
};
|
|
961
|
-
}, {
|
|
962
|
-
readonly name: "allowed_frequencies";
|
|
963
|
-
readonly docs: readonly ["Allowed payment frequencies"];
|
|
964
|
-
readonly type: {
|
|
965
|
-
readonly option: {
|
|
966
|
-
readonly vec: {
|
|
967
|
-
readonly defined: {
|
|
968
|
-
readonly name: "PaymentFrequency";
|
|
969
|
-
};
|
|
970
|
-
};
|
|
971
|
-
};
|
|
972
|
-
};
|
|
973
|
-
}];
|
|
974
|
-
};
|
|
975
|
-
}, {
|
|
976
|
-
readonly name: "ContractState";
|
|
977
|
-
readonly docs: readonly ["Rental contract defining terms for a specific fleet.", "", "PDA derived from `RENTAL_CONTRACT_SEED` and fleet public key. Integrates with SAGE", "for fleet ownership and rental permissions."];
|
|
978
|
-
readonly type: {
|
|
979
|
-
readonly kind: "struct";
|
|
980
|
-
readonly fields: readonly [{
|
|
981
|
-
readonly name: "version";
|
|
982
|
-
readonly docs: readonly ["Version number for account migrations"];
|
|
983
|
-
readonly type: "u8";
|
|
984
|
-
}, {
|
|
985
|
-
readonly name: "to_close";
|
|
986
|
-
readonly docs: readonly ["Whether contract is scheduled for closure"];
|
|
987
|
-
readonly type: "bool";
|
|
988
|
-
}, {
|
|
989
|
-
readonly name: "rate";
|
|
990
|
-
readonly docs: readonly ["Rental rate per payment period in ATLAS tokens"];
|
|
991
|
-
readonly type: "u64";
|
|
992
|
-
}, {
|
|
993
|
-
readonly name: "duration_min";
|
|
994
|
-
readonly docs: readonly ["Minimum rental duration in seconds"];
|
|
995
|
-
readonly type: "u64";
|
|
996
|
-
}, {
|
|
997
|
-
readonly name: "duration_max";
|
|
998
|
-
readonly docs: readonly ["Maximum rental duration in seconds"];
|
|
999
|
-
readonly type: "u64";
|
|
1000
|
-
}, {
|
|
1001
|
-
readonly name: "payments_feq";
|
|
1002
|
-
readonly docs: readonly ["Payment frequency string (@hourly, @daily, etc.)"];
|
|
1003
|
-
readonly type: "string";
|
|
1004
|
-
}, {
|
|
1005
|
-
readonly name: "fleet";
|
|
1006
|
-
readonly docs: readonly ["Fleet associated with this contract"];
|
|
1007
|
-
readonly type: "pubkey";
|
|
1008
|
-
}, {
|
|
1009
|
-
readonly name: "game_id";
|
|
1010
|
-
readonly docs: readonly ["Game ID for SAGE integration"];
|
|
1011
|
-
readonly type: "pubkey";
|
|
1012
|
-
}, {
|
|
1013
|
-
readonly name: "current_rental_state";
|
|
1014
|
-
readonly docs: readonly ["Currently active rental state (system_program::ID if none)"];
|
|
1015
|
-
readonly type: "pubkey";
|
|
1016
|
-
}, {
|
|
1017
|
-
readonly name: "owner";
|
|
1018
|
-
readonly docs: readonly ["Fleet owner who receives payments"];
|
|
1019
|
-
readonly type: "pubkey";
|
|
1020
|
-
}, {
|
|
1021
|
-
readonly name: "owner_token_account";
|
|
1022
|
-
readonly docs: readonly ["Owner's token account for receiving payments"];
|
|
1023
|
-
readonly type: "pubkey";
|
|
1024
|
-
}, {
|
|
1025
|
-
readonly name: "owner_profile";
|
|
1026
|
-
readonly docs: readonly ["Owner's Star Atlas game profile"];
|
|
1027
|
-
readonly type: "pubkey";
|
|
1028
|
-
}, {
|
|
1029
|
-
readonly name: "bump";
|
|
1030
|
-
readonly docs: readonly ["PDA bump seed"];
|
|
1031
|
-
readonly type: "u8";
|
|
1032
|
-
}];
|
|
1033
|
-
};
|
|
1034
|
-
}, {
|
|
1035
|
-
readonly name: "Equality";
|
|
1036
|
-
readonly docs: readonly ["Operators for describing how to compare two values to one another."];
|
|
1037
|
-
readonly repr: {
|
|
1038
|
-
readonly kind: "rust";
|
|
1039
|
-
};
|
|
1040
|
-
readonly type: {
|
|
1041
|
-
readonly kind: "enum";
|
|
1042
|
-
readonly variants: readonly [{
|
|
1043
|
-
readonly name: "GreaterThanOrEqual";
|
|
1044
|
-
}, {
|
|
1045
|
-
readonly name: "LessThanOrEqual";
|
|
1046
|
-
}];
|
|
1047
|
-
};
|
|
1048
|
-
}, {
|
|
1049
|
-
readonly name: "ExecContext";
|
|
1050
|
-
readonly docs: readonly ["The execution context of a particular transaction thread."];
|
|
1051
|
-
readonly type: {
|
|
1052
|
-
readonly kind: "struct";
|
|
1053
|
-
readonly fields: readonly [{
|
|
1054
|
-
readonly name: "exec_index";
|
|
1055
|
-
readonly docs: readonly ["Index of the next instruction to be executed."];
|
|
1056
|
-
readonly type: "u64";
|
|
1057
|
-
}, {
|
|
1058
|
-
readonly name: "execs_since_reimbursement";
|
|
1059
|
-
readonly docs: readonly ["Number of execs since the last tx reimbursement.", "To be deprecated in v3 since we now reimburse for every transaction."];
|
|
1060
|
-
readonly type: "u64";
|
|
1061
|
-
}, {
|
|
1062
|
-
readonly name: "execs_since_slot";
|
|
1063
|
-
readonly docs: readonly ["Number of execs in this slot."];
|
|
1064
|
-
readonly type: "u64";
|
|
1065
|
-
}, {
|
|
1066
|
-
readonly name: "last_exec_at";
|
|
1067
|
-
readonly docs: readonly ["Slot of the last exec"];
|
|
1068
|
-
readonly type: "u64";
|
|
1069
|
-
}, {
|
|
1070
|
-
readonly name: "last_exec_timestamp";
|
|
1071
|
-
readonly docs: readonly ["Unix timestamp of last exec"];
|
|
1072
|
-
readonly type: "i64";
|
|
1073
|
-
}, {
|
|
1074
|
-
readonly name: "trigger_context";
|
|
1075
|
-
readonly docs: readonly ["Context for the triggering condition"];
|
|
1076
|
-
readonly type: {
|
|
1077
|
-
readonly defined: {
|
|
1078
|
-
readonly name: "TriggerContext";
|
|
1079
|
-
};
|
|
1080
|
-
};
|
|
1081
|
-
}];
|
|
1082
|
-
};
|
|
1083
|
-
}, {
|
|
1084
|
-
readonly name: "PaymentFrequency";
|
|
1085
|
-
readonly docs: readonly ["Represents the different payment frequencies supported by the rental system.", "", "Payment frequencies determine how often rental payments are processed automatically.", "Each frequency corresponds to a specific time interval and is used to calculate", "payment amounts and schedule automated payment threads.", "", "# Variants", "", "* `Hourly` - Payments processed every hour (3,600 seconds)", "* `Daily` - Payments processed every day (86,400 seconds) - **Default**", "* `DailyOld` - Legacy daily variant maintained for backwards compatibility", "* `Weekly` - Payments processed every week (604,800 seconds)", "* `Monthly` - Payments processed every month (2,678,400 seconds)", "* `Decasecond` - Payments processed every 10 seconds (development/testing only)", "* `Minute` - Payments processed every minute (development/testing only)", "", "# Examples", "", "```rust,ignore", "use PaymentFrequency;", "", "// Create a daily payment frequency (default)", "let frequency = PaymentFrequency::default();", "assert_eq!(frequency.to_seconds(), 86400);", "", "// Parse from string representation", "let weekly = PaymentFrequency::from_str(\"@weekly\")?;", "assert_eq!(weekly.to_seconds(), 604800);", "```"];
|
|
1086
|
-
readonly type: {
|
|
1087
|
-
readonly kind: "enum";
|
|
1088
|
-
readonly variants: readonly [{
|
|
1089
|
-
readonly name: "Hourly";
|
|
1090
|
-
}, {
|
|
1091
|
-
readonly name: "Daily";
|
|
1092
|
-
}, {
|
|
1093
|
-
readonly name: "DailyOld";
|
|
1094
|
-
}, {
|
|
1095
|
-
readonly name: "Weekly";
|
|
1096
|
-
}, {
|
|
1097
|
-
readonly name: "Monthly";
|
|
1098
|
-
}, {
|
|
1099
|
-
readonly name: "Decasecond";
|
|
1100
|
-
}, {
|
|
1101
|
-
readonly name: "Minute";
|
|
1102
|
-
}];
|
|
1103
|
-
};
|
|
1104
|
-
}, {
|
|
1105
|
-
readonly name: "RentalState";
|
|
1106
|
-
readonly docs: readonly ["Active rental session between a fleet owner and borrower.", "", "Handles automated payments via Clockwork threads and tracks rental lifecycle.", "PDA derived from contract address and borrower public key."];
|
|
1107
|
-
readonly type: {
|
|
1108
|
-
readonly kind: "struct";
|
|
1109
|
-
readonly fields: readonly [{
|
|
1110
|
-
readonly name: "version";
|
|
1111
|
-
readonly docs: readonly ["Version number for account migrations"];
|
|
1112
|
-
readonly type: "u8";
|
|
1113
|
-
}, {
|
|
1114
|
-
readonly name: "borrower";
|
|
1115
|
-
readonly docs: readonly ["Borrower public key (receives refunds if cancelled)"];
|
|
1116
|
-
readonly type: "pubkey";
|
|
1117
|
-
}, {
|
|
1118
|
-
readonly name: "thread";
|
|
1119
|
-
readonly docs: readonly ["Antegen thread for automated payments"];
|
|
1120
|
-
readonly type: "pubkey";
|
|
1121
|
-
}, {
|
|
1122
|
-
readonly name: "contract";
|
|
1123
|
-
readonly docs: readonly ["Reference to the rental contract"];
|
|
1124
|
-
readonly type: "pubkey";
|
|
1125
|
-
}, {
|
|
1126
|
-
readonly name: "owner_token_account";
|
|
1127
|
-
readonly docs: readonly ["Owner's token account for receiving payments"];
|
|
1128
|
-
readonly type: "pubkey";
|
|
1129
|
-
}, {
|
|
1130
|
-
readonly name: "rate";
|
|
1131
|
-
readonly docs: readonly ["Effective rental rate per payment cycle"];
|
|
1132
|
-
readonly type: "f64";
|
|
1133
|
-
}, {
|
|
1134
|
-
readonly name: "start_time";
|
|
1135
|
-
readonly docs: readonly ["Rental start timestamp"];
|
|
1136
|
-
readonly type: "i64";
|
|
1137
|
-
}, {
|
|
1138
|
-
readonly name: "end_time";
|
|
1139
|
-
readonly docs: readonly ["Rental end timestamp"];
|
|
1140
|
-
readonly type: "i64";
|
|
1141
|
-
}, {
|
|
1142
|
-
readonly name: "cancelled";
|
|
1143
|
-
readonly docs: readonly ["Whether rental was cancelled early"];
|
|
1144
|
-
readonly type: "bool";
|
|
1145
|
-
}, {
|
|
1146
|
-
readonly name: "bump";
|
|
1147
|
-
readonly docs: readonly ["PDA bump seed"];
|
|
1148
|
-
readonly type: "u8";
|
|
1149
|
-
}, {
|
|
1150
|
-
readonly name: "borrower_profile";
|
|
1151
|
-
readonly docs: readonly ["Borrower's Star Atlas profile"];
|
|
1152
|
-
readonly type: {
|
|
1153
|
-
readonly option: "pubkey";
|
|
1154
|
-
};
|
|
1155
|
-
}, {
|
|
1156
|
-
readonly name: "starbase";
|
|
1157
|
-
readonly docs: readonly ["Current starbase location"];
|
|
1158
|
-
readonly type: {
|
|
1159
|
-
readonly option: "pubkey";
|
|
1160
|
-
};
|
|
1161
|
-
}, {
|
|
1162
|
-
readonly name: "starbase_player";
|
|
1163
|
-
readonly docs: readonly ["Player's starbase account"];
|
|
1164
|
-
readonly type: {
|
|
1165
|
-
readonly option: "pubkey";
|
|
1166
|
-
};
|
|
1167
|
-
}];
|
|
1168
|
-
};
|
|
1169
|
-
}, {
|
|
1170
|
-
readonly name: "SerializableAccount";
|
|
1171
|
-
readonly docs: readonly ["Account metadata needed to execute an instruction on Solana."];
|
|
1172
|
-
readonly type: {
|
|
1173
|
-
readonly kind: "struct";
|
|
1174
|
-
readonly fields: readonly [{
|
|
1175
|
-
readonly name: "pubkey";
|
|
1176
|
-
readonly docs: readonly ["An account's public key"];
|
|
1177
|
-
readonly type: "pubkey";
|
|
1178
|
-
}, {
|
|
1179
|
-
readonly name: "is_signer";
|
|
1180
|
-
readonly docs: readonly ["True if an Instruction requires a Transaction signature matching `pubkey`."];
|
|
1181
|
-
readonly type: "bool";
|
|
1182
|
-
}, {
|
|
1183
|
-
readonly name: "is_writable";
|
|
1184
|
-
readonly docs: readonly ["True if the `pubkey` can be loaded as a read-write account."];
|
|
1185
|
-
readonly type: "bool";
|
|
1186
|
-
}];
|
|
1187
|
-
};
|
|
1188
|
-
}, {
|
|
1189
|
-
readonly name: "SerializableInstruction";
|
|
1190
|
-
readonly docs: readonly ["The data needed execute an instruction on Solana."];
|
|
1191
|
-
readonly type: {
|
|
1192
|
-
readonly kind: "struct";
|
|
1193
|
-
readonly fields: readonly [{
|
|
1194
|
-
readonly name: "program_id";
|
|
1195
|
-
readonly docs: readonly ["Pubkey of the instruction processor that executes this instruction"];
|
|
1196
|
-
readonly type: "pubkey";
|
|
1197
|
-
}, {
|
|
1198
|
-
readonly name: "accounts";
|
|
1199
|
-
readonly docs: readonly ["Metadata for what accounts should be passed to the instruction processor"];
|
|
1200
|
-
readonly type: {
|
|
1201
|
-
readonly vec: {
|
|
1202
|
-
readonly defined: {
|
|
1203
|
-
readonly name: "SerializableAccount";
|
|
1204
|
-
};
|
|
1205
|
-
};
|
|
1206
|
-
};
|
|
1207
|
-
}, {
|
|
1208
|
-
readonly name: "data";
|
|
1209
|
-
readonly docs: readonly ["Opaque data passed to the instruction processor"];
|
|
1210
|
-
readonly type: "bytes";
|
|
1211
|
-
}];
|
|
1212
|
-
};
|
|
1213
|
-
}, {
|
|
1214
|
-
readonly name: "Thread";
|
|
1215
|
-
readonly docs: readonly ["Tracks the current state of a transaction thread on Solana."];
|
|
1216
|
-
readonly type: {
|
|
1217
|
-
readonly kind: "struct";
|
|
1218
|
-
readonly fields: readonly [{
|
|
1219
|
-
readonly name: "authority";
|
|
1220
|
-
readonly docs: readonly ["The owner of this thread."];
|
|
1221
|
-
readonly type: "pubkey";
|
|
1222
|
-
}, {
|
|
1223
|
-
readonly name: "bump";
|
|
1224
|
-
readonly docs: readonly ["The bump, used for PDA validation."];
|
|
1225
|
-
readonly type: "u8";
|
|
1226
|
-
}, {
|
|
1227
|
-
readonly name: "created_at";
|
|
1228
|
-
readonly docs: readonly ["The cluster clock at the moment the thread was created."];
|
|
1229
|
-
readonly type: {
|
|
1230
|
-
readonly defined: {
|
|
1231
|
-
readonly name: "ClockData";
|
|
1232
|
-
};
|
|
1233
|
-
};
|
|
1234
|
-
}, {
|
|
1235
|
-
readonly name: "exec_context";
|
|
1236
|
-
readonly docs: readonly ["The context of the thread's current execution state."];
|
|
1237
|
-
readonly type: {
|
|
1238
|
-
readonly option: {
|
|
1239
|
-
readonly defined: {
|
|
1240
|
-
readonly name: "ExecContext";
|
|
1241
|
-
};
|
|
1242
|
-
};
|
|
1243
|
-
};
|
|
1244
|
-
}, {
|
|
1245
|
-
readonly name: "fee";
|
|
1246
|
-
readonly docs: readonly ["The number of lamports to payout to workers per execution."];
|
|
1247
|
-
readonly type: "u64";
|
|
1248
|
-
}, {
|
|
1249
|
-
readonly name: "id";
|
|
1250
|
-
readonly docs: readonly ["The id of the thread, given by the authority."];
|
|
1251
|
-
readonly type: "bytes";
|
|
1252
|
-
}, {
|
|
1253
|
-
readonly name: "instructions";
|
|
1254
|
-
readonly docs: readonly ["The instructions to be executed."];
|
|
1255
|
-
readonly type: {
|
|
1256
|
-
readonly vec: {
|
|
1257
|
-
readonly defined: {
|
|
1258
|
-
readonly name: "SerializableInstruction";
|
|
1259
|
-
};
|
|
1260
|
-
};
|
|
1261
|
-
};
|
|
1262
|
-
}, {
|
|
1263
|
-
readonly name: "name";
|
|
1264
|
-
readonly docs: readonly ["The name of the thread."];
|
|
1265
|
-
readonly type: "string";
|
|
1266
|
-
}, {
|
|
1267
|
-
readonly name: "next_instruction";
|
|
1268
|
-
readonly docs: readonly ["The next instruction to be executed."];
|
|
1269
|
-
readonly type: {
|
|
1270
|
-
readonly option: {
|
|
1271
|
-
readonly defined: {
|
|
1272
|
-
readonly name: "SerializableInstruction";
|
|
1273
|
-
};
|
|
1274
|
-
};
|
|
1275
|
-
};
|
|
1276
|
-
}, {
|
|
1277
|
-
readonly name: "paused";
|
|
1278
|
-
readonly docs: readonly ["Whether or not the thread is currently paused."];
|
|
1279
|
-
readonly type: "bool";
|
|
1280
|
-
}, {
|
|
1281
|
-
readonly name: "rate_limit";
|
|
1282
|
-
readonly docs: readonly ["The maximum number of execs allowed per slot."];
|
|
1283
|
-
readonly type: "u64";
|
|
1284
|
-
}, {
|
|
1285
|
-
readonly name: "trigger";
|
|
1286
|
-
readonly docs: readonly ["The triggering event to kickoff a thread."];
|
|
1287
|
-
readonly type: {
|
|
1288
|
-
readonly defined: {
|
|
1289
|
-
readonly name: "Trigger";
|
|
1290
|
-
};
|
|
1291
|
-
};
|
|
1292
|
-
}];
|
|
1293
|
-
};
|
|
1294
|
-
}, {
|
|
1295
|
-
readonly name: "ThreadResponse";
|
|
1296
|
-
readonly docs: readonly ["A response value target programs can return to update the thread."];
|
|
1297
|
-
readonly type: {
|
|
1298
|
-
readonly kind: "struct";
|
|
1299
|
-
readonly fields: readonly [{
|
|
1300
|
-
readonly name: "close_to";
|
|
1301
|
-
readonly docs: readonly ["If set, the thread will automatically close and return lamports to the provided address.", "If dynamic_instruction is also set, close_to will take precedence and the dynamic instruction will not be executed."];
|
|
1302
|
-
readonly type: {
|
|
1303
|
-
readonly option: "pubkey";
|
|
1304
|
-
};
|
|
1305
|
-
}, {
|
|
1306
|
-
readonly name: "dynamic_instruction";
|
|
1307
|
-
readonly docs: readonly ["A dynamic instruction to execute next.", "If close_to is also set, it will take precedence and the dynamic instruction will not be executed."];
|
|
1308
|
-
readonly type: {
|
|
1309
|
-
readonly option: {
|
|
1310
|
-
readonly defined: {
|
|
1311
|
-
readonly name: "SerializableInstruction";
|
|
1312
|
-
};
|
|
1313
|
-
};
|
|
1314
|
-
};
|
|
1315
|
-
}, {
|
|
1316
|
-
readonly name: "trigger";
|
|
1317
|
-
readonly docs: readonly ["Value to update the thread trigger to."];
|
|
1318
|
-
readonly type: {
|
|
1319
|
-
readonly option: {
|
|
1320
|
-
readonly defined: {
|
|
1321
|
-
readonly name: "Trigger";
|
|
1322
|
-
};
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
}];
|
|
1326
|
-
};
|
|
1327
|
-
}, {
|
|
1328
|
-
readonly name: "Trigger";
|
|
1329
|
-
readonly docs: readonly ["The triggering conditions of a thread."];
|
|
1330
|
-
readonly type: {
|
|
1331
|
-
readonly kind: "enum";
|
|
1332
|
-
readonly variants: readonly [{
|
|
1333
|
-
readonly name: "Account";
|
|
1334
|
-
readonly fields: readonly [{
|
|
1335
|
-
readonly name: "address";
|
|
1336
|
-
readonly docs: readonly ["The address of the account to monitor."];
|
|
1337
|
-
readonly type: "pubkey";
|
|
1338
|
-
}, {
|
|
1339
|
-
readonly name: "offset";
|
|
1340
|
-
readonly docs: readonly ["The byte offset of the account data to monitor."];
|
|
1341
|
-
readonly type: "u64";
|
|
1342
|
-
}, {
|
|
1343
|
-
readonly name: "size";
|
|
1344
|
-
readonly docs: readonly ["The size of the byte slice to monitor (must be less than 1kb)"];
|
|
1345
|
-
readonly type: "u64";
|
|
1346
|
-
}];
|
|
1347
|
-
}, {
|
|
1348
|
-
readonly name: "Cron";
|
|
1349
|
-
readonly fields: readonly [{
|
|
1350
|
-
readonly name: "schedule";
|
|
1351
|
-
readonly docs: readonly ["The schedule in cron syntax. Value must be parsable by the `solana_cron` package."];
|
|
1352
|
-
readonly type: "string";
|
|
1353
|
-
}, {
|
|
1354
|
-
readonly name: "skippable";
|
|
1355
|
-
readonly docs: readonly ["Boolean value indicating whether triggering moments may be skipped if they are missed (e.g. due to network downtime).", "If false, any \"missed\" triggering moments will simply be executed as soon as the network comes back online."];
|
|
1356
|
-
readonly type: "bool";
|
|
1357
|
-
}];
|
|
1358
|
-
}, {
|
|
1359
|
-
readonly name: "Now";
|
|
1360
|
-
}, {
|
|
1361
|
-
readonly name: "Slot";
|
|
1362
|
-
readonly fields: readonly [{
|
|
1363
|
-
readonly name: "slot";
|
|
1364
|
-
readonly type: "u64";
|
|
1365
|
-
}];
|
|
1366
|
-
}, {
|
|
1367
|
-
readonly name: "Epoch";
|
|
1368
|
-
readonly fields: readonly [{
|
|
1369
|
-
readonly name: "epoch";
|
|
1370
|
-
readonly type: "u64";
|
|
1371
|
-
}];
|
|
1372
|
-
}, {
|
|
1373
|
-
readonly name: "Timestamp";
|
|
1374
|
-
readonly fields: readonly [{
|
|
1375
|
-
readonly name: "unix_ts";
|
|
1376
|
-
readonly type: "i64";
|
|
1377
|
-
}];
|
|
1378
|
-
}, {
|
|
1379
|
-
readonly name: "Pyth";
|
|
1380
|
-
readonly fields: readonly [{
|
|
1381
|
-
readonly name: "price_feed";
|
|
1382
|
-
readonly docs: readonly ["The address of the price feed to monitor."];
|
|
1383
|
-
readonly type: "pubkey";
|
|
1384
|
-
}, {
|
|
1385
|
-
readonly name: "equality";
|
|
1386
|
-
readonly docs: readonly ["The equality operator (gte or lte) used to compare prices."];
|
|
1387
|
-
readonly type: {
|
|
1388
|
-
readonly defined: {
|
|
1389
|
-
readonly name: "Equality";
|
|
1390
|
-
};
|
|
1391
|
-
};
|
|
1392
|
-
}, {
|
|
1393
|
-
readonly name: "limit";
|
|
1394
|
-
readonly docs: readonly ["The limit price to compare the Pyth feed to."];
|
|
1395
|
-
readonly type: "i64";
|
|
1396
|
-
}];
|
|
1397
|
-
}];
|
|
1398
|
-
};
|
|
1399
|
-
}, {
|
|
1400
|
-
readonly name: "TriggerContext";
|
|
1401
|
-
readonly docs: readonly ["The event which allowed a particular transaction thread to be triggered."];
|
|
1402
|
-
readonly type: {
|
|
1403
|
-
readonly kind: "enum";
|
|
1404
|
-
readonly variants: readonly [{
|
|
1405
|
-
readonly name: "Account";
|
|
1406
|
-
readonly fields: readonly [{
|
|
1407
|
-
readonly name: "data_hash";
|
|
1408
|
-
readonly docs: readonly ["The account's data hash."];
|
|
1409
|
-
readonly type: "u64";
|
|
1410
|
-
}];
|
|
1411
|
-
}, {
|
|
1412
|
-
readonly name: "Cron";
|
|
1413
|
-
readonly fields: readonly [{
|
|
1414
|
-
readonly name: "started_at";
|
|
1415
|
-
readonly docs: readonly ["The threshold moment the schedule was waiting for."];
|
|
1416
|
-
readonly type: "i64";
|
|
1417
|
-
}];
|
|
1418
|
-
}, {
|
|
1419
|
-
readonly name: "Now";
|
|
1420
|
-
}, {
|
|
1421
|
-
readonly name: "Slot";
|
|
1422
|
-
readonly fields: readonly [{
|
|
1423
|
-
readonly name: "started_at";
|
|
1424
|
-
readonly docs: readonly ["The threshold slot the schedule was waiting for."];
|
|
1425
|
-
readonly type: "u64";
|
|
1426
|
-
}];
|
|
1427
|
-
}, {
|
|
1428
|
-
readonly name: "Epoch";
|
|
1429
|
-
readonly fields: readonly [{
|
|
1430
|
-
readonly name: "started_at";
|
|
1431
|
-
readonly docs: readonly ["The threshold epoch the schedule was waiting for."];
|
|
1432
|
-
readonly type: "u64";
|
|
1433
|
-
}];
|
|
1434
|
-
}, {
|
|
1435
|
-
readonly name: "Timestamp";
|
|
1436
|
-
readonly fields: readonly [{
|
|
1437
|
-
readonly name: "started_at";
|
|
1438
|
-
readonly docs: readonly ["The threshold moment the schedule was waiting for."];
|
|
1439
|
-
readonly type: "i64";
|
|
1440
|
-
}];
|
|
1441
|
-
}, {
|
|
1442
|
-
readonly name: "Pyth";
|
|
1443
|
-
readonly fields: readonly [{
|
|
1444
|
-
readonly name: "price";
|
|
1445
|
-
readonly type: "i64";
|
|
1446
|
-
}];
|
|
1447
|
-
}];
|
|
1448
|
-
};
|
|
1449
|
-
}];
|
|
1450
|
-
readonly constants: readonly [{
|
|
1451
|
-
readonly name: "THREAD_SEED";
|
|
1452
|
-
readonly docs: readonly ["Seed for payment thread PDAs (Antegen/Clockwork)"];
|
|
1453
|
-
readonly type: "bytes";
|
|
1454
|
-
readonly value: "[116, 104, 114, 101, 97, 100]";
|
|
1455
|
-
}];
|
|
1456
|
-
};
|
|
1457
|
-
export default IDL;
|
|
1458
|
-
//# sourceMappingURL=srsly-data.d.ts.map
|