@wuwei-labs/srsly 3.0.0-beta.14 → 3.0.0-beta.15
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/index.js +4 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/instructions/acceptRental.js +5 -15
- package/dist/cjs/instructions/acceptRental.js.map +1 -1
- package/dist/cjs/instructions/claimRental.js +5 -15
- package/dist/cjs/instructions/claimRental.js.map +1 -1
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/utils/discountAuth.js +19 -6
- package/dist/cjs/utils/discountAuth.js.map +1 -1
- package/dist/cjs/utils/index.js +2 -1
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/instructions/acceptRental.js +6 -16
- package/dist/esm/instructions/acceptRental.js.map +1 -1
- package/dist/esm/instructions/claimRental.js +6 -16
- package/dist/esm/instructions/claimRental.js.map +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/esm/utils/discountAuth.js +18 -6
- package/dist/esm/utils/discountAuth.js.map +1 -1
- package/dist/esm/utils/index.js +1 -1
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/codama/types/discountAuthorization.d.ts +3 -3
- package/dist/types/generated/codama/types/discountAuthorization.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/instructions/acceptRental.d.ts +2 -6
- package/dist/types/instructions/acceptRental.d.ts.map +1 -1
- package/dist/types/instructions/claimRental.d.ts +2 -6
- package/dist/types/instructions/claimRental.d.ts.map +1 -1
- package/dist/types/utils/discountAuth.d.ts +10 -0
- package/dist/types/utils/discountAuth.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/generated/codama/accounts/memberState.js +0 -78
- package/dist/cjs/generated/codama/accounts/memberState.js.map +0 -1
- package/dist/cjs/generated/codama/accounts/vaultState.js +0 -82
- package/dist/cjs/generated/codama/accounts/vaultState.js.map +0 -1
- package/dist/cjs/generated/codama/types/contractTerms.js +0 -35
- package/dist/cjs/generated/codama/types/contractTerms.js.map +0 -1
- package/dist/cjs/generated/codama/types/memberConfig.js +0 -33
- package/dist/cjs/generated/codama/types/memberConfig.js.map +0 -1
- package/dist/cjs/generated/codama/types/memberType.js +0 -57
- package/dist/cjs/generated/codama/types/memberType.js.map +0 -1
- package/dist/cjs/generated/codama/types/rebateAuthorization.js +0 -33
- package/dist/cjs/generated/codama/types/rebateAuthorization.js.map +0 -1
- package/dist/cjs/generated/codama/types/reservation.js +0 -32
- package/dist/cjs/generated/codama/types/reservation.js.map +0 -1
- package/dist/cjs/instructions/approveReferral.js +0 -11
- package/dist/cjs/instructions/approveReferral.js.map +0 -1
- package/dist/cjs/instructions/createReferral.js +0 -54
- package/dist/cjs/instructions/createReferral.js.map +0 -1
- package/dist/cjs/instructions/removeReferral.js +0 -11
- package/dist/cjs/instructions/removeReferral.js.map +0 -1
- package/dist/esm/generated/codama/accounts/memberState.js +0 -66
- package/dist/esm/generated/codama/accounts/memberState.js.map +0 -1
- package/dist/esm/generated/codama/accounts/vaultState.js +0 -70
- package/dist/esm/generated/codama/accounts/vaultState.js.map +0 -1
- package/dist/esm/generated/codama/types/contractTerms.js +0 -30
- package/dist/esm/generated/codama/types/contractTerms.js.map +0 -1
- package/dist/esm/generated/codama/types/memberConfig.js +0 -28
- package/dist/esm/generated/codama/types/memberConfig.js.map +0 -1
- package/dist/esm/generated/codama/types/memberType.js +0 -50
- package/dist/esm/generated/codama/types/memberType.js.map +0 -1
- package/dist/esm/generated/codama/types/rebateAuthorization.js +0 -28
- package/dist/esm/generated/codama/types/rebateAuthorization.js.map +0 -1
- package/dist/esm/generated/codama/types/reservation.js +0 -27
- package/dist/esm/generated/codama/types/reservation.js.map +0 -1
- package/dist/esm/instructions/approveReferral.js +0 -7
- package/dist/esm/instructions/approveReferral.js.map +0 -1
- package/dist/esm/instructions/createReferral.js +0 -51
- package/dist/esm/instructions/createReferral.js.map +0 -1
- package/dist/esm/instructions/removeReferral.js +0 -7
- package/dist/esm/instructions/removeReferral.js.map +0 -1
- package/dist/types/generated/codama/accounts/memberState.d.ts +0 -58
- package/dist/types/generated/codama/accounts/memberState.d.ts.map +0 -1
- package/dist/types/generated/codama/accounts/vaultState.d.ts +0 -66
- package/dist/types/generated/codama/accounts/vaultState.d.ts.map +0 -1
- package/dist/types/generated/codama/types/contractTerms.d.ts +0 -40
- package/dist/types/generated/codama/types/contractTerms.d.ts.map +0 -1
- package/dist/types/generated/codama/types/memberConfig.d.ts +0 -33
- package/dist/types/generated/codama/types/memberConfig.d.ts.map +0 -1
- package/dist/types/generated/codama/types/memberType.d.ts +0 -57
- package/dist/types/generated/codama/types/memberType.d.ts.map +0 -1
- package/dist/types/generated/codama/types/rebateAuthorization.d.ts +0 -36
- package/dist/types/generated/codama/types/rebateAuthorization.d.ts.map +0 -1
- package/dist/types/generated/codama/types/reservation.d.ts +0 -33
- package/dist/types/generated/codama/types/reservation.d.ts.map +0 -1
- package/dist/types/instructions/approveReferral.d.ts +0 -7
- package/dist/types/instructions/approveReferral.d.ts.map +0 -1
- package/dist/types/instructions/createReferral.d.ts +0 -59
- package/dist/types/instructions/createReferral.d.ts.map +0 -1
- package/dist/types/instructions/removeReferral.d.ts +0 -7
- package/dist/types/instructions/removeReferral.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vaultState.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/accounts/vaultState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAoBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,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AsB,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"}
|
|
@@ -1,40 +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 Codec, type Decoder, type Encoder } from '@solana/kit';
|
|
9
|
-
/**
|
|
10
|
-
* Contract terms that define rental pricing and constraints.
|
|
11
|
-
* Single source of truth - used in ContractState, Reservation, and instruction validation.
|
|
12
|
-
*/
|
|
13
|
-
export type ContractTerms = {
|
|
14
|
-
/** Rental rate per payment period in Stardust */
|
|
15
|
-
rate: bigint;
|
|
16
|
-
/** Minimum rental duration in seconds */
|
|
17
|
-
durationMinSeconds: bigint;
|
|
18
|
-
/** Maximum rental duration in seconds */
|
|
19
|
-
durationMaxSeconds: bigint;
|
|
20
|
-
/** Payment frequency string (@hourly, @daily, etc.) */
|
|
21
|
-
paymentsFreq: string;
|
|
22
|
-
/** Minimum cancellation delay in seconds */
|
|
23
|
-
cancelDelayMin: bigint;
|
|
24
|
-
};
|
|
25
|
-
export type ContractTermsArgs = {
|
|
26
|
-
/** Rental rate per payment period in Stardust */
|
|
27
|
-
rate: number | bigint;
|
|
28
|
-
/** Minimum rental duration in seconds */
|
|
29
|
-
durationMinSeconds: number | bigint;
|
|
30
|
-
/** Maximum rental duration in seconds */
|
|
31
|
-
durationMaxSeconds: number | bigint;
|
|
32
|
-
/** Payment frequency string (@hourly, @daily, etc.) */
|
|
33
|
-
paymentsFreq: string;
|
|
34
|
-
/** Minimum cancellation delay in seconds */
|
|
35
|
-
cancelDelayMin: number | bigint;
|
|
36
|
-
};
|
|
37
|
-
export declare function getContractTermsEncoder(): Encoder<ContractTermsArgs>;
|
|
38
|
-
export declare function getContractTermsDecoder(): Decoder<ContractTerms>;
|
|
39
|
-
export declare function getContractTermsCodec(): Codec<ContractTermsArgs, ContractTerms>;
|
|
40
|
-
//# sourceMappingURL=contractTerms.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contractTerms.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/contractTerms.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACb,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,iDAAiD;IACjD,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,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,iDAAiD;IACjD,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,yCAAyC;IACzC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,yCAAyC;IACzC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,uDAAuD;IACvD,YAAY,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAQpE;AAED,wBAAgB,uBAAuB,IAAI,OAAO,CAAC,aAAa,CAAC,CAQhE;AAED,wBAAgB,qBAAqB,IAAI,KAAK,CAC5C,iBAAiB,EACjB,aAAa,CACd,CAEA"}
|
|
@@ -1,33 +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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
-
/** Member configuration with distribution percentage */
|
|
10
|
-
export type MemberConfig = {
|
|
11
|
-
/** Member's nonce (derives MemberState PDA) */
|
|
12
|
-
nonce: number;
|
|
13
|
-
/** Authority who controls this member slot (for authorization validation) */
|
|
14
|
-
authority: Address;
|
|
15
|
-
/** Distribution percentage in basis points (10000 = 100%) */
|
|
16
|
-
percentageBps: number;
|
|
17
|
-
/** Accumulated claimable balance for this member */
|
|
18
|
-
claimableBalance: bigint;
|
|
19
|
-
};
|
|
20
|
-
export type MemberConfigArgs = {
|
|
21
|
-
/** Member's nonce (derives MemberState PDA) */
|
|
22
|
-
nonce: number;
|
|
23
|
-
/** Authority who controls this member slot (for authorization validation) */
|
|
24
|
-
authority: Address;
|
|
25
|
-
/** Distribution percentage in basis points (10000 = 100%) */
|
|
26
|
-
percentageBps: number;
|
|
27
|
-
/** Accumulated claimable balance for this member */
|
|
28
|
-
claimableBalance: number | bigint;
|
|
29
|
-
};
|
|
30
|
-
export declare function getMemberConfigEncoder(): FixedSizeEncoder<MemberConfigArgs>;
|
|
31
|
-
export declare function getMemberConfigDecoder(): FixedSizeDecoder<MemberConfig>;
|
|
32
|
-
export declare function getMemberConfigCodec(): FixedSizeCodec<MemberConfigArgs, MemberConfig>;
|
|
33
|
-
//# sourceMappingURL=memberConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memberConfig.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/memberConfig.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAUL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,wDAAwD;AACxD,MAAM,MAAM,YAAY,GAAG;IACzB,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,SAAS,EAAE,OAAO,CAAC;IACnB,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,SAAS,EAAE,OAAO,CAAC;IACnB,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAC;CACnC,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,gBAAgB,CAAC,gBAAgB,CAAC,CAO3E;AAED,wBAAgB,sBAAsB,IAAI,gBAAgB,CAAC,YAAY,CAAC,CAOvE;AAED,wBAAgB,oBAAoB,IAAI,cAAc,CACpD,gBAAgB,EAChB,YAAY,CACb,CAEA"}
|
|
@@ -1,57 +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 Codec, type Decoder, type Encoder, type GetDiscriminatedUnionVariant, type GetDiscriminatedUnionVariantContent } from '@solana/kit';
|
|
9
|
-
/** Member type discriminator */
|
|
10
|
-
export type MemberType = {
|
|
11
|
-
__kind: 'Normal';
|
|
12
|
-
/** Whether this member allows shares */
|
|
13
|
-
shareEnabled: boolean;
|
|
14
|
-
} | {
|
|
15
|
-
__kind: 'Share';
|
|
16
|
-
/** Parent member nonce that this share belongs to */
|
|
17
|
-
parentMemberNonce: number;
|
|
18
|
-
/** Distribution percentage in basis points (10000 = 100%) */
|
|
19
|
-
percentageBps: number;
|
|
20
|
-
/** Accumulated claimable balance for this share */
|
|
21
|
-
claimableBalance: bigint;
|
|
22
|
-
/** Whether this share is active (approved by parent) */
|
|
23
|
-
isActive: boolean;
|
|
24
|
-
} | {
|
|
25
|
-
__kind: 'Rebate';
|
|
26
|
-
/** Accumulated claimable rebate balance */
|
|
27
|
-
claimableBalance: bigint;
|
|
28
|
-
};
|
|
29
|
-
export type MemberTypeArgs = {
|
|
30
|
-
__kind: 'Normal';
|
|
31
|
-
/** Whether this member allows shares */
|
|
32
|
-
shareEnabled: boolean;
|
|
33
|
-
} | {
|
|
34
|
-
__kind: 'Share';
|
|
35
|
-
/** Parent member nonce that this share belongs to */
|
|
36
|
-
parentMemberNonce: number;
|
|
37
|
-
/** Distribution percentage in basis points (10000 = 100%) */
|
|
38
|
-
percentageBps: number;
|
|
39
|
-
/** Accumulated claimable balance for this share */
|
|
40
|
-
claimableBalance: number | bigint;
|
|
41
|
-
/** Whether this share is active (approved by parent) */
|
|
42
|
-
isActive: boolean;
|
|
43
|
-
} | {
|
|
44
|
-
__kind: 'Rebate';
|
|
45
|
-
/** Accumulated claimable rebate balance */
|
|
46
|
-
claimableBalance: number | bigint;
|
|
47
|
-
};
|
|
48
|
-
export declare function getMemberTypeEncoder(): Encoder<MemberTypeArgs>;
|
|
49
|
-
export declare function getMemberTypeDecoder(): Decoder<MemberType>;
|
|
50
|
-
export declare function getMemberTypeCodec(): Codec<MemberTypeArgs, MemberType>;
|
|
51
|
-
export declare function memberType(kind: 'Normal', data: GetDiscriminatedUnionVariantContent<MemberTypeArgs, '__kind', 'Normal'>): GetDiscriminatedUnionVariant<MemberTypeArgs, '__kind', 'Normal'>;
|
|
52
|
-
export declare function memberType(kind: 'Share', data: GetDiscriminatedUnionVariantContent<MemberTypeArgs, '__kind', 'Share'>): GetDiscriminatedUnionVariant<MemberTypeArgs, '__kind', 'Share'>;
|
|
53
|
-
export declare function memberType(kind: 'Rebate', data: GetDiscriminatedUnionVariantContent<MemberTypeArgs, '__kind', 'Rebate'>): GetDiscriminatedUnionVariant<MemberTypeArgs, '__kind', 'Rebate'>;
|
|
54
|
-
export declare function isMemberType<K extends MemberType['__kind']>(kind: K, value: MemberType): value is MemberType & {
|
|
55
|
-
__kind: K;
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=memberType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memberType.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/memberType.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,4BAA4B,EACjC,KAAK,mCAAmC,EACzC,MAAM,aAAa,CAAC;AAErB,gCAAgC;AAChC,MAAM,MAAM,UAAU,GAClB;IACE,MAAM,EAAE,QAAQ,CAAC;IACjB,wCAAwC;IACxC,YAAY,EAAE,OAAO,CAAC;CACvB,GACD;IACE,MAAM,EAAE,OAAO,CAAC;IAChB,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,gBAAgB,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E,mCAAmC,CAAC,cAAc,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAC5E,4BAA4B,CAAC,cAAc,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAUpE,wBAAgB,YAAY,CAAC,CAAC,SAAS,UAAU,CAAC,QAAQ,CAAC,EACzD,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,UAAU,GAChB,KAAK,IAAI,UAAU,GAAG;IAAE,MAAM,EAAE,CAAC,CAAA;CAAE,CAErC"}
|
|
@@ -1,36 +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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
-
/**
|
|
10
|
-
* Rebate authorization signed by a member or share
|
|
11
|
-
* Rebate recipient is always the depositor (derived from context)
|
|
12
|
-
*/
|
|
13
|
-
export type RebateAuthorization = {
|
|
14
|
-
/** Member or Share nonce (signer) */
|
|
15
|
-
memberNonce: number;
|
|
16
|
-
/** Rebate percentage in basis points (10000 = 100% of signer's allocation) */
|
|
17
|
-
rebateBps: number;
|
|
18
|
-
/** Slot after which this authorization expires */
|
|
19
|
-
expirySlot: bigint;
|
|
20
|
-
/** Ed25519 signature of the authorization message */
|
|
21
|
-
signature: ReadonlyUint8Array;
|
|
22
|
-
};
|
|
23
|
-
export type RebateAuthorizationArgs = {
|
|
24
|
-
/** Member or Share nonce (signer) */
|
|
25
|
-
memberNonce: number;
|
|
26
|
-
/** Rebate percentage in basis points (10000 = 100% of signer's allocation) */
|
|
27
|
-
rebateBps: number;
|
|
28
|
-
/** Slot after which this authorization expires */
|
|
29
|
-
expirySlot: number | bigint;
|
|
30
|
-
/** Ed25519 signature of the authorization message */
|
|
31
|
-
signature: ReadonlyUint8Array;
|
|
32
|
-
};
|
|
33
|
-
export declare function getRebateAuthorizationEncoder(): FixedSizeEncoder<RebateAuthorizationArgs>;
|
|
34
|
-
export declare function getRebateAuthorizationDecoder(): FixedSizeDecoder<RebateAuthorization>;
|
|
35
|
-
export declare function getRebateAuthorizationCodec(): FixedSizeCodec<RebateAuthorizationArgs, RebateAuthorization>;
|
|
36
|
-
//# sourceMappingURL=rebateAuthorization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rebateAuthorization.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/rebateAuthorization.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAcL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,qCAAqC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,SAAS,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,SAAS,EAAE,kBAAkB,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,qCAAqC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,SAAS,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,qDAAqD;IACrD,SAAS,EAAE,kBAAkB,CAAC;CAC/B,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,gBAAgB,CAAC,uBAAuB,CAAC,CAOzF;AAED,wBAAgB,6BAA6B,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,CAOrF;AAED,wBAAgB,2BAA2B,IAAI,cAAc,CAC3D,uBAAuB,EACvB,mBAAmB,CACpB,CAKA"}
|
|
@@ -1,33 +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 Address, type Codec, type Decoder, type Encoder } from '@solana/kit';
|
|
9
|
-
import { type ContractTerms, type ContractTermsArgs } from '.';
|
|
10
|
-
/**
|
|
11
|
-
* Reservation data including locked contract terms.
|
|
12
|
-
* Holder info, expiry, and locked terms. Bid amounts stay separate for easier querying.
|
|
13
|
-
*/
|
|
14
|
-
export type Reservation = {
|
|
15
|
-
/** BorrowerState currently holding the reservation */
|
|
16
|
-
holder: Address;
|
|
17
|
-
/** When exclusive reservation window expires */
|
|
18
|
-
expiresAt: bigint;
|
|
19
|
-
/** Contract terms locked at reservation time */
|
|
20
|
-
lockedTerms: ContractTerms;
|
|
21
|
-
};
|
|
22
|
-
export type ReservationArgs = {
|
|
23
|
-
/** BorrowerState currently holding the reservation */
|
|
24
|
-
holder: Address;
|
|
25
|
-
/** When exclusive reservation window expires */
|
|
26
|
-
expiresAt: number | bigint;
|
|
27
|
-
/** Contract terms locked at reservation time */
|
|
28
|
-
lockedTerms: ContractTermsArgs;
|
|
29
|
-
};
|
|
30
|
-
export declare function getReservationEncoder(): Encoder<ReservationArgs>;
|
|
31
|
-
export declare function getReservationDecoder(): Decoder<Reservation>;
|
|
32
|
-
export declare function getReservationCodec(): Codec<ReservationArgs, Reservation>;
|
|
33
|
-
//# sourceMappingURL=reservation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reservation.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/reservation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,GAAG,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,sDAAsD;IACtD,MAAM,EAAE,OAAO,CAAC;IAChB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,WAAW,EAAE,aAAa,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,sDAAsD;IACtD,MAAM,EAAE,OAAO,CAAC;IAChB,gDAAgD;IAChD,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,gDAAgD;IAChD,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,eAAe,CAAC,CAMhE;AAED,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC,CAM5D;AAED,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,eAAe,EAAE,WAAW,CAAC,CAEzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approveReferral.d.ts","sourceRoot":"","sources":["../../../src/instructions/approveReferral.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EACf,KAAK,qBAAqB,GAC3B,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @purpose Create a pending referral (Share member) for SRSLY vault
|
|
3
|
-
*
|
|
4
|
-
* Wraps slyvault's initMember instruction with Share type pre-configured.
|
|
5
|
-
* Uses "referral" terminology for SRSLY context.
|
|
6
|
-
*/
|
|
7
|
-
import { type Address } from '@solana/kit';
|
|
8
|
-
import { type InstructionResult } from '@wuwei-labs/slyvault';
|
|
9
|
-
import { type UniversalSigner } from '../utils/signer';
|
|
10
|
-
/**
|
|
11
|
-
* Parameters for creating a referral
|
|
12
|
-
*/
|
|
13
|
-
export interface CreateReferralParams {
|
|
14
|
-
/**
|
|
15
|
-
* Member authority who will control this referral
|
|
16
|
-
* Accepts string address, web3.js Keypair, or @solana/kit signer
|
|
17
|
-
*/
|
|
18
|
-
member: UniversalSigner;
|
|
19
|
-
/**
|
|
20
|
-
* Vault address to create referral for
|
|
21
|
-
*/
|
|
22
|
-
vault: Address | string;
|
|
23
|
-
/**
|
|
24
|
-
* Parent member's nonce in the vault
|
|
25
|
-
*/
|
|
26
|
-
parentMemberNonce: number;
|
|
27
|
-
/**
|
|
28
|
-
* Optional nonce for the referral slot.
|
|
29
|
-
* If not provided, uses vault.nextMemberNonce automatically.
|
|
30
|
-
*/
|
|
31
|
-
nonce?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Optional compute units to allocate for the transaction
|
|
34
|
-
*/
|
|
35
|
-
computeUnits?: number;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Create a pending referral (Share member)
|
|
39
|
-
*
|
|
40
|
-
* Creates a new Share member state that references a parent Normal member.
|
|
41
|
-
* The referral must be approved by the parent member's authority using approveReferral.
|
|
42
|
-
*
|
|
43
|
-
* @param params - Referral creation parameters
|
|
44
|
-
* @returns Prepared instruction(s)
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```typescript
|
|
48
|
-
* import { createReferral } from '@wuwei-labs/srsly';
|
|
49
|
-
*
|
|
50
|
-
* // Create referral referencing parent member at nonce 0
|
|
51
|
-
* const ix = await createReferral({
|
|
52
|
-
* member: wallet,
|
|
53
|
-
* vault: vaultAddress,
|
|
54
|
-
* parentMemberNonce: 0
|
|
55
|
-
* });
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
export declare function createReferral(params: CreateReferralParams): Promise<InstructionResult>;
|
|
59
|
-
//# sourceMappingURL=createReferral.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createReferral.d.ts","sourceRoot":"","sources":["../../../src/instructions/createReferral.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,MAAM,EAAE,eAAe,CAAC;IAExB;;OAEG;IACH,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;IAExB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,iBAAiB,CAAC,CAmB5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"removeReferral.d.ts","sourceRoot":"","sources":["../../../src/instructions/removeReferral.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,KAAK,oBAAoB,GAC1B,MAAM,sBAAsB,CAAC"}
|