glin-contracts
Contract metadata, deployment, and interaction utilities for GLIN Network.
Overview
This crate provides comprehensive tools for working with ink! smart contracts on GLIN Network:
- Contract deployment: Deploy compiled contracts to the blockchain
- Contract interaction: Call contract methods and query state
- Metadata handling: Parse and work with contract metadata
- Event decoding: Decode contract events from blockchain
- Encoding utilities: SCALE encoding for contract calls
Usage
Add this to your Cargo.toml:
[]
= "0.1.0"
= "0.1.0"
= { = "1", = ["full"] }
Example
use ;
use ;
async
Features
- Metadata parsing: Extract ABI and constructor information from .contract files
- Type-safe encoding: SCALE encoding for contract arguments
- Gas estimation: Automatic gas limit calculation
- Event monitoring: Listen and decode contract events
- Error handling: Detailed error messages for contract operations
Contract Metadata
This crate works with ink! contract metadata format (.contract files), which includes:
- Contract ABI (messages, constructors, events)
- Contract WASM bytecode
- Type definitions (SCALE info)
Part of GLIN SDK
This crate is part of the GLIN SDK for Rust, providing complete blockchain interaction capabilities for GLIN Network.
Related Crates
glin-types- Shared type definitionsglin-client- Network connection and RPC operations
Documentation
For full SDK documentation, contract examples, and deployment guides, see the main repository.
License
Apache-2.0