@wuwei-labs/srsly 3.0.0-beta.19 → 3.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/accounts/member.js +2 -1
- package/dist/cjs/accounts/member.js.map +1 -1
- package/dist/cjs/accounts/owner.js +105 -0
- package/dist/cjs/accounts/owner.js.map +1 -0
- package/dist/cjs/demos.js +85 -9
- package/dist/cjs/demos.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/borrowerState.js +0 -4
- package/dist/cjs/generated/codama/accounts/borrowerState.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/configState.js +0 -2
- package/dist/cjs/generated/codama/accounts/configState.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/contractState.js +4 -2
- package/dist/cjs/generated/codama/accounts/contractState.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/index.js +1 -0
- package/dist/cjs/generated/codama/accounts/index.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/ownerState.js +86 -0
- package/dist/cjs/generated/codama/accounts/ownerState.js.map +1 -0
- package/dist/cjs/generated/codama/errors/srsly.js +26 -29
- package/dist/cjs/generated/codama/errors/srsly.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/claimBorrower.js +24 -11
- package/dist/cjs/generated/codama/instructions/claimBorrower.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/{claimContractPayments.js → claimOwner.js} +58 -44
- package/dist/cjs/generated/codama/instructions/claimOwner.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/closeContract.js +10 -78
- package/dist/cjs/generated/codama/instructions/closeContract.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/closeRental.js +15 -15
- package/dist/cjs/generated/codama/instructions/closeRental.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/createContract.js +25 -11
- package/dist/cjs/generated/codama/instructions/createContract.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/index.js +2 -4
- package/dist/cjs/generated/codama/instructions/index.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/payRental.js +12 -12
- package/dist/cjs/generated/codama/instructions/payRental.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/reserveRental.js +27 -8
- package/dist/cjs/generated/codama/instructions/reserveRental.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/updateConfig.js +0 -2
- package/dist/cjs/generated/codama/instructions/updateConfig.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/updateOwner.js +79 -0
- package/dist/cjs/generated/codama/instructions/updateOwner.js.map +1 -0
- package/dist/cjs/generated/codama/programs/srsly.js +29 -33
- package/dist/cjs/generated/codama/programs/srsly.js.map +1 -1
- package/dist/cjs/generated/codama/types/index.js +0 -1
- package/dist/cjs/generated/codama/types/index.js.map +1 -1
- package/dist/cjs/index.js +17 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/instructions/acceptRental.js +2 -2
- package/dist/cjs/instructions/acceptRental.js.map +1 -1
- package/dist/cjs/instructions/cancelRental.js +4 -2
- package/dist/cjs/instructions/cancelRental.js.map +1 -1
- package/dist/cjs/instructions/claimBorrower.js +7 -3
- package/dist/cjs/instructions/claimBorrower.js.map +1 -1
- package/dist/cjs/instructions/claimRental.js +2 -2
- package/dist/cjs/instructions/claimRental.js.map +1 -1
- package/dist/cjs/instructions/closeContract.js +4 -3
- package/dist/cjs/instructions/closeContract.js.map +1 -1
- package/dist/cjs/instructions/closeRental.js +8 -4
- package/dist/cjs/instructions/closeRental.js.map +1 -1
- package/dist/cjs/instructions/createContract.js +4 -2
- package/dist/cjs/instructions/createContract.js.map +1 -1
- package/dist/cjs/instructions/deleteConfig.js +15 -4
- package/dist/cjs/instructions/deleteConfig.js.map +1 -1
- package/dist/cjs/instructions/index.js +5 -9
- package/dist/cjs/instructions/index.js.map +1 -1
- package/dist/cjs/instructions/ownerClaim.js +110 -0
- package/dist/cjs/instructions/ownerClaim.js.map +1 -0
- package/dist/cjs/instructions/ownerUpdate.js +68 -0
- package/dist/cjs/instructions/ownerUpdate.js.map +1 -0
- package/dist/cjs/instructions/reserveRental.js +6 -5
- package/dist/cjs/instructions/reserveRental.js.map +1 -1
- package/dist/cjs/instructions/updateBorrower.js +4 -2
- package/dist/cjs/instructions/updateBorrower.js.map +1 -1
- package/dist/cjs/instructions/updateConfig.js +0 -1
- package/dist/cjs/instructions/updateConfig.js.map +1 -1
- package/dist/cjs/legacy/index.js +6 -5
- package/dist/cjs/legacy/index.js.map +1 -1
- package/dist/cjs/package.json +3 -2
- package/dist/cjs/pda/constants.js +2 -1
- package/dist/cjs/pda/constants.js.map +1 -1
- package/dist/cjs/pda/index.js +3 -1
- package/dist/cjs/pda/index.js.map +1 -1
- package/dist/cjs/pda/srsly.js +21 -0
- package/dist/cjs/pda/srsly.js.map +1 -1
- package/dist/cjs/utils/addresses.js +1 -1
- package/dist/cjs/utils/addresses.js.map +1 -1
- package/dist/cjs/utils/signer.js +8 -8
- package/dist/cjs/utils/signer.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/accounts/member.js +1 -1
- package/dist/esm/accounts/member.js.map +1 -1
- package/dist/esm/accounts/owner.js +101 -0
- package/dist/esm/accounts/owner.js.map +1 -0
- package/dist/esm/demos.js +84 -8
- package/dist/esm/demos.js.map +1 -1
- package/dist/esm/generated/codama/accounts/borrowerState.js +0 -4
- package/dist/esm/generated/codama/accounts/borrowerState.js.map +1 -1
- package/dist/esm/generated/codama/accounts/configState.js +0 -2
- package/dist/esm/generated/codama/accounts/configState.js.map +1 -1
- package/dist/esm/generated/codama/accounts/contractState.js +4 -2
- package/dist/esm/generated/codama/accounts/contractState.js.map +1 -1
- package/dist/esm/generated/codama/accounts/index.js +1 -0
- package/dist/esm/generated/codama/accounts/index.js.map +1 -1
- package/dist/esm/generated/codama/accounts/ownerState.js +73 -0
- package/dist/esm/generated/codama/accounts/ownerState.js.map +1 -0
- package/dist/esm/generated/codama/errors/srsly.js +25 -28
- package/dist/esm/generated/codama/errors/srsly.js.map +1 -1
- package/dist/esm/generated/codama/instructions/claimBorrower.js +25 -12
- package/dist/esm/generated/codama/instructions/claimBorrower.js.map +1 -1
- package/dist/esm/generated/codama/instructions/{claimContractPayments.js → claimOwner.js} +51 -37
- package/dist/esm/generated/codama/instructions/claimOwner.js.map +1 -0
- package/dist/esm/generated/codama/instructions/closeContract.js +10 -78
- package/dist/esm/generated/codama/instructions/closeContract.js.map +1 -1
- package/dist/esm/generated/codama/instructions/closeRental.js +15 -15
- package/dist/esm/generated/codama/instructions/closeRental.js.map +1 -1
- package/dist/esm/generated/codama/instructions/createContract.js +25 -11
- package/dist/esm/generated/codama/instructions/createContract.js.map +1 -1
- package/dist/esm/generated/codama/instructions/index.js +2 -4
- package/dist/esm/generated/codama/instructions/index.js.map +1 -1
- package/dist/esm/generated/codama/instructions/payRental.js +12 -12
- package/dist/esm/generated/codama/instructions/payRental.js.map +1 -1
- package/dist/esm/generated/codama/instructions/reserveRental.js +27 -8
- package/dist/esm/generated/codama/instructions/reserveRental.js.map +1 -1
- package/dist/esm/generated/codama/instructions/updateConfig.js +0 -2
- package/dist/esm/generated/codama/instructions/updateConfig.js.map +1 -1
- package/dist/esm/generated/codama/instructions/updateOwner.js +70 -0
- package/dist/esm/generated/codama/instructions/updateOwner.js.map +1 -0
- package/dist/esm/generated/codama/programs/srsly.js +29 -33
- package/dist/esm/generated/codama/programs/srsly.js.map +1 -1
- package/dist/esm/generated/codama/types/index.js +0 -1
- package/dist/esm/generated/codama/types/index.js.map +1 -1
- package/dist/esm/index.js +10 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/instructions/acceptRental.js +2 -2
- package/dist/esm/instructions/acceptRental.js.map +1 -1
- package/dist/esm/instructions/cancelRental.js +4 -2
- package/dist/esm/instructions/cancelRental.js.map +1 -1
- package/dist/esm/instructions/claimBorrower.js +8 -4
- package/dist/esm/instructions/claimBorrower.js.map +1 -1
- package/dist/esm/instructions/claimRental.js +2 -2
- package/dist/esm/instructions/claimRental.js.map +1 -1
- package/dist/esm/instructions/closeContract.js +4 -3
- package/dist/esm/instructions/closeContract.js.map +1 -1
- package/dist/esm/instructions/closeRental.js +9 -5
- package/dist/esm/instructions/closeRental.js.map +1 -1
- package/dist/esm/instructions/createContract.js +4 -2
- package/dist/esm/instructions/createContract.js.map +1 -1
- package/dist/esm/instructions/deleteConfig.js +15 -4
- package/dist/esm/instructions/deleteConfig.js.map +1 -1
- package/dist/esm/instructions/index.js +2 -4
- package/dist/esm/instructions/index.js.map +1 -1
- package/dist/esm/instructions/ownerClaim.js +107 -0
- package/dist/esm/instructions/ownerClaim.js.map +1 -0
- package/dist/esm/instructions/ownerUpdate.js +65 -0
- package/dist/esm/instructions/ownerUpdate.js.map +1 -0
- package/dist/esm/instructions/reserveRental.js +7 -6
- package/dist/esm/instructions/reserveRental.js.map +1 -1
- package/dist/esm/instructions/updateBorrower.js +4 -2
- package/dist/esm/instructions/updateBorrower.js.map +1 -1
- package/dist/esm/instructions/updateConfig.js +0 -1
- package/dist/esm/instructions/updateConfig.js.map +1 -1
- package/dist/esm/legacy/index.js +5 -4
- package/dist/esm/legacy/index.js.map +1 -1
- package/dist/esm/package.json +3 -2
- package/dist/esm/pda/constants.js +1 -0
- package/dist/esm/pda/constants.js.map +1 -1
- package/dist/esm/pda/index.js +2 -2
- package/dist/esm/pda/index.js.map +1 -1
- package/dist/esm/pda/srsly.js +21 -1
- package/dist/esm/pda/srsly.js.map +1 -1
- package/dist/esm/utils/addresses.js +1 -1
- package/dist/esm/utils/addresses.js.map +1 -1
- package/dist/esm/utils/signer.js +8 -8
- package/dist/esm/utils/signer.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/idl/srsly.json +662 -806
- package/dist/types/accounts/member.d.ts +1 -1
- package/dist/types/accounts/member.d.ts.map +1 -1
- package/dist/types/accounts/owner.d.ts +52 -0
- package/dist/types/accounts/owner.d.ts.map +1 -0
- package/dist/types/demos.d.ts +14 -2
- package/dist/types/demos.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/borrowerState.d.ts +0 -8
- package/dist/types/generated/codama/accounts/borrowerState.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/configState.d.ts +0 -4
- package/dist/types/generated/codama/accounts/configState.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/contractState.d.ts +8 -4
- package/dist/types/generated/codama/accounts/contractState.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/index.d.ts +1 -0
- package/dist/types/generated/codama/accounts/index.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/ownerState.d.ts +65 -0
- package/dist/types/generated/codama/accounts/ownerState.d.ts.map +1 -0
- package/dist/types/generated/codama/errors/srsly.d.ts +26 -28
- package/dist/types/generated/codama/errors/srsly.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/claimBorrower.d.ts +31 -19
- package/dist/types/generated/codama/instructions/claimBorrower.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/claimOwner.d.ts +91 -0
- package/dist/types/generated/codama/instructions/claimOwner.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/closeContract.d.ts +15 -27
- package/dist/types/generated/codama/instructions/closeContract.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/closeRental.d.ts +18 -15
- package/dist/types/generated/codama/instructions/closeRental.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/createContract.d.ts +20 -16
- package/dist/types/generated/codama/instructions/createContract.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/index.d.ts +2 -4
- package/dist/types/generated/codama/instructions/index.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/payRental.d.ts +22 -22
- package/dist/types/generated/codama/instructions/payRental.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/reserveRental.d.ts +21 -17
- package/dist/types/generated/codama/instructions/reserveRental.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/updateConfig.d.ts +0 -6
- package/dist/types/generated/codama/instructions/updateConfig.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/updateOwner.d.ts +44 -0
- package/dist/types/generated/codama/instructions/updateOwner.d.ts.map +1 -0
- package/dist/types/generated/codama/programs/srsly.d.ts +27 -32
- package/dist/types/generated/codama/programs/srsly.d.ts.map +1 -1
- package/dist/types/generated/codama/types/index.d.ts +0 -1
- package/dist/types/generated/codama/types/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -7
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/instructions/cancelRental.d.ts.map +1 -1
- package/dist/types/instructions/claimBorrower.d.ts +6 -0
- package/dist/types/instructions/claimBorrower.d.ts.map +1 -1
- package/dist/types/instructions/closeContract.d.ts.map +1 -1
- package/dist/types/instructions/closeRental.d.ts.map +1 -1
- package/dist/types/instructions/createContract.d.ts.map +1 -1
- package/dist/types/instructions/deleteConfig.d.ts +4 -2
- package/dist/types/instructions/deleteConfig.d.ts.map +1 -1
- package/dist/types/instructions/index.d.ts +2 -4
- package/dist/types/instructions/index.d.ts.map +1 -1
- package/dist/types/instructions/ownerClaim.d.ts +72 -0
- package/dist/types/instructions/ownerClaim.d.ts.map +1 -0
- package/dist/types/instructions/ownerUpdate.d.ts +57 -0
- package/dist/types/instructions/ownerUpdate.d.ts.map +1 -0
- package/dist/types/instructions/reserveRental.d.ts.map +1 -1
- package/dist/types/instructions/updateBorrower.d.ts.map +1 -1
- package/dist/types/instructions/updateConfig.d.ts.map +1 -1
- package/dist/types/legacy/index.d.ts +7 -8
- package/dist/types/legacy/index.d.ts.map +1 -1
- package/dist/types/pda/constants.d.ts +1 -0
- package/dist/types/pda/constants.d.ts.map +1 -1
- package/dist/types/pda/index.d.ts +2 -2
- package/dist/types/pda/index.d.ts.map +1 -1
- package/dist/types/pda/srsly.d.ts +7 -0
- package/dist/types/pda/srsly.d.ts.map +1 -1
- package/dist/types/utils/addresses.d.ts +5 -1
- package/dist/types/utils/addresses.d.ts.map +1 -1
- package/dist/types/utils/signer.d.ts +2 -2
- package/dist/types/utils/signer.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +25 -19
- package/dist/cjs/generated/codama/instructions/claimContractPayments.js.map +0 -1
- package/dist/cjs/generated/codama/instructions/closeBorrower.js +0 -84
- package/dist/cjs/generated/codama/instructions/closeBorrower.js.map +0 -1
- package/dist/cjs/generated/codama/instructions/deleteBorrower.js +0 -126
- package/dist/cjs/generated/codama/instructions/deleteBorrower.js.map +0 -1
- package/dist/cjs/generated/codama/instructions/discountBorrower.js +0 -118
- package/dist/cjs/generated/codama/instructions/discountBorrower.js.map +0 -1
- package/dist/cjs/generated/codama/types/borrowerDiscountSet.js +0 -29
- package/dist/cjs/generated/codama/types/borrowerDiscountSet.js.map +0 -1
- package/dist/cjs/instructions/claimContractPayments.js +0 -79
- package/dist/cjs/instructions/claimContractPayments.js.map +0 -1
- package/dist/cjs/instructions/closeBorrower.js +0 -60
- package/dist/cjs/instructions/closeBorrower.js.map +0 -1
- package/dist/cjs/instructions/deleteBorrower.js +0 -60
- package/dist/cjs/instructions/deleteBorrower.js.map +0 -1
- package/dist/cjs/instructions/discountBorrower.js +0 -76
- package/dist/cjs/instructions/discountBorrower.js.map +0 -1
- package/dist/esm/generated/codama/instructions/claimContractPayments.js.map +0 -1
- package/dist/esm/generated/codama/instructions/closeBorrower.js +0 -75
- package/dist/esm/generated/codama/instructions/closeBorrower.js.map +0 -1
- package/dist/esm/generated/codama/instructions/deleteBorrower.js +0 -116
- package/dist/esm/generated/codama/instructions/deleteBorrower.js.map +0 -1
- package/dist/esm/generated/codama/instructions/discountBorrower.js +0 -108
- package/dist/esm/generated/codama/instructions/discountBorrower.js.map +0 -1
- package/dist/esm/generated/codama/types/borrowerDiscountSet.js +0 -24
- package/dist/esm/generated/codama/types/borrowerDiscountSet.js.map +0 -1
- package/dist/esm/instructions/claimContractPayments.js +0 -76
- package/dist/esm/instructions/claimContractPayments.js.map +0 -1
- package/dist/esm/instructions/closeBorrower.js +0 -57
- package/dist/esm/instructions/closeBorrower.js.map +0 -1
- package/dist/esm/instructions/deleteBorrower.js +0 -57
- package/dist/esm/instructions/deleteBorrower.js.map +0 -1
- package/dist/esm/instructions/discountBorrower.js +0 -73
- package/dist/esm/instructions/discountBorrower.js.map +0 -1
- package/dist/types/generated/codama/instructions/claimContractPayments.d.ts +0 -98
- package/dist/types/generated/codama/instructions/claimContractPayments.d.ts.map +0 -1
- package/dist/types/generated/codama/instructions/closeBorrower.d.ts +0 -43
- package/dist/types/generated/codama/instructions/closeBorrower.d.ts.map +0 -1
- package/dist/types/generated/codama/instructions/deleteBorrower.d.ts +0 -55
- package/dist/types/generated/codama/instructions/deleteBorrower.d.ts.map +0 -1
- package/dist/types/generated/codama/instructions/discountBorrower.d.ts +0 -56
- package/dist/types/generated/codama/instructions/discountBorrower.d.ts.map +0 -1
- package/dist/types/generated/codama/types/borrowerDiscountSet.d.ts +0 -20
- package/dist/types/generated/codama/types/borrowerDiscountSet.d.ts.map +0 -1
- package/dist/types/instructions/claimContractPayments.d.ts +0 -78
- package/dist/types/instructions/claimContractPayments.d.ts.map +0 -1
- package/dist/types/instructions/closeBorrower.d.ts +0 -45
- package/dist/types/instructions/closeBorrower.d.ts.map +0 -1
- package/dist/types/instructions/deleteBorrower.d.ts +0 -53
- package/dist/types/instructions/deleteBorrower.d.ts.map +0 -1
- package/dist/types/instructions/discountBorrower.d.ts +0 -64
- package/dist/types/instructions/discountBorrower.d.ts.map +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Re-exports slyvault's member and vault account utilities for SRSLY context.
|
|
5
5
|
*/
|
|
6
|
-
export { fetchMember, type MemberState, } from '@wuwei-labs/slyvault';
|
|
6
|
+
export { fetchMember, fetchAllMembers, type MemberState, } from '@wuwei-labs/slyvault';
|
|
7
7
|
export { fetchVault, type VaultState, } from '@wuwei-labs/slyvault';
|
|
8
8
|
export { deriveMember, } from '@wuwei-labs/slyvault';
|
|
9
9
|
//# sourceMappingURL=member.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.d.ts","sourceRoot":"","sources":["../../../src/accounts/member.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,WAAW,EACX,KAAK,WAAW,GACjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,UAAU,EACV,KAAK,UAAU,GAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,YAAY,GACb,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"member.d.ts","sourceRoot":"","sources":["../../../src/accounts/member.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,WAAW,EACX,eAAe,EACf,KAAK,WAAW,GACjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,UAAU,EACV,KAAK,UAAU,GAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,YAAY,GACb,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @purpose Owner account utilities for SRSLY
|
|
3
|
+
*
|
|
4
|
+
* Fetches owner state data from the SRSLY program.
|
|
5
|
+
*/
|
|
6
|
+
import { type Address } from '@solana/kit';
|
|
7
|
+
import { type OwnerState } from '../generated/codama/accounts';
|
|
8
|
+
/**
|
|
9
|
+
* Fetch owner state from the SRSLY program
|
|
10
|
+
*
|
|
11
|
+
* Accepts either an owner state PDA address OR a wallet address.
|
|
12
|
+
* If direct fetch fails, automatically derives the owner state PDA
|
|
13
|
+
* from the address (treating it as a wallet) and retries.
|
|
14
|
+
*
|
|
15
|
+
* @param address - Owner state address OR wallet address
|
|
16
|
+
* @param rpcUrl - Optional RPC endpoint URL. If not provided, uses RPC from global config
|
|
17
|
+
* @returns Owner state with authority, earnings, etc.
|
|
18
|
+
* @throws Error if owner account not found or fetch fails
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```typescript
|
|
22
|
+
* // Fetch by owner state PDA address
|
|
23
|
+
* const owner = await fetchOwner('OwnerStatePDA...');
|
|
24
|
+
*
|
|
25
|
+
* // Fetch by wallet address (auto-derives PDA)
|
|
26
|
+
* const owner2 = await fetchOwner('WalletAddress...');
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function fetchOwner(address: Address | string, rpcUrl?: string): Promise<{
|
|
30
|
+
data: OwnerState;
|
|
31
|
+
address: Address;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch all owner state accounts from the SRSLY program
|
|
35
|
+
*
|
|
36
|
+
* Uses getProgramAccounts with a discriminator filter to find all OwnerState accounts.
|
|
37
|
+
*
|
|
38
|
+
* @param rpcUrl - Optional RPC endpoint URL. If not provided, uses RPC from global config
|
|
39
|
+
* @returns Array of owner states with their addresses
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```typescript
|
|
43
|
+
* const owners = await fetchAllOwners();
|
|
44
|
+
* console.log(`Found ${owners.length} owners`);
|
|
45
|
+
* owners.forEach(o => console.log(o.address, o.data.owner));
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare function fetchAllOwners(rpcUrl?: string): Promise<Array<{
|
|
49
|
+
data: OwnerState;
|
|
50
|
+
address: Address;
|
|
51
|
+
}>>;
|
|
52
|
+
//# sourceMappingURL=owner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owner.d.ts","sourceRoot":"","sources":["../../../src/accounts/owner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAoB,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAmB,KAAK,UAAU,EAAmD,MAAM,8BAA8B,CAAC;AAMjI;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,OAAO,GAAG,MAAM,EACzB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAuBjD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,cAAc,CAClC,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,KAAK,CAAC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,CAqCxD"}
|
package/dist/types/demos.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const createContractDemo: DemoTemplate;
|
|
|
19
19
|
export declare const closeContractDemo: DemoTemplate;
|
|
20
20
|
export declare const updateContractDemo: DemoTemplate;
|
|
21
21
|
export declare const setDelegateDemo: DemoTemplate;
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const claimBorrowerDemo: DemoTemplate;
|
|
23
23
|
export declare const updateBorrowerDemo: DemoTemplate;
|
|
24
24
|
export declare const acceptRentalDemo: DemoTemplate;
|
|
25
25
|
export declare const cancelRentalDemo: DemoTemplate;
|
|
@@ -27,6 +27,10 @@ export declare const closeRentalDemo: DemoTemplate;
|
|
|
27
27
|
export declare const releaseRentalDemo: DemoTemplate;
|
|
28
28
|
export declare const reserveRentalDemo: DemoTemplate;
|
|
29
29
|
export declare const claimRentalDemo: DemoTemplate;
|
|
30
|
+
export declare const ownerClaimDemo: DemoTemplate;
|
|
31
|
+
export declare const ownerUpdateDemo: DemoTemplate;
|
|
32
|
+
export declare const fetchOwnerDemo: DemoTemplate;
|
|
33
|
+
export declare const fetchAllOwnersDemo: DemoTemplate;
|
|
30
34
|
export declare const fetchContractDemo: DemoTemplate;
|
|
31
35
|
export declare const fetchAllContractsDemo: DemoTemplate;
|
|
32
36
|
export declare const fetchBorrowerDemo: DemoTemplate;
|
|
@@ -37,13 +41,15 @@ export declare const createAffiliateDemo: DemoTemplate;
|
|
|
37
41
|
export declare const approveAffiliateDemo: DemoTemplate;
|
|
38
42
|
export declare const removeAffiliateDemo: DemoTemplate;
|
|
39
43
|
export declare const updateAffiliateDemo: DemoTemplate;
|
|
44
|
+
export declare const claimAffiliateDemo: DemoTemplate;
|
|
45
|
+
export declare const fetchAllMembersDemo: DemoTemplate;
|
|
40
46
|
export declare const fetchMemberDemo: DemoTemplate;
|
|
41
47
|
export declare const ALL_DEMOS: {
|
|
42
48
|
readonly createContract: DemoTemplate;
|
|
43
49
|
readonly closeContract: DemoTemplate;
|
|
44
50
|
readonly updateContract: DemoTemplate;
|
|
45
51
|
readonly setDelegate: DemoTemplate;
|
|
46
|
-
readonly
|
|
52
|
+
readonly claimBorrower: DemoTemplate;
|
|
47
53
|
readonly updateBorrower: DemoTemplate;
|
|
48
54
|
readonly acceptRental: DemoTemplate;
|
|
49
55
|
readonly cancelRental: DemoTemplate;
|
|
@@ -61,7 +67,13 @@ export declare const ALL_DEMOS: {
|
|
|
61
67
|
readonly approveAffiliate: DemoTemplate;
|
|
62
68
|
readonly removeAffiliate: DemoTemplate;
|
|
63
69
|
readonly updateAffiliate: DemoTemplate;
|
|
70
|
+
readonly claimAffiliate: DemoTemplate;
|
|
64
71
|
readonly fetchMember: DemoTemplate;
|
|
72
|
+
readonly fetchAllMembers: DemoTemplate;
|
|
73
|
+
readonly ownerClaim: DemoTemplate;
|
|
74
|
+
readonly ownerUpdate: DemoTemplate;
|
|
75
|
+
readonly fetchOwner: DemoTemplate;
|
|
76
|
+
readonly fetchAllOwners: DemoTemplate;
|
|
65
77
|
};
|
|
66
78
|
export type DemoOperation = keyof typeof ALL_DEMOS;
|
|
67
79
|
//# sourceMappingURL=demos.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"demos.d.ts","sourceRoot":"","sources":["../../src/demos.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,0DAA0D;IAC1D,aAAa,EAAE,MAAM,CAAC;IACtB,WA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AY5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,YAa7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,YAQ5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,YAQhC,CAAC;AAMF,eAAO,MAAM,iBAAiB,EAAE,YAQ/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAQnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAQ/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAQnC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,YAQ7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAQjC,CAAC;AAMF,eAAO,MAAM,mBAAmB,EAAE,YAajC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAelC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAejC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAcjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,YAWhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAQjC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,YAQ7B,CAAC;AAOF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BZ,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,SAAS,CAAC"}
|
|
@@ -18,10 +18,6 @@ export type BorrowerState = {
|
|
|
18
18
|
borrower: Address;
|
|
19
19
|
/** Star Atlas borrower profile */
|
|
20
20
|
borrowerProfile: Option<Address>;
|
|
21
|
-
/** ReferrerState PDA address (if borrower has chosen a referrer) */
|
|
22
|
-
referrerState: Option<Address>;
|
|
23
|
-
/** Discount rate applied to this borrower's fees (set by admin only) */
|
|
24
|
-
discountBps: Option<number>;
|
|
25
21
|
/**
|
|
26
22
|
* Currently tracked fleet rentals for point accumulation (max 10)
|
|
27
23
|
* NOTE: This is a limited tracker - see active_rental_count for true total
|
|
@@ -53,10 +49,6 @@ export type BorrowerStateArgs = {
|
|
|
53
49
|
borrower: Address;
|
|
54
50
|
/** Star Atlas borrower profile */
|
|
55
51
|
borrowerProfile: OptionOrNullable<Address>;
|
|
56
|
-
/** ReferrerState PDA address (if borrower has chosen a referrer) */
|
|
57
|
-
referrerState: OptionOrNullable<Address>;
|
|
58
|
-
/** Discount rate applied to this borrower's fees (set by admin only) */
|
|
59
|
-
discountBps: OptionOrNullable<number>;
|
|
60
52
|
/**
|
|
61
53
|
* Currently tracked fleet rentals for point accumulation (max 10)
|
|
62
54
|
* NOTE: This is a limited tracker - see active_rental_count for true total
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borrowerState.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/accounts/borrowerState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAsBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,4BAA4B,yBAEvC,CAAC;AAEH,wBAAgB,kCAAkC,uBAIjD;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,aAAa,EAAE,kBAAkB,CAAC;IAClC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,kCAAkC;IAClC,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACjC
|
|
1
|
+
{"version":3,"file":"borrowerState.d.ts","sourceRoot":"","s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5E,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,CAGhD;AAED,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,CAQnC;AAED,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC,CAGxC"}
|
|
@@ -53,8 +53,6 @@ export type ConfigState = {
|
|
|
53
53
|
maxWeight: number;
|
|
54
54
|
/** Rate increase in basis points (min 10000 = 100%, default: 10500 = 105%) */
|
|
55
55
|
captureRateBps: bigint;
|
|
56
|
-
/** Maximum discount rate for borrowers (applied globally) */
|
|
57
|
-
maxDiscountBps: number;
|
|
58
56
|
/** ATLAS lamports per point equivalent for reservation bidding (default: 100 ATLAS = 10B lamports) */
|
|
59
57
|
atlasPerPoint: bigint;
|
|
60
58
|
/**
|
|
@@ -110,8 +108,6 @@ export type ConfigStateArgs = {
|
|
|
110
108
|
maxWeight: number;
|
|
111
109
|
/** Rate increase in basis points (min 10000 = 100%, default: 10500 = 105%) */
|
|
112
110
|
captureRateBps: number | bigint;
|
|
113
|
-
/** Maximum discount rate for borrowers (applied globally) */
|
|
114
|
-
maxDiscountBps: number;
|
|
115
111
|
/** ATLAS lamports per point equivalent for reservation bidding (default: 100 ATLAS = 10B lamports) */
|
|
116
112
|
atlasPerPoint: number | bigint;
|
|
117
113
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configState.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/accounts/configState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EA0BpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,0BAA0B,yBAErC,CAAC;AAEH,wBAAgB,gCAAgC,uBAI/C;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,EAAE,kBAAkB,CAAC;IAClC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,KAAK,EAAE,OAAO,CAAC;IACf,kEAAkE;IAClE,eAAe,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,aAAa,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,wBAAwB,EAAE,MAAM,CAAC;IACjC,+DAA+D;IAC/D,wBAAwB,EAAE,MAAM,CAAC;IACjC,oCAAoC;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,QAAQ,EAAE,OAAO,CAAC;IAClB,iDAAiD;IACjD,uBAAuB,EAAE,gBAAgB,CAAC;IAC1C,2CAA2C;IAC3C,kBAAkB,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC5C,4CAA4C;IAC5C,mBAAmB,EAAE,OAAO,CAAC;IAC7B,uCAAuC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6CAA6C;IAC7C,sBAAsB,EAAE,MAAM,CAAC;IAC/B,yCAAyC;IACzC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,gBAAgB,EAAE,MAAM,CAAC;IACzB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,cAAc,EAAE,MAAM,CAAC;IACvB,
|
|
1
|
+
{"version":3,"file":"configState.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/accounts/configState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EA0BpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,0BAA0B,yBAErC,CAAC;AAEH,wBAAgB,gCAAgC,uBAI/C;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,EAAE,kBAAkB,CAAC;IAClC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,KAAK,EAAE,OAAO,CAAC;IACf,kEAAkE;IAClE,eAAe,EAAE,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,CAC5C,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,CAAC,CAGtC"}
|
|
@@ -30,10 +30,12 @@ export type ContractState = {
|
|
|
30
30
|
gameId: Address;
|
|
31
31
|
/** Fleet owner who receives payments */
|
|
32
32
|
owner: Address;
|
|
33
|
-
/**
|
|
34
|
-
|
|
33
|
+
/** OwnerState PDA for this owner (cached for hot-path lookups) */
|
|
34
|
+
ownerState: Address;
|
|
35
35
|
/** Owner's Star Atlas game profile */
|
|
36
36
|
ownerProfile: Address;
|
|
37
|
+
/** Per-contract ATLAS earned (consolidated to OwnerState on close) */
|
|
38
|
+
totalEarned: bigint;
|
|
37
39
|
/** BorrowerState currently holding the reservation (program-controlled) */
|
|
38
40
|
reservationHolder: Option<Address>;
|
|
39
41
|
/** Points locked by the current reservation holder (0 if using ATLAS) */
|
|
@@ -97,10 +99,12 @@ export type ContractStateArgs = {
|
|
|
97
99
|
gameId: Address;
|
|
98
100
|
/** Fleet owner who receives payments */
|
|
99
101
|
owner: Address;
|
|
100
|
-
/**
|
|
101
|
-
|
|
102
|
+
/** OwnerState PDA for this owner (cached for hot-path lookups) */
|
|
103
|
+
ownerState: Address;
|
|
102
104
|
/** Owner's Star Atlas game profile */
|
|
103
105
|
ownerProfile: Address;
|
|
106
|
+
/** Per-contract ATLAS earned (consolidated to OwnerState on close) */
|
|
107
|
+
totalEarned: number | bigint;
|
|
104
108
|
/** BorrowerState currently holding the reservation (program-controlled) */
|
|
105
109
|
reservationHolder: OptionOrNullable<Address>;
|
|
106
110
|
/** Points locked by the current reservation holder (0 if using ATLAS) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractState.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/accounts/contractState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAOL,mBAAmB,EACnB,oBAAoB,EAwBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,4BAA4B,yBAEvC,CAAC;AAEH,wBAAgB,kCAAkC,uBAIjD;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,aAAa,EAAE,kBAAkB,CAAC;IAClC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,uFAAuF;IACvF,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,yCAAyC;IACzC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uDAAuD;IACvD,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,KAAK,EAAE,OAAO,CAAC;IACf,mCAAmC;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,wCAAwC;IACxC,KAAK,EAAE,OAAO,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"contractState.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/accounts/contractState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAOL,mBAAmB,EACnB,oBAAoB,EAwBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAA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CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,CAI3C;AAED,wBAAsB,uBAAuB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAC5E,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,CAGhD;AAED,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,CAQnC;AAED,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC,CAGxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/accounts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/accounts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
export declare const OWNER_STATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getOwnerStateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type OwnerState = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
/** Account version for future migrations */
|
|
14
|
+
version: number;
|
|
15
|
+
/** PDA bump seed */
|
|
16
|
+
bump: number;
|
|
17
|
+
/** Immutable owner wallet (in PDA seeds) */
|
|
18
|
+
owner: Address;
|
|
19
|
+
/** Updatable authority — who can claim/update (defaults to owner) */
|
|
20
|
+
authority: Address;
|
|
21
|
+
/** Lifetime ATLAS earned from all rentals */
|
|
22
|
+
totalAtlasEarned: bigint;
|
|
23
|
+
/** Lifetime rental completions */
|
|
24
|
+
totalRentalsCompleted: number;
|
|
25
|
+
/** Current active contract count */
|
|
26
|
+
activeContracts: number;
|
|
27
|
+
/** Timestamp when owner state was created */
|
|
28
|
+
createdAt: bigint;
|
|
29
|
+
/** Timestamp when owner state was last updated */
|
|
30
|
+
updatedAt: bigint;
|
|
31
|
+
};
|
|
32
|
+
export type OwnerStateArgs = {
|
|
33
|
+
/** Account version for future migrations */
|
|
34
|
+
version: number;
|
|
35
|
+
/** PDA bump seed */
|
|
36
|
+
bump: number;
|
|
37
|
+
/** Immutable owner wallet (in PDA seeds) */
|
|
38
|
+
owner: Address;
|
|
39
|
+
/** Updatable authority — who can claim/update (defaults to owner) */
|
|
40
|
+
authority: Address;
|
|
41
|
+
/** Lifetime ATLAS earned from all rentals */
|
|
42
|
+
totalAtlasEarned: number | bigint;
|
|
43
|
+
/** Lifetime rental completions */
|
|
44
|
+
totalRentalsCompleted: number;
|
|
45
|
+
/** Current active contract count */
|
|
46
|
+
activeContracts: number;
|
|
47
|
+
/** Timestamp when owner state was created */
|
|
48
|
+
createdAt: number | bigint;
|
|
49
|
+
/** Timestamp when owner state was last updated */
|
|
50
|
+
updatedAt: number | bigint;
|
|
51
|
+
};
|
|
52
|
+
/** Gets the encoder for {@link OwnerStateArgs} account data. */
|
|
53
|
+
export declare function getOwnerStateEncoder(): FixedSizeEncoder<OwnerStateArgs>;
|
|
54
|
+
/** Gets the decoder for {@link OwnerState} account data. */
|
|
55
|
+
export declare function getOwnerStateDecoder(): FixedSizeDecoder<OwnerState>;
|
|
56
|
+
/** Gets the codec for {@link OwnerState} account data. */
|
|
57
|
+
export declare function getOwnerStateCodec(): FixedSizeCodec<OwnerStateArgs, OwnerState>;
|
|
58
|
+
export declare function decodeOwnerState<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<OwnerState, TAddress>;
|
|
59
|
+
export declare function decodeOwnerState<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<OwnerState, TAddress>;
|
|
60
|
+
export declare function fetchOwnerState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<OwnerState, TAddress>>;
|
|
61
|
+
export declare function fetchMaybeOwnerState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<OwnerState, TAddress>>;
|
|
62
|
+
export declare function fetchAllOwnerState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<OwnerState>[]>;
|
|
63
|
+
export declare function fetchAllMaybeOwnerState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<OwnerState>[]>;
|
|
64
|
+
export declare function getOwnerStateSize(): number;
|
|
65
|
+
//# sourceMappingURL=ownerState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ownerState.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/accounts/ownerState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAoBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,yBAAyB,yBAEpC,CAAC;AAEH,wBAAgB,+BAA+B,uBAE9C;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,aAAa,EAAE,kBAAkB,CAAC;IAClC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,KAAK,EAAE,OAAO,CAAC;IACf,qEAAqE;IACrE,SAAS,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,gBAAgB,EAAE,MAAM,CAAC;IACzB,kCAAkC;IAClC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,o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AAM,EACpE,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAIxC;AAED,wBAAsB,oBAAoB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EACzE,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAG7C;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAIhC;AAED,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,CAGrC;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C"}
|
|
@@ -124,59 +124,57 @@ export declare const SRSLY_ERROR__INVALID_DEFENDER = 6056;
|
|
|
124
124
|
export declare const SRSLY_ERROR__INVALID_SPLIT = 6057;
|
|
125
125
|
/** InvalidReferralRate: Invalid referral rate configuration */
|
|
126
126
|
export declare const SRSLY_ERROR__INVALID_REFERRAL_RATE = 6058;
|
|
127
|
-
/** InvalidDiscountRate: Invalid discount rate configuration */
|
|
128
|
-
export declare const SRSLY_ERROR__INVALID_DISCOUNT_RATE = 6059;
|
|
129
127
|
/** ReferralNotEnabled: Referrals are not enabled for this split */
|
|
130
|
-
export declare const SRSLY_ERROR__REFERRAL_NOT_ENABLED =
|
|
128
|
+
export declare const SRSLY_ERROR__REFERRAL_NOT_ENABLED = 6059;
|
|
131
129
|
/** NoFeesToClaim: No fees available to claim */
|
|
132
|
-
export declare const SRSLY_ERROR__NO_FEES_TO_CLAIM =
|
|
130
|
+
export declare const SRSLY_ERROR__NO_FEES_TO_CLAIM = 6060;
|
|
133
131
|
/** ActiveRentalExist: Cannot close account while active rental(s) exist */
|
|
134
|
-
export declare const SRSLY_ERROR__ACTIVE_RENTAL_EXIST =
|
|
132
|
+
export declare const SRSLY_ERROR__ACTIVE_RENTAL_EXIST = 6061;
|
|
135
133
|
/** CannotReleaseActiveRental: Cannot release an active rental. Either rental state must be closed or contract must show no active rental. */
|
|
136
|
-
export declare const SRSLY_ERROR__CANNOT_RELEASE_ACTIVE_RENTAL =
|
|
134
|
+
export declare const SRSLY_ERROR__CANNOT_RELEASE_ACTIVE_RENTAL = 6062;
|
|
137
135
|
/** CloseRentalBeforeContract: Cannot close contract while rental is active. Close the rental first using rental_close. */
|
|
138
|
-
export declare const SRSLY_ERROR__CLOSE_RENTAL_BEFORE_CONTRACT =
|
|
136
|
+
export declare const SRSLY_ERROR__CLOSE_RENTAL_BEFORE_CONTRACT = 6063;
|
|
139
137
|
/** InstantCancelNotAllowed: Instant cancellation not allowed for this contract. Owner must enable allow_instant_cancel. */
|
|
140
|
-
export declare const SRSLY_ERROR__INSTANT_CANCEL_NOT_ALLOWED =
|
|
138
|
+
export declare const SRSLY_ERROR__INSTANT_CANCEL_NOT_ALLOWED = 6064;
|
|
141
139
|
/** ContractReservationsDisabled: Reservations disabled for this contract. Owner has opted out of reservation system. */
|
|
142
|
-
export declare const SRSLY_ERROR__CONTRACT_RESERVATIONS_DISABLED =
|
|
140
|
+
export declare const SRSLY_ERROR__CONTRACT_RESERVATIONS_DISABLED = 6065;
|
|
143
141
|
/** AtlasReservationRequiresTokenAccounts: ATLAS reservation requires token accounts */
|
|
144
|
-
export declare const SRSLY_ERROR__ATLAS_RESERVATION_REQUIRES_TOKEN_ACCOUNTS =
|
|
142
|
+
export declare const SRSLY_ERROR__ATLAS_RESERVATION_REQUIRES_TOKEN_ACCOUNTS = 6066;
|
|
145
143
|
/** InvalidAtlasAmount: Invalid ATLAS amount for reservation (must be > 0) */
|
|
146
|
-
export declare const SRSLY_ERROR__INVALID_ATLAS_AMOUNT =
|
|
144
|
+
export declare const SRSLY_ERROR__INVALID_ATLAS_AMOUNT = 6067;
|
|
147
145
|
/** ContractExists: Contract exists for this fleet. Use rental_release instead of rental_invalidate. */
|
|
148
|
-
export declare const SRSLY_ERROR__CONTRACT_EXISTS =
|
|
146
|
+
export declare const SRSLY_ERROR__CONTRACT_EXISTS = 6068;
|
|
149
147
|
/** FleetNotRented: Fleet is not currently rented (sub_profile is empty). */
|
|
150
|
-
export declare const SRSLY_ERROR__FLEET_NOT_RENTED =
|
|
148
|
+
export declare const SRSLY_ERROR__FLEET_NOT_RENTED = 6069;
|
|
151
149
|
/** NotCrownedWinner: Not the crowned winner. Only the winner from reservation can claim during the claim window. */
|
|
152
|
-
export declare const SRSLY_ERROR__NOT_CROWNED_WINNER =
|
|
150
|
+
export declare const SRSLY_ERROR__NOT_CROWNED_WINNER = 6070;
|
|
153
151
|
/** ClaimWindowExpired: Claim window has expired. Fleet is now available for anyone via rental_accept. */
|
|
154
|
-
export declare const SRSLY_ERROR__CLAIM_WINDOW_EXPIRED =
|
|
152
|
+
export declare const SRSLY_ERROR__CLAIM_WINDOW_EXPIRED = 6071;
|
|
155
153
|
/** QueueFull: Queue is full. Both rental slots are occupied. Wait for current rental to close. */
|
|
156
|
-
export declare const SRSLY_ERROR__QUEUE_FULL =
|
|
154
|
+
export declare const SRSLY_ERROR__QUEUE_FULL = 6072;
|
|
157
155
|
/** AlreadyScheduled: Thread already scheduled for this rental. Cannot schedule again. */
|
|
158
|
-
export declare const SRSLY_ERROR__ALREADY_SCHEDULED =
|
|
156
|
+
export declare const SRSLY_ERROR__ALREADY_SCHEDULED = 6073;
|
|
159
157
|
/** NoActiveRental: No active rental exists. Use rental_accept instead of rental_claim. */
|
|
160
|
-
export declare const SRSLY_ERROR__NO_ACTIVE_RENTAL =
|
|
158
|
+
export declare const SRSLY_ERROR__NO_ACTIVE_RENTAL = 6074;
|
|
161
159
|
/** ThreadNotScheduled: Thread not scheduled. Call rental_schedule first or use manual payment mode. */
|
|
162
|
-
export declare const SRSLY_ERROR__THREAD_NOT_SCHEDULED =
|
|
160
|
+
export declare const SRSLY_ERROR__THREAD_NOT_SCHEDULED = 6075;
|
|
163
161
|
/** InvalidRentalState: Invalid rental state. The provided rental is not tracked by this contract. */
|
|
164
|
-
export declare const SRSLY_ERROR__INVALID_RENTAL_STATE =
|
|
162
|
+
export declare const SRSLY_ERROR__INVALID_RENTAL_STATE = 6076;
|
|
165
163
|
/** InvalidRentalSlot: Invalid rental slot. Passed slot does not match expected free slot. */
|
|
166
|
-
export declare const SRSLY_ERROR__INVALID_RENTAL_SLOT =
|
|
164
|
+
export declare const SRSLY_ERROR__INVALID_RENTAL_SLOT = 6077;
|
|
167
165
|
/** ScheduleRequired: Contract requires automation. Include rental_schedule in the same transaction. */
|
|
168
|
-
export declare const SRSLY_ERROR__SCHEDULE_REQUIRED =
|
|
166
|
+
export declare const SRSLY_ERROR__SCHEDULE_REQUIRED = 6078;
|
|
169
167
|
/** RentalNotPending: Rental is not in Pending status. Only Pending rentals can be activated. */
|
|
170
|
-
export declare const SRSLY_ERROR__RENTAL_NOT_PENDING =
|
|
168
|
+
export declare const SRSLY_ERROR__RENTAL_NOT_PENDING = 6079;
|
|
171
169
|
/** PreviousRentalActive: Previous rental slot is still active. Wait for it to be closed first. */
|
|
172
|
-
export declare const SRSLY_ERROR__PREVIOUS_RENTAL_ACTIVE =
|
|
170
|
+
export declare const SRSLY_ERROR__PREVIOUS_RENTAL_ACTIVE = 6080;
|
|
173
171
|
/** InvalidVault: Invalid vault address. Does not match config.slyvault. */
|
|
174
|
-
export declare const SRSLY_ERROR__INVALID_VAULT =
|
|
172
|
+
export declare const SRSLY_ERROR__INVALID_VAULT = 6081;
|
|
175
173
|
/** InsufficientAtlasForRefund: Insufficient ATLAS in contract to refund reservation. Owner must fund contract first. */
|
|
176
|
-
export declare const SRSLY_ERROR__INSUFFICIENT_ATLAS_FOR_REFUND =
|
|
174
|
+
export declare const SRSLY_ERROR__INSUFFICIENT_ATLAS_FOR_REFUND = 6082;
|
|
177
175
|
/** ContractPendingClose: Contract is pending close. No new rentals or reservations allowed. */
|
|
178
|
-
export declare const SRSLY_ERROR__CONTRACT_PENDING_CLOSE =
|
|
179
|
-
export type SrslyError = typeof SRSLY_ERROR__ACCOUNT_OWNED_BY_WRONG_PROGRAM | typeof SRSLY_ERROR__ACTIVE_RENTAL_EXIST | typeof SRSLY_ERROR__ALREADY_SCHEDULED | typeof SRSLY_ERROR__ATLAS_RESERVATION_REQUIRES_TOKEN_ACCOUNTS | typeof SRSLY_ERROR__BORROWER_STATE_REQUIRED | typeof SRSLY_ERROR__CANNOT_RELEASE_ACTIVE_RENTAL | typeof SRSLY_ERROR__CLAIM_WINDOW_EXPIRED | typeof SRSLY_ERROR__CLOSE_RENTAL_BEFORE_CONTRACT | typeof SRSLY_ERROR__CONTRACT_CLOSED | typeof SRSLY_ERROR__CONTRACT_EXISTS | typeof SRSLY_ERROR__CONTRACT_NOT_RENTED | typeof SRSLY_ERROR__CONTRACT_PENDING_CLOSE | typeof SRSLY_ERROR__CONTRACT_RESERVATIONS_DISABLED | typeof SRSLY_ERROR__DELAY_EXCEEDS_TIME_REMAINING | typeof SRSLY_ERROR__EXCESSIVE_RESERVATION_RATE_MULTIPLIER | typeof SRSLY_ERROR__EXCLUSIVE_WINDOW_ACTIVE | typeof SRSLY_ERROR__FLEET_ALREADY_RENTED | typeof SRSLY_ERROR__FLEET_HAS_ACTIVE_RESERVATION | typeof SRSLY_ERROR__FLEET_NOT_RENTED | typeof SRSLY_ERROR__INACTIVE_REFERRER | typeof SRSLY_ERROR__INSTANT_CANCEL_NOT_ALLOWED | typeof SRSLY_ERROR__INSUFFICIENT_ATLAS_FOR_REFUND | typeof SRSLY_ERROR__INSUFFICIENT_CANCELLATION_NOTICE | typeof SRSLY_ERROR__INSUFFICIENT_POINTS_FOR_CLAIM | typeof SRSLY_ERROR__INSUFFICIENT_POINTS_TO_RESERVE | typeof SRSLY_ERROR__INVALID_ATLAS_AMOUNT | typeof SRSLY_ERROR__INVALID_ATLAS_CONVERSION_RATE | typeof SRSLY_ERROR__INVALID_AUTHORITY | typeof SRSLY_ERROR__INVALID_CLAIM_SCHEDULE | typeof SRSLY_ERROR__INVALID_CLOSE_TARGET | typeof SRSLY_ERROR__INVALID_CONFIG | typeof SRSLY_ERROR__INVALID_DEFENDER | typeof
|
|
176
|
+
export declare const SRSLY_ERROR__CONTRACT_PENDING_CLOSE = 6083;
|
|
177
|
+
export type SrslyError = typeof SRSLY_ERROR__ACCOUNT_OWNED_BY_WRONG_PROGRAM | typeof SRSLY_ERROR__ACTIVE_RENTAL_EXIST | typeof SRSLY_ERROR__ALREADY_SCHEDULED | typeof SRSLY_ERROR__ATLAS_RESERVATION_REQUIRES_TOKEN_ACCOUNTS | typeof SRSLY_ERROR__BORROWER_STATE_REQUIRED | typeof SRSLY_ERROR__CANNOT_RELEASE_ACTIVE_RENTAL | typeof SRSLY_ERROR__CLAIM_WINDOW_EXPIRED | typeof SRSLY_ERROR__CLOSE_RENTAL_BEFORE_CONTRACT | typeof SRSLY_ERROR__CONTRACT_CLOSED | typeof SRSLY_ERROR__CONTRACT_EXISTS | typeof SRSLY_ERROR__CONTRACT_NOT_RENTED | typeof SRSLY_ERROR__CONTRACT_PENDING_CLOSE | typeof SRSLY_ERROR__CONTRACT_RESERVATIONS_DISABLED | typeof SRSLY_ERROR__DELAY_EXCEEDS_TIME_REMAINING | typeof SRSLY_ERROR__EXCESSIVE_RESERVATION_RATE_MULTIPLIER | typeof SRSLY_ERROR__EXCLUSIVE_WINDOW_ACTIVE | typeof SRSLY_ERROR__FLEET_ALREADY_RENTED | typeof SRSLY_ERROR__FLEET_HAS_ACTIVE_RESERVATION | typeof SRSLY_ERROR__FLEET_NOT_RENTED | typeof SRSLY_ERROR__INACTIVE_REFERRER | typeof SRSLY_ERROR__INSTANT_CANCEL_NOT_ALLOWED | typeof SRSLY_ERROR__INSUFFICIENT_ATLAS_FOR_REFUND | typeof SRSLY_ERROR__INSUFFICIENT_CANCELLATION_NOTICE | typeof SRSLY_ERROR__INSUFFICIENT_POINTS_FOR_CLAIM | typeof SRSLY_ERROR__INSUFFICIENT_POINTS_TO_RESERVE | typeof SRSLY_ERROR__INVALID_ATLAS_AMOUNT | typeof SRSLY_ERROR__INVALID_ATLAS_CONVERSION_RATE | typeof SRSLY_ERROR__INVALID_AUTHORITY | typeof SRSLY_ERROR__INVALID_CLAIM_SCHEDULE | typeof SRSLY_ERROR__INVALID_CLOSE_TARGET | typeof SRSLY_ERROR__INVALID_CONFIG | typeof SRSLY_ERROR__INVALID_DEFENDER | typeof SRSLY_ERROR__INVALID_DURATION_MAXIMUM | typeof SRSLY_ERROR__INVALID_DURATION_MAXIMUM_ALIGNMENT | typeof SRSLY_ERROR__INVALID_DURATION_MINIMUM | typeof SRSLY_ERROR__INVALID_DURATION_MINIMUM_ALIGNMENT | typeof SRSLY_ERROR__INVALID_FEE_RATE | typeof SRSLY_ERROR__INVALID_NONCE | typeof SRSLY_ERROR__INVALID_OWNER_TOKEN_ACCOUNT | typeof SRSLY_ERROR__INVALID_PAYMENT_FREQUENCY | typeof SRSLY_ERROR__INVALID_PERCENTAGE | typeof SRSLY_ERROR__INVALID_RATE | typeof SRSLY_ERROR__INVALID_RATE_CALCULATION | typeof SRSLY_ERROR__INVALID_RECIPIENT | typeof SRSLY_ERROR__INVALID_REFERRAL_RATE | typeof SRSLY_ERROR__INVALID_RENTAL_DURATION | typeof SRSLY_ERROR__INVALID_RENTAL_SLOT | typeof SRSLY_ERROR__INVALID_RENTAL_STATE | typeof SRSLY_ERROR__INVALID_RESERVATION_HOLDER | typeof SRSLY_ERROR__INVALID_RESERVATION_RATE_MULTIPLIER | typeof SRSLY_ERROR__INVALID_SPLIT | typeof SRSLY_ERROR__INVALID_SPLIT_CONFIG | typeof SRSLY_ERROR__INVALID_SPLIT_PERCENTAGES | typeof SRSLY_ERROR__INVALID_STARBASE | typeof SRSLY_ERROR__INVALID_STARBASE_PLAYER | typeof SRSLY_ERROR__INVALID_THREAD | typeof SRSLY_ERROR__INVALID_THREAD_CONTEXT | typeof SRSLY_ERROR__INVALID_TOKEN_ACCOUNT | typeof SRSLY_ERROR__INVALID_VAULT | typeof SRSLY_ERROR__MISSING_REQUIRED_ACCOUNT | typeof SRSLY_ERROR__MISSING_THREAD_ACCOUNTS | typeof SRSLY_ERROR__NO_ACTIVE_RENTAL | typeof SRSLY_ERROR__NO_CLAIMABLE_BALANCE | typeof SRSLY_ERROR__NO_FEES_TO_CLAIM | typeof SRSLY_ERROR__NO_REFERRER_SET | typeof SRSLY_ERROR__NOT_CROWNED_WINNER | typeof SRSLY_ERROR__NOT_RESERVATION_HOLDER | typeof SRSLY_ERROR__PREVIOUS_RENTAL_ACTIVE | typeof SRSLY_ERROR__QUEUE_FULL | typeof SRSLY_ERROR__REFERRAL_NOT_ENABLED | typeof SRSLY_ERROR__REFERRER_ALREADY_SET | typeof SRSLY_ERROR__REFERRER_MISMATCH | typeof SRSLY_ERROR__RENTAL_ALREADY_CANCELLED | typeof SRSLY_ERROR__RENTAL_EXPIRED | typeof SRSLY_ERROR__RENTAL_IS_ACTIVE | typeof SRSLY_ERROR__RENTAL_NOT_PENDING | typeof SRSLY_ERROR__RENTAL_STATE_EXISTS | typeof SRSLY_ERROR__RESERVATIONS_DISABLED | typeof SRSLY_ERROR__RESERVATION_STILL_ACTIVE | typeof SRSLY_ERROR__RESERVATION_WINDOW_ACTIVE | typeof SRSLY_ERROR__SCHEDULE_REQUIRED | typeof SRSLY_ERROR__THREAD_NOT_SCHEDULED | typeof SRSLY_ERROR__UNAUTHORIZED | typeof SRSLY_ERROR__UNAUTHORIZED_CONFIG_UPDATE;
|
|
180
178
|
export declare function getSrslyErrorMessage(code: SrslyError): string;
|
|
181
179
|
export declare function isSrslyError<TProgramErrorCode extends SrslyError>(error: unknown, transactionMessage: {
|
|
182
180
|
instructions: Record<number, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"srsly.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/errors/srsly.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,uCAAuC,EAC5C,KAAK,WAAW,EACjB,MAAM,aAAa,CAAC;AAGrB,qGAAqG;AACrG,eAAO,MAAM,yBAAyB,OAAS,CAAC;AAChD,gIAAgI;AAChI,eAAO,MAAM,qCAAqC,OAAS,CAAC;AAC5D,wIAAwI;AACxI,eAAO,MAAM,qCAAqC,OAAS,CAAC;AAC5D,uGAAuG;AACvG,eAAO,MAAM,qCAAqC,OAAS,CAAC;AAC5D,mGAAmG;AACnG,eAAO,MAAM,iCAAiC,OAAS,CAAC;AACxD,uFAAuF;AACvF,eAAO,MAAM,yBAAyB,OAAS,CAAC;AAChD,4HAA4H;AAC5H,eAAO,MAAM,sCAAsC,OAAS,CAAC;AAC7D,oIAAoI;AACpI,eAAO,MAAM,6CAA6C,OAAS,CAAC;AACpE,sIAAsI;AACtI,eAAO,MAAM,yCAAyC,OAAS,CAAC;AAChE,sGAAsG;AACtG,eAAO,MAAM,4BAA4B,OAAS,CAAC;AACnD,6HAA6H;AAC7H,eAAO,MAAM,mCAAmC,OAAS,CAAC;AAC1D,uGAAuG;AACvG,eAAO,MAAM,6BAA6B,OAAS,CAAC;AACpD,8GAA8G;AAC9G,eAAO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B,GACtC,OAAO,mCAAmC,GAC1C,OAAO,mCAAmC,GAC1C,OAAO,uBAAuB,GAC9B,OAAO,iCAAiC,GACxC,OAAO,iCAAiC,GACxC,OAAO,8BAA8B,GACrC,OAAO,qCAAqC,GAC5C,OAAO,2BAA2B,GAClC,OAAO,6BAA6B,GACpC,OAAO,+BAA+B,GACtC,OAAO,gCAAgC,GACvC,OAAO,kCAAkC,GACzC,OAAO,qCAAqC,GAC5C,OAAO,sCAAsC,GAC7C,OAAO,8BAA8B,GACrC,OAAO,iCAAiC,GACxC,OAAO,yBAAyB,GAChC,OAAO,uCAAuC,CAAC;AA4FnD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAM7D;AAED,wBAAgB,YAAY,CAAC,iBAAiB,SAAS,UAAU,EAC/D,KAAK,EAAE,OAAO,EACd,kBAAkB,EAAE;IAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,cAAc,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAC3D,EACD,IAAI,CAAC,EAAE,iBAAiB,GACvB,KAAK,IAAI,WAAW,CAAC,OAAO,uCAAuC,CAAC,GACrE,QAAQ,CAAC;IAAE,OAAO,EAAE,QAAQ,CAAC;QAAE,IAAI,EAAE,iBAAiB,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAO7D"}
|
|
@@ -9,11 +9,12 @@ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeC
|
|
|
9
9
|
import { SRSLY_PROGRAM_ADDRESS } from "../programs";
|
|
10
10
|
export declare const CLAIM_BORROWER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
11
|
export declare function getClaimBorrowerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
-
export type ClaimBorrowerInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS,
|
|
13
|
-
|
|
12
|
+
export type ClaimBorrowerInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountBorrower extends string | AccountMeta<string> = string, TAccountBorrowerState extends string | AccountMeta<string> = string, TAccountBorrowerManagedTokenAccount extends string | AccountMeta<string> = string, TAccountDestinationTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
14
14
|
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
15
15
|
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
16
|
-
|
|
16
|
+
TAccountBorrower extends string ? WritableAccount<TAccountBorrower> : TAccountBorrower,
|
|
17
|
+
TAccountBorrowerState extends string ? WritableAccount<TAccountBorrowerState> : TAccountBorrowerState,
|
|
17
18
|
TAccountBorrowerManagedTokenAccount extends string ? WritableAccount<TAccountBorrowerManagedTokenAccount> : TAccountBorrowerManagedTokenAccount,
|
|
18
19
|
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
19
20
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
@@ -23,15 +24,20 @@ export type ClaimBorrowerInstruction<TProgram extends string = typeof SRSLY_PROG
|
|
|
23
24
|
]>;
|
|
24
25
|
export type ClaimBorrowerInstructionData = {
|
|
25
26
|
discriminator: ReadonlyUint8Array;
|
|
27
|
+
close: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type ClaimBorrowerInstructionDataArgs = {
|
|
30
|
+
close: boolean;
|
|
26
31
|
};
|
|
27
|
-
export type ClaimBorrowerInstructionDataArgs = {};
|
|
28
32
|
export declare function getClaimBorrowerInstructionDataEncoder(): FixedSizeEncoder<ClaimBorrowerInstructionDataArgs>;
|
|
29
33
|
export declare function getClaimBorrowerInstructionDataDecoder(): FixedSizeDecoder<ClaimBorrowerInstructionData>;
|
|
30
34
|
export declare function getClaimBorrowerInstructionDataCodec(): FixedSizeCodec<ClaimBorrowerInstructionDataArgs, ClaimBorrowerInstructionData>;
|
|
31
|
-
export type ClaimBorrowerAsyncInput<
|
|
32
|
-
borrower
|
|
35
|
+
export type ClaimBorrowerAsyncInput<TAccountPayer extends string = string, TAccountConfig extends string = string, TAccountMint extends string = string, TAccountBorrower extends string = string, TAccountBorrowerState extends string = string, TAccountBorrowerManagedTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
36
|
+
/** Payer/signer — must be borrower OR config.admin */
|
|
37
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
33
38
|
config?: Address<TAccountConfig>;
|
|
34
39
|
mint: Address<TAccountMint>;
|
|
40
|
+
borrower: Address<TAccountBorrower>;
|
|
35
41
|
borrowerState?: Address<TAccountBorrowerState>;
|
|
36
42
|
/**
|
|
37
43
|
* Managed token account (ATA with borrower_state as authority)
|
|
@@ -43,14 +49,17 @@ export type ClaimBorrowerAsyncInput<TAccountBorrower extends string = string, TA
|
|
|
43
49
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
44
50
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
45
51
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
52
|
+
close: ClaimBorrowerInstructionDataArgs["close"];
|
|
46
53
|
};
|
|
47
|
-
export declare function getClaimBorrowerInstructionAsync<
|
|
54
|
+
export declare function getClaimBorrowerInstructionAsync<TAccountPayer extends string, TAccountConfig extends string, TAccountMint extends string, TAccountBorrower extends string, TAccountBorrowerState extends string, TAccountBorrowerManagedTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: ClaimBorrowerAsyncInput<TAccountPayer, TAccountConfig, TAccountMint, TAccountBorrower, TAccountBorrowerState, TAccountBorrowerManagedTokenAccount, TAccountDestinationTokenAccount, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
48
55
|
programAddress?: TProgramAddress;
|
|
49
|
-
}): Promise<ClaimBorrowerInstruction<TProgramAddress,
|
|
50
|
-
export type ClaimBorrowerInput<
|
|
51
|
-
borrower
|
|
56
|
+
}): Promise<ClaimBorrowerInstruction<TProgramAddress, TAccountPayer, TAccountConfig, TAccountMint, TAccountBorrower, TAccountBorrowerState, TAccountBorrowerManagedTokenAccount, TAccountDestinationTokenAccount, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
57
|
+
export type ClaimBorrowerInput<TAccountPayer extends string = string, TAccountConfig extends string = string, TAccountMint extends string = string, TAccountBorrower extends string = string, TAccountBorrowerState extends string = string, TAccountBorrowerManagedTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
58
|
+
/** Payer/signer — must be borrower OR config.admin */
|
|
59
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
52
60
|
config: Address<TAccountConfig>;
|
|
53
61
|
mint: Address<TAccountMint>;
|
|
62
|
+
borrower: Address<TAccountBorrower>;
|
|
54
63
|
borrowerState: Address<TAccountBorrowerState>;
|
|
55
64
|
/**
|
|
56
65
|
* Managed token account (ATA with borrower_state as authority)
|
|
@@ -62,27 +71,30 @@ export type ClaimBorrowerInput<TAccountBorrower extends string = string, TAccoun
|
|
|
62
71
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
63
72
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
64
73
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
74
|
+
close: ClaimBorrowerInstructionDataArgs["close"];
|
|
65
75
|
};
|
|
66
|
-
export declare function getClaimBorrowerInstruction<
|
|
76
|
+
export declare function getClaimBorrowerInstruction<TAccountPayer extends string, TAccountConfig extends string, TAccountMint extends string, TAccountBorrower extends string, TAccountBorrowerState extends string, TAccountBorrowerManagedTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: ClaimBorrowerInput<TAccountPayer, TAccountConfig, TAccountMint, TAccountBorrower, TAccountBorrowerState, TAccountBorrowerManagedTokenAccount, TAccountDestinationTokenAccount, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
67
77
|
programAddress?: TProgramAddress;
|
|
68
|
-
}): ClaimBorrowerInstruction<TProgramAddress,
|
|
78
|
+
}): ClaimBorrowerInstruction<TProgramAddress, TAccountPayer, TAccountConfig, TAccountMint, TAccountBorrower, TAccountBorrowerState, TAccountBorrowerManagedTokenAccount, TAccountDestinationTokenAccount, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
69
79
|
export type ParsedClaimBorrowerInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
70
80
|
programAddress: Address<TProgram>;
|
|
71
81
|
accounts: {
|
|
72
|
-
borrower
|
|
82
|
+
/** Payer/signer — must be borrower OR config.admin */
|
|
83
|
+
payer: TAccountMetas[0];
|
|
73
84
|
config: TAccountMetas[1];
|
|
74
85
|
mint: TAccountMetas[2];
|
|
75
|
-
|
|
86
|
+
borrower: TAccountMetas[3];
|
|
87
|
+
borrowerState: TAccountMetas[4];
|
|
76
88
|
/**
|
|
77
89
|
* Managed token account (ATA with borrower_state as authority)
|
|
78
90
|
* This is where ATLAS refunds accumulate when knocked off reservations
|
|
79
91
|
*/
|
|
80
|
-
borrowerManagedTokenAccount: TAccountMetas[
|
|
92
|
+
borrowerManagedTokenAccount: TAccountMetas[5];
|
|
81
93
|
/** Destination: borrower's personal wallet ATA */
|
|
82
|
-
destinationTokenAccount: TAccountMetas[
|
|
83
|
-
tokenProgram: TAccountMetas[
|
|
84
|
-
associatedTokenProgram: TAccountMetas[
|
|
85
|
-
systemProgram: TAccountMetas[
|
|
94
|
+
destinationTokenAccount: TAccountMetas[6];
|
|
95
|
+
tokenProgram: TAccountMetas[7];
|
|
96
|
+
associatedTokenProgram: TAccountMetas[8];
|
|
97
|
+
systemProgram: TAccountMetas[9];
|
|
86
98
|
};
|
|
87
99
|
data: ClaimBorrowerInstructionData;
|
|
88
100
|
};
|