Documentation
¶
Index ¶
- Constants
- Variables
- func Approve(gasPrice, gasLimit uint64, signer *account.Account, asset, from, to string, ...) (string, error)
- func ApproveTx(gasPrice, gasLimit uint64, asset string, from, to string, amount uint64) (*types.Transaction, error)
- func BuildWasmVMInvokeCode(smartcodeAddress common.Address, methodName string, paramType wasmvm.ParamType, ...) ([]byte, error)
- func CompressBlockData(data []byte, compressType byte) ([]byte, error)
- func DecompressBlockData(data []byte, compressType byte) ([]byte, error)
- func DeployContract(gasPrice, gasLimit uint64, signer *account.Account, needStorage bool, ...) (string, error)
- func FormatAssetAmount(amount uint64, precision byte) string
- func FormatOng(amount uint64) string
- func FormatOnt(amount uint64) string
- func GetAllowance(asset, from, to string) (string, error)
- func GetBalance(address string) (*httpcom.BalanceOfRsp, error)
- func GetBlock(hashOrHeight interface{}) ([]byte, error)
- func GetBlockCount() (uint32, error)
- func GetBlockData(hashOrHeight interface{}) ([]byte, error)
- func GetFlagName(flag cli.Flag) string
- func GetRawTransaction(txHash string) ([]byte, error)
- func GetSmartContractEvent(txHash string) (*rpccommon.ExecuteNotify, error)
- func GetSmartContractEventInfo(txHash string) ([]byte, error)
- func ImportBlocks(importFile string, targetHeight uint32) error
- func InvokeNativeContract(gasPrice, gasLimit uint64, signer *account.Account, ...) (string, error)
- func InvokeNeoVMContract(gasPrice, gasLimit uint64, signer *account.Account, ...) (string, error)
- func InvokeSmartContract(signer *account.Account, tx *types.Transaction) (string, error)
- func InvokeWasmVMContract(gasPrice, gasLimit uint64, siger *account.Account, cversion byte, ...) (string, error)
- func NewDeployCodeTransaction(gasPrice, gasLimit uint64, code []byte, needStorage bool, ...) *types.Transaction
- func NewNativeInvokeTransaction(gasPrice, gasLimit uint64, contractAddr common.Address, version byte, ...) (*types.Transaction, error)
- func ParseAssetAmount(rawAmount string, precision byte) uint64
- func ParseNativeFuncParam(builder *neovm.ParamsBuilder, funName string, params []interface{}, ...) error
- func ParseNativeParamAddress(builder *neovm.ParamsBuilder, param string) error
- func ParseNativeParamArray(builder *neovm.ParamsBuilder, param interface{}, ...) error
- func ParseNativeParamBool(builder *neovm.ParamsBuilder, param string) error
- func ParseNativeParamByte(builder *neovm.ParamsBuilder, param string) error
- func ParseNativeParamByteArray(builder *neovm.ParamsBuilder, param string) error
- func ParseNativeParamInteger(builder *neovm.ParamsBuilder, param string) error
- func ParseNativeParamString(builder *neovm.ParamsBuilder, param string) error
- func ParseNativeParamStruct(builder *neovm.ParamsBuilder, param interface{}, ...) error
- func ParseNativeParamUint256(builder *neovm.ParamsBuilder, param string) error
- func ParseNativeParams(builder *neovm.ParamsBuilder, params []interface{}, ...) error
- func ParseNeoVMContractReturnTypeBool(hexStr string) (bool, error)
- func ParseNeoVMContractReturnTypeByteArray(hexStr string) (string, error)
- func ParseNeoVMContractReturnTypeInteger(hexStr string) (int64, error)
- func ParseNeoVMContractReturnTypeString(hexStr string) (string, error)
- func ParseNeoVMInvokeParams(rawParams []interface{}) ([]interface{}, error)
- func ParseOng(rawAmount string) uint64
- func ParseOnt(rawAmount string) uint64
- func ParseParams(rawParamStr string) ([]interface{}, error)
- func ParseReturnValue(rawValue interface{}, rawReturnTypeStr string) ([]interface{}, error)
- func PrepareInvokeCodeNeoVMContract(code []byte) (*cstates.PreExecResult, error)
- func PrepareInvokeNativeContract(contractAddress common.Address, version byte, method string, ...) (*cstates.PreExecResult, error)
- func PrepareInvokeNeoVMContract(contractAddress common.Address, params []interface{}) (*cstates.PreExecResult, error)
- func SendRawTransaction(tx *types.Transaction) (string, error)
- func Sign(data []byte, signer *account.Account) ([]byte, error)
- func SignTransaction(signer *account.Account, tx *types.Transaction) error
- func Transfer(gasPrice, gasLimit uint64, signer *account.Account, asset, from, to string, ...) (string, error)
- func TransferFrom(gasPrice, gasLimit uint64, signer *account.Account, ...) (string, error)
- func TransferFromTx(gasPrice, gasLimit uint64, asset, sender, from, to string, amount uint64) (*types.Transaction, error)
- func TransferTx(gasPrice, gasLimit uint64, asset, from, to string, amount uint64) (*types.Transaction, error)
- func ZLibCompress(data []byte) ([]byte, error)
- func ZLibDecompress(data []byte) ([]byte, error)
- type ExportBlockMetadata
- type JsonRpcRequest
- type JsonRpcResponse
- type NeoVMInvokeParam
Constants ¶
const ( DEFAULT_COMPRESS_TYPE = COMPRESS_TYPE_ZLIB EXPORT_BLOCK_METADATA_LEN = 256 EXPORT_BLOCK_METADATA_VERSION = 1 )
const ( VERSION_TRANSACTION = byte(0) VERSION_CONTRACT_ONT = byte(0) VERSION_CONTRACT_ONG = byte(0) CONTRACT_TRANSFER = "transfer" CONTRACT_TRANSFER_FROM = "transferFrom" CONTRACT_APPROVE = "approve" ASSET_ONT = "ont" ASSET_ONG = "ong" )
const ( PARAMS_SPLIT = "," PARAM_TYPE_SPLIT = ":" PARAM_TYPE_ARRAY = "array" PARAM_TYPE_BYTE_ARRAY = "bytearray" PARAM_TYPE_STRING = "string" PARAM_TYPE_INTEGER = "int" PARAM_TYPE_BOOLEAN = "bool" PARAM_LEFT_BRACKET = "[" PARAM_RIGHT_BRACKET = "]" )
const ( PRECISION_ONG = 9 PRECISION_ONT = 0 )
const (
COMPRESS_TYPE_ZLIB = iota
)
const (
DEFAULT_EXPORT_FILE = "./blocks.dat"
)
const JSON_RPC_VERSION = "2.0"
JsonRpc version
Variables ¶
var ( //Ontology setting ConfigFlag = cli.StringFlag{ Name: "config", Usage: "Use `<filename>` as the genesis config file. Using Polaris config with VBFT consensus as default, if not set config flag.", } LogLevelFlag = cli.UintFlag{ Name: "loglevel", Usage: "Set the log level to `<level>` (0~6). 0:Debug 1:Info 2:Warn 3:Error 4:Fatal 5:Trace 6:MaxLevel", Value: config.DEFAULT_LOG_LEVEL, } DisableEventLogFlag = cli.BoolFlag{ Name: "disableeventlog", Usage: "If set disableeventlog flag, will not record event log output by smart contract", } WalletFileFlag = cli.StringFlag{ Name: "wallet,w", Value: config.DEFAULT_WALLET_FILE_NAME, Usage: "Use `<filename>` as the wallet", } ImportEnableFlag = cli.BoolFlag{ Name: "import", Usage: "Import blocks for file", } ImportFileFlag = cli.StringFlag{ Name: "importfile", Usage: "Path of import file", Value: DEFAULT_EXPORT_FILE, } ImportHeightFlag = cli.UintFlag{ Name: "importheight", Usage: "Import target block height, if not specified, import all of blocks in files", } DataDirFlag = cli.StringFlag{ Name: "datadir", Usage: "Using dir `<path>` to save block data", Value: config.DEFAULT_DATA_DIR, } //Consensus setting DisableConsensusFlag = cli.BoolFlag{ Name: "disableconsensus", Usage: "If set disableconsensus, will not start consensus module", } MaxTxInBlockFlag = cli.IntFlag{ Name: "maxtxinblock", Usage: "Max transaction number in block", Value: config.DEFAULT_MAX_TX_IN_BLOCK, } GasLimitFlag = cli.Uint64Flag{ Name: "gaslimit", Usage: "The gas limit required by the transaction pool for a new transaction", Value: config.DEFAULT_GAS_LIMIT, } GasPriceFlag = cli.Uint64Flag{ Name: "gasprice", Usage: "The gas price enforced by the transaction pool for a new transaction", Value: config.DEFAULT_GAS_PRICE, } //Test Mode setting EnableTestModeFlag = cli.BoolFlag{ Name: "testmode", Usage: "Runin test mode will start solo consensus. If enable testmode flag, ontology will ignore the consensus type config in genesis", } TestModeGenBlockTimeFlag = cli.UintFlag{ Name: "testmodegenblocktime", Usage: "Interval of generate block in test mode, unit(s)", Value: config.DEFAULT_GEN_BLOCK_TIME, } //P2P setting NetworkIdFlag = cli.UintFlag{ Name: "networkid", Usage: "P2P network id", Value: config.DEFAULT_NET_MAGIC, } NodePortFlag = cli.UintFlag{ Name: "nodeport", Usage: "P2P node listening port", Value: config.DEFAULT_NODE_PORT, } DualPortSupportFlag = cli.BoolFlag{ Name: "dualport", Usage: "Enable dual port support. Means p2p node port difference with consensus port", } ConsensusPortFlag = cli.UintFlag{ Name: "consensusport", Usage: "Consensus listening port", Value: config.DEFAULT_CONSENSUS_PORT, } // RPC settings RPCDisabledFlag = cli.BoolFlag{ Name: "disablerpc", Usage: "Disable Json rpc server", } RPCPortFlag = cli.UintFlag{ Name: "rpcport", Usage: "Json rpc server listening port", Value: config.DEFAULT_RPC_PORT, } RPCLocalEnableFlag = cli.BoolFlag{ Name: "localrpc", Usage: "Enable local rpc server", } RPCLocalProtFlag = cli.UintFlag{ Name: "rpclocalport", Usage: "Json rpc local server listening port", Value: config.DEFAULT_RPC_LOCAL_PORT, } //Websocket setting WsEnabledFlag = cli.BoolFlag{ Name: "ws", Usage: "Enable websocket server", } WsPortFlag = cli.UintFlag{ Name: "wsport", Usage: "Ws server listening port", Value: config.DEFAULT_WS_PORT, } //Restful setting RestfulEnableFlag = cli.BoolFlag{ Name: "rest", Usage: "Enable restful api server", } RestfulPortFlag = cli.UintFlag{ Name: "restport", Usage: "Restful server listening port", Value: config.DEFAULT_REST_PORT, } //Account setting AccountPassFlag = cli.StringFlag{ Name: "password,p", Hidden: true, Usage: "Specifies `<password>` for the account", } AccountAddressFlag = cli.StringFlag{ Name: "account,a", Usage: "Address of account. Address can be `<address>` in base58 code , label or index. if not specific, will use default account", } AccountDefaultFlag = cli.BoolFlag{ Name: "default,d", Usage: "Use default settings (equal to '-t ecdsa -b 256 -s SHA256withECDSA')", } AccountTypeFlag = cli.StringFlag{ Name: "type,t", Usage: "Specifies the `<key-type>` by signature algorithm.", } AccountKeylenFlag = cli.StringFlag{ Name: "bit-length,b", Usage: "Specifies the `<bit-length>` of key", } AccountSigSchemeFlag = cli.StringFlag{ Name: "signature-scheme,s", Usage: "Specifies the signature scheme `<scheme>`", } AccountSetDefaultFlag = cli.BoolFlag{ Name: "as-default,d", Usage: "Set the specified account to default", } AccountQuantityFlag = cli.UintFlag{ Name: "number,n", Value: 1, Usage: "Specifies the `<quantity>` of account to create.", } AccountSourceFileFlag = cli.StringFlag{ Name: "source,s", Usage: "Use `<filename>` as the source wallet file to import", } AccountLabelFlag = cli.StringFlag{ Name: "label,l", Usage: "Use `<label>` for the account", } AccountKeyFlag = cli.StringFlag{ Name: "key,k", Usage: "Use `<private key(hex encoding)>` of the account", } AccountVerboseFlag = cli.BoolFlag{ Name: "verbose,v", Usage: "Display accounts with details", } AccountChangePasswdFlag = cli.BoolFlag{ Name: "changepasswd", Usage: "Change account password", } AccountLowSecurityFlag = cli.BoolFlag{ Name: "low-security", Usage: "Change account to low protection strength for low performance devices", } AccountWIFFlag = cli.BoolFlag{ Name: "wif", Usage: "Import WIF keys from the source file specified by --source option", } //SmartContract setting ContractAddrFlag = cli.StringFlag{ Name: "address", Usage: "Contract address", } ContractStorageFlag = cli.BoolFlag{ Name: "needstore", Usage: "Is need use store in contract", } ContractCodeFileFlag = cli.StringFlag{ Name: "code", Usage: "File path of contract code `<path>`", } ContractNameFlag = cli.StringFlag{ Name: "name", Usage: "Specifies contract name to `<name>`", } ContractVersionFlag = cli.IntFlag{ Name: "version", Usage: "Specifies contract version to `<ver>`", } ContractAuthorFlag = cli.StringFlag{ Name: "author", Usage: "Set `<address>` as the contract owner", Value: "", } ContractEmailFlag = cli.StringFlag{ Name: "email", Usage: "Set `<email>` owner's email address", Value: "", } ContractDescFlag = cli.StringFlag{ Name: "desc", Usage: "Set `<text>` as the description of the contract", Value: "", } ContractParamsFlag = cli.StringFlag{ Name: "params", Usage: "Invoke contract parameters list. use comma ',' to split params, and must add type prefix to params. Param type support bytearray(hexstring), string, integer, boolean,For example: string:foo,int:0,bool:true; If parameter is an object array, enclose array with '[]'. For example: string:foo,[int:0,bool:true]", } ContractPrepareInvokeFlag = cli.BoolFlag{ Name: "prepare,p", Usage: "Prepare invoke contract without commit to ledger", } ContranctReturnTypeFlag = cli.StringFlag{ Name: "return", Usage: "Return type of contract.Return type support bytearray(hexstring), string, integer, boolean. If return type is object array, enclose array with '[]'. For example [string,int,bool,string]. Only prepare invoke need this flag.", } //information cmd settings BlockHashInfoFlag = cli.StringFlag{ Name: "hash", Usage: "Get block info by block hash", } BlockHeightInfoFlag = cli.UintFlag{ Name: "height", Usage: "Get block info by block height", } //Transfer setting TransactionAssetFlag = cli.StringFlag{ Name: "asset", Usage: "Asset to transfer `<ont|ong>`", Value: ASSET_ONT, } TransactionFromFlag = cli.StringFlag{ Name: "from", Usage: "`<address>` which sends the asset. address also can be index, label", } TransactionToFlag = cli.StringFlag{ Name: "to", Usage: "`<address>` which receives the asset", } TransactionAmountFlag = cli.StringFlag{ Name: "amount", Usage: "Specifies `<amount>` as the transferred amount", } TransactionHashFlag = cli.StringFlag{ Name: "hash", Usage: "Transaction <hash>", } TransactionGasPriceFlag = cli.Uint64Flag{ Name: "gasprice", Usage: "Gas price of transaction", Value: 0, } TransactionGasLimitFlag = cli.Uint64Flag{ Name: "gaslimit", Usage: "Gas limit of tansaction", Value: neovm.TRANSACTION_GAS, } //Asset setting ApproveAssetFromFlag = cli.StringFlag{ Name: "from", Usage: "Approve from address", } ApproveAssetToFlag = cli.StringFlag{ Name: "to", Usage: "Approve to address", } ApproveAssetFlag = cli.StringFlag{ Name: "asset", Usage: "Approve asset <ont|ong>", Value: "ont", } ApproveAmountFlag = cli.StringFlag{ Name: "amount", Usage: "Approve amount", } TransferFromAmountFlag = cli.StringFlag{ Name: "amount", Usage: "Transfer from amount", } TransferFromSenderFlag = cli.StringFlag{ Name: "sender", Usage: "Sender of transfer from transaction, if empty sender is to address", } //Cli setting CliEnableRpcFlag = cli.BoolFlag{ Name: "clirpc", Usage: "Enable cli rpc", } CliRpcPortFlag = cli.UintFlag{ Name: "cliport", Usage: "Cli rpc port", Value: config.DEFAULT_CLI_RPC_PORT, } //Export setting ExportFileFlag = cli.StringFlag{ Name: "file", Usage: "Path of export file", Value: DEFAULT_EXPORT_FILE, } ExportHeightFlag = cli.UintFlag{ Name: "height", Usage: "End block height to export, if height equal 0, mean export all block in current DB", Value: 0, } ExportSpeedFlag = cli.StringFlag{ Name: "speed", Usage: "Export block speed, <h|m|l>", Value: "m", } NonOptionFlag = cli.StringFlag{ Name: "option", Usage: "this command does not need option, please run directly", } )
Functions ¶
func BuildWasmVMInvokeCode ¶
func BuildWasmVMInvokeCode(smartcodeAddress common.Address, methodName string, paramType wasmvm.ParamType, version byte, params []interface{}) ([]byte, error)
BuildWasmVMInvokeCode return wasn vm invoke code
func DeployContract ¶
func FormatAssetAmount ¶
FormatAssetAmount return asset amount multiplied by math.Pow10(precision) to raw float string For example 1000000000123456789 => 1000000000.123456789
func GetAllowance ¶
func GetBalance ¶
func GetBalance(address string) (*httpcom.BalanceOfRsp, error)
Return balance of address in base58 code
func GetBlockCount ¶
func GetBlockData ¶
func GetFlagName ¶
GetFlagName deal with short flag, and return the flag name whether flag name have short name
func GetRawTransaction ¶
func GetSmartContractEvent ¶
func GetSmartContractEvent(txHash string) (*rpccommon.ExecuteNotify, error)
GetSmartContractEvent return smart contract event execute by invoke transaction by hex string code
func ImportBlocks ¶
func InvokeNativeContract ¶
func InvokeNeoVMContract ¶
func InvokeNeoVMContract( gasPrice, gasLimit uint64, signer *account.Account, smartcodeAddress common.Address, params []interface{}) (string, error)
Invoke neo vm smart contract. if isPreExec is true, the invoke will not really execute
func InvokeSmartContract ¶
InvokeSmartContract is low level method to invoke contact.
func InvokeWasmVMContract ¶
func InvokeWasmVMContract( gasPrice, gasLimit uint64, siger *account.Account, cversion byte, contractAddress common.Address, method string, paramType wasmvm.ParamType, params []interface{}) (string, error)
Invoke wasm smart contract methodName is wasm contract action name paramType is Json or Raw format version should be greater than 0 (0 is reserved for test)
func NewDeployCodeTransaction ¶
func NewDeployCodeTransaction(gasPrice, gasLimit uint64, code []byte, needStorage bool, cname, cversion, cauthor, cemail, cdesc string) *types.Transaction
NewDeployCodeTransaction return a smart contract deploy transaction instance
func NewNativeInvokeTransaction ¶
func NewNativeInvokeTransaction(gasPrice, gasLimit uint64, contractAddr common.Address, version byte, params []interface{}, funcAbi *abi.NativeContractFunctionAbi) (*types.Transaction, error)
func ParseAssetAmount ¶
ParseAssetAmount return raw float string to uint64 multiplied by math.Pow10(precision) For example 1000000000.123456789 => 1000000000123456789
func ParseNativeFuncParam ¶
func ParseNativeFuncParam(builder *neovm.ParamsBuilder, funName string, params []interface{}, paramsAbi []*abi.NativeContractParamAbi) error
func ParseNativeParamAddress ¶
func ParseNativeParamAddress(builder *neovm.ParamsBuilder, param string) error
func ParseNativeParamArray ¶
func ParseNativeParamArray(builder *neovm.ParamsBuilder, param interface{}, arrayAbi *abi.NativeContractParamAbi) error
func ParseNativeParamBool ¶
func ParseNativeParamBool(builder *neovm.ParamsBuilder, param string) error
func ParseNativeParamByte ¶
func ParseNativeParamByte(builder *neovm.ParamsBuilder, param string) error
func ParseNativeParamByteArray ¶
func ParseNativeParamByteArray(builder *neovm.ParamsBuilder, param string) error
func ParseNativeParamInteger ¶
func ParseNativeParamInteger(builder *neovm.ParamsBuilder, param string) error
func ParseNativeParamString ¶
func ParseNativeParamString(builder *neovm.ParamsBuilder, param string) error
func ParseNativeParamStruct ¶
func ParseNativeParamStruct(builder *neovm.ParamsBuilder, param interface{}, structAbi *abi.NativeContractParamAbi) error
func ParseNativeParamUint256 ¶
func ParseNativeParamUint256(builder *neovm.ParamsBuilder, param string) error
func ParseNativeParams ¶
func ParseNativeParams(builder *neovm.ParamsBuilder, params []interface{}, paramsAbi []*abi.NativeContractParamAbi) error
func ParseNeoVMContractReturnTypeBool ¶
ParseNeoVMContractReturnTypeBool return bool value of smart contract execute code.
func ParseNeoVMContractReturnTypeByteArray ¶
ParseNeoVMContractReturnTypeByteArray return []byte value of smart contract execute code.
func ParseNeoVMContractReturnTypeInteger ¶
ParseNeoVMContractReturnTypeInteger return integer value of smart contract execute code.
func ParseNeoVMContractReturnTypeString ¶
ParseNeoVMContractReturnTypeString return string value of smart contract execute code.
func ParseNeoVMInvokeParams ¶
func ParseNeoVMInvokeParams(rawParams []interface{}) ([]interface{}, error)
ParseNeoVMInvokeParams parse params to []interface, rawParams is array of NeoVMInvokeParam
func ParseParams ¶
ParseParams return interface{} array of encode params item. A param item compose of type and value, type can be: bytearray, string, int, bool Param type and param value split with ":", such as int:10 Param array can be express with "[]", such [int:10,string:foo], param array can be nested, such as [int:10,[int:12,bool:true]] A raw params example: string:foo,[int:0,[bool:true,string:bar],bool:false]
func ParseReturnValue ¶
ParseReturnValue return the value of rawReturnTypeStr type. Return type can be: bytearray, string, int, bool. Types can be split with "," each other, such as int,string,bool Type array can be express with "[]", such [int,string], param array can be nested, such as [int,[int,bool]]
func PrepareInvokeCodeNeoVMContract ¶
func PrepareInvokeCodeNeoVMContract(code []byte) (*cstates.PreExecResult, error)
func PrepareInvokeNeoVMContract ¶
func PrepareInvokeNeoVMContract( contractAddress common.Address, params []interface{}, ) (*cstates.PreExecResult, error)
func SendRawTransaction ¶
func SendRawTransaction(tx *types.Transaction) (string, error)
SendRawTransaction send a transaction to ontology network, and return hash of the transaction
func SignTransaction ¶
func SignTransaction(signer *account.Account, tx *types.Transaction) error
func Transfer ¶
func Transfer(gasPrice, gasLimit uint64, signer *account.Account, asset, from, to string, amount uint64) (string, error)
Transfer ont|ong from account to another account
func TransferFrom ¶
func TransferFromTx ¶
func TransferTx ¶
func ZLibCompress ¶
func ZLibDecompress ¶
Types ¶
type ExportBlockMetadata ¶
func NewExportBlockMetadata ¶
func NewExportBlockMetadata() *ExportBlockMetadata
func (*ExportBlockMetadata) Deserialize ¶
func (this *ExportBlockMetadata) Deserialize(r io.Reader) error
type JsonRpcRequest ¶
type JsonRpcRequest struct { Version string `json:"jsonrpc"` Id string `json:"id"` Method string `json:"method"` Params []interface{} `json:"params"` }
JsonRpcRequest object in rpc
type JsonRpcResponse ¶
type JsonRpcResponse struct { Error int64 `json:"error"` Desc string `json:"desc"` Result json.RawMessage `json:"result"` }
JsonRpcResponse object response for JsonRpcRequest
type NeoVMInvokeParam ¶
type NeoVMInvokeParam struct { Type string Value interface{} //string or []*NeoVMInvokeParam }
NeoVMInvokeParam use to express the param to invoke neovm contract. Type can be of array, bytearray, string, int and bool If type is one of bytearray, string, int and bool, value must be a string If Type is array, value must be []*NeoVMInvokeParam Example:
[]interface{}{ &NeoVMInvokeParam{ Type: "string", Value: "foo", }, &NeoVMInvokeParam{ Type: "array", Value: []interface{}{ &NeoVMInvokeParam{ Type: "int", Value: "0", }, &NeoVMInvokeParam{ Type: "bool", Value: "true", }, }, }, }