@layerzerolabs/lz-iotal1-oft-sdk-v2 3.0.143

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/src/types.ts ADDED
@@ -0,0 +1,36 @@
1
+ // Constants
2
+ export const OFTMsgType = {
3
+ SEND: 1,
4
+ SEND_AND_CALL: 2,
5
+ } as const
6
+
7
+ // Type Definitions
8
+ export interface SendParam {
9
+ dstEid: number
10
+ to: Uint8Array
11
+ amountLd: bigint
12
+ minAmountLd: bigint
13
+ extraOptions: Uint8Array
14
+ composeMsg: Uint8Array
15
+ oftCmd: Uint8Array
16
+ }
17
+
18
+ export interface OFTLimit {
19
+ minAmountLd: bigint
20
+ maxAmountLd: bigint
21
+ }
22
+
23
+ export interface OFTFeeDetail {
24
+ feeAmountLd: bigint
25
+ description: string
26
+ }
27
+
28
+ export interface OFTReceipt {
29
+ amountSentLd: bigint
30
+ amountReceivedLd: bigint
31
+ }
32
+
33
+ export interface OFTInfoV1 {
34
+ oftPackage: string
35
+ oftObject: string
36
+ }