Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
kwongpan committed Aug 6, 2024
2 parents 4b9fb2d + 7204644 commit 89e43c7
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 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.94",
"version": "0.1.95",
"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",
RFQ = "rfq",
}

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

Expand Down
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
6 changes: 2 additions & 4 deletions src/path/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ export interface PathAction {
export interface PathParams {
fromChainId: string;
toChainId: string;
fromToken: Pick<Token, "type" | "chainId" | "name" | "symbol" | "decimals" | "address">;
toToken: Pick<Token, "type" | "chainId" | "name" | "symbol" | "decimals" | "address">;
maxResults?: number;
subgraphIds?: string[];
fromToken: string;
toToken: string;
}
2 changes: 2 additions & 0 deletions src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ export enum ActionStage {
COSMOS_DESTINATION,
COSMOS_TRANSIENT,
COSMOS_ONLY,
BTC_SOURCE,
BTC_DESTINATION,
}

export interface StageContext {
Expand Down

0 comments on commit 89e43c7

Please sign in to comment.