@xchainjs/xchain-thorchain-amm 3.0.37 → 3.0.38

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/README.md CHANGED
@@ -113,13 +113,3 @@ If you plan on using the publicly accessible endpoints listed below, ensure that
113
113
  - https://api.haskoin.com (BTC/BCH/LTC)
114
114
  - https://gateway.liquify.com/chain/thorchain_api
115
115
 
116
- Example
117
-
118
- ```typescript
119
- import cosmosclient from '@cosmos-client/core'
120
- import axios from 'axios'
121
- import { register9Rheader } from '@xchainjs/xchain-util'
122
-
123
- register9Rheader(axios)
124
- register9Rheader(cosmosclient.config.globalAxios)
125
- ```
package/lib/index.esm.js CHANGED
@@ -3100,12 +3100,13 @@ class ThorchainAction {
3100
3100
  });
3101
3101
  }
3102
3102
  static makeProtocolAction(_a) {
3103
- return __awaiter(this, arguments, void 0, function* ({ wallet, assetAmount, memo }) {
3103
+ return __awaiter(this, arguments, void 0, function* ({ wallet, assetAmount, memo, walletIndex, }) {
3104
3104
  const hash = yield wallet.deposit({
3105
3105
  chain: THORChain,
3106
3106
  asset: assetAmount.asset,
3107
3107
  amount: assetAmount.baseAmount,
3108
3108
  memo,
3109
+ walletIndex,
3109
3110
  });
3110
3111
  return {
3111
3112
  hash,
@@ -3114,7 +3115,7 @@ class ThorchainAction {
3114
3115
  });
3115
3116
  }
3116
3117
  static makeNonProtocolAction(_a) {
3117
- return __awaiter(this, arguments, void 0, function* ({ wallet, assetAmount, recipient, memo, }) {
3118
+ return __awaiter(this, arguments, void 0, function* ({ wallet, assetAmount, recipient, memo, walletIndex, }) {
3118
3119
  // Non EVM actions
3119
3120
  if (!isProtocolEVMChain(assetAmount.asset.chain)) {
3120
3121
  if (isProtocolBFTChain(assetAmount.asset.chain)) {
@@ -3123,6 +3124,7 @@ class ThorchainAction {
3123
3124
  amount: assetAmount.baseAmount,
3124
3125
  recipient,
3125
3126
  memo,
3127
+ walletIndex,
3126
3128
  });
3127
3129
  return {
3128
3130
  hash,
@@ -3136,6 +3138,7 @@ class ThorchainAction {
3136
3138
  recipient,
3137
3139
  memo,
3138
3140
  feeRate: feeRates.fast,
3141
+ walletIndex,
3139
3142
  });
3140
3143
  return {
3141
3144
  hash,
@@ -3171,6 +3174,7 @@ class ThorchainAction {
3171
3174
  gasPrice: gasPrices.fast,
3172
3175
  isMemoEncoded: true,
3173
3176
  gasLimit: new BigNumber(160000),
3177
+ walletIndex,
3174
3178
  });
3175
3179
  return {
3176
3180
  hash,
package/lib/index.js CHANGED
@@ -3102,12 +3102,13 @@ class ThorchainAction {
3102
3102
  });
3103
3103
  }
3104
3104
  static makeProtocolAction(_a) {
3105
- return __awaiter(this, arguments, void 0, function* ({ wallet, assetAmount, memo }) {
3105
+ return __awaiter(this, arguments, void 0, function* ({ wallet, assetAmount, memo, walletIndex, }) {
3106
3106
  const hash = yield wallet.deposit({
3107
3107
  chain: xchainThorchain.THORChain,
3108
3108
  asset: assetAmount.asset,
3109
3109
  amount: assetAmount.baseAmount,
3110
3110
  memo,
3111
+ walletIndex,
3111
3112
  });
3112
3113
  return {
3113
3114
  hash,
@@ -3116,7 +3117,7 @@ class ThorchainAction {
3116
3117
  });
3117
3118
  }
3118
3119
  static makeNonProtocolAction(_a) {
3119
- return __awaiter(this, arguments, void 0, function* ({ wallet, assetAmount, recipient, memo, }) {
3120
+ return __awaiter(this, arguments, void 0, function* ({ wallet, assetAmount, recipient, memo, walletIndex, }) {
3120
3121
  // Non EVM actions
3121
3122
  if (!isProtocolEVMChain(assetAmount.asset.chain)) {
3122
3123
  if (isProtocolBFTChain(assetAmount.asset.chain)) {
@@ -3125,6 +3126,7 @@ class ThorchainAction {
3125
3126
  amount: assetAmount.baseAmount,
3126
3127
  recipient,
3127
3128
  memo,
3129
+ walletIndex,
3128
3130
  });
3129
3131
  return {
3130
3132
  hash,
@@ -3138,6 +3140,7 @@ class ThorchainAction {
3138
3140
  recipient,
3139
3141
  memo,
3140
3142
  feeRate: feeRates.fast,
3143
+ walletIndex,
3141
3144
  });
3142
3145
  return {
3143
3146
  hash,
@@ -3173,6 +3176,7 @@ class ThorchainAction {
3173
3176
  gasPrice: gasPrices.fast,
3174
3177
  isMemoEncoded: true,
3175
3178
  gasLimit: new BigNumber(160000),
3179
+ walletIndex,
3176
3180
  });
3177
3181
  return {
3178
3182
  hash,
@@ -7,11 +7,13 @@ export type NonProtocolActionParams = {
7
7
  assetAmount: CryptoAmount<Asset | TokenAsset>;
8
8
  recipient: Address;
9
9
  memo: string;
10
+ walletIndex?: number;
10
11
  };
11
12
  export type ProtocolActionParams = {
12
13
  wallet: Wallet;
13
14
  assetAmount: CryptoAmount<CompatibleAsset>;
14
15
  memo: string;
16
+ walletIndex?: number;
15
17
  };
16
18
  export type ActionParams = ProtocolActionParams | NonProtocolActionParams;
17
19
  export declare class ThorchainAction {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-thorchain-amm",
3
- "version": "3.0.37",
3
+ "version": "3.0.38",
4
4
  "description": "module that exposes estimating & swappping cryptocurrency assets on thorchain",
5
5
  "keywords": [
6
6
  "THORChain",
@@ -36,31 +36,31 @@
36
36
  "url": "https://github.com/xchainjs/xchainjs-lib/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@xchainjs/xchain-avax": "2.0.17",
40
- "@xchainjs/xchain-base": "1.0.17",
41
- "@xchainjs/xchain-bitcoin": "2.2.4",
42
- "@xchainjs/xchain-bitcoincash": "2.2.5",
43
- "@xchainjs/xchain-bsc": "2.0.18",
44
- "@xchainjs/xchain-client": "2.0.13",
45
- "@xchainjs/xchain-cosmos": "3.0.13",
46
- "@xchainjs/xchain-doge": "2.2.4",
47
- "@xchainjs/xchain-ethereum": "2.0.18",
48
- "@xchainjs/xchain-evm": "2.0.17",
49
- "@xchainjs/xchain-litecoin": "2.3.1",
50
- "@xchainjs/xchain-ripple": "1.0.15",
51
- "@xchainjs/xchain-solana": "1.1.5",
52
- "@xchainjs/xchain-sui": "0.1.2",
53
- "@xchainjs/xchain-thorchain": "3.0.17",
54
- "@xchainjs/xchain-thorchain-query": "3.0.4",
55
- "@xchainjs/xchain-tron": "3.0.6",
39
+ "@xchainjs/xchain-avax": "2.0.18",
40
+ "@xchainjs/xchain-base": "1.0.18",
41
+ "@xchainjs/xchain-bitcoin": "2.2.5",
42
+ "@xchainjs/xchain-bitcoincash": "2.2.6",
43
+ "@xchainjs/xchain-bsc": "2.0.19",
44
+ "@xchainjs/xchain-client": "2.0.14",
45
+ "@xchainjs/xchain-cosmos": "3.0.14",
46
+ "@xchainjs/xchain-doge": "2.2.5",
47
+ "@xchainjs/xchain-ethereum": "2.0.19",
48
+ "@xchainjs/xchain-evm": "2.0.18",
49
+ "@xchainjs/xchain-litecoin": "2.3.2",
50
+ "@xchainjs/xchain-ripple": "1.0.16",
51
+ "@xchainjs/xchain-solana": "1.1.6",
52
+ "@xchainjs/xchain-sui": "0.1.3",
53
+ "@xchainjs/xchain-thorchain": "3.0.18",
54
+ "@xchainjs/xchain-thorchain-query": "3.0.5",
55
+ "@xchainjs/xchain-tron": "3.0.7",
56
56
  "@xchainjs/xchain-util": "2.0.7",
57
- "@xchainjs/xchain-wallet": "2.0.27",
58
- "@xchainjs/xchain-zcash": "1.3.5",
57
+ "@xchainjs/xchain-wallet": "2.0.28",
58
+ "@xchainjs/xchain-zcash": "1.3.6",
59
59
  "ethers": "^6.14.3"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@ledgerhq/hw-transport-node-hid": "^6.28.6",
63
- "axios": "1.15.2",
63
+ "axios": "1.16.1",
64
64
  "axios-mock-adapter": "^2.1.0"
65
65
  },
66
66
  "publishConfig": {