Documentation ¶
Index ¶
- func Add(x *big.Int, y *big.Int) *big.Int
- func AddresBase582HexString(addr string) string
- func AddresHexString2Base58(addr string) string
- func CmpTestRuslt(expRsult, relRsult *big.Int) *big.Float
- func CmpTestWingDisRuslt(marketAll, total, user, relWing *big.Int) (*big.Float, *big.Int)
- func Div(x *big.Int, y *big.Int) *big.Int
- func Div2float(x *big.Int, y *big.Int) *big.Float
- func ExpInterestAdd(totalBorrow, delayBlockNum, borrowRatePerBlock *big.Int) *big.Int
- func ExpTestRuslt(wingSpeed, users, total *big.Int, start, end, percetage uint32) *big.Int
- func GenerateAccounts(cfg *config.Config, admin *goSdk.Account, goSdk *goSdk.OntologySdk) []*goSdk.Account
- func GetAccounts(cfg *config.Config) []*goSdk.Account
- func GetAccounts2(start, num int) []*goSdk.Account
- func GetTestConfig() (*config.Config, *goSdk.Account, *goSdk.OntologySdk)
- func GetTimeByTxhash(sdk *ontSDK.OntologySdk, txHash string) uint32
- func InvokeNativeTx(sdk *ontSDK.OntologySdk, signConfig *ontSDK.Account, gasPrice, gasLimit uint64, ...) (txHash string, err error)
- func InvokeNeoVMTx(sdk *ontSDK.OntologySdk, signConfig *ontSDK.Account, gasPrice, gasLimit uint64, ...) (txHash string, err error)
- func InvokePreTx(sdk *ontSDK.OntologySdk, sign *ontSDK.Account, gasPrice, gasLimit uint64, ...) (*common2.ResultItem, error)
- func InvokeTx(sdk *ontSDK.OntologySdk, sign *ontSDK.Account, gasPrice, gasLimit uint64, ...) (string, error)
- func InvokeWasmVMTx2(sdk *ontSDK.OntologySdk, signConfig *ontSDK.Account, ...) (txHash string, err error)
- func Mul(x *big.Int, y *big.Int) *big.Int
- func NeoVMPreExecuteBigInt(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) (*big.Int, error)
- func NeovmPreExecuteString(sdk *ontSDK.OntologySdk, contract common.Address, params []interface{}) (string, error)
- func NewAccountByWif(Wif string) (*goSdk.Account, error)
- func NewAccountToDb(wallet *goSdk.Wallet)
- func PreExecuteAddrArray(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) ([]common.Address, error)
- func PreExecuteAddress(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) (common.Address, error)
- func PreExecuteBigInt(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) (*big.Int, error)
- func PreExecuteBool(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) (bool, error)
- func PreExecuteByteArray(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) ([]byte, error)
- func PreExecuteString(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) (string, error)
- func PreExecuteStringArray(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) ([]string, error)
- func PreExecuteU256(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) (*big.Int, error)
- func PreExecuteUint128(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) (common.I128, error)
- func PreExecuteUint64(sdk *ontSDK.OntologySdk, contract common.Address, method string, ...) (uint64, error)
- func PrintSmartEventByHash_Ont(sdk *goSdk.OntologySdk, txHash string)
- func SignAndSendTx(sdk *goSdk.OntologySdk, tx *types.MutableTransaction, signer goSdk.Signer) (string, error)
- func SignTx(sdk *goSdk.OntologySdk, tx *types.MutableTransaction, nonce uint32, ...) error
- func SignTxAndSendTx(sdk *goSdk.OntologySdk, tx *types.MutableTransaction, nonce uint32, ...) error
- func Sub(x *big.Int, y *big.Int) *big.Int
- func ToIntByPrecise(str string, precise uint64) *big.Int
- func ToStringByPrecise(bigNum *big.Int, precise uint64) string
- func Uint256FromhexString(hex string) common.Uint256
- func UpdateStakingBalance(wing_balance *big.Int, base58 string)
- func UpdateWingBalance(wing_balance *big.Int, base58 string)
- type ClaimWingAtMarket
- type DistributeWing2FalsPool
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddresBase582HexString ¶
func AddresHexString2Base58 ¶
func CmpTestWingDisRuslt ¶
func ExpInterestAdd ¶
func ExpTestRuslt ¶
func GenerateAccounts ¶
func GetAccounts2 ¶
func GetTestConfig ¶
func GetTimeByTxhash ¶
func GetTimeByTxhash(sdk *ontSDK.OntologySdk, txHash string) uint32
func InvokeNativeTx ¶
func InvokeNeoVMTx ¶
func InvokePreTx ¶
func InvokeWasmVMTx2 ¶
func InvokeWasmVMTx2(sdk *ontSDK.OntologySdk, signConfig *ontSDK.Account, tx *types.MutableTransaction) (txHash string, err error)
func NeoVMPreExecuteBigInt ¶
func NeovmPreExecuteString ¶
func NewAccountToDb ¶
func PreExecuteAddrArray ¶
func PreExecuteAddress ¶
func PreExecuteBigInt ¶
func PreExecuteBool ¶
func PreExecuteByteArray ¶
func PreExecuteString ¶
func PreExecuteStringArray ¶
func PreExecuteU256 ¶
func PreExecuteUint128 ¶
func PreExecuteUint64 ¶
func PrintSmartEventByHash_Ont ¶
func PrintSmartEventByHash_Ont(sdk *goSdk.OntologySdk, txHash string)
func SignAndSendTx ¶
func SignAndSendTx(sdk *goSdk.OntologySdk, tx *types.MutableTransaction, signer goSdk.Signer) (string, error)
func SignTx ¶
func SignTx(sdk *goSdk.OntologySdk, tx *types.MutableTransaction, nonce uint32, signer goSdk.Signer) error
func SignTxAndSendTx ¶
func SignTxAndSendTx(sdk *goSdk.OntologySdk, tx *types.MutableTransaction, nonce uint32, signer goSdk.Signer) error
func Uint256FromhexString ¶
func UpdateStakingBalance ¶
func UpdateWingBalance ¶
Types ¶
type ClaimWingAtMarket ¶
type ClaimWingAtMarket struct { DistributedBorrowerWing *big.Int DistributedSupplierWing *big.Int DistributedGuaranteeWing *big.Int MarketAccruedSupply []*big.Int MarketAccruedBorrow []*big.Int Timestamp uint32 }
func GetClaimWingEventByHash ¶
func GetClaimWingEventByHash(sdk *ontSDK.OntologySdk, txHash string) *ClaimWingAtMarket
type DistributeWing2FalsPool ¶
type DistributeWing2FalsPool struct { DistributeWing *big.Int MarketAccruedUpdateds map[string]*big.Int }
func GetDistributeWing2IfMarketByHash ¶
func GetDistributeWing2IfMarketByHash(sdk *ontSDK.OntologySdk, txHash string) *DistributeWing2FalsPool
func GetDistributeWing2PoolByHash ¶
func GetDistributeWing2PoolByHash(sdk *ontSDK.OntologySdk, txHash string) *DistributeWing2FalsPool
Click to show internal directories.
Click to hide internal directories.