@xchainjs/xchain-avax 0.4.5 → 0.5.0

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,4 @@
1
+ import { ClientKeystore as EVMClientKeystore } from '@xchainjs/xchain-evm';
2
+ export declare class ClientKeystore extends EVMClientKeystore {
3
+ constructor(config?: import("@xchainjs/xchain-evm").EVMClientParams);
4
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Import statements
3
+ * Importing the `Client` class from the '@xchainjs/xchain-evm' module
4
+ * Importing the `defaultEthParams` constant from the './const' file
5
+ */
6
+ import { ClientLedger as EVMClientLedger, EVMClientParams } from '@xchainjs/xchain-evm';
7
+ /**
8
+ * Class definition for the Avalanche EVM client.
9
+ * Extends the `XchainEvmClient` class.
10
+ */
11
+ export declare class ClientLedger extends EVMClientLedger {
12
+ /**
13
+ * Constructor for the Avalanche EVM client.
14
+ * @param {Object} config - Configuration object for the client (optional).
15
+ * Defaults to `defaultEthParams` if not provided.
16
+ */
17
+ constructor(config: EVMClientParams & {
18
+ transport: any;
19
+ });
20
+ }
package/lib/const.d.ts CHANGED
@@ -4,14 +4,6 @@ export declare const AVAX_DECIMAL = 18;
4
4
  export declare const LOWER_FEE_BOUND = 2000000000;
5
5
  export declare const UPPER_FEE_BOUND = 1000000000000;
6
6
  export declare const AVAX_GAS_ASSET_DECIMAL = 18;
7
- /**
8
- * Chain identifier for AVAX.
9
- *
10
- */
11
7
  export declare const AVAXChain: "AVAX";
12
- /**
13
- * Base "chain" asset of Avalanche chain.
14
- *
15
- */
16
8
  export declare const AssetAVAX: Asset;
17
9
  export declare const defaultAvaxParams: EVMClientParams;
package/lib/index.d.ts CHANGED
@@ -1,2 +1,5 @@
1
- export * from './client';
1
+ import { ClientKeystore } from './ClientKeystore';
2
+ export { ClientKeystore, ClientKeystore as Client } from './ClientKeystore';
3
+ export { ClientLedger } from './ClientLedger';
2
4
  export * from './const';
5
+ export default ClientKeystore;