@gearbox-protocol/sdk 3.0.0-next.122 → 3.0.0-next.123
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/lib/core/eventOrTx.d.ts +2 -3
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +1 -1
package/lib/core/eventOrTx.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TokenData } from "../tokens/tokenData";
|
|
2
|
+
import { PartialKeys } from "../utils/types";
|
|
2
3
|
import type { TxSerialized } from "./transactions";
|
|
3
4
|
export interface Display {
|
|
4
5
|
toString: (tokenData: Record<string, TokenData>) => string;
|
|
@@ -28,12 +29,10 @@ export declare abstract class EVMEvent extends EventOrTx {
|
|
|
28
29
|
logId?: number;
|
|
29
30
|
constructor(opts: EVMEventProps);
|
|
30
31
|
}
|
|
31
|
-
type
|
|
32
|
-
export type EVMTxProps = Omit<EventOrTxProps, OptionalFields> & Partial<Pick<EventOrTxProps, OptionalFields>>;
|
|
32
|
+
export type EVMTxProps = PartialKeys<EventOrTxProps, "block" | "txStatus">;
|
|
33
33
|
export declare abstract class EVMTx extends EventOrTx {
|
|
34
34
|
constructor({ txHash, block, txStatus, timestamp, }: EVMTxProps);
|
|
35
35
|
abstract serialize(): TxSerialized;
|
|
36
36
|
revert(block: number): void;
|
|
37
37
|
success(block: number): void;
|
|
38
38
|
}
|
|
39
|
-
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export * from "./utils/loading";
|
|
|
33
33
|
export * from "./utils/math";
|
|
34
34
|
export * from "./utils/price";
|
|
35
35
|
export { callRepeater } from "./utils/repeater";
|
|
36
|
+
export * from "./utils/types";
|
|
36
37
|
export * from "./utils/validate";
|
|
37
38
|
export * from "./watchers/creditAccountWatcher";
|
|
38
39
|
export * from "./watchers/creditManagerWatcher";
|
package/lib/index.js
CHANGED
|
@@ -51,6 +51,7 @@ __exportStar(require("./utils/math"), exports);
|
|
|
51
51
|
__exportStar(require("./utils/price"), exports);
|
|
52
52
|
var repeater_1 = require("./utils/repeater");
|
|
53
53
|
Object.defineProperty(exports, "callRepeater", { enumerable: true, get: function () { return repeater_1.callRepeater; } });
|
|
54
|
+
__exportStar(require("./utils/types"), exports);
|
|
54
55
|
__exportStar(require("./utils/validate"), exports);
|
|
55
56
|
__exportStar(require("./watchers/creditAccountWatcher"), exports);
|
|
56
57
|
__exportStar(require("./watchers/creditManagerWatcher"), exports);
|