Skip to main content Link Search Menu Expand Document (external link)

WIP

Vault Proposal Contract Queries

Table of contents
  1. Vault Proposal Contract Queries
    1. Token Info:
    2. All Accounts:
    3. Balance:
    4. Votes:
    5. Marketing Info:
    6. Proposal Info:
    7. Proposal State:
    8. Funds:

Below I will describe the possible Query messages that can be used on the vault proposal contracts in both object and JSON formats

Token Info:

Gets the on-chain information about the token stored on the blockchain


        
  
{token_info: {}}


      

        
  
{"token_info": {}}


      

        
  
{
  "name": "YFD Governance Proposal AAAB",
  "symbol": "YFD_GOVAAAB",
  "decimals": 6,
  "total_supply": "24999852549"
} 


      

All Accounts:

Gets all wallet addressess that hold vote tokens


        
  
{all_accounts:{}}


      

        
  
{"all_accounts":{}}


      

        
  
{"accounts":["address", "address", "address", ...]}


      

Balance:

Gets the token balance of the given wallet address. Balance is returned in microunits


        
  
{balance: { address: [account_address]}}


      

        
  
{"balance": { "address": "[account_address]"}}


      

        
  
{"balance": "78999989667"}


      

Votes:

Gets the information on the status of voting. Balances are returned in microunits. Blocks are used for expiration and quorum_block


        
  
{votes:{}}


      

        
  
{"votes":{}}


      

        
  
{
  "affirm": "24999852549",
  "deny": "0",
  "deny_with_penalty": "0",
  "abstain": "0",
  "total_supply": "24999852549",
  "expiration": 2619871,
  "quorum_block": 2519140,
  "vote_state": {
    "Affirm": {}
  }
}


      

Downloads the on-chain logo for the token if there is one


        
  
{download_logo:{}}


      

        
  
{"download_logo":{}}


      

        
  
logo not found: query wasm contract failed: invalid request


      

Marketing Info:

Gets the on-chain marketing information for the smart contracts token


        
  
{marketing_info:{}}


      

        
  
{"marketing_info":{}}


      

        
  
{
  "project": null,
  "description": null,
  "logo": null,
  "marketing": null
}


      

Proposal Info:

Gets the proposal information


        
  
{proposal_info:{}}


      

        
  
{"proposal_info":{}}


      

        
  
{
  "name": "Foo_name",
  "proposer": "terra1mgwy0jxfsmn8vtyxepntlzk6m7030jejkm5xhk",
  "proposal_url": "www.example.com",
  "tvl_limit": "1000000",
  "contact": [
    "[email protected]"
  ],
  "developer": "terra1mgwy0jxfsmn8vtyxepntlzk6m7030jejkm5xhk",
  "development_cost": "67000",
  "developer_initial_payment": "0",
  "initial_funds": "5000",
  "booster_nft": 67,
  "treasury_nft": 33,
  "funding_denomination": "terra1ss9zz4873vk4dd8dvua0vm83m6s8k7ctwp9efac0arytn6jthfgsy2d4a9",
  "statement_of_work": "www.example.com",
  "payment_schedule": 2,
  "payment_frequency": 10,
  "github": "www.example.com",
  "expiration": 201600,
  "quorum_percent": "0.25",
  "self_vouched_information": "www.example.com"
}


      

Proposal State:

Gets the information about voting on the proposal


        
  
{proposal_state:{}}


      

        
  
{"proposal_state":{}}


      

        
  
{
  "state": {
    "InProgress": {}
  },
  "initial_vote": "terra1vqgsa9lapqvzwkk4mcya924yku5fp5rzt5s4eezwagvud4uk52rqnvdr2w"
}


      

Funds:

Gets the information about the proposals funding status


        
  
{funds:{}}


      

        
  
{"funds":{}}


      

        
  
{
  "balance": "5000",
  "development_cost": "67000",
  "distributable": null
}