opnet 1.4.2 → 1.4.3
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/Block.d.ts +2 -2
- package/browser/block/interfaces/IBlock.d.ts +1 -1
- package/browser/index.js +1 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/block/Block.d.ts +2 -2
- package/build/block/Block.js +3 -3
- package/build/block/interfaces/IBlock.d.ts +1 -1
- package/package.json +1 -1
- package/src/_version.ts +1 -1
- package/src/block/Block.ts +4 -4
- package/src/block/interfaces/IBlock.ts +1 -1
package/build/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.4.
|
|
1
|
+
export declare const version = "1.4.3";
|
package/build/_version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.4.
|
|
1
|
+
export const version = '1.4.3';
|
package/build/block/Block.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { BigNumberish } from '../common/CommonTypes.js';
|
|
|
4
4
|
import { OPNetTransactionTypes } from '../interfaces/opnet/OPNetTransactionTypes.js';
|
|
5
5
|
import { TransactionBase } from '../transactions/Transaction.js';
|
|
6
6
|
import { BlockHeaderChecksumProof, IBlock } from './interfaces/IBlock.js';
|
|
7
|
-
export declare class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas' | '
|
|
7
|
+
export declare class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas' | 'deployments'> {
|
|
8
8
|
readonly height: BigNumberish;
|
|
9
9
|
readonly hash: string;
|
|
10
10
|
readonly previousBlockHash: string;
|
|
@@ -27,6 +27,6 @@ export declare class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas'
|
|
|
27
27
|
readonly gasUsed: bigint;
|
|
28
28
|
readonly checksumProofs: BlockHeaderChecksumProof;
|
|
29
29
|
readonly transactions: TransactionBase<OPNetTransactionTypes>[];
|
|
30
|
-
readonly
|
|
30
|
+
readonly deployments: Address[];
|
|
31
31
|
constructor(block: IBlock, network: Network);
|
|
32
32
|
}
|
package/build/block/Block.js
CHANGED
|
@@ -23,7 +23,7 @@ export class Block {
|
|
|
23
23
|
gasUsed;
|
|
24
24
|
checksumProofs;
|
|
25
25
|
transactions = [];
|
|
26
|
-
|
|
26
|
+
deployments = [];
|
|
27
27
|
constructor(block, network) {
|
|
28
28
|
this.height = BigInt(block.height.toString());
|
|
29
29
|
this.hash = block.hash;
|
|
@@ -47,8 +47,8 @@ export class Block {
|
|
|
47
47
|
this.receiptRoot = block.receiptRoot;
|
|
48
48
|
this.checksumProofs = block.checksumProofs;
|
|
49
49
|
this.transactions = TransactionParser.parseTransactions(block.transactions, network);
|
|
50
|
-
this.
|
|
51
|
-
? block.
|
|
50
|
+
this.deployments = block.deployments
|
|
51
|
+
? block.deployments.map((address) => {
|
|
52
52
|
return Address.fromString(address);
|
|
53
53
|
})
|
|
54
54
|
: [];
|
package/package.json
CHANGED
package/src/_version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.4.
|
|
1
|
+
export const version = '1.4.3';
|
package/src/block/Block.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { BlockHeaderChecksumProof, IBlock } from './interfaces/IBlock.js';
|
|
|
12
12
|
* @class Block
|
|
13
13
|
* @category Block
|
|
14
14
|
*/
|
|
15
|
-
export class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas' | '
|
|
15
|
+
export class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas' | 'deployments'> {
|
|
16
16
|
public readonly height: BigNumberish;
|
|
17
17
|
|
|
18
18
|
public readonly hash: string;
|
|
@@ -43,7 +43,7 @@ export class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas' | 'depl
|
|
|
43
43
|
public readonly checksumProofs: BlockHeaderChecksumProof;
|
|
44
44
|
|
|
45
45
|
public readonly transactions: TransactionBase<OPNetTransactionTypes>[] = [];
|
|
46
|
-
public readonly
|
|
46
|
+
public readonly deployments: Address[] = [];
|
|
47
47
|
|
|
48
48
|
constructor(block: IBlock, network: Network) {
|
|
49
49
|
this.height = BigInt(block.height.toString());
|
|
@@ -80,8 +80,8 @@ export class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas' | 'depl
|
|
|
80
80
|
network,
|
|
81
81
|
);
|
|
82
82
|
|
|
83
|
-
this.
|
|
84
|
-
? block.
|
|
83
|
+
this.deployments = block.deployments
|
|
84
|
+
? block.deployments.map((address) => {
|
|
85
85
|
return Address.fromString(address);
|
|
86
86
|
})
|
|
87
87
|
: [];
|