@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/esm/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export type Permit2SignatureRequired = {
2
- type: 'permit2';
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?: Permit2SignatureRequired;
12
+ signatureRequired?: ZrxPermit2SignatureRequired;
13
13
  };
14
14
  export type SolanaTransactionData = {
15
- type: 'solana';
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 UtxoPsbtTransactionData = {
28
- type: 'utxo_psbt';
29
- psbt: string;
30
- opReturnData?: string;
27
+ export type SolanaSerializedTxTransactionData = {
28
+ type: 'solana_serialized_tx';
29
+ serializedTx: string;
31
30
  };
32
- export type UtxoDepositTransactionData = {
33
- type: 'utxo_deposit';
34
- depositAddress: string;
35
- memo: string;
31
+ export type UtxoTransactionData = {
32
+ type: 'utxo';
33
+ to: string;
34
+ opReturnData?: string;
36
35
  value: string;
37
36
  };
38
- export type UtxoTransactionData = UtxoPsbtTransactionData | UtxoDepositTransactionData;
39
- export type CosmosTransactionData = {
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 TransactionData = EvmTransactionData | SolanaTransactionData | UtxoTransactionData | CosmosTransactionData;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "8.6.8",
3
+ "version": "9.0.0",
4
4
  "description": "Common types shared across packages",
5
5
  "repository": "https://github.com/shapeshift/web",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "@cowprotocol/app-data": "^2.3.0",
26
26
  "ethers5": "npm:ethers@5.7.2",
27
27
  "viem": "2.43.5",
28
- "@shapeshiftoss/caip": "^8.16.9"
28
+ "@shapeshiftoss/caip": "^8.16.10"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "rm -rf dist && pnpm exec tsc --build && pnpm run postbuild",