Skip to content
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
5 changes: 5 additions & 0 deletions .changeset/slick-baths-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sei-js/precompiles": patch
---

Fixed oracle precompile address in @sei-js/precompiles and removed confidential transfers
5 changes: 1 addition & 4 deletions docs/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ Address association between EVM and Cosmos addresses. Allows mapping between the
### Bank (0x1001)
Token operations including transfers, balances, and supply queries. Access Sei's native token functionality from EVM.

### Confidential Transfers (0x1010)
Privacy features for confidential transactions. Enables private transfers with selective disclosure.

### Distribution (0x1007)
Reward distribution for staking and governance. Access staking rewards and community pool funds.

Expand All @@ -61,7 +58,7 @@ Cross-chain transfers using the Inter-Blockchain Communication protocol. Send to
### JSON (0x1003)
JSON parsing utilities for smart contracts. Simplifies handling JSON data in EVM contracts.

### Oracle (0x1002)
### Oracle (0x1008)
Price feeds and TWAPs for DeFi applications. Access reliable price data for various assets.

### Pointer (0x100B)
Expand Down
2 changes: 1 addition & 1 deletion docs/precompiles/precompiles/oracle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ icon: "crystal-ball"

The Oracle precompile provides access to Sei's native oracle system, allowing you to query real-time exchange rates and time-weighted average prices (TWAP) for various assets. This precompile bridges EVM contracts with Sei's oracle module for price data.

**Contract Address:** `0x0000000000000000000000000000000000001002`
**Contract Address:** `0x0000000000000000000000000000000000001008`

## Key Features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Contract, type ContractRunner, type InterfaceAbi } from 'ethers';
import {
ETHERS_ADDRESS_PRECOMPILE_ABI,
ETHERS_BANK_PRECOMPILE_ABI,
ETHERS_CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI,
ETHERS_DISTRIBUTION_PRECOMPILE_ABI,
ETHERS_GOVERNANCE_PRECOMPILE_ABI,
ETHERS_IBC_PRECOMPILE_ABI,
Expand All @@ -15,7 +14,6 @@ import {
ETHERS_WASM_PRECOMPILE_ABI,
getAddressPrecompileEthersV6Contract,
getBankPrecompileEthersV6Contract,
getConfidentialTransfersPrecompileEthersV6Contract,
getDistributionPrecompileEthersV6Contract,
getGovernancePrecompileEthersV6Contract,
getIbcPrecompileEthersV6Contract,
Expand All @@ -32,8 +30,6 @@ import {
ADDRESS_PRECOMPILE_ADDRESS,
BANK_PRECOMPILE_ABI,
BANK_PRECOMPILE_ADDRESS,
CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI,
CONFIDENTIAL_TRANSFERS_PRECOMPILE_ADDRESS,
DISTRIBUTION_PRECOMPILE_ABI,
DISTRIBUTION_PRECOMPILE_ADDRESS,
GOVERNANCE_PRECOMPILE_ABI,
Expand All @@ -60,13 +56,6 @@ import { ETHERS_SOLO_PRECOMPILE_ABI, getSoloPrecompileEthersV6Contract } from '.
const FACTORIES: [string, string, InterfaceAbi, unknown, (runner: ContractRunner) => Contract][] = [
['ADDRESS', ADDRESS_PRECOMPILE_ADDRESS, ADDRESS_PRECOMPILE_ABI, ETHERS_ADDRESS_PRECOMPILE_ABI, getAddressPrecompileEthersV6Contract],
['BANK', BANK_PRECOMPILE_ADDRESS, BANK_PRECOMPILE_ABI, ETHERS_BANK_PRECOMPILE_ABI, getBankPrecompileEthersV6Contract],
[
'CONFIDENTIAL_TRANSFERS',
CONFIDENTIAL_TRANSFERS_PRECOMPILE_ADDRESS,
CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI,
ETHERS_CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI,
getConfidentialTransfersPrecompileEthersV6Contract
],
['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],
Expand Down
35 changes: 0 additions & 35 deletions packages/precompiles/src/ethers/confidentialTransfersPrecompile.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/precompiles/src/ethers/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from './addressPrecompile';
export * from './bankPrecompile';
export * from './confidentialTransfersPrecompile';
export * from './distributionPrecompile';
export * from './governancePrecompile';
export * from './ibcPrecompile';
Expand Down
186 changes: 0 additions & 186 deletions packages/precompiles/src/precompiles/confidential_transfers.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/precompiles/src/precompiles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from './address';
export * from './bank';
export * from './confidential_transfers';
export * from './distribution';
export * from './governance';
export * from './ibc';
Expand Down
2 changes: 1 addition & 1 deletion packages/precompiles/src/precompiles/oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* The address of the Oracle precompile contract.
* @category Address
*/
export const ORACLE_PRECOMPILE_ADDRESS: `0x${string}` = '0x0000000000000000000000000000000000001002';
export const ORACLE_PRECOMPILE_ADDRESS: `0x${string}` = '0x0000000000000000000000000000000000001008';

/**
* The ABI for the Oracle precompile contract.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Abi } from 'viem';
import {
ADDRESS_PRECOMPILE_ABI,
BANK_PRECOMPILE_ABI,
CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI,
DISTRIBUTION_PRECOMPILE_ABI,
GOVERNANCE_PRECOMPILE_ABI,
IBC_PRECOMPILE_ABI,
Expand All @@ -18,7 +17,6 @@ import {
import {
VIEM_ADDRESS_PRECOMPILE_ABI,
VIEM_BANK_PRECOMPILE_ABI,
VIEM_CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI,
VIEM_DISTRIBUTION_PRECOMPILE_ABI,
VIEM_GOVERNANCE_PRECOMPILE_ABI,
VIEM_IBC_PRECOMPILE_ABI,
Expand All @@ -34,7 +32,6 @@ import {
const PRECOMPILE_VIEM_ABIS: [string, Abi][] = [
['ADDRESS', ADDRESS_PRECOMPILE_ABI as Abi],
['BANK', BANK_PRECOMPILE_ABI as Abi],
['CONFIDENTIAL_TRANSFERS', CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI as Abi],
['DISTRIBUTION', DISTRIBUTION_PRECOMPILE_ABI as Abi],
['GOVERNANCE', GOVERNANCE_PRECOMPILE_ABI as Abi],
['IBC', IBC_PRECOMPILE_ABI as Abi],
Expand All @@ -59,7 +56,6 @@ describe('Viem precompile ABIs', () => {
const ABI_PAIRS: [string, Abi, Abi][] = [
['ADDRESS', ADDRESS_PRECOMPILE_ABI, VIEM_ADDRESS_PRECOMPILE_ABI],
['BANK', BANK_PRECOMPILE_ABI, VIEM_BANK_PRECOMPILE_ABI],
['CONFIDENTIAL_TRANSFERS', CONFIDENTIAL_TRANSFERS_PRECOMPILE_ABI, VIEM_CONFIDENTIAL_TRANSFERS_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],
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion packages/precompiles/src/viem/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from './addressPrecompile';
export * from './bankPrecompile';
export * from './confidentialTransfersPrecompile';
export * from './distributionPrecompile';
export * from './governancePrecompile';
export * from './ibcPrecompile';
Expand Down