@gearbox-protocol/sdk 9.0.1 → 9.0.2
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.
|
@@ -39,7 +39,7 @@ class EthCallSpy {
|
|
|
39
39
|
const data = await request.json();
|
|
40
40
|
const blockNumber = this.#shouldStore(data);
|
|
41
41
|
if (blockNumber) {
|
|
42
|
-
this
|
|
42
|
+
this.storeCall(blockNumber, data);
|
|
43
43
|
this.#logger?.debug(
|
|
44
44
|
`spy stored eth_call at block ${blockNumber}, total calls: ${this.#detectedCalls.length}`
|
|
45
45
|
);
|
|
@@ -74,7 +74,7 @@ class EthCallSpy {
|
|
|
74
74
|
}
|
|
75
75
|
return void 0;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
storeCall(blockNumber, data) {
|
|
78
78
|
if (blockNumber !== this.#detectedBlock) {
|
|
79
79
|
this.#detectedBlock = blockNumber;
|
|
80
80
|
this.#detectedCalls = [];
|
|
@@ -16,7 +16,7 @@ class EthCallSpy {
|
|
|
16
16
|
const data = await request.json();
|
|
17
17
|
const blockNumber = this.#shouldStore(data);
|
|
18
18
|
if (blockNumber) {
|
|
19
|
-
this
|
|
19
|
+
this.storeCall(blockNumber, data);
|
|
20
20
|
this.#logger?.debug(
|
|
21
21
|
`spy stored eth_call at block ${blockNumber}, total calls: ${this.#detectedCalls.length}`
|
|
22
22
|
);
|
|
@@ -51,7 +51,7 @@ class EthCallSpy {
|
|
|
51
51
|
}
|
|
52
52
|
return void 0;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
storeCall(blockNumber, data) {
|
|
55
55
|
if (blockNumber !== this.#detectedBlock) {
|
|
56
56
|
this.#detectedBlock = blockNumber;
|
|
57
57
|
this.#detectedCalls = [];
|
|
@@ -33,7 +33,13 @@ export interface TargetAccount {
|
|
|
33
33
|
* These tokens will be transferred directly from faucet to credit account
|
|
34
34
|
*/
|
|
35
35
|
directTransfer?: Address[];
|
|
36
|
+
/**
|
|
37
|
+
* Leverage, without percentage (e.g. "3" for 300%)
|
|
38
|
+
*/
|
|
36
39
|
leverage?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Slippage with percentage (e.g. 100 = 1%)
|
|
42
|
+
*/
|
|
37
43
|
slippage?: number;
|
|
38
44
|
}
|
|
39
45
|
export interface OpenAccountResult {
|