@shapeshiftoss/unchained-client 10.14.10 → 10.14.11
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/LICENSE.md +21 -0
- package/README.md +2 -2
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/evm/ethereum/parser/__tests__/ethereum.test.js +29 -0
- package/dist/cjs/generated/arbitrum/apis/V1Api.d.ts +1 -14
- package/dist/cjs/generated/arbitrum/apis/V1Api.js +0 -39
- package/dist/cjs/generated/arbitrum/models/index.d.ts +0 -3
- package/dist/cjs/generated/arbitrum/models/index.js +0 -3
- package/dist/cjs/generated/avalanche/apis/V1Api.d.ts +1 -14
- package/dist/cjs/generated/avalanche/apis/V1Api.js +0 -39
- package/dist/cjs/generated/avalanche/models/index.d.ts +0 -3
- package/dist/cjs/generated/avalanche/models/index.js +0 -3
- package/dist/cjs/generated/base/apis/V1Api.d.ts +1 -14
- package/dist/cjs/generated/base/apis/V1Api.js +0 -39
- package/dist/cjs/generated/base/models/index.d.ts +0 -3
- package/dist/cjs/generated/base/models/index.js +0 -3
- package/dist/cjs/generated/bitcoin/models/Address.d.ts +7 -0
- package/dist/cjs/generated/bitcoin/models/Address.js +3 -0
- package/dist/cjs/generated/bitcoincash/models/Address.d.ts +7 -0
- package/dist/cjs/generated/bitcoincash/models/Address.js +3 -0
- package/dist/cjs/generated/bnbsmartchain/apis/V1Api.d.ts +1 -14
- package/dist/cjs/generated/bnbsmartchain/apis/V1Api.js +0 -39
- package/dist/cjs/generated/bnbsmartchain/models/index.d.ts +0 -3
- package/dist/cjs/generated/bnbsmartchain/models/index.js +0 -3
- package/dist/cjs/generated/dogecoin/models/Address.d.ts +7 -0
- package/dist/cjs/generated/dogecoin/models/Address.js +3 -0
- package/dist/cjs/generated/ethereum/apis/V1Api.d.ts +1 -14
- package/dist/cjs/generated/ethereum/apis/V1Api.js +0 -39
- package/dist/cjs/generated/ethereum/models/index.d.ts +0 -3
- package/dist/cjs/generated/ethereum/models/index.js +0 -3
- package/dist/cjs/generated/gnosis/apis/V1Api.d.ts +1 -14
- package/dist/cjs/generated/gnosis/apis/V1Api.js +0 -39
- package/dist/cjs/generated/gnosis/models/index.d.ts +0 -3
- package/dist/cjs/generated/gnosis/models/index.js +0 -3
- package/dist/cjs/generated/litecoin/models/Address.d.ts +7 -0
- package/dist/cjs/generated/litecoin/models/Address.js +3 -0
- package/dist/cjs/generated/mayachain/apis/ProxyApi.d.ts +18 -2
- package/dist/cjs/generated/mayachain/apis/ProxyApi.js +42 -2
- package/dist/cjs/generated/optimism/apis/V1Api.d.ts +1 -14
- package/dist/cjs/generated/optimism/apis/V1Api.js +0 -39
- package/dist/cjs/generated/optimism/models/index.d.ts +0 -3
- package/dist/cjs/generated/optimism/models/index.js +0 -3
- package/dist/cjs/generated/polygon/apis/V1Api.d.ts +1 -14
- package/dist/cjs/generated/polygon/apis/V1Api.js +0 -39
- package/dist/cjs/generated/polygon/models/index.d.ts +0 -3
- package/dist/cjs/generated/polygon/models/index.js +0 -3
- package/dist/cjs/generated/zcash/models/Address.d.ts +7 -0
- package/dist/cjs/generated/zcash/models/Address.js +3 -0
- package/dist/cjs/solana/parser/__tests__/solana.test.js +5 -3
- package/dist/cjs/solana/parser/index.js +1 -0
- package/dist/cjs/solana/parser/thorchain.d.ts +9 -0
- package/dist/cjs/solana/parser/thorchain.js +54 -0
- package/dist/cjs/solana/parser/types.d.ts +4 -1
- package/dist/cjs/tron/api.d.ts +3 -0
- package/dist/cjs/tron/api.js +55 -6
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/evm/ethereum/parser/__tests__/ethereum.test.js +29 -0
- package/dist/esm/generated/arbitrum/apis/V1Api.d.ts +1 -14
- package/dist/esm/generated/arbitrum/apis/V1Api.js +1 -40
- package/dist/esm/generated/arbitrum/models/index.d.ts +0 -3
- package/dist/esm/generated/arbitrum/models/index.js +0 -3
- package/dist/esm/generated/avalanche/apis/V1Api.d.ts +1 -14
- package/dist/esm/generated/avalanche/apis/V1Api.js +1 -40
- package/dist/esm/generated/avalanche/models/index.d.ts +0 -3
- package/dist/esm/generated/avalanche/models/index.js +0 -3
- package/dist/esm/generated/base/apis/V1Api.d.ts +1 -14
- package/dist/esm/generated/base/apis/V1Api.js +1 -40
- package/dist/esm/generated/base/models/index.d.ts +0 -3
- package/dist/esm/generated/base/models/index.js +0 -3
- package/dist/esm/generated/bitcoin/models/Address.d.ts +7 -0
- package/dist/esm/generated/bitcoin/models/Address.js +3 -0
- package/dist/esm/generated/bitcoincash/models/Address.d.ts +7 -0
- package/dist/esm/generated/bitcoincash/models/Address.js +3 -0
- package/dist/esm/generated/bnbsmartchain/apis/V1Api.d.ts +1 -14
- package/dist/esm/generated/bnbsmartchain/apis/V1Api.js +1 -40
- package/dist/esm/generated/bnbsmartchain/models/index.d.ts +0 -3
- package/dist/esm/generated/bnbsmartchain/models/index.js +0 -3
- package/dist/esm/generated/dogecoin/models/Address.d.ts +7 -0
- package/dist/esm/generated/dogecoin/models/Address.js +3 -0
- package/dist/esm/generated/ethereum/apis/V1Api.d.ts +1 -14
- package/dist/esm/generated/ethereum/apis/V1Api.js +1 -40
- package/dist/esm/generated/ethereum/models/index.d.ts +0 -3
- package/dist/esm/generated/ethereum/models/index.js +0 -3
- package/dist/esm/generated/gnosis/apis/V1Api.d.ts +1 -14
- package/dist/esm/generated/gnosis/apis/V1Api.js +1 -40
- package/dist/esm/generated/gnosis/models/index.d.ts +0 -3
- package/dist/esm/generated/gnosis/models/index.js +0 -3
- package/dist/esm/generated/litecoin/models/Address.d.ts +7 -0
- package/dist/esm/generated/litecoin/models/Address.js +3 -0
- package/dist/esm/generated/mayachain/apis/ProxyApi.d.ts +18 -2
- package/dist/esm/generated/mayachain/apis/ProxyApi.js +42 -2
- package/dist/esm/generated/optimism/apis/V1Api.d.ts +1 -14
- package/dist/esm/generated/optimism/apis/V1Api.js +1 -40
- package/dist/esm/generated/optimism/models/index.d.ts +0 -3
- package/dist/esm/generated/optimism/models/index.js +0 -3
- package/dist/esm/generated/polygon/apis/V1Api.d.ts +1 -14
- package/dist/esm/generated/polygon/apis/V1Api.js +1 -40
- package/dist/esm/generated/polygon/models/index.d.ts +0 -3
- package/dist/esm/generated/polygon/models/index.js +0 -3
- package/dist/esm/generated/zcash/models/Address.d.ts +7 -0
- package/dist/esm/generated/zcash/models/Address.js +3 -0
- package/dist/esm/solana/parser/__tests__/solana.test.js +5 -3
- package/dist/esm/solana/parser/index.js +1 -0
- package/dist/esm/solana/parser/thorchain.d.ts +9 -0
- package/dist/esm/solana/parser/thorchain.js +24 -0
- package/dist/esm/solana/parser/types.d.ts +4 -1
- package/dist/esm/tron/api.d.ts +3 -0
- package/dist/esm/tron/api.js +55 -6
- package/package.json +15 -16
- package/CHANGELOG.md +0 -409
- package/dist/cjs/generated/arbitrum/models/TokenMetadata.d.ts +0 -62
- package/dist/cjs/generated/arbitrum/models/TokenMetadata.js +0 -67
- package/dist/cjs/generated/arbitrum/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/cjs/generated/arbitrum/models/TokenMetadataMedia.js +0 -61
- package/dist/cjs/generated/arbitrum/models/TokenType.d.ts +0 -23
- package/dist/cjs/generated/arbitrum/models/TokenType.js +0 -37
- package/dist/cjs/generated/avalanche/models/TokenMetadata.d.ts +0 -62
- package/dist/cjs/generated/avalanche/models/TokenMetadata.js +0 -67
- package/dist/cjs/generated/avalanche/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/cjs/generated/avalanche/models/TokenMetadataMedia.js +0 -61
- package/dist/cjs/generated/avalanche/models/TokenType.d.ts +0 -23
- package/dist/cjs/generated/avalanche/models/TokenType.js +0 -37
- package/dist/cjs/generated/base/models/TokenMetadata.d.ts +0 -62
- package/dist/cjs/generated/base/models/TokenMetadata.js +0 -67
- package/dist/cjs/generated/base/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/cjs/generated/base/models/TokenMetadataMedia.js +0 -61
- package/dist/cjs/generated/base/models/TokenType.d.ts +0 -23
- package/dist/cjs/generated/base/models/TokenType.js +0 -37
- package/dist/cjs/generated/bnbsmartchain/models/TokenMetadata.d.ts +0 -62
- package/dist/cjs/generated/bnbsmartchain/models/TokenMetadata.js +0 -67
- package/dist/cjs/generated/bnbsmartchain/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/cjs/generated/bnbsmartchain/models/TokenMetadataMedia.js +0 -61
- package/dist/cjs/generated/bnbsmartchain/models/TokenType.d.ts +0 -23
- package/dist/cjs/generated/bnbsmartchain/models/TokenType.js +0 -37
- package/dist/cjs/generated/ethereum/models/TokenMetadata.d.ts +0 -62
- package/dist/cjs/generated/ethereum/models/TokenMetadata.js +0 -67
- package/dist/cjs/generated/ethereum/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/cjs/generated/ethereum/models/TokenMetadataMedia.js +0 -61
- package/dist/cjs/generated/ethereum/models/TokenType.d.ts +0 -23
- package/dist/cjs/generated/ethereum/models/TokenType.js +0 -37
- package/dist/cjs/generated/gnosis/models/TokenMetadata.d.ts +0 -62
- package/dist/cjs/generated/gnosis/models/TokenMetadata.js +0 -67
- package/dist/cjs/generated/gnosis/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/cjs/generated/gnosis/models/TokenMetadataMedia.js +0 -61
- package/dist/cjs/generated/gnosis/models/TokenType.d.ts +0 -23
- package/dist/cjs/generated/gnosis/models/TokenType.js +0 -37
- package/dist/cjs/generated/optimism/models/TokenMetadata.d.ts +0 -62
- package/dist/cjs/generated/optimism/models/TokenMetadata.js +0 -67
- package/dist/cjs/generated/optimism/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/cjs/generated/optimism/models/TokenMetadataMedia.js +0 -61
- package/dist/cjs/generated/optimism/models/TokenType.d.ts +0 -23
- package/dist/cjs/generated/optimism/models/TokenType.js +0 -37
- package/dist/cjs/generated/polygon/models/TokenMetadata.d.ts +0 -62
- package/dist/cjs/generated/polygon/models/TokenMetadata.js +0 -67
- package/dist/cjs/generated/polygon/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/cjs/generated/polygon/models/TokenMetadataMedia.js +0 -61
- package/dist/cjs/generated/polygon/models/TokenType.d.ts +0 -23
- package/dist/cjs/generated/polygon/models/TokenType.js +0 -37
- package/dist/esm/generated/arbitrum/models/TokenMetadata.d.ts +0 -62
- package/dist/esm/generated/arbitrum/models/TokenMetadata.js +0 -60
- package/dist/esm/generated/arbitrum/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/esm/generated/arbitrum/models/TokenMetadataMedia.js +0 -54
- package/dist/esm/generated/arbitrum/models/TokenType.d.ts +0 -23
- package/dist/esm/generated/arbitrum/models/TokenType.js +0 -31
- package/dist/esm/generated/avalanche/models/TokenMetadata.d.ts +0 -62
- package/dist/esm/generated/avalanche/models/TokenMetadata.js +0 -60
- package/dist/esm/generated/avalanche/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/esm/generated/avalanche/models/TokenMetadataMedia.js +0 -54
- package/dist/esm/generated/avalanche/models/TokenType.d.ts +0 -23
- package/dist/esm/generated/avalanche/models/TokenType.js +0 -31
- package/dist/esm/generated/base/models/TokenMetadata.d.ts +0 -62
- package/dist/esm/generated/base/models/TokenMetadata.js +0 -60
- package/dist/esm/generated/base/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/esm/generated/base/models/TokenMetadataMedia.js +0 -54
- package/dist/esm/generated/base/models/TokenType.d.ts +0 -23
- package/dist/esm/generated/base/models/TokenType.js +0 -31
- package/dist/esm/generated/bnbsmartchain/models/TokenMetadata.d.ts +0 -62
- package/dist/esm/generated/bnbsmartchain/models/TokenMetadata.js +0 -60
- package/dist/esm/generated/bnbsmartchain/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/esm/generated/bnbsmartchain/models/TokenMetadataMedia.js +0 -54
- package/dist/esm/generated/bnbsmartchain/models/TokenType.d.ts +0 -23
- package/dist/esm/generated/bnbsmartchain/models/TokenType.js +0 -31
- package/dist/esm/generated/ethereum/models/TokenMetadata.d.ts +0 -62
- package/dist/esm/generated/ethereum/models/TokenMetadata.js +0 -60
- package/dist/esm/generated/ethereum/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/esm/generated/ethereum/models/TokenMetadataMedia.js +0 -54
- package/dist/esm/generated/ethereum/models/TokenType.d.ts +0 -23
- package/dist/esm/generated/ethereum/models/TokenType.js +0 -31
- package/dist/esm/generated/gnosis/models/TokenMetadata.d.ts +0 -62
- package/dist/esm/generated/gnosis/models/TokenMetadata.js +0 -60
- package/dist/esm/generated/gnosis/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/esm/generated/gnosis/models/TokenMetadataMedia.js +0 -54
- package/dist/esm/generated/gnosis/models/TokenType.d.ts +0 -23
- package/dist/esm/generated/gnosis/models/TokenType.js +0 -31
- package/dist/esm/generated/optimism/models/TokenMetadata.d.ts +0 -62
- package/dist/esm/generated/optimism/models/TokenMetadata.js +0 -60
- package/dist/esm/generated/optimism/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/esm/generated/optimism/models/TokenMetadataMedia.js +0 -54
- package/dist/esm/generated/optimism/models/TokenType.d.ts +0 -23
- package/dist/esm/generated/optimism/models/TokenType.js +0 -31
- package/dist/esm/generated/polygon/models/TokenMetadata.d.ts +0 -62
- package/dist/esm/generated/polygon/models/TokenMetadata.js +0 -60
- package/dist/esm/generated/polygon/models/TokenMetadataMedia.d.ts +0 -45
- package/dist/esm/generated/polygon/models/TokenMetadataMedia.js +0 -54
- package/dist/esm/generated/polygon/models/TokenType.d.ts +0 -23
- package/dist/esm/generated/polygon/models/TokenType.js +0 -31
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type * as solana from '../../generated/solana/index.js';
|
|
2
|
+
import type * as thorchain from '../../parser/thorchain.js';
|
|
2
3
|
import type { StandardTx } from '../../types.js';
|
|
3
4
|
export * from '../../generated/solana/index.js';
|
|
4
5
|
export type Tx = solana.Tx;
|
|
6
|
+
export type TxMetadata = thorchain.TxMetadata;
|
|
5
7
|
export interface ParsedTx extends StandardTx {
|
|
8
|
+
data?: TxMetadata;
|
|
6
9
|
}
|
|
7
|
-
export type TxSpecific = Partial<Pick<ParsedTx, 'trade' | 'transfers'>>;
|
|
10
|
+
export type TxSpecific = Partial<Pick<ParsedTx, 'data' | 'trade' | 'transfers'>>;
|
|
8
11
|
export interface SubParser<T extends Tx, U = TxSpecific> {
|
|
9
12
|
parse(tx: T, address: string): Promise<U | undefined>;
|
|
10
13
|
}
|
package/dist/esm/tron/api.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import type { TronBlock, TronTx } from './types.js';
|
|
2
2
|
export interface TronApiConfig {
|
|
3
3
|
rpcUrl: string;
|
|
4
|
+
apiKey?: string;
|
|
4
5
|
}
|
|
5
6
|
export declare class TronApi {
|
|
6
7
|
private readonly rpcUrl;
|
|
8
|
+
private readonly apiKey;
|
|
7
9
|
private tronWeb;
|
|
8
10
|
private requestQueue;
|
|
9
11
|
private readonly minRequestInterval;
|
|
10
12
|
constructor(config: TronApiConfig);
|
|
11
13
|
getRpcUrl(): string;
|
|
14
|
+
private get tronGridHeaders();
|
|
12
15
|
private throttle;
|
|
13
16
|
private getTronWeb;
|
|
14
17
|
getAccount(params: {
|
package/dist/esm/tron/api.js
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import { TronWeb } from 'tronweb';
|
|
2
2
|
export class TronApi {
|
|
3
3
|
rpcUrl;
|
|
4
|
+
apiKey;
|
|
4
5
|
tronWeb = null;
|
|
5
6
|
requestQueue = Promise.resolve();
|
|
6
7
|
minRequestInterval = 1_500;
|
|
7
8
|
constructor(config) {
|
|
8
9
|
this.rpcUrl = config.rpcUrl;
|
|
10
|
+
this.apiKey = config.apiKey ?? '';
|
|
9
11
|
}
|
|
10
12
|
getRpcUrl() {
|
|
11
13
|
return this.rpcUrl;
|
|
12
14
|
}
|
|
15
|
+
get tronGridHeaders() {
|
|
16
|
+
return {
|
|
17
|
+
'Content-Type': 'application/json',
|
|
18
|
+
...(this.apiKey ? { 'TRON-PRO-API-KEY': this.apiKey } : {}),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
13
21
|
async throttle() {
|
|
14
22
|
// Queue the request and wait for all previous requests to complete
|
|
15
23
|
const currentRequest = this.requestQueue.then(async () => {
|
|
@@ -20,7 +28,10 @@ export class TronApi {
|
|
|
20
28
|
}
|
|
21
29
|
getTronWeb() {
|
|
22
30
|
if (!this.tronWeb) {
|
|
23
|
-
this.tronWeb = new TronWeb({
|
|
31
|
+
this.tronWeb = new TronWeb({
|
|
32
|
+
fullHost: this.rpcUrl,
|
|
33
|
+
headers: this.apiKey ? { 'TRON-PRO-API-KEY': this.apiKey } : {},
|
|
34
|
+
});
|
|
24
35
|
}
|
|
25
36
|
return this.tronWeb;
|
|
26
37
|
}
|
|
@@ -28,7 +39,7 @@ export class TronApi {
|
|
|
28
39
|
await this.throttle();
|
|
29
40
|
const response = await fetch(`${this.rpcUrl}/wallet/getaccount`, {
|
|
30
41
|
method: 'POST',
|
|
31
|
-
headers:
|
|
42
|
+
headers: this.tronGridHeaders,
|
|
32
43
|
body: JSON.stringify({ address: params.pubkey, visible: true }),
|
|
33
44
|
});
|
|
34
45
|
const data = await response.json();
|
|
@@ -45,7 +56,9 @@ export class TronApi {
|
|
|
45
56
|
// Get TRC20 tokens from TronGrid API
|
|
46
57
|
try {
|
|
47
58
|
await this.throttle();
|
|
48
|
-
const trc20Response = await fetch(`${this.rpcUrl}/v1/accounts/${params.pubkey}
|
|
59
|
+
const trc20Response = await fetch(`${this.rpcUrl}/v1/accounts/${params.pubkey}`, {
|
|
60
|
+
headers: this.tronGridHeaders,
|
|
61
|
+
});
|
|
49
62
|
const trc20Data = await trc20Response.json();
|
|
50
63
|
if (trc20Data.data?.[0]?.trc20 && Array.isArray(trc20Data.data[0].trc20)) {
|
|
51
64
|
// trc20 is an array of objects like [{contractAddress: balance}, ...]
|
|
@@ -58,6 +71,42 @@ export class TronApi {
|
|
|
58
71
|
}
|
|
59
72
|
});
|
|
60
73
|
}
|
|
74
|
+
else if (!trc20Data.data || trc20Data.data.length === 0) {
|
|
75
|
+
// Non-activated account: /v1/accounts returns data:[] for addresses that have never sent TRX.
|
|
76
|
+
// Fall back to discovering TRC20 balances via received transactions + hardcoded top tokens.
|
|
77
|
+
try {
|
|
78
|
+
await this.throttle();
|
|
79
|
+
const HARDCODED_TOP_TOKENS = [
|
|
80
|
+
'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
|
|
81
|
+
'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8', // USDC
|
|
82
|
+
];
|
|
83
|
+
const MAX_FALLBACK_CONTRACTS = 20;
|
|
84
|
+
const discoveredContracts = new Set(HARDCODED_TOP_TOKENS);
|
|
85
|
+
const trc20TxResponse = await fetch(`${this.rpcUrl}/v1/accounts/${params.pubkey}/transactions/trc20?limit=200&only_to=true`, { headers: this.tronGridHeaders });
|
|
86
|
+
if (trc20TxResponse.ok) {
|
|
87
|
+
const trc20TxData = await trc20TxResponse.json();
|
|
88
|
+
if (trc20TxData.data && Array.isArray(trc20TxData.data)) {
|
|
89
|
+
trc20TxData.data.forEach((tx) => {
|
|
90
|
+
const contractAddress = tx.token_info?.address;
|
|
91
|
+
if (contractAddress)
|
|
92
|
+
discoveredContracts.add(contractAddress);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
for (const contractAddress of Array.from(discoveredContracts).slice(0, MAX_FALLBACK_CONTRACTS)) {
|
|
97
|
+
await this.throttle();
|
|
98
|
+
const balance = await this.getTRC20Balance({ address: params.pubkey, contractAddress });
|
|
99
|
+
if (balance !== '0')
|
|
100
|
+
tokens.push({ contractAddress, balance });
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
catch (fallbackErr) {
|
|
104
|
+
console.error('Failed TRC20 fallback discovery for non-activated TRON account', {
|
|
105
|
+
address: `${params.pubkey.slice(0, 6)}...${params.pubkey.slice(-4)}`,
|
|
106
|
+
error: fallbackErr,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
61
110
|
}
|
|
62
111
|
catch (err) {
|
|
63
112
|
// TRC20 fetch failed, continue with just TRC10 tokens
|
|
@@ -88,12 +137,12 @@ export class TronApi {
|
|
|
88
137
|
const [txResponse, infoResponse] = await Promise.all([
|
|
89
138
|
fetch(`${this.rpcUrl}/wallet/gettransactionbyid`, {
|
|
90
139
|
method: 'POST',
|
|
91
|
-
headers:
|
|
140
|
+
headers: this.tronGridHeaders,
|
|
92
141
|
body: JSON.stringify({ value: params.txid, visible: true }),
|
|
93
142
|
}),
|
|
94
143
|
fetch(`${this.rpcUrl}/wallet/gettransactioninfobyid`, {
|
|
95
144
|
method: 'POST',
|
|
96
|
-
headers:
|
|
145
|
+
headers: this.tronGridHeaders,
|
|
97
146
|
body: JSON.stringify({ value: params.txid, visible: true }),
|
|
98
147
|
}),
|
|
99
148
|
]);
|
|
@@ -134,7 +183,7 @@ export class TronApi {
|
|
|
134
183
|
await this.throttle();
|
|
135
184
|
const response = await fetch(`${this.rpcUrl}/wallet/getblockbynum`, {
|
|
136
185
|
method: 'POST',
|
|
137
|
-
headers:
|
|
186
|
+
headers: this.tronGridHeaders,
|
|
138
187
|
body: JSON.stringify({ num: params.height }),
|
|
139
188
|
});
|
|
140
189
|
if (!response.ok) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshiftoss/unchained-client",
|
|
3
|
-
"version": "10.14.
|
|
3
|
+
"version": "10.14.11",
|
|
4
4
|
"repository": "https://github.com/shapeshift/web",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,30 +20,29 @@
|
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "yarn clean && yarn generate && yarn run -T tsc --build && yarn postbuild",
|
|
25
|
-
"build:docker": "yarn clean:dist && yarn run -T tsc --build && yarn postbuild",
|
|
26
|
-
"clean": "rm -rf dist src/generated",
|
|
27
|
-
"clean:dist": "rm -rf dist",
|
|
28
|
-
"dev": "yarn run -T tsc --build --watch",
|
|
29
|
-
"generate": "TS_POST_PROCESS_FILE=./generator/post_process.sh JAVA_OPTS='-Dlog.level=error' openapi-generator-cli generate",
|
|
30
|
-
"postbuild": "yarn postbuild:esm && yarn postbuild:cjs",
|
|
31
|
-
"postbuild:esm": "yarn run -T tsc-esm-fix --target=dist/esm --ext=.js",
|
|
32
|
-
"postbuild:cjs": "echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json"
|
|
33
|
-
},
|
|
34
23
|
"dependencies": {
|
|
35
|
-
"@shapeshiftoss/caip": "^8.16.8",
|
|
36
24
|
"@shapeshiftoss/common-api": "^9.3.0",
|
|
37
|
-
"@shapeshiftoss/contracts": "^1.0.6",
|
|
38
|
-
"@shapeshiftoss/utils": "^1.0.6",
|
|
39
25
|
"axios": "^1.13.5",
|
|
40
26
|
"bignumber.js": "^9.3.1",
|
|
27
|
+
"bs58": "^5.0.0",
|
|
41
28
|
"ethers": "6.11.1",
|
|
42
29
|
"isomorphic-ws": "^4.0.1",
|
|
43
30
|
"viem": "2.43.5",
|
|
44
|
-
"ws": "^8.17.1"
|
|
31
|
+
"ws": "^8.17.1",
|
|
32
|
+
"@shapeshiftoss/caip": "^8.16.9",
|
|
33
|
+
"@shapeshiftoss/utils": "^1.1.0",
|
|
34
|
+
"@shapeshiftoss/contracts": "^1.0.7"
|
|
45
35
|
},
|
|
46
36
|
"devDependencies": {
|
|
47
37
|
"@openapitools/openapi-generator-cli": "^2.5.1"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "rm -rf dist && pnpm run generate && pnpm exec tsc --build && pnpm run postbuild",
|
|
41
|
+
"clean": "rm -rf dist src/generated node_modules",
|
|
42
|
+
"dev": "pnpm exec tsc --build --watch",
|
|
43
|
+
"generate": "rm -rf src/generated && TS_POST_PROCESS_FILE=./generator/post_process.sh JAVA_OPTS='-Dlog.level=error' openapi-generator-cli generate",
|
|
44
|
+
"postbuild": "pnpm run postbuild:esm && pnpm run postbuild:cjs",
|
|
45
|
+
"postbuild:esm": "pnpm exec tsc-esm-fix --target=dist/esm --ext=.js",
|
|
46
|
+
"postbuild:cjs": "echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json"
|
|
48
47
|
}
|
|
49
48
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
# [@shapeshiftoss/unchained-client-v10.14.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.13.0...@shapeshiftoss/unchained-client-v10.14.0) (2023-03-17)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* zrx support on bsc ([#1219](https://github.com/shapeshift/lib/issues/1219)) ([e0e7b35](https://github.com/shapeshift/lib/commit/e0e7b35851631f838a0daf404dfcc33147b54c43))
|
|
7
|
-
|
|
8
|
-
# [@shapeshiftoss/unchained-client-v10.13.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.12.2...@shapeshiftoss/unchained-client-v10.13.0) (2023-03-14)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Features
|
|
12
|
-
|
|
13
|
-
* add bnb smart chain ([#1197](https://github.com/shapeshift/lib/issues/1197)) ([245e7a4](https://github.com/shapeshift/lib/commit/245e7a476e41580d4ac72666605a4867d7a71f03))
|
|
14
|
-
|
|
15
|
-
# [@shapeshiftoss/unchained-client-v10.12.2](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.12.1...@shapeshiftoss/unchained-client-v10.12.2) (2023-02-24)
|
|
16
|
-
|
|
17
|
-
# [@shapeshiftoss/unchained-client-v10.12.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.12.0...@shapeshiftoss/unchained-client-v10.12.1) (2023-01-31)
|
|
18
|
-
|
|
19
|
-
# [@shapeshiftoss/unchained-client-v10.12.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.11.0...@shapeshiftoss/unchained-client-v10.12.0) (2023-01-31)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
### Features
|
|
23
|
-
|
|
24
|
-
* parse osmosis lp transactions ([#1183](https://github.com/shapeshift/lib/issues/1183)) ([40cc338](https://github.com/shapeshift/lib/commit/40cc338ec264c977b911b902b57eee84b931cf7e))
|
|
25
|
-
|
|
26
|
-
# [@shapeshiftoss/unchained-client-v10.11.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.10.0...@shapeshiftoss/unchained-client-v10.11.0) (2023-01-26)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
### Features
|
|
30
|
-
|
|
31
|
-
* add optimism support on zrx ([#1178](https://github.com/shapeshift/lib/issues/1178)) ([5de1305](https://github.com/shapeshift/lib/commit/5de1305fd9c4ba080115002d486f3aa374aed0de))
|
|
32
|
-
|
|
33
|
-
# [@shapeshiftoss/unchained-client-v10.10.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.9.0...@shapeshiftoss/unchained-client-v10.10.0) (2023-01-23)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
* disable Yearn in market-service / unchained-client ([#1174](https://github.com/shapeshift/lib/issues/1174)) ([6551bc1](https://github.com/shapeshift/lib/commit/6551bc106327c6b6f965b443aab6959a4d943f6e))
|
|
39
|
-
|
|
40
|
-
# [@shapeshiftoss/unchained-client-v10.9.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.8.0...@shapeshiftoss/unchained-client-v10.9.0) (2023-01-13)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
### Features
|
|
44
|
-
|
|
45
|
-
* add optimism ([#1157](https://github.com/shapeshift/lib/issues/1157)) ([177725d](https://github.com/shapeshift/lib/commit/177725dc04c00ba982bbebe8e84a7edcff395367))
|
|
46
|
-
|
|
47
|
-
# [@shapeshiftoss/unchained-client-v10.8.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.7.0...@shapeshiftoss/unchained-client-v10.8.0) (2022-12-02)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### Features
|
|
51
|
-
|
|
52
|
-
* **unchained-client:** detect failed transaction for cosmossdk chains ([#1113](https://github.com/shapeshift/lib/issues/1113)) ([50a9b74](https://github.com/shapeshift/lib/commit/50a9b74e5ca532f796794c0cd1f9daed9d5d6700))
|
|
53
|
-
|
|
54
|
-
# [@shapeshiftoss/unchained-client-v10.7.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.6.0...@shapeshiftoss/unchained-client-v10.7.0) (2022-12-02)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### Features
|
|
58
|
-
|
|
59
|
-
* **osmosis:** handle swap_exact_amount_in message ([#1108](https://github.com/shapeshift/lib/issues/1108)) ([29c1bff](https://github.com/shapeshift/lib/commit/29c1bff8eb53f5158f9f6aa72e6df73300b41eff))
|
|
60
|
-
|
|
61
|
-
# [@shapeshiftoss/unchained-client-v10.6.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.5.0...@shapeshiftoss/unchained-client-v10.6.0) (2022-12-01)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
### Features
|
|
65
|
-
|
|
66
|
-
* rename CowSwap -> CoW Swap ([#1111](https://github.com/shapeshift/lib/issues/1111)) ([5ca7439](https://github.com/shapeshift/lib/commit/5ca7439311da4b6d069cb9f28b10c7dffd083eba))
|
|
67
|
-
|
|
68
|
-
# [@shapeshiftoss/unchained-client-v10.5.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.4.1...@shapeshiftoss/unchained-client-v10.5.0) (2022-12-01)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Features
|
|
72
|
-
|
|
73
|
-
* detect all active fox staking contracts ([#1112](https://github.com/shapeshift/lib/issues/1112)) ([03f08e2](https://github.com/shapeshift/lib/commit/03f08e2deaf3bba358d022beb67ff0701289f951))
|
|
74
|
-
|
|
75
|
-
# [@shapeshiftoss/unchained-client-v10.4.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.4.0...@shapeshiftoss/unchained-client-v10.4.1) (2022-12-01)
|
|
76
|
-
|
|
77
|
-
# [@shapeshiftoss/unchained-client-v10.4.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.3.0...@shapeshiftoss/unchained-client-v10.4.0) (2022-11-25)
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### Features
|
|
81
|
-
|
|
82
|
-
* **swapper:** add AVAX pools to Thorchain swapper ([#1091](https://github.com/shapeshift/lib/issues/1091)) ([4acbeac](https://github.com/shapeshift/lib/commit/4acbeac8f921f0544154bbe92652a0ba5d2c339b))
|
|
83
|
-
|
|
84
|
-
# [@shapeshiftoss/unchained-client-v10.3.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.2.5...@shapeshiftoss/unchained-client-v10.3.0) (2022-11-03)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### Features
|
|
88
|
-
|
|
89
|
-
* **swapper:** use refund fee in limit calculation & use `outbound_fee` ([#1080](https://github.com/shapeshift/lib/issues/1080)) ([a4d6d6f](https://github.com/shapeshift/lib/commit/a4d6d6f36e1ad803a5328c0536701f142e2f97f2))
|
|
90
|
-
|
|
91
|
-
# [@shapeshiftoss/unchained-client-v10.2.5](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.2.4...@shapeshiftoss/unchained-client-v10.2.5) (2022-10-31)
|
|
92
|
-
|
|
93
|
-
# [@shapeshiftoss/unchained-client-v10.2.4](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.2.3...@shapeshiftoss/unchained-client-v10.2.4) (2022-10-25)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Bug Fixes
|
|
97
|
-
|
|
98
|
-
* parse eth txs without yearn vaults ([#1078](https://github.com/shapeshift/lib/issues/1078)) ([8661eb5](https://github.com/shapeshift/lib/commit/8661eb5ca98810f6b63468f2b468a23546317b7b))
|
|
99
|
-
|
|
100
|
-
# [@shapeshiftoss/unchained-client-v10.2.3](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.2.2...@shapeshiftoss/unchained-client-v10.2.3) (2022-10-24)
|
|
101
|
-
|
|
102
|
-
# [@shapeshiftoss/unchained-client-v10.2.2](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.2.1...@shapeshiftoss/unchained-client-v10.2.2) (2022-10-24)
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
### Bug Fixes
|
|
106
|
-
|
|
107
|
-
* avax asset ref and upgrade yearn sdk ([#1074](https://github.com/shapeshift/lib/issues/1074)) ([315095a](https://github.com/shapeshift/lib/commit/315095a1c21922b329126ffa643db944a4f31bce))
|
|
108
|
-
|
|
109
|
-
# [@shapeshiftoss/unchained-client-v10.2.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.2.0...@shapeshiftoss/unchained-client-v10.2.1) (2022-10-20)
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
### Bug Fixes
|
|
113
|
-
|
|
114
|
-
* parse confirmed Txs with univ2 parser ([#1070](https://github.com/shapeshift/lib/issues/1070)) ([a72b7ac](https://github.com/shapeshift/lib/commit/a72b7ac3c27b6286f1f600c799575efb0d61f397))
|
|
115
|
-
|
|
116
|
-
# [@shapeshiftoss/unchained-client-v10.2.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.1.2...@shapeshiftoss/unchained-client-v10.2.0) (2022-10-17)
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
### Features
|
|
120
|
-
|
|
121
|
-
* explicit metadata and support new message types ([#1063](https://github.com/shapeshift/lib/issues/1063)) ([4259cce](https://github.com/shapeshift/lib/commit/4259cce24092f5be5e549c2035f16511d5c4c6ec))
|
|
122
|
-
|
|
123
|
-
# [@shapeshiftoss/unchained-client-v10.1.2](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.1.1...@shapeshiftoss/unchained-client-v10.1.2) (2022-09-20)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### Bug Fixes
|
|
127
|
-
|
|
128
|
-
* use json response instead of text response for generated fetch api ([#1035](https://github.com/shapeshift/lib/issues/1035)) ([ba725de](https://github.com/shapeshift/lib/commit/ba725dee6eb8811827075e90dadb2c369d642d4c))
|
|
129
|
-
|
|
130
|
-
# [@shapeshiftoss/unchained-client-v10.1.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.1.0...@shapeshiftoss/unchained-client-v10.1.1) (2022-09-16)
|
|
131
|
-
|
|
132
|
-
# [@shapeshiftoss/unchained-client-v10.1.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.0.2...@shapeshiftoss/unchained-client-v10.1.0) (2022-09-12)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
### Features
|
|
136
|
-
|
|
137
|
-
* add THORChain support ([#1010](https://github.com/shapeshift/lib/issues/1010)) ([d7c3b72](https://github.com/shapeshift/lib/commit/d7c3b72bbda9795f87fa8f73c35926c95026a3c2))
|
|
138
|
-
|
|
139
|
-
# [@shapeshiftoss/unchained-client-v10.0.2](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.0.1...@shapeshiftoss/unchained-client-v10.0.2) (2022-09-09)
|
|
140
|
-
|
|
141
|
-
# [@shapeshiftoss/unchained-client-v10.0.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v10.0.0...@shapeshiftoss/unchained-client-v10.0.1) (2022-09-02)
|
|
142
|
-
|
|
143
|
-
# [@shapeshiftoss/unchained-client-v10.0.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.9.0...@shapeshiftoss/unchained-client-v10.0.0) (2022-09-02)
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
### Features
|
|
147
|
-
|
|
148
|
-
* use CHAIN_NAMESPACE.Evm & CHAIN_NAMESPACE.CosmosSdk ([#1007](https://github.com/shapeshift/lib/issues/1007)) ([b6c5490](https://github.com/shapeshift/lib/commit/b6c54902c9e84fd628e917e4747acdb6faf3405d)), closes [#1008](https://github.com/shapeshift/lib/issues/1008)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
### BREAKING CHANGES
|
|
152
|
-
|
|
153
|
-
* CHAIN_NAMESPACE.Ethereum is now CHAIN_NAMESPACE.Evm
|
|
154
|
-
* CHAIN_NAMESPACE.Cosmos is now CHAIN_NAMESPACE.CosmosSdk
|
|
155
|
-
|
|
156
|
-
* chore: trigger CI
|
|
157
|
-
|
|
158
|
-
* chore: trigger ci
|
|
159
|
-
|
|
160
|
-
* fix: internally bump caip
|
|
161
|
-
|
|
162
|
-
Co-authored-by: Apotheosis <97164662+0xApotheosis@users.noreply.github.com>
|
|
163
|
-
|
|
164
|
-
# [@shapeshiftoss/unchained-client-v9.9.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.8.3...@shapeshiftoss/unchained-client-v9.9.0) (2022-08-18)
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
### Features
|
|
168
|
-
|
|
169
|
-
* **unchained-client:** parse approval amount ([#971](https://github.com/shapeshift/lib/issues/971)) ([27b5a51](https://github.com/shapeshift/lib/commit/27b5a5168edb92aecd863b678152cb2164fcc10e))
|
|
170
|
-
|
|
171
|
-
# [@shapeshiftoss/unchained-client-v9.8.3](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.8.2...@shapeshiftoss/unchained-client-v9.8.3) (2022-08-15)
|
|
172
|
-
|
|
173
|
-
# [@shapeshiftoss/unchained-client-v9.8.2](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.8.1...@shapeshiftoss/unchained-client-v9.8.2) (2022-08-11)
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
### Bug Fixes
|
|
177
|
-
|
|
178
|
-
* osmo parser fixes ([#948](https://github.com/shapeshift/lib/issues/948)) ([cd1db39](https://github.com/shapeshift/lib/commit/cd1db3942a55e01e674bdededbcede2b0b787863))
|
|
179
|
-
|
|
180
|
-
# [@shapeshiftoss/unchained-client-v9.8.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.8.0...@shapeshiftoss/unchained-client-v9.8.1) (2022-08-08)
|
|
181
|
-
|
|
182
|
-
# [@shapeshiftoss/unchained-client-v9.8.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.7.0...@shapeshiftoss/unchained-client-v9.8.0) (2022-08-08)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
### Features
|
|
186
|
-
|
|
187
|
-
* **unchained-client:** parse Avalanche 0x transactions ([#952](https://github.com/shapeshift/lib/issues/952)) ([ef004fb](https://github.com/shapeshift/lib/commit/ef004fbac9fb066803d772cc08318dccea842d93))
|
|
188
|
-
|
|
189
|
-
# [@shapeshiftoss/unchained-client-v9.7.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.6.0...@shapeshiftoss/unchained-client-v9.7.0) (2022-08-06)
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
### Features
|
|
193
|
-
|
|
194
|
-
* improve chain adapter types to expose relevant data ([#944](https://github.com/shapeshift/lib/issues/944)) ([944c8d1](https://github.com/shapeshift/lib/commit/944c8d12dc8380734fe197a8c7555c9c1ce903f7))
|
|
195
|
-
|
|
196
|
-
# [@shapeshiftoss/unchained-client-v9.6.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.5.1...@shapeshiftoss/unchained-client-v9.6.0) (2022-08-02)
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
### Features
|
|
200
|
-
|
|
201
|
-
* add bitcoincash ([#932](https://github.com/shapeshift/lib/issues/932)) ([85080ed](https://github.com/shapeshift/lib/commit/85080ed065027d3e9fe6d28799a0c171ac7ea39c))
|
|
202
|
-
|
|
203
|
-
# [@shapeshiftoss/unchained-client-v9.5.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.5.0...@shapeshiftoss/unchained-client-v9.5.1) (2022-07-29)
|
|
204
|
-
|
|
205
|
-
# [@shapeshiftoss/unchained-client-v9.5.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.4.0...@shapeshiftoss/unchained-client-v9.5.0) (2022-07-29)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
### Features
|
|
209
|
-
|
|
210
|
-
* litecoin ([#914](https://github.com/shapeshift/lib/issues/914)) ([5af5c60](https://github.com/shapeshift/lib/commit/5af5c60c954ae0295d4cd175b98da3732d99d9e4))
|
|
211
|
-
|
|
212
|
-
# [@shapeshiftoss/unchained-client-v9.4.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.3.2...@shapeshiftoss/unchained-client-v9.4.0) (2022-07-26)
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
### Features
|
|
216
|
-
|
|
217
|
-
* cowswap tx parser ([#909](https://github.com/shapeshift/lib/issues/909)) ([4e67743](https://github.com/shapeshift/lib/commit/4e67743339b916e87903c44a2d4eccf23b4b3a59))
|
|
218
|
-
|
|
219
|
-
# [@shapeshiftoss/unchained-client-v9.3.2](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.3.1...@shapeshiftoss/unchained-client-v9.3.2) (2022-07-26)
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
### Bug Fixes
|
|
223
|
-
|
|
224
|
-
* unrug lib bump packages ([#910](https://github.com/shapeshift/lib/issues/910)) ([c914e58](https://github.com/shapeshift/lib/commit/c914e58a2832e5bc196d062074499ec46a200d50))
|
|
225
|
-
|
|
226
|
-
# [@shapeshiftoss/unchained-client-v9.3.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.3.0...@shapeshiftoss/unchained-client-v9.3.1) (2022-07-25)
|
|
227
|
-
|
|
228
|
-
# [@shapeshiftoss/unchained-client-v9.3.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.2.0...@shapeshiftoss/unchained-client-v9.3.0) (2022-07-20)
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
### Features
|
|
232
|
-
|
|
233
|
-
* dogecoin ([#888](https://github.com/shapeshift/lib/issues/888)) ([7ccb927](https://github.com/shapeshift/lib/commit/7ccb92707b48d912f1fd2126888b314baacbbfda))
|
|
234
|
-
|
|
235
|
-
# [@shapeshiftoss/unchained-client-v9.2.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.1.1...@shapeshiftoss/unchained-client-v9.2.0) (2022-07-12)
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
### Features
|
|
239
|
-
|
|
240
|
-
* **unchained-client:** add websocket reconnect logic ([#870](https://github.com/shapeshift/lib/issues/870)) ([fcf5c32](https://github.com/shapeshift/lib/commit/fcf5c32f2584f95d9c09ce4e34dbcab5bb8e79af))
|
|
241
|
-
|
|
242
|
-
# [@shapeshiftoss/unchained-client-v9.1.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.1.0...@shapeshiftoss/unchained-client-v9.1.1) (2022-07-11)
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
### Bug Fixes
|
|
246
|
-
|
|
247
|
-
* **unchained-client:** assign this.provider in BaseTransactionParser ([#866](https://github.com/shapeshift/lib/issues/866)) ([af1d52f](https://github.com/shapeshift/lib/commit/af1d52fa5cb9da707c7077219617cd26d068302b))
|
|
248
|
-
|
|
249
|
-
# [@shapeshiftoss/unchained-client-v9.1.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.0.3...@shapeshiftoss/unchained-client-v9.1.0) (2022-07-11)
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
### Features
|
|
253
|
-
|
|
254
|
-
* base evm tx parser + avalanche support ([#855](https://github.com/shapeshift/lib/issues/855)) ([153f251](https://github.com/shapeshift/lib/commit/153f251109e56089e80379df485d19a7b33c105d)), closes [#862](https://github.com/shapeshift/lib/issues/862)
|
|
255
|
-
|
|
256
|
-
# [@shapeshiftoss/unchained-client-v9.0.3](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.0.2...@shapeshiftoss/unchained-client-v9.0.3) (2022-07-07)
|
|
257
|
-
|
|
258
|
-
# [@shapeshiftoss/unchained-client-v9.0.2](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.0.1...@shapeshiftoss/unchained-client-v9.0.2) (2022-06-29)
|
|
259
|
-
|
|
260
|
-
# [@shapeshiftoss/unchained-client-v9.0.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v9.0.0...@shapeshiftoss/unchained-client-v9.0.1) (2022-06-15)
|
|
261
|
-
|
|
262
|
-
# [@shapeshiftoss/unchained-client-v9.0.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.6.1...@shapeshiftoss/unchained-client-v9.0.0) (2022-06-08)
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
### Features
|
|
266
|
-
|
|
267
|
-
* update btc/eth to use historical tx history and new ws payloads ([#674](https://github.com/shapeshift/lib/issues/674)) ([0189e3b](https://github.com/shapeshift/lib/commit/0189e3b4dd5a3b998ddf285e761ae11dea72f94b))
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
### BREAKING CHANGES
|
|
271
|
-
|
|
272
|
-
* unchained-client and chain-adapters
|
|
273
|
-
|
|
274
|
-
* revert pre release package versions
|
|
275
|
-
|
|
276
|
-
* revert changes to no breaking packages
|
|
277
|
-
|
|
278
|
-
* dependencies
|
|
279
|
-
|
|
280
|
-
* pin package versions
|
|
281
|
-
|
|
282
|
-
# [@shapeshiftoss/unchained-client-v8.6.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.6.0...@shapeshiftoss/unchained-client-v8.6.1) (2022-06-08)
|
|
283
|
-
|
|
284
|
-
# [@shapeshiftoss/unchained-client-v8.6.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.5.0...@shapeshiftoss/unchained-client-v8.6.0) (2022-06-07)
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### Features
|
|
288
|
-
|
|
289
|
-
* generic erc20 approve ([#731](https://github.com/shapeshift/lib/issues/731)) ([ec7f058](https://github.com/shapeshift/lib/commit/ec7f058f21a1c7b31345a2a901250ff589c625e9))
|
|
290
|
-
|
|
291
|
-
# [@shapeshiftoss/unchained-client-v8.5.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.4.1...@shapeshiftoss/unchained-client-v8.5.0) (2022-06-01)
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
### Features
|
|
295
|
-
|
|
296
|
-
* thorchain memo support ([#716](https://github.com/shapeshift/lib/issues/716)) ([fe9762f](https://github.com/shapeshift/lib/commit/fe9762fd7656ef17d93885ff154a991978c3e93b))
|
|
297
|
-
|
|
298
|
-
# [@shapeshiftoss/unchained-client-v8.4.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.4.0...@shapeshiftoss/unchained-client-v8.4.1) (2022-06-01)
|
|
299
|
-
|
|
300
|
-
# [@shapeshiftoss/unchained-client-v8.4.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.3.4...@shapeshiftoss/unchained-client-v8.4.0) (2022-05-26)
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
### Features
|
|
304
|
-
|
|
305
|
-
* thorswapper initialize ([#703](https://github.com/shapeshift/lib/issues/703)) ([73cc081](https://github.com/shapeshift/lib/commit/73cc081b66cc58177415bf425f7899b289cc33af))
|
|
306
|
-
|
|
307
|
-
# [@shapeshiftoss/unchained-client-v8.3.4](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.3.3...@shapeshiftoss/unchained-client-v8.3.4) (2022-05-25)
|
|
308
|
-
|
|
309
|
-
# [@shapeshiftoss/unchained-client-v8.3.3](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.3.2...@shapeshiftoss/unchained-client-v8.3.3) (2022-05-24)
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
### Bug Fixes
|
|
313
|
-
|
|
314
|
-
* fix osmosis assets & parsing ([#689](https://github.com/shapeshift/lib/issues/689)) ([5360fba](https://github.com/shapeshift/lib/commit/5360fba40c050ef9e793b4b44ab5527cbf73d455))
|
|
315
|
-
|
|
316
|
-
# [@shapeshiftoss/unchained-client-v8.3.2](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.3.1...@shapeshiftoss/unchained-client-v8.3.2) (2022-05-24)
|
|
317
|
-
|
|
318
|
-
# [@shapeshiftoss/unchained-client-v8.3.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.3.0...@shapeshiftoss/unchained-client-v8.3.1) (2022-05-20)
|
|
319
|
-
|
|
320
|
-
# [@shapeshiftoss/unchained-client-v8.3.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.2.0...@shapeshiftoss/unchained-client-v8.3.0) (2022-05-20)
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
### Features
|
|
324
|
-
|
|
325
|
-
* chain and asset utility functions ([#654](https://github.com/shapeshift/lib/issues/654)) ([4e12ce6](https://github.com/shapeshift/lib/commit/4e12ce6fd10cd8bf34e059e63c2a162fb6576932))
|
|
326
|
-
|
|
327
|
-
# [@shapeshiftoss/unchained-client-v8.2.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.1.0...@shapeshiftoss/unchained-client-v8.2.0) (2022-05-18)
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
### Features
|
|
331
|
-
|
|
332
|
-
* osmosis adapter ([#664](https://github.com/shapeshift/lib/issues/664)) ([8bcdfd1](https://github.com/shapeshift/lib/commit/8bcdfd17a9902fb08239c4b4a2db3ae6b6e15183))
|
|
333
|
-
|
|
334
|
-
# [@shapeshiftoss/unchained-client-v8.1.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.0.1...@shapeshiftoss/unchained-client-v8.1.0) (2022-05-18)
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
### Features
|
|
338
|
-
|
|
339
|
-
* add uni-v2 staking parser ([#648](https://github.com/shapeshift/lib/issues/648)) ([4e09ab7](https://github.com/shapeshift/lib/commit/4e09ab73c5768df4368e59aad7eb4107ef4dede7))
|
|
340
|
-
|
|
341
|
-
# [@shapeshiftoss/unchained-client-v8.0.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v8.0.0...@shapeshiftoss/unchained-client-v8.0.1) (2022-05-18)
|
|
342
|
-
|
|
343
|
-
# [@shapeshiftoss/unchained-client-v8.0.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v7.0.0...@shapeshiftoss/unchained-client-v8.0.0) (2022-05-18)
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
### Performance Improvements
|
|
347
|
-
|
|
348
|
-
* replace enums with dynamically derived object literals ([#656](https://github.com/shapeshift/lib/issues/656)) ([6d2d821](https://github.com/shapeshift/lib/commit/6d2d821318da9db4afec97b1247cf006a5fc42d2))
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
### BREAKING CHANGES
|
|
352
|
-
|
|
353
|
-
* the enum removal will need to be handled by consumers to use the new constants.
|
|
354
|
-
|
|
355
|
-
* chore: remove toString() and associated comment
|
|
356
|
-
|
|
357
|
-
* chore: remove string literals
|
|
358
|
-
|
|
359
|
-
* chore: optimize imports
|
|
360
|
-
|
|
361
|
-
* chore: use string union for AssetNamespace
|
|
362
|
-
|
|
363
|
-
* chore: update README
|
|
364
|
-
|
|
365
|
-
# [@shapeshiftoss/unchained-client-v7.0.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v6.12.1...@shapeshiftoss/unchained-client-v7.0.0) (2022-05-10)
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
### Performance Improvements
|
|
369
|
-
|
|
370
|
-
* **chainAdapters:** replace caip properties with their high-level counterparts ([#606](https://github.com/shapeshift/lib/issues/606)) ([49e8fef](https://github.com/shapeshift/lib/commit/49e8fefabb6eaaecb357ddc16e11ad2080eb3082))
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
### BREAKING CHANGES
|
|
374
|
-
|
|
375
|
-
* **chainAdapters:** updates chain adapters with caip-free types and vernacular.
|
|
376
|
-
|
|
377
|
-
* cleanup unchained commit cherry-pick
|
|
378
|
-
|
|
379
|
-
* Remove caip comment
|
|
380
|
-
|
|
381
|
-
* bump chain-adapters version and regen yarn lock
|
|
382
|
-
|
|
383
|
-
* chore: update yarn.lock
|
|
384
|
-
|
|
385
|
-
* chore: update yarn.lock
|
|
386
|
-
|
|
387
|
-
Co-authored-by: kaladinlight <35275952+kaladinlight@users.noreply.github.com>
|
|
388
|
-
|
|
389
|
-
# [@shapeshiftoss/unchained-client-v6.12.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v6.12.0...@shapeshiftoss/unchained-client-v6.12.1) (2022-05-09)
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
### Performance Improvements
|
|
393
|
-
|
|
394
|
-
* **caip:** remove caip vernacular ([#625](https://github.com/shapeshift/lib/issues/625)) ([f92b4f0](https://github.com/shapeshift/lib/commit/f92b4f0ed89f4f3352dd0130757fa686a214c6d4))
|
|
395
|
-
|
|
396
|
-
# [@shapeshiftoss/unchained-client-v6.12.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v6.11.1...@shapeshiftoss/unchained-client-v6.12.0) (2022-05-06)
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
### Features
|
|
400
|
-
|
|
401
|
-
* **caip:** flatten exports ([#560](https://github.com/shapeshift/lib/issues/560)) ([e326522](https://github.com/shapeshift/lib/commit/e3265223dca3c2126b2822395353f6650c4b0342))
|
|
402
|
-
|
|
403
|
-
# [@shapeshiftoss/unchained-client-v6.11.1](https://github.com/shapeshift/lib/compare/@shapeshiftoss/unchained-client-v6.11.0...@shapeshiftoss/unchained-client-v6.11.1) (2022-05-05)
|
|
404
|
-
|
|
405
|
-
# @shapeshiftoss/unchained-client-v6.11.0 (2022-05-05)
|
|
406
|
-
|
|
407
|
-
### Features
|
|
408
|
-
|
|
409
|
-
- unchained client ([#603](https://github.com/shapeshift/lib/issues/603)) ([0e0df76](https://github.com/shapeshift/lib/commit/0e0df7654cd8d9a5ebcab5ce4bb54d825981440b))
|