@wuwei-labs/srsly 3.0.0-beta.2 → 3.0.0-beta.4
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/demos.js +30 -1
- package/dist/cjs/demos.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/borrowerState.js +0 -3
- package/dist/cjs/generated/codama/accounts/borrowerState.js.map +1 -1
- package/dist/cjs/generated/codama/accounts/contractState.js +2 -0
- package/dist/cjs/generated/codama/accounts/contractState.js.map +1 -1
- package/dist/cjs/generated/codama/errors/srsly.js +3 -6
- package/dist/cjs/generated/codama/errors/srsly.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/index.js +1 -0
- package/dist/cjs/generated/codama/instructions/index.js.map +1 -1
- package/dist/cjs/generated/codama/instructions/setDelegate.js +79 -0
- package/dist/cjs/generated/codama/instructions/setDelegate.js.map +1 -0
- package/dist/cjs/generated/codama/instructions/updateContract.js +5 -5
- package/dist/cjs/generated/codama/instructions/updateContract.js.map +1 -1
- package/dist/cjs/generated/codama/programs/srsly.js +7 -3
- package/dist/cjs/generated/codama/programs/srsly.js.map +1 -1
- package/dist/cjs/generated/codama/types/atlasClaimed.js +33 -0
- package/dist/cjs/generated/codama/types/atlasClaimed.js.map +1 -0
- package/dist/cjs/generated/codama/types/borrowerDiscountSet.js +29 -0
- package/dist/cjs/generated/codama/types/borrowerDiscountSet.js.map +1 -0
- package/dist/cjs/generated/codama/types/borrowerInitialized.js +29 -0
- package/dist/cjs/generated/codama/types/borrowerInitialized.js.map +1 -0
- package/dist/cjs/generated/codama/types/contractClosed.js +31 -0
- package/dist/cjs/generated/codama/types/contractClosed.js.map +1 -0
- package/dist/cjs/generated/codama/types/contractCreated.js +33 -0
- package/dist/cjs/generated/codama/types/contractCreated.js.map +1 -0
- package/dist/cjs/generated/codama/types/contractDelegateSet.js +31 -0
- package/dist/cjs/generated/codama/types/contractDelegateSet.js.map +1 -0
- package/dist/cjs/generated/codama/types/contractUpdated.js +29 -0
- package/dist/cjs/generated/codama/types/contractUpdated.js.map +1 -0
- package/dist/cjs/generated/codama/types/index.js +13 -1
- package/dist/cjs/generated/codama/types/index.js.map +1 -1
- package/dist/cjs/generated/codama/types/rentalAccepted.js +43 -0
- package/dist/cjs/generated/codama/types/rentalAccepted.js.map +1 -0
- package/dist/cjs/generated/codama/types/rentalCancelled.js +35 -0
- package/dist/cjs/generated/codama/types/rentalCancelled.js.map +1 -0
- package/dist/cjs/generated/codama/types/rentalClosed.js +33 -0
- package/dist/cjs/generated/codama/types/rentalClosed.js.map +1 -0
- package/dist/cjs/generated/codama/types/rentalPaymentProcessed.js +33 -0
- package/dist/cjs/generated/codama/types/rentalPaymentProcessed.js.map +1 -0
- package/dist/cjs/generated/codama/types/reservationCreated.js +35 -0
- package/dist/cjs/generated/codama/types/reservationCreated.js.map +1 -0
- package/dist/cjs/generated/codama/types/reservationKnockoff.js +35 -0
- package/dist/cjs/generated/codama/types/reservationKnockoff.js.map +1 -0
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/instructions/setDelegate.js +72 -0
- package/dist/cjs/instructions/setDelegate.js.map +1 -0
- package/dist/cjs/instructions/updateContract.js +2 -1
- package/dist/cjs/instructions/updateContract.js.map +1 -1
- package/dist/cjs/package.json +4 -3
- package/dist/cjs/version.js +1 -1
- package/dist/esm/demos.js +29 -0
- package/dist/esm/demos.js.map +1 -1
- package/dist/esm/generated/codama/accounts/borrowerState.js +0 -3
- package/dist/esm/generated/codama/accounts/borrowerState.js.map +1 -1
- package/dist/esm/generated/codama/accounts/contractState.js +2 -0
- package/dist/esm/generated/codama/accounts/contractState.js.map +1 -1
- package/dist/esm/generated/codama/errors/srsly.js +2 -5
- package/dist/esm/generated/codama/errors/srsly.js.map +1 -1
- package/dist/esm/generated/codama/instructions/index.js +1 -0
- package/dist/esm/generated/codama/instructions/index.js.map +1 -1
- package/dist/esm/generated/codama/instructions/setDelegate.js +70 -0
- package/dist/esm/generated/codama/instructions/setDelegate.js.map +1 -0
- package/dist/esm/generated/codama/instructions/updateContract.js +5 -5
- package/dist/esm/generated/codama/instructions/updateContract.js.map +1 -1
- package/dist/esm/generated/codama/programs/srsly.js +7 -3
- package/dist/esm/generated/codama/programs/srsly.js.map +1 -1
- package/dist/esm/generated/codama/types/atlasClaimed.js +28 -0
- package/dist/esm/generated/codama/types/atlasClaimed.js.map +1 -0
- package/dist/esm/generated/codama/types/borrowerDiscountSet.js +24 -0
- package/dist/esm/generated/codama/types/borrowerDiscountSet.js.map +1 -0
- package/dist/esm/generated/codama/types/borrowerInitialized.js +24 -0
- package/dist/esm/generated/codama/types/borrowerInitialized.js.map +1 -0
- package/dist/esm/generated/codama/types/contractClosed.js +26 -0
- package/dist/esm/generated/codama/types/contractClosed.js.map +1 -0
- package/dist/esm/generated/codama/types/contractCreated.js +28 -0
- package/dist/esm/generated/codama/types/contractCreated.js.map +1 -0
- package/dist/esm/generated/codama/types/contractDelegateSet.js +26 -0
- package/dist/esm/generated/codama/types/contractDelegateSet.js.map +1 -0
- package/dist/esm/generated/codama/types/contractUpdated.js +24 -0
- package/dist/esm/generated/codama/types/contractUpdated.js.map +1 -0
- package/dist/esm/generated/codama/types/index.js +13 -1
- package/dist/esm/generated/codama/types/index.js.map +1 -1
- package/dist/esm/generated/codama/types/rentalAccepted.js +38 -0
- package/dist/esm/generated/codama/types/rentalAccepted.js.map +1 -0
- package/dist/esm/generated/codama/types/rentalCancelled.js +30 -0
- package/dist/esm/generated/codama/types/rentalCancelled.js.map +1 -0
- package/dist/esm/generated/codama/types/rentalClosed.js +28 -0
- package/dist/esm/generated/codama/types/rentalClosed.js.map +1 -0
- package/dist/esm/generated/codama/types/rentalPaymentProcessed.js +28 -0
- package/dist/esm/generated/codama/types/rentalPaymentProcessed.js.map +1 -0
- package/dist/esm/generated/codama/types/reservationCreated.js +30 -0
- package/dist/esm/generated/codama/types/reservationCreated.js.map +1 -0
- package/dist/esm/generated/codama/types/reservationKnockoff.js +30 -0
- package/dist/esm/generated/codama/types/reservationKnockoff.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/instructions/setDelegate.js +69 -0
- package/dist/esm/instructions/setDelegate.js.map +1 -0
- package/dist/esm/instructions/updateContract.js +2 -1
- package/dist/esm/instructions/updateContract.js.map +1 -1
- package/dist/esm/package.json +4 -3
- package/dist/esm/version.js +1 -1
- package/dist/idl/srsly.json +6129 -0
- package/dist/types/demos.d.ts +4 -0
- package/dist/types/demos.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/borrowerState.d.ts +0 -11
- package/dist/types/generated/codama/accounts/borrowerState.d.ts.map +1 -1
- package/dist/types/generated/codama/accounts/contractState.d.ts +10 -0
- package/dist/types/generated/codama/accounts/contractState.d.ts.map +1 -1
- package/dist/types/generated/codama/errors/srsly.d.ts +3 -5
- package/dist/types/generated/codama/errors/srsly.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/index.d.ts +1 -0
- package/dist/types/generated/codama/instructions/index.d.ts.map +1 -1
- package/dist/types/generated/codama/instructions/setDelegate.d.ts +44 -0
- package/dist/types/generated/codama/instructions/setDelegate.d.ts.map +1 -0
- package/dist/types/generated/codama/instructions/updateContract.d.ts +11 -11
- package/dist/types/generated/codama/instructions/updateContract.d.ts.map +1 -1
- package/dist/types/generated/codama/programs/srsly.d.ts +7 -4
- package/dist/types/generated/codama/programs/srsly.d.ts.map +1 -1
- package/dist/types/generated/codama/types/atlasClaimed.d.ts +24 -0
- package/dist/types/generated/codama/types/atlasClaimed.d.ts.map +1 -0
- package/dist/types/generated/codama/types/borrowerDiscountSet.d.ts +20 -0
- package/dist/types/generated/codama/types/borrowerDiscountSet.d.ts.map +1 -0
- package/dist/types/generated/codama/types/borrowerInitialized.d.ts +17 -0
- package/dist/types/generated/codama/types/borrowerInitialized.d.ts.map +1 -0
- package/dist/types/generated/codama/types/contractClosed.d.ts +18 -0
- package/dist/types/generated/codama/types/contractClosed.d.ts.map +1 -0
- package/dist/types/generated/codama/types/contractCreated.d.ts +24 -0
- package/dist/types/generated/codama/types/contractCreated.d.ts.map +1 -0
- package/dist/types/generated/codama/types/contractDelegateSet.d.ts +22 -0
- package/dist/types/generated/codama/types/contractDelegateSet.d.ts.map +1 -0
- package/dist/types/generated/codama/types/contractUpdated.d.ts +17 -0
- package/dist/types/generated/codama/types/contractUpdated.d.ts.map +1 -0
- package/dist/types/generated/codama/types/index.d.ts +13 -1
- package/dist/types/generated/codama/types/index.d.ts.map +1 -1
- package/dist/types/generated/codama/types/rentalAccepted.d.ts +34 -0
- package/dist/types/generated/codama/types/rentalAccepted.d.ts.map +1 -0
- package/dist/types/generated/codama/types/rentalCancelled.d.ts +26 -0
- package/dist/types/generated/codama/types/rentalCancelled.d.ts.map +1 -0
- package/dist/types/generated/codama/types/rentalClosed.d.ts +19 -0
- package/dist/types/generated/codama/types/rentalClosed.d.ts.map +1 -0
- package/dist/types/generated/codama/types/rentalPaymentProcessed.d.ts +24 -0
- package/dist/types/generated/codama/types/rentalPaymentProcessed.d.ts.map +1 -0
- package/dist/types/generated/codama/types/reservationCreated.d.ts +26 -0
- package/dist/types/generated/codama/types/reservationCreated.d.ts.map +1 -0
- package/dist/types/generated/codama/types/reservationKnockoff.d.ts +26 -0
- package/dist/types/generated/codama/types/reservationKnockoff.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/instructions/setDelegate.d.ts +63 -0
- package/dist/types/instructions/setDelegate.d.ts.map +1 -0
- package/dist/types/instructions/updateContract.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type RentalAccepted = {
|
|
10
|
+
rentalState: Address;
|
|
11
|
+
contract: Address;
|
|
12
|
+
borrower: Address;
|
|
13
|
+
fleet: Address;
|
|
14
|
+
durationSeconds: bigint;
|
|
15
|
+
escrowAmount: bigint;
|
|
16
|
+
serviceFee: bigint;
|
|
17
|
+
startTime: bigint;
|
|
18
|
+
endTime: bigint;
|
|
19
|
+
};
|
|
20
|
+
export type RentalAcceptedArgs = {
|
|
21
|
+
rentalState: Address;
|
|
22
|
+
contract: Address;
|
|
23
|
+
borrower: Address;
|
|
24
|
+
fleet: Address;
|
|
25
|
+
durationSeconds: number | bigint;
|
|
26
|
+
escrowAmount: number | bigint;
|
|
27
|
+
serviceFee: number | bigint;
|
|
28
|
+
startTime: number | bigint;
|
|
29
|
+
endTime: number | bigint;
|
|
30
|
+
};
|
|
31
|
+
export declare function getRentalAcceptedEncoder(): FixedSizeEncoder<RentalAcceptedArgs>;
|
|
32
|
+
export declare function getRentalAcceptedDecoder(): FixedSizeDecoder<RentalAccepted>;
|
|
33
|
+
export declare function getRentalAcceptedCodec(): FixedSizeCodec<RentalAcceptedArgs, RentalAccepted>;
|
|
34
|
+
//# sourceMappingURL=rentalAccepted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rentalAccepted.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/rentalAccepted.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAUL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,gBAAgB,CAAC,kBAAkB,CAAC,CAY/E;AAED,wBAAgB,wBAAwB,IAAI,gBAAgB,CAAC,cAAc,CAAC,CAY3E;AAED,wBAAgB,sBAAsB,IAAI,cAAc,CACtD,kBAAkB,EAClB,cAAc,CACf,CAEA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
export type RentalCancelled = {
|
|
10
|
+
rentalState: Address;
|
|
11
|
+
contract: Address;
|
|
12
|
+
borrower: Address;
|
|
13
|
+
refundAmount: bigint;
|
|
14
|
+
newEndTime: bigint;
|
|
15
|
+
};
|
|
16
|
+
export type RentalCancelledArgs = {
|
|
17
|
+
rentalState: Address;
|
|
18
|
+
contract: Address;
|
|
19
|
+
borrower: Address;
|
|
20
|
+
refundAmount: number | bigint;
|
|
21
|
+
newEndTime: number | bigint;
|
|
22
|
+
};
|
|
23
|
+
export declare function getRentalCancelledEncoder(): FixedSizeEncoder<RentalCancelledArgs>;
|
|
24
|
+
export declare function getRentalCancelledDecoder(): FixedSizeDecoder<RentalCancelled>;
|
|
25
|
+
export declare function getRentalCancelledCodec(): FixedSizeCodec<RentalCancelledArgs, RentalCancelled>;
|
|
26
|
+
//# sourceMappingURL=rentalCancelled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rentalCancelled.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/rentalCancelled.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAUL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,CAQjF;AAED,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,eAAe,CAAC,CAQ7E;AAED,wBAAgB,uBAAuB,IAAI,cAAc,CACvD,mBAAmB,EACnB,eAAe,CAChB,CAEA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export type RentalClosed = {
|
|
10
|
+
rentalState: Address;
|
|
11
|
+
contract: Address;
|
|
12
|
+
borrower: Address;
|
|
13
|
+
pointsAwarded: number;
|
|
14
|
+
};
|
|
15
|
+
export type RentalClosedArgs = RentalClosed;
|
|
16
|
+
export declare function getRentalClosedEncoder(): FixedSizeEncoder<RentalClosedArgs>;
|
|
17
|
+
export declare function getRentalClosedDecoder(): FixedSizeDecoder<RentalClosed>;
|
|
18
|
+
export declare function getRentalClosedCodec(): FixedSizeCodec<RentalClosedArgs, RentalClosed>;
|
|
19
|
+
//# sourceMappingURL=rentalClosed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rentalClosed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/rentalClosed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE5C,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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export type RentalPaymentProcessed = {
|
|
10
|
+
rentalState: Address;
|
|
11
|
+
contract: Address;
|
|
12
|
+
paymentAmount: bigint;
|
|
13
|
+
isFinal: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type RentalPaymentProcessedArgs = {
|
|
16
|
+
rentalState: Address;
|
|
17
|
+
contract: Address;
|
|
18
|
+
paymentAmount: number | bigint;
|
|
19
|
+
isFinal: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare function getRentalPaymentProcessedEncoder(): FixedSizeEncoder<RentalPaymentProcessedArgs>;
|
|
22
|
+
export declare function getRentalPaymentProcessedDecoder(): FixedSizeDecoder<RentalPaymentProcessed>;
|
|
23
|
+
export declare function getRentalPaymentProcessedCodec(): FixedSizeCodec<RentalPaymentProcessedArgs, RentalPaymentProcessed>;
|
|
24
|
+
//# sourceMappingURL=rentalPaymentProcessed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rentalPaymentProcessed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/rentalPaymentProcessed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAUL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,gBAAgB,CAAC,0BAA0B,CAAC,CAO/F;AAED,wBAAgB,gCAAgC,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAO3F;AAED,wBAAgB,8BAA8B,IAAI,cAAc,CAC9D,0BAA0B,EAC1B,sBAAsB,CACvB,CAKA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
export type ReservationCreated = {
|
|
10
|
+
contract: Address;
|
|
11
|
+
challenger: Address;
|
|
12
|
+
bidAmount: bigint;
|
|
13
|
+
bidType: number;
|
|
14
|
+
expiresAt: bigint;
|
|
15
|
+
};
|
|
16
|
+
export type ReservationCreatedArgs = {
|
|
17
|
+
contract: Address;
|
|
18
|
+
challenger: Address;
|
|
19
|
+
bidAmount: number | bigint;
|
|
20
|
+
bidType: number;
|
|
21
|
+
expiresAt: number | bigint;
|
|
22
|
+
};
|
|
23
|
+
export declare function getReservationCreatedEncoder(): FixedSizeEncoder<ReservationCreatedArgs>;
|
|
24
|
+
export declare function getReservationCreatedDecoder(): FixedSizeDecoder<ReservationCreated>;
|
|
25
|
+
export declare function getReservationCreatedCodec(): FixedSizeCodec<ReservationCreatedArgs, ReservationCreated>;
|
|
26
|
+
//# sourceMappingURL=reservationCreated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservationCreated.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/reservationCreated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAQvF;AAED,wBAAgB,4BAA4B,IAAI,gBAAgB,CAAC,kBAAkB,CAAC,CAQnF;AAED,wBAAgB,0BAA0B,IAAI,cAAc,CAC1D,sBAAsB,EACtB,kBAAkB,CACnB,CAKA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
export type ReservationKnockoff = {
|
|
10
|
+
contract: Address;
|
|
11
|
+
defender: Address;
|
|
12
|
+
challenger: Address;
|
|
13
|
+
defenderRefund: bigint;
|
|
14
|
+
defenderBonus: bigint;
|
|
15
|
+
};
|
|
16
|
+
export type ReservationKnockoffArgs = {
|
|
17
|
+
contract: Address;
|
|
18
|
+
defender: Address;
|
|
19
|
+
challenger: Address;
|
|
20
|
+
defenderRefund: number | bigint;
|
|
21
|
+
defenderBonus: number | bigint;
|
|
22
|
+
};
|
|
23
|
+
export declare function getReservationKnockoffEncoder(): FixedSizeEncoder<ReservationKnockoffArgs>;
|
|
24
|
+
export declare function getReservationKnockoffDecoder(): FixedSizeDecoder<ReservationKnockoff>;
|
|
25
|
+
export declare function getReservationKnockoffCodec(): FixedSizeCodec<ReservationKnockoffArgs, ReservationKnockoff>;
|
|
26
|
+
//# sourceMappingURL=reservationKnockoff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservationKnockoff.d.ts","sourceRoot":"","sources":["../../../../../src/generated/codama/types/reservationKnockoff.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,gBAAgB,CAAC,uBAAuB,CAAC,CAQzF;AAED,wBAAgB,6BAA6B,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,CAQrF;AAED,wBAAgB,2BAA2B,IAAI,cAAc,CAC3D,uBAAuB,EACvB,mBAAmB,CACpB,CAKA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ MAINNET_ADDRESSES, ATLASNET_ADDRESSES, type ProgramSet, type ProgramAddresses, t
|
|
|
15
15
|
toTransactionSigner, validateAddress, isWeb3jsSigner, isKitSigner, isAddressString, type UniversalSigner, toWeb3Instruction, toAddress, type KitInstruction, type Web3jsInstructionWithStrings, type Web3jsInstructionWithPublicKeys, prepareInstructions, type PrepareInstructionsOptions } from './utils';
|
|
16
16
|
export { createContract, type CreateContractParams } from './instructions/createContract';
|
|
17
17
|
export { updateContract, type UpdateContractParams } from './instructions/updateContract';
|
|
18
|
+
export { setDelegate, type SetDelegateParams } from './instructions/setDelegate';
|
|
18
19
|
export { deleteBorrower, type DeleteBorrowerParams } from './instructions/deleteBorrower';
|
|
19
20
|
export { deleteRental, type DeleteRentalParams } from './instructions/deleteRental';
|
|
20
21
|
export { closeContract, type CloseContractParams } from './instructions/closeContract';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,WAAW,EACX,YAAY,EACZ,KAAK,SAAS,EACd,KAAK,oB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,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EACL,UAAU,EACV,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhD,OAAO,EAEL,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EAErB,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EAEZ,oBAAoB,EACpB,uBAAuB,EACvB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAElB,kBAAkB,EAElB,4BAA4B,EAE5B,mBAAmB,GACpB,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @purpose Simplified setDelegate instruction wrapper
|
|
3
|
+
*
|
|
4
|
+
* Thin convenience wrapper around Codama-generated setDelegate instruction.
|
|
5
|
+
* Allows contract owners to set or remove a delegate address that can update the contract rate.
|
|
6
|
+
*/
|
|
7
|
+
import { type Address } from '@solana/kit';
|
|
8
|
+
import { type SdkConfig } from '../utils/config';
|
|
9
|
+
import { type UniversalSigner } from '../utils/signer';
|
|
10
|
+
import { prepareInstructions } from '../utils/instructions';
|
|
11
|
+
/**
|
|
12
|
+
* Parameters for setting/removing a contract delegate
|
|
13
|
+
*/
|
|
14
|
+
export interface SetDelegateParams {
|
|
15
|
+
/**
|
|
16
|
+
* Contract owner (must be the original owner)
|
|
17
|
+
* Accepts string address, web3.js Keypair, or @solana/kit signer
|
|
18
|
+
*/
|
|
19
|
+
owner: UniversalSigner;
|
|
20
|
+
/**
|
|
21
|
+
* Contract address to update
|
|
22
|
+
*/
|
|
23
|
+
contract: Address | string;
|
|
24
|
+
/**
|
|
25
|
+
* Delegate address to set, or null/undefined to remove delegate
|
|
26
|
+
* The delegate can update the contract rate on behalf of the owner
|
|
27
|
+
*/
|
|
28
|
+
delegate?: Address | string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Optional compute units to allocate for the transaction
|
|
31
|
+
* @example 400000
|
|
32
|
+
*/
|
|
33
|
+
computeUnits?: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Set or remove a delegate for a rental contract
|
|
37
|
+
*
|
|
38
|
+
* Allows the contract owner to delegate rate update authority to another address.
|
|
39
|
+
* The delegate can only update the rate - not other contract settings.
|
|
40
|
+
*
|
|
41
|
+
* @param params - Delegate parameters
|
|
42
|
+
* @param config - Optional SDK configuration overrides
|
|
43
|
+
* @returns Kit instruction (or web3.js if PublicKey in config)
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* // Set a delegate
|
|
48
|
+
* const ix = await setDelegate({
|
|
49
|
+
* owner: wallet,
|
|
50
|
+
* contract: contractAddress,
|
|
51
|
+
* delegate: delegateAddress
|
|
52
|
+
* });
|
|
53
|
+
*
|
|
54
|
+
* // Remove delegate
|
|
55
|
+
* const ix2 = await setDelegate({
|
|
56
|
+
* owner: wallet,
|
|
57
|
+
* contract: contractAddress,
|
|
58
|
+
* delegate: null // or omit delegate entirely
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare function setDelegate(params: SetDelegateParams, config?: Partial<SdkConfig>): Promise<ReturnType<typeof prepareInstructions>>;
|
|
63
|
+
//# sourceMappingURL=setDelegate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setDelegate.d.ts","sourceRoot":"","sources":["../../../src/instructions/setDelegate.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;OAEG;IACH,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,iBAAiB,EACzB,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAC1B,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAsCjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateContract.d.ts","sourceRoot":"","sources":["../../../src/instructions/updateContract.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAA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;AACnE,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;OAEG;IACH,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAE3B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,aAAa,CAAC;IAE5B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,aAAa,CAAC;IAE5B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAE7B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAC1B,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAqEjD"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.0.0-beta.
|
|
1
|
+
export declare const VERSION = "3.0.0-beta.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wuwei-labs/srsly",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.4",
|
|
4
4
|
"description": "TypeScript SDK for SRSLY",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dist/cjs",
|
|
14
14
|
"dist/esm",
|
|
15
15
|
"dist/types",
|
|
16
|
-
"
|
|
16
|
+
"dist/idl"
|
|
17
17
|
],
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"import": "./dist/esm/demos.js",
|
|
29
29
|
"default": "./dist/cjs/demos.js"
|
|
30
30
|
},
|
|
31
|
-
"./idl": "./
|
|
31
|
+
"./idl": "./dist/idl/srsly.json"
|
|
32
32
|
},
|
|
33
33
|
"keywords": [
|
|
34
34
|
"SRSLY",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"build:full": "pnpm run generate && pnpm run compile",
|
|
43
43
|
"generate": "codama run js",
|
|
44
44
|
"generate:version": "node scripts/generate-version.js",
|
|
45
|
-
"compile": "pnpm run generate:version && pnpm run compile:cjs && pnpm run compile:esm",
|
|
45
|
+
"compile": "pnpm run generate:version && pnpm run compile:cjs && pnpm run compile:esm && pnpm run compile:idl",
|
|
46
|
+
"compile:idl": "mkdir -p dist/idl && cp ../../../rust/target/idl/srsly.json dist/idl/",
|
|
46
47
|
"compile:cjs": "tsc -p tsconfig.cjs.json && tsconfig-to-dual-package tsconfig.cjs.json",
|
|
47
48
|
"compile:esm": "tsc -p tsconfig.esm.json && tsconfig-to-dual-package tsconfig.esm.json",
|
|
48
49
|
"clean": "rm -rf dist src/generated src/idl src/types src/version.ts",
|