@skate-org/skate_sol_frontend
v1.0.5
Published
This package exports various constants, IDL (Interface Description Language), and types to support Polymarket integration on Solana.
Downloads
578
Readme
Package Exports
This package exports various constants, IDL (Interface Description Language), and types to support Polymarket integration on Solana.
Constants
Addresses and Program IDs
POLYMARKET_PROGRAM_ID
: The program ID for the Polymarket smart contract on SolanaMASTER_WALLET_ADDRESS
: The master wallet address used for Polymarket operations
Token Related Constants
USDC_MINT_ADDRESS_SOLANA_DEVNET
: USDC token mint address for Solana devnetUSDC_MINT_ADDRESS_ECLIPSE_MAINNET
: USDC token mint address for Eclipse mainnetTOKEN_PROGRAM_ID
: Solana's Token Program ID (SOLANA DEVNET/MAINNET USE THIS)TOKEN_2022_PROGRAM_ID
: Solana's Token-2022 Program ID (ECLIPSE MAINNET USES THIS)ASSOCIATED_TOKEN_PROGRAM_ID
: Solana's Associated Token Program ID
IDL
polymarketSkateIdl
: The Interface Description Language (IDL) definition for the Polymarket Skate program. This provides the contract interface that frontend applications can use to interact with the Polymarket smart contract.
Types
PolymarketSkate
: TypeScript type definitions for the Polymarket Skate program. These types provide strong typing support for frontend applications when interacting with the Polymarket contract.
Usage in Frontend Applications
These exports enable frontend applications to:
- Connect to the correct program and token addresses across different networks
- Interact with the Polymarket smart contract using strongly-typed interfaces
- Handle token operations with proper program IDs
- Maintain type safety when building transactions and querying contract state
Use @coral-xyz/anchor version 0.30.0 to interact with the program.