
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@0xmonaco/contracts
Advanced tools
Smart contract ABIs and addresses for the Monaco protocol. This package provides the interface definitions and deployed addresses for all Monaco protocol contracts.
Smart contract ABIs and addresses for the Monaco protocol. This package provides the interface definitions and deployed addresses for all Monaco protocol contracts.
Note: This package currently only contains the Vault contract. Additional contracts will be added as they are deployed.
npm install @0xmonaco/contracts
Access contract addresses and ABIs for different networks:
import { CONTRACT_ADDRESSES, CONTRACT_ABIS } from "@0xmonaco/contracts";
// Get contract addresses for Atlantic-2 testnet (chain ID 1328)
const atlanticAddresses = CONTRACT_ADDRESSES[1328];
const { vault: vaultAddress } = atlanticAddresses;
// Get contract addresses for Pacific-1 mainnet (chain ID 1329) - Coming Soon
// const pacificAddresses = CONTRACT_ADDRESSES[1329];
// Create contract instances using viem
import { createPublicClient, http } from "viem";
const client = createPublicClient({
chain: {
id: 1328, // Atlantic-2 testnet
name: "atlantic-2",
rpcUrls: {
default: { http: ["https://evm-rpc.testnet.sei.io"] },
public: { http: ["https://evm-rpc.testnet.sei.io"] },
},
},
transport: http(),
});
// Example of creating a contract instance
const vaultContract = {
address: vaultAddress,
abi: CONTRACT_ABIS.vault,
client,
};
Note: Additional contracts (CLOB, Order Book, State, Symphony Adapter) will be documented as they are deployed and integrated.
The package currently supports the following networks:
Atlantic-2 (Testnet)
Pacific-1 (Mainnet)
Each network has the following contracts deployed:
interface ContractAddresses {
/** Vault contract for managing user balances */
vault: string;
}
The package provides token configurations for different networks:
import { TESTNET_TOKENS } from "@0xmonaco/contracts";
// Access testnet tokens
const mockUSDC = TESTNET_TOKENS.MockUSDC;
const mockMTK = TESTNET_TOKENS.MockMTK;
// Use token information
console.log(`MockUSDC address: ${mockUSDC.address}`);
console.log(`MockUSDC decimals: ${mockUSDC.decimals}`);
0x6A86dA986797D59A839D136dB490292Cd560C131
(6 decimals)0x428F82f1ECa4AA6f6c75D77cBd2a9ceB94cde343
(18 decimals)The package exports a consolidated CONTRACT_ABIS
object:
import { CONTRACT_ABIS } from "@0xmonaco/contracts";
const clobAbi = CONTRACT_ABIS.clob;
const vaultAbi = CONTRACT_ABIS.vault;
Available ABIs in CONTRACT_ABIS
:
vault
: Vault contract interfacesrc/abis/
for the contract ABIsrc/abis/index.ts
CONTRACT_ADDRESSES
in src/index.ts
When deploying new contracts:
src/index.ts
FAQs
Smart contract ABIs and addresses for the Monaco protocol. This package provides the interface definitions and deployed addresses for all Monaco protocol contracts.
The npm package @0xmonaco/contracts receives a total of 24 weekly downloads. As such, @0xmonaco/contracts popularity was classified as not popular.
We found that @0xmonaco/contracts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.