Skip to content

Commit 602ebcb

Browse files
1201 Asset type protocol refactor (#1203)
* Wallet reafactored with new Asset type * MAYA protocol with new Asset type and CryptoAmount class * Thorchain protocol with new Asset type and CryptoAmount class * Aggregator with new Asset type and CryptoAmount class * Missing changes * Clean Cryptoamount * 1205 aggregator affiliates (#1206) * Affiliate bug fix in doSwap * Changeset version file * Version Packages (#1210) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * 1207 Estimate MAYAName (#1211) * getMAYANameDetails response standardise with Thorchain * Estimate MAYAName * Tests * Changeset version file * 1196 Mayachain AMM docs (#1197) * Get MAYANames by address * Changeset version file * MAYAChainAMM docs * Readme links * Dependencies removed * Changeset version files removed * 1212 Register and Update Thorname and MAYAName (#1214) * getMAYANameDetails response standardise with Thorchain * Estimate MAYAName * Tests * Changeset version file * MAYAName feature * Tests * Register and Update THORName * Error bug fix * Tests * Changeset version files * Version Packages (#1215) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * 1208 Update THORChain client apis (#1216) * Thornode v1.133.0 * Midgard v2.32.2 * Changeset version files * Action TxType parameter * Tests * Changeset version file * 1208 Update MAYAChain client apis (#1217) * MAYANode v1.110.0 * Streaming swap parameters for quote swap * MAYAChainAMM tests * Midgard v2.10.0 * Changeset version files * Version Packages (#1220) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * 1223 MAYAChain streaming swaps (#1222) * Streaming and missing parameters for QuoteSwap type * Tests * Changeset version files * e2e tests * Changeset version files * 1201 Examples and tests with new Asset type and CryptoAmount refactor (#1204) * Examples and tests with new Asset type and CryptoAmount refactor * Example bug fix --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent eb229aa commit 602ebcb

File tree

171 files changed

+5863
-1486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+5863
-1486
lines changed

.changeset/large-hounds-cough.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@xchainjs/xchain-wallet': major
3+
---
4+
5+
New type `CosmosTxParams` for Cosmos transfers.

.changeset/seven-ducks-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@xchainjs/xchain-mayachain-amm': patch
3+
---
4+
5+
Streaming swap parameters for `estimateSwap`, `validateSwap` and `doSwap` method.

.changeset/shy-penguins-whisper.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@xchainjs/xchain-mayachain-query': patch
3+
---
4+
5+
`QuoteSwap` type updated. `Fees` type with `liquidityFee` and `totalFee` parameters.

.changeset/stupid-teachers-hear.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@xchainjs/xchain-mayachain-query': major
3+
'@xchainjs/xchain-thorchain-query': major
4+
'@xchainjs/xchain-mayachain-amm': major
5+
'@xchainjs/xchain-midgard-query': major
6+
'@xchainjs/xchain-thorchain-amm': major
7+
'@xchainjs/xchain-aggregator': major
8+
---
9+
10+
Methods and types updated with `Asset` type refactored.

.changeset/tame-pumpkins-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@xchainjs/xchain-mayachain-query': patch
3+
---
4+
5+
Streaming swap parameters for `quoteSwap` method.

examples/check-tx/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# xchainjs-check-tx
22

3+
## 1.0.10
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7d70a1c]
8+
- Updated dependencies [7d70a1c]
9+
- Updated dependencies [7d70a1c]
10+
- @xchainjs/xchain-midgard@0.5.8
11+
- @xchainjs/xchain-thornode@0.3.17
12+
- @xchainjs/xchain-midgard-query@0.1.20
13+
- @xchainjs/xchain-thorchain-query@0.7.17
14+
15+
## 1.0.9
16+
17+
### Patch Changes
18+
19+
- Updated dependencies [7df3870]
20+
- @xchainjs/xchain-thorchain-query@0.7.16
21+
322
## 1.0.8
423

524
### Patch Changes

examples/check-tx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "xchainjs-check-tx",
33
"private": true,
4-
"version": "1.0.8",
4+
"version": "1.0.10",
55
"scripts": {
66
"checktx": "npx ts-node check-tx.ts",
77
"build": "tsc --noEmit"

examples/do-maya-swap/README.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

examples/do-swap/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# xchainjs-do-swap
22

3+
## 1.0.19
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7d70a1c]
8+
- Updated dependencies [7d70a1c]
9+
- Updated dependencies [7d70a1c]
10+
- @xchainjs/xchain-midgard@0.5.8
11+
- @xchainjs/xchain-thornode@0.3.17
12+
- @xchainjs/xchain-midgard-query@0.1.20
13+
- @xchainjs/xchain-thorchain-query@0.7.17
14+
- @xchainjs/xchain-thorchain-amm@1.1.18
15+
16+
## 1.0.18
17+
18+
### Patch Changes
19+
20+
- Updated dependencies [7df3870]
21+
- Updated dependencies [7df3870]
22+
- Updated dependencies [7df3870]
23+
- Updated dependencies [7df3870]
24+
- Updated dependencies [7df3870]
25+
- @xchainjs/xchain-thorchain-amm@1.1.17
26+
- @xchainjs/xchain-thorchain-query@0.7.16
27+
328
## 1.0.17
429

530
### Patch Changes

examples/do-swap/doStreamingSwap.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
assetToBase,
2020
assetToString,
2121
delay,
22+
isSynthAsset,
2223
register9Rheader,
2324
} from '@xchainjs/xchain-util'
2425
import { Wallet } from '@xchainjs/xchain-wallet'
@@ -80,7 +81,7 @@ const doStreamingSwap = async (tcAmm: ThorchainAMM, wallet: Wallet) => {
8081
const streamingInterval = Number(process.argv[8])
8182
const streamingQuantity = Number(process.argv[9])
8283

83-
const toChain = toAsset.synth ? THORChain : toAsset.chain
84+
const toChain = isSynthAsset(toAsset) ? THORChain : toAsset.chain
8485

8586
const swapParams: QuoteSwapParams = {
8687
fromAddress: await wallet.getAddress(fromAsset.chain),

0 commit comments

Comments
 (0)