@qidao/sdk 5.1.42 → 5.1.43

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.
Files changed (51) hide show
  1. package/dist/index.js +2 -0
  2. package/dist/index.js.map +1 -0
  3. package/dist/index.modern.mjs +2 -0
  4. package/dist/index.modern.mjs.map +1 -0
  5. package/dist/index.module.js +2 -0
  6. package/dist/index.module.js.map +1 -0
  7. package/dist/index.umd.js +2 -0
  8. package/dist/index.umd.js.map +1 -0
  9. package/dist/src/ZapMeta.d.ts +27 -0
  10. package/dist/src/constants.d.ts +97 -0
  11. package/dist/src/contracts/CrosschainNativeQiStablecoin.d.ts +978 -0
  12. package/dist/src/contracts/CrosschainQiStablecoin.d.ts +974 -0
  13. package/dist/src/contracts/CrosschainQiStablecoinSlim.d.ts +942 -0
  14. package/dist/src/contracts/CrosschainQiStablecoinSlimV2.d.ts +950 -0
  15. package/dist/src/contracts/CrosschainQiStablecoinV2.d.ts +910 -0
  16. package/dist/src/contracts/CrosschainQiStablecoinwbtc.d.ts +958 -0
  17. package/dist/src/contracts/Erc20QiStablecoincamwbtc.d.ts +986 -0
  18. package/dist/src/contracts/Erc20QiStablecoinwbtc.d.ts +994 -0
  19. package/dist/src/contracts/Erc20Stablecoin.d.ts +938 -0
  20. package/dist/src/contracts/StableQiVault.d.ts +1522 -0
  21. package/dist/src/contracts/common.d.ts +22 -0
  22. package/dist/src/contracts/factories/CrosschainNativeQiStablecoin__factory.d.ts +52 -0
  23. package/dist/src/contracts/factories/CrosschainQiStablecoinSlimV2__factory.d.ts +52 -0
  24. package/dist/src/contracts/factories/CrosschainQiStablecoinSlim__factory.d.ts +52 -0
  25. package/dist/src/contracts/factories/CrosschainQiStablecoinV2__factory.d.ts +52 -0
  26. package/dist/src/contracts/factories/CrosschainQiStablecoin__factory.d.ts +52 -0
  27. package/dist/src/contracts/factories/CrosschainQiStablecoinwbtc__factory.d.ts +52 -0
  28. package/dist/src/contracts/factories/Erc20QiStablecoincamwbtc__factory.d.ts +52 -0
  29. package/dist/src/contracts/factories/Erc20QiStablecoinwbtc__factory.d.ts +52 -0
  30. package/dist/src/contracts/factories/Erc20Stablecoin__factory.d.ts +52 -0
  31. package/dist/src/contracts/factories/StableQiVault__factory.d.ts +46 -0
  32. package/dist/src/contracts/factories/index.d.ts +10 -0
  33. package/dist/src/contracts/index.d.ts +21 -0
  34. package/dist/src/entities/currency.d.ts +83 -0
  35. package/dist/src/entities/fractions/currencyAmount.d.ts +19 -0
  36. package/dist/src/entities/fractions/fraction.d.ts +19 -0
  37. package/dist/src/entities/fractions/index.d.ts +5 -0
  38. package/dist/src/entities/fractions/percent.d.ts +6 -0
  39. package/dist/src/entities/fractions/price.d.ts +17 -0
  40. package/dist/src/entities/fractions/tokenAmount.d.ts +9 -0
  41. package/dist/src/entities/index.d.ts +3 -0
  42. package/dist/src/entities/token.d.ts +62 -0
  43. package/dist/src/errors.d.ts +16 -0
  44. package/dist/src/index.d.ts +10 -0
  45. package/dist/src/tokens.d.ts +19 -0
  46. package/dist/src/utils.d.ts +7 -0
  47. package/dist/src/vaultInfo.d.ts +46 -0
  48. package/dist/src/zapInfo.d.ts +18 -0
  49. package/dist/test/fraction.test.d.ts +1 -0
  50. package/dist/test/token.test.d.ts +1 -0
  51. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import type { Listener } from "@ethersproject/providers";
2
+ import type { Event, EventFilter } from "ethers";
3
+ export interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event {
4
+ args: TArgsArray & TArgsObject;
5
+ }
6
+ export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {
7
+ }
8
+ export interface TypedListener<TEvent extends TypedEvent> {
9
+ (...listenerArg: [...__TypechainArgsArray<TEvent>, TEvent]): void;
10
+ }
11
+ declare type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never;
12
+ export interface OnEvent<TRes> {
13
+ <TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes;
14
+ (eventName: string, listener: Listener): TRes;
15
+ }
16
+ export declare type MinEthersFactory<C, ARGS> = {
17
+ deploy(...a: ARGS[]): Promise<C>;
18
+ };
19
+ export declare type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
20
+ export declare type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
21
+ export declare type PromiseOrValue<T> = T | Promise<T>;
22
+ export {};
@@ -0,0 +1,52 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { CrosschainNativeQiStablecoin, CrosschainNativeQiStablecoinInterface } from "../CrosschainNativeQiStablecoin";
4
+ export declare class CrosschainNativeQiStablecoin__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ payable: boolean;
12
+ stateMutability: string;
13
+ type: string;
14
+ anonymous?: undefined;
15
+ name?: undefined;
16
+ constant?: undefined;
17
+ outputs?: undefined;
18
+ } | {
19
+ anonymous: boolean;
20
+ inputs: {
21
+ indexed: boolean;
22
+ internalType: string;
23
+ name: string;
24
+ type: string;
25
+ }[];
26
+ name: string;
27
+ type: string;
28
+ payable?: undefined;
29
+ stateMutability?: undefined;
30
+ constant?: undefined;
31
+ outputs?: undefined;
32
+ } | {
33
+ constant: boolean;
34
+ inputs: {
35
+ internalType: string;
36
+ name: string;
37
+ type: string;
38
+ }[];
39
+ name: string;
40
+ outputs: {
41
+ internalType: string;
42
+ name: string;
43
+ type: string;
44
+ }[];
45
+ payable: boolean;
46
+ stateMutability: string;
47
+ type: string;
48
+ anonymous?: undefined;
49
+ })[];
50
+ static createInterface(): CrosschainNativeQiStablecoinInterface;
51
+ static connect(address: string, signerOrProvider: Signer | Provider): CrosschainNativeQiStablecoin;
52
+ }
@@ -0,0 +1,52 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { CrosschainQiStablecoinSlimV2, CrosschainQiStablecoinSlimV2Interface } from "../CrosschainQiStablecoinSlimV2";
4
+ export declare class CrosschainQiStablecoinSlimV2__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ payable: boolean;
12
+ stateMutability: string;
13
+ type: string;
14
+ anonymous?: undefined;
15
+ name?: undefined;
16
+ constant?: undefined;
17
+ outputs?: undefined;
18
+ } | {
19
+ anonymous: boolean;
20
+ inputs: {
21
+ indexed: boolean;
22
+ internalType: string;
23
+ name: string;
24
+ type: string;
25
+ }[];
26
+ name: string;
27
+ type: string;
28
+ payable?: undefined;
29
+ stateMutability?: undefined;
30
+ constant?: undefined;
31
+ outputs?: undefined;
32
+ } | {
33
+ constant: boolean;
34
+ inputs: {
35
+ internalType: string;
36
+ name: string;
37
+ type: string;
38
+ }[];
39
+ name: string;
40
+ outputs: {
41
+ internalType: string;
42
+ name: string;
43
+ type: string;
44
+ }[];
45
+ payable: boolean;
46
+ stateMutability: string;
47
+ type: string;
48
+ anonymous?: undefined;
49
+ })[];
50
+ static createInterface(): CrosschainQiStablecoinSlimV2Interface;
51
+ static connect(address: string, signerOrProvider: Signer | Provider): CrosschainQiStablecoinSlimV2;
52
+ }
@@ -0,0 +1,52 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { CrosschainQiStablecoinSlim, CrosschainQiStablecoinSlimInterface } from "../CrosschainQiStablecoinSlim";
4
+ export declare class CrosschainQiStablecoinSlim__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ payable: boolean;
12
+ stateMutability: string;
13
+ type: string;
14
+ anonymous?: undefined;
15
+ name?: undefined;
16
+ constant?: undefined;
17
+ outputs?: undefined;
18
+ } | {
19
+ anonymous: boolean;
20
+ inputs: {
21
+ indexed: boolean;
22
+ internalType: string;
23
+ name: string;
24
+ type: string;
25
+ }[];
26
+ name: string;
27
+ type: string;
28
+ payable?: undefined;
29
+ stateMutability?: undefined;
30
+ constant?: undefined;
31
+ outputs?: undefined;
32
+ } | {
33
+ constant: boolean;
34
+ inputs: {
35
+ internalType: string;
36
+ name: string;
37
+ type: string;
38
+ }[];
39
+ name: string;
40
+ outputs: {
41
+ internalType: string;
42
+ name: string;
43
+ type: string;
44
+ }[];
45
+ payable: boolean;
46
+ stateMutability: string;
47
+ type: string;
48
+ anonymous?: undefined;
49
+ })[];
50
+ static createInterface(): CrosschainQiStablecoinSlimInterface;
51
+ static connect(address: string, signerOrProvider: Signer | Provider): CrosschainQiStablecoinSlim;
52
+ }
@@ -0,0 +1,52 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { CrosschainQiStablecoinV2, CrosschainQiStablecoinV2Interface } from "../CrosschainQiStablecoinV2";
4
+ export declare class CrosschainQiStablecoinV2__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ payable: boolean;
12
+ stateMutability: string;
13
+ type: string;
14
+ anonymous?: undefined;
15
+ name?: undefined;
16
+ constant?: undefined;
17
+ outputs?: undefined;
18
+ } | {
19
+ anonymous: boolean;
20
+ inputs: {
21
+ indexed: boolean;
22
+ internalType: string;
23
+ name: string;
24
+ type: string;
25
+ }[];
26
+ name: string;
27
+ type: string;
28
+ payable?: undefined;
29
+ stateMutability?: undefined;
30
+ constant?: undefined;
31
+ outputs?: undefined;
32
+ } | {
33
+ constant: boolean;
34
+ inputs: {
35
+ internalType: string;
36
+ name: string;
37
+ type: string;
38
+ }[];
39
+ name: string;
40
+ outputs: {
41
+ internalType: string;
42
+ name: string;
43
+ type: string;
44
+ }[];
45
+ payable: boolean;
46
+ stateMutability: string;
47
+ type: string;
48
+ anonymous?: undefined;
49
+ })[];
50
+ static createInterface(): CrosschainQiStablecoinV2Interface;
51
+ static connect(address: string, signerOrProvider: Signer | Provider): CrosschainQiStablecoinV2;
52
+ }
@@ -0,0 +1,52 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { CrosschainQiStablecoin, CrosschainQiStablecoinInterface } from "../CrosschainQiStablecoin";
4
+ export declare class CrosschainQiStablecoin__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ payable: boolean;
12
+ stateMutability: string;
13
+ type: string;
14
+ anonymous?: undefined;
15
+ name?: undefined;
16
+ constant?: undefined;
17
+ outputs?: undefined;
18
+ } | {
19
+ anonymous: boolean;
20
+ inputs: {
21
+ indexed: boolean;
22
+ internalType: string;
23
+ name: string;
24
+ type: string;
25
+ }[];
26
+ name: string;
27
+ type: string;
28
+ payable?: undefined;
29
+ stateMutability?: undefined;
30
+ constant?: undefined;
31
+ outputs?: undefined;
32
+ } | {
33
+ constant: boolean;
34
+ inputs: {
35
+ internalType: string;
36
+ name: string;
37
+ type: string;
38
+ }[];
39
+ name: string;
40
+ outputs: {
41
+ internalType: string;
42
+ name: string;
43
+ type: string;
44
+ }[];
45
+ payable: boolean;
46
+ stateMutability: string;
47
+ type: string;
48
+ anonymous?: undefined;
49
+ })[];
50
+ static createInterface(): CrosschainQiStablecoinInterface;
51
+ static connect(address: string, signerOrProvider: Signer | Provider): CrosschainQiStablecoin;
52
+ }
@@ -0,0 +1,52 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { CrosschainQiStablecoinwbtc, CrosschainQiStablecoinwbtcInterface } from "../CrosschainQiStablecoinwbtc";
4
+ export declare class CrosschainQiStablecoinwbtc__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ payable: boolean;
12
+ stateMutability: string;
13
+ type: string;
14
+ anonymous?: undefined;
15
+ name?: undefined;
16
+ constant?: undefined;
17
+ outputs?: undefined;
18
+ } | {
19
+ anonymous: boolean;
20
+ inputs: {
21
+ indexed: boolean;
22
+ internalType: string;
23
+ name: string;
24
+ type: string;
25
+ }[];
26
+ name: string;
27
+ type: string;
28
+ payable?: undefined;
29
+ stateMutability?: undefined;
30
+ constant?: undefined;
31
+ outputs?: undefined;
32
+ } | {
33
+ constant: boolean;
34
+ inputs: {
35
+ internalType: string;
36
+ name: string;
37
+ type: string;
38
+ }[];
39
+ name: string;
40
+ outputs: {
41
+ internalType: string;
42
+ name: string;
43
+ type: string;
44
+ }[];
45
+ payable: boolean;
46
+ stateMutability: string;
47
+ type: string;
48
+ anonymous?: undefined;
49
+ })[];
50
+ static createInterface(): CrosschainQiStablecoinwbtcInterface;
51
+ static connect(address: string, signerOrProvider: Signer | Provider): CrosschainQiStablecoinwbtc;
52
+ }
@@ -0,0 +1,52 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { Erc20QiStablecoincamwbtc, Erc20QiStablecoincamwbtcInterface } from "../Erc20QiStablecoincamwbtc";
4
+ export declare class Erc20QiStablecoincamwbtc__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ payable: boolean;
12
+ stateMutability: string;
13
+ type: string;
14
+ anonymous?: undefined;
15
+ name?: undefined;
16
+ constant?: undefined;
17
+ outputs?: undefined;
18
+ } | {
19
+ anonymous: boolean;
20
+ inputs: {
21
+ indexed: boolean;
22
+ internalType: string;
23
+ name: string;
24
+ type: string;
25
+ }[];
26
+ name: string;
27
+ type: string;
28
+ payable?: undefined;
29
+ stateMutability?: undefined;
30
+ constant?: undefined;
31
+ outputs?: undefined;
32
+ } | {
33
+ constant: boolean;
34
+ inputs: {
35
+ internalType: string;
36
+ name: string;
37
+ type: string;
38
+ }[];
39
+ name: string;
40
+ outputs: {
41
+ internalType: string;
42
+ name: string;
43
+ type: string;
44
+ }[];
45
+ payable: boolean;
46
+ stateMutability: string;
47
+ type: string;
48
+ anonymous?: undefined;
49
+ })[];
50
+ static createInterface(): Erc20QiStablecoincamwbtcInterface;
51
+ static connect(address: string, signerOrProvider: Signer | Provider): Erc20QiStablecoincamwbtc;
52
+ }
@@ -0,0 +1,52 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { Erc20QiStablecoinwbtc, Erc20QiStablecoinwbtcInterface } from "../Erc20QiStablecoinwbtc";
4
+ export declare class Erc20QiStablecoinwbtc__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ payable: boolean;
12
+ stateMutability: string;
13
+ type: string;
14
+ anonymous?: undefined;
15
+ name?: undefined;
16
+ constant?: undefined;
17
+ outputs?: undefined;
18
+ } | {
19
+ anonymous: boolean;
20
+ inputs: {
21
+ indexed: boolean;
22
+ internalType: string;
23
+ name: string;
24
+ type: string;
25
+ }[];
26
+ name: string;
27
+ type: string;
28
+ payable?: undefined;
29
+ stateMutability?: undefined;
30
+ constant?: undefined;
31
+ outputs?: undefined;
32
+ } | {
33
+ constant: boolean;
34
+ inputs: {
35
+ internalType: string;
36
+ name: string;
37
+ type: string;
38
+ }[];
39
+ name: string;
40
+ outputs: {
41
+ internalType: string;
42
+ name: string;
43
+ type: string;
44
+ }[];
45
+ payable: boolean;
46
+ stateMutability: string;
47
+ type: string;
48
+ anonymous?: undefined;
49
+ })[];
50
+ static createInterface(): Erc20QiStablecoinwbtcInterface;
51
+ static connect(address: string, signerOrProvider: Signer | Provider): Erc20QiStablecoinwbtc;
52
+ }
@@ -0,0 +1,52 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { Erc20Stablecoin, Erc20StablecoinInterface } from "../Erc20Stablecoin";
4
+ export declare class Erc20Stablecoin__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ payable: boolean;
12
+ stateMutability: string;
13
+ type: string;
14
+ anonymous?: undefined;
15
+ name?: undefined;
16
+ constant?: undefined;
17
+ outputs?: undefined;
18
+ } | {
19
+ anonymous: boolean;
20
+ inputs: {
21
+ indexed: boolean;
22
+ internalType: string;
23
+ name: string;
24
+ type: string;
25
+ }[];
26
+ name: string;
27
+ type: string;
28
+ payable?: undefined;
29
+ stateMutability?: undefined;
30
+ constant?: undefined;
31
+ outputs?: undefined;
32
+ } | {
33
+ constant: boolean;
34
+ inputs: {
35
+ internalType: string;
36
+ name: string;
37
+ type: string;
38
+ }[];
39
+ name: string;
40
+ outputs: {
41
+ internalType: string;
42
+ name: string;
43
+ type: string;
44
+ }[];
45
+ payable: boolean;
46
+ stateMutability: string;
47
+ type: string;
48
+ anonymous?: undefined;
49
+ })[];
50
+ static createInterface(): Erc20StablecoinInterface;
51
+ static connect(address: string, signerOrProvider: Signer | Provider): Erc20Stablecoin;
52
+ }
@@ -0,0 +1,46 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { StableQiVault, StableQiVaultInterface } from "../StableQiVault";
4
+ export declare class StableQiVault__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ stateMutability: string;
12
+ type: string;
13
+ anonymous?: undefined;
14
+ name?: undefined;
15
+ outputs?: undefined;
16
+ } | {
17
+ anonymous: boolean;
18
+ inputs: {
19
+ indexed: boolean;
20
+ internalType: string;
21
+ name: string;
22
+ type: string;
23
+ }[];
24
+ name: string;
25
+ type: string;
26
+ stateMutability?: undefined;
27
+ outputs?: undefined;
28
+ } | {
29
+ inputs: {
30
+ internalType: string;
31
+ name: string;
32
+ type: string;
33
+ }[];
34
+ name: string;
35
+ outputs: {
36
+ internalType: string;
37
+ name: string;
38
+ type: string;
39
+ }[];
40
+ stateMutability: string;
41
+ type: string;
42
+ anonymous?: undefined;
43
+ })[];
44
+ static createInterface(): StableQiVaultInterface;
45
+ static connect(address: string, signerOrProvider: Signer | Provider): StableQiVault;
46
+ }
@@ -0,0 +1,10 @@
1
+ export { CrosschainNativeQiStablecoin__factory } from "./CrosschainNativeQiStablecoin__factory";
2
+ export { CrosschainQiStablecoin__factory } from "./CrosschainQiStablecoin__factory";
3
+ export { CrosschainQiStablecoinSlim__factory } from "./CrosschainQiStablecoinSlim__factory";
4
+ export { CrosschainQiStablecoinSlimV2__factory } from "./CrosschainQiStablecoinSlimV2__factory";
5
+ export { CrosschainQiStablecoinV2__factory } from "./CrosschainQiStablecoinV2__factory";
6
+ export { CrosschainQiStablecoinwbtc__factory } from "./CrosschainQiStablecoinwbtc__factory";
7
+ export { Erc20QiStablecoincamwbtc__factory } from "./Erc20QiStablecoincamwbtc__factory";
8
+ export { Erc20QiStablecoinwbtc__factory } from "./Erc20QiStablecoinwbtc__factory";
9
+ export { Erc20Stablecoin__factory } from "./Erc20Stablecoin__factory";
10
+ export { StableQiVault__factory } from "./StableQiVault__factory";
@@ -0,0 +1,21 @@
1
+ export type { CrosschainNativeQiStablecoin } from "./CrosschainNativeQiStablecoin";
2
+ export type { CrosschainQiStablecoin } from "./CrosschainQiStablecoin";
3
+ export type { CrosschainQiStablecoinSlim } from "./CrosschainQiStablecoinSlim";
4
+ export type { CrosschainQiStablecoinSlimV2 } from "./CrosschainQiStablecoinSlimV2";
5
+ export type { CrosschainQiStablecoinV2 } from "./CrosschainQiStablecoinV2";
6
+ export type { CrosschainQiStablecoinwbtc } from "./CrosschainQiStablecoinwbtc";
7
+ export type { Erc20QiStablecoincamwbtc } from "./Erc20QiStablecoincamwbtc";
8
+ export type { Erc20QiStablecoinwbtc } from "./Erc20QiStablecoinwbtc";
9
+ export type { Erc20Stablecoin } from "./Erc20Stablecoin";
10
+ export type { StableQiVault } from "./StableQiVault";
11
+ export * as factories from "./factories";
12
+ export { CrosschainNativeQiStablecoin__factory } from "./factories/CrosschainNativeQiStablecoin__factory";
13
+ export { CrosschainQiStablecoin__factory } from "./factories/CrosschainQiStablecoin__factory";
14
+ export { CrosschainQiStablecoinSlim__factory } from "./factories/CrosschainQiStablecoinSlim__factory";
15
+ export { CrosschainQiStablecoinSlimV2__factory } from "./factories/CrosschainQiStablecoinSlimV2__factory";
16
+ export { CrosschainQiStablecoinV2__factory } from "./factories/CrosschainQiStablecoinV2__factory";
17
+ export { CrosschainQiStablecoinwbtc__factory } from "./factories/CrosschainQiStablecoinwbtc__factory";
18
+ export { Erc20QiStablecoincamwbtc__factory } from "./factories/Erc20QiStablecoincamwbtc__factory";
19
+ export { Erc20QiStablecoinwbtc__factory } from "./factories/Erc20QiStablecoinwbtc__factory";
20
+ export { Erc20Stablecoin__factory } from "./factories/Erc20Stablecoin__factory";
21
+ export { StableQiVault__factory } from "./factories/StableQiVault__factory";
@@ -0,0 +1,83 @@
1
+ import { ChainId } from '../constants';
2
+ /**
3
+ * A currency is any fungible financial instrument on Ethereum, including Ether and all ERC20 tokens.
4
+ *
5
+ * The only instance of the base class `Currency` is Ether.
6
+ */
7
+ export declare class Currency {
8
+ readonly decimals: number;
9
+ readonly symbol?: string;
10
+ readonly name?: string;
11
+ static readonly ETHER: Currency;
12
+ static readonly BNB: Currency;
13
+ static readonly FTM: Currency;
14
+ static readonly MATIC: Currency;
15
+ static readonly XDAI: Currency;
16
+ static readonly GLMR: Currency;
17
+ static readonly AVAX: Currency;
18
+ static readonly HT: Currency;
19
+ static readonly ONE: Currency;
20
+ static readonly MOVR: Currency;
21
+ static readonly CRO: Currency;
22
+ static readonly SYSCOIN: Currency;
23
+ static readonly METIS: Currency;
24
+ static readonly MOONBEAM: Currency;
25
+ static readonly MILKOMEDA: Currency;
26
+ static readonly KAVA: Currency;
27
+ static readonly IOTEX: Currency;
28
+ static readonly KLAYTN: Currency;
29
+ static readonly CELO: Currency;
30
+ static readonly AURORA: Currency;
31
+ static readonly BOBA: Currency;
32
+ static readonly CUBE: Currency;
33
+ static readonly NATIVE: {
34
+ 1: Currency;
35
+ 3: Currency;
36
+ 4: Currency;
37
+ 5: Currency;
38
+ 42: Currency;
39
+ 250: Currency;
40
+ 4002: Currency;
41
+ 137: Currency;
42
+ 80001: Currency;
43
+ 100: Currency;
44
+ 56: Currency;
45
+ 97: Currency;
46
+ 42161: Currency;
47
+ 1287: Currency;
48
+ 43114: Currency;
49
+ 43113: Currency;
50
+ 128: Currency;
51
+ 256: Currency;
52
+ 1666600000: Currency;
53
+ 1666700000: Currency;
54
+ 25: Currency;
55
+ 1285: Currency;
56
+ 10: Currency;
57
+ 57: Currency;
58
+ 1088: Currency;
59
+ 1284: Currency;
60
+ 2001: Currency;
61
+ 2222: Currency;
62
+ 4689: Currency;
63
+ 8217: Currency;
64
+ 42220: Currency;
65
+ 1313161554: Currency;
66
+ 288: Currency;
67
+ 1818: Currency;
68
+ };
69
+ /**
70
+ * Constructs an instance of the base class `Currency`. The only instance of the base class `Currency` is `Currency.ETHER`.
71
+ * @param decimals decimals of the currency
72
+ * @param symbol symbol of the currency
73
+ * @param name of the currency
74
+ */
75
+ protected constructor(decimals: number, symbol?: string, name?: string);
76
+ static getNativeCurrency(chainId?: ChainId): Currency;
77
+ static getNativeCurrencySymbol(chainId?: ChainId): string | undefined;
78
+ static getNativeCurrencyName(chainId?: ChainId): string | undefined;
79
+ getSymbol(chainId?: ChainId): string | undefined;
80
+ getName(chainId?: ChainId): string | undefined;
81
+ }
82
+ declare const ETHER: Currency;
83
+ export { ETHER };
@@ -0,0 +1,19 @@
1
+ import { Currency } from '../currency';
2
+ import JSBI from 'jsbi';
3
+ import { BigintIsh, Rounding } from '../../constants';
4
+ import { Fraction } from './fraction';
5
+ export declare class CurrencyAmount extends Fraction {
6
+ readonly currency: Currency;
7
+ /**
8
+ * Helper that calls the constructor with the ETHER currency
9
+ * @param amount ether amount in wei
10
+ */
11
+ static ether(amount: BigintIsh): CurrencyAmount;
12
+ protected constructor(currency: Currency, amount: BigintIsh);
13
+ get raw(): JSBI;
14
+ add(other: CurrencyAmount): CurrencyAmount;
15
+ subtract(other: CurrencyAmount): CurrencyAmount;
16
+ toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string;
17
+ toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string;
18
+ toExact(format?: object): string;
19
+ }