StakeStone
  • Introduction
  • STONE (ETH)
    • Background
    • Yield Bearing Liquid ETH
    • How It Works
      • STONE Mechanism
      • Stake & Mint
      • Unstake & Omnichain Withdrawal
        • [Instant]
        • [Request]
      • OPAP
      • Pricing
      • Bridging
  • SBTC & STONEBTC
    • Background
    • SBTC
    • STONEBTC
  • STONE-Fi
    • STONE Pools
    • LiquidityPad
      • How LiquidityPad Works
        • Supported Assets
  • STONE PAY
    • 💬Coming Soon
  • GOVERNANCE
    • STO
      • Conversion
      • Lock
      • Vote
      • Swap & Burn
    • Roadmap
    • Tokenomics
  • Developers
    • Smart Contracts Address_STONE
    • Smart Contracts Address_SBTC
    • Smart Contracts Address_STONEBTC
    • StakeStone API References
    • Cross-chain Interfaces
    • Addendum
      • References
  • Additionals
    • Audits & Security
      • Bug Bounty Program
    • Risks
    • Terms of Service
    • Airdrop Terms and Conditions
    • Privacy Policy
Powered by GitBook
On this page
  • Token Transfer
  • Fetch STONE Price
  • Price Feeding
  1. Developers

Cross-chain Interfaces

Token Transfer

Function

function sendFrom(
  address _from, 
  uint16 _dstChainId, 
  bytes calldata _toAddress, 
  uint _amount, 
  address payable _refundAddress, 
  address _zroPaymentAddress, 
  bytes calldata _adapterParams
) public

ABI

{
  "inputs": [
    {
      "internalType": "address",
      "name": "_from",
      "type": "address"
    },
    {
      "internalType": "uint16",
      "name": "_dstChainId",
      "type": "uint16"
    },
    {
      "internalType": "bytes",
      "name": "_toAddress",
      "type": "bytes"
    },
    {
      "internalType": "uint256",
      "name": "_amount",
      "type": "uint256"
    },
    {
      "internalType": "address payable",
      "name": "_refundAddress",
      "type": "address"
    },
    {
      "internalType": "address",
      "name": "_zroPaymentAddress",
      "type": "address"
    },
    {
      "internalType": "bytes",
      "name": "_adapterParams",
      "type": "bytes"
    }
  ],
  "name": "sendFrom",
  "outputs": [],
  "stateMutability": "payable",
  "type": "function"
}

Fetch STONE Price

Function

function tokenPrice() public returns (uint256 price)

ABI

{
  "inputs": [],
  "name": "tokenPrice",
  "outputs": [
    {
      "internalType": "uint256",
      "name": "price",
      "type": "uint256"
    }
  ],
  "stateMutability": "nonpayable",
  "type": "function"
}

Price Feeding

Function

function updatePrice(
    uint16 _dstChainId,
    bytes memory _toAddress
) public payable returns (uint256 price) 

ABI

{
  "inputs": [
    {
      "internalType": "uint16",
      "name": "_dstChainId",
      "type": "uint16"
    },
    {
      "internalType": "bytes",
      "name": "_toAddress",
      "type": "bytes"
    }
  ],
  "name": "updatePrice",
  "outputs": [
    {
      "internalType": "uint256",
      "name": "price",
      "type": "uint256"
    }
  ],
  "stateMutability": "payable",
  "type": "function"
}

PreviousStakeStone API ReferencesNextAddendum

Last updated 9 months ago

`_dstChainId` list could find here:

https://layerzero.gitbook.io/docs/technical-reference/mainnet/supported-chain-ids