-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/FRT-1607
- Loading branch information
Showing
147 changed files
with
6,360 additions
and
1,761 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@swapkit/api": patch | ||
--- | ||
|
||
Adds new Quote Response typing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@swapkit/toolbox-cosmos": minor | ||
--- | ||
|
||
Transfer and Deposit msg creation can be configured to not be converted to a signable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,5 +37,5 @@ | |
}, | ||
"type": "module", | ||
"types": "./src/index.ts", | ||
"version": "1.4.2" | ||
"version": "1.4.7" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,5 +28,5 @@ | |
}, | ||
"type": "module", | ||
"types": "./src/index.ts", | ||
"version": "1.3.2" | ||
"version": "1.3.7" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# @swapkit/plugin-kado | ||
|
||
## 0.2.1 | ||
|
||
### Patch Changes | ||
|
||
- [#1109](https://github.com/thorswap/SwapKit/pull/1109) [`cc61490`](https://github.com/thorswap/SwapKit/commit/cc61490c52782468ab6e4494e5120df5b2f6d038) Thanks [@0xepicode](https://github.com/0xepicode)! - Fixes plugin typing | ||
|
||
- Updated dependencies [[`cc61490`](https://github.com/thorswap/SwapKit/commit/cc61490c52782468ab6e4494e5120df5b2f6d038), [`cc61490`](https://github.com/thorswap/SwapKit/commit/cc61490c52782468ab6e4494e5120df5b2f6d038), [`cc61490`](https://github.com/thorswap/SwapKit/commit/cc61490c52782468ab6e4494e5120df5b2f6d038)]: | ||
- @swapkit/helpers@2.2.0 | ||
- @swapkit/api@2.0.4 | ||
|
||
## 0.2.0 | ||
|
||
### Minor Changes | ||
|
||
- [#1122](https://github.com/thorswap/SwapKit/pull/1122) [`ad33986`](https://github.com/thorswap/SwapKit/commit/ad339865e27f725b7464aa69894def19768087c8) Thanks [@towanTG](https://github.com/towanTG)! - Exports typing and helpers and changes kado url creation | ||
|
||
## 0.1.4 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [[`448604a`](https://github.com/thorswap/SwapKit/commit/448604ac8a5f901be53cbbf0be113ad8ff6d9c75), [`18f1bd7`](https://github.com/thorswap/SwapKit/commit/18f1bd7c52516b48d571badae3580236f8aa62e9)]: | ||
- @swapkit/helpers@2.1.0 | ||
- @swapkit/api@2.0.3 | ||
|
||
## 0.1.3 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [[`00488c6`](https://github.com/thorswap/SwapKit/commit/00488c6235e4d1c322cd5b4b26dc8143f90e73d3)]: | ||
- @swapkit/helpers@2.0.0 | ||
- @swapkit/api@2.0.2 | ||
|
||
## 0.1.2 | ||
|
||
### Patch Changes | ||
|
||
- [#1112](https://github.com/thorswap/SwapKit/pull/1112) [`1859a1d`](https://github.com/thorswap/SwapKit/commit/1859a1d7664ee07d1e23ed406b4ee59669122cec) Thanks [@towanTG](https://github.com/towanTG)! - Fixes kado widget mapping | ||
|
||
## 0.1.1 | ||
|
||
### Patch Changes | ||
|
||
- [#1110](https://github.com/thorswap/SwapKit/pull/1110) [`8e64b40`](https://github.com/thorswap/SwapKit/commit/8e64b40af1a97f9d3182ba8b9acb2ff1df73d0a8) Thanks [@towanTG](https://github.com/towanTG)! - Adds missing swap method to plugin | ||
|
||
## 0.1.0 | ||
|
||
### Minor Changes | ||
|
||
- [#1107](https://github.com/thorswap/SwapKit/pull/1107) [`d88fe02`](https://github.com/thorswap/SwapKit/commit/d88fe02d8683a74a9b2f521b60381032099e5c40) Thanks [@towanTG](https://github.com/towanTG)! - Adds Kado plugin | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [[`d88fe02`](https://github.com/thorswap/SwapKit/commit/d88fe02d8683a74a9b2f521b60381032099e5c40)]: | ||
- @swapkit/helpers@1.19.0 | ||
- @swapkit/api@2.0.1 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"author": "swapkit-oss", | ||
"dependencies": { | ||
"@swapkit/api": "workspace:*", | ||
"@swapkit/helpers": "workspace:*" | ||
}, | ||
"description": "SwapKit Plugin - Kado", | ||
"files": [ | ||
"src/", | ||
"dist/" | ||
], | ||
"homepage": "https://github.com/thorswap/SwapKit", | ||
"license": "Apache-2.0", | ||
"main": "./dist/index.js", | ||
"name": "@swapkit/plugin-kado", | ||
"react-native": "./src/index.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/thorswap/SwapKit.git" | ||
}, | ||
"scripts": { | ||
"build": "bun run ./build.ts", | ||
"clean": "rm -rf dist node_modules *.tsbuildinfo", | ||
"lint": "biome check --write ./src", | ||
"test": "echo 'bun test'", | ||
"test:coverage": "bun test --coverage", | ||
"type-check": "tsc --noEmit" | ||
}, | ||
"type": "module", | ||
"types": "./src/index.ts", | ||
"version": "0.2.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Chain } from "@swapkit/helpers"; | ||
|
||
export const SupportedKadoChain = { | ||
thorchain: Chain.THORChain, | ||
solana: Chain.Solana, | ||
polygon: Chain.Polygon, | ||
Optimism: Chain.Optimism, | ||
litecoin: Chain.Litecoin, | ||
kujira: Chain.Kujira, | ||
ethereum: Chain.Ethereum, | ||
"cosmos hub": Chain.Cosmos, | ||
bitcoin: Chain.Bitcoin, | ||
base: Chain.Base, | ||
Avalanche: Chain.Avalanche, | ||
Arbitrum: Chain.Arbitrum, | ||
}; | ||
|
||
export const ChainToKadoChain = (chain: Chain) => { | ||
const entries = Object.entries(SupportedKadoChain); | ||
const found = entries.find(([_, value]) => value === chain); | ||
if (!found) throw new Error(`Chain ${chain} not supported`); | ||
return found[0]; | ||
}; | ||
|
||
export const KadoChainToChain = (kadoChain: string) => { | ||
const found = Object.keys(SupportedKadoChain).includes(kadoChain); | ||
if (!found) throw new Error(`KadoChain ${kadoChain} not supported`); | ||
return SupportedKadoChain[kadoChain as keyof typeof SupportedKadoChain]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from "./helpers"; | ||
export * from "./plugin"; | ||
export * from "./types"; |
Oops, something went wrong.