@galacticcouncil/xc-core 1.0.0 → 1.1.0-pr320-715f299

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ import { AnyChain } from '../chain';
2
+ export type AcrossDef = {
3
+ spokePool: string;
4
+ multicallHandler: string;
5
+ snowbridgeL2Adaptor?: string;
6
+ snowbridgeL1Adaptor?: string;
7
+ swapRouter?: string;
8
+ swapQuoter?: string;
9
+ l1FeeToken?: string;
10
+ };
11
+ export declare class Across {
12
+ readonly spokePool: string;
13
+ readonly multicallHandler: string;
14
+ readonly snowbridgeL2Adaptor?: string;
15
+ readonly snowbridgeL1Adaptor?: string;
16
+ readonly swapRouter?: string;
17
+ readonly swapQuoter?: string;
18
+ readonly l1FeeToken?: string;
19
+ constructor({ spokePool, multicallHandler, snowbridgeL2Adaptor, snowbridgeL1Adaptor, swapRouter, swapQuoter, l1FeeToken, }: AcrossDef);
20
+ static fromChain(chain: AnyChain): Across;
21
+ static isKnown(chain: AnyChain): boolean;
22
+ getSpokePool(): string;
23
+ getMulticallHandler(): string;
24
+ getSnowbridgeL2Adaptor(): string | undefined;
25
+ getSnowbridgeL1Adaptor(): string | undefined;
26
+ getSwapRouter(): string | undefined;
27
+ getSwapQuoter(): string | undefined;
28
+ getL1FeeToken(): string | undefined;
29
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
1
  export * from './wormhole';
2
2
  export * from './snowbridge';
3
3
  export * from './basejump';
4
+ export * from './across';
@@ -1,11 +1,12 @@
1
1
  import { Chain as EvmChainDef } from 'viem';
2
2
  import { Chain, ChainAssetData, ChainCurrency, ChainParams, ChainType } from './Chain';
3
- import { Basejump, BasejumpDef, Snowbridge, SnowbridgeDef, Wormhole, WormholeDef } from '../bridge';
3
+ import { Across, AcrossDef, Basejump, BasejumpDef, Snowbridge, SnowbridgeDef, Wormhole, WormholeDef } from '../bridge';
4
4
  import { EvmClient } from '../evm';
5
5
  export interface EvmChainParams extends ChainParams<ChainAssetData> {
6
6
  evmChain: EvmChainDef;
7
7
  id: number;
8
8
  rpcs?: string[];
9
+ across?: AcrossDef;
9
10
  basejump?: BasejumpDef;
10
11
  snowbridge?: SnowbridgeDef;
11
12
  wormhole?: WormholeDef;
@@ -14,10 +15,11 @@ export declare class EvmChain extends Chain<ChainAssetData> {
14
15
  readonly evmChain: EvmChainDef;
15
16
  readonly id: number;
16
17
  readonly rpcs?: string[];
18
+ readonly across?: Across;
17
19
  readonly basejump?: Basejump;
18
20
  readonly snowbridge?: Snowbridge;
19
21
  readonly wormhole?: Wormhole;
20
- constructor({ evmChain, id, rpcs, basejump, snowbridge, wormhole, ...others }: EvmChainParams);
22
+ constructor({ evmChain, id, rpcs, across, basejump, snowbridge, wormhole, ...others }: EvmChainParams);
21
23
  get evmClient(): EvmClient;
22
24
  getType(): ChainType;
23
25
  getCurrency(): Promise<ChainCurrency>;