@shapeshiftoss/types 3.0.0 → 3.1.1
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/base.d.ts +3 -20
- package/dist/chain-adapters/cosmos.d.ts +1 -1
- package/package.json +6 -4
package/dist/base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HDWallet } from '@shapeshiftoss/hdwallet-core';
|
|
2
|
-
import { QuoteFeeData
|
|
2
|
+
import { QuoteFeeData } from './chain-adapters';
|
|
3
3
|
/** Common */
|
|
4
4
|
export declare type BIP44Params = {
|
|
5
5
|
purpose: number;
|
|
@@ -39,8 +39,8 @@ export declare enum AssetDataSource {
|
|
|
39
39
|
}
|
|
40
40
|
declare type AbstractAsset = {
|
|
41
41
|
assetId: string;
|
|
42
|
-
caip2
|
|
43
|
-
caip19
|
|
42
|
+
caip2?: string;
|
|
43
|
+
caip19?: string;
|
|
44
44
|
chainId: string;
|
|
45
45
|
chain: ChainTypes;
|
|
46
46
|
description?: string;
|
|
@@ -82,11 +82,9 @@ export declare type SwapSource = {
|
|
|
82
82
|
export interface MinMaxOutput {
|
|
83
83
|
minimum: string;
|
|
84
84
|
maximum: string;
|
|
85
|
-
minimumPrice?: string;
|
|
86
85
|
}
|
|
87
86
|
export declare type QuoteResponse = {
|
|
88
87
|
price: string;
|
|
89
|
-
guaranteedPrice: string;
|
|
90
88
|
to: string;
|
|
91
89
|
data?: string;
|
|
92
90
|
value?: string;
|
|
@@ -102,15 +100,8 @@ export declare type QuoteResponse = {
|
|
|
102
100
|
allowanceTarget?: string;
|
|
103
101
|
sources?: Array<SwapSource>;
|
|
104
102
|
};
|
|
105
|
-
export declare type ThorVaultInfo = {
|
|
106
|
-
routerContractAddress?: string;
|
|
107
|
-
vaultAddress: string;
|
|
108
|
-
timestamp: string;
|
|
109
|
-
};
|
|
110
|
-
export declare type BuildThorTradeOutput = SignTxInput<unknown> & ThorVaultInfo;
|
|
111
103
|
export declare type Quote<C extends ChainTypes> = {
|
|
112
104
|
success: boolean;
|
|
113
|
-
statusCode?: number;
|
|
114
105
|
statusReason?: string;
|
|
115
106
|
sellAssetAccountId?: string;
|
|
116
107
|
buyAssetAccountId?: string;
|
|
@@ -124,17 +115,11 @@ export declare type Quote<C extends ChainTypes> = {
|
|
|
124
115
|
sellAmount?: string;
|
|
125
116
|
minimum?: string | null;
|
|
126
117
|
maximum?: string | null;
|
|
127
|
-
guaranteedPrice?: string;
|
|
128
|
-
slipScore?: string;
|
|
129
118
|
txData?: string;
|
|
130
119
|
value?: string;
|
|
131
120
|
allowanceContract?: string;
|
|
132
|
-
allowanceGrantRequired?: boolean;
|
|
133
121
|
slippage?: string;
|
|
134
|
-
priceImpact?: string;
|
|
135
|
-
orderId?: string;
|
|
136
122
|
sources?: Array<SwapSource>;
|
|
137
|
-
timestamp?: number;
|
|
138
123
|
};
|
|
139
124
|
export declare type GetQuoteInput = {
|
|
140
125
|
sellAsset: Asset;
|
|
@@ -144,9 +129,7 @@ export declare type GetQuoteInput = {
|
|
|
144
129
|
sellAssetAccountId?: string;
|
|
145
130
|
buyAssetAccountId?: string;
|
|
146
131
|
slippage?: string;
|
|
147
|
-
priceImpact?: string;
|
|
148
132
|
sendMax?: boolean;
|
|
149
|
-
minimumPrice?: string;
|
|
150
133
|
minimum?: string;
|
|
151
134
|
};
|
|
152
135
|
export declare type BuildQuoteTxInput = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshiftoss/types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Common types shared across packages",
|
|
5
5
|
"repository": "https://github.com/shapeshift/lib",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "yarn clean &&
|
|
16
|
+
"build": "yarn clean && yarn compile",
|
|
17
17
|
"dev": "tsc --watch",
|
|
18
|
-
"clean": "rm -rf dist",
|
|
18
|
+
"clean": "rm -rf dist && rm -rf tsconfig.build.tsbuildinfo",
|
|
19
|
+
"compile": "tsc -p tsconfig.build.json",
|
|
20
|
+
"prepare": "yarn build",
|
|
19
21
|
"test": "jest test",
|
|
20
|
-
"type-check": "tsc --project ./tsconfig.json --noEmit"
|
|
22
|
+
"type-check": "tsc --project ./tsconfig.build.json --noEmit"
|
|
21
23
|
},
|
|
22
24
|
"devDependencies": {
|
|
23
25
|
"@shapeshiftoss/hdwallet-core": "^1.20.0"
|