Skip to content

Commit

Permalink
Add OO and inch networks (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
axtezy authored Sep 1, 2023
2 parents e3dc932 + e1edbf8 commit ff17c6a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 31 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/cd-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,3 @@ jobs:
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

draft:
name: Draft release
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Get version from package.json
id: release
run: echo "::set-output name=version::$(yarn info rubic-sdk version --silent)"

- name: Get PR description
uses: 8BitJonny/[email protected]
id: PR

- name: Draft release
uses: release-drafter/release-drafter@v5
with:
tag: v${{ steps.release.outputs.version }}
name: Rubic SDK ${{ steps.release.outputs.version }}
version: v${{ steps.release.outputs.version }}
footer: ${{ steps.PR.outputs.pr_body }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE_VERSION: $(yarn info rubic-sdk version --silent)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubic-sdk",
"version": "4.22.1",
"version": "4.22.2",
"description": "Simplify dApp creation",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { OneinchArbitrumProvider } from 'src/features/on-chain/calculation-manager/providers/dexes/arbitrum/oneinch-arbitrum/oneinch-arbitrum-provider';
import { OneinchAuroraProvider } from 'src/features/on-chain/calculation-manager/providers/dexes/aurora/oneinch-arbitrum/oneinch-aurora-provider';
import { OneinchAvalancheProvider } from 'src/features/on-chain/calculation-manager/providers/dexes/avalanche/oneinch-avalanche/oneinch-avalanche-provider';
import { OneinchBaseProvider } from 'src/features/on-chain/calculation-manager/providers/dexes/base/oneinch-base/oneinch-base-provider';
import { OneinchBscProvider } from 'src/features/on-chain/calculation-manager/providers/dexes/bsc/oneinch-bsc/oneinch-bsc-provider';
import { OneinchEthereumProvider } from 'src/features/on-chain/calculation-manager/providers/dexes/ethereum/oneinch-ethereum/oneinch-ethereum-provider';
import { OneinchFantomProvider } from 'src/features/on-chain/calculation-manager/providers/dexes/fantom/oneinch-fantom/oneinch-fantom-provider';
Expand All @@ -17,5 +18,6 @@ export const OneinchTradeProviders = [
OneinchArbitrumProvider,
OneinchOptimismProvider,
OneinchZksyncProvider,
OneinchAuroraProvider
OneinchAuroraProvider,
OneinchBaseProvider
] as const;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { BLOCKCHAIN_NAME } from 'src/core/blockchain/models/blockchain-name';
import { OneinchAbstractProvider } from 'src/features/on-chain/calculation-manager/providers/dexes/common/oneinch-abstract/oneinch-abstract-provider';

export class OneinchBaseProvider extends OneinchAbstractProvider {
public readonly blockchain = BLOCKCHAIN_NAME.BASE;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ export const openOceanBlockchainName: Record<OpenoceanOnChainSupportedBlockchain
[BLOCKCHAIN_NAME.HARMONY]: 'harmony',
[BLOCKCHAIN_NAME.OPTIMISM]: 'optimism',
[BLOCKCHAIN_NAME.LINEA]: 'linea',
[BLOCKCHAIN_NAME.POLYGON_ZKEVM]: 'polygon_zkevm'
[BLOCKCHAIN_NAME.POLYGON_ZKEVM]: 'polygon_zkevm',
[BLOCKCHAIN_NAME.ZK_SYNC]: 'zksync',
[BLOCKCHAIN_NAME.BASE]: 'base'
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export const openoceanOnChainSupportedBlockchains = [
BLOCKCHAIN_NAME.GNOSIS,
BLOCKCHAIN_NAME.OPTIMISM,
BLOCKCHAIN_NAME.LINEA,
BLOCKCHAIN_NAME.POLYGON_ZKEVM
BLOCKCHAIN_NAME.POLYGON_ZKEVM,
BLOCKCHAIN_NAME.ZK_SYNC,
BLOCKCHAIN_NAME.BASE
] as const;

export type OpenoceanOnChainSupportedBlockchain =
Expand Down

0 comments on commit ff17c6a

Please sign in to comment.