@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
|
@@ -1,24 +0,0 @@
|
|
|
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 { combineCodec, getAddressDecoder, getAddressEncoder, getOptionDecoder, getOptionEncoder, getStructDecoder, getStructEncoder, getU16Decoder, getU16Encoder, } from "@solana/kit";
|
|
9
|
-
export function getBorrowerDiscountSetEncoder() {
|
|
10
|
-
return getStructEncoder([
|
|
11
|
-
["borrowerState", getAddressEncoder()],
|
|
12
|
-
["discountBps", getOptionEncoder(getU16Encoder())],
|
|
13
|
-
]);
|
|
14
|
-
}
|
|
15
|
-
export function getBorrowerDiscountSetDecoder() {
|
|
16
|
-
return getStructDecoder([
|
|
17
|
-
["borrowerState", getAddressDecoder()],
|
|
18
|
-
["discountBps", getOptionDecoder(getU16Decoder())],
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
export function getBorrowerDiscountSetCodec() {
|
|
22
|
-
return combineCodec(getBorrowerDiscountSetEncoder(), getBorrowerDiscountSetDecoder());
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=borrowerDiscountSet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"borrowerDiscountSet.js","sourceRoot":"","sources":["../../../../../src/generated/codama/types/borrowerDiscountSet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,GAOd,MAAM,aAAa,CAAC;AAYrB,MAAM,UAAU,6BAA6B;IAC3C,OAAO,gBAAgB,CAAC;QACtB,CAAC,eAAe,EAAE,iBAAiB,EAAE,CAAC;QACtC,CAAC,aAAa,EAAE,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAC;KACnD,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,6BAA6B;IAC3C,OAAO,gBAAgB,CAAC;QACtB,CAAC,eAAe,EAAE,iBAAiB,EAAE,CAAC;QACtC,CAAC,aAAa,EAAE,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAC;KACnD,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,2BAA2B;IAIzC,OAAO,YAAY,CACjB,6BAA6B,EAAE,EAC/B,6BAA6B,EAAE,CAChC,CAAC;AACJ,CAAC"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @purpose Simplified claimContractPayments instruction wrapper
|
|
3
|
-
*
|
|
4
|
-
* Thin convenience wrapper around Codama-generated claimContractPayments instruction.
|
|
5
|
-
* Allows contract owners to claim accumulated rental payments.
|
|
6
|
-
*/
|
|
7
|
-
import { address } from '@solana/kit';
|
|
8
|
-
import { getClaimContractPaymentsInstructionAsync } from '../generated/codama/instructions';
|
|
9
|
-
import { mergeConfig, getAddresses } from '../utils/config';
|
|
10
|
-
import { toTransactionSigner } from '../utils/signer';
|
|
11
|
-
import { prepareInstructions } from '../utils/instructions';
|
|
12
|
-
/**
|
|
13
|
-
* Claim contract payments
|
|
14
|
-
*
|
|
15
|
-
* Allows the contract owner to claim accumulated rental payments from
|
|
16
|
-
* the contract's token account to their destination account.
|
|
17
|
-
* Can be automated via Antegen by creating a thread with authority as the contract owner.
|
|
18
|
-
*
|
|
19
|
-
* @param params - Payment claim parameters
|
|
20
|
-
* @param config - Optional SDK configuration overrides
|
|
21
|
-
* @returns Kit instruction (or web3.js if PublicKey in config)
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```typescript
|
|
25
|
-
* // Manual claim (owner signs as payer)
|
|
26
|
-
* const ix = await claimContractPayments({
|
|
27
|
-
* payer: ownerWallet,
|
|
28
|
-
* owner: ownerWallet.address,
|
|
29
|
-
* contract: contractAddress
|
|
30
|
-
* });
|
|
31
|
-
*
|
|
32
|
-
* // Automated claim via Antegen thread
|
|
33
|
-
* const ix2 = await claimContractPayments({
|
|
34
|
-
* payer: threadSigner,
|
|
35
|
-
* owner: ownerAddress,
|
|
36
|
-
* contract: contractAddress,
|
|
37
|
-
* claimThread: threadAddress
|
|
38
|
-
* });
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export async function claimContractPayments(params, config) {
|
|
42
|
-
// Merge config
|
|
43
|
-
const finalConfig = mergeConfig(config);
|
|
44
|
-
// Validate required params
|
|
45
|
-
if (!params.payer) {
|
|
46
|
-
throw new Error('payer is required');
|
|
47
|
-
}
|
|
48
|
-
if (!params.owner) {
|
|
49
|
-
throw new Error('owner is required');
|
|
50
|
-
}
|
|
51
|
-
if (!params.contract) {
|
|
52
|
-
throw new Error('contract is required');
|
|
53
|
-
}
|
|
54
|
-
// Convert payer to transaction signer
|
|
55
|
-
const payerSigner = toTransactionSigner(params.payer);
|
|
56
|
-
// Get network-specific addresses
|
|
57
|
-
const addresses = getAddresses(config);
|
|
58
|
-
const atlasMint = address(addresses.atlasMint);
|
|
59
|
-
const programAddress = address(addresses.srsly);
|
|
60
|
-
// Call Codama-generated instruction
|
|
61
|
-
const kitInstruction = await getClaimContractPaymentsInstructionAsync({
|
|
62
|
-
payer: payerSigner,
|
|
63
|
-
mint: atlasMint,
|
|
64
|
-
owner: address(params.owner),
|
|
65
|
-
contract: address(params.contract),
|
|
66
|
-
destinationTokenAccount: params.destinationTokenAccount
|
|
67
|
-
? address(params.destinationTokenAccount)
|
|
68
|
-
: undefined,
|
|
69
|
-
claimThread: params.claimThread ? address(params.claimThread) : undefined,
|
|
70
|
-
}, { programAddress });
|
|
71
|
-
return prepareInstructions(kitInstruction, {
|
|
72
|
-
computeUnits: params.computeUnits,
|
|
73
|
-
PublicKey: finalConfig.PublicKey
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=claimContractPayments.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"claimContractPayments.js","sourceRoot":"","sources":["../../../src/instructions/claimContractPayments.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,YAAY,EAAkB,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAwB,MAAM,iBAAiB,CAAC;AAE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,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,WAAsB,CAAC,CAAC,CAAC,CAAC,SAAS;KACrF,EACD,EAAE,cAAc,EAAE,CACnB,CAAC;IAEF,OAAO,mBAAmB,CAAC,cAAc,EAAE;QACzC,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,SAAS,EAAE,WAAW,CAAC,SAAS;KACjC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @purpose Simplified closeBorrower instruction wrapper
|
|
3
|
-
*
|
|
4
|
-
* Thin convenience wrapper around Codama-generated closeBorrower instruction.
|
|
5
|
-
* Closes the borrower account and reclaims rent.
|
|
6
|
-
*/
|
|
7
|
-
import { address } from '@solana/kit';
|
|
8
|
-
import { getCloseBorrowerInstruction } from '../generated/codama/instructions';
|
|
9
|
-
import { mergeConfig, getAddresses } from '../utils/config';
|
|
10
|
-
import { toTransactionSigner, getSignerAddress } from '../utils/signer';
|
|
11
|
-
import { prepareInstructions } from '../utils/instructions';
|
|
12
|
-
import { deriveBorrowerState } from '../pda/srsly';
|
|
13
|
-
/**
|
|
14
|
-
* Close borrower account
|
|
15
|
-
*
|
|
16
|
-
* Closes the borrower account and reclaims rent.
|
|
17
|
-
*
|
|
18
|
-
* This function automatically derives the borrower state PDA.
|
|
19
|
-
*
|
|
20
|
-
* @param params - Close borrower parameters
|
|
21
|
-
* @param config - Optional SDK configuration overrides
|
|
22
|
-
* @returns Kit instruction (or web3.js if PublicKey in config)
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* // Close borrower account
|
|
27
|
-
* const ix = await closeBorrower({
|
|
28
|
-
* borrower: borrowerWallet
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export async function closeBorrower(params, config) {
|
|
33
|
-
// Merge config
|
|
34
|
-
const finalConfig = mergeConfig(config);
|
|
35
|
-
// Validate required params
|
|
36
|
-
if (!params.borrower) {
|
|
37
|
-
throw new Error('borrower is required');
|
|
38
|
-
}
|
|
39
|
-
// Convert borrower to transaction signer
|
|
40
|
-
const borrowerSigner = toTransactionSigner(params.borrower);
|
|
41
|
-
const borrowerAddress = getSignerAddress(borrowerSigner);
|
|
42
|
-
// Get network-specific addresses
|
|
43
|
-
const addresses = getAddresses(config);
|
|
44
|
-
const programAddress = address(addresses.srsly);
|
|
45
|
-
// Derive borrower state PDA
|
|
46
|
-
const borrowerState = await deriveBorrowerState(borrowerAddress);
|
|
47
|
-
// Call Codama-generated instruction (sync version - no async derivation)
|
|
48
|
-
const kitInstruction = getCloseBorrowerInstruction({
|
|
49
|
-
borrower: borrowerSigner,
|
|
50
|
-
borrowerState,
|
|
51
|
-
}, { programAddress });
|
|
52
|
-
return prepareInstructions(kitInstruction, {
|
|
53
|
-
computeUnits: params.computeUnits,
|
|
54
|
-
PublicKey: finalConfig.PublicKey
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=closeBorrower.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"closeBorrower.js","sourceRoot":"","sources":["../../../src/instructions/closeBorrower.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAkB,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAwB,MAAM,iBAAiB,CAAC;AAE9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAmBnD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAA2B,EAC3B,MAA2B;IAE3B,eAAe;IACf,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IAExC,2BAA2B;IAC3B,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1C,CAAC;IAED,yCAAyC;IACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC5D,MAAM,eAAe,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAEzD,iCAAiC;IACjC,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IACvC,MAAM,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,KAAgB,CAAC,CAAC;IAE3D,4BAA4B;IAC5B,MAAM,aAAa,GAAG,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAEjE,yEAAyE;IACzE,MAAM,cAAc,GAAG,2BAA2B,CAChD;QACE,QAAQ,EAAE,cAAc;QACxB,aAAa;KACd,EACD,EAAE,cAAc,EAAE,CACnB,CAAC;IAEF,OAAO,mBAAmB,CAAC,cAAc,EAAE;QACzC,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,SAAS,EAAE,WAAW,CAAC,SAAS;KACjC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @purpose Simplified deleteBorrower instruction wrapper
|
|
3
|
-
*
|
|
4
|
-
* Thin convenience wrapper around Codama-generated deleteBorrower instruction.
|
|
5
|
-
* Allows admin OR borrower to delete borrower state for schema migrations.
|
|
6
|
-
* Returns lamports to the borrower. Next rental will lazy-init fresh state.
|
|
7
|
-
*/
|
|
8
|
-
import { address } from '@solana/kit';
|
|
9
|
-
import { getDeleteBorrowerInstructionAsync } from '../generated/codama/instructions';
|
|
10
|
-
import { mergeConfig, getAddresses } from '../utils/config';
|
|
11
|
-
import { toTransactionSigner } from '../utils/signer';
|
|
12
|
-
import { prepareInstructions } from '../utils/instructions';
|
|
13
|
-
/**
|
|
14
|
-
* Delete borrower state (admin only)
|
|
15
|
-
*
|
|
16
|
-
* Used for schema migrations when BorrowerState structure changes.
|
|
17
|
-
* Returns lamports to the borrower. Next rental will lazy-init fresh state.
|
|
18
|
-
*
|
|
19
|
-
* @param params - Delete borrower parameters
|
|
20
|
-
* @param config - Optional SDK configuration overrides
|
|
21
|
-
* @returns Kit instruction (or web3.js if PublicKey in config)
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```typescript
|
|
25
|
-
* // Admin deletes borrower state for migration
|
|
26
|
-
* const ix = await deleteBorrower({
|
|
27
|
-
* admin: adminWallet,
|
|
28
|
-
* borrower: "BORROWER_WALLET_ADDRESS"
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export async function deleteBorrower(params, config) {
|
|
33
|
-
// Merge config
|
|
34
|
-
const finalConfig = mergeConfig(config);
|
|
35
|
-
// Validate required params
|
|
36
|
-
if (!params.admin) {
|
|
37
|
-
throw new Error('admin is required');
|
|
38
|
-
}
|
|
39
|
-
if (!params.borrower) {
|
|
40
|
-
throw new Error('borrower is required');
|
|
41
|
-
}
|
|
42
|
-
// Convert admin to transaction signer
|
|
43
|
-
const adminSigner = toTransactionSigner(params.admin);
|
|
44
|
-
// Get network-specific addresses
|
|
45
|
-
const addresses = getAddresses(config);
|
|
46
|
-
const programAddress = address(addresses.srsly);
|
|
47
|
-
// Call Codama-generated instruction
|
|
48
|
-
const kitInstruction = await getDeleteBorrowerInstructionAsync({
|
|
49
|
-
admin: adminSigner,
|
|
50
|
-
borrower: address(params.borrower)
|
|
51
|
-
}, { programAddress });
|
|
52
|
-
return prepareInstructions(kitInstruction, {
|
|
53
|
-
computeUnits: params.computeUnits,
|
|
54
|
-
PublicKey: finalConfig.PublicKey
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=deleteB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O,mBAAmB,CAAC,cAAc,EAAE;QACzC,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,SAAS,EAAE,WAAW,CAAC,SAAS;KACjC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @purpose Simplified discountBorrower instruction wrapper
|
|
3
|
-
*
|
|
4
|
-
* Thin convenience wrapper around Codama-generated discountBorrower instruction.
|
|
5
|
-
* Admin-only instruction to apply a discount to a specific borrower.
|
|
6
|
-
*/
|
|
7
|
-
import { address, some, none } from '@solana/kit';
|
|
8
|
-
import { getDiscountBorrowerInstructionAsync } from '../generated/codama/instructions';
|
|
9
|
-
import { mergeConfig, getAddresses } from '../utils/config';
|
|
10
|
-
import { toTransactionSigner } from '../utils/signer';
|
|
11
|
-
import { deriveBorrowerState } from '../pda/srsly';
|
|
12
|
-
import { prepareInstructions } from '../utils/instructions';
|
|
13
|
-
import { percentToBps } from '@wuwei-labs/slyvault';
|
|
14
|
-
/**
|
|
15
|
-
* Apply discount to borrower
|
|
16
|
-
*
|
|
17
|
-
* Admin-only instruction that applies a discount to a specific borrower.
|
|
18
|
-
* The discount is specified in basis points (1 basis point = 0.01%).
|
|
19
|
-
*
|
|
20
|
-
* @param params - Discount parameters
|
|
21
|
-
* @param config - Optional SDK configuration overrides
|
|
22
|
-
* @returns Kit instruction (or web3.js if PublicKey in config)
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* // Apply 10% discount
|
|
27
|
-
* const ix = await discountBorrower({
|
|
28
|
-
* admin: adminWallet,
|
|
29
|
-
* borrower: borrowerAddress,
|
|
30
|
-
* discount: 10
|
|
31
|
-
* });
|
|
32
|
-
*
|
|
33
|
-
* // Remove discount
|
|
34
|
-
* const ix2 = await discountBorrower({
|
|
35
|
-
* admin: adminWallet,
|
|
36
|
-
* borrower: borrowerAddress,
|
|
37
|
-
* discount: null
|
|
38
|
-
* });
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export async function discountBorrower(params, config) {
|
|
42
|
-
// Merge config
|
|
43
|
-
const finalConfig = mergeConfig(config);
|
|
44
|
-
// Validate required params
|
|
45
|
-
if (!params.admin) {
|
|
46
|
-
throw new Error('admin is required');
|
|
47
|
-
}
|
|
48
|
-
if (!params.borrower) {
|
|
49
|
-
throw new Error('borrower is required');
|
|
50
|
-
}
|
|
51
|
-
// Convert admin to transaction signer
|
|
52
|
-
const adminSigner = toTransactionSigner(params.admin);
|
|
53
|
-
// Derive borrower state PDA
|
|
54
|
-
const borrowerState = await deriveBorrowerState(params.borrower);
|
|
55
|
-
// Get network-specific addresses
|
|
56
|
-
const addresses = getAddresses(config);
|
|
57
|
-
const programAddress = address(addresses.srsly);
|
|
58
|
-
// Convert percentage to BPS Option<number>
|
|
59
|
-
const discountBps = params.discount === null || params.discount === undefined
|
|
60
|
-
? none()
|
|
61
|
-
: some(percentToBps(params.discount));
|
|
62
|
-
// Call Codama-generated instruction
|
|
63
|
-
const kitInstruction = await getDiscountBorrowerInstructionAsync({
|
|
64
|
-
admin: adminSigner,
|
|
65
|
-
borrowerState,
|
|
66
|
-
discountBps,
|
|
67
|
-
}, { programAddress });
|
|
68
|
-
return prepareInstructions(kitInstruction, {
|
|
69
|
-
computeUnits: params.computeUnits,
|
|
70
|
-
PublicKey: finalConfig.PublicKey
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=discountBorrower.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discountBorrower.js","sourceRoot":"","sources":["../../../src/instructions/discountBorrower.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAgB,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAkB,MAAM,iB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,KAAK,EAAE,WAAW;QAClB,aAAa;QACb,WAAW;KACZ,EACD,EAAE,cAAc,EAAE,CACnB,CAAC;IAEF,OAAO,mBAAmB,CAAC,cAAc,EAAE;QACzC,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,SAAS,EAAE,WAAW,CAAC,SAAS;KACjC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun Codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
-
import { SRSLY_PROGRAM_ADDRESS } from "../programs";
|
|
10
|
-
export declare const CLAIM_CONTRACT_PAYMENTS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
-
export declare function getClaimContractPaymentsDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
-
export type ClaimContractPaymentsInstruction<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, TAccountOwner extends string | AccountMeta<string> = string, TAccountContract extends string | AccountMeta<string> = string, TAccountContractTokenAccount extends string | AccountMeta<string> = string, TAccountDestinationTokenAccount extends string | AccountMeta<string> = string, TAccountClaimThread 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
|
-
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
15
|
-
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
16
|
-
TAccountOwner extends string ? WritableAccount<TAccountOwner> : TAccountOwner,
|
|
17
|
-
TAccountContract extends string ? WritableAccount<TAccountContract> : TAccountContract,
|
|
18
|
-
TAccountContractTokenAccount extends string ? WritableAccount<TAccountContractTokenAccount> : TAccountContractTokenAccount,
|
|
19
|
-
TAccountDestinationTokenAccount extends string ? WritableAccount<TAccountDestinationTokenAccount> : TAccountDestinationTokenAccount,
|
|
20
|
-
TAccountClaimThread extends string ? ReadonlyAccount<TAccountClaimThread> : TAccountClaimThread,
|
|
21
|
-
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
22
|
-
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
23
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
24
|
-
...TRemainingAccounts
|
|
25
|
-
]>;
|
|
26
|
-
export type ClaimContractPaymentsInstructionData = {
|
|
27
|
-
discriminator: ReadonlyUint8Array;
|
|
28
|
-
};
|
|
29
|
-
export type ClaimContractPaymentsInstructionDataArgs = {};
|
|
30
|
-
export declare function getClaimContractPaymentsInstructionDataEncoder(): FixedSizeEncoder<ClaimContractPaymentsInstructionDataArgs>;
|
|
31
|
-
export declare function getClaimContractPaymentsInstructionDataDecoder(): FixedSizeDecoder<ClaimContractPaymentsInstructionData>;
|
|
32
|
-
export declare function getClaimContractPaymentsInstructionDataCodec(): FixedSizeCodec<ClaimContractPaymentsInstructionDataArgs, ClaimContractPaymentsInstructionData>;
|
|
33
|
-
export type ClaimContractPaymentsAsyncInput<TAccountPayer extends string = string, TAccountConfig extends string = string, TAccountMint extends string = string, TAccountOwner extends string = string, TAccountContract extends string = string, TAccountContractTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountClaimThread extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
34
|
-
/** Payer for any account initialization */
|
|
35
|
-
payer: TransactionSigner<TAccountPayer>;
|
|
36
|
-
config?: Address<TAccountConfig>;
|
|
37
|
-
mint: Address<TAccountMint>;
|
|
38
|
-
owner: Address<TAccountOwner>;
|
|
39
|
-
contract: Address<TAccountContract>;
|
|
40
|
-
contractTokenAccount?: Address<TAccountContractTokenAccount>;
|
|
41
|
-
destinationTokenAccount?: Address<TAccountDestinationTokenAccount>;
|
|
42
|
-
/**
|
|
43
|
-
* Optional: Thread account for automated claims
|
|
44
|
-
* When provided, validates thread.authority == contract.owner
|
|
45
|
-
*/
|
|
46
|
-
claimThread?: Address<TAccountClaimThread>;
|
|
47
|
-
tokenProgram?: Address<TAccountTokenProgram>;
|
|
48
|
-
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
49
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
50
|
-
};
|
|
51
|
-
export declare function getClaimContractPaymentsInstructionAsync<TAccountPayer extends string, TAccountConfig extends string, TAccountMint extends string, TAccountOwner extends string, TAccountContract extends string, TAccountContractTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountClaimThread extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: ClaimContractPaymentsAsyncInput<TAccountPayer, TAccountConfig, TAccountMint, TAccountOwner, TAccountContract, TAccountContractTokenAccount, TAccountDestinationTokenAccount, TAccountClaimThread, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
52
|
-
programAddress?: TProgramAddress;
|
|
53
|
-
}): Promise<ClaimContractPaymentsInstruction<TProgramAddress, TAccountPayer, TAccountConfig, TAccountMint, TAccountOwner, TAccountContract, TAccountContractTokenAccount, TAccountDestinationTokenAccount, TAccountClaimThread, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
54
|
-
export type ClaimContractPaymentsInput<TAccountPayer extends string = string, TAccountConfig extends string = string, TAccountMint extends string = string, TAccountOwner extends string = string, TAccountContract extends string = string, TAccountContractTokenAccount extends string = string, TAccountDestinationTokenAccount extends string = string, TAccountClaimThread extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
55
|
-
/** Payer for any account initialization */
|
|
56
|
-
payer: TransactionSigner<TAccountPayer>;
|
|
57
|
-
config: Address<TAccountConfig>;
|
|
58
|
-
mint: Address<TAccountMint>;
|
|
59
|
-
owner: Address<TAccountOwner>;
|
|
60
|
-
contract: Address<TAccountContract>;
|
|
61
|
-
contractTokenAccount: Address<TAccountContractTokenAccount>;
|
|
62
|
-
destinationTokenAccount: Address<TAccountDestinationTokenAccount>;
|
|
63
|
-
/**
|
|
64
|
-
* Optional: Thread account for automated claims
|
|
65
|
-
* When provided, validates thread.authority == contract.owner
|
|
66
|
-
*/
|
|
67
|
-
claimThread?: Address<TAccountClaimThread>;
|
|
68
|
-
tokenProgram?: Address<TAccountTokenProgram>;
|
|
69
|
-
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
70
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
71
|
-
};
|
|
72
|
-
export declare function getClaimContractPaymentsInstruction<TAccountPayer extends string, TAccountConfig extends string, TAccountMint extends string, TAccountOwner extends string, TAccountContract extends string, TAccountContractTokenAccount extends string, TAccountDestinationTokenAccount extends string, TAccountClaimThread extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: ClaimContractPaymentsInput<TAccountPayer, TAccountConfig, TAccountMint, TAccountOwner, TAccountContract, TAccountContractTokenAccount, TAccountDestinationTokenAccount, TAccountClaimThread, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
73
|
-
programAddress?: TProgramAddress;
|
|
74
|
-
}): ClaimContractPaymentsInstruction<TProgramAddress, TAccountPayer, TAccountConfig, TAccountMint, TAccountOwner, TAccountContract, TAccountContractTokenAccount, TAccountDestinationTokenAccount, TAccountClaimThread, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
75
|
-
export type ParsedClaimContractPaymentsInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
76
|
-
programAddress: Address<TProgram>;
|
|
77
|
-
accounts: {
|
|
78
|
-
/** Payer for any account initialization */
|
|
79
|
-
payer: TAccountMetas[0];
|
|
80
|
-
config: TAccountMetas[1];
|
|
81
|
-
mint: TAccountMetas[2];
|
|
82
|
-
owner: TAccountMetas[3];
|
|
83
|
-
contract: TAccountMetas[4];
|
|
84
|
-
contractTokenAccount: TAccountMetas[5];
|
|
85
|
-
destinationTokenAccount: TAccountMetas[6];
|
|
86
|
-
/**
|
|
87
|
-
* Optional: Thread account for automated claims
|
|
88
|
-
* When provided, validates thread.authority == contract.owner
|
|
89
|
-
*/
|
|
90
|
-
claimThread?: TAccountMetas[7] | undefined;
|
|
91
|
-
tokenProgram: TAccountMetas[8];
|
|
92
|
-
associatedTokenProgram: TAccountMetas[9];
|
|
93
|
-
systemProgram: TAccountMetas[10];
|
|
94
|
-
};
|
|
95
|
-
data: ClaimContractPaymentsInstructionData;
|
|
96
|
-
};
|
|
97
|
-
export declare function parseClaimContractPaymentsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimContractPaymentsInstruction<TProgram, TAccountMetas>;
|
|
98
|
-
//# sourceMappingURL=claimContractPayments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"claimContractPayments.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/instructions/claimContractPayments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAOpD,eAAO,MAAM,qCAAqC,yBAEhD,CAAC;AAEH,wBAAgB,0CAA0C,uBAIzD;AAED,MAAM,MAAM,gCAAgC,CAC1C,QAAQ,SAAS,MAAM,GAAG,OAAO,qBAAqB,EACtD,aAAa,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC3D,cAAc,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC5D,YAAY,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC1D,aAAa,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC3D,gBAAgB,SAAS,M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AC1C;;;WAGG;QACH,WAAW,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;QAC3C,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,sBAAsB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACzC,aAAa,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC;KAClC,CAAC;IACF,IAAI,EAAE,oCAAoC,CAAC;CAC5C,CAAC;AAEF,wBAAgB,qCAAqC,CACnD,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,sCAAsC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAoCjE"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun Codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
-
import { SRSLY_PROGRAM_ADDRESS } from "../programs";
|
|
10
|
-
export declare const CLOSE_BORROWER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
-
export declare function getCloseBorrowerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
-
export type CloseBorrowerInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountBorrower extends string | AccountMeta<string> = string, TAccountBorrowerState extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
-
TAccountBorrower extends string ? WritableSignerAccount<TAccountBorrower> & AccountSignerMeta<TAccountBorrower> : TAccountBorrower,
|
|
14
|
-
TAccountBorrowerState extends string ? WritableAccount<TAccountBorrowerState> : TAccountBorrowerState,
|
|
15
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
16
|
-
...TRemainingAccounts
|
|
17
|
-
]>;
|
|
18
|
-
export type CloseBorrowerInstructionData = {
|
|
19
|
-
discriminator: ReadonlyUint8Array;
|
|
20
|
-
};
|
|
21
|
-
export type CloseBorrowerInstructionDataArgs = {};
|
|
22
|
-
export declare function getCloseBorrowerInstructionDataEncoder(): FixedSizeEncoder<CloseBorrowerInstructionDataArgs>;
|
|
23
|
-
export declare function getCloseBorrowerInstructionDataDecoder(): FixedSizeDecoder<CloseBorrowerInstructionData>;
|
|
24
|
-
export declare function getCloseBorrowerInstructionDataCodec(): FixedSizeCodec<CloseBorrowerInstructionDataArgs, CloseBorrowerInstructionData>;
|
|
25
|
-
export type CloseBorrowerInput<TAccountBorrower extends string = string, TAccountBorrowerState extends string = string, TAccountSystemProgram extends string = string> = {
|
|
26
|
-
borrower: TransactionSigner<TAccountBorrower>;
|
|
27
|
-
borrowerState: Address<TAccountBorrowerState>;
|
|
28
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
29
|
-
};
|
|
30
|
-
export declare function getCloseBorrowerInstruction<TAccountBorrower extends string, TAccountBorrowerState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: CloseBorrowerInput<TAccountBorrower, TAccountBorrowerState, TAccountSystemProgram>, config?: {
|
|
31
|
-
programAddress?: TProgramAddress;
|
|
32
|
-
}): CloseBorrowerInstruction<TProgramAddress, TAccountBorrower, TAccountBorrowerState, TAccountSystemProgram>;
|
|
33
|
-
export type ParsedCloseBorrowerInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
34
|
-
programAddress: Address<TProgram>;
|
|
35
|
-
accounts: {
|
|
36
|
-
borrower: TAccountMetas[0];
|
|
37
|
-
borrowerState: TAccountMetas[1];
|
|
38
|
-
systemProgram: TAccountMetas[2];
|
|
39
|
-
};
|
|
40
|
-
data: CloseBorrowerInstructionData;
|
|
41
|
-
};
|
|
42
|
-
export declare function parseCloseBorrowerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseBorrowerInstruction<TProgram, TAccountMetas>;
|
|
43
|
-
//# sourceMappingURL=closeBorrower.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"closeBorrower.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/instructions/closeBorrower.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,4BAA4B,yBAEvC,CAAC;AAEH,wBAAgB,kCAAkC,uBAIjD;AAED,MAAM,MAAM,wBAAwB,CAClC,QAAQ,SAAS,MAA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O NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun Codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
-
import { SRSLY_PROGRAM_ADDRESS } from "../programs";
|
|
10
|
-
export declare const DELETE_BORROWER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
-
export declare function getDeleteBorrowerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
-
export type DeleteBorrowerInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountAdmin extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountBorrower extends string | AccountMeta<string> = string, TAccountBorrowerState extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
-
TAccountAdmin extends string ? WritableSignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
|
|
14
|
-
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
15
|
-
TAccountBorrower extends string ? WritableAccount<TAccountBorrower> : TAccountBorrower,
|
|
16
|
-
TAccountBorrowerState extends string ? WritableAccount<TAccountBorrowerState> : TAccountBorrowerState,
|
|
17
|
-
...TRemainingAccounts
|
|
18
|
-
]>;
|
|
19
|
-
export type DeleteBorrowerInstructionData = {
|
|
20
|
-
discriminator: ReadonlyUint8Array;
|
|
21
|
-
};
|
|
22
|
-
export type DeleteBorrowerInstructionDataArgs = {};
|
|
23
|
-
export declare function getDeleteBorrowerInstructionDataEncoder(): FixedSizeEncoder<DeleteBorrowerInstructionDataArgs>;
|
|
24
|
-
export declare function getDeleteBorrowerInstructionDataDecoder(): FixedSizeDecoder<DeleteBorrowerInstructionData>;
|
|
25
|
-
export declare function getDeleteBorrowerInstructionDataCodec(): FixedSizeCodec<DeleteBorrowerInstructionDataArgs, DeleteBorrowerInstructionData>;
|
|
26
|
-
export type DeleteBorrowerAsyncInput<TAccountAdmin extends string = string, TAccountConfig extends string = string, TAccountBorrower extends string = string, TAccountBorrowerState extends string = string> = {
|
|
27
|
-
admin: TransactionSigner<TAccountAdmin>;
|
|
28
|
-
config?: Address<TAccountConfig>;
|
|
29
|
-
borrower: Address<TAccountBorrower>;
|
|
30
|
-
borrowerState?: Address<TAccountBorrowerState>;
|
|
31
|
-
};
|
|
32
|
-
export declare function getDeleteBorrowerInstructionAsync<TAccountAdmin extends string, TAccountConfig extends string, TAccountBorrower extends string, TAccountBorrowerState extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: DeleteBorrowerAsyncInput<TAccountAdmin, TAccountConfig, TAccountBorrower, TAccountBorrowerState>, config?: {
|
|
33
|
-
programAddress?: TProgramAddress;
|
|
34
|
-
}): Promise<DeleteBorrowerInstruction<TProgramAddress, TAccountAdmin, TAccountConfig, TAccountBorrower, TAccountBorrowerState>>;
|
|
35
|
-
export type DeleteBorrowerInput<TAccountAdmin extends string = string, TAccountConfig extends string = string, TAccountBorrower extends string = string, TAccountBorrowerState extends string = string> = {
|
|
36
|
-
admin: TransactionSigner<TAccountAdmin>;
|
|
37
|
-
config: Address<TAccountConfig>;
|
|
38
|
-
borrower: Address<TAccountBorrower>;
|
|
39
|
-
borrowerState: Address<TAccountBorrowerState>;
|
|
40
|
-
};
|
|
41
|
-
export declare function getDeleteBorrowerInstruction<TAccountAdmin extends string, TAccountConfig extends string, TAccountBorrower extends string, TAccountBorrowerState extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: DeleteBorrowerInput<TAccountAdmin, TAccountConfig, TAccountBorrower, TAccountBorrowerState>, config?: {
|
|
42
|
-
programAddress?: TProgramAddress;
|
|
43
|
-
}): DeleteBorrowerInstruction<TProgramAddress, TAccountAdmin, TAccountConfig, TAccountBorrower, TAccountBorrowerState>;
|
|
44
|
-
export type ParsedDeleteBorrowerInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
45
|
-
programAddress: Address<TProgram>;
|
|
46
|
-
accounts: {
|
|
47
|
-
admin: TAccountMetas[0];
|
|
48
|
-
config: TAccountMetas[1];
|
|
49
|
-
borrower: TAccountMetas[2];
|
|
50
|
-
borrowerState: TAccountMetas[3];
|
|
51
|
-
};
|
|
52
|
-
data: DeleteBorrowerInstructionData;
|
|
53
|
-
};
|
|
54
|
-
export declare function parseDeleteBorrowerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedDeleteBorrowerInstruction<TProgram, TAccountMetas>;
|
|
55
|
-
//# sourceMappingURL=deleteBorrower.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteBorrower.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/instructions/deleteBorrower.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE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the Codama library.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun Codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type Option, type OptionOrNullable, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
-
import { SRSLY_PROGRAM_ADDRESS } from "../programs";
|
|
10
|
-
export declare const DISCOUNT_BORROWER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
-
export declare function getDiscountBorrowerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
-
export type DiscountBorrowerInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountAdmin extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountBorrowerState extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
-
TAccountAdmin extends string ? WritableSignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
|
|
14
|
-
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
15
|
-
TAccountBorrowerState extends string ? WritableAccount<TAccountBorrowerState> : TAccountBorrowerState,
|
|
16
|
-
...TRemainingAccounts
|
|
17
|
-
]>;
|
|
18
|
-
export type DiscountBorrowerInstructionData = {
|
|
19
|
-
discriminator: ReadonlyUint8Array;
|
|
20
|
-
discountBps: Option<number>;
|
|
21
|
-
};
|
|
22
|
-
export type DiscountBorrowerInstructionDataArgs = {
|
|
23
|
-
discountBps: OptionOrNullable<number>;
|
|
24
|
-
};
|
|
25
|
-
export declare function getDiscountBorrowerInstructionDataEncoder(): Encoder<DiscountBorrowerInstructionDataArgs>;
|
|
26
|
-
export declare function getDiscountBorrowerInstructionDataDecoder(): Decoder<DiscountBorrowerInstructionData>;
|
|
27
|
-
export declare function getDiscountBorrowerInstructionDataCodec(): Codec<DiscountBorrowerInstructionDataArgs, DiscountBorrowerInstructionData>;
|
|
28
|
-
export type DiscountBorrowerAsyncInput<TAccountAdmin extends string = string, TAccountConfig extends string = string, TAccountBorrowerState extends string = string> = {
|
|
29
|
-
admin: TransactionSigner<TAccountAdmin>;
|
|
30
|
-
config?: Address<TAccountConfig>;
|
|
31
|
-
borrowerState: Address<TAccountBorrowerState>;
|
|
32
|
-
discountBps: DiscountBorrowerInstructionDataArgs["discountBps"];
|
|
33
|
-
};
|
|
34
|
-
export declare function getDiscountBorrowerInstructionAsync<TAccountAdmin extends string, TAccountConfig extends string, TAccountBorrowerState extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: DiscountBorrowerAsyncInput<TAccountAdmin, TAccountConfig, TAccountBorrowerState>, config?: {
|
|
35
|
-
programAddress?: TProgramAddress;
|
|
36
|
-
}): Promise<DiscountBorrowerInstruction<TProgramAddress, TAccountAdmin, TAccountConfig, TAccountBorrowerState>>;
|
|
37
|
-
export type DiscountBorrowerInput<TAccountAdmin extends string = string, TAccountConfig extends string = string, TAccountBorrowerState extends string = string> = {
|
|
38
|
-
admin: TransactionSigner<TAccountAdmin>;
|
|
39
|
-
config: Address<TAccountConfig>;
|
|
40
|
-
borrowerState: Address<TAccountBorrowerState>;
|
|
41
|
-
discountBps: DiscountBorrowerInstructionDataArgs["discountBps"];
|
|
42
|
-
};
|
|
43
|
-
export declare function getDiscountBorrowerInstruction<TAccountAdmin extends string, TAccountConfig extends string, TAccountBorrowerState extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: DiscountBorrowerInput<TAccountAdmin, TAccountConfig, TAccountBorrowerState>, config?: {
|
|
44
|
-
programAddress?: TProgramAddress;
|
|
45
|
-
}): DiscountBorrowerInstruction<TProgramAddress, TAccountAdmin, TAccountConfig, TAccountBorrowerState>;
|
|
46
|
-
export type ParsedDiscountBorrowerInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
47
|
-
programAddress: Address<TProgram>;
|
|
48
|
-
accounts: {
|
|
49
|
-
admin: TAccountMetas[0];
|
|
50
|
-
config: TAccountMetas[1];
|
|
51
|
-
borrowerState: TAccountMetas[2];
|
|
52
|
-
};
|
|
53
|
-
data: DiscountBorrowerInstructionData;
|
|
54
|
-
};
|
|
55
|
-
export declare function parseDiscountBorrowerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedDiscountBorrowerInstruction<TProgram, TAccountMetas>;
|
|
56
|
-
//# sourceMappingURL=discountBorrower.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discountBorrower.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/instructions/discountBorrower.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAcL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,+BAA+B,yBAE1C,CAAC;AAEH,wBAAgB,qCAAqC,uBAIpD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