@thesingularitynetwork/darkswap-sdk 0.1.28 → 0.2.0
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/darkswap-sdk.cjs.development.js +300 -0
- 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 +300 -1
- package/dist/darkswap-sdk.esm.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/proof/synara/bridgeOrderProof.d.ts +16 -0
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseProofParam, BaseProofResult, DarkSwapNote, DarkSwapOrderNote } from "../../types";
|
|
2
|
+
export declare type RetailBridgeOrderProofParam = BaseProofParam & {
|
|
3
|
+
depositSourceAsset: string;
|
|
4
|
+
depositNote: DarkSwapOrderNote;
|
|
5
|
+
swapInNote: DarkSwapNote;
|
|
6
|
+
feeRatio: bigint;
|
|
7
|
+
feeAmount: bigint;
|
|
8
|
+
destChain: number;
|
|
9
|
+
depositId: string;
|
|
10
|
+
bridgeFeeAmount: bigint;
|
|
11
|
+
};
|
|
12
|
+
export declare type RetailBridgeOrderProofResult = BaseProofResult & {
|
|
13
|
+
depositFooter: string;
|
|
14
|
+
swapInNoteFooter: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function generateRetailBridgeOrderProof(param: RetailBridgeOrderProofParam): Promise<RetailBridgeOrderProofResult>;
|
package/dist/types.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ export declare enum PROOF_DOMAIN {
|
|
|
10
10
|
RETAIL_CANCEL_ORDER = 10007,
|
|
11
11
|
JOIN = 10008,
|
|
12
12
|
TRIPLE_JOIN = 10009,
|
|
13
|
-
RETAIL_SWAP = 10010
|
|
13
|
+
RETAIL_SWAP = 10010,
|
|
14
|
+
RETAIL_BRIDGE_ORDER = 20003
|
|
14
15
|
}
|
|
15
16
|
export declare const EMPTY_NULLIFIER = 0n;
|
|
16
17
|
export declare const EMPTY_FOOTER = 0n;
|