@xchainjs/xchain-thorchain 0.25.1 → 0.25.2-alpha.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/CHANGELOG.md +11 -0
- package/lib/index.esm.js +1345 -14
- package/lib/index.js +1345 -14
- package/lib/types/client-types.d.ts +3 -3
- package/lib/util.d.ts +6 -5
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { cosmosclient } from '@cosmos-client/core';
|
|
2
1
|
import { Network, Tx, TxParams } from '@xchainjs/xchain-client';
|
|
3
2
|
import { Asset, BaseAmount } from '@xchainjs/xchain-util';
|
|
4
3
|
import BigNumber from 'bignumber.js';
|
|
4
|
+
import Long from 'long';
|
|
5
5
|
export declare type NodeUrl = {
|
|
6
6
|
node: string;
|
|
7
7
|
rpc: string;
|
|
@@ -38,8 +38,8 @@ export declare type TxOfflineParams = TxParams & {
|
|
|
38
38
|
* Optional: It can be ignored if asset to send from is RUNE
|
|
39
39
|
*/
|
|
40
40
|
fromAssetBalance?: BaseAmount;
|
|
41
|
-
fromAccountNumber:
|
|
42
|
-
fromSequence:
|
|
41
|
+
fromAccountNumber: Long;
|
|
42
|
+
fromSequence: Long;
|
|
43
43
|
gasLimit?: BigNumber;
|
|
44
44
|
};
|
|
45
45
|
/**
|
package/lib/util.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { cosmosclient, proto } from '@cosmos-client/core';
|
|
|
2
2
|
import { Address, Balance, Fees, Network, TxHash } from '@xchainjs/xchain-client';
|
|
3
3
|
import { CosmosSDKClient, TxLog } from '@xchainjs/xchain-cosmos';
|
|
4
4
|
import { Asset, BaseAmount } from '@xchainjs/xchain-util';
|
|
5
|
+
import Long from 'long';
|
|
5
6
|
import { ChainId, ChainIds, ClientUrl, ExplorerUrls, TxData } from './types';
|
|
6
7
|
import { MsgNativeTx } from './types/messages';
|
|
7
8
|
export declare const DECIMAL = 8;
|
|
@@ -99,8 +100,8 @@ export declare const buildUnsignedTx: ({ cosmosSdk, txBody, signerPubkey, sequen
|
|
|
99
100
|
cosmosSdk: cosmosclient.CosmosSDK;
|
|
100
101
|
txBody: proto.cosmos.tx.v1beta1.TxBody;
|
|
101
102
|
signerPubkey: proto.google.protobuf.Any;
|
|
102
|
-
sequence:
|
|
103
|
-
gasLimit?:
|
|
103
|
+
sequence: Long;
|
|
104
|
+
gasLimit?: Long.Long | undefined;
|
|
104
105
|
}) => cosmosclient.TxBuilder;
|
|
105
106
|
/**
|
|
106
107
|
* Estimates usage of gas
|
|
@@ -113,10 +114,10 @@ export declare const getEstimatedGas: ({ cosmosSDKClient, txBody, privKey, accou
|
|
|
113
114
|
cosmosSDKClient: CosmosSDKClient;
|
|
114
115
|
txBody: proto.cosmos.tx.v1beta1.TxBody;
|
|
115
116
|
privKey: proto.cosmos.crypto.secp256k1.PrivKey;
|
|
116
|
-
accountNumber:
|
|
117
|
-
accountSequence:
|
|
117
|
+
accountNumber: Long;
|
|
118
|
+
accountSequence: Long;
|
|
118
119
|
multiplier?: number | undefined;
|
|
119
|
-
}) => Promise<
|
|
120
|
+
}) => Promise<Long | undefined>;
|
|
120
121
|
/**
|
|
121
122
|
* Structure a MsgDeposit
|
|
122
123
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-thorchain",
|
|
3
|
-
"version": "0.25.1",
|
|
3
|
+
"version": "0.25.2-alpha.1",
|
|
4
4
|
"description": "Custom Thorchain client and utilities used by XChainJS clients",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"THORChain",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"generate:ThorchainMsgs": "./genMsgs.sh"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@cosmos-client/core": "^0.45.
|
|
37
|
+
"@cosmos-client/core": "^0.45.10",
|
|
38
38
|
"@types/big.js": "^6.0.0",
|
|
39
39
|
"@xchainjs/xchain-client": "^0.11.1",
|
|
40
|
-
"@xchainjs/xchain-cosmos": "^0.
|
|
40
|
+
"@xchainjs/xchain-cosmos": "^0.18.0-alpha.2",
|
|
41
41
|
"@xchainjs/xchain-crypto": "^0.2.4",
|
|
42
42
|
"@xchainjs/xchain-util": "^0.5.1",
|
|
43
43
|
"axios": "^0.25.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@cosmos-client/core": "^0.45.
|
|
51
|
+
"@cosmos-client/core": "^0.45.10",
|
|
52
52
|
"@xchainjs/xchain-client": "^0.11.1",
|
|
53
|
-
"@xchainjs/xchain-cosmos": "^0.
|
|
53
|
+
"@xchainjs/xchain-cosmos": "^0.18.0-alpha.2",
|
|
54
54
|
"@xchainjs/xchain-crypto": "^0.2.4",
|
|
55
55
|
"@xchainjs/xchain-util": "^0.5.1",
|
|
56
56
|
"axios": "^0.25.0",
|