contract

package
v0.0.0-...-2c8c8f7 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// operation codes for resource pending configurations
	OpCodeResourceConfigAdd = iota
	OpCodeResourceConfigUpdate
	OpCodeResourceConfigDelete
	OpCodeResourceConfigNoPending
	OpCodeResourceConfigPendingInitDefault

	// token id
	TokenIdCoin    = 0
	TokenIdAirdrop = 1

	// payment type
	PaymentTypeBilling   = PaymentType(1)
	PaymentTypeSubscribe = PaymentType(2)
)

Variables

View Source
var (

	// events
	EventAppRegistryCreated = "Created"

	EventAppDeposit  = "Deposit"
	EventAppWithdraw = "Withdraw"
	EventAppFrozen   = "Frozen"

	EventApiTokenWeightResourceChanged = "ResourceChanged"

	EventVipCoinTransferSingle = "TransferSingle"

	// methods
	MethodAppChargeBatch                   = "chargeBatch"
	MethodApiWeightTokenFlushPendingConfig = "flushPendingConfig"
)
View Source
var ApiWeightTokenABI = ApiWeightTokenMetaData.ABI

ApiWeightTokenABI is the input ABI used to generate the binding from. Deprecated: Use ApiWeightTokenMetaData.ABI instead.

View Source
var ApiWeightTokenMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"contractIApp\",\"name\":\"belongsTo\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"id\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"enumIAppConfig.OP\",\"name\":\"op\",\"type\":\"uint8\"}],\"name\":\"ResourceChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"id\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"newWeight\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"enumIAppConfig.OP\",\"name\":\"op\",\"type\":\"uint8\"}],\"name\":\"ResourcePending\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"TransferSingle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"URI\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AIRDROP_ID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BILLING_ID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FIRST_CONFIG_ID\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FT_ID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TAKE_PROFIT_ID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TOKEN_AIRDROP_ID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"id\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"times\",\"type\":\"uint256\"}],\"internalType\":\"structIAppConfig.ResourceUseDetail[]\",\"name\":\"useDetail\",\"type\":\"tuple[]\"}],\"name\":\"addRequestTimes\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"accounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"belongsToApp\",\"outputs\":[{\"internalType\":\"contractIApp\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"id\",\"type\":\"uint32\"},{\"internalType\":\"string\",\"name\":\"resourceId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"},{\"internalType\":\"enumIAppConfig.OP\",\"name\":\"op\",\"type\":\"uint8\"}],\"internalType\":\"structAppConfig.ConfigRequest\",\"name\":\"entry\",\"type\":\"tuple\"}],\"name\":\"configResource\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"id\",\"type\":\"uint32\"},{\"internalType\":\"string\",\"name\":\"resourceId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"},{\"internalType\":\"enumIAppConfig.OP\",\"name\":\"op\",\"type\":\"uint8\"}],\"internalType\":\"structAppConfig.ConfigRequest[]\",\"name\":\"entries\",\"type\":\"tuple[]\"}],\"name\":\"configResourceBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"flushPendingConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"indexArray\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIApp\",\"name\":\"belongsTo\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"defaultWeight\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"listResources\",\"outputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"resourceId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"},{\"internalType\":\"enumIAppConfig.OP\",\"name\":\"pendingOP\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"pendingWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"submitSeconds\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requestTimes\",\"type\":\"uint256\"}],\"internalType\":\"structIAppConfig.ConfigEntry[]\",\"name\":\"\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"total\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint32[]\",\"name\":\"ids\",\"type\":\"uint32[]\"}],\"name\":\"listUserRequestCounter\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"times\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextConfigId\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"pendingIdArray\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingSeconds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"name\":\"resourceConfigures\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"resourceId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"},{\"internalType\":\"enumIAppConfig.OP\",\"name\":\"pendingOP\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"pendingWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"submitSeconds\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requestTimes\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seconds_\",\"type\":\"uint256\"}],\"name\":\"setPendingSeconds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalRequests\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"uri\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ApiWeightTokenMetaData contains all meta data concerning the ApiWeightToken contract.

View Source
var AppABI = AppMetaData.ABI

AppABI is the input ABI used to generate the binding from. Deprecated: Use AppMetaData.ABI instead.

View Source
var AppMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Frozen\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CHARGE_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TAKE_PROFIT_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TOKEN_ID_AIRDROP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TOKEN_ID_COIN\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TOKEN_ID_VIP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAW_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"airdrop\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"receivers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"string[]\",\"name\":\"reasons\",\"type\":\"string[]\"}],\"name\":\"airdropBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"appRegistry\",\"outputs\":[{\"internalType\":\"contractIAppRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cardShop\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"id\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"times\",\"type\":\"uint256\"}],\"internalType\":\"structIAppConfig.ResourceUseDetail[]\",\"name\":\"useDetail\",\"type\":\"tuple[]\"}],\"internalType\":\"structIAppConfig.ChargeRequest[]\",\"name\":\"requestArray\",\"type\":\"tuple[]\"}],\"name\":\"chargeBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deferTimeSecs\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"depositAsset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"description\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"toAssets\",\"type\":\"bool\"}],\"name\":\"forceWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"contractIWithdrawHook\",\"name\":\"hook\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"ethMin\",\"type\":\"uint256\"}],\"name\":\"forceWithdrawEth\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getApiWeightToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAppCoin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVipCoin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractAppCoinV2\",\"name\":\"appCoin_\",\"type\":\"address\"},{\"internalType\":\"contractIVipCoin\",\"name\":\"vipCoin_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"apiWeightToken_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deferTimeSecs_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"contractIAppRegistry\",\"name\":\"appRegistry_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"link\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"makeCard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paymentType\",\"outputs\":[{\"internalType\":\"enumIApp.PaymentType\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestForceWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cardShop_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"link_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description_\",\"type\":\"string\"},{\"internalType\":\"enumIApp.PaymentType\",\"name\":\"paymentType_\",\"type\":\"uint8\"}],\"name\":\"setProps\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"takeProfit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalCharged\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalTakenProfit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"toAssets\",\"type\":\"bool\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"withdrawSchedules\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

AppMetaData contains all meta data concerning the App contract.

View Source
var AppRegistryABI = AppRegistryMetaData.ABI

AppRegistryABI is the input ABI used to generate the binding from. Deprecated: Use AppRegistryMetaData.ABI instead.

View Source
var AppRegistryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"app\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"apiWeightToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"vipCoin\",\"type\":\"address\"}],\"name\":\"Created\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"app\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"Removed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CREATOR_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"addUser\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"appFactory\",\"outputs\":[{\"internalType\":\"contractAppFactory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"link\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"enumIApp.PaymentType\",\"name\":\"paymentType_\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"deferTimeSecs\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"defaultApiWeight\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"create\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"creatorRoleDisabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"app\",\"type\":\"address\"}],\"name\":\"get\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"createTime\",\"type\":\"uint256\"}],\"internalType\":\"structAppRegistry.AppInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"app\",\"type\":\"address\"}],\"name\":\"get\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"createTime\",\"type\":\"uint256\"}],\"internalType\":\"structAppRegistry.AppInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getExchanger\",\"outputs\":[{\"internalType\":\"contractISwapExchange\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractAppFactory\",\"name\":\"appFactory_\",\"type\":\"address\"},{\"internalType\":\"contractISwapExchange\",\"name\":\"exchanger_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"list\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"createTime\",\"type\":\"uint256\"}],\"internalType\":\"structAppRegistry.AppInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"listByOwner\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"createTime\",\"type\":\"uint256\"}],\"internalType\":\"structAppRegistry.AppInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"listByUser\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"createTime\",\"type\":\"uint256\"}],\"internalType\":\"structAppRegistry.AppInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"app\",\"type\":\"address\"}],\"name\":\"remove\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"setCreatorRoleDisabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractISwapExchange\",\"name\":\"exchanger_\",\"type\":\"address\"}],\"name\":\"setExchanger\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

AppRegistryMetaData contains all meta data concerning the AppRegistry contract.

View Source
var CardShopABI = CardShopMetaData.ABI

CardShopABI is the input ABI used to generate the binding from. Deprecated: Use CardShopMetaData.ABI instead.

View Source
var CardShopMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cardId\",\"type\":\"uint256\"}],\"name\":\"GAVEN_CARD\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"belongsToApp\",\"outputs\":[{\"internalType\":\"contractIApp\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"templateId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"buyWithAsset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"templateId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"buyWithEth\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"getCard\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"giveawayDuration\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string[]\",\"name\":\"keys\",\"type\":\"string[]\"},{\"internalType\":\"string[]\",\"name\":\"values\",\"type\":\"string[]\"}],\"internalType\":\"structICardTemplate.Props\",\"name\":\"props\",\"type\":\"tuple\"}],\"internalType\":\"structICardTemplate.Template\",\"name\":\"template\",\"type\":\"tuple\"}],\"internalType\":\"structICards.Card\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"receiverArr\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"countArr\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"templateId\",\"type\":\"uint256\"}],\"name\":\"giveCardBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIApp\",\"name\":\"belongsTo_\",\"type\":\"address\"},{\"internalType\":\"contractICardTemplate\",\"name\":\"template_\",\"type\":\"address\"},{\"internalType\":\"contractICards\",\"name\":\"instance_\",\"type\":\"address\"},{\"internalType\":\"contractICardTracker\",\"name\":\"tracker_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"instance\",\"outputs\":[{\"internalType\":\"contractICards\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextCardId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"template\",\"outputs\":[{\"internalType\":\"contractICardTemplate\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tracker\",\"outputs\":[{\"internalType\":\"contractICardTracker\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

CardShopMetaData contains all meta data concerning the CardShop contract.

View Source
var CardTrackerABI = CardTrackerMetaData.ABI

CardTrackerABI is the input ABI used to generate the binding from. Deprecated: Use CardTrackerMetaData.ABI instead.

View Source
var CardTrackerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"eventSource\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expireAt\",\"type\":\"uint256\"}],\"name\":\"VipChanged\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"giveawayDuration\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string[]\",\"name\":\"keys\",\"type\":\"string[]\"},{\"internalType\":\"string[]\",\"name\":\"values\",\"type\":\"string[]\"}],\"internalType\":\"structICardTemplate.Props\",\"name\":\"props\",\"type\":\"tuple\"}],\"internalType\":\"structICardTemplate.Template\",\"name\":\"template\",\"type\":\"tuple\"}],\"internalType\":\"structICards.Card\",\"name\":\"card\",\"type\":\"tuple\"}],\"name\":\"applyCard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getVipInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"expireAt\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string[]\",\"name\":\"keys\",\"type\":\"string[]\"},{\"internalType\":\"string[]\",\"name\":\"values\",\"type\":\"string[]\"}],\"internalType\":\"structICardTemplate.Props\",\"name\":\"props\",\"type\":\"tuple\"}],\"internalType\":\"structICardTracker.VipInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"eventSource\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

CardTrackerMetaData contains all meta data concerning the CardTracker contract.

View Source
var VipCoinABI = VipCoinMetaData.ABI

VipCoinABI is the input ABI used to generate the binding from. Deprecated: Use VipCoinMetaData.ABI instead.

View Source
var VipCoinMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"TransferSingle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"URI\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CONSUMER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINTER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PAUSER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"accounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"burnBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"exists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mintBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"tokenCountOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"tokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"total\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"tokensOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"total\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"uri\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

VipCoinMetaData contains all meta data concerning the VipCoin contract.

Functions

This section is empty.

Types

type ApiWeightToken

type ApiWeightToken struct {
	ApiWeightTokenCaller     // Read-only binding to the contract
	ApiWeightTokenTransactor // Write-only binding to the contract
	ApiWeightTokenFilterer   // Log filterer for contract events
}

ApiWeightToken is an auto generated Go binding around an Ethereum contract.

func NewApiWeightToken

func NewApiWeightToken(address common.Address, backend bind.ContractBackend) (*ApiWeightToken, error)

NewApiWeightToken creates a new instance of ApiWeightToken, bound to a specific deployed contract.

type ApiWeightTokenApprovalForAll

type ApiWeightTokenApprovalForAll struct {
	Account  common.Address
	Operator common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

ApiWeightTokenApprovalForAll represents a ApprovalForAll event raised by the ApiWeightToken contract.

type ApiWeightTokenApprovalForAllIterator

type ApiWeightTokenApprovalForAllIterator struct {
	Event *ApiWeightTokenApprovalForAll // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ApiWeightTokenApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the ApiWeightToken contract.

func (*ApiWeightTokenApprovalForAllIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ApiWeightTokenApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ApiWeightTokenApprovalForAllIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ApiWeightTokenCaller

type ApiWeightTokenCaller struct {
	// contains filtered or unexported fields
}

ApiWeightTokenCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewApiWeightTokenCaller

func NewApiWeightTokenCaller(address common.Address, caller bind.ContractCaller) (*ApiWeightTokenCaller, error)

NewApiWeightTokenCaller creates a new read-only instance of ApiWeightToken, bound to a specific deployed contract.

func (*ApiWeightTokenCaller) AIRDROPID

func (_ApiWeightToken *ApiWeightTokenCaller) AIRDROPID(opts *bind.CallOpts) (*big.Int, error)

AIRDROPID is a free data retrieval call binding the contract method 0xe0f194f1.

Solidity: function AIRDROP_ID() view returns(uint256)

func (*ApiWeightTokenCaller) BILLINGID

func (_ApiWeightToken *ApiWeightTokenCaller) BILLINGID(opts *bind.CallOpts) (*big.Int, error)

BILLINGID is a free data retrieval call binding the contract method 0x1c91d1ba.

Solidity: function BILLING_ID() view returns(uint256)

func (*ApiWeightTokenCaller) BalanceOf

func (_ApiWeightToken *ApiWeightTokenCaller) BalanceOf(opts *bind.CallOpts, account common.Address, id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*ApiWeightTokenCaller) BalanceOfBatch

func (_ApiWeightToken *ApiWeightTokenCaller) BalanceOfBatch(opts *bind.CallOpts, accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*ApiWeightTokenCaller) BelongsToApp

func (_ApiWeightToken *ApiWeightTokenCaller) BelongsToApp(opts *bind.CallOpts) (common.Address, error)

BelongsToApp is a free data retrieval call binding the contract method 0x53f63ca6.

Solidity: function belongsToApp() view returns(address)

func (*ApiWeightTokenCaller) FIRSTCONFIGID

func (_ApiWeightToken *ApiWeightTokenCaller) FIRSTCONFIGID(opts *bind.CallOpts) (uint32, error)

FIRSTCONFIGID is a free data retrieval call binding the contract method 0x0fe58201.

Solidity: function FIRST_CONFIG_ID() view returns(uint32)

func (*ApiWeightTokenCaller) FTID

func (_ApiWeightToken *ApiWeightTokenCaller) FTID(opts *bind.CallOpts) (*big.Int, error)

FTID is a free data retrieval call binding the contract method 0x01052d57.

Solidity: function FT_ID() view returns(uint256)

func (*ApiWeightTokenCaller) IndexArray

func (_ApiWeightToken *ApiWeightTokenCaller) IndexArray(opts *bind.CallOpts, arg0 *big.Int) (uint32, error)

IndexArray is a free data retrieval call binding the contract method 0xebed9b2c.

Solidity: function indexArray(uint256 ) view returns(uint32)

func (*ApiWeightTokenCaller) IsApprovedForAll

func (_ApiWeightToken *ApiWeightTokenCaller) IsApprovedForAll(opts *bind.CallOpts, account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*ApiWeightTokenCaller) ListResources

func (_ApiWeightToken *ApiWeightTokenCaller) ListResources(opts *bind.CallOpts, offset *big.Int, limit *big.Int) ([]IAppConfigConfigEntry, *big.Int, error)

ListResources is a free data retrieval call binding the contract method 0x49459cd2.

Solidity: function listResources(uint256 offset, uint256 limit) view returns((string,uint256,uint32,uint8,uint256,uint256,uint256)[], uint256 total)

func (*ApiWeightTokenCaller) ListUserRequestCounter

func (_ApiWeightToken *ApiWeightTokenCaller) ListUserRequestCounter(opts *bind.CallOpts, user common.Address, ids []uint32) ([]*big.Int, error)

ListUserRequestCounter is a free data retrieval call binding the contract method 0xa5e34731.

Solidity: function listUserRequestCounter(address user, uint32[] ids) view returns(uint256[] times)

func (*ApiWeightTokenCaller) Name

func (_ApiWeightToken *ApiWeightTokenCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*ApiWeightTokenCaller) NextConfigId

func (_ApiWeightToken *ApiWeightTokenCaller) NextConfigId(opts *bind.CallOpts) (uint32, error)

NextConfigId is a free data retrieval call binding the contract method 0x99d726c7.

Solidity: function nextConfigId() view returns(uint32)

func (*ApiWeightTokenCaller) PendingIdArray

func (_ApiWeightToken *ApiWeightTokenCaller) PendingIdArray(opts *bind.CallOpts, arg0 *big.Int) (uint32, error)

PendingIdArray is a free data retrieval call binding the contract method 0xac8ef2b5.

Solidity: function pendingIdArray(uint256 ) view returns(uint32)

func (*ApiWeightTokenCaller) PendingSeconds

func (_ApiWeightToken *ApiWeightTokenCaller) PendingSeconds(opts *bind.CallOpts) (*big.Int, error)

PendingSeconds is a free data retrieval call binding the contract method 0xc819c70e.

Solidity: function pendingSeconds() view returns(uint256)

func (*ApiWeightTokenCaller) ResourceConfigures

func (_ApiWeightToken *ApiWeightTokenCaller) ResourceConfigures(opts *bind.CallOpts, arg0 uint32) (struct {
	ResourceId    string
	Weight        *big.Int
	Index         uint32
	PendingOP     uint8
	PendingWeight *big.Int
	SubmitSeconds *big.Int
	RequestTimes  *big.Int
}, error)

ResourceConfigures is a free data retrieval call binding the contract method 0xc86b6ee2.

Solidity: function resourceConfigures(uint32 ) view returns(string resourceId, uint256 weight, uint32 index, uint8 pendingOP, uint256 pendingWeight, uint256 submitSeconds, uint256 requestTimes)

func (*ApiWeightTokenCaller) SupportsInterface

func (_ApiWeightToken *ApiWeightTokenCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ApiWeightTokenCaller) Symbol

func (_ApiWeightToken *ApiWeightTokenCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*ApiWeightTokenCaller) TAKEPROFITID

func (_ApiWeightToken *ApiWeightTokenCaller) TAKEPROFITID(opts *bind.CallOpts) (*big.Int, error)

TAKEPROFITID is a free data retrieval call binding the contract method 0xfdd62e1c.

Solidity: function TAKE_PROFIT_ID() view returns(uint256)

func (*ApiWeightTokenCaller) TOKENAIRDROPID

func (_ApiWeightToken *ApiWeightTokenCaller) TOKENAIRDROPID(opts *bind.CallOpts) (*big.Int, error)

TOKENAIRDROPID is a free data retrieval call binding the contract method 0x25e0ba46.

Solidity: function TOKEN_AIRDROP_ID() view returns(uint256)

func (*ApiWeightTokenCaller) TotalRequests

func (_ApiWeightToken *ApiWeightTokenCaller) TotalRequests(opts *bind.CallOpts) (*big.Int, error)

TotalRequests is a free data retrieval call binding the contract method 0x8aea61dc.

Solidity: function totalRequests() view returns(uint256)

func (*ApiWeightTokenCaller) Uri

func (_ApiWeightToken *ApiWeightTokenCaller) Uri(opts *bind.CallOpts, arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

type ApiWeightTokenCallerRaw

type ApiWeightTokenCallerRaw struct {
	Contract *ApiWeightTokenCaller // Generic read-only contract binding to access the raw methods on
}

ApiWeightTokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ApiWeightTokenCallerRaw) Call

func (_ApiWeightToken *ApiWeightTokenCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ApiWeightTokenCallerSession

type ApiWeightTokenCallerSession struct {
	Contract *ApiWeightTokenCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts         // Call options to use throughout this session
}

ApiWeightTokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ApiWeightTokenCallerSession) AIRDROPID

func (_ApiWeightToken *ApiWeightTokenCallerSession) AIRDROPID() (*big.Int, error)

AIRDROPID is a free data retrieval call binding the contract method 0xe0f194f1.

Solidity: function AIRDROP_ID() view returns(uint256)

func (*ApiWeightTokenCallerSession) BILLINGID

func (_ApiWeightToken *ApiWeightTokenCallerSession) BILLINGID() (*big.Int, error)

BILLINGID is a free data retrieval call binding the contract method 0x1c91d1ba.

Solidity: function BILLING_ID() view returns(uint256)

func (*ApiWeightTokenCallerSession) BalanceOf

func (_ApiWeightToken *ApiWeightTokenCallerSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*ApiWeightTokenCallerSession) BalanceOfBatch

func (_ApiWeightToken *ApiWeightTokenCallerSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*ApiWeightTokenCallerSession) BelongsToApp

func (_ApiWeightToken *ApiWeightTokenCallerSession) BelongsToApp() (common.Address, error)

BelongsToApp is a free data retrieval call binding the contract method 0x53f63ca6.

Solidity: function belongsToApp() view returns(address)

func (*ApiWeightTokenCallerSession) FIRSTCONFIGID

func (_ApiWeightToken *ApiWeightTokenCallerSession) FIRSTCONFIGID() (uint32, error)

FIRSTCONFIGID is a free data retrieval call binding the contract method 0x0fe58201.

Solidity: function FIRST_CONFIG_ID() view returns(uint32)

func (*ApiWeightTokenCallerSession) FTID

func (_ApiWeightToken *ApiWeightTokenCallerSession) FTID() (*big.Int, error)

FTID is a free data retrieval call binding the contract method 0x01052d57.

Solidity: function FT_ID() view returns(uint256)

func (*ApiWeightTokenCallerSession) IndexArray

func (_ApiWeightToken *ApiWeightTokenCallerSession) IndexArray(arg0 *big.Int) (uint32, error)

IndexArray is a free data retrieval call binding the contract method 0xebed9b2c.

Solidity: function indexArray(uint256 ) view returns(uint32)

func (*ApiWeightTokenCallerSession) IsApprovedForAll

func (_ApiWeightToken *ApiWeightTokenCallerSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*ApiWeightTokenCallerSession) ListResources

func (_ApiWeightToken *ApiWeightTokenCallerSession) ListResources(offset *big.Int, limit *big.Int) ([]IAppConfigConfigEntry, *big.Int, error)

ListResources is a free data retrieval call binding the contract method 0x49459cd2.

Solidity: function listResources(uint256 offset, uint256 limit) view returns((string,uint256,uint32,uint8,uint256,uint256,uint256)[], uint256 total)

func (*ApiWeightTokenCallerSession) ListUserRequestCounter

func (_ApiWeightToken *ApiWeightTokenCallerSession) ListUserRequestCounter(user common.Address, ids []uint32) ([]*big.Int, error)

ListUserRequestCounter is a free data retrieval call binding the contract method 0xa5e34731.

Solidity: function listUserRequestCounter(address user, uint32[] ids) view returns(uint256[] times)

func (*ApiWeightTokenCallerSession) Name

func (_ApiWeightToken *ApiWeightTokenCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*ApiWeightTokenCallerSession) NextConfigId

func (_ApiWeightToken *ApiWeightTokenCallerSession) NextConfigId() (uint32, error)

NextConfigId is a free data retrieval call binding the contract method 0x99d726c7.

Solidity: function nextConfigId() view returns(uint32)

func (*ApiWeightTokenCallerSession) PendingIdArray

func (_ApiWeightToken *ApiWeightTokenCallerSession) PendingIdArray(arg0 *big.Int) (uint32, error)

PendingIdArray is a free data retrieval call binding the contract method 0xac8ef2b5.

Solidity: function pendingIdArray(uint256 ) view returns(uint32)

func (*ApiWeightTokenCallerSession) PendingSeconds

func (_ApiWeightToken *ApiWeightTokenCallerSession) PendingSeconds() (*big.Int, error)

PendingSeconds is a free data retrieval call binding the contract method 0xc819c70e.

Solidity: function pendingSeconds() view returns(uint256)

func (*ApiWeightTokenCallerSession) ResourceConfigures

func (_ApiWeightToken *ApiWeightTokenCallerSession) ResourceConfigures(arg0 uint32) (struct {
	ResourceId    string
	Weight        *big.Int
	Index         uint32
	PendingOP     uint8
	PendingWeight *big.Int
	SubmitSeconds *big.Int
	RequestTimes  *big.Int
}, error)

ResourceConfigures is a free data retrieval call binding the contract method 0xc86b6ee2.

Solidity: function resourceConfigures(uint32 ) view returns(string resourceId, uint256 weight, uint32 index, uint8 pendingOP, uint256 pendingWeight, uint256 submitSeconds, uint256 requestTimes)

func (*ApiWeightTokenCallerSession) SupportsInterface

func (_ApiWeightToken *ApiWeightTokenCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ApiWeightTokenCallerSession) Symbol

func (_ApiWeightToken *ApiWeightTokenCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*ApiWeightTokenCallerSession) TAKEPROFITID

func (_ApiWeightToken *ApiWeightTokenCallerSession) TAKEPROFITID() (*big.Int, error)

TAKEPROFITID is a free data retrieval call binding the contract method 0xfdd62e1c.

Solidity: function TAKE_PROFIT_ID() view returns(uint256)

func (*ApiWeightTokenCallerSession) TOKENAIRDROPID

func (_ApiWeightToken *ApiWeightTokenCallerSession) TOKENAIRDROPID() (*big.Int, error)

TOKENAIRDROPID is a free data retrieval call binding the contract method 0x25e0ba46.

Solidity: function TOKEN_AIRDROP_ID() view returns(uint256)

func (*ApiWeightTokenCallerSession) TotalRequests

func (_ApiWeightToken *ApiWeightTokenCallerSession) TotalRequests() (*big.Int, error)

TotalRequests is a free data retrieval call binding the contract method 0x8aea61dc.

Solidity: function totalRequests() view returns(uint256)

func (*ApiWeightTokenCallerSession) Uri

func (_ApiWeightToken *ApiWeightTokenCallerSession) Uri(arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

type ApiWeightTokenFilterer

type ApiWeightTokenFilterer struct {
	// contains filtered or unexported fields
}

ApiWeightTokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewApiWeightTokenFilterer

func NewApiWeightTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*ApiWeightTokenFilterer, error)

NewApiWeightTokenFilterer creates a new log filterer instance of ApiWeightToken, bound to a specific deployed contract.

func (*ApiWeightTokenFilterer) FilterApprovalForAll

func (_ApiWeightToken *ApiWeightTokenFilterer) FilterApprovalForAll(opts *bind.FilterOpts, account []common.Address, operator []common.Address) (*ApiWeightTokenApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*ApiWeightTokenFilterer) FilterResourceChanged

func (_ApiWeightToken *ApiWeightTokenFilterer) FilterResourceChanged(opts *bind.FilterOpts, id []uint32, weight []*big.Int, op []uint8) (*ApiWeightTokenResourceChangedIterator, error)

FilterResourceChanged is a free log retrieval operation binding the contract event 0x754de9a177534372342453272825c15351df3e7886699c2fece028d09379c400.

Solidity: event ResourceChanged(uint32 indexed id, uint256 indexed weight, uint8 indexed op)

func (*ApiWeightTokenFilterer) FilterResourcePending

func (_ApiWeightToken *ApiWeightTokenFilterer) FilterResourcePending(opts *bind.FilterOpts, id []uint32, newWeight []*big.Int, op []uint8) (*ApiWeightTokenResourcePendingIterator, error)

FilterResourcePending is a free log retrieval operation binding the contract event 0xc2a05ca9bcad8635a6049c1240c2a1d2ed0c20c4f4b091ef84f7af523faf93d5.

Solidity: event ResourcePending(uint32 indexed id, uint256 indexed newWeight, uint8 indexed op)

func (*ApiWeightTokenFilterer) FilterTransferBatch

func (_ApiWeightToken *ApiWeightTokenFilterer) FilterTransferBatch(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*ApiWeightTokenTransferBatchIterator, error)

FilterTransferBatch is a free log retrieval operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*ApiWeightTokenFilterer) FilterTransferSingle

func (_ApiWeightToken *ApiWeightTokenFilterer) FilterTransferSingle(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*ApiWeightTokenTransferSingleIterator, error)

FilterTransferSingle is a free log retrieval operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*ApiWeightTokenFilterer) FilterURI

func (_ApiWeightToken *ApiWeightTokenFilterer) FilterURI(opts *bind.FilterOpts, id []*big.Int) (*ApiWeightTokenURIIterator, error)

FilterURI is a free log retrieval operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*ApiWeightTokenFilterer) ParseApprovalForAll

func (_ApiWeightToken *ApiWeightTokenFilterer) ParseApprovalForAll(log types.Log) (*ApiWeightTokenApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*ApiWeightTokenFilterer) ParseResourceChanged

func (_ApiWeightToken *ApiWeightTokenFilterer) ParseResourceChanged(log types.Log) (*ApiWeightTokenResourceChanged, error)

ParseResourceChanged is a log parse operation binding the contract event 0x754de9a177534372342453272825c15351df3e7886699c2fece028d09379c400.

Solidity: event ResourceChanged(uint32 indexed id, uint256 indexed weight, uint8 indexed op)

func (*ApiWeightTokenFilterer) ParseResourcePending

func (_ApiWeightToken *ApiWeightTokenFilterer) ParseResourcePending(log types.Log) (*ApiWeightTokenResourcePending, error)

ParseResourcePending is a log parse operation binding the contract event 0xc2a05ca9bcad8635a6049c1240c2a1d2ed0c20c4f4b091ef84f7af523faf93d5.

Solidity: event ResourcePending(uint32 indexed id, uint256 indexed newWeight, uint8 indexed op)

func (*ApiWeightTokenFilterer) ParseTransferBatch

func (_ApiWeightToken *ApiWeightTokenFilterer) ParseTransferBatch(log types.Log) (*ApiWeightTokenTransferBatch, error)

ParseTransferBatch is a log parse operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*ApiWeightTokenFilterer) ParseTransferSingle

func (_ApiWeightToken *ApiWeightTokenFilterer) ParseTransferSingle(log types.Log) (*ApiWeightTokenTransferSingle, error)

ParseTransferSingle is a log parse operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*ApiWeightTokenFilterer) ParseURI

func (_ApiWeightToken *ApiWeightTokenFilterer) ParseURI(log types.Log) (*ApiWeightTokenURI, error)

ParseURI is a log parse operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*ApiWeightTokenFilterer) WatchApprovalForAll

func (_ApiWeightToken *ApiWeightTokenFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *ApiWeightTokenApprovalForAll, account []common.Address, operator []common.Address) (event.Subscription, error)

WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*ApiWeightTokenFilterer) WatchResourceChanged

func (_ApiWeightToken *ApiWeightTokenFilterer) WatchResourceChanged(opts *bind.WatchOpts, sink chan<- *ApiWeightTokenResourceChanged, id []uint32, weight []*big.Int, op []uint8) (event.Subscription, error)

WatchResourceChanged is a free log subscription operation binding the contract event 0x754de9a177534372342453272825c15351df3e7886699c2fece028d09379c400.

Solidity: event ResourceChanged(uint32 indexed id, uint256 indexed weight, uint8 indexed op)

func (*ApiWeightTokenFilterer) WatchResourcePending

func (_ApiWeightToken *ApiWeightTokenFilterer) WatchResourcePending(opts *bind.WatchOpts, sink chan<- *ApiWeightTokenResourcePending, id []uint32, newWeight []*big.Int, op []uint8) (event.Subscription, error)

WatchResourcePending is a free log subscription operation binding the contract event 0xc2a05ca9bcad8635a6049c1240c2a1d2ed0c20c4f4b091ef84f7af523faf93d5.

Solidity: event ResourcePending(uint32 indexed id, uint256 indexed newWeight, uint8 indexed op)

func (*ApiWeightTokenFilterer) WatchTransferBatch

func (_ApiWeightToken *ApiWeightTokenFilterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *ApiWeightTokenTransferBatch, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferBatch is a free log subscription operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*ApiWeightTokenFilterer) WatchTransferSingle

func (_ApiWeightToken *ApiWeightTokenFilterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *ApiWeightTokenTransferSingle, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferSingle is a free log subscription operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*ApiWeightTokenFilterer) WatchURI

func (_ApiWeightToken *ApiWeightTokenFilterer) WatchURI(opts *bind.WatchOpts, sink chan<- *ApiWeightTokenURI, id []*big.Int) (event.Subscription, error)

WatchURI is a free log subscription operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

type ApiWeightTokenRaw

type ApiWeightTokenRaw struct {
	Contract *ApiWeightToken // Generic contract binding to access the raw methods on
}

ApiWeightTokenRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ApiWeightTokenRaw) Call

func (_ApiWeightToken *ApiWeightTokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ApiWeightTokenRaw) Transact

func (_ApiWeightToken *ApiWeightTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ApiWeightTokenRaw) Transfer

func (_ApiWeightToken *ApiWeightTokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ApiWeightTokenResourceChanged

type ApiWeightTokenResourceChanged struct {
	Id     uint32
	Weight *big.Int
	Op     uint8
	Raw    types.Log // Blockchain specific contextual infos
}

ApiWeightTokenResourceChanged represents a ResourceChanged event raised by the ApiWeightToken contract.

func UnpackApiWeightTokenResourceChanged

func UnpackApiWeightTokenResourceChanged(awtAbi *abi.ABI, log *types.Log) (*ApiWeightTokenResourceChanged, error)

type ApiWeightTokenResourceChangedIterator

type ApiWeightTokenResourceChangedIterator struct {
	Event *ApiWeightTokenResourceChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ApiWeightTokenResourceChangedIterator is returned from FilterResourceChanged and is used to iterate over the raw logs and unpacked data for ResourceChanged events raised by the ApiWeightToken contract.

func (*ApiWeightTokenResourceChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ApiWeightTokenResourceChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ApiWeightTokenResourceChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ApiWeightTokenResourcePending

type ApiWeightTokenResourcePending struct {
	Id        uint32
	NewWeight *big.Int
	Op        uint8
	Raw       types.Log // Blockchain specific contextual infos
}

ApiWeightTokenResourcePending represents a ResourcePending event raised by the ApiWeightToken contract.

type ApiWeightTokenResourcePendingIterator

type ApiWeightTokenResourcePendingIterator struct {
	Event *ApiWeightTokenResourcePending // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ApiWeightTokenResourcePendingIterator is returned from FilterResourcePending and is used to iterate over the raw logs and unpacked data for ResourcePending events raised by the ApiWeightToken contract.

func (*ApiWeightTokenResourcePendingIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ApiWeightTokenResourcePendingIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ApiWeightTokenResourcePendingIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ApiWeightTokenSession

type ApiWeightTokenSession struct {
	Contract     *ApiWeightToken   // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ApiWeightTokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ApiWeightTokenSession) AIRDROPID

func (_ApiWeightToken *ApiWeightTokenSession) AIRDROPID() (*big.Int, error)

AIRDROPID is a free data retrieval call binding the contract method 0xe0f194f1.

Solidity: function AIRDROP_ID() view returns(uint256)

func (*ApiWeightTokenSession) AddRequestTimes

func (_ApiWeightToken *ApiWeightTokenSession) AddRequestTimes(account common.Address, useDetail []IAppConfigResourceUseDetail) (*types.Transaction, error)

AddRequestTimes is a paid mutator transaction binding the contract method 0xcd9b856d.

Solidity: function addRequestTimes(address account, (uint32,uint256)[] useDetail) returns()

func (*ApiWeightTokenSession) BILLINGID

func (_ApiWeightToken *ApiWeightTokenSession) BILLINGID() (*big.Int, error)

BILLINGID is a free data retrieval call binding the contract method 0x1c91d1ba.

Solidity: function BILLING_ID() view returns(uint256)

func (*ApiWeightTokenSession) BalanceOf

func (_ApiWeightToken *ApiWeightTokenSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*ApiWeightTokenSession) BalanceOfBatch

func (_ApiWeightToken *ApiWeightTokenSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*ApiWeightTokenSession) BelongsToApp

func (_ApiWeightToken *ApiWeightTokenSession) BelongsToApp() (common.Address, error)

BelongsToApp is a free data retrieval call binding the contract method 0x53f63ca6.

Solidity: function belongsToApp() view returns(address)

func (*ApiWeightTokenSession) ConfigResource

func (_ApiWeightToken *ApiWeightTokenSession) ConfigResource(entry AppConfigConfigRequest) (*types.Transaction, error)

ConfigResource is a paid mutator transaction binding the contract method 0xf2721b7a.

Solidity: function configResource((uint32,string,uint256,uint8) entry) returns()

func (*ApiWeightTokenSession) ConfigResourceBatch

func (_ApiWeightToken *ApiWeightTokenSession) ConfigResourceBatch(entries []AppConfigConfigRequest) (*types.Transaction, error)

ConfigResourceBatch is a paid mutator transaction binding the contract method 0x10b270aa.

Solidity: function configResourceBatch((uint32,string,uint256,uint8)[] entries) returns()

func (*ApiWeightTokenSession) FIRSTCONFIGID

func (_ApiWeightToken *ApiWeightTokenSession) FIRSTCONFIGID() (uint32, error)

FIRSTCONFIGID is a free data retrieval call binding the contract method 0x0fe58201.

Solidity: function FIRST_CONFIG_ID() view returns(uint32)

func (*ApiWeightTokenSession) FTID

func (_ApiWeightToken *ApiWeightTokenSession) FTID() (*big.Int, error)

FTID is a free data retrieval call binding the contract method 0x01052d57.

Solidity: function FT_ID() view returns(uint256)

func (*ApiWeightTokenSession) FlushPendingConfig

func (_ApiWeightToken *ApiWeightTokenSession) FlushPendingConfig() (*types.Transaction, error)

FlushPendingConfig is a paid mutator transaction binding the contract method 0xb8f2272a.

Solidity: function flushPendingConfig() returns()

func (*ApiWeightTokenSession) IndexArray

func (_ApiWeightToken *ApiWeightTokenSession) IndexArray(arg0 *big.Int) (uint32, error)

IndexArray is a free data retrieval call binding the contract method 0xebed9b2c.

Solidity: function indexArray(uint256 ) view returns(uint32)

func (*ApiWeightTokenSession) Initialize

func (_ApiWeightToken *ApiWeightTokenSession) Initialize(belongsTo common.Address, name string, symbol string, uri string, defaultWeight *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x9047cd7a.

Solidity: function initialize(address belongsTo, string name, string symbol, string uri, uint256 defaultWeight) returns()

func (*ApiWeightTokenSession) IsApprovedForAll

func (_ApiWeightToken *ApiWeightTokenSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*ApiWeightTokenSession) ListResources

func (_ApiWeightToken *ApiWeightTokenSession) ListResources(offset *big.Int, limit *big.Int) ([]IAppConfigConfigEntry, *big.Int, error)

ListResources is a free data retrieval call binding the contract method 0x49459cd2.

Solidity: function listResources(uint256 offset, uint256 limit) view returns((string,uint256,uint32,uint8,uint256,uint256,uint256)[], uint256 total)

func (*ApiWeightTokenSession) ListUserRequestCounter

func (_ApiWeightToken *ApiWeightTokenSession) ListUserRequestCounter(user common.Address, ids []uint32) ([]*big.Int, error)

ListUserRequestCounter is a free data retrieval call binding the contract method 0xa5e34731.

Solidity: function listUserRequestCounter(address user, uint32[] ids) view returns(uint256[] times)

func (*ApiWeightTokenSession) Name

func (_ApiWeightToken *ApiWeightTokenSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*ApiWeightTokenSession) NextConfigId

func (_ApiWeightToken *ApiWeightTokenSession) NextConfigId() (uint32, error)

NextConfigId is a free data retrieval call binding the contract method 0x99d726c7.

Solidity: function nextConfigId() view returns(uint32)

func (*ApiWeightTokenSession) OnERC1155BatchReceived

func (_ApiWeightToken *ApiWeightTokenSession) OnERC1155BatchReceived(arg0 common.Address, arg1 common.Address, arg2 []*big.Int, arg3 []*big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address , uint256[] , uint256[] , bytes ) returns(bytes4)

func (*ApiWeightTokenSession) OnERC1155Received

func (_ApiWeightToken *ApiWeightTokenSession) OnERC1155Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address , address , uint256 , uint256 , bytes ) returns(bytes4)

func (*ApiWeightTokenSession) PendingIdArray

func (_ApiWeightToken *ApiWeightTokenSession) PendingIdArray(arg0 *big.Int) (uint32, error)

PendingIdArray is a free data retrieval call binding the contract method 0xac8ef2b5.

Solidity: function pendingIdArray(uint256 ) view returns(uint32)

func (*ApiWeightTokenSession) PendingSeconds

func (_ApiWeightToken *ApiWeightTokenSession) PendingSeconds() (*big.Int, error)

PendingSeconds is a free data retrieval call binding the contract method 0xc819c70e.

Solidity: function pendingSeconds() view returns(uint256)

func (*ApiWeightTokenSession) ResourceConfigures

func (_ApiWeightToken *ApiWeightTokenSession) ResourceConfigures(arg0 uint32) (struct {
	ResourceId    string
	Weight        *big.Int
	Index         uint32
	PendingOP     uint8
	PendingWeight *big.Int
	SubmitSeconds *big.Int
	RequestTimes  *big.Int
}, error)

ResourceConfigures is a free data retrieval call binding the contract method 0xc86b6ee2.

Solidity: function resourceConfigures(uint32 ) view returns(string resourceId, uint256 weight, uint32 index, uint8 pendingOP, uint256 pendingWeight, uint256 submitSeconds, uint256 requestTimes)

func (*ApiWeightTokenSession) SafeBatchTransferFrom

func (_ApiWeightToken *ApiWeightTokenSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*ApiWeightTokenSession) SafeTransferFrom

func (_ApiWeightToken *ApiWeightTokenSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()

func (*ApiWeightTokenSession) SetApprovalForAll

func (_ApiWeightToken *ApiWeightTokenSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*ApiWeightTokenSession) SetPendingSeconds

func (_ApiWeightToken *ApiWeightTokenSession) SetPendingSeconds(seconds_ *big.Int) (*types.Transaction, error)

SetPendingSeconds is a paid mutator transaction binding the contract method 0xacb00a11.

Solidity: function setPendingSeconds(uint256 seconds_) returns()

func (*ApiWeightTokenSession) SupportsInterface

func (_ApiWeightToken *ApiWeightTokenSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ApiWeightTokenSession) Symbol

func (_ApiWeightToken *ApiWeightTokenSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*ApiWeightTokenSession) TAKEPROFITID

func (_ApiWeightToken *ApiWeightTokenSession) TAKEPROFITID() (*big.Int, error)

TAKEPROFITID is a free data retrieval call binding the contract method 0xfdd62e1c.

Solidity: function TAKE_PROFIT_ID() view returns(uint256)

func (*ApiWeightTokenSession) TOKENAIRDROPID

func (_ApiWeightToken *ApiWeightTokenSession) TOKENAIRDROPID() (*big.Int, error)

TOKENAIRDROPID is a free data retrieval call binding the contract method 0x25e0ba46.

Solidity: function TOKEN_AIRDROP_ID() view returns(uint256)

func (*ApiWeightTokenSession) TotalRequests

func (_ApiWeightToken *ApiWeightTokenSession) TotalRequests() (*big.Int, error)

TotalRequests is a free data retrieval call binding the contract method 0x8aea61dc.

Solidity: function totalRequests() view returns(uint256)

func (*ApiWeightTokenSession) Uri

func (_ApiWeightToken *ApiWeightTokenSession) Uri(arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

type ApiWeightTokenTransactor

type ApiWeightTokenTransactor struct {
	// contains filtered or unexported fields
}

ApiWeightTokenTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewApiWeightTokenTransactor

func NewApiWeightTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*ApiWeightTokenTransactor, error)

NewApiWeightTokenTransactor creates a new write-only instance of ApiWeightToken, bound to a specific deployed contract.

func (*ApiWeightTokenTransactor) AddRequestTimes

func (_ApiWeightToken *ApiWeightTokenTransactor) AddRequestTimes(opts *bind.TransactOpts, account common.Address, useDetail []IAppConfigResourceUseDetail) (*types.Transaction, error)

AddRequestTimes is a paid mutator transaction binding the contract method 0xcd9b856d.

Solidity: function addRequestTimes(address account, (uint32,uint256)[] useDetail) returns()

func (*ApiWeightTokenTransactor) ConfigResource

func (_ApiWeightToken *ApiWeightTokenTransactor) ConfigResource(opts *bind.TransactOpts, entry AppConfigConfigRequest) (*types.Transaction, error)

ConfigResource is a paid mutator transaction binding the contract method 0xf2721b7a.

Solidity: function configResource((uint32,string,uint256,uint8) entry) returns()

func (*ApiWeightTokenTransactor) ConfigResourceBatch

func (_ApiWeightToken *ApiWeightTokenTransactor) ConfigResourceBatch(opts *bind.TransactOpts, entries []AppConfigConfigRequest) (*types.Transaction, error)

ConfigResourceBatch is a paid mutator transaction binding the contract method 0x10b270aa.

Solidity: function configResourceBatch((uint32,string,uint256,uint8)[] entries) returns()

func (*ApiWeightTokenTransactor) FlushPendingConfig

func (_ApiWeightToken *ApiWeightTokenTransactor) FlushPendingConfig(opts *bind.TransactOpts) (*types.Transaction, error)

FlushPendingConfig is a paid mutator transaction binding the contract method 0xb8f2272a.

Solidity: function flushPendingConfig() returns()

func (*ApiWeightTokenTransactor) Initialize

func (_ApiWeightToken *ApiWeightTokenTransactor) Initialize(opts *bind.TransactOpts, belongsTo common.Address, name string, symbol string, uri string, defaultWeight *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x9047cd7a.

Solidity: function initialize(address belongsTo, string name, string symbol, string uri, uint256 defaultWeight) returns()

func (*ApiWeightTokenTransactor) OnERC1155BatchReceived

func (_ApiWeightToken *ApiWeightTokenTransactor) OnERC1155BatchReceived(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 []*big.Int, arg3 []*big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address , uint256[] , uint256[] , bytes ) returns(bytes4)

func (*ApiWeightTokenTransactor) OnERC1155Received

func (_ApiWeightToken *ApiWeightTokenTransactor) OnERC1155Received(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address , address , uint256 , uint256 , bytes ) returns(bytes4)

func (*ApiWeightTokenTransactor) SafeBatchTransferFrom

func (_ApiWeightToken *ApiWeightTokenTransactor) SafeBatchTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*ApiWeightTokenTransactor) SafeTransferFrom

func (_ApiWeightToken *ApiWeightTokenTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()

func (*ApiWeightTokenTransactor) SetApprovalForAll

func (_ApiWeightToken *ApiWeightTokenTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*ApiWeightTokenTransactor) SetPendingSeconds

func (_ApiWeightToken *ApiWeightTokenTransactor) SetPendingSeconds(opts *bind.TransactOpts, seconds_ *big.Int) (*types.Transaction, error)

SetPendingSeconds is a paid mutator transaction binding the contract method 0xacb00a11.

Solidity: function setPendingSeconds(uint256 seconds_) returns()

type ApiWeightTokenTransactorRaw

type ApiWeightTokenTransactorRaw struct {
	Contract *ApiWeightTokenTransactor // Generic write-only contract binding to access the raw methods on
}

ApiWeightTokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ApiWeightTokenTransactorRaw) Transact

func (_ApiWeightToken *ApiWeightTokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ApiWeightTokenTransactorRaw) Transfer

func (_ApiWeightToken *ApiWeightTokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ApiWeightTokenTransactorSession

type ApiWeightTokenTransactorSession struct {
	Contract     *ApiWeightTokenTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts         // Transaction auth options to use throughout this session
}

ApiWeightTokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ApiWeightTokenTransactorSession) AddRequestTimes

func (_ApiWeightToken *ApiWeightTokenTransactorSession) AddRequestTimes(account common.Address, useDetail []IAppConfigResourceUseDetail) (*types.Transaction, error)

AddRequestTimes is a paid mutator transaction binding the contract method 0xcd9b856d.

Solidity: function addRequestTimes(address account, (uint32,uint256)[] useDetail) returns()

func (*ApiWeightTokenTransactorSession) ConfigResource

func (_ApiWeightToken *ApiWeightTokenTransactorSession) ConfigResource(entry AppConfigConfigRequest) (*types.Transaction, error)

ConfigResource is a paid mutator transaction binding the contract method 0xf2721b7a.

Solidity: function configResource((uint32,string,uint256,uint8) entry) returns()

func (*ApiWeightTokenTransactorSession) ConfigResourceBatch

func (_ApiWeightToken *ApiWeightTokenTransactorSession) ConfigResourceBatch(entries []AppConfigConfigRequest) (*types.Transaction, error)

ConfigResourceBatch is a paid mutator transaction binding the contract method 0x10b270aa.

Solidity: function configResourceBatch((uint32,string,uint256,uint8)[] entries) returns()

func (*ApiWeightTokenTransactorSession) FlushPendingConfig

func (_ApiWeightToken *ApiWeightTokenTransactorSession) FlushPendingConfig() (*types.Transaction, error)

FlushPendingConfig is a paid mutator transaction binding the contract method 0xb8f2272a.

Solidity: function flushPendingConfig() returns()

func (*ApiWeightTokenTransactorSession) Initialize

func (_ApiWeightToken *ApiWeightTokenTransactorSession) Initialize(belongsTo common.Address, name string, symbol string, uri string, defaultWeight *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x9047cd7a.

Solidity: function initialize(address belongsTo, string name, string symbol, string uri, uint256 defaultWeight) returns()

func (*ApiWeightTokenTransactorSession) OnERC1155BatchReceived

func (_ApiWeightToken *ApiWeightTokenTransactorSession) OnERC1155BatchReceived(arg0 common.Address, arg1 common.Address, arg2 []*big.Int, arg3 []*big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address , uint256[] , uint256[] , bytes ) returns(bytes4)

func (*ApiWeightTokenTransactorSession) OnERC1155Received

func (_ApiWeightToken *ApiWeightTokenTransactorSession) OnERC1155Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address , address , uint256 , uint256 , bytes ) returns(bytes4)

func (*ApiWeightTokenTransactorSession) SafeBatchTransferFrom

func (_ApiWeightToken *ApiWeightTokenTransactorSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*ApiWeightTokenTransactorSession) SafeTransferFrom

func (_ApiWeightToken *ApiWeightTokenTransactorSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()

func (*ApiWeightTokenTransactorSession) SetApprovalForAll

func (_ApiWeightToken *ApiWeightTokenTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*ApiWeightTokenTransactorSession) SetPendingSeconds

func (_ApiWeightToken *ApiWeightTokenTransactorSession) SetPendingSeconds(seconds_ *big.Int) (*types.Transaction, error)

SetPendingSeconds is a paid mutator transaction binding the contract method 0xacb00a11.

Solidity: function setPendingSeconds(uint256 seconds_) returns()

type ApiWeightTokenTransferBatch

type ApiWeightTokenTransferBatch struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Ids      []*big.Int
	Values   []*big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ApiWeightTokenTransferBatch represents a TransferBatch event raised by the ApiWeightToken contract.

type ApiWeightTokenTransferBatchIterator

type ApiWeightTokenTransferBatchIterator struct {
	Event *ApiWeightTokenTransferBatch // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ApiWeightTokenTransferBatchIterator is returned from FilterTransferBatch and is used to iterate over the raw logs and unpacked data for TransferBatch events raised by the ApiWeightToken contract.

func (*ApiWeightTokenTransferBatchIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ApiWeightTokenTransferBatchIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ApiWeightTokenTransferBatchIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ApiWeightTokenTransferSingle

type ApiWeightTokenTransferSingle struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Id       *big.Int
	Value    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ApiWeightTokenTransferSingle represents a TransferSingle event raised by the ApiWeightToken contract.

type ApiWeightTokenTransferSingleIterator

type ApiWeightTokenTransferSingleIterator struct {
	Event *ApiWeightTokenTransferSingle // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ApiWeightTokenTransferSingleIterator is returned from FilterTransferSingle and is used to iterate over the raw logs and unpacked data for TransferSingle events raised by the ApiWeightToken contract.

func (*ApiWeightTokenTransferSingleIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ApiWeightTokenTransferSingleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ApiWeightTokenTransferSingleIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ApiWeightTokenURI

type ApiWeightTokenURI struct {
	Value string
	Id    *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ApiWeightTokenURI represents a URI event raised by the ApiWeightToken contract.

type ApiWeightTokenURIIterator

type ApiWeightTokenURIIterator struct {
	Event *ApiWeightTokenURI // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ApiWeightTokenURIIterator is returned from FilterURI and is used to iterate over the raw logs and unpacked data for URI events raised by the ApiWeightToken contract.

func (*ApiWeightTokenURIIterator) Close

func (it *ApiWeightTokenURIIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ApiWeightTokenURIIterator) Error

func (it *ApiWeightTokenURIIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ApiWeightTokenURIIterator) Next

func (it *ApiWeightTokenURIIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type App

type App struct {
	AppCaller     // Read-only binding to the contract
	AppTransactor // Write-only binding to the contract
	AppFilterer   // Log filterer for contract events
}

App is an auto generated Go binding around an Ethereum contract.

func NewApp

func NewApp(address common.Address, backend bind.ContractBackend) (*App, error)

NewApp creates a new instance of App, bound to a specific deployed contract.

type AppCaller

type AppCaller struct {
	// contains filtered or unexported fields
}

AppCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewAppCaller

func NewAppCaller(address common.Address, caller bind.ContractCaller) (*AppCaller, error)

NewAppCaller creates a new read-only instance of App, bound to a specific deployed contract.

func (*AppCaller) AppRegistry

func (_App *AppCaller) AppRegistry(opts *bind.CallOpts) (common.Address, error)

AppRegistry is a free data retrieval call binding the contract method 0xbb4fceb9.

Solidity: function appRegistry() view returns(address)

func (*AppCaller) BalanceOf

func (_App *AppCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, *big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256, uint256)

func (*AppCaller) CHARGEROLE

func (_App *AppCaller) CHARGEROLE(opts *bind.CallOpts) ([32]byte, error)

CHARGEROLE is a free data retrieval call binding the contract method 0xa2c74ad9.

Solidity: function CHARGE_ROLE() view returns(bytes32)

func (*AppCaller) CardShop

func (_App *AppCaller) CardShop(opts *bind.CallOpts) (common.Address, error)

CardShop is a free data retrieval call binding the contract method 0xd6773e6b.

Solidity: function cardShop() view returns(address)

func (*AppCaller) DEFAULTADMINROLE

func (_App *AppCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*AppCaller) DeferTimeSecs

func (_App *AppCaller) DeferTimeSecs(opts *bind.CallOpts) (*big.Int, error)

DeferTimeSecs is a free data retrieval call binding the contract method 0x3e0510f8.

Solidity: function deferTimeSecs() view returns(uint256)

func (*AppCaller) Description

func (_App *AppCaller) Description(opts *bind.CallOpts) (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*AppCaller) GetApiWeightToken

func (_App *AppCaller) GetApiWeightToken(opts *bind.CallOpts) (common.Address, error)

GetApiWeightToken is a free data retrieval call binding the contract method 0xcf46544e.

Solidity: function getApiWeightToken() view returns(address)

func (*AppCaller) GetAppCoin

func (_App *AppCaller) GetAppCoin(opts *bind.CallOpts) (common.Address, error)

GetAppCoin is a free data retrieval call binding the contract method 0xe7337217.

Solidity: function getAppCoin() view returns(address)

func (*AppCaller) GetRoleAdmin

func (_App *AppCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*AppCaller) GetRoleMember

func (_App *AppCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*AppCaller) GetRoleMemberCount

func (_App *AppCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*AppCaller) GetVipCoin

func (_App *AppCaller) GetVipCoin(opts *bind.CallOpts) (common.Address, error)

GetVipCoin is a free data retrieval call binding the contract method 0x07a75b24.

Solidity: function getVipCoin() view returns(address)

func (*AppCaller) HasRole

func (_App *AppCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (_App *AppCaller) Link(opts *bind.CallOpts) (string, error)

Link is a free data retrieval call binding the contract method 0x1c4695f4.

Solidity: function link() view returns(string)

func (*AppCaller) PaymentType

func (_App *AppCaller) PaymentType(opts *bind.CallOpts) (uint8, error)

PaymentType is a free data retrieval call binding the contract method 0x2763b8da.

Solidity: function paymentType() view returns(uint8)

func (*AppCaller) SupportsInterface

func (_App *AppCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*AppCaller) TAKEPROFITROLE

func (_App *AppCaller) TAKEPROFITROLE(opts *bind.CallOpts) ([32]byte, error)

TAKEPROFITROLE is a free data retrieval call binding the contract method 0x0da699d6.

Solidity: function TAKE_PROFIT_ROLE() view returns(bytes32)

func (*AppCaller) TOKENIDAIRDROP

func (_App *AppCaller) TOKENIDAIRDROP(opts *bind.CallOpts) (*big.Int, error)

TOKENIDAIRDROP is a free data retrieval call binding the contract method 0xc9e3b913.

Solidity: function TOKEN_ID_AIRDROP() view returns(uint256)

func (*AppCaller) TOKENIDCOIN

func (_App *AppCaller) TOKENIDCOIN(opts *bind.CallOpts) (*big.Int, error)

TOKENIDCOIN is a free data retrieval call binding the contract method 0x45e2efd2.

Solidity: function TOKEN_ID_COIN() view returns(uint256)

func (*AppCaller) TOKENIDVIP

func (_App *AppCaller) TOKENIDVIP(opts *bind.CallOpts) (*big.Int, error)

TOKENIDVIP is a free data retrieval call binding the contract method 0xdbd53229.

Solidity: function TOKEN_ID_VIP() view returns(uint256)

func (*AppCaller) TotalCharged

func (_App *AppCaller) TotalCharged(opts *bind.CallOpts) (*big.Int, error)

TotalCharged is a free data retrieval call binding the contract method 0xa6f55d77.

Solidity: function totalCharged() view returns(uint256)

func (*AppCaller) TotalTakenProfit

func (_App *AppCaller) TotalTakenProfit(opts *bind.CallOpts) (*big.Int, error)

TotalTakenProfit is a free data retrieval call binding the contract method 0x55297bcf.

Solidity: function totalTakenProfit() view returns(uint256)

func (*AppCaller) WITHDRAWROLE

func (_App *AppCaller) WITHDRAWROLE(opts *bind.CallOpts) ([32]byte, error)

WITHDRAWROLE is a free data retrieval call binding the contract method 0xe02023a1.

Solidity: function WITHDRAW_ROLE() view returns(bytes32)

func (*AppCaller) WithdrawSchedules

func (_App *AppCaller) WithdrawSchedules(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

WithdrawSchedules is a free data retrieval call binding the contract method 0x0a9aa21c.

Solidity: function withdrawSchedules(address ) view returns(uint256)

type AppCallerRaw

type AppCallerRaw struct {
	Contract *AppCaller // Generic read-only contract binding to access the raw methods on
}

AppCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*AppCallerRaw) Call

func (_App *AppCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type AppCallerSession

type AppCallerSession struct {
	Contract *AppCaller    // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

AppCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*AppCallerSession) AppRegistry

func (_App *AppCallerSession) AppRegistry() (common.Address, error)

AppRegistry is a free data retrieval call binding the contract method 0xbb4fceb9.

Solidity: function appRegistry() view returns(address)

func (*AppCallerSession) BalanceOf

func (_App *AppCallerSession) BalanceOf(account common.Address) (*big.Int, *big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256, uint256)

func (*AppCallerSession) CHARGEROLE

func (_App *AppCallerSession) CHARGEROLE() ([32]byte, error)

CHARGEROLE is a free data retrieval call binding the contract method 0xa2c74ad9.

Solidity: function CHARGE_ROLE() view returns(bytes32)

func (*AppCallerSession) CardShop

func (_App *AppCallerSession) CardShop() (common.Address, error)

CardShop is a free data retrieval call binding the contract method 0xd6773e6b.

Solidity: function cardShop() view returns(address)

func (*AppCallerSession) DEFAULTADMINROLE

func (_App *AppCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*AppCallerSession) DeferTimeSecs

func (_App *AppCallerSession) DeferTimeSecs() (*big.Int, error)

DeferTimeSecs is a free data retrieval call binding the contract method 0x3e0510f8.

Solidity: function deferTimeSecs() view returns(uint256)

func (*AppCallerSession) Description

func (_App *AppCallerSession) Description() (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*AppCallerSession) GetApiWeightToken

func (_App *AppCallerSession) GetApiWeightToken() (common.Address, error)

GetApiWeightToken is a free data retrieval call binding the contract method 0xcf46544e.

Solidity: function getApiWeightToken() view returns(address)

func (*AppCallerSession) GetAppCoin

func (_App *AppCallerSession) GetAppCoin() (common.Address, error)

GetAppCoin is a free data retrieval call binding the contract method 0xe7337217.

Solidity: function getAppCoin() view returns(address)

func (*AppCallerSession) GetRoleAdmin

func (_App *AppCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*AppCallerSession) GetRoleMember

func (_App *AppCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*AppCallerSession) GetRoleMemberCount

func (_App *AppCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*AppCallerSession) GetVipCoin

func (_App *AppCallerSession) GetVipCoin() (common.Address, error)

GetVipCoin is a free data retrieval call binding the contract method 0x07a75b24.

Solidity: function getVipCoin() view returns(address)

func (*AppCallerSession) HasRole

func (_App *AppCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (_App *AppCallerSession) Link() (string, error)

Link is a free data retrieval call binding the contract method 0x1c4695f4.

Solidity: function link() view returns(string)

func (*AppCallerSession) PaymentType

func (_App *AppCallerSession) PaymentType() (uint8, error)

PaymentType is a free data retrieval call binding the contract method 0x2763b8da.

Solidity: function paymentType() view returns(uint8)

func (*AppCallerSession) SupportsInterface

func (_App *AppCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*AppCallerSession) TAKEPROFITROLE

func (_App *AppCallerSession) TAKEPROFITROLE() ([32]byte, error)

TAKEPROFITROLE is a free data retrieval call binding the contract method 0x0da699d6.

Solidity: function TAKE_PROFIT_ROLE() view returns(bytes32)

func (*AppCallerSession) TOKENIDAIRDROP

func (_App *AppCallerSession) TOKENIDAIRDROP() (*big.Int, error)

TOKENIDAIRDROP is a free data retrieval call binding the contract method 0xc9e3b913.

Solidity: function TOKEN_ID_AIRDROP() view returns(uint256)

func (*AppCallerSession) TOKENIDCOIN

func (_App *AppCallerSession) TOKENIDCOIN() (*big.Int, error)

TOKENIDCOIN is a free data retrieval call binding the contract method 0x45e2efd2.

Solidity: function TOKEN_ID_COIN() view returns(uint256)

func (*AppCallerSession) TOKENIDVIP

func (_App *AppCallerSession) TOKENIDVIP() (*big.Int, error)

TOKENIDVIP is a free data retrieval call binding the contract method 0xdbd53229.

Solidity: function TOKEN_ID_VIP() view returns(uint256)

func (*AppCallerSession) TotalCharged

func (_App *AppCallerSession) TotalCharged() (*big.Int, error)

TotalCharged is a free data retrieval call binding the contract method 0xa6f55d77.

Solidity: function totalCharged() view returns(uint256)

func (*AppCallerSession) TotalTakenProfit

func (_App *AppCallerSession) TotalTakenProfit() (*big.Int, error)

TotalTakenProfit is a free data retrieval call binding the contract method 0x55297bcf.

Solidity: function totalTakenProfit() view returns(uint256)

func (*AppCallerSession) WITHDRAWROLE

func (_App *AppCallerSession) WITHDRAWROLE() ([32]byte, error)

WITHDRAWROLE is a free data retrieval call binding the contract method 0xe02023a1.

Solidity: function WITHDRAW_ROLE() view returns(bytes32)

func (*AppCallerSession) WithdrawSchedules

func (_App *AppCallerSession) WithdrawSchedules(arg0 common.Address) (*big.Int, error)

WithdrawSchedules is a free data retrieval call binding the contract method 0x0a9aa21c.

Solidity: function withdrawSchedules(address ) view returns(uint256)

type AppConfigConfigRequest

type AppConfigConfigRequest struct {
	Id         uint32
	ResourceId string
	Weight     *big.Int
	Op         uint8
}

AppConfigConfigRequest is an auto generated low-level Go binding around an user-defined struct.

type AppDeposit

type AppDeposit struct {
	Operator common.Address
	Receiver common.Address
	TokenId  *big.Int
	Amount   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

AppDeposit represents a Deposit event raised by the App contract.

func UnpackAppDeposit

func UnpackAppDeposit(appAbi *abi.ABI, log *types.Log) (*AppDeposit, error)

type AppDepositIterator

type AppDepositIterator struct {
	Event *AppDeposit // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the App contract.

func (*AppDepositIterator) Close

func (it *AppDepositIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppDepositIterator) Error

func (it *AppDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppDepositIterator) Next

func (it *AppDepositIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppFilterer

type AppFilterer struct {
	// contains filtered or unexported fields
}

AppFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewAppFilterer

func NewAppFilterer(address common.Address, filterer bind.ContractFilterer) (*AppFilterer, error)

NewAppFilterer creates a new log filterer instance of App, bound to a specific deployed contract.

func (*AppFilterer) FilterDeposit

func (_App *AppFilterer) FilterDeposit(opts *bind.FilterOpts, operator []common.Address, receiver []common.Address, tokenId []*big.Int) (*AppDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7.

Solidity: event Deposit(address indexed operator, address indexed receiver, uint256 indexed tokenId, uint256 amount)

func (*AppFilterer) FilterFrozen

func (_App *AppFilterer) FilterFrozen(opts *bind.FilterOpts, account []common.Address) (*AppFrozenIterator, error)

FilterFrozen is a free log retrieval operation binding the contract event 0x8a5c4736a33c7b7f29a2c34ea9ff9608afc5718d56f6fd6dcbd2d3711a1a4913.

Solidity: event Frozen(address indexed account)

func (*AppFilterer) FilterInitialized

func (_App *AppFilterer) FilterInitialized(opts *bind.FilterOpts) (*AppInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*AppFilterer) FilterRoleAdminChanged

func (_App *AppFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*AppRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*AppFilterer) FilterRoleGranted

func (_App *AppFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*AppRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppFilterer) FilterRoleRevoked

func (_App *AppFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*AppRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppFilterer) FilterWithdraw

func (_App *AppFilterer) FilterWithdraw(opts *bind.FilterOpts, operator []common.Address, receiver []common.Address) (*AppWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7.

Solidity: event Withdraw(address indexed operator, address account, address indexed receiver, uint256 amount)

func (*AppFilterer) ParseDeposit

func (_App *AppFilterer) ParseDeposit(log types.Log) (*AppDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7.

Solidity: event Deposit(address indexed operator, address indexed receiver, uint256 indexed tokenId, uint256 amount)

func (*AppFilterer) ParseFrozen

func (_App *AppFilterer) ParseFrozen(log types.Log) (*AppFrozen, error)

ParseFrozen is a log parse operation binding the contract event 0x8a5c4736a33c7b7f29a2c34ea9ff9608afc5718d56f6fd6dcbd2d3711a1a4913.

Solidity: event Frozen(address indexed account)

func (*AppFilterer) ParseInitialized

func (_App *AppFilterer) ParseInitialized(log types.Log) (*AppInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*AppFilterer) ParseRoleAdminChanged

func (_App *AppFilterer) ParseRoleAdminChanged(log types.Log) (*AppRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*AppFilterer) ParseRoleGranted

func (_App *AppFilterer) ParseRoleGranted(log types.Log) (*AppRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppFilterer) ParseRoleRevoked

func (_App *AppFilterer) ParseRoleRevoked(log types.Log) (*AppRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppFilterer) ParseWithdraw

func (_App *AppFilterer) ParseWithdraw(log types.Log) (*AppWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7.

Solidity: event Withdraw(address indexed operator, address account, address indexed receiver, uint256 amount)

func (*AppFilterer) WatchDeposit

func (_App *AppFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *AppDeposit, operator []common.Address, receiver []common.Address, tokenId []*big.Int) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7.

Solidity: event Deposit(address indexed operator, address indexed receiver, uint256 indexed tokenId, uint256 amount)

func (*AppFilterer) WatchFrozen

func (_App *AppFilterer) WatchFrozen(opts *bind.WatchOpts, sink chan<- *AppFrozen, account []common.Address) (event.Subscription, error)

WatchFrozen is a free log subscription operation binding the contract event 0x8a5c4736a33c7b7f29a2c34ea9ff9608afc5718d56f6fd6dcbd2d3711a1a4913.

Solidity: event Frozen(address indexed account)

func (*AppFilterer) WatchInitialized

func (_App *AppFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *AppInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*AppFilterer) WatchRoleAdminChanged

func (_App *AppFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *AppRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*AppFilterer) WatchRoleGranted

func (_App *AppFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *AppRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppFilterer) WatchRoleRevoked

func (_App *AppFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *AppRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppFilterer) WatchWithdraw

func (_App *AppFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *AppWithdraw, operator []common.Address, receiver []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7.

Solidity: event Withdraw(address indexed operator, address account, address indexed receiver, uint256 amount)

type AppFrozen

type AppFrozen struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

AppFrozen represents a Frozen event raised by the App contract.

func UnpackAppFrozen

func UnpackAppFrozen(appAbi *abi.ABI, log *types.Log) (*AppFrozen, error)

type AppFrozenIterator

type AppFrozenIterator struct {
	Event *AppFrozen // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppFrozenIterator is returned from FilterFrozen and is used to iterate over the raw logs and unpacked data for Frozen events raised by the App contract.

func (*AppFrozenIterator) Close

func (it *AppFrozenIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppFrozenIterator) Error

func (it *AppFrozenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppFrozenIterator) Next

func (it *AppFrozenIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppInitialized

type AppInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

AppInitialized represents a Initialized event raised by the App contract.

type AppInitializedIterator

type AppInitializedIterator struct {
	Event *AppInitialized // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the App contract.

func (*AppInitializedIterator) Close

func (it *AppInitializedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppInitializedIterator) Error

func (it *AppInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppInitializedIterator) Next

func (it *AppInitializedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppRaw

type AppRaw struct {
	Contract *App // Generic contract binding to access the raw methods on
}

AppRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*AppRaw) Call

func (_App *AppRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*AppRaw) Transact

func (_App *AppRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*AppRaw) Transfer

func (_App *AppRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type AppRegistry

type AppRegistry struct {
	AppRegistryCaller     // Read-only binding to the contract
	AppRegistryTransactor // Write-only binding to the contract
	AppRegistryFilterer   // Log filterer for contract events
}

AppRegistry is an auto generated Go binding around an Ethereum contract.

func NewAppRegistry

func NewAppRegistry(address common.Address, backend bind.ContractBackend) (*AppRegistry, error)

NewAppRegistry creates a new instance of AppRegistry, bound to a specific deployed contract.

type AppRegistryAppInfo

type AppRegistryAppInfo struct {
	Addr       common.Address
	CreateTime *big.Int
}

AppRegistryAppInfo is an auto generated low-level Go binding around an user-defined struct.

type AppRegistryCaller

type AppRegistryCaller struct {
	// contains filtered or unexported fields
}

AppRegistryCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewAppRegistryCaller

func NewAppRegistryCaller(address common.Address, caller bind.ContractCaller) (*AppRegistryCaller, error)

NewAppRegistryCaller creates a new read-only instance of AppRegistry, bound to a specific deployed contract.

func (*AppRegistryCaller) AppFactory

func (_AppRegistry *AppRegistryCaller) AppFactory(opts *bind.CallOpts) (common.Address, error)

AppFactory is a free data retrieval call binding the contract method 0x09817fa1.

Solidity: function appFactory() view returns(address)

func (*AppRegistryCaller) CREATORROLE

func (_AppRegistry *AppRegistryCaller) CREATORROLE(opts *bind.CallOpts) ([32]byte, error)

CREATORROLE is a free data retrieval call binding the contract method 0x8aeda25a.

Solidity: function CREATOR_ROLE() view returns(bytes32)

func (*AppRegistryCaller) CreatorRoleDisabled

func (_AppRegistry *AppRegistryCaller) CreatorRoleDisabled(opts *bind.CallOpts) (bool, error)

CreatorRoleDisabled is a free data retrieval call binding the contract method 0x32277071.

Solidity: function creatorRoleDisabled() view returns(bool)

func (*AppRegistryCaller) DEFAULTADMINROLE

func (_AppRegistry *AppRegistryCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*AppRegistryCaller) Get

func (_AppRegistry *AppRegistryCaller) Get(opts *bind.CallOpts, app common.Address) (AppRegistryAppInfo, error)

Get is a free data retrieval call binding the contract method 0xc2bc2efc.

Solidity: function get(address app) view returns((address,uint256))

func (*AppRegistryCaller) Get0

func (_AppRegistry *AppRegistryCaller) Get0(opts *bind.CallOpts, owner common.Address, app common.Address) (AppRegistryAppInfo, error)

Get0 is a free data retrieval call binding the contract method 0xd81e8423.

Solidity: function get(address owner, address app) view returns((address,uint256))

func (*AppRegistryCaller) GetExchanger

func (_AppRegistry *AppRegistryCaller) GetExchanger(opts *bind.CallOpts) (common.Address, error)

GetExchanger is a free data retrieval call binding the contract method 0x4b1acf39.

Solidity: function getExchanger() view returns(address)

func (*AppRegistryCaller) GetRoleAdmin

func (_AppRegistry *AppRegistryCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*AppRegistryCaller) GetRoleMember

func (_AppRegistry *AppRegistryCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*AppRegistryCaller) GetRoleMemberCount

func (_AppRegistry *AppRegistryCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*AppRegistryCaller) HasRole

func (_AppRegistry *AppRegistryCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*AppRegistryCaller) List

func (_AppRegistry *AppRegistryCaller) List(opts *bind.CallOpts, offset *big.Int, limit *big.Int) (*big.Int, []AppRegistryAppInfo, error)

List is a free data retrieval call binding the contract method 0x50fd7367.

Solidity: function list(uint256 offset, uint256 limit) view returns(uint256, (address,uint256)[])

func (*AppRegistryCaller) ListByOwner

func (_AppRegistry *AppRegistryCaller) ListByOwner(opts *bind.CallOpts, owner common.Address, offset *big.Int, limit *big.Int) (*big.Int, []AppRegistryAppInfo, error)

ListByOwner is a free data retrieval call binding the contract method 0x7ed7943c.

Solidity: function listByOwner(address owner, uint256 offset, uint256 limit) view returns(uint256, (address,uint256)[])

func (*AppRegistryCaller) ListByUser

func (_AppRegistry *AppRegistryCaller) ListByUser(opts *bind.CallOpts, user common.Address, offset *big.Int, limit *big.Int) (*big.Int, []AppRegistryAppInfo, error)

ListByUser is a free data retrieval call binding the contract method 0x7888ad21.

Solidity: function listByUser(address user, uint256 offset, uint256 limit) view returns(uint256, (address,uint256)[])

func (*AppRegistryCaller) SupportsInterface

func (_AppRegistry *AppRegistryCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type AppRegistryCallerRaw

type AppRegistryCallerRaw struct {
	Contract *AppRegistryCaller // Generic read-only contract binding to access the raw methods on
}

AppRegistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*AppRegistryCallerRaw) Call

func (_AppRegistry *AppRegistryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type AppRegistryCallerSession

type AppRegistryCallerSession struct {
	Contract *AppRegistryCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts      // Call options to use throughout this session
}

AppRegistryCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*AppRegistryCallerSession) AppFactory

func (_AppRegistry *AppRegistryCallerSession) AppFactory() (common.Address, error)

AppFactory is a free data retrieval call binding the contract method 0x09817fa1.

Solidity: function appFactory() view returns(address)

func (*AppRegistryCallerSession) CREATORROLE

func (_AppRegistry *AppRegistryCallerSession) CREATORROLE() ([32]byte, error)

CREATORROLE is a free data retrieval call binding the contract method 0x8aeda25a.

Solidity: function CREATOR_ROLE() view returns(bytes32)

func (*AppRegistryCallerSession) CreatorRoleDisabled

func (_AppRegistry *AppRegistryCallerSession) CreatorRoleDisabled() (bool, error)

CreatorRoleDisabled is a free data retrieval call binding the contract method 0x32277071.

Solidity: function creatorRoleDisabled() view returns(bool)

func (*AppRegistryCallerSession) DEFAULTADMINROLE

func (_AppRegistry *AppRegistryCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*AppRegistryCallerSession) Get

Get is a free data retrieval call binding the contract method 0xc2bc2efc.

Solidity: function get(address app) view returns((address,uint256))

func (*AppRegistryCallerSession) Get0

func (_AppRegistry *AppRegistryCallerSession) Get0(owner common.Address, app common.Address) (AppRegistryAppInfo, error)

Get0 is a free data retrieval call binding the contract method 0xd81e8423.

Solidity: function get(address owner, address app) view returns((address,uint256))

func (*AppRegistryCallerSession) GetExchanger

func (_AppRegistry *AppRegistryCallerSession) GetExchanger() (common.Address, error)

GetExchanger is a free data retrieval call binding the contract method 0x4b1acf39.

Solidity: function getExchanger() view returns(address)

func (*AppRegistryCallerSession) GetRoleAdmin

func (_AppRegistry *AppRegistryCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*AppRegistryCallerSession) GetRoleMember

func (_AppRegistry *AppRegistryCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*AppRegistryCallerSession) GetRoleMemberCount

func (_AppRegistry *AppRegistryCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*AppRegistryCallerSession) HasRole

func (_AppRegistry *AppRegistryCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*AppRegistryCallerSession) List

func (_AppRegistry *AppRegistryCallerSession) List(offset *big.Int, limit *big.Int) (*big.Int, []AppRegistryAppInfo, error)

List is a free data retrieval call binding the contract method 0x50fd7367.

Solidity: function list(uint256 offset, uint256 limit) view returns(uint256, (address,uint256)[])

func (*AppRegistryCallerSession) ListByOwner

func (_AppRegistry *AppRegistryCallerSession) ListByOwner(owner common.Address, offset *big.Int, limit *big.Int) (*big.Int, []AppRegistryAppInfo, error)

ListByOwner is a free data retrieval call binding the contract method 0x7ed7943c.

Solidity: function listByOwner(address owner, uint256 offset, uint256 limit) view returns(uint256, (address,uint256)[])

func (*AppRegistryCallerSession) ListByUser

func (_AppRegistry *AppRegistryCallerSession) ListByUser(user common.Address, offset *big.Int, limit *big.Int) (*big.Int, []AppRegistryAppInfo, error)

ListByUser is a free data retrieval call binding the contract method 0x7888ad21.

Solidity: function listByUser(address user, uint256 offset, uint256 limit) view returns(uint256, (address,uint256)[])

func (*AppRegistryCallerSession) SupportsInterface

func (_AppRegistry *AppRegistryCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type AppRegistryCreated

type AppRegistryCreated struct {
	App            common.Address
	Operator       common.Address
	Owner          common.Address
	ApiWeightToken common.Address
	VipCoin        common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

AppRegistryCreated represents a Created event raised by the AppRegistry contract.

func UnpackAppRegistryCreated

func UnpackAppRegistryCreated(abi *abi.ABI, log *types.Log) (*AppRegistryCreated, error)

type AppRegistryCreatedIterator

type AppRegistryCreatedIterator struct {
	Event *AppRegistryCreated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppRegistryCreatedIterator is returned from FilterCreated and is used to iterate over the raw logs and unpacked data for Created events raised by the AppRegistry contract.

func (*AppRegistryCreatedIterator) Close

func (it *AppRegistryCreatedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppRegistryCreatedIterator) Error

func (it *AppRegistryCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppRegistryCreatedIterator) Next

func (it *AppRegistryCreatedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppRegistryFilterer

type AppRegistryFilterer struct {
	// contains filtered or unexported fields
}

AppRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewAppRegistryFilterer

func NewAppRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*AppRegistryFilterer, error)

NewAppRegistryFilterer creates a new log filterer instance of AppRegistry, bound to a specific deployed contract.

func (*AppRegistryFilterer) FilterCreated

func (_AppRegistry *AppRegistryFilterer) FilterCreated(opts *bind.FilterOpts, app []common.Address, operator []common.Address, owner []common.Address) (*AppRegistryCreatedIterator, error)

FilterCreated is a free log retrieval operation binding the contract event 0x55353cd176c454ba526e09653a5a00a4cc4d1468d129208df7f84e0a359f688d.

Solidity: event Created(address indexed app, address indexed operator, address indexed owner, address apiWeightToken, address vipCoin)

func (*AppRegistryFilterer) FilterInitialized

func (_AppRegistry *AppRegistryFilterer) FilterInitialized(opts *bind.FilterOpts) (*AppRegistryInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*AppRegistryFilterer) FilterRemoved

func (_AppRegistry *AppRegistryFilterer) FilterRemoved(opts *bind.FilterOpts, app []common.Address, operator []common.Address) (*AppRegistryRemovedIterator, error)

FilterRemoved is a free log retrieval operation binding the contract event 0x40e634d0e26d9ec2e860e4dd9b7b2cfbb569b6058362a1a54d3a94718bc49587.

Solidity: event Removed(address indexed app, address indexed operator)

func (*AppRegistryFilterer) FilterRoleAdminChanged

func (_AppRegistry *AppRegistryFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*AppRegistryRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*AppRegistryFilterer) FilterRoleGranted

func (_AppRegistry *AppRegistryFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*AppRegistryRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppRegistryFilterer) FilterRoleRevoked

func (_AppRegistry *AppRegistryFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*AppRegistryRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppRegistryFilterer) ParseCreated

func (_AppRegistry *AppRegistryFilterer) ParseCreated(log types.Log) (*AppRegistryCreated, error)

ParseCreated is a log parse operation binding the contract event 0x55353cd176c454ba526e09653a5a00a4cc4d1468d129208df7f84e0a359f688d.

Solidity: event Created(address indexed app, address indexed operator, address indexed owner, address apiWeightToken, address vipCoin)

func (*AppRegistryFilterer) ParseInitialized

func (_AppRegistry *AppRegistryFilterer) ParseInitialized(log types.Log) (*AppRegistryInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*AppRegistryFilterer) ParseRemoved

func (_AppRegistry *AppRegistryFilterer) ParseRemoved(log types.Log) (*AppRegistryRemoved, error)

ParseRemoved is a log parse operation binding the contract event 0x40e634d0e26d9ec2e860e4dd9b7b2cfbb569b6058362a1a54d3a94718bc49587.

Solidity: event Removed(address indexed app, address indexed operator)

func (*AppRegistryFilterer) ParseRoleAdminChanged

func (_AppRegistry *AppRegistryFilterer) ParseRoleAdminChanged(log types.Log) (*AppRegistryRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*AppRegistryFilterer) ParseRoleGranted

func (_AppRegistry *AppRegistryFilterer) ParseRoleGranted(log types.Log) (*AppRegistryRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppRegistryFilterer) ParseRoleRevoked

func (_AppRegistry *AppRegistryFilterer) ParseRoleRevoked(log types.Log) (*AppRegistryRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppRegistryFilterer) WatchCreated

func (_AppRegistry *AppRegistryFilterer) WatchCreated(opts *bind.WatchOpts, sink chan<- *AppRegistryCreated, app []common.Address, operator []common.Address, owner []common.Address) (event.Subscription, error)

WatchCreated is a free log subscription operation binding the contract event 0x55353cd176c454ba526e09653a5a00a4cc4d1468d129208df7f84e0a359f688d.

Solidity: event Created(address indexed app, address indexed operator, address indexed owner, address apiWeightToken, address vipCoin)

func (*AppRegistryFilterer) WatchInitialized

func (_AppRegistry *AppRegistryFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *AppRegistryInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*AppRegistryFilterer) WatchRemoved

func (_AppRegistry *AppRegistryFilterer) WatchRemoved(opts *bind.WatchOpts, sink chan<- *AppRegistryRemoved, app []common.Address, operator []common.Address) (event.Subscription, error)

WatchRemoved is a free log subscription operation binding the contract event 0x40e634d0e26d9ec2e860e4dd9b7b2cfbb569b6058362a1a54d3a94718bc49587.

Solidity: event Removed(address indexed app, address indexed operator)

func (*AppRegistryFilterer) WatchRoleAdminChanged

func (_AppRegistry *AppRegistryFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *AppRegistryRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*AppRegistryFilterer) WatchRoleGranted

func (_AppRegistry *AppRegistryFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *AppRegistryRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*AppRegistryFilterer) WatchRoleRevoked

func (_AppRegistry *AppRegistryFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *AppRegistryRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

type AppRegistryInitialized

type AppRegistryInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

AppRegistryInitialized represents a Initialized event raised by the AppRegistry contract.

type AppRegistryInitializedIterator

type AppRegistryInitializedIterator struct {
	Event *AppRegistryInitialized // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppRegistryInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the AppRegistry contract.

func (*AppRegistryInitializedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppRegistryInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppRegistryInitializedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppRegistryRaw

type AppRegistryRaw struct {
	Contract *AppRegistry // Generic contract binding to access the raw methods on
}

AppRegistryRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*AppRegistryRaw) Call

func (_AppRegistry *AppRegistryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*AppRegistryRaw) Transact

func (_AppRegistry *AppRegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*AppRegistryRaw) Transfer

func (_AppRegistry *AppRegistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type AppRegistryRemoved

type AppRegistryRemoved struct {
	App      common.Address
	Operator common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

AppRegistryRemoved represents a Removed event raised by the AppRegistry contract.

type AppRegistryRemovedIterator

type AppRegistryRemovedIterator struct {
	Event *AppRegistryRemoved // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppRegistryRemovedIterator is returned from FilterRemoved and is used to iterate over the raw logs and unpacked data for Removed events raised by the AppRegistry contract.

func (*AppRegistryRemovedIterator) Close

func (it *AppRegistryRemovedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppRegistryRemovedIterator) Error

func (it *AppRegistryRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppRegistryRemovedIterator) Next

func (it *AppRegistryRemovedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppRegistryRoleAdminChanged

type AppRegistryRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

AppRegistryRoleAdminChanged represents a RoleAdminChanged event raised by the AppRegistry contract.

type AppRegistryRoleAdminChangedIterator

type AppRegistryRoleAdminChangedIterator struct {
	Event *AppRegistryRoleAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppRegistryRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the AppRegistry contract.

func (*AppRegistryRoleAdminChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppRegistryRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppRegistryRoleAdminChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppRegistryRoleGranted

type AppRegistryRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

AppRegistryRoleGranted represents a RoleGranted event raised by the AppRegistry contract.

type AppRegistryRoleGrantedIterator

type AppRegistryRoleGrantedIterator struct {
	Event *AppRegistryRoleGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppRegistryRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the AppRegistry contract.

func (*AppRegistryRoleGrantedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppRegistryRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppRegistryRoleGrantedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppRegistryRoleRevoked

type AppRegistryRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

AppRegistryRoleRevoked represents a RoleRevoked event raised by the AppRegistry contract.

type AppRegistryRoleRevokedIterator

type AppRegistryRoleRevokedIterator struct {
	Event *AppRegistryRoleRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppRegistryRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the AppRegistry contract.

func (*AppRegistryRoleRevokedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppRegistryRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppRegistryRoleRevokedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppRegistrySession

type AppRegistrySession struct {
	Contract     *AppRegistry      // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

AppRegistrySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*AppRegistrySession) AddUser

func (_AppRegistry *AppRegistrySession) AddUser(user common.Address) (*types.Transaction, error)

AddUser is a paid mutator transaction binding the contract method 0x421b2d8b.

Solidity: function addUser(address user) returns(bool)

func (*AppRegistrySession) AppFactory

func (_AppRegistry *AppRegistrySession) AppFactory() (common.Address, error)

AppFactory is a free data retrieval call binding the contract method 0x09817fa1.

Solidity: function appFactory() view returns(address)

func (*AppRegistrySession) CREATORROLE

func (_AppRegistry *AppRegistrySession) CREATORROLE() ([32]byte, error)

CREATORROLE is a free data retrieval call binding the contract method 0x8aeda25a.

Solidity: function CREATOR_ROLE() view returns(bytes32)

func (*AppRegistrySession) Create

func (_AppRegistry *AppRegistrySession) Create(name string, symbol string, link string, description string, paymentType_ uint8, deferTimeSecs *big.Int, defaultApiWeight *big.Int, owner common.Address) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0x63835563.

Solidity: function create(string name, string symbol, string link, string description, uint8 paymentType_, uint256 deferTimeSecs, uint256 defaultApiWeight, address owner) returns(address)

func (*AppRegistrySession) CreatorRoleDisabled

func (_AppRegistry *AppRegistrySession) CreatorRoleDisabled() (bool, error)

CreatorRoleDisabled is a free data retrieval call binding the contract method 0x32277071.

Solidity: function creatorRoleDisabled() view returns(bool)

func (*AppRegistrySession) DEFAULTADMINROLE

func (_AppRegistry *AppRegistrySession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*AppRegistrySession) Get

func (_AppRegistry *AppRegistrySession) Get(app common.Address) (AppRegistryAppInfo, error)

Get is a free data retrieval call binding the contract method 0xc2bc2efc.

Solidity: function get(address app) view returns((address,uint256))

func (*AppRegistrySession) Get0

func (_AppRegistry *AppRegistrySession) Get0(owner common.Address, app common.Address) (AppRegistryAppInfo, error)

Get0 is a free data retrieval call binding the contract method 0xd81e8423.

Solidity: function get(address owner, address app) view returns((address,uint256))

func (*AppRegistrySession) GetExchanger

func (_AppRegistry *AppRegistrySession) GetExchanger() (common.Address, error)

GetExchanger is a free data retrieval call binding the contract method 0x4b1acf39.

Solidity: function getExchanger() view returns(address)

func (*AppRegistrySession) GetRoleAdmin

func (_AppRegistry *AppRegistrySession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*AppRegistrySession) GetRoleMember

func (_AppRegistry *AppRegistrySession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*AppRegistrySession) GetRoleMemberCount

func (_AppRegistry *AppRegistrySession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*AppRegistrySession) GrantRole

func (_AppRegistry *AppRegistrySession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*AppRegistrySession) HasRole

func (_AppRegistry *AppRegistrySession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*AppRegistrySession) Initialize

func (_AppRegistry *AppRegistrySession) Initialize(appFactory_ common.Address, exchanger_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address appFactory_, address exchanger_) returns()

func (*AppRegistrySession) List

func (_AppRegistry *AppRegistrySession) List(offset *big.Int, limit *big.Int) (*big.Int, []AppRegistryAppInfo, error)

List is a free data retrieval call binding the contract method 0x50fd7367.

Solidity: function list(uint256 offset, uint256 limit) view returns(uint256, (address,uint256)[])

func (*AppRegistrySession) ListByOwner

func (_AppRegistry *AppRegistrySession) ListByOwner(owner common.Address, offset *big.Int, limit *big.Int) (*big.Int, []AppRegistryAppInfo, error)

ListByOwner is a free data retrieval call binding the contract method 0x7ed7943c.

Solidity: function listByOwner(address owner, uint256 offset, uint256 limit) view returns(uint256, (address,uint256)[])

func (*AppRegistrySession) ListByUser

func (_AppRegistry *AppRegistrySession) ListByUser(user common.Address, offset *big.Int, limit *big.Int) (*big.Int, []AppRegistryAppInfo, error)

ListByUser is a free data retrieval call binding the contract method 0x7888ad21.

Solidity: function listByUser(address user, uint256 offset, uint256 limit) view returns(uint256, (address,uint256)[])

func (*AppRegistrySession) Remove

func (_AppRegistry *AppRegistrySession) Remove(app common.Address) (*types.Transaction, error)

Remove is a paid mutator transaction binding the contract method 0x29092d0e.

Solidity: function remove(address app) returns()

func (*AppRegistrySession) RenounceRole

func (_AppRegistry *AppRegistrySession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*AppRegistrySession) RevokeRole

func (_AppRegistry *AppRegistrySession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*AppRegistrySession) SetCreatorRoleDisabled

func (_AppRegistry *AppRegistrySession) SetCreatorRoleDisabled(disabled bool) (*types.Transaction, error)

SetCreatorRoleDisabled is a paid mutator transaction binding the contract method 0xd86193bb.

Solidity: function setCreatorRoleDisabled(bool disabled) returns()

func (*AppRegistrySession) SetExchanger

func (_AppRegistry *AppRegistrySession) SetExchanger(exchanger_ common.Address) (*types.Transaction, error)

SetExchanger is a paid mutator transaction binding the contract method 0xda909b09.

Solidity: function setExchanger(address exchanger_) returns()

func (*AppRegistrySession) SupportsInterface

func (_AppRegistry *AppRegistrySession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type AppRegistryTransactor

type AppRegistryTransactor struct {
	// contains filtered or unexported fields
}

AppRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewAppRegistryTransactor

func NewAppRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*AppRegistryTransactor, error)

NewAppRegistryTransactor creates a new write-only instance of AppRegistry, bound to a specific deployed contract.

func (*AppRegistryTransactor) AddUser

func (_AppRegistry *AppRegistryTransactor) AddUser(opts *bind.TransactOpts, user common.Address) (*types.Transaction, error)

AddUser is a paid mutator transaction binding the contract method 0x421b2d8b.

Solidity: function addUser(address user) returns(bool)

func (*AppRegistryTransactor) Create

func (_AppRegistry *AppRegistryTransactor) Create(opts *bind.TransactOpts, name string, symbol string, link string, description string, paymentType_ uint8, deferTimeSecs *big.Int, defaultApiWeight *big.Int, owner common.Address) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0x63835563.

Solidity: function create(string name, string symbol, string link, string description, uint8 paymentType_, uint256 deferTimeSecs, uint256 defaultApiWeight, address owner) returns(address)

func (*AppRegistryTransactor) GrantRole

func (_AppRegistry *AppRegistryTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*AppRegistryTransactor) Initialize

func (_AppRegistry *AppRegistryTransactor) Initialize(opts *bind.TransactOpts, appFactory_ common.Address, exchanger_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address appFactory_, address exchanger_) returns()

func (*AppRegistryTransactor) Remove

func (_AppRegistry *AppRegistryTransactor) Remove(opts *bind.TransactOpts, app common.Address) (*types.Transaction, error)

Remove is a paid mutator transaction binding the contract method 0x29092d0e.

Solidity: function remove(address app) returns()

func (*AppRegistryTransactor) RenounceRole

func (_AppRegistry *AppRegistryTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*AppRegistryTransactor) RevokeRole

func (_AppRegistry *AppRegistryTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*AppRegistryTransactor) SetCreatorRoleDisabled

func (_AppRegistry *AppRegistryTransactor) SetCreatorRoleDisabled(opts *bind.TransactOpts, disabled bool) (*types.Transaction, error)

SetCreatorRoleDisabled is a paid mutator transaction binding the contract method 0xd86193bb.

Solidity: function setCreatorRoleDisabled(bool disabled) returns()

func (*AppRegistryTransactor) SetExchanger

func (_AppRegistry *AppRegistryTransactor) SetExchanger(opts *bind.TransactOpts, exchanger_ common.Address) (*types.Transaction, error)

SetExchanger is a paid mutator transaction binding the contract method 0xda909b09.

Solidity: function setExchanger(address exchanger_) returns()

type AppRegistryTransactorRaw

type AppRegistryTransactorRaw struct {
	Contract *AppRegistryTransactor // Generic write-only contract binding to access the raw methods on
}

AppRegistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*AppRegistryTransactorRaw) Transact

func (_AppRegistry *AppRegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*AppRegistryTransactorRaw) Transfer

func (_AppRegistry *AppRegistryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type AppRegistryTransactorSession

type AppRegistryTransactorSession struct {
	Contract     *AppRegistryTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts      // Transaction auth options to use throughout this session
}

AppRegistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*AppRegistryTransactorSession) AddUser

func (_AppRegistry *AppRegistryTransactorSession) AddUser(user common.Address) (*types.Transaction, error)

AddUser is a paid mutator transaction binding the contract method 0x421b2d8b.

Solidity: function addUser(address user) returns(bool)

func (*AppRegistryTransactorSession) Create

func (_AppRegistry *AppRegistryTransactorSession) Create(name string, symbol string, link string, description string, paymentType_ uint8, deferTimeSecs *big.Int, defaultApiWeight *big.Int, owner common.Address) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0x63835563.

Solidity: function create(string name, string symbol, string link, string description, uint8 paymentType_, uint256 deferTimeSecs, uint256 defaultApiWeight, address owner) returns(address)

func (*AppRegistryTransactorSession) GrantRole

func (_AppRegistry *AppRegistryTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*AppRegistryTransactorSession) Initialize

func (_AppRegistry *AppRegistryTransactorSession) Initialize(appFactory_ common.Address, exchanger_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address appFactory_, address exchanger_) returns()

func (*AppRegistryTransactorSession) Remove

func (_AppRegistry *AppRegistryTransactorSession) Remove(app common.Address) (*types.Transaction, error)

Remove is a paid mutator transaction binding the contract method 0x29092d0e.

Solidity: function remove(address app) returns()

func (*AppRegistryTransactorSession) RenounceRole

func (_AppRegistry *AppRegistryTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*AppRegistryTransactorSession) RevokeRole

func (_AppRegistry *AppRegistryTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*AppRegistryTransactorSession) SetCreatorRoleDisabled

func (_AppRegistry *AppRegistryTransactorSession) SetCreatorRoleDisabled(disabled bool) (*types.Transaction, error)

SetCreatorRoleDisabled is a paid mutator transaction binding the contract method 0xd86193bb.

Solidity: function setCreatorRoleDisabled(bool disabled) returns()

func (*AppRegistryTransactorSession) SetExchanger

func (_AppRegistry *AppRegistryTransactorSession) SetExchanger(exchanger_ common.Address) (*types.Transaction, error)

SetExchanger is a paid mutator transaction binding the contract method 0xda909b09.

Solidity: function setExchanger(address exchanger_) returns()

type AppRoleAdminChanged

type AppRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

AppRoleAdminChanged represents a RoleAdminChanged event raised by the App contract.

type AppRoleAdminChangedIterator

type AppRoleAdminChangedIterator struct {
	Event *AppRoleAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the App contract.

func (*AppRoleAdminChangedIterator) Close

func (it *AppRoleAdminChangedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppRoleAdminChangedIterator) Error

func (it *AppRoleAdminChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppRoleAdminChangedIterator) Next

func (it *AppRoleAdminChangedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppRoleGranted

type AppRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

AppRoleGranted represents a RoleGranted event raised by the App contract.

type AppRoleGrantedIterator

type AppRoleGrantedIterator struct {
	Event *AppRoleGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the App contract.

func (*AppRoleGrantedIterator) Close

func (it *AppRoleGrantedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppRoleGrantedIterator) Error

func (it *AppRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppRoleGrantedIterator) Next

func (it *AppRoleGrantedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppRoleRevoked

type AppRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

AppRoleRevoked represents a RoleRevoked event raised by the App contract.

type AppRoleRevokedIterator

type AppRoleRevokedIterator struct {
	Event *AppRoleRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the App contract.

func (*AppRoleRevokedIterator) Close

func (it *AppRoleRevokedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppRoleRevokedIterator) Error

func (it *AppRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppRoleRevokedIterator) Next

func (it *AppRoleRevokedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AppSession

type AppSession struct {
	Contract     *App              // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

AppSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*AppSession) Airdrop

func (_App *AppSession) Airdrop(receiver common.Address, amount *big.Int) (*types.Transaction, error)

Airdrop is a paid mutator transaction binding the contract method 0x8ba4cc3c.

Solidity: function airdrop(address receiver, uint256 amount) returns()

func (*AppSession) AirdropBatch

func (_App *AppSession) AirdropBatch(receivers []common.Address, amounts []*big.Int, reasons []string) (*types.Transaction, error)

AirdropBatch is a paid mutator transaction binding the contract method 0x9c5c2c32.

Solidity: function airdropBatch(address[] receivers, uint256[] amounts, string[] reasons) returns()

func (*AppSession) AppRegistry

func (_App *AppSession) AppRegistry() (common.Address, error)

AppRegistry is a free data retrieval call binding the contract method 0xbb4fceb9.

Solidity: function appRegistry() view returns(address)

func (*AppSession) BalanceOf

func (_App *AppSession) BalanceOf(account common.Address) (*big.Int, *big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256, uint256)

func (*AppSession) CHARGEROLE

func (_App *AppSession) CHARGEROLE() ([32]byte, error)

CHARGEROLE is a free data retrieval call binding the contract method 0xa2c74ad9.

Solidity: function CHARGE_ROLE() view returns(bytes32)

func (*AppSession) CardShop

func (_App *AppSession) CardShop() (common.Address, error)

CardShop is a free data retrieval call binding the contract method 0xd6773e6b.

Solidity: function cardShop() view returns(address)

func (*AppSession) ChargeBatch

func (_App *AppSession) ChargeBatch(requestArray []IAppConfigChargeRequest) (*types.Transaction, error)

ChargeBatch is a paid mutator transaction binding the contract method 0x0664ec3b.

Solidity: function chargeBatch((address,uint256,bytes,(uint32,uint256)[])[] requestArray) returns()

func (*AppSession) DEFAULTADMINROLE

func (_App *AppSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*AppSession) DeferTimeSecs

func (_App *AppSession) DeferTimeSecs() (*big.Int, error)

DeferTimeSecs is a free data retrieval call binding the contract method 0x3e0510f8.

Solidity: function deferTimeSecs() view returns(uint256)

func (*AppSession) Deposit

func (_App *AppSession) Deposit(amount *big.Int, receiver common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x6e553f65.

Solidity: function deposit(uint256 amount, address receiver) returns()

func (*AppSession) DepositAsset

func (_App *AppSession) DepositAsset(amount *big.Int, receiver common.Address) (*types.Transaction, error)

DepositAsset is a paid mutator transaction binding the contract method 0x95e213d2.

Solidity: function depositAsset(uint256 amount, address receiver) returns()

func (*AppSession) Description

func (_App *AppSession) Description() (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*AppSession) ForceWithdraw

func (_App *AppSession) ForceWithdraw(receiver common.Address, toAssets bool) (*types.Transaction, error)

ForceWithdraw is a paid mutator transaction binding the contract method 0xc8896bf6.

Solidity: function forceWithdraw(address receiver, bool toAssets) returns()

func (*AppSession) ForceWithdrawEth

func (_App *AppSession) ForceWithdrawEth(receiver common.Address, hook common.Address, ethMin *big.Int) (*types.Transaction, error)

ForceWithdrawEth is a paid mutator transaction binding the contract method 0x24516d37.

Solidity: function forceWithdrawEth(address receiver, address hook, uint256 ethMin) returns()

func (*AppSession) GetApiWeightToken

func (_App *AppSession) GetApiWeightToken() (common.Address, error)

GetApiWeightToken is a free data retrieval call binding the contract method 0xcf46544e.

Solidity: function getApiWeightToken() view returns(address)

func (*AppSession) GetAppCoin

func (_App *AppSession) GetAppCoin() (common.Address, error)

GetAppCoin is a free data retrieval call binding the contract method 0xe7337217.

Solidity: function getAppCoin() view returns(address)

func (*AppSession) GetRoleAdmin

func (_App *AppSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*AppSession) GetRoleMember

func (_App *AppSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*AppSession) GetRoleMemberCount

func (_App *AppSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*AppSession) GetVipCoin

func (_App *AppSession) GetVipCoin() (common.Address, error)

GetVipCoin is a free data retrieval call binding the contract method 0x07a75b24.

Solidity: function getVipCoin() view returns(address)

func (*AppSession) GrantRole

func (_App *AppSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*AppSession) HasRole

func (_App *AppSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*AppSession) Initialize

func (_App *AppSession) Initialize(appCoin_ common.Address, vipCoin_ common.Address, apiWeightToken_ common.Address, deferTimeSecs_ *big.Int, owner common.Address, appRegistry_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x32b5a1b3.

Solidity: function initialize(address appCoin_, address vipCoin_, address apiWeightToken_, uint256 deferTimeSecs_, address owner, address appRegistry_) returns()

func (_App *AppSession) Link() (string, error)

Link is a free data retrieval call binding the contract method 0x1c4695f4.

Solidity: function link() view returns(string)

func (*AppSession) MakeCard

func (_App *AppSession) MakeCard(to common.Address, tokenId *big.Int, amount *big.Int) (*types.Transaction, error)

MakeCard is a paid mutator transaction binding the contract method 0xb33bbe6d.

Solidity: function makeCard(address to, uint256 tokenId, uint256 amount) returns()

func (*AppSession) PaymentType

func (_App *AppSession) PaymentType() (uint8, error)

PaymentType is a free data retrieval call binding the contract method 0x2763b8da.

Solidity: function paymentType() view returns(uint8)

func (*AppSession) RenounceRole

func (_App *AppSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*AppSession) RequestForceWithdraw

func (_App *AppSession) RequestForceWithdraw() (*types.Transaction, error)

RequestForceWithdraw is a paid mutator transaction binding the contract method 0xda60d27e.

Solidity: function requestForceWithdraw() returns()

func (*AppSession) RevokeRole

func (_App *AppSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*AppSession) SetProps

func (_App *AppSession) SetProps(cardShop_ common.Address, link_ string, description_ string, paymentType_ uint8) (*types.Transaction, error)

SetProps is a paid mutator transaction binding the contract method 0xeec44255.

Solidity: function setProps(address cardShop_, string link_, string description_, uint8 paymentType_) returns()

func (*AppSession) SupportsInterface

func (_App *AppSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*AppSession) TAKEPROFITROLE

func (_App *AppSession) TAKEPROFITROLE() ([32]byte, error)

TAKEPROFITROLE is a free data retrieval call binding the contract method 0x0da699d6.

Solidity: function TAKE_PROFIT_ROLE() view returns(bytes32)

func (*AppSession) TOKENIDAIRDROP

func (_App *AppSession) TOKENIDAIRDROP() (*big.Int, error)

TOKENIDAIRDROP is a free data retrieval call binding the contract method 0xc9e3b913.

Solidity: function TOKEN_ID_AIRDROP() view returns(uint256)

func (*AppSession) TOKENIDCOIN

func (_App *AppSession) TOKENIDCOIN() (*big.Int, error)

TOKENIDCOIN is a free data retrieval call binding the contract method 0x45e2efd2.

Solidity: function TOKEN_ID_COIN() view returns(uint256)

func (*AppSession) TOKENIDVIP

func (_App *AppSession) TOKENIDVIP() (*big.Int, error)

TOKENIDVIP is a free data retrieval call binding the contract method 0xdbd53229.

Solidity: function TOKEN_ID_VIP() view returns(uint256)

func (*AppSession) TakeProfit

func (_App *AppSession) TakeProfit(to common.Address, amount *big.Int) (*types.Transaction, error)

TakeProfit is a paid mutator transaction binding the contract method 0x0cec2f17.

Solidity: function takeProfit(address to, uint256 amount) returns()

func (*AppSession) TotalCharged

func (_App *AppSession) TotalCharged() (*big.Int, error)

TotalCharged is a free data retrieval call binding the contract method 0xa6f55d77.

Solidity: function totalCharged() view returns(uint256)

func (*AppSession) TotalTakenProfit

func (_App *AppSession) TotalTakenProfit() (*big.Int, error)

TotalTakenProfit is a free data retrieval call binding the contract method 0x55297bcf.

Solidity: function totalTakenProfit() view returns(uint256)

func (*AppSession) WITHDRAWROLE

func (_App *AppSession) WITHDRAWROLE() ([32]byte, error)

WITHDRAWROLE is a free data retrieval call binding the contract method 0xe02023a1.

Solidity: function WITHDRAW_ROLE() view returns(bytes32)

func (*AppSession) Withdraw

func (_App *AppSession) Withdraw(account common.Address, toAssets bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x5437e401.

Solidity: function withdraw(address account, bool toAssets) returns()

func (*AppSession) WithdrawSchedules

func (_App *AppSession) WithdrawSchedules(arg0 common.Address) (*big.Int, error)

WithdrawSchedules is a free data retrieval call binding the contract method 0x0a9aa21c.

Solidity: function withdrawSchedules(address ) view returns(uint256)

type AppTransactor

type AppTransactor struct {
	// contains filtered or unexported fields
}

AppTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewAppTransactor

func NewAppTransactor(address common.Address, transactor bind.ContractTransactor) (*AppTransactor, error)

NewAppTransactor creates a new write-only instance of App, bound to a specific deployed contract.

func (*AppTransactor) Airdrop

func (_App *AppTransactor) Airdrop(opts *bind.TransactOpts, receiver common.Address, amount *big.Int) (*types.Transaction, error)

Airdrop is a paid mutator transaction binding the contract method 0x8ba4cc3c.

Solidity: function airdrop(address receiver, uint256 amount) returns()

func (*AppTransactor) AirdropBatch

func (_App *AppTransactor) AirdropBatch(opts *bind.TransactOpts, receivers []common.Address, amounts []*big.Int, reasons []string) (*types.Transaction, error)

AirdropBatch is a paid mutator transaction binding the contract method 0x9c5c2c32.

Solidity: function airdropBatch(address[] receivers, uint256[] amounts, string[] reasons) returns()

func (*AppTransactor) ChargeBatch

func (_App *AppTransactor) ChargeBatch(opts *bind.TransactOpts, requestArray []IAppConfigChargeRequest) (*types.Transaction, error)

ChargeBatch is a paid mutator transaction binding the contract method 0x0664ec3b.

Solidity: function chargeBatch((address,uint256,bytes,(uint32,uint256)[])[] requestArray) returns()

func (*AppTransactor) Deposit

func (_App *AppTransactor) Deposit(opts *bind.TransactOpts, amount *big.Int, receiver common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x6e553f65.

Solidity: function deposit(uint256 amount, address receiver) returns()

func (*AppTransactor) DepositAsset

func (_App *AppTransactor) DepositAsset(opts *bind.TransactOpts, amount *big.Int, receiver common.Address) (*types.Transaction, error)

DepositAsset is a paid mutator transaction binding the contract method 0x95e213d2.

Solidity: function depositAsset(uint256 amount, address receiver) returns()

func (*AppTransactor) ForceWithdraw

func (_App *AppTransactor) ForceWithdraw(opts *bind.TransactOpts, receiver common.Address, toAssets bool) (*types.Transaction, error)

ForceWithdraw is a paid mutator transaction binding the contract method 0xc8896bf6.

Solidity: function forceWithdraw(address receiver, bool toAssets) returns()

func (*AppTransactor) ForceWithdrawEth

func (_App *AppTransactor) ForceWithdrawEth(opts *bind.TransactOpts, receiver common.Address, hook common.Address, ethMin *big.Int) (*types.Transaction, error)

ForceWithdrawEth is a paid mutator transaction binding the contract method 0x24516d37.

Solidity: function forceWithdrawEth(address receiver, address hook, uint256 ethMin) returns()

func (*AppTransactor) GrantRole

func (_App *AppTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*AppTransactor) Initialize

func (_App *AppTransactor) Initialize(opts *bind.TransactOpts, appCoin_ common.Address, vipCoin_ common.Address, apiWeightToken_ common.Address, deferTimeSecs_ *big.Int, owner common.Address, appRegistry_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x32b5a1b3.

Solidity: function initialize(address appCoin_, address vipCoin_, address apiWeightToken_, uint256 deferTimeSecs_, address owner, address appRegistry_) returns()

func (*AppTransactor) MakeCard

func (_App *AppTransactor) MakeCard(opts *bind.TransactOpts, to common.Address, tokenId *big.Int, amount *big.Int) (*types.Transaction, error)

MakeCard is a paid mutator transaction binding the contract method 0xb33bbe6d.

Solidity: function makeCard(address to, uint256 tokenId, uint256 amount) returns()

func (*AppTransactor) RenounceRole

func (_App *AppTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*AppTransactor) RequestForceWithdraw

func (_App *AppTransactor) RequestForceWithdraw(opts *bind.TransactOpts) (*types.Transaction, error)

RequestForceWithdraw is a paid mutator transaction binding the contract method 0xda60d27e.

Solidity: function requestForceWithdraw() returns()

func (*AppTransactor) RevokeRole

func (_App *AppTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*AppTransactor) SetProps

func (_App *AppTransactor) SetProps(opts *bind.TransactOpts, cardShop_ common.Address, link_ string, description_ string, paymentType_ uint8) (*types.Transaction, error)

SetProps is a paid mutator transaction binding the contract method 0xeec44255.

Solidity: function setProps(address cardShop_, string link_, string description_, uint8 paymentType_) returns()

func (*AppTransactor) TakeProfit

func (_App *AppTransactor) TakeProfit(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

TakeProfit is a paid mutator transaction binding the contract method 0x0cec2f17.

Solidity: function takeProfit(address to, uint256 amount) returns()

func (*AppTransactor) Withdraw

func (_App *AppTransactor) Withdraw(opts *bind.TransactOpts, account common.Address, toAssets bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x5437e401.

Solidity: function withdraw(address account, bool toAssets) returns()

type AppTransactorRaw

type AppTransactorRaw struct {
	Contract *AppTransactor // Generic write-only contract binding to access the raw methods on
}

AppTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*AppTransactorRaw) Transact

func (_App *AppTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*AppTransactorRaw) Transfer

func (_App *AppTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type AppTransactorSession

type AppTransactorSession struct {
	Contract     *AppTransactor    // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

AppTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*AppTransactorSession) Airdrop

func (_App *AppTransactorSession) Airdrop(receiver common.Address, amount *big.Int) (*types.Transaction, error)

Airdrop is a paid mutator transaction binding the contract method 0x8ba4cc3c.

Solidity: function airdrop(address receiver, uint256 amount) returns()

func (*AppTransactorSession) AirdropBatch

func (_App *AppTransactorSession) AirdropBatch(receivers []common.Address, amounts []*big.Int, reasons []string) (*types.Transaction, error)

AirdropBatch is a paid mutator transaction binding the contract method 0x9c5c2c32.

Solidity: function airdropBatch(address[] receivers, uint256[] amounts, string[] reasons) returns()

func (*AppTransactorSession) ChargeBatch

func (_App *AppTransactorSession) ChargeBatch(requestArray []IAppConfigChargeRequest) (*types.Transaction, error)

ChargeBatch is a paid mutator transaction binding the contract method 0x0664ec3b.

Solidity: function chargeBatch((address,uint256,bytes,(uint32,uint256)[])[] requestArray) returns()

func (*AppTransactorSession) Deposit

func (_App *AppTransactorSession) Deposit(amount *big.Int, receiver common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x6e553f65.

Solidity: function deposit(uint256 amount, address receiver) returns()

func (*AppTransactorSession) DepositAsset

func (_App *AppTransactorSession) DepositAsset(amount *big.Int, receiver common.Address) (*types.Transaction, error)

DepositAsset is a paid mutator transaction binding the contract method 0x95e213d2.

Solidity: function depositAsset(uint256 amount, address receiver) returns()

func (*AppTransactorSession) ForceWithdraw

func (_App *AppTransactorSession) ForceWithdraw(receiver common.Address, toAssets bool) (*types.Transaction, error)

ForceWithdraw is a paid mutator transaction binding the contract method 0xc8896bf6.

Solidity: function forceWithdraw(address receiver, bool toAssets) returns()

func (*AppTransactorSession) ForceWithdrawEth

func (_App *AppTransactorSession) ForceWithdrawEth(receiver common.Address, hook common.Address, ethMin *big.Int) (*types.Transaction, error)

ForceWithdrawEth is a paid mutator transaction binding the contract method 0x24516d37.

Solidity: function forceWithdrawEth(address receiver, address hook, uint256 ethMin) returns()

func (*AppTransactorSession) GrantRole

func (_App *AppTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*AppTransactorSession) Initialize

func (_App *AppTransactorSession) Initialize(appCoin_ common.Address, vipCoin_ common.Address, apiWeightToken_ common.Address, deferTimeSecs_ *big.Int, owner common.Address, appRegistry_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x32b5a1b3.

Solidity: function initialize(address appCoin_, address vipCoin_, address apiWeightToken_, uint256 deferTimeSecs_, address owner, address appRegistry_) returns()

func (*AppTransactorSession) MakeCard

func (_App *AppTransactorSession) MakeCard(to common.Address, tokenId *big.Int, amount *big.Int) (*types.Transaction, error)

MakeCard is a paid mutator transaction binding the contract method 0xb33bbe6d.

Solidity: function makeCard(address to, uint256 tokenId, uint256 amount) returns()

func (*AppTransactorSession) RenounceRole

func (_App *AppTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*AppTransactorSession) RequestForceWithdraw

func (_App *AppTransactorSession) RequestForceWithdraw() (*types.Transaction, error)

RequestForceWithdraw is a paid mutator transaction binding the contract method 0xda60d27e.

Solidity: function requestForceWithdraw() returns()

func (*AppTransactorSession) RevokeRole

func (_App *AppTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*AppTransactorSession) SetProps

func (_App *AppTransactorSession) SetProps(cardShop_ common.Address, link_ string, description_ string, paymentType_ uint8) (*types.Transaction, error)

SetProps is a paid mutator transaction binding the contract method 0xeec44255.

Solidity: function setProps(address cardShop_, string link_, string description_, uint8 paymentType_) returns()

func (*AppTransactorSession) TakeProfit

func (_App *AppTransactorSession) TakeProfit(to common.Address, amount *big.Int) (*types.Transaction, error)

TakeProfit is a paid mutator transaction binding the contract method 0x0cec2f17.

Solidity: function takeProfit(address to, uint256 amount) returns()

func (*AppTransactorSession) Withdraw

func (_App *AppTransactorSession) Withdraw(account common.Address, toAssets bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x5437e401.

Solidity: function withdraw(address account, bool toAssets) returns()

type AppWithdraw

type AppWithdraw struct {
	Operator common.Address
	Account  common.Address
	Receiver common.Address
	Amount   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

AppWithdraw represents a Withdraw event raised by the App contract.

func UnpackAppWithdraw

func UnpackAppWithdraw(appAbi *abi.ABI, log *types.Log) (*AppWithdraw, error)

type AppWithdrawIterator

type AppWithdrawIterator struct {
	Event *AppWithdraw // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AppWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the App contract.

func (*AppWithdrawIterator) Close

func (it *AppWithdrawIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*AppWithdrawIterator) Error

func (it *AppWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppWithdrawIterator) Next

func (it *AppWithdrawIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CardShop

type CardShop struct {
	CardShopCaller     // Read-only binding to the contract
	CardShopTransactor // Write-only binding to the contract
	CardShopFilterer   // Log filterer for contract events
}

CardShop is an auto generated Go binding around an Ethereum contract.

func NewCardShop

func NewCardShop(address common.Address, backend bind.ContractBackend) (*CardShop, error)

NewCardShop creates a new instance of CardShop, bound to a specific deployed contract.

type CardShopCaller

type CardShopCaller struct {
	// contains filtered or unexported fields
}

CardShopCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewCardShopCaller

func NewCardShopCaller(address common.Address, caller bind.ContractCaller) (*CardShopCaller, error)

NewCardShopCaller creates a new read-only instance of CardShop, bound to a specific deployed contract.

func (*CardShopCaller) BelongsToApp

func (_CardShop *CardShopCaller) BelongsToApp(opts *bind.CallOpts) (common.Address, error)

BelongsToApp is a free data retrieval call binding the contract method 0x53f63ca6.

Solidity: function belongsToApp() view returns(address)

func (*CardShopCaller) GetCard

func (_CardShop *CardShopCaller) GetCard(opts *bind.CallOpts, id *big.Int) (ICardsCard, error)

GetCard is a free data retrieval call binding the contract method 0x9188d312.

Solidity: function getCard(uint256 id) view returns((uint256,uint256,address,uint256,(uint256,string,string,uint256,uint256,uint256,(string[],string[]))))

func (*CardShopCaller) Instance

func (_CardShop *CardShopCaller) Instance(opts *bind.CallOpts) (common.Address, error)

Instance is a free data retrieval call binding the contract method 0x022ec095.

Solidity: function instance() view returns(address)

func (*CardShopCaller) NextCardId

func (_CardShop *CardShopCaller) NextCardId(opts *bind.CallOpts) (*big.Int, error)

NextCardId is a free data retrieval call binding the contract method 0xc5263e8c.

Solidity: function nextCardId() view returns(uint256)

func (*CardShopCaller) Template

func (_CardShop *CardShopCaller) Template(opts *bind.CallOpts) (common.Address, error)

Template is a free data retrieval call binding the contract method 0x6f2ddd93.

Solidity: function template() view returns(address)

func (*CardShopCaller) Tracker

func (_CardShop *CardShopCaller) Tracker(opts *bind.CallOpts) (common.Address, error)

Tracker is a free data retrieval call binding the contract method 0xf52bccad.

Solidity: function tracker() view returns(address)

type CardShopCallerRaw

type CardShopCallerRaw struct {
	Contract *CardShopCaller // Generic read-only contract binding to access the raw methods on
}

CardShopCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*CardShopCallerRaw) Call

func (_CardShop *CardShopCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type CardShopCallerSession

type CardShopCallerSession struct {
	Contract *CardShopCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts   // Call options to use throughout this session
}

CardShopCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*CardShopCallerSession) BelongsToApp

func (_CardShop *CardShopCallerSession) BelongsToApp() (common.Address, error)

BelongsToApp is a free data retrieval call binding the contract method 0x53f63ca6.

Solidity: function belongsToApp() view returns(address)

func (*CardShopCallerSession) GetCard

func (_CardShop *CardShopCallerSession) GetCard(id *big.Int) (ICardsCard, error)

GetCard is a free data retrieval call binding the contract method 0x9188d312.

Solidity: function getCard(uint256 id) view returns((uint256,uint256,address,uint256,(uint256,string,string,uint256,uint256,uint256,(string[],string[]))))

func (*CardShopCallerSession) Instance

func (_CardShop *CardShopCallerSession) Instance() (common.Address, error)

Instance is a free data retrieval call binding the contract method 0x022ec095.

Solidity: function instance() view returns(address)

func (*CardShopCallerSession) NextCardId

func (_CardShop *CardShopCallerSession) NextCardId() (*big.Int, error)

NextCardId is a free data retrieval call binding the contract method 0xc5263e8c.

Solidity: function nextCardId() view returns(uint256)

func (*CardShopCallerSession) Template

func (_CardShop *CardShopCallerSession) Template() (common.Address, error)

Template is a free data retrieval call binding the contract method 0x6f2ddd93.

Solidity: function template() view returns(address)

func (*CardShopCallerSession) Tracker

func (_CardShop *CardShopCallerSession) Tracker() (common.Address, error)

Tracker is a free data retrieval call binding the contract method 0xf52bccad.

Solidity: function tracker() view returns(address)

type CardShopFilterer

type CardShopFilterer struct {
	// contains filtered or unexported fields
}

CardShopFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewCardShopFilterer

func NewCardShopFilterer(address common.Address, filterer bind.ContractFilterer) (*CardShopFilterer, error)

NewCardShopFilterer creates a new log filterer instance of CardShop, bound to a specific deployed contract.

func (*CardShopFilterer) FilterGAVENCARD

func (_CardShop *CardShopFilterer) FilterGAVENCARD(opts *bind.FilterOpts, operator []common.Address, to []common.Address) (*CardShopGAVENCARDIterator, error)

FilterGAVENCARD is a free log retrieval operation binding the contract event 0x5e8eec90a2cf75235f88a955dbe5c00291cd2837e4a1dc81624872515a02bdd0.

Solidity: event GAVEN_CARD(address indexed operator, address indexed to, uint256 cardId)

func (*CardShopFilterer) ParseGAVENCARD

func (_CardShop *CardShopFilterer) ParseGAVENCARD(log types.Log) (*CardShopGAVENCARD, error)

ParseGAVENCARD is a log parse operation binding the contract event 0x5e8eec90a2cf75235f88a955dbe5c00291cd2837e4a1dc81624872515a02bdd0.

Solidity: event GAVEN_CARD(address indexed operator, address indexed to, uint256 cardId)

func (*CardShopFilterer) WatchGAVENCARD

func (_CardShop *CardShopFilterer) WatchGAVENCARD(opts *bind.WatchOpts, sink chan<- *CardShopGAVENCARD, operator []common.Address, to []common.Address) (event.Subscription, error)

WatchGAVENCARD is a free log subscription operation binding the contract event 0x5e8eec90a2cf75235f88a955dbe5c00291cd2837e4a1dc81624872515a02bdd0.

Solidity: event GAVEN_CARD(address indexed operator, address indexed to, uint256 cardId)

type CardShopGAVENCARD

type CardShopGAVENCARD struct {
	Operator common.Address
	To       common.Address
	CardId   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

CardShopGAVENCARD represents a GAVENCARD event raised by the CardShop contract.

type CardShopGAVENCARDIterator

type CardShopGAVENCARDIterator struct {
	Event *CardShopGAVENCARD // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CardShopGAVENCARDIterator is returned from FilterGAVENCARD and is used to iterate over the raw logs and unpacked data for GAVENCARD events raised by the CardShop contract.

func (*CardShopGAVENCARDIterator) Close

func (it *CardShopGAVENCARDIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*CardShopGAVENCARDIterator) Error

func (it *CardShopGAVENCARDIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CardShopGAVENCARDIterator) Next

func (it *CardShopGAVENCARDIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CardShopRaw

type CardShopRaw struct {
	Contract *CardShop // Generic contract binding to access the raw methods on
}

CardShopRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*CardShopRaw) Call

func (_CardShop *CardShopRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*CardShopRaw) Transact

func (_CardShop *CardShopRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*CardShopRaw) Transfer

func (_CardShop *CardShopRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CardShopSession

type CardShopSession struct {
	Contract     *CardShop         // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

CardShopSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*CardShopSession) BelongsToApp

func (_CardShop *CardShopSession) BelongsToApp() (common.Address, error)

BelongsToApp is a free data retrieval call binding the contract method 0x53f63ca6.

Solidity: function belongsToApp() view returns(address)

func (*CardShopSession) BuyWithAsset

func (_CardShop *CardShopSession) BuyWithAsset(receiver common.Address, templateId *big.Int, count *big.Int) (*types.Transaction, error)

BuyWithAsset is a paid mutator transaction binding the contract method 0x9ffd313b.

Solidity: function buyWithAsset(address receiver, uint256 templateId, uint256 count) returns()

func (*CardShopSession) BuyWithEth

func (_CardShop *CardShopSession) BuyWithEth(receiver common.Address, templateId *big.Int, count *big.Int) (*types.Transaction, error)

BuyWithEth is a paid mutator transaction binding the contract method 0x8085d06d.

Solidity: function buyWithEth(address receiver, uint256 templateId, uint256 count) payable returns()

func (*CardShopSession) GetCard

func (_CardShop *CardShopSession) GetCard(id *big.Int) (ICardsCard, error)

GetCard is a free data retrieval call binding the contract method 0x9188d312.

Solidity: function getCard(uint256 id) view returns((uint256,uint256,address,uint256,(uint256,string,string,uint256,uint256,uint256,(string[],string[]))))

func (*CardShopSession) GiveCardBatch

func (_CardShop *CardShopSession) GiveCardBatch(receiverArr []common.Address, countArr []*big.Int, templateId *big.Int) (*types.Transaction, error)

GiveCardBatch is a paid mutator transaction binding the contract method 0x66f85a09.

Solidity: function giveCardBatch(address[] receiverArr, uint256[] countArr, uint256 templateId) returns()

func (*CardShopSession) Initialize

func (_CardShop *CardShopSession) Initialize(belongsTo_ common.Address, template_ common.Address, instance_ common.Address, tracker_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address belongsTo_, address template_, address instance_, address tracker_) returns()

func (*CardShopSession) Instance

func (_CardShop *CardShopSession) Instance() (common.Address, error)

Instance is a free data retrieval call binding the contract method 0x022ec095.

Solidity: function instance() view returns(address)

func (*CardShopSession) NextCardId

func (_CardShop *CardShopSession) NextCardId() (*big.Int, error)

NextCardId is a free data retrieval call binding the contract method 0xc5263e8c.

Solidity: function nextCardId() view returns(uint256)

func (*CardShopSession) Template

func (_CardShop *CardShopSession) Template() (common.Address, error)

Template is a free data retrieval call binding the contract method 0x6f2ddd93.

Solidity: function template() view returns(address)

func (*CardShopSession) Tracker

func (_CardShop *CardShopSession) Tracker() (common.Address, error)

Tracker is a free data retrieval call binding the contract method 0xf52bccad.

Solidity: function tracker() view returns(address)

type CardShopTransactor

type CardShopTransactor struct {
	// contains filtered or unexported fields
}

CardShopTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewCardShopTransactor

func NewCardShopTransactor(address common.Address, transactor bind.ContractTransactor) (*CardShopTransactor, error)

NewCardShopTransactor creates a new write-only instance of CardShop, bound to a specific deployed contract.

func (*CardShopTransactor) BuyWithAsset

func (_CardShop *CardShopTransactor) BuyWithAsset(opts *bind.TransactOpts, receiver common.Address, templateId *big.Int, count *big.Int) (*types.Transaction, error)

BuyWithAsset is a paid mutator transaction binding the contract method 0x9ffd313b.

Solidity: function buyWithAsset(address receiver, uint256 templateId, uint256 count) returns()

func (*CardShopTransactor) BuyWithEth

func (_CardShop *CardShopTransactor) BuyWithEth(opts *bind.TransactOpts, receiver common.Address, templateId *big.Int, count *big.Int) (*types.Transaction, error)

BuyWithEth is a paid mutator transaction binding the contract method 0x8085d06d.

Solidity: function buyWithEth(address receiver, uint256 templateId, uint256 count) payable returns()

func (*CardShopTransactor) GiveCardBatch

func (_CardShop *CardShopTransactor) GiveCardBatch(opts *bind.TransactOpts, receiverArr []common.Address, countArr []*big.Int, templateId *big.Int) (*types.Transaction, error)

GiveCardBatch is a paid mutator transaction binding the contract method 0x66f85a09.

Solidity: function giveCardBatch(address[] receiverArr, uint256[] countArr, uint256 templateId) returns()

func (*CardShopTransactor) Initialize

func (_CardShop *CardShopTransactor) Initialize(opts *bind.TransactOpts, belongsTo_ common.Address, template_ common.Address, instance_ common.Address, tracker_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address belongsTo_, address template_, address instance_, address tracker_) returns()

type CardShopTransactorRaw

type CardShopTransactorRaw struct {
	Contract *CardShopTransactor // Generic write-only contract binding to access the raw methods on
}

CardShopTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*CardShopTransactorRaw) Transact

func (_CardShop *CardShopTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*CardShopTransactorRaw) Transfer

func (_CardShop *CardShopTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CardShopTransactorSession

type CardShopTransactorSession struct {
	Contract     *CardShopTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

CardShopTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*CardShopTransactorSession) BuyWithAsset

func (_CardShop *CardShopTransactorSession) BuyWithAsset(receiver common.Address, templateId *big.Int, count *big.Int) (*types.Transaction, error)

BuyWithAsset is a paid mutator transaction binding the contract method 0x9ffd313b.

Solidity: function buyWithAsset(address receiver, uint256 templateId, uint256 count) returns()

func (*CardShopTransactorSession) BuyWithEth

func (_CardShop *CardShopTransactorSession) BuyWithEth(receiver common.Address, templateId *big.Int, count *big.Int) (*types.Transaction, error)

BuyWithEth is a paid mutator transaction binding the contract method 0x8085d06d.

Solidity: function buyWithEth(address receiver, uint256 templateId, uint256 count) payable returns()

func (*CardShopTransactorSession) GiveCardBatch

func (_CardShop *CardShopTransactorSession) GiveCardBatch(receiverArr []common.Address, countArr []*big.Int, templateId *big.Int) (*types.Transaction, error)

GiveCardBatch is a paid mutator transaction binding the contract method 0x66f85a09.

Solidity: function giveCardBatch(address[] receiverArr, uint256[] countArr, uint256 templateId) returns()

func (*CardShopTransactorSession) Initialize

func (_CardShop *CardShopTransactorSession) Initialize(belongsTo_ common.Address, template_ common.Address, instance_ common.Address, tracker_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address belongsTo_, address template_, address instance_, address tracker_) returns()

type CardTracker

type CardTracker struct {
	CardTrackerCaller     // Read-only binding to the contract
	CardTrackerTransactor // Write-only binding to the contract
	CardTrackerFilterer   // Log filterer for contract events
}

CardTracker is an auto generated Go binding around an Ethereum contract.

func NewCardTracker

func NewCardTracker(address common.Address, backend bind.ContractBackend) (*CardTracker, error)

NewCardTracker creates a new instance of CardTracker, bound to a specific deployed contract.

type CardTrackerCaller

type CardTrackerCaller struct {
	// contains filtered or unexported fields
}

CardTrackerCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewCardTrackerCaller

func NewCardTrackerCaller(address common.Address, caller bind.ContractCaller) (*CardTrackerCaller, error)

NewCardTrackerCaller creates a new read-only instance of CardTracker, bound to a specific deployed contract.

func (*CardTrackerCaller) GetVipInfo

func (_CardTracker *CardTrackerCaller) GetVipInfo(opts *bind.CallOpts, account common.Address) (ICardTrackerVipInfo, error)

GetVipInfo is a free data retrieval call binding the contract method 0x05e1aaa1.

Solidity: function getVipInfo(address account) view returns((uint256,(string[],string[])))

type CardTrackerCallerRaw

type CardTrackerCallerRaw struct {
	Contract *CardTrackerCaller // Generic read-only contract binding to access the raw methods on
}

CardTrackerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*CardTrackerCallerRaw) Call

func (_CardTracker *CardTrackerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type CardTrackerCallerSession

type CardTrackerCallerSession struct {
	Contract *CardTrackerCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts      // Call options to use throughout this session
}

CardTrackerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*CardTrackerCallerSession) GetVipInfo

func (_CardTracker *CardTrackerCallerSession) GetVipInfo(account common.Address) (ICardTrackerVipInfo, error)

GetVipInfo is a free data retrieval call binding the contract method 0x05e1aaa1.

Solidity: function getVipInfo(address account) view returns((uint256,(string[],string[])))

type CardTrackerFilterer

type CardTrackerFilterer struct {
	// contains filtered or unexported fields
}

CardTrackerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewCardTrackerFilterer

func NewCardTrackerFilterer(address common.Address, filterer bind.ContractFilterer) (*CardTrackerFilterer, error)

NewCardTrackerFilterer creates a new log filterer instance of CardTracker, bound to a specific deployed contract.

func (*CardTrackerFilterer) FilterVipChanged

func (_CardTracker *CardTrackerFilterer) FilterVipChanged(opts *bind.FilterOpts, account []common.Address) (*CardTrackerVipChangedIterator, error)

FilterVipChanged is a free log retrieval operation binding the contract event 0x20f6d1c339decb8b3e4b6e6e792d7d35f3ed985b25407cd7246d3e2784c6cefb.

Solidity: event VipChanged(address indexed account, uint256 expireAt)

func (*CardTrackerFilterer) ParseVipChanged

func (_CardTracker *CardTrackerFilterer) ParseVipChanged(log types.Log) (*CardTrackerVipChanged, error)

ParseVipChanged is a log parse operation binding the contract event 0x20f6d1c339decb8b3e4b6e6e792d7d35f3ed985b25407cd7246d3e2784c6cefb.

Solidity: event VipChanged(address indexed account, uint256 expireAt)

func (*CardTrackerFilterer) WatchVipChanged

func (_CardTracker *CardTrackerFilterer) WatchVipChanged(opts *bind.WatchOpts, sink chan<- *CardTrackerVipChanged, account []common.Address) (event.Subscription, error)

WatchVipChanged is a free log subscription operation binding the contract event 0x20f6d1c339decb8b3e4b6e6e792d7d35f3ed985b25407cd7246d3e2784c6cefb.

Solidity: event VipChanged(address indexed account, uint256 expireAt)

type CardTrackerRaw

type CardTrackerRaw struct {
	Contract *CardTracker // Generic contract binding to access the raw methods on
}

CardTrackerRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*CardTrackerRaw) Call

func (_CardTracker *CardTrackerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*CardTrackerRaw) Transact

func (_CardTracker *CardTrackerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*CardTrackerRaw) Transfer

func (_CardTracker *CardTrackerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CardTrackerSession

type CardTrackerSession struct {
	Contract     *CardTracker      // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

CardTrackerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*CardTrackerSession) ApplyCard

func (_CardTracker *CardTrackerSession) ApplyCard(from common.Address, to common.Address, card ICardsCard) (*types.Transaction, error)

ApplyCard is a paid mutator transaction binding the contract method 0x7ed41358.

Solidity: function applyCard(address from, address to, (uint256,uint256,address,uint256,(uint256,string,string,uint256,uint256,uint256,(string[],string[]))) card) returns()

func (*CardTrackerSession) GetVipInfo

func (_CardTracker *CardTrackerSession) GetVipInfo(account common.Address) (ICardTrackerVipInfo, error)

GetVipInfo is a free data retrieval call binding the contract method 0x05e1aaa1.

Solidity: function getVipInfo(address account) view returns((uint256,(string[],string[])))

func (*CardTrackerSession) Initialize

func (_CardTracker *CardTrackerSession) Initialize(eventSource common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address eventSource) returns()

type CardTrackerTransactor

type CardTrackerTransactor struct {
	// contains filtered or unexported fields
}

CardTrackerTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewCardTrackerTransactor

func NewCardTrackerTransactor(address common.Address, transactor bind.ContractTransactor) (*CardTrackerTransactor, error)

NewCardTrackerTransactor creates a new write-only instance of CardTracker, bound to a specific deployed contract.

func (*CardTrackerTransactor) ApplyCard

func (_CardTracker *CardTrackerTransactor) ApplyCard(opts *bind.TransactOpts, from common.Address, to common.Address, card ICardsCard) (*types.Transaction, error)

ApplyCard is a paid mutator transaction binding the contract method 0x7ed41358.

Solidity: function applyCard(address from, address to, (uint256,uint256,address,uint256,(uint256,string,string,uint256,uint256,uint256,(string[],string[]))) card) returns()

func (*CardTrackerTransactor) Initialize

func (_CardTracker *CardTrackerTransactor) Initialize(opts *bind.TransactOpts, eventSource common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address eventSource) returns()

type CardTrackerTransactorRaw

type CardTrackerTransactorRaw struct {
	Contract *CardTrackerTransactor // Generic write-only contract binding to access the raw methods on
}

CardTrackerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*CardTrackerTransactorRaw) Transact

func (_CardTracker *CardTrackerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*CardTrackerTransactorRaw) Transfer

func (_CardTracker *CardTrackerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CardTrackerTransactorSession

type CardTrackerTransactorSession struct {
	Contract     *CardTrackerTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts      // Transaction auth options to use throughout this session
}

CardTrackerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*CardTrackerTransactorSession) ApplyCard

func (_CardTracker *CardTrackerTransactorSession) ApplyCard(from common.Address, to common.Address, card ICardsCard) (*types.Transaction, error)

ApplyCard is a paid mutator transaction binding the contract method 0x7ed41358.

Solidity: function applyCard(address from, address to, (uint256,uint256,address,uint256,(uint256,string,string,uint256,uint256,uint256,(string[],string[]))) card) returns()

func (*CardTrackerTransactorSession) Initialize

func (_CardTracker *CardTrackerTransactorSession) Initialize(eventSource common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address eventSource) returns()

type CardTrackerVipChanged

type CardTrackerVipChanged struct {
	Account  common.Address
	ExpireAt *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

CardTrackerVipChanged represents a VipChanged event raised by the CardTracker contract.

type CardTrackerVipChangedIterator

type CardTrackerVipChangedIterator struct {
	Event *CardTrackerVipChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CardTrackerVipChangedIterator is returned from FilterVipChanged and is used to iterate over the raw logs and unpacked data for VipChanged events raised by the CardTracker contract.

func (*CardTrackerVipChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*CardTrackerVipChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CardTrackerVipChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type IAppConfigChargeRequest

type IAppConfigChargeRequest struct {
	Account   common.Address
	Amount    *big.Int
	Data      []byte
	UseDetail []IAppConfigResourceUseDetail
}

IAppConfigChargeRequest is an auto generated low-level Go binding around an user-defined struct.

type IAppConfigConfigEntry

type IAppConfigConfigEntry struct {
	ResourceId    string
	Weight        *big.Int
	Index         uint32
	PendingOP     uint8
	PendingWeight *big.Int
	SubmitSeconds *big.Int
	RequestTimes  *big.Int
}

IAppConfigConfigEntry is an auto generated low-level Go binding around an user-defined struct.

type IAppConfigResourceUseDetail

type IAppConfigResourceUseDetail struct {
	Id    uint32
	Times *big.Int
}

IAppConfigResourceUseDetail is an auto generated low-level Go binding around an user-defined struct.

type ICardTemplateProps

type ICardTemplateProps struct {
	Keys   []string
	Values []string
}

ICardTemplateProps is an auto generated low-level Go binding around an user-defined struct.

type ICardTemplateTemplate

type ICardTemplateTemplate struct {
	Id               *big.Int
	Name             string
	Description      string
	Price            *big.Int
	Duration         *big.Int
	GiveawayDuration *big.Int
	Props            ICardTemplateProps
}

ICardTemplateTemplate is an auto generated low-level Go binding around an user-defined struct.

type ICardTrackerVipInfo

type ICardTrackerVipInfo struct {
	ExpireAt *big.Int
	Props    ICardTemplateProps
}

ICardTrackerVipInfo is an auto generated low-level Go binding around an user-defined struct.

type ICardsCard

type ICardsCard struct {
	Id       *big.Int
	Duration *big.Int
	Owner    common.Address
	Count    *big.Int
	Template ICardTemplateTemplate
}

ICardsCard is an auto generated low-level Go binding around an user-defined struct.

type PaymentType

type PaymentType = uint8

type VipCoin

type VipCoin struct {
	VipCoinCaller     // Read-only binding to the contract
	VipCoinTransactor // Write-only binding to the contract
	VipCoinFilterer   // Log filterer for contract events
}

VipCoin is an auto generated Go binding around an Ethereum contract.

func NewVipCoin

func NewVipCoin(address common.Address, backend bind.ContractBackend) (*VipCoin, error)

NewVipCoin creates a new instance of VipCoin, bound to a specific deployed contract.

type VipCoinApprovalForAll

type VipCoinApprovalForAll struct {
	Account  common.Address
	Operator common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

VipCoinApprovalForAll represents a ApprovalForAll event raised by the VipCoin contract.

type VipCoinApprovalForAllIterator

type VipCoinApprovalForAllIterator struct {
	Event *VipCoinApprovalForAll // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VipCoinApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the VipCoin contract.

func (*VipCoinApprovalForAllIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VipCoinApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VipCoinApprovalForAllIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VipCoinCaller

type VipCoinCaller struct {
	// contains filtered or unexported fields
}

VipCoinCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewVipCoinCaller

func NewVipCoinCaller(address common.Address, caller bind.ContractCaller) (*VipCoinCaller, error)

NewVipCoinCaller creates a new read-only instance of VipCoin, bound to a specific deployed contract.

func (*VipCoinCaller) BalanceOf

func (_VipCoin *VipCoinCaller) BalanceOf(opts *bind.CallOpts, account common.Address, id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*VipCoinCaller) BalanceOfBatch

func (_VipCoin *VipCoinCaller) BalanceOfBatch(opts *bind.CallOpts, accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*VipCoinCaller) CONSUMERROLE

func (_VipCoin *VipCoinCaller) CONSUMERROLE(opts *bind.CallOpts) ([32]byte, error)

CONSUMERROLE is a free data retrieval call binding the contract method 0x4bc02da6.

Solidity: function CONSUMER_ROLE() view returns(bytes32)

func (*VipCoinCaller) DEFAULTADMINROLE

func (_VipCoin *VipCoinCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*VipCoinCaller) Exists

func (_VipCoin *VipCoinCaller) Exists(opts *bind.CallOpts, tokenId *big.Int) (bool, error)

Exists is a free data retrieval call binding the contract method 0x4f558e79.

Solidity: function exists(uint256 tokenId) view returns(bool)

func (*VipCoinCaller) GetRoleAdmin

func (_VipCoin *VipCoinCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*VipCoinCaller) GetRoleMember

func (_VipCoin *VipCoinCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*VipCoinCaller) GetRoleMemberCount

func (_VipCoin *VipCoinCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*VipCoinCaller) HasRole

func (_VipCoin *VipCoinCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*VipCoinCaller) IsApprovedForAll

func (_VipCoin *VipCoinCaller) IsApprovedForAll(opts *bind.CallOpts, account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*VipCoinCaller) MINTERROLE

func (_VipCoin *VipCoinCaller) MINTERROLE(opts *bind.CallOpts) ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*VipCoinCaller) Name

func (_VipCoin *VipCoinCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*VipCoinCaller) PAUSERROLE

func (_VipCoin *VipCoinCaller) PAUSERROLE(opts *bind.CallOpts) ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*VipCoinCaller) Paused

func (_VipCoin *VipCoinCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*VipCoinCaller) SupportsInterface

func (_VipCoin *VipCoinCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*VipCoinCaller) Symbol

func (_VipCoin *VipCoinCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*VipCoinCaller) TokenByIndex

func (_VipCoin *VipCoinCaller) TokenByIndex(opts *bind.CallOpts, index *big.Int) (*big.Int, error)

TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.

Solidity: function tokenByIndex(uint256 index) view returns(uint256)

func (*VipCoinCaller) TokenCountOf

func (_VipCoin *VipCoinCaller) TokenCountOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

TokenCountOf is a free data retrieval call binding the contract method 0xb722938a.

Solidity: function tokenCountOf(address owner) view returns(uint256)

func (*VipCoinCaller) TokenOfOwnerByIndex

func (_VipCoin *VipCoinCaller) TokenOfOwnerByIndex(opts *bind.CallOpts, owner common.Address, index *big.Int) (*big.Int, error)

TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.

Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)

func (*VipCoinCaller) Tokens

func (_VipCoin *VipCoinCaller) Tokens(opts *bind.CallOpts, offset *big.Int, limit *big.Int) (struct {
	Total    *big.Int
	TokenIds []*big.Int
}, error)

Tokens is a free data retrieval call binding the contract method 0x8b4864d6.

Solidity: function tokens(uint256 offset, uint256 limit) view returns(uint256 total, uint256[] tokenIds)

func (*VipCoinCaller) TokensOf

func (_VipCoin *VipCoinCaller) TokensOf(opts *bind.CallOpts, owner common.Address, offset *big.Int, limit *big.Int) (struct {
	Total    *big.Int
	TokenIds []*big.Int
}, error)

TokensOf is a free data retrieval call binding the contract method 0x23185dc9.

Solidity: function tokensOf(address owner, uint256 offset, uint256 limit) view returns(uint256 total, uint256[] tokenIds)

func (*VipCoinCaller) TotalSupply

func (_VipCoin *VipCoinCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*VipCoinCaller) TotalSupply0

func (_VipCoin *VipCoinCaller) TotalSupply0(opts *bind.CallOpts, tokenId *big.Int) (*big.Int, error)

TotalSupply0 is a free data retrieval call binding the contract method 0xbd85b039.

Solidity: function totalSupply(uint256 tokenId) view returns(uint256)

func (*VipCoinCaller) Uri

func (_VipCoin *VipCoinCaller) Uri(opts *bind.CallOpts, arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

type VipCoinCallerRaw

type VipCoinCallerRaw struct {
	Contract *VipCoinCaller // Generic read-only contract binding to access the raw methods on
}

VipCoinCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*VipCoinCallerRaw) Call

func (_VipCoin *VipCoinCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type VipCoinCallerSession

type VipCoinCallerSession struct {
	Contract *VipCoinCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts  // Call options to use throughout this session
}

VipCoinCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*VipCoinCallerSession) BalanceOf

func (_VipCoin *VipCoinCallerSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*VipCoinCallerSession) BalanceOfBatch

func (_VipCoin *VipCoinCallerSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*VipCoinCallerSession) CONSUMERROLE

func (_VipCoin *VipCoinCallerSession) CONSUMERROLE() ([32]byte, error)

CONSUMERROLE is a free data retrieval call binding the contract method 0x4bc02da6.

Solidity: function CONSUMER_ROLE() view returns(bytes32)

func (*VipCoinCallerSession) DEFAULTADMINROLE

func (_VipCoin *VipCoinCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*VipCoinCallerSession) Exists

func (_VipCoin *VipCoinCallerSession) Exists(tokenId *big.Int) (bool, error)

Exists is a free data retrieval call binding the contract method 0x4f558e79.

Solidity: function exists(uint256 tokenId) view returns(bool)

func (*VipCoinCallerSession) GetRoleAdmin

func (_VipCoin *VipCoinCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*VipCoinCallerSession) GetRoleMember

func (_VipCoin *VipCoinCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*VipCoinCallerSession) GetRoleMemberCount

func (_VipCoin *VipCoinCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*VipCoinCallerSession) HasRole

func (_VipCoin *VipCoinCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*VipCoinCallerSession) IsApprovedForAll

func (_VipCoin *VipCoinCallerSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*VipCoinCallerSession) MINTERROLE

func (_VipCoin *VipCoinCallerSession) MINTERROLE() ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*VipCoinCallerSession) Name

func (_VipCoin *VipCoinCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*VipCoinCallerSession) PAUSERROLE

func (_VipCoin *VipCoinCallerSession) PAUSERROLE() ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*VipCoinCallerSession) Paused

func (_VipCoin *VipCoinCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*VipCoinCallerSession) SupportsInterface

func (_VipCoin *VipCoinCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*VipCoinCallerSession) Symbol

func (_VipCoin *VipCoinCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*VipCoinCallerSession) TokenByIndex

func (_VipCoin *VipCoinCallerSession) TokenByIndex(index *big.Int) (*big.Int, error)

TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.

Solidity: function tokenByIndex(uint256 index) view returns(uint256)

func (*VipCoinCallerSession) TokenCountOf

func (_VipCoin *VipCoinCallerSession) TokenCountOf(owner common.Address) (*big.Int, error)

TokenCountOf is a free data retrieval call binding the contract method 0xb722938a.

Solidity: function tokenCountOf(address owner) view returns(uint256)

func (*VipCoinCallerSession) TokenOfOwnerByIndex

func (_VipCoin *VipCoinCallerSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error)

TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.

Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)

func (*VipCoinCallerSession) Tokens

func (_VipCoin *VipCoinCallerSession) Tokens(offset *big.Int, limit *big.Int) (struct {
	Total    *big.Int
	TokenIds []*big.Int
}, error)

Tokens is a free data retrieval call binding the contract method 0x8b4864d6.

Solidity: function tokens(uint256 offset, uint256 limit) view returns(uint256 total, uint256[] tokenIds)

func (*VipCoinCallerSession) TokensOf

func (_VipCoin *VipCoinCallerSession) TokensOf(owner common.Address, offset *big.Int, limit *big.Int) (struct {
	Total    *big.Int
	TokenIds []*big.Int
}, error)

TokensOf is a free data retrieval call binding the contract method 0x23185dc9.

Solidity: function tokensOf(address owner, uint256 offset, uint256 limit) view returns(uint256 total, uint256[] tokenIds)

func (*VipCoinCallerSession) TotalSupply

func (_VipCoin *VipCoinCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*VipCoinCallerSession) TotalSupply0

func (_VipCoin *VipCoinCallerSession) TotalSupply0(tokenId *big.Int) (*big.Int, error)

TotalSupply0 is a free data retrieval call binding the contract method 0xbd85b039.

Solidity: function totalSupply(uint256 tokenId) view returns(uint256)

func (*VipCoinCallerSession) Uri

func (_VipCoin *VipCoinCallerSession) Uri(arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

type VipCoinFilterer

type VipCoinFilterer struct {
	// contains filtered or unexported fields
}

VipCoinFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewVipCoinFilterer

func NewVipCoinFilterer(address common.Address, filterer bind.ContractFilterer) (*VipCoinFilterer, error)

NewVipCoinFilterer creates a new log filterer instance of VipCoin, bound to a specific deployed contract.

func (*VipCoinFilterer) FilterApprovalForAll

func (_VipCoin *VipCoinFilterer) FilterApprovalForAll(opts *bind.FilterOpts, account []common.Address, operator []common.Address) (*VipCoinApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*VipCoinFilterer) FilterPaused

func (_VipCoin *VipCoinFilterer) FilterPaused(opts *bind.FilterOpts) (*VipCoinPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*VipCoinFilterer) FilterRoleAdminChanged

func (_VipCoin *VipCoinFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*VipCoinRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*VipCoinFilterer) FilterRoleGranted

func (_VipCoin *VipCoinFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*VipCoinRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*VipCoinFilterer) FilterRoleRevoked

func (_VipCoin *VipCoinFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*VipCoinRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*VipCoinFilterer) FilterTransferBatch

func (_VipCoin *VipCoinFilterer) FilterTransferBatch(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*VipCoinTransferBatchIterator, error)

FilterTransferBatch is a free log retrieval operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*VipCoinFilterer) FilterTransferSingle

func (_VipCoin *VipCoinFilterer) FilterTransferSingle(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*VipCoinTransferSingleIterator, error)

FilterTransferSingle is a free log retrieval operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*VipCoinFilterer) FilterURI

func (_VipCoin *VipCoinFilterer) FilterURI(opts *bind.FilterOpts, id []*big.Int) (*VipCoinURIIterator, error)

FilterURI is a free log retrieval operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*VipCoinFilterer) FilterUnpaused

func (_VipCoin *VipCoinFilterer) FilterUnpaused(opts *bind.FilterOpts) (*VipCoinUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*VipCoinFilterer) ParseApprovalForAll

func (_VipCoin *VipCoinFilterer) ParseApprovalForAll(log types.Log) (*VipCoinApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*VipCoinFilterer) ParsePaused

func (_VipCoin *VipCoinFilterer) ParsePaused(log types.Log) (*VipCoinPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*VipCoinFilterer) ParseRoleAdminChanged

func (_VipCoin *VipCoinFilterer) ParseRoleAdminChanged(log types.Log) (*VipCoinRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*VipCoinFilterer) ParseRoleGranted

func (_VipCoin *VipCoinFilterer) ParseRoleGranted(log types.Log) (*VipCoinRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*VipCoinFilterer) ParseRoleRevoked

func (_VipCoin *VipCoinFilterer) ParseRoleRevoked(log types.Log) (*VipCoinRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*VipCoinFilterer) ParseTransferBatch

func (_VipCoin *VipCoinFilterer) ParseTransferBatch(log types.Log) (*VipCoinTransferBatch, error)

ParseTransferBatch is a log parse operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*VipCoinFilterer) ParseTransferSingle

func (_VipCoin *VipCoinFilterer) ParseTransferSingle(log types.Log) (*VipCoinTransferSingle, error)

ParseTransferSingle is a log parse operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*VipCoinFilterer) ParseURI

func (_VipCoin *VipCoinFilterer) ParseURI(log types.Log) (*VipCoinURI, error)

ParseURI is a log parse operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*VipCoinFilterer) ParseUnpaused

func (_VipCoin *VipCoinFilterer) ParseUnpaused(log types.Log) (*VipCoinUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*VipCoinFilterer) WatchApprovalForAll

func (_VipCoin *VipCoinFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *VipCoinApprovalForAll, account []common.Address, operator []common.Address) (event.Subscription, error)

WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*VipCoinFilterer) WatchPaused

func (_VipCoin *VipCoinFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *VipCoinPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*VipCoinFilterer) WatchRoleAdminChanged

func (_VipCoin *VipCoinFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *VipCoinRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*VipCoinFilterer) WatchRoleGranted

func (_VipCoin *VipCoinFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *VipCoinRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*VipCoinFilterer) WatchRoleRevoked

func (_VipCoin *VipCoinFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *VipCoinRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*VipCoinFilterer) WatchTransferBatch

func (_VipCoin *VipCoinFilterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *VipCoinTransferBatch, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferBatch is a free log subscription operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*VipCoinFilterer) WatchTransferSingle

func (_VipCoin *VipCoinFilterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *VipCoinTransferSingle, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferSingle is a free log subscription operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*VipCoinFilterer) WatchURI

func (_VipCoin *VipCoinFilterer) WatchURI(opts *bind.WatchOpts, sink chan<- *VipCoinURI, id []*big.Int) (event.Subscription, error)

WatchURI is a free log subscription operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*VipCoinFilterer) WatchUnpaused

func (_VipCoin *VipCoinFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *VipCoinUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

type VipCoinPaused

type VipCoinPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VipCoinPaused represents a Paused event raised by the VipCoin contract.

type VipCoinPausedIterator

type VipCoinPausedIterator struct {
	Event *VipCoinPaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VipCoinPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the VipCoin contract.

func (*VipCoinPausedIterator) Close

func (it *VipCoinPausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VipCoinPausedIterator) Error

func (it *VipCoinPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VipCoinPausedIterator) Next

func (it *VipCoinPausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VipCoinRaw

type VipCoinRaw struct {
	Contract *VipCoin // Generic contract binding to access the raw methods on
}

VipCoinRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*VipCoinRaw) Call

func (_VipCoin *VipCoinRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*VipCoinRaw) Transact

func (_VipCoin *VipCoinRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*VipCoinRaw) Transfer

func (_VipCoin *VipCoinRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type VipCoinRoleAdminChanged

type VipCoinRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

VipCoinRoleAdminChanged represents a RoleAdminChanged event raised by the VipCoin contract.

type VipCoinRoleAdminChangedIterator

type VipCoinRoleAdminChangedIterator struct {
	Event *VipCoinRoleAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VipCoinRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the VipCoin contract.

func (*VipCoinRoleAdminChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VipCoinRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VipCoinRoleAdminChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VipCoinRoleGranted

type VipCoinRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VipCoinRoleGranted represents a RoleGranted event raised by the VipCoin contract.

type VipCoinRoleGrantedIterator

type VipCoinRoleGrantedIterator struct {
	Event *VipCoinRoleGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VipCoinRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the VipCoin contract.

func (*VipCoinRoleGrantedIterator) Close

func (it *VipCoinRoleGrantedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VipCoinRoleGrantedIterator) Error

func (it *VipCoinRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VipCoinRoleGrantedIterator) Next

func (it *VipCoinRoleGrantedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VipCoinRoleRevoked

type VipCoinRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VipCoinRoleRevoked represents a RoleRevoked event raised by the VipCoin contract.

type VipCoinRoleRevokedIterator

type VipCoinRoleRevokedIterator struct {
	Event *VipCoinRoleRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VipCoinRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the VipCoin contract.

func (*VipCoinRoleRevokedIterator) Close

func (it *VipCoinRoleRevokedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VipCoinRoleRevokedIterator) Error

func (it *VipCoinRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VipCoinRoleRevokedIterator) Next

func (it *VipCoinRoleRevokedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VipCoinSession

type VipCoinSession struct {
	Contract     *VipCoin          // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

VipCoinSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*VipCoinSession) BalanceOf

func (_VipCoin *VipCoinSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*VipCoinSession) BalanceOfBatch

func (_VipCoin *VipCoinSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*VipCoinSession) Burn

func (_VipCoin *VipCoinSession) Burn(account common.Address, id *big.Int, value *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf5298aca.

Solidity: function burn(address account, uint256 id, uint256 value) returns()

func (*VipCoinSession) BurnBatch

func (_VipCoin *VipCoinSession) BurnBatch(account common.Address, ids []*big.Int, values []*big.Int) (*types.Transaction, error)

BurnBatch is a paid mutator transaction binding the contract method 0x6b20c454.

Solidity: function burnBatch(address account, uint256[] ids, uint256[] values) returns()

func (*VipCoinSession) CONSUMERROLE

func (_VipCoin *VipCoinSession) CONSUMERROLE() ([32]byte, error)

CONSUMERROLE is a free data retrieval call binding the contract method 0x4bc02da6.

Solidity: function CONSUMER_ROLE() view returns(bytes32)

func (*VipCoinSession) DEFAULTADMINROLE

func (_VipCoin *VipCoinSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*VipCoinSession) Exists

func (_VipCoin *VipCoinSession) Exists(tokenId *big.Int) (bool, error)

Exists is a free data retrieval call binding the contract method 0x4f558e79.

Solidity: function exists(uint256 tokenId) view returns(bool)

func (*VipCoinSession) GetRoleAdmin

func (_VipCoin *VipCoinSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*VipCoinSession) GetRoleMember

func (_VipCoin *VipCoinSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*VipCoinSession) GetRoleMemberCount

func (_VipCoin *VipCoinSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*VipCoinSession) GrantRole

func (_VipCoin *VipCoinSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*VipCoinSession) HasRole

func (_VipCoin *VipCoinSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*VipCoinSession) IsApprovedForAll

func (_VipCoin *VipCoinSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*VipCoinSession) MINTERROLE

func (_VipCoin *VipCoinSession) MINTERROLE() ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*VipCoinSession) Mint

func (_VipCoin *VipCoinSession) Mint(to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x731133e9.

Solidity: function mint(address to, uint256 id, uint256 amount, bytes data) returns()

func (*VipCoinSession) MintBatch

func (_VipCoin *VipCoinSession) MintBatch(to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

MintBatch is a paid mutator transaction binding the contract method 0x1f7fdffa.

Solidity: function mintBatch(address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*VipCoinSession) Name

func (_VipCoin *VipCoinSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*VipCoinSession) PAUSERROLE

func (_VipCoin *VipCoinSession) PAUSERROLE() ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*VipCoinSession) Pause

func (_VipCoin *VipCoinSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*VipCoinSession) Paused

func (_VipCoin *VipCoinSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*VipCoinSession) RenounceRole

func (_VipCoin *VipCoinSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*VipCoinSession) RevokeRole

func (_VipCoin *VipCoinSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*VipCoinSession) SafeBatchTransferFrom

func (_VipCoin *VipCoinSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*VipCoinSession) SafeTransferFrom

func (_VipCoin *VipCoinSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()

func (*VipCoinSession) SetApprovalForAll

func (_VipCoin *VipCoinSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*VipCoinSession) SupportsInterface

func (_VipCoin *VipCoinSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*VipCoinSession) Symbol

func (_VipCoin *VipCoinSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*VipCoinSession) TokenByIndex

func (_VipCoin *VipCoinSession) TokenByIndex(index *big.Int) (*big.Int, error)

TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.

Solidity: function tokenByIndex(uint256 index) view returns(uint256)

func (*VipCoinSession) TokenCountOf

func (_VipCoin *VipCoinSession) TokenCountOf(owner common.Address) (*big.Int, error)

TokenCountOf is a free data retrieval call binding the contract method 0xb722938a.

Solidity: function tokenCountOf(address owner) view returns(uint256)

func (*VipCoinSession) TokenOfOwnerByIndex

func (_VipCoin *VipCoinSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error)

TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.

Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)

func (*VipCoinSession) Tokens

func (_VipCoin *VipCoinSession) Tokens(offset *big.Int, limit *big.Int) (struct {
	Total    *big.Int
	TokenIds []*big.Int
}, error)

Tokens is a free data retrieval call binding the contract method 0x8b4864d6.

Solidity: function tokens(uint256 offset, uint256 limit) view returns(uint256 total, uint256[] tokenIds)

func (*VipCoinSession) TokensOf

func (_VipCoin *VipCoinSession) TokensOf(owner common.Address, offset *big.Int, limit *big.Int) (struct {
	Total    *big.Int
	TokenIds []*big.Int
}, error)

TokensOf is a free data retrieval call binding the contract method 0x23185dc9.

Solidity: function tokensOf(address owner, uint256 offset, uint256 limit) view returns(uint256 total, uint256[] tokenIds)

func (*VipCoinSession) TotalSupply

func (_VipCoin *VipCoinSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*VipCoinSession) TotalSupply0

func (_VipCoin *VipCoinSession) TotalSupply0(tokenId *big.Int) (*big.Int, error)

TotalSupply0 is a free data retrieval call binding the contract method 0xbd85b039.

Solidity: function totalSupply(uint256 tokenId) view returns(uint256)

func (*VipCoinSession) Unpause

func (_VipCoin *VipCoinSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*VipCoinSession) Uri

func (_VipCoin *VipCoinSession) Uri(arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

type VipCoinTransactor

type VipCoinTransactor struct {
	// contains filtered or unexported fields
}

VipCoinTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewVipCoinTransactor

func NewVipCoinTransactor(address common.Address, transactor bind.ContractTransactor) (*VipCoinTransactor, error)

NewVipCoinTransactor creates a new write-only instance of VipCoin, bound to a specific deployed contract.

func (*VipCoinTransactor) Burn

func (_VipCoin *VipCoinTransactor) Burn(opts *bind.TransactOpts, account common.Address, id *big.Int, value *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf5298aca.

Solidity: function burn(address account, uint256 id, uint256 value) returns()

func (*VipCoinTransactor) BurnBatch

func (_VipCoin *VipCoinTransactor) BurnBatch(opts *bind.TransactOpts, account common.Address, ids []*big.Int, values []*big.Int) (*types.Transaction, error)

BurnBatch is a paid mutator transaction binding the contract method 0x6b20c454.

Solidity: function burnBatch(address account, uint256[] ids, uint256[] values) returns()

func (*VipCoinTransactor) GrantRole

func (_VipCoin *VipCoinTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*VipCoinTransactor) Mint

func (_VipCoin *VipCoinTransactor) Mint(opts *bind.TransactOpts, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x731133e9.

Solidity: function mint(address to, uint256 id, uint256 amount, bytes data) returns()

func (*VipCoinTransactor) MintBatch

func (_VipCoin *VipCoinTransactor) MintBatch(opts *bind.TransactOpts, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

MintBatch is a paid mutator transaction binding the contract method 0x1f7fdffa.

Solidity: function mintBatch(address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*VipCoinTransactor) Pause

func (_VipCoin *VipCoinTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*VipCoinTransactor) RenounceRole

func (_VipCoin *VipCoinTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*VipCoinTransactor) RevokeRole

func (_VipCoin *VipCoinTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*VipCoinTransactor) SafeBatchTransferFrom

func (_VipCoin *VipCoinTransactor) SafeBatchTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*VipCoinTransactor) SafeTransferFrom

func (_VipCoin *VipCoinTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()

func (*VipCoinTransactor) SetApprovalForAll

func (_VipCoin *VipCoinTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*VipCoinTransactor) Unpause

func (_VipCoin *VipCoinTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type VipCoinTransactorRaw

type VipCoinTransactorRaw struct {
	Contract *VipCoinTransactor // Generic write-only contract binding to access the raw methods on
}

VipCoinTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*VipCoinTransactorRaw) Transact

func (_VipCoin *VipCoinTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*VipCoinTransactorRaw) Transfer

func (_VipCoin *VipCoinTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type VipCoinTransactorSession

type VipCoinTransactorSession struct {
	Contract     *VipCoinTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts  // Transaction auth options to use throughout this session
}

VipCoinTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*VipCoinTransactorSession) Burn

func (_VipCoin *VipCoinTransactorSession) Burn(account common.Address, id *big.Int, value *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf5298aca.

Solidity: function burn(address account, uint256 id, uint256 value) returns()

func (*VipCoinTransactorSession) BurnBatch

func (_VipCoin *VipCoinTransactorSession) BurnBatch(account common.Address, ids []*big.Int, values []*big.Int) (*types.Transaction, error)

BurnBatch is a paid mutator transaction binding the contract method 0x6b20c454.

Solidity: function burnBatch(address account, uint256[] ids, uint256[] values) returns()

func (*VipCoinTransactorSession) GrantRole

func (_VipCoin *VipCoinTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*VipCoinTransactorSession) Mint

func (_VipCoin *VipCoinTransactorSession) Mint(to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x731133e9.

Solidity: function mint(address to, uint256 id, uint256 amount, bytes data) returns()

func (*VipCoinTransactorSession) MintBatch

func (_VipCoin *VipCoinTransactorSession) MintBatch(to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

MintBatch is a paid mutator transaction binding the contract method 0x1f7fdffa.

Solidity: function mintBatch(address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*VipCoinTransactorSession) Pause

func (_VipCoin *VipCoinTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*VipCoinTransactorSession) RenounceRole

func (_VipCoin *VipCoinTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*VipCoinTransactorSession) RevokeRole

func (_VipCoin *VipCoinTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*VipCoinTransactorSession) SafeBatchTransferFrom

func (_VipCoin *VipCoinTransactorSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*VipCoinTransactorSession) SafeTransferFrom

func (_VipCoin *VipCoinTransactorSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()

func (*VipCoinTransactorSession) SetApprovalForAll

func (_VipCoin *VipCoinTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*VipCoinTransactorSession) Unpause

func (_VipCoin *VipCoinTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type VipCoinTransferBatch

type VipCoinTransferBatch struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Ids      []*big.Int
	Values   []*big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

VipCoinTransferBatch represents a TransferBatch event raised by the VipCoin contract.

type VipCoinTransferBatchIterator

type VipCoinTransferBatchIterator struct {
	Event *VipCoinTransferBatch // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VipCoinTransferBatchIterator is returned from FilterTransferBatch and is used to iterate over the raw logs and unpacked data for TransferBatch events raised by the VipCoin contract.

func (*VipCoinTransferBatchIterator) Close

func (it *VipCoinTransferBatchIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VipCoinTransferBatchIterator) Error

func (it *VipCoinTransferBatchIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VipCoinTransferBatchIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VipCoinTransferSingle

type VipCoinTransferSingle struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Id       *big.Int
	Value    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

VipCoinTransferSingle represents a TransferSingle event raised by the VipCoin contract.

func UnpackVipCoinTransferSingle

func UnpackVipCoinTransferSingle(vcAbi *abi.ABI, log *types.Log) (*VipCoinTransferSingle, error)

type VipCoinTransferSingleIterator

type VipCoinTransferSingleIterator struct {
	Event *VipCoinTransferSingle // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VipCoinTransferSingleIterator is returned from FilterTransferSingle and is used to iterate over the raw logs and unpacked data for TransferSingle events raised by the VipCoin contract.

func (*VipCoinTransferSingleIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VipCoinTransferSingleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VipCoinTransferSingleIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VipCoinURI

type VipCoinURI struct {
	Value string
	Id    *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

VipCoinURI represents a URI event raised by the VipCoin contract.

type VipCoinURIIterator

type VipCoinURIIterator struct {
	Event *VipCoinURI // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VipCoinURIIterator is returned from FilterURI and is used to iterate over the raw logs and unpacked data for URI events raised by the VipCoin contract.

func (*VipCoinURIIterator) Close

func (it *VipCoinURIIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VipCoinURIIterator) Error

func (it *VipCoinURIIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VipCoinURIIterator) Next

func (it *VipCoinURIIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VipCoinUnpaused

type VipCoinUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VipCoinUnpaused represents a Unpaused event raised by the VipCoin contract.

type VipCoinUnpausedIterator

type VipCoinUnpausedIterator struct {
	Event *VipCoinUnpaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VipCoinUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the VipCoin contract.

func (*VipCoinUnpausedIterator) Close

func (it *VipCoinUnpausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VipCoinUnpausedIterator) Error

func (it *VipCoinUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VipCoinUnpausedIterator) Next

func (it *VipCoinUnpausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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