@qidao/sdk 5.0.8 → 5.1.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.
- package/dist/constants/addresses.d.ts +31 -0
- package/dist/constants/index.d.ts +20 -0
- package/dist/constants/kashi.d.ts +29 -0
- package/dist/constants/natives.d.ts +30 -0
- package/dist/constants/numbers.d.ts +11 -0
- package/dist/constants/tokens.d.ts +5 -0
- package/dist/entities/AbstractCurrency.d.ts +53 -0
- package/dist/entities/ConstantProductPool.d.ts +43 -0
- package/dist/entities/Currency.d.ts +3 -0
- package/dist/entities/CurrencyAmount.d.ts +38 -0
- package/dist/entities/Fraction.d.ts +25 -0
- package/dist/entities/MultiRouter.d.ts +59 -0
- package/dist/entities/Native/Avalanche.d.ts +10 -0
- package/dist/entities/Native/Binance.d.ts +10 -0
- package/dist/entities/Native/Celo.d.ts +10 -0
- package/dist/entities/Native/Ether.d.ts +13 -0
- package/dist/entities/Native/Fantom.d.ts +10 -0
- package/dist/entities/Native/Fuse.d.ts +10 -0
- package/dist/entities/Native/Harmony.d.ts +10 -0
- package/dist/entities/Native/Heco.d.ts +10 -0
- package/dist/entities/Native/Matic.d.ts +10 -0
- package/dist/entities/Native/Movr.d.ts +10 -0
- package/dist/entities/Native/Okex.d.ts +10 -0
- package/dist/entities/Native/Palm.d.ts +10 -0
- package/dist/entities/Native/Telos.d.ts +10 -0
- package/dist/entities/Native/index.d.ts +14 -0
- package/dist/entities/Native/xDai.d.ts +10 -0
- package/dist/entities/NativeCurrency.d.ts +8 -0
- package/dist/entities/Pair.d.ts +41 -0
- package/dist/entities/Percent.d.ts +15 -0
- package/dist/entities/Price.d.ts +39 -0
- package/dist/entities/Route.d.ts +14 -0
- package/dist/entities/Token.d.ts +33 -0
- package/dist/entities/{trade.d.ts → Trade.d.ts} +35 -34
- package/dist/entities/eip712.d.ts +78 -0
- package/dist/entities/index.d.ts +14 -6
- package/dist/enums/ChainId.d.ts +32 -0
- package/dist/enums/Fee.d.ts +3 -0
- package/dist/enums/KashiAction.d.ts +18 -0
- package/dist/enums/OrderStatus.d.ts +6 -0
- package/dist/enums/Rounding.d.ts +5 -0
- package/dist/enums/TradeType.d.ts +4 -0
- package/dist/enums/index.d.ts +6 -0
- package/dist/functions/bentobox.d.ts +3 -0
- package/dist/functions/computeConstantProductPoolAddress.d.ts +9 -0
- package/dist/functions/computePairAddress.d.ts +6 -0
- package/dist/functions/computePoolInitCodeHash.d.ts +5 -0
- package/dist/functions/computePriceImpact.d.ts +11 -0
- package/dist/functions/index.d.ts +8 -0
- package/dist/functions/kashi.d.ts +9 -0
- package/dist/functions/rebase.d.ts +4 -0
- package/dist/functions/sortedInsert.d.ts +1 -0
- package/dist/functions/sqrt.d.ts +7 -0
- package/dist/functions/validateAndParseAddress.d.ts +1 -0
- package/dist/functions/validateSolidityTypeInstance.d.ts +3 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -0
- package/dist/index.modern.mjs +2 -0
- package/dist/index.modern.mjs.map +1 -0
- package/dist/index.module.js +2 -0
- package/dist/index.module.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/interfaces/AccrueInfo.d.ts +6 -0
- package/dist/interfaces/Rebase.d.ts +5 -0
- package/dist/interfaces/index.d.ts +2 -0
- package/dist/limitorder.d.ts +115 -0
- package/dist/router.d.ts +7 -2
- package/dist/sdk.cjs.development.js +4684 -1092
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +4567 -1086
- package/dist/sdk.esm.js.map +1 -1
- package/dist/{constants.d.ts → src/src/constants.d.ts} +3 -21
- package/dist/src/src/contracts/CrosschainNativeQiStablecoin.d.ts +978 -0
- package/dist/src/src/contracts/CrosschainQiStablecoin.d.ts +974 -0
- package/dist/src/src/contracts/CrosschainQiStablecoinSlim.d.ts +942 -0
- package/dist/src/src/contracts/CrosschainQiStablecoinSlimV2.d.ts +950 -0
- package/dist/src/src/contracts/CrosschainQiStablecoinV2.d.ts +910 -0
- package/dist/src/src/contracts/CrosschainQiStablecoinwbtc.d.ts +958 -0
- package/dist/src/src/contracts/Erc20QiStablecoincamwbtc.d.ts +986 -0
- package/dist/src/src/contracts/Erc20QiStablecoinwbtc.d.ts +994 -0
- package/dist/src/src/contracts/Erc20Stablecoin.d.ts +938 -0
- package/dist/src/src/contracts/StableQiVault.d.ts +1522 -0
- package/dist/src/src/contracts/common.d.ts +22 -0
- package/dist/src/src/contracts/factories/CrosschainNativeQiStablecoin__factory.d.ts +61 -0
- package/dist/src/src/contracts/factories/CrosschainQiStablecoinSlimV2__factory.d.ts +52 -0
- package/dist/src/src/contracts/factories/CrosschainQiStablecoinSlim__factory.d.ts +52 -0
- package/dist/src/src/contracts/factories/CrosschainQiStablecoinV2__factory.d.ts +52 -0
- package/dist/src/src/contracts/factories/CrosschainQiStablecoin__factory.d.ts +52 -0
- package/dist/src/src/contracts/factories/CrosschainQiStablecoinwbtc__factory.d.ts +52 -0
- package/dist/src/src/contracts/factories/Erc20QiStablecoincamwbtc__factory.d.ts +52 -0
- package/dist/src/src/contracts/factories/Erc20QiStablecoinwbtc__factory.d.ts +52 -0
- package/dist/src/src/contracts/factories/Erc20Stablecoin__factory.d.ts +52 -0
- package/dist/src/src/contracts/factories/StableQiVault__factory.d.ts +46 -0
- package/dist/src/src/contracts/factories/index.d.ts +10 -0
- package/dist/src/src/contracts/index.d.ts +21 -0
- package/dist/{entities → src/src/entities}/currency.d.ts +0 -0
- package/dist/{entities → src/src/entities}/fractions/currencyAmount.d.ts +0 -0
- package/dist/{entities → src/src/entities}/fractions/fraction.d.ts +0 -0
- package/dist/{entities → src/src/entities}/fractions/index.d.ts +0 -0
- package/dist/{entities → src/src/entities}/fractions/percent.d.ts +0 -0
- package/dist/{entities → src/src/entities}/fractions/price.d.ts +0 -2
- package/dist/{entities → src/src/entities}/fractions/tokenAmount.d.ts +0 -0
- package/dist/src/src/entities/index.d.ts +3 -0
- package/dist/{entities → src/src/entities}/token.d.ts +0 -0
- package/dist/src/src/errors.d.ts +16 -0
- package/dist/src/src/index.d.ts +7 -0
- package/dist/{utils.d.ts → src/src/utils.d.ts} +0 -0
- package/dist/src/src/vaultInfo.d.ts +27 -0
- package/dist/{test → src/test}/fraction.test.d.ts +0 -0
- package/dist/{test → src/test}/token.test.d.ts +0 -0
- package/dist/types/AddressMap.d.ts +3 -0
- package/dist/types/BigIntIsh.d.ts +2 -0
- package/dist/types/ChainTokenMap.d.ts +5 -0
- package/dist/types/LimitOrderTypes.d.ts +21 -0
- package/dist/types/MultiRouterTypes.d.ts +97 -0
- package/dist/types/TokenMap.d.ts +4 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/utils/MultiRouterMath.d.ts +15 -0
- package/package.json +39 -31
- package/dist/entities/pair.d.ts +0 -41
- package/dist/entities/route.d.ts +0 -14
- package/dist/fetcher.d.ts +0 -28
- package/dist/test/constants.test.d.ts +0 -1
- package/dist/test/data.test.d.ts +0 -1
- package/dist/test/entities.test.d.ts +0 -1
- package/dist/test/miscellaneous.test.d.ts +0 -1
- package/dist/test/pair.test.d.ts +0 -1
- package/dist/test/route.test.d.ts +0 -1
- package/dist/test/router.test.d.ts +0 -1
- package/dist/test/trade.test.d.ts +0 -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,61 @@
|
|
|
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
|
+
payable: boolean;
|
|
34
|
+
stateMutability: string;
|
|
35
|
+
type: string;
|
|
36
|
+
inputs?: undefined;
|
|
37
|
+
anonymous?: undefined;
|
|
38
|
+
name?: undefined;
|
|
39
|
+
constant?: undefined;
|
|
40
|
+
outputs?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
constant: boolean;
|
|
43
|
+
inputs: {
|
|
44
|
+
internalType: string;
|
|
45
|
+
name: string;
|
|
46
|
+
type: string;
|
|
47
|
+
}[];
|
|
48
|
+
name: string;
|
|
49
|
+
outputs: {
|
|
50
|
+
internalType: string;
|
|
51
|
+
name: string;
|
|
52
|
+
type: string;
|
|
53
|
+
}[];
|
|
54
|
+
payable: boolean;
|
|
55
|
+
stateMutability: string;
|
|
56
|
+
type: string;
|
|
57
|
+
anonymous?: undefined;
|
|
58
|
+
})[];
|
|
59
|
+
static createInterface(): CrosschainNativeQiStablecoinInterface;
|
|
60
|
+
static connect(address: string, signerOrProvider: Signer | Provider): CrosschainNativeQiStablecoin;
|
|
61
|
+
}
|
|
@@ -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";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { BigintIsh, Rounding } from '../../constants';
|
|
2
2
|
import { Currency } from '../currency';
|
|
3
|
-
import { Route } from '../route';
|
|
4
3
|
import { Fraction } from './fraction';
|
|
5
4
|
import { CurrencyAmount } from './currencyAmount';
|
|
6
5
|
export declare class Price extends Fraction {
|
|
7
6
|
readonly baseCurrency: Currency;
|
|
8
7
|
readonly quoteCurrency: Currency;
|
|
9
8
|
readonly scalar: Fraction;
|
|
10
|
-
static fromRoute(route: Route): Price;
|
|
11
9
|
constructor(baseCurrency: Currency, quoteCurrency: Currency, denominator: BigintIsh, numerator: BigintIsh);
|
|
12
10
|
get raw(): Fraction;
|
|
13
11
|
get adjusted(): Fraction;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indicates that the pair has insufficient reserves for a desired output amount. I.e. the amount of output cannot be
|
|
3
|
+
* obtained by sending any amount of input.
|
|
4
|
+
*/
|
|
5
|
+
export declare class InsufficientReservesError extends Error {
|
|
6
|
+
readonly isInsufficientReservesError: true;
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Indicates that the input amount is too small to produce any amount of output. I.e. the amount of input sent is less
|
|
11
|
+
* than the price of a single unit of output after fees.
|
|
12
|
+
*/
|
|
13
|
+
export declare class InsufficientInputAmountError extends Error {
|
|
14
|
+
readonly isInsufficientInputAmountError: true;
|
|
15
|
+
constructor();
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import JSBI from 'jsbi';
|
|
2
|
+
export { JSBI };
|
|
3
|
+
export { BigintIsh, ChainId, TradeType, Rounding, INIT_CODE_HASH, MINIMUM_LIQUIDITY } from './constants';
|
|
4
|
+
export * from './errors';
|
|
5
|
+
export * from './entities';
|
|
6
|
+
export * from './vaultInfo';
|
|
7
|
+
export * from './contracts';
|
|
File without changes
|