2.4.0 • Published 5 months ago

@keyringnetwork/contracts-abi v2.4.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

@keyringnetwork/contracts-abi

This package provides static contract build artifacts for the Keyring Network across multiple supported blockchains.

Overview

The @keyringnetwork/contracts-abi package contains deployment artifacts for Keyring Network smart contracts deployed on various EVM-compatible blockchains. It provides a simple interface to access contract ABIs, addresses, and other deployment information based on the chain ID.

Installation

# Using npm
npm install @keyringnetwork/contracts-abi

# Using yarn
yarn add @keyringnetwork/contracts-abi

# Using pnpm
pnpm add @keyringnetwork/contracts-abi

Usage

import {
  getKrnDeploymentArtifact,
  SupportedChainIds,
} from '@keyringnetwork/contracts-abi';

// Get deployment artifact for Ethereum Mainnet
const mainnetArtifact = getKrnDeploymentArtifact({
  chainId: SupportedChainIds.MAINNET,
});

Supported Chains

The package supports the following blockchain networks:

EVM

NetworkChain IDEnum
Ethereum Mainnet1SupportedChainIds.MAINNET
OP Mainnet10SupportedChainIds.OPTIMISM
Polygon Mainnet137SupportedChainIds.POLYGON
zkSync Mainnet324SupportedChainIds.ZKSYNC
Avalanche C-Chain43114SupportedChainIds.AVALANCHE
Base8453SupportedChainIds.BASE
Arbitrum One42161SupportedChainIds.ARBITRUM

EVM Testnets

NetworkChain IDEnum
Sepolia11155111SupportedChainIds.SEPOLIA
Holesky17000SupportedChainIds.HOLESKY

Solana

NetworkChain IDEnum
Solana1915121141SupportedChainIds.SOLANA

Solana specifics

  • The Chain ID used for Solana is a custom one and supposed to change in the future, once the CAIP-2 format is adopted.
  • IDL and types are generated based on Anchor 0.29.0
2.4.0

5 months ago

2.3.0

5 months ago

2.2.1

5 months ago

2.2.0

5 months ago

2.1.0

5 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.0.2

6 months ago

1.0.1

7 months ago

1.0.0

8 months ago