Skip to content

Commit

Permalink
Merge pull request #440 from maticnetwork/v3.9.2
Browse files Browse the repository at this point in the history
fix: webpack
  • Loading branch information
nitinmittal23 authored Aug 22, 2024
2 parents 6af975d + 0844c53 commit 15f2efe
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 21,215 deletions.
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@maticnetwork/maticjs": "^3.4.0",
"@maticnetwork/maticjs": "^3.9.2",
"@maticnetwork/maticjs-web3": "^1.0.4",
"@truffle/hdwallet-provider": "^1.5.1-alpha.1",
"dotenv": "^10.0.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maticnetwork/maticjs",
"version": "3.9.1",
"version": "3.9.2",
"description": "Javascript developer library for interacting with Matic Network",
"main": "dist/npm.export.js",
"types": "dist/ts/index.d.ts",
Expand Down
3 changes: 1 addition & 2 deletions src/abstracts/base_big_number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export abstract class BaseBigNumber {

abstract toString(): string;
abstract toNumber(): number;
abstract toBuffer(): Buffer;
abstract add(value: BaseBigNumber): BaseBigNumber;
abstract sub(value: BaseBigNumber): BaseBigNumber;
abstract mul(value: BaseBigNumber): BaseBigNumber;
Expand All @@ -18,4 +17,4 @@ export abstract class BaseBigNumber {
abstract gte(value: BaseBigNumber): boolean;
abstract gt(value: BaseBigNumber): boolean;
abstract eq(value: BaseBigNumber): boolean;
}
}
6 changes: 3 additions & 3 deletions src/abstracts/base_web3_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export abstract class BaseWeb3Client {
abstract getBlockWithTransaction(blockHashOrBlockNumber): Promise<IBlockWithTransaction>;
abstract hexToNumber(value: any): number;
abstract hexToNumberString(value: any): string;
abstract getBalance(address: string): string;
abstract getAccounts(): string[];
abstract signTypedData(signer: string, typedData: object): string;
abstract getBalance(address: string): Promise<string>;
abstract getAccounts(): Promise<string[]>;
abstract signTypedData(signer: string, typedData: object): Promise<string>;

getRootHash?(startBlock: number, endBlock: number) {
return this.sendRPCRequest({
Expand Down
3 changes: 1 addition & 2 deletions src/enums/log_event_signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ export enum Log_Event_Signature {
Erc721BatchTransfer = '0xf871896b17e9cb7a64941c62c188a4f5c621b86800e3d15452ece01ce56073df',
Erc1155BatchTransfer = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb',
Erc721TransferWithMetadata = '0xf94915c6d1fd521cee85359239227480c7e8776d7caf1fc3bacad5c269b66a14',

}
}
6 changes: 1 addition & 5 deletions src/implementation/bn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ export class EmptyBigNumber extends BaseBigNumber {
return throwNotImplemented<number>();
}

toBuffer(base?) {
return throwNotImplemented<Buffer>();
}

add(value: BaseBigNumber) {
return throwNotImplemented<BaseBigNumber>();
}
Expand Down Expand Up @@ -57,4 +53,4 @@ export class EmptyBigNumber extends BaseBigNumber {
eq(value: BaseBigNumber) {
return throwNotImplemented<boolean>();
}
}
}
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ export * from "./services";
export * from "./zkevm";

export default defaultExport;

Loading

0 comments on commit 15f2efe

Please sign in to comment.