Skip to content

Latest commit

 

History

History

token-pool

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Token pool

The Token pool Contract holds the funds for distributions.


InstantiateMsg

{
    "owner": "terra1...",
    "bro_token": "terra1..."
}

ExecuteMsg

transfer

Transfer specified amount to specified address. Can be executed only by owner.

{
    "transfer": {
        "recipient": "terra1...",
        "amount": "100"
    }
}

send

Transfer specified amount to specified contract with provided execute msg. Can be executed only by owner.

{
    "send": {
        "contract": "terra1...",
        "amount": "100",
        "msg": "<base64_encoded_json_string>"
    }
}

propose_new_owner

Creates an offer for a new owner. Only owner can execute this function.

{
    "propose_new_owner": {
        "new_owner": "terra1...",
        "expires_in_blocks": 100
    }
}

drop_ownership_proposal

Removes the existing offer for the new owner. Only owner can execute this function

{
    "drop_ownership_proposal": {}
}

claim_ownership

Used to claim(approve) new owner proposal, thus changing contract's owner. Only address proposed as a new owner can execute this function.

{
    "claim_ownership": {}
}

QueryMsg

config

Returns token pool contract config.

{
    "config": {}
}

ownership_proposal

Returns information about created ownership proposal otherwise returns not-found error.

{
    "ownership_proposal": {}
}

MigrateMsg

{}