wingGov

package
v0.0.0-...-29f768c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAllSupportToken

func AddAllSupportToken(cfg *config.Config, account *goSdk.Account, sdk *goSdk.OntologySdk)

func AddSupportTokenAndSend

func AddSupportTokenAndSend(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, oTokenName, oToken string)

add_support_token

func AddWingMarkets

func AddWingMarkets(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func Add_support_token

func Add_support_token(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, oTokenName, oToken string) *types.MutableTransaction

add_support_token

func BatchStaking

func BatchStaking(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, accts []*goSdk.Account)

func BatchUnStaking

func BatchUnStaking(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, accts []*goSdk.Account)

func BigUInt128

func BigUInt128(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, oTokenName, oToken string) *types.MutableTransaction

big int 256

func Black_pool

func Black_pool(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

black_pool

func ComptrollerInit

func ComptrollerInit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func ContractMigrate

func ContractMigrate(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, contractAddr, contractPath string) string

migrate

func DeployContractOracle

func DeployContractOracle(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) common.Uint256

func DeployContractProfit

func DeployContractProfit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, wasmFilePath string) common.Uint256

func DeployContractWingToken

func DeployContractWingToken(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) common.Uint256

func DeployContractt

func DeployContractt(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, wasmFilePath string) string

func Deposit

func Deposit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

deposit TODO: invoke failed

func Destroy

func Destroy(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

Destroy TODO: not finished

func DestroyProfit

func DestroyProfit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

dynamic_profit

func Dynamic_profit

func Dynamic_profit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

dynamic_profit

func FTokenInit

func FTokenInit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func FTokenInsuranceInit

func FTokenInsuranceInit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func Freeze_pool

func Freeze_pool(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

freeze_pool

func GetAuthorizeStatus

func GetAuthorizeStatus(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

get_authorize_status, ToDo : improve pre exe

func GetGovAddress

func GetGovAddress(cfg *config.Config, genSdk *goSdk.OntologySdk) *common.PreExecResult

getGovernanceAddress

func GetGovTokenAddres

func GetGovTokenAddres(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

GetGovTokenAddres

func GetProductPools

func GetProductPools(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

get_product_pools, TODO: need read struct

func GetProfitContract

func GetProfitContract(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

query_pool_count

func Get_admin_address

func Get_admin_address(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

get_oracle_address

func Get_eta

func Get_eta(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

get_eta

func Get_exchange_rate

func Get_exchange_rate(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

get_exchange_rate

func Get_f_fatcor

func Get_f_fatcor(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

Get_f_fatcor

func Get_gama

func Get_gama(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

get_gama

func Get_global_address

func Get_global_address(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

get_oracle_address

func Get_lock_asset

func Get_lock_asset(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

get_lock_asset

func Get_oracle_address

func Get_oracle_address(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

get_oracle_address

func Get_pool_operator

func Get_pool_operator(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

get_pool_operator

func Get_support_token

func Get_support_token(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

get_support_token

func Get_token_decimals

func Get_token_decimals(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

get_lock_asset

func Get_token_operator

func Get_token_operator(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

get_token_operator

func Get_unbound_pool

func Get_unbound_pool(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

get_unbound_pool

func Get_value

func Get_value(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

get_gama

func GovTokenBalanceOf

func GovTokenBalanceOf(cfg *config.Config, addr string, genSdk *goSdk.OntologySdk) *common.PreExecResult

query_pool_count

func GovTokenBalanceOfToWingGov

func GovTokenBalanceOfToWingGov(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.PreExecResult

query_pool_count

func GovTokenInit

func GovTokenInit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

wing token init

func InterestRateInit

func InterestRateInit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

init

func MigrateComptroller

func MigrateComptroller(cfg *config.Config, account *goSdk.Account, sdk *goSdk.OntologySdk, oldCompaddr, newCompAddr string)

func MigrateProfit

func MigrateProfit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

migrate TODO: add param

func MigrateZeroPool

func MigrateZeroPool(cfg *config.Config, account *goSdk.Account, sdk *goSdk.OntologySdk, codePath string) string

func OracleGetDecimal

func OracleGetDecimal(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

SetDecimal

func OracleGetUnderlyingPrice

func OracleGetUnderlyingPrice(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, tokenName string)

SetDecimal

func OracleInit

func OracleInit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

init

func OraclePutUnderlyingPrice

func OraclePutUnderlyingPrice(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

SetDecimal

func OracleSetDecimal

func OracleSetDecimal(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

SetDecimal

func QueryPoolByAddress

func QueryPoolByAddress(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, pollAddr string)

query_pool_by_address

func QueryPoolCount

func QueryPoolCount(cfg *config.Config, genSdk *goSdk.OntologySdk) *common.PreExecResult

query_pool_count

func Query_total_pool_bonus

func Query_total_pool_bonus(cfg *config.Config, genSdk *goSdk.OntologySdk) *common.PreExecResult

query_total_pool_bonus(

func Query_unbound_to_pool

func Query_unbound_to_pool(cfg *config.Config, genSdk *goSdk.OntologySdk, index int) *common.PreExecResult

query_unbound_to_pool

func Query_unbound_to_pool_count

func Query_unbound_to_pool_count(cfg *config.Config, genSdk *goSdk.OntologySdk) *common.PreExecResult

query_unbound_to_pool_count ToDO : name ?

func RegisterPool

func RegisterPool(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, poolAddr string) *types.MutableTransaction

register_pool

func RegisterPoolToAddress

func RegisterPoolToAddress(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, poolAddr OntCommon.Address) *types.MutableTransaction

register_pool

func RevokeAuth

func RevokeAuth(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

revoke

func SetAuth

func SetAuth(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

authorize management pool

func SetCloseFactor

func SetCloseFactor(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetCollateralFactor

func SetCollateralFactor(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetGovTokenAddres

func SetGovTokenAddres(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

func SetInsuranceAddr

func SetInsuranceAddr(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetInsuranceFactor

func SetInsuranceFactor(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetInsuranceRepayFactor

func SetInsuranceRepayFactor(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetLiquidationIncentive

func SetLiquidationIncentive(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetMarketAddr

func SetMarketAddr(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetMaxAssets

func SetMaxAssets(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetPriceOracle

func SetPriceOracle(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetReserveFactor

func SetReserveFactor(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetWingAddr

func SetWingAddr(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func SetWingRate

func SetWingRate(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func Set_eta

func Set_eta(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

set_eta

func Set_exchange_rate

func Set_exchange_rate(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

set_exchange_rate

func Set_exchange_rates

func Set_exchange_rates(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

set_exchange_rates batch

func Set_gama

func Set_gama(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

set_gama

func Set_global_address

func Set_global_address(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

func Set_oracle_address

func Set_oracle_address(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func Set_pool_operator

func Set_pool_operator(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

set_token_operator ToDo: invoke failed

func Set_token_decimals

func Set_token_decimals(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, tokenName string, decimals int)

func Set_token_operator

func Set_token_operator(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

set_token_operator ToDo: invoke failed

func Set_value

func Set_value(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

set_gama

func Static_profit

func Static_profit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

static_profit

func SupportMarket

func SupportMarket(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func UnboundToPool

func UnboundToPool(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

unbound_token

func UnboundToPoolSend

func UnboundToPoolSend(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

unbound_token

func UnboundToken

func UnboundToken(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

unbound_token

func UnboundTokenSend

func UnboundTokenSend(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

unbound_token

func UpdateAllSuuportToken

func UpdateAllSuuportToken(cfg *config.Config, account *goSdk.Account, sdk *goSdk.OntologySdk)

func UpdatePoolAddress

func UpdatePoolAddress(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, newZeroPool, oldZeroPool string) *types.MutableTransaction

update_pool_address,

func UpdatePoolWeight

func UpdatePoolWeight(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, poolAddr string, Weight int) *types.MutableTransaction

update_pool_weight

func UpdateProfitContract

func UpdateProfitContract(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

update_profit_contract

func Update_support_token

func Update_support_token(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, oTokenName, oToken string) *types.MutableTransaction

add_support_token

func Upgrade_pool

func Upgrade_pool(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

upgrade_pool

func White_pool

func White_pool(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

white_pool

func WingGovInit

func WingGovInit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, wingGovAddr string) *types.MutableTransaction

gov init

func WingGovMigrate

func WingGovMigrate(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, contract string) string

migrate

func WingProfitInit

func WingProfitInit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

wing token init

func WingProfitInit2

func WingProfitInit2(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, WingProfit string) *types.MutableTransaction

wing token init

func WingTokenGetGovAddr

func WingTokenGetGovAddr(cfg *config.Config, genSdk *goSdk.OntologySdk) *common.PreExecResult

query_pool_count

func WingTokenSetGov

func WingTokenSetGov(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, newWingGovAddr string) *types.MutableTransaction

func WingTokenTotalSupply

func WingTokenTotalSupply(cfg *config.Config, genSdk *goSdk.OntologySdk) *common.PreExecResult

getGovernanceAddress

func Withdraw

func Withdraw(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *types.MutableTransaction

withdraw TODO: invoke failed

func ZeroPooWithdrawWing

func ZeroPooWithdrawWing(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

func ZeroPoolGetStakingBalance

func ZeroPoolGetStakingBalance(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.ResultItem

TODO : GetStaking

func ZeroPoolGetUndlying

func ZeroPoolGetUndlying(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk) *common.ResultItem

TODO : check method

func ZeroPoolInit

func ZeroPoolInit(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, zeroPoolAddr string)

func ZeroPoolStaking

func ZeroPoolStaking(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, StakeOnt int)

func ZeroPoolStakingByAddr

func ZeroPoolStakingByAddr(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, StakeOnt int, zeroPooAddr string)

func ZeroPoolUnStaking

func ZeroPoolUnStaking(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, StakeOnt int)

func ZeroPoolUnStakingByAddr

func ZeroPoolUnStakingByAddr(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk, StakeOnt int, zeroPoolAddr string)

func ZeroPoolWithDraw

func ZeroPoolWithDraw(cfg *config.Config, account *goSdk.Account, genSdk *goSdk.OntologySdk)

ZeroPoolWithDraw

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL