Skip to content
Closed
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
7 changes: 7 additions & 0 deletions .changeset/remove-ibc-oracle-precompiles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@sei-js/precompiles': major
---

**Breaking:** remove the IBC and Oracle precompiles. `IBC_PRECOMPILE_ADDRESS`, `IBC_PRECOMPILE_ABI`, `ETHERS_IBC_PRECOMPILE_ABI`, `getIbcPrecompileEthersV6Contract`, `VIEM_IBC_PRECOMPILE_ABI`, `ORACLE_PRECOMPILE_ADDRESS`, `ORACLE_PRECOMPILE_ABI`, `ETHERS_ORACLE_PRECOMPILE_ABI`, `getOraclePrecompileEthersV6Contract`, and `VIEM_ORACLE_PRECOMPILE_ABI` are no longer exported.

Neither precompile is supported on Sei any more, so calls to them fail on-chain regardless of where the address and ABI come from. There is no drop-in replacement: re-declaring them locally will not restore working calls, and code still depending on them needs to move off these precompiles.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] This changeset is the release note downstream integrators will read, and "Neither precompile is supported on Sei any more" is the whole basis for the breaking change — but it points at nothing they can check. CON-283 / CON-205 are internal and won't resolve for them.

Consider linking a public source (docs.sei.io deprecation notice, or the sei-chain PR/upgrade that removed the precompiles) so integrators hitting a failed build can confirm the on-chain reality for themselves rather than having to take the note on faith. The rest of the wording is good — explicitly saying there is no drop-in replacement and that re-declaring the address locally won't help is exactly the right thing to tell someone who is about to do precisely that.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import {
ETHERS_BANK_PRECOMPILE_ABI,
ETHERS_DISTRIBUTION_PRECOMPILE_ABI,
ETHERS_GOVERNANCE_PRECOMPILE_ABI,
ETHERS_IBC_PRECOMPILE_ABI,
ETHERS_JSON_PRECOMPILE_ABI,
ETHERS_ORACLE_PRECOMPILE_ABI,
ETHERS_POINTERVIEW_PRECOMPILE_ABI,
ETHERS_POINTER_PRECOMPILE_ABI,
ETHERS_SOLO_PRECOMPILE_ABI,
Expand All @@ -17,9 +15,7 @@ import {
getBankPrecompileEthersV6Contract,
getDistributionPrecompileEthersV6Contract,
getGovernancePrecompileEthersV6Contract,
getIbcPrecompileEthersV6Contract,
getJSONPrecompileEthersV6Contract,
getOraclePrecompileEthersV6Contract,
getPointerPrecompileEthersV6Contract,
getPointerviewPrecompileEthersV6Contract,
getSoloPrecompileEthersV6Contract,
Expand All @@ -36,12 +32,8 @@ import {
DISTRIBUTION_PRECOMPILE_ADDRESS,
GOVERNANCE_PRECOMPILE_ABI,
GOVERNANCE_PRECOMPILE_ADDRESS,
IBC_PRECOMPILE_ABI,
IBC_PRECOMPILE_ADDRESS,
JSON_PRECOMPILE_ABI,
JSON_PRECOMPILE_ADDRESS,
ORACLE_PRECOMPILE_ABI,
ORACLE_PRECOMPILE_ADDRESS,
POINTERVIEW_PRECOMPILE_ABI,
POINTERVIEW_PRECOMPILE_ADDRESS,
POINTER_PRECOMPILE_ABI,
Expand All @@ -59,9 +51,7 @@ const FACTORIES: [string, string, InterfaceAbi, unknown, (runner: ContractRunner
['BANK', BANK_PRECOMPILE_ADDRESS, BANK_PRECOMPILE_ABI, ETHERS_BANK_PRECOMPILE_ABI, getBankPrecompileEthersV6Contract],
['DISTRIBUTION', DISTRIBUTION_PRECOMPILE_ADDRESS, DISTRIBUTION_PRECOMPILE_ABI, ETHERS_DISTRIBUTION_PRECOMPILE_ABI, getDistributionPrecompileEthersV6Contract],
['GOVERNANCE', GOVERNANCE_PRECOMPILE_ADDRESS, GOVERNANCE_PRECOMPILE_ABI, ETHERS_GOVERNANCE_PRECOMPILE_ABI, getGovernancePrecompileEthersV6Contract],
['IBC', IBC_PRECOMPILE_ADDRESS, IBC_PRECOMPILE_ABI, ETHERS_IBC_PRECOMPILE_ABI, getIbcPrecompileEthersV6Contract],
['JSON', JSON_PRECOMPILE_ADDRESS, JSON_PRECOMPILE_ABI, ETHERS_JSON_PRECOMPILE_ABI, getJSONPrecompileEthersV6Contract],
['ORACLE', ORACLE_PRECOMPILE_ADDRESS, ORACLE_PRECOMPILE_ABI, ETHERS_ORACLE_PRECOMPILE_ABI, getOraclePrecompileEthersV6Contract],
['POINTER', POINTER_PRECOMPILE_ADDRESS, POINTER_PRECOMPILE_ABI, ETHERS_POINTER_PRECOMPILE_ABI, getPointerPrecompileEthersV6Contract],
['POINTERVIEW', POINTERVIEW_PRECOMPILE_ADDRESS, POINTERVIEW_PRECOMPILE_ABI, ETHERS_POINTERVIEW_PRECOMPILE_ABI, getPointerviewPrecompileEthersV6Contract],
['SOLO', SOLO_PRECOMPILE_ADDRESS, SOLO_PRECOMPILE_ABI, ETHERS_SOLO_PRECOMPILE_ABI, getSoloPrecompileEthersV6Contract],
Expand Down
35 changes: 0 additions & 35 deletions packages/precompiles/src/ethers/ibcPrecompile.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/precompiles/src/ethers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ export * from './addressPrecompile';
export * from './bankPrecompile';
export * from './distributionPrecompile';
export * from './governancePrecompile';
export * from './ibcPrecompile';
export * from './jsonPrecompile';
export * from './oraclePrecompile';
export * from './pointerPrecompile';
export * from './pointerviewPrecompile';
export * from './soloPrecompile';
Expand Down
34 changes: 0 additions & 34 deletions packages/precompiles/src/ethers/oraclePrecompile.ts

This file was deleted.

43 changes: 0 additions & 43 deletions packages/precompiles/src/precompiles/ibc.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/precompiles/src/precompiles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ export * from './address';
export * from './bank';
export * from './distribution';
export * from './governance';
export * from './ibc';
export * from './json';
export * from './oracle';
export * from './pointer';
export * from './pointerview';
export * from './solo';
Expand Down
56 changes: 0 additions & 56 deletions packages/precompiles/src/precompiles/oracle.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import {
BANK_PRECOMPILE_ABI,
DISTRIBUTION_PRECOMPILE_ABI,
GOVERNANCE_PRECOMPILE_ABI,
IBC_PRECOMPILE_ABI,
JSON_PRECOMPILE_ABI,
ORACLE_PRECOMPILE_ABI,
POINTERVIEW_PRECOMPILE_ABI,
POINTER_PRECOMPILE_ABI,
SOLO_PRECOMPILE_ABI,
Expand All @@ -19,9 +17,7 @@ import {
VIEM_BANK_PRECOMPILE_ABI,
VIEM_DISTRIBUTION_PRECOMPILE_ABI,
VIEM_GOVERNANCE_PRECOMPILE_ABI,
VIEM_IBC_PRECOMPILE_ABI,
VIEM_JSON_PRECOMPILE_ABI,
VIEM_ORACLE_PRECOMPILE_ABI,
VIEM_POINTERVIEW_PRECOMPILE_ABI,
VIEM_POINTER_PRECOMPILE_ABI,
VIEM_SOLO_PRECOMPILE_ABI,
Expand All @@ -34,9 +30,7 @@ const PRECOMPILE_VIEM_ABIS: [string, Abi][] = [
['BANK', BANK_PRECOMPILE_ABI as Abi],
['DISTRIBUTION', DISTRIBUTION_PRECOMPILE_ABI as Abi],
['GOVERNANCE', GOVERNANCE_PRECOMPILE_ABI as Abi],
['IBC', IBC_PRECOMPILE_ABI as Abi],
['JSON', JSON_PRECOMPILE_ABI as Abi],
['ORACLE', ORACLE_PRECOMPILE_ABI as Abi],
['POINTER', POINTER_PRECOMPILE_ABI as Abi],
['POINTERVIEW', POINTERVIEW_PRECOMPILE_ABI as Abi],
['SOLO', SOLO_PRECOMPILE_ABI as Abi],
Expand All @@ -58,9 +52,7 @@ const ABI_PAIRS: [string, Abi, Abi][] = [
['BANK', BANK_PRECOMPILE_ABI, VIEM_BANK_PRECOMPILE_ABI],
['DISTRIBUTION', DISTRIBUTION_PRECOMPILE_ABI, VIEM_DISTRIBUTION_PRECOMPILE_ABI],
['GOVERNANCE', GOVERNANCE_PRECOMPILE_ABI, VIEM_GOVERNANCE_PRECOMPILE_ABI],
['IBC', IBC_PRECOMPILE_ABI, VIEM_IBC_PRECOMPILE_ABI],
['JSON', JSON_PRECOMPILE_ABI, VIEM_JSON_PRECOMPILE_ABI],
['ORACLE', ORACLE_PRECOMPILE_ABI, VIEM_ORACLE_PRECOMPILE_ABI],
['POINTER', POINTER_PRECOMPILE_ABI, VIEM_POINTER_PRECOMPILE_ABI],
['POINTERVIEW', POINTERVIEW_PRECOMPILE_ABI, VIEM_POINTERVIEW_PRECOMPILE_ABI],
['SOLO', SOLO_PRECOMPILE_ABI, VIEM_SOLO_PRECOMPILE_ABI],
Expand Down
8 changes: 0 additions & 8 deletions packages/precompiles/src/viem/ibcPrecompile.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/precompiles/src/viem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ export * from './addressPrecompile';
export * from './bankPrecompile';
export * from './distributionPrecompile';
export * from './governancePrecompile';
export * from './ibcPrecompile';
export * from './jsonPrecompile';
export * from './oraclePrecompile';
export * from './pointerPrecompile';
export * from './pointerviewPrecompile';
export * from './soloPrecompile';
Expand Down
8 changes: 0 additions & 8 deletions packages/precompiles/src/viem/oraclePrecompile.ts

This file was deleted.

Loading