Skip to content

refactor(utils): Add support for converting legacy chains

Codecov / codecov/patch succeeded Feb 26, 2024 in 1s

8.73% of diff hit (target 66.95%)

View this Pull Request on Codecov

8.73% of diff hit (target 66.95%)

Annotations

Check warning on line 74 in packages/thirdweb/src/abi/lib/normalizeSignature.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/abi/lib/normalizeSignature.ts#L73-L74

Added lines #L73 - L74 were not covered by tests

Check warning on line 472 in packages/thirdweb/src/adapters/ethers5.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/adapters/ethers5.ts#L1-L472

Added lines #L1 - L472 were not covered by tests

Check warning on line 476 in packages/thirdweb/src/adapters/ethers6.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/adapters/ethers6.ts#L1-L476

Added lines #L1 - L476 were not covered by tests

Check warning on line 64 in packages/thirdweb/src/adapters/viem.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/adapters/viem.ts#L1-L64

Added lines #L1 - L64 were not covered by tests

Check warning on line 19 in packages/thirdweb/src/chains/chain-definitions/arbitrum-sepolia.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/arbitrum-sepolia.ts#L1-L19

Added lines #L1 - L19 were not covered by tests

Check warning on line 14 in packages/thirdweb/src/chains/chain-definitions/arbitrum.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/arbitrum.ts#L1-L14

Added lines #L1 - L14 were not covered by tests

Check warning on line 19 in packages/thirdweb/src/chains/chain-definitions/avalanche-fuji.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/avalanche-fuji.ts#L1-L19

Added lines #L1 - L19 were not covered by tests

Check warning on line 18 in packages/thirdweb/src/chains/chain-definitions/avalanche.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/avalanche.ts#L1-L18

Added lines #L1 - L18 were not covered by tests

Check warning on line 15 in packages/thirdweb/src/chains/chain-definitions/base-sepolia.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/base-sepolia.ts#L1-L15

Added lines #L1 - L15 were not covered by tests

Check warning on line 14 in packages/thirdweb/src/chains/chain-definitions/base.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/base.ts#L1-L14

Added lines #L1 - L14 were not covered by tests

Check warning on line 15 in packages/thirdweb/src/chains/chain-definitions/optimism-sepolia.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/optimism-sepolia.ts#L1-L15

Added lines #L1 - L15 were not covered by tests

Check warning on line 20 in packages/thirdweb/src/chains/chain-definitions/polygon-mumbai.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/polygon-mumbai.ts#L1-L20

Added lines #L1 - L20 were not covered by tests

Check warning on line 14 in packages/thirdweb/src/chains/chain-definitions/polygon.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/polygon.ts#L1-L14

Added lines #L1 - L14 were not covered by tests

Check warning on line 15 in packages/thirdweb/src/chains/chain-definitions/sepolia.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/sepolia.ts#L1-L15

Added lines #L1 - L15 were not covered by tests

Check warning on line 20 in packages/thirdweb/src/chains/chain-definitions/zora-sepolia.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/zora-sepolia.ts#L1-L20

Added lines #L1 - L20 were not covered by tests

Check warning on line 18 in packages/thirdweb/src/chains/chain-definitions/zora.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/chain-definitions/zora.ts#L1-L18

Added lines #L1 - L18 were not covered by tests

Check warning on line 104 in packages/thirdweb/src/chains/types.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/types.ts#L1-L104

Added lines #L1 - L104 were not covered by tests

Check warning on line 28 in packages/thirdweb/src/chains/utils.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/utils.ts#L27-L28

Added lines #L27 - L28 were not covered by tests

Check warning on line 30 in packages/thirdweb/src/chains/utils.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/utils.ts#L30

Added line #L30 was not covered by tests

Check warning on line 33 in packages/thirdweb/src/chains/utils.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/utils.ts#L32-L33

Added lines #L32 - L33 were not covered by tests

Check warning on line 69 in packages/thirdweb/src/chains/utils.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/utils.ts#L48-L69

Added lines #L48 - L69 were not covered by tests

Check warning on line 96 in packages/thirdweb/src/chains/utils.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/utils.ts#L77-L96

Added lines #L77 - L96 were not covered by tests

Check warning on line 115 in packages/thirdweb/src/chains/utils.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/utils.ts#L114-L115

Added lines #L114 - L115 were not covered by tests

Check warning on line 144 in packages/thirdweb/src/chains/utils.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/utils.ts#L133-L144

Added lines #L133 - L144 were not covered by tests

Check warning on line 164 in packages/thirdweb/src/chains/utils.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/thirdweb/src/chains/utils.ts#L153-L164

Added lines #L153 - L164 were not covered by tests