👋
Vision Network
  • Vision Basics
    • Vision Network
    • VS and VRC
    • The GitBook editor
    • Token Issuance
    • Minting Mechanism
  • Protocol
    • Account
    • Resource Model
    • Economic model
    • Multi-Signature
    • Transaction
    • Validator
      • First Validator & Reward Mechanism
      • To be Validated Candidate
      • Proposal and Committee
  • SMART CONTRACTS
    • Introduction
    • Deployment Cost
    • DevOps Flow
    • Key considerations
    • Security considerations
    • Features
      • Protobuf
      • Function Usage
      • Contract Address
      • Different Form Ethereum
  • VIRTUAL MACHINE
    • Introduction
    • Event
    • Entropy Costs Calculation
    • VM Exception Handling
    • Features between Ethereum
  • HTTP API
  • Signature and Broadcast Steps
  • Infragrid guide
  • Vtimes chrome integration
  • Introduction
  • Getting Started
  • Group 1
    • Introduction
    • GUI and Usage
  • VISION-WEB
    • Introduction
  • VISION WALLET
    • Vtimes Chrome Plugin
    • Visionscan
    • Metamask
  • DECENTRALIZED EXCHANGES
    • Operating principle
    • Trading pairs
    • Liquidity pool
  • Others
    • Term
Powered by GitBook
On this page
  • Smart Contract Development
  • Usage contract
  • Get result
  1. SMART CONTRACTS

DevOps Flow

Smart Contract Development

Vision smart contract support Solidity language in (Ethereum). Currently recommend Solidity language version is 0.5.12. Write a smart contract, then build the smart contract and deploy it to Vision Network.

  • Vision suggest using Vision-IDE to write contract, also support other developtools for solidity.(eg. Remix, Nodepad++, Vscode, IntergIDEA, Sublimetxt)

  • compile your source files after finish writing. ensure thar there is no error show after compiled. and try your best to clear warning. Check the abi/bytecode/opcode

Usage contract

  • HTTP API, query a const TriggerConstantContract ; trigger a transcations TriggerSmartContract

  • VisionWeb, query aconst triggerConstantContract ; trigger a transcations triggerSmartContract

Get result

result data is show on hex. you would better to know what will be returned. You need change txt form hex to string; change number hex to number

  • number hex to number toDecimal

  • string hex to string toUtf8

PreviousDeployment CostNextKey considerations

Last updated 3 years ago