ccxt-ir 4.9.16 → 4.9.22

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 (36) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/abstract/bitunix.js +1 -1
  5. package/dist/cjs/src/bitunix.js +317 -317
  6. package/dist/cjs/src/kcex.js +4 -4
  7. package/dist/cjs/src/ompfinex.js +501 -498
  8. package/dist/cjs/src/sarmayex.js +1 -1
  9. package/dist/cjs/src/toobit.js +2 -2
  10. package/dist/cjs/src/xt.js +5171 -5171
  11. package/js/ccxt.d.ts +1 -1
  12. package/js/ccxt.js +1 -1
  13. package/js/src/abstract/bitunix.d.ts +9 -9
  14. package/js/src/abstract/bitunix.js +5 -5
  15. package/js/src/abstract/kcex.d.ts +10 -10
  16. package/js/src/base/Exchange.d.ts +2 -2
  17. package/js/src/bitunix.d.ts +21 -21
  18. package/js/src/bitunix.js +320 -320
  19. package/js/src/coinbaseexchange.d.ts +1 -1
  20. package/js/src/kcex.d.ts +21 -21
  21. package/js/src/kcex.js +4 -4
  22. package/js/src/ompfinex.js +504 -501
  23. package/js/src/protobuf/mexc/compiled.d.cts +6 -0
  24. package/js/src/sarmayex.js +1 -1
  25. package/js/src/static_dependencies/fflake/browser.d.ts +5 -5
  26. package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
  27. package/js/src/static_dependencies/noble-curves/abstract/weierstrass.d.ts +204 -204
  28. package/js/src/static_dependencies/qs/formats.d.cts +6 -0
  29. package/js/src/static_dependencies/qs/index.d.cts +6 -0
  30. package/js/src/static_dependencies/qs/parse.d.cts +6 -0
  31. package/js/src/static_dependencies/qs/stringify.d.cts +6 -0
  32. package/js/src/static_dependencies/qs/utils.d.cts +6 -0
  33. package/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts +1 -1
  34. package/js/src/toobit.js +2 -2
  35. package/js/src/xt.js +5178 -5178
  36. package/package.json +1 -1
@@ -1,2 +1,8 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
1
7
  export = $root;
2
8
  declare var $root: {};
@@ -25,7 +25,6 @@ export default class sarmayex extends Exchange {
25
25
  'has': {
26
26
  'CORS': undefined,
27
27
  'spot': false,
28
- 'otc': true,
29
28
  'margin': false,
30
29
  'swap': false,
31
30
  'future': false,
@@ -81,6 +80,7 @@ export default class sarmayex extends Exchange {
81
80
  'fetchTradingFee': false,
82
81
  'fetchTradingFees': false,
83
82
  'fetchWithdrawals': false,
83
+ 'otc': true,
84
84
  'setLeverage': false,
85
85
  'setMarginMode': false,
86
86
  'transfer': false,
@@ -5,7 +5,7 @@ export function deflate(data: any, opts: any, cb: any): () => void;
5
5
  * @param opts The compression options
6
6
  * @returns The deflated version of the data
7
7
  */
8
- export function deflateSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
8
+ export function deflateSync(data: any, opts: any): Uint8Array | Uint16Array | Uint32Array;
9
9
  export function inflate(data: any, opts: any, cb: any): () => void;
10
10
  /**
11
11
  * Expands DEFLATE data with no wrapper
@@ -21,7 +21,7 @@ export function gzip(data: any, opts: any, cb: any): () => void;
21
21
  * @param opts The compression options
22
22
  * @returns The gzipped version of the data
23
23
  */
24
- export function gzipSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
24
+ export function gzipSync(data: any, opts: any): Uint8Array | Uint16Array | Uint32Array;
25
25
  export function gunzip(data: any, opts: any, cb: any): () => void;
26
26
  /**
27
27
  * Expands GZIP data
@@ -37,7 +37,7 @@ export function zlib(data: any, opts: any, cb: any): () => void;
37
37
  * @param opts The compression options
38
38
  * @returns The zlib-compressed version of the data
39
39
  */
40
- export function zlibSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
40
+ export function zlibSync(data: any, opts: any): Uint8Array | Uint16Array | Uint32Array;
41
41
  export function unzlib(data: any, opts: any, cb: any): () => void;
42
42
  /**
43
43
  * Expands Zlib data
@@ -61,7 +61,7 @@ export function decompressSync(data: any, out: any): any;
61
61
  * not need to be true unless decoding a binary string.
62
62
  * @returns The string encoded in UTF-8/Latin-1 binary
63
63
  */
64
- export function strToU8(str: any, latin1: any): Uint8Array | Uint32Array | Uint16Array;
64
+ export function strToU8(str: any, latin1: any): Uint8Array | Uint16Array | Uint32Array;
65
65
  /**
66
66
  * Converts a Uint8Array to a string
67
67
  * @param dat The data to decode to string
@@ -69,7 +69,7 @@ export function strToU8(str: any, latin1: any): Uint8Array | Uint32Array | Uint1
69
69
  * not need to be true unless encoding to binary string.
70
70
  * @returns The original UTF-8/Latin-1 string
71
71
  */
72
- export function strFromU8(dat: any, latin1: any): string | Uint8Array | Uint32Array | Uint16Array;
72
+ export function strFromU8(dat: any, latin1: any): string | Uint8Array | Uint16Array | Uint32Array;
73
73
  export function zip(data: any, opts: any, cb: any): () => void;
74
74
  /**
75
75
  * Synchronously creates a ZIP file. Prefer using `zip` for better performance
@@ -15,7 +15,7 @@ export declare class BigInteger {
15
15
  protected intValue(): number;
16
16
  protected byteValue(): number;
17
17
  protected shortValue(): number;
18
- protected signum(): 1 | 0 | -1;
18
+ protected signum(): 0 | 1 | -1;
19
19
  toByteArray(): number[];
20
20
  protected equals(a: BigInteger): boolean;
21
21
  protected min(a: BigInteger): BigInteger;
@@ -1,204 +1,204 @@
1
- /// <reference types="node" />
2
- /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
3
- import * as mod from './modular.js';
4
- import * as ut from './utils.js';
5
- import { CHash, Hex, PrivKey } from './utils.js';
6
- import { Group, GroupConstructor, BasicCurve, AffinePoint } from './curve.js';
7
- export type { AffinePoint };
8
- declare type HmacFnSync = (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array;
9
- declare type EndomorphismOpts = {
10
- beta: bigint;
11
- splitScalar: (k: bigint) => {
12
- k1neg: boolean;
13
- k1: bigint;
14
- k2neg: boolean;
15
- k2: bigint;
16
- };
17
- };
18
- export declare type BasicWCurve<T> = BasicCurve<T> & {
19
- a: T;
20
- b: T;
21
- allowedPrivateKeyLengths?: readonly number[];
22
- wrapPrivateKey?: boolean;
23
- endo?: EndomorphismOpts;
24
- isTorsionFree?: (c: ProjConstructor<T>, point: ProjPointType<T>) => boolean;
25
- clearCofactor?: (c: ProjConstructor<T>, point: ProjPointType<T>) => ProjPointType<T>;
26
- };
27
- declare type Entropy = Hex | true;
28
- export declare type SignOpts = {
29
- lowS?: boolean;
30
- extraEntropy?: Entropy;
31
- prehash?: boolean;
32
- };
33
- export declare type VerOpts = {
34
- lowS?: boolean;
35
- prehash?: boolean;
36
- };
37
- /**
38
- * ### Design rationale for types
39
- *
40
- * * Interaction between classes from different curves should fail:
41
- * `k256.Point.BASE.add(p256.Point.BASE)`
42
- * * For this purpose we want to use `instanceof` operator, which is fast and works during runtime
43
- * * Different calls of `curve()` would return different classes -
44
- * `curve(params) !== curve(params)`: if somebody decided to monkey-patch their curve,
45
- * it won't affect others
46
- *
47
- * TypeScript can't infer types for classes created inside a function. Classes is one instance of nominative types in TypeScript and interfaces only check for shape, so it's hard to create unique type for every function call.
48
- *
49
- * We can use generic types via some param, like curve opts, but that would:
50
- * 1. Enable interaction between `curve(params)` and `curve(params)` (curves of same params)
51
- * which is hard to debug.
52
- * 2. Params can be generic and we can't enforce them to be constant value:
53
- * if somebody creates curve from non-constant params,
54
- * it would be allowed to interact with other curves with non-constant params
55
- *
56
- * TODO: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#unique-symbol
57
- */
58
- export interface ProjPointType<T> extends Group<ProjPointType<T>> {
59
- readonly px: T;
60
- readonly py: T;
61
- readonly pz: T;
62
- multiply(scalar: bigint): ProjPointType<T>;
63
- toAffine(iz?: T): AffinePoint<T>;
64
- isTorsionFree(): boolean;
65
- clearCofactor(): ProjPointType<T>;
66
- assertValidity(): void;
67
- hasEvenY(): boolean;
68
- toRawBytes(isCompressed?: boolean): Uint8Array;
69
- toHex(isCompressed?: boolean): string;
70
- multiplyUnsafe(scalar: bigint): ProjPointType<T>;
71
- multiplyAndAddUnsafe(Q: ProjPointType<T>, a: bigint, b: bigint): ProjPointType<T> | undefined;
72
- _setWindowSize(windowSize: number): void;
73
- }
74
- export interface ProjConstructor<T> extends GroupConstructor<ProjPointType<T>> {
75
- new (x: T, y: T, z: T): ProjPointType<T>;
76
- fromAffine(p: AffinePoint<T>): ProjPointType<T>;
77
- fromHex(hex: Hex): ProjPointType<T>;
78
- fromPrivateKey(privateKey: PrivKey): ProjPointType<T>;
79
- normalizeZ(points: ProjPointType<T>[]): ProjPointType<T>[];
80
- }
81
- export declare type CurvePointsType<T> = BasicWCurve<T> & {
82
- fromBytes: (bytes: Uint8Array) => AffinePoint<T>;
83
- toBytes: (c: ProjConstructor<T>, point: ProjPointType<T>, compressed: boolean) => Uint8Array;
84
- };
85
- export declare type CurvePointsRes<T> = {
86
- ProjectivePoint: ProjConstructor<T>;
87
- normPrivateKeyToScalar: (key: PrivKey) => bigint;
88
- weierstrassEquation: (x: T) => T;
89
- isWithinCurveOrder: (num: bigint) => boolean;
90
- };
91
- export declare const DER: {
92
- Err: {
93
- new (m?: string): {
94
- name: string;
95
- message: string;
96
- stack?: string;
97
- };
98
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
99
- prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
100
- stackTraceLimit: number;
101
- };
102
- _parseInt(data: Uint8Array): {
103
- d: bigint;
104
- l: Uint8Array;
105
- };
106
- toSig(hex: string | Uint8Array): {
107
- r: bigint;
108
- s: bigint;
109
- };
110
- hexFromSig(sig: {
111
- r: bigint;
112
- s: bigint;
113
- }): string;
114
- };
115
- export declare function weierstrassPoints<T>(opts: CurvePointsType<T>): {
116
- ProjectivePoint: ProjConstructor<T>;
117
- normPrivateKeyToScalar: (key: PrivKey) => bigint;
118
- weierstrassEquation: (x: T) => T;
119
- isWithinCurveOrder: (num: bigint) => boolean;
120
- };
121
- export interface SignatureType {
122
- readonly r: bigint;
123
- readonly s: bigint;
124
- readonly recovery?: number;
125
- assertValidity(): void;
126
- addRecoveryBit(recovery: number): SignatureType;
127
- hasHighS(): boolean;
128
- normalizeS(): SignatureType;
129
- recoverPublicKey(msgHash: Hex): ProjPointType<bigint>;
130
- toCompactRawBytes(): Uint8Array;
131
- toCompactHex(): string;
132
- toDERRawBytes(isCompressed?: boolean): Uint8Array;
133
- toDERHex(isCompressed?: boolean): string;
134
- }
135
- export declare type SignatureConstructor = {
136
- new (r: bigint, s: bigint): SignatureType;
137
- fromCompact(hex: Hex): SignatureType;
138
- fromDER(hex: Hex): SignatureType;
139
- };
140
- declare type SignatureLike = {
141
- r: bigint;
142
- s: bigint;
143
- };
144
- export declare type PubKey = Hex | ProjPointType<bigint>;
145
- export declare type CurveType = BasicWCurve<bigint> & {
146
- hash: CHash;
147
- hmac: HmacFnSync;
148
- randomBytes: (bytesLength?: number) => Uint8Array;
149
- lowS?: boolean;
150
- bits2int?: (bytes: Uint8Array) => bigint;
151
- bits2int_modN?: (bytes: Uint8Array) => bigint;
152
- };
153
- declare function validateOpts(curve: CurveType): Readonly<{
154
- readonly nBitLength: number;
155
- readonly nByteLength: number;
156
- readonly Fp: mod.Field<bigint>;
157
- readonly n: bigint;
158
- readonly h: bigint;
159
- readonly hEff?: bigint;
160
- readonly Gx: bigint;
161
- readonly Gy: bigint;
162
- readonly allowInfinityPoint?: boolean;
163
- readonly a: bigint;
164
- readonly b: bigint;
165
- readonly allowedPrivateKeyLengths?: readonly number[];
166
- readonly wrapPrivateKey?: boolean;
167
- readonly endo?: EndomorphismOpts;
168
- readonly isTorsionFree?: (c: ProjConstructor<bigint>, point: ProjPointType<bigint>) => boolean;
169
- readonly clearCofactor?: (c: ProjConstructor<bigint>, point: ProjPointType<bigint>) => ProjPointType<bigint>;
170
- readonly hash: ut.CHash;
171
- readonly hmac: HmacFnSync;
172
- readonly randomBytes: (bytesLength?: number) => Uint8Array;
173
- lowS: boolean;
174
- readonly bits2int?: (bytes: Uint8Array) => bigint;
175
- readonly bits2int_modN?: (bytes: Uint8Array) => bigint;
176
- }>;
177
- export declare type CurveFn = {
178
- CURVE: ReturnType<typeof validateOpts>;
179
- getPublicKey: (privateKey: PrivKey, isCompressed?: boolean) => Uint8Array;
180
- getSharedSecret: (privateA: PrivKey, publicB: Hex, isCompressed?: boolean) => Uint8Array;
181
- sign: (msgHash: Hex, privKey: PrivKey, opts?: SignOpts) => SignatureType;
182
- verify: (signature: Hex | SignatureLike, msgHash: Hex, publicKey: Hex, opts?: VerOpts) => boolean;
183
- ProjectivePoint: ProjConstructor<bigint>;
184
- Signature: SignatureConstructor;
185
- utils: {
186
- normPrivateKeyToScalar: (key: PrivKey) => bigint;
187
- isValidPrivateKey(privateKey: PrivKey): boolean;
188
- randomPrivateKey: () => Uint8Array;
189
- precompute: (windowSize?: number, point?: ProjPointType<bigint>) => ProjPointType<bigint>;
190
- };
191
- };
192
- export declare function weierstrass(curveDef: CurveType): CurveFn;
193
- export declare function SWUFpSqrtRatio<T>(Fp: mod.Field<T>, Z: T): (u: T, v: T) => {
194
- isValid: boolean;
195
- value: T;
196
- };
197
- export declare function mapToCurveSimpleSWU<T>(Fp: mod.Field<T>, opts: {
198
- A: T;
199
- B: T;
200
- Z: T;
201
- }): (u: T) => {
202
- x: T;
203
- y: T;
204
- };
1
+ /// <reference types="node" />
2
+ /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
3
+ import * as mod from './modular.js';
4
+ import * as ut from './utils.js';
5
+ import { CHash, Hex, PrivKey } from './utils.js';
6
+ import { Group, GroupConstructor, BasicCurve, AffinePoint } from './curve.js';
7
+ export type { AffinePoint };
8
+ declare type HmacFnSync = (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array;
9
+ declare type EndomorphismOpts = {
10
+ beta: bigint;
11
+ splitScalar: (k: bigint) => {
12
+ k1neg: boolean;
13
+ k1: bigint;
14
+ k2neg: boolean;
15
+ k2: bigint;
16
+ };
17
+ };
18
+ export declare type BasicWCurve<T> = BasicCurve<T> & {
19
+ a: T;
20
+ b: T;
21
+ allowedPrivateKeyLengths?: readonly number[];
22
+ wrapPrivateKey?: boolean;
23
+ endo?: EndomorphismOpts;
24
+ isTorsionFree?: (c: ProjConstructor<T>, point: ProjPointType<T>) => boolean;
25
+ clearCofactor?: (c: ProjConstructor<T>, point: ProjPointType<T>) => ProjPointType<T>;
26
+ };
27
+ declare type Entropy = Hex | true;
28
+ export declare type SignOpts = {
29
+ lowS?: boolean;
30
+ extraEntropy?: Entropy;
31
+ prehash?: boolean;
32
+ };
33
+ export declare type VerOpts = {
34
+ lowS?: boolean;
35
+ prehash?: boolean;
36
+ };
37
+ /**
38
+ * ### Design rationale for types
39
+ *
40
+ * * Interaction between classes from different curves should fail:
41
+ * `k256.Point.BASE.add(p256.Point.BASE)`
42
+ * * For this purpose we want to use `instanceof` operator, which is fast and works during runtime
43
+ * * Different calls of `curve()` would return different classes -
44
+ * `curve(params) !== curve(params)`: if somebody decided to monkey-patch their curve,
45
+ * it won't affect others
46
+ *
47
+ * TypeScript can't infer types for classes created inside a function. Classes is one instance of nominative types in TypeScript and interfaces only check for shape, so it's hard to create unique type for every function call.
48
+ *
49
+ * We can use generic types via some param, like curve opts, but that would:
50
+ * 1. Enable interaction between `curve(params)` and `curve(params)` (curves of same params)
51
+ * which is hard to debug.
52
+ * 2. Params can be generic and we can't enforce them to be constant value:
53
+ * if somebody creates curve from non-constant params,
54
+ * it would be allowed to interact with other curves with non-constant params
55
+ *
56
+ * TODO: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#unique-symbol
57
+ */
58
+ export interface ProjPointType<T> extends Group<ProjPointType<T>> {
59
+ readonly px: T;
60
+ readonly py: T;
61
+ readonly pz: T;
62
+ multiply(scalar: bigint): ProjPointType<T>;
63
+ toAffine(iz?: T): AffinePoint<T>;
64
+ isTorsionFree(): boolean;
65
+ clearCofactor(): ProjPointType<T>;
66
+ assertValidity(): void;
67
+ hasEvenY(): boolean;
68
+ toRawBytes(isCompressed?: boolean): Uint8Array;
69
+ toHex(isCompressed?: boolean): string;
70
+ multiplyUnsafe(scalar: bigint): ProjPointType<T>;
71
+ multiplyAndAddUnsafe(Q: ProjPointType<T>, a: bigint, b: bigint): ProjPointType<T> | undefined;
72
+ _setWindowSize(windowSize: number): void;
73
+ }
74
+ export interface ProjConstructor<T> extends GroupConstructor<ProjPointType<T>> {
75
+ new (x: T, y: T, z: T): ProjPointType<T>;
76
+ fromAffine(p: AffinePoint<T>): ProjPointType<T>;
77
+ fromHex(hex: Hex): ProjPointType<T>;
78
+ fromPrivateKey(privateKey: PrivKey): ProjPointType<T>;
79
+ normalizeZ(points: ProjPointType<T>[]): ProjPointType<T>[];
80
+ }
81
+ export declare type CurvePointsType<T> = BasicWCurve<T> & {
82
+ fromBytes: (bytes: Uint8Array) => AffinePoint<T>;
83
+ toBytes: (c: ProjConstructor<T>, point: ProjPointType<T>, compressed: boolean) => Uint8Array;
84
+ };
85
+ export declare type CurvePointsRes<T> = {
86
+ ProjectivePoint: ProjConstructor<T>;
87
+ normPrivateKeyToScalar: (key: PrivKey) => bigint;
88
+ weierstrassEquation: (x: T) => T;
89
+ isWithinCurveOrder: (num: bigint) => boolean;
90
+ };
91
+ export declare const DER: {
92
+ Err: {
93
+ new (m?: string): {
94
+ name: string;
95
+ message: string;
96
+ stack?: string;
97
+ };
98
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
99
+ prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
100
+ stackTraceLimit: number;
101
+ };
102
+ _parseInt(data: Uint8Array): {
103
+ d: bigint;
104
+ l: Uint8Array;
105
+ };
106
+ toSig(hex: string | Uint8Array): {
107
+ r: bigint;
108
+ s: bigint;
109
+ };
110
+ hexFromSig(sig: {
111
+ r: bigint;
112
+ s: bigint;
113
+ }): string;
114
+ };
115
+ export declare function weierstrassPoints<T>(opts: CurvePointsType<T>): {
116
+ ProjectivePoint: ProjConstructor<T>;
117
+ normPrivateKeyToScalar: (key: PrivKey) => bigint;
118
+ weierstrassEquation: (x: T) => T;
119
+ isWithinCurveOrder: (num: bigint) => boolean;
120
+ };
121
+ export interface SignatureType {
122
+ readonly r: bigint;
123
+ readonly s: bigint;
124
+ readonly recovery?: number;
125
+ assertValidity(): void;
126
+ addRecoveryBit(recovery: number): SignatureType;
127
+ hasHighS(): boolean;
128
+ normalizeS(): SignatureType;
129
+ recoverPublicKey(msgHash: Hex): ProjPointType<bigint>;
130
+ toCompactRawBytes(): Uint8Array;
131
+ toCompactHex(): string;
132
+ toDERRawBytes(isCompressed?: boolean): Uint8Array;
133
+ toDERHex(isCompressed?: boolean): string;
134
+ }
135
+ export declare type SignatureConstructor = {
136
+ new (r: bigint, s: bigint): SignatureType;
137
+ fromCompact(hex: Hex): SignatureType;
138
+ fromDER(hex: Hex): SignatureType;
139
+ };
140
+ declare type SignatureLike = {
141
+ r: bigint;
142
+ s: bigint;
143
+ };
144
+ export declare type PubKey = Hex | ProjPointType<bigint>;
145
+ export declare type CurveType = BasicWCurve<bigint> & {
146
+ hash: CHash;
147
+ hmac: HmacFnSync;
148
+ randomBytes: (bytesLength?: number) => Uint8Array;
149
+ lowS?: boolean;
150
+ bits2int?: (bytes: Uint8Array) => bigint;
151
+ bits2int_modN?: (bytes: Uint8Array) => bigint;
152
+ };
153
+ declare function validateOpts(curve: CurveType): Readonly<{
154
+ readonly nBitLength: number;
155
+ readonly nByteLength: number;
156
+ readonly Fp: mod.Field<bigint>;
157
+ readonly n: bigint;
158
+ readonly h: bigint;
159
+ readonly hEff?: bigint;
160
+ readonly Gx: bigint;
161
+ readonly Gy: bigint;
162
+ readonly allowInfinityPoint?: boolean;
163
+ readonly a: bigint;
164
+ readonly b: bigint;
165
+ readonly allowedPrivateKeyLengths?: readonly number[];
166
+ readonly wrapPrivateKey?: boolean;
167
+ readonly endo?: EndomorphismOpts;
168
+ readonly isTorsionFree?: (c: ProjConstructor<bigint>, point: ProjPointType<bigint>) => boolean;
169
+ readonly clearCofactor?: (c: ProjConstructor<bigint>, point: ProjPointType<bigint>) => ProjPointType<bigint>;
170
+ readonly hash: ut.CHash;
171
+ readonly hmac: HmacFnSync;
172
+ readonly randomBytes: (bytesLength?: number) => Uint8Array;
173
+ lowS: boolean;
174
+ readonly bits2int?: (bytes: Uint8Array) => bigint;
175
+ readonly bits2int_modN?: (bytes: Uint8Array) => bigint;
176
+ }>;
177
+ export declare type CurveFn = {
178
+ CURVE: ReturnType<typeof validateOpts>;
179
+ getPublicKey: (privateKey: PrivKey, isCompressed?: boolean) => Uint8Array;
180
+ getSharedSecret: (privateA: PrivKey, publicB: Hex, isCompressed?: boolean) => Uint8Array;
181
+ sign: (msgHash: Hex, privKey: PrivKey, opts?: SignOpts) => SignatureType;
182
+ verify: (signature: Hex | SignatureLike, msgHash: Hex, publicKey: Hex, opts?: VerOpts) => boolean;
183
+ ProjectivePoint: ProjConstructor<bigint>;
184
+ Signature: SignatureConstructor;
185
+ utils: {
186
+ normPrivateKeyToScalar: (key: PrivKey) => bigint;
187
+ isValidPrivateKey(privateKey: PrivKey): boolean;
188
+ randomPrivateKey: () => Uint8Array;
189
+ precompute: (windowSize?: number, point?: ProjPointType<bigint>) => ProjPointType<bigint>;
190
+ };
191
+ };
192
+ export declare function weierstrass(curveDef: CurveType): CurveFn;
193
+ export declare function SWUFpSqrtRatio<T>(Fp: mod.Field<T>, Z: T): (u: T, v: T) => {
194
+ isValid: boolean;
195
+ value: T;
196
+ };
197
+ export declare function mapToCurveSimpleSWU<T>(Fp: mod.Field<T>, opts: {
198
+ A: T;
199
+ B: T;
200
+ Z: T;
201
+ }): (u: T) => {
202
+ x: T;
203
+ y: T;
204
+ };
@@ -1,3 +1,9 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
1
7
  declare const _default: string;
2
8
  export declare namespace formatters {
3
9
  function RFC1738(value: any): string;
@@ -1,3 +1,9 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
1
7
  import formats = require("./formats.cjs");
2
8
  import parse = require("./parse.cjs");
3
9
  import stringify = require("./stringify.cjs");
@@ -1,2 +1,8 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
1
7
  declare function _exports(str: any, opts: any): any;
2
8
  export = _exports;
@@ -1,2 +1,8 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
1
7
  declare function _exports(object: any, opts: any): string;
2
8
  export = _exports;
@@ -1,3 +1,9 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
1
7
  export function arrayToObject(source: any, options: any): any;
2
8
  export function assign(target: any, source: any): any;
3
9
  export function combine(a: any, b: any): any[];
@@ -1,5 +1,5 @@
1
1
  import { Abi, FunctionAbi, RawArgs } from '../../../types/index.js';
2
2
  import { AbiParserInterface } from './interface.js';
3
3
  export declare function createAbiParser(abi: Abi): AbiParserInterface;
4
- export declare function getAbiVersion(abi: Abi): 1 | 0 | 2;
4
+ export declare function getAbiVersion(abi: Abi): 0 | 1 | 2;
5
5
  export declare function isNoConstructorValid(method: string, argsCalldata: RawArgs, abiMethod?: FunctionAbi): boolean;
package/js/src/toobit.js CHANGED
@@ -210,12 +210,12 @@ export default class toobit extends Exchange {
210
210
  if (filterType === 'PRICE_FILTER') {
211
211
  minPrice = this.safeNumber(filter, 'minPrice');
212
212
  maxPrice = this.safeNumber(filter, 'maxPrice');
213
- tickSize = this.safeNumber(filter, 'tickSize');
213
+ tickSize = this.safeString(filter, 'tickSize');
214
214
  }
215
215
  else if (filterType === 'LOT_SIZE') {
216
216
  minQty = this.safeNumber(filter, 'minQty');
217
217
  maxQty = this.safeNumber(filter, 'maxQty');
218
- stepSize = this.safeNumber(filter, 'stepSize');
218
+ stepSize = this.safeString(filter, 'stepSize');
219
219
  }
220
220
  else if (filterType === 'MIN_NOTIONAL') {
221
221
  minNotional = this.safeNumber(filter, 'minNotional');