opnet 1.0.59 → 1.0.61
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/browser/_version.d.ts +1 -1
- package/browser/block/BlockGasParameters.d.ts +25 -0
- package/browser/index.js +1 -1
- package/browser/opnet.d.ts +1 -0
- package/browser/providers/AbstractRpcProvider.d.ts +2 -0
- package/browser/providers/interfaces/JSONRpcMethods.d.ts +3 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/block/BlockGasParameters.d.ts +25 -0
- package/build/block/BlockGasParameters.js +10 -0
- package/build/opnet.d.ts +1 -0
- package/build/opnet.js +1 -0
- package/build/providers/AbstractRpcProvider.d.ts +2 -0
- package/build/providers/AbstractRpcProvider.js +10 -0
- package/build/providers/interfaces/JSONRpcMethods.d.ts +3 -1
- package/build/providers/interfaces/JSONRpcMethods.js +2 -0
- package/package.json +3 -3
- package/src/_version.ts +1 -1
- package/src/block/BlockGasParameters.ts +35 -0
- package/src/opnet.ts +1 -0
- package/src/providers/AbstractRpcProvider.ts +20 -0
- package/src/providers/interfaces/JSONRpcMethods.ts +3 -0
package/browser/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.61";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface IBlockGasParameters {
|
|
2
|
+
readonly blockNumber: bigint;
|
|
3
|
+
readonly gasUsed: bigint;
|
|
4
|
+
readonly targetGasLimit: bigint;
|
|
5
|
+
readonly ema: bigint;
|
|
6
|
+
readonly baseGas: bigint;
|
|
7
|
+
readonly gasPerSat: bigint;
|
|
8
|
+
}
|
|
9
|
+
export interface IBlockGasParametersInput {
|
|
10
|
+
readonly blockNumber: string;
|
|
11
|
+
readonly gasUsed: string;
|
|
12
|
+
readonly targetGasLimit: string;
|
|
13
|
+
readonly ema: string;
|
|
14
|
+
readonly baseGas: string;
|
|
15
|
+
readonly gasPerSat: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class BlockGasParameters implements IBlockGasParameters {
|
|
18
|
+
readonly blockNumber: bigint;
|
|
19
|
+
readonly gasUsed: bigint;
|
|
20
|
+
readonly targetGasLimit: bigint;
|
|
21
|
+
readonly ema: bigint;
|
|
22
|
+
readonly baseGas: bigint;
|
|
23
|
+
readonly gasPerSat: bigint;
|
|
24
|
+
constructor(data: IBlockGasParametersInput);
|
|
25
|
+
}
|