Skip to content

Commit

Permalink
chore: remove the appedix for toJSON function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ngozi-Txfusion committed Jul 3, 2024
1 parent 3192211 commit a5528e3
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ Returns an estimated [`Fee`](/sdk/js/ethers/api/v5/types#fee) for requested tran
async estimateFee(transaction: TransactionRequest): Promise<Fee>
```

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -297,8 +295,6 @@ async getAllAccountBalances(address: Address): Promise<BalancesMap>

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -366,8 +362,6 @@ async getBlock(blockHashOrBlockTag: BlockTag | string | Promise<BlockTag | strin

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand All @@ -393,8 +387,6 @@ async getBlockDetails(number:number): Promise<BlockDetails>

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -472,8 +464,6 @@ async getConfirmedTokens(start: number = 0, limit: number = 255): Promise<Token[

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types, utils } from "zksync-ethers";

Expand All @@ -498,8 +488,6 @@ async getContractAccountInfo(address:Address): Promise<ContractAccountInfo>

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand All @@ -525,8 +513,6 @@ getDefaultBridgeAddresses(): Promise<{

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -619,8 +605,6 @@ async getFeeParams(): Promise<FeeParams>

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types, utils } from "zksync-ethers";

Expand Down Expand Up @@ -709,8 +693,6 @@ async getL1BatchBlockRange(l1BatchNumber: number): Promise<[number, number] | nu

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand All @@ -737,8 +719,6 @@ async getL1BatchDetails(number: number): Promise<BatchDetails>

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -782,8 +762,6 @@ async getL2TransactionFromPriorityOp(l1TxResponse: ethers.TransactionResponse):

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -815,8 +793,6 @@ async getLogProof(txHash: BytesLike, index ? : number): Promise<MessageProof | n

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -844,8 +820,6 @@ getLogs(filter: Filter | FilterByBlockHash | Promise<Filter | FilterByBlockHash>

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -894,8 +868,6 @@ async getPriorityOpConfirmation(txHash: string, index: number = 0): Promise<{

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types, utils } from "zksync-ethers";

Expand Down Expand Up @@ -923,8 +895,6 @@ async getPriorityOpResponse(l1TxResponse: ethers.TransactionResponse): Promise<P

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -958,8 +928,6 @@ async getProof(address: Address, keys: string[], l1BatchNumber: number): Promise

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types, utils } from "zksync-ethers";

Expand Down Expand Up @@ -1031,8 +999,6 @@ async getRawBlockTransactions(number: number): Promise<RawBlockTransaction[]>

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -1108,8 +1074,6 @@ async getTransactionDetails(txHash: BytesLike): Promise<TransactionDetails>

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -1137,8 +1101,6 @@ async getTransactionReceipt(transactionHash: string | Promise<string>): Promise<

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand All @@ -1163,8 +1125,6 @@ async getTransactionStatus(txHash: string): Promise<TransactionStatus>

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, types } from "zksync-ethers";

Expand Down Expand Up @@ -1523,8 +1483,6 @@ async sendRawTransactionWithDetailedOutput(signedTx: string): Promise<Transactio

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, Wallet, types, utils } from "zksync-ethers";
import { ethers } from "ethers";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -839,20 +839,3 @@ const message = "Hello, ZKsync!";
const signature = await signer.signMessage(message);
console.log(`Signature: ${signature}`);
```

## Appendix

### toJSON

Helper function to convert objects to JSON string with BigInt support.

```ts
function toJSON(object: any): string {
return JSON.stringify(object, (key, value) => {
if (typeof value === "bigint") {
return value.toString(); // Convert BigInt to string
}
return value;
});
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -1919,8 +1919,6 @@ async getPriorityOpConfirmation(txHash: string, index: number = 0): Promise<{

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Wallet, Provider, types, utils } from "zksync-ethers";
import { ethers } from "ethers";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1073,8 +1073,6 @@ async getPriorityOpConfirmation(txHash: string, index: number = 0): Promise<{

#### Example

Helper function: [toJSON](/sdk/js/ethers/api/v5/providers/web3provider#tojson).

```ts
import { Provider, L1Signer, types } from "zksync-ethers";
import { ethers } from "ethers";
Expand Down
Loading

0 comments on commit a5528e3

Please sign in to comment.