Skip to content

Commit

Permalink
added chainflip types
Browse files Browse the repository at this point in the history
  • Loading branch information
nnoln committed Jul 30, 2024
1 parent 89be1e8 commit c0d77fe
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@0xsquid/squid-types",
"version": "0.1.91",
"version": "0.1.92",
"description": "JS and TS types relating to 0xsquid related projects.",
"main": "dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/bridges/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export enum BridgeType {
CCTP = "cctp",
NOBLE_CCTP = "noble-cctp",
IBC = "ibc",
CHAINFLIP = "chainflip",
}

export enum BridgeProvider {
Expand All @@ -12,6 +13,7 @@ export enum BridgeProvider {
NOBLE_CCTP = "Noble CCTP",
IBC = "IBC",
PFM = "IBC Packet forward middleware",
CHAINFLIP = "Chainflip",
}

export type BridgeConfig = Record<string, string>;
9 changes: 8 additions & 1 deletion src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { BridgeConfig } from "bridges";
export enum ChainType {
EVM = "evm",
COSMOS = "cosmos",
BTC = "bitcoin",
}

export type BaseChain = {
Expand Down Expand Up @@ -99,7 +100,7 @@ export type CosmosGasType = {
high: number;
};

export type ChainData = EvmChain | CosmosChain;
export type ChainData = BaseChain | EvmChain | CosmosChain;

export enum ChainName {
ARBITRUM = "Arbitrum",
Expand Down Expand Up @@ -189,6 +190,9 @@ export enum ChainName {
CHAIN4ENERGY = "c4e",
SAGA = "saga",
NIBIRU = "nibiru",

// BTC
BITCOIN = "bitcoin",
}

export enum NetworkIdentifier {
Expand Down Expand Up @@ -274,6 +278,9 @@ export enum NetworkIdentifier {
CHAIN4ENERGY = "c4e",
SAGA = "saga",
NIBIRU = "nibiru",

// BTC
BITCOIN = "bitcoin",
}

export type ChainIBCInfo = {
Expand Down
1 change: 1 addition & 0 deletions src/fees/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export enum FeeType {
GAS_RECEIVER_FEE = "Gas receiver fee",
BOOST_FEE = "Boost fee",
INTEGRATOR_FEE = "Integrator fee",
CHAINFLIP_FEE = "Chainflip fee",
}

export enum GasCostType {
Expand Down
2 changes: 2 additions & 0 deletions src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ export enum ActionStage {
COSMOS_DESTINATION,
COSMOS_TRANSIENT,
COSMOS_ONLY,
BTC_SOURCE,
BTC_DESTINATION,
}

export interface StageContext {
Expand Down
7 changes: 1 addition & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,7 @@ long@^4.0.0:
resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28"
integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==

long@^5.0.0, long@^5.2.0, long@^5.2.3:
long@^5.0.0, long@^5.2.0:
version "5.2.3"
resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1"
integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==
Expand Down Expand Up @@ -2767,11 +2767,6 @@ ws@^8.13.0:
resolved "https://registry.yarnpkg.com/ws/-/ws-8.15.1.tgz#271ba33a45ca0cc477940f7f200cd7fba7ee1997"
integrity sha512-W5OZiCjXEmk0yZ66ZN82beM5Sz7l7coYxpRkzS+p9PP+ToQry8szKh+61eNktr7EA9DOwvFGhfC605jDHbP6QQ==

ws@^8.18.0:
version "8.18.0"
resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc"
integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==

ws@~8.11.0:
version "8.11.0"
resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143"
Expand Down

0 comments on commit c0d77fe

Please sign in to comment.