@shapeshiftoss/types 8.6.8 → 9.0.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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/api.d.ts +22 -16
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/api.d.ts +22 -16
- package/package.json +2 -2
package/dist/cjs/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type
|
|
2
|
-
type: '
|
|
1
|
+
export type ZrxPermit2SignatureRequired = {
|
|
2
|
+
type: 'zrx_permit2';
|
|
3
3
|
eip712: Record<string, unknown>;
|
|
4
4
|
};
|
|
5
5
|
export type EvmTransactionData = {
|
|
@@ -9,10 +9,10 @@ export type EvmTransactionData = {
|
|
|
9
9
|
data: string;
|
|
10
10
|
value: string;
|
|
11
11
|
gasLimit?: string;
|
|
12
|
-
signatureRequired?:
|
|
12
|
+
signatureRequired?: ZrxPermit2SignatureRequired;
|
|
13
13
|
};
|
|
14
14
|
export type SolanaTransactionData = {
|
|
15
|
-
type: '
|
|
15
|
+
type: 'solana_instructions';
|
|
16
16
|
instructions: {
|
|
17
17
|
programId: string;
|
|
18
18
|
keys: {
|
|
@@ -24,23 +24,29 @@ export type SolanaTransactionData = {
|
|
|
24
24
|
}[];
|
|
25
25
|
addressLookupTableAddresses: string[];
|
|
26
26
|
};
|
|
27
|
-
export type
|
|
28
|
-
type: '
|
|
29
|
-
|
|
30
|
-
opReturnData?: string;
|
|
27
|
+
export type SolanaSerializedTxTransactionData = {
|
|
28
|
+
type: 'solana_serialized_tx';
|
|
29
|
+
serializedTx: string;
|
|
31
30
|
};
|
|
32
|
-
export type
|
|
33
|
-
type: '
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
export type UtxoTransactionData = {
|
|
32
|
+
type: 'utxo';
|
|
33
|
+
to: string;
|
|
34
|
+
opReturnData?: string;
|
|
36
35
|
value: string;
|
|
37
36
|
};
|
|
38
|
-
export type
|
|
39
|
-
|
|
40
|
-
type: 'cosmos';
|
|
37
|
+
export type CosmosSdkMsgSendTransactionData = {
|
|
38
|
+
type: 'cosmossdk_msg_send';
|
|
41
39
|
chainId: string;
|
|
42
40
|
to: string;
|
|
41
|
+
denom: string;
|
|
43
42
|
value: string;
|
|
44
43
|
memo?: string;
|
|
45
44
|
};
|
|
46
|
-
export type
|
|
45
|
+
export type CosmosSdkMsgDepositTransactionData = {
|
|
46
|
+
type: 'cosmossdk_msg_deposit';
|
|
47
|
+
chainId: string;
|
|
48
|
+
value: string;
|
|
49
|
+
memo: string;
|
|
50
|
+
coin: string;
|
|
51
|
+
};
|
|
52
|
+
export type TransactionData = EvmTransactionData | SolanaTransactionData | SolanaSerializedTxTransactionData | UtxoTransactionData | CosmosSdkMsgSendTransactionData | CosmosSdkMsgDepositTransactionData;
|