@thesingularitynetwork/darkswap-sdk 0.2.6 → 0.2.7-beta2
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/config/chain.d.ts +1 -0
- package/dist/config/config.d.ts +1 -0
- package/dist/config/contractConfig.d.ts +0 -1
- package/dist/darkswap-sdk.cjs.development.js +247 -609
- package/dist/darkswap-sdk.cjs.development.js.map +1 -1
- package/dist/darkswap-sdk.cjs.production.min.js +1 -1
- package/dist/darkswap-sdk.cjs.production.min.js.map +1 -1
- package/dist/darkswap-sdk.esm.js +246 -610
- package/dist/darkswap-sdk.esm.js.map +1 -1
- package/dist/services/noteService.d.ts +1 -0
- package/dist/services/retail/depositAndCreateOrder.d.ts +2 -1
- package/package.json +1 -1
|
@@ -8,3 +8,4 @@ export declare function isNoteActive(darkSwap: DarkSwap, note: DarkSwapNote, pub
|
|
|
8
8
|
export declare function isNoteSpent(darkSwap: DarkSwap, note: DarkSwapNote, publicKey: [Fr, Fr]): Promise<boolean>;
|
|
9
9
|
export declare function isNoteValid(darkSwap: DarkSwap, note: DarkSwapNote, publicKey: [Fr, Fr]): Promise<boolean>;
|
|
10
10
|
export declare function getNullifierBySignature(note: DarkSwapNote, signature: string): Promise<string>;
|
|
11
|
+
export declare function isNoteCreated(darkSwap: DarkSwap, note: bigint): Promise<boolean>;
|
|
@@ -22,12 +22,13 @@ declare class RetailCreateOrderContext extends BaseContext {
|
|
|
22
22
|
}
|
|
23
23
|
export declare class RetailCreateOrderService extends BaseContractService {
|
|
24
24
|
constructor(_darkSwap: DarkSwap);
|
|
25
|
+
rebuildContextFromSwapMessage(swapMessage: DarkSwapMessage, signature: string): Promise<RetailCreateOrderContext>;
|
|
25
26
|
prepare(address: string, depositAsset: string, depositAmount: bigint, swapInAsset: string, swapInAmount: bigint, signature: string): Promise<{
|
|
26
27
|
context: RetailCreateOrderContext;
|
|
27
28
|
swapMessage: DarkSwapMessage;
|
|
28
29
|
}>;
|
|
29
30
|
private generateProof;
|
|
30
|
-
|
|
31
|
+
allowance(context: RetailCreateOrderContext): Promise<void>;
|
|
31
32
|
execute(context: RetailCreateOrderContext): Promise<string>;
|
|
32
33
|
}
|
|
33
34
|
export {};
|