Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new: upgrade maticjs web3 and ethers #439

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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