eosjs-json
Advanced tools
Comparing version 1.4.1 to 2.0.0
@@ -5,6 +5,6 @@ { | ||
"params": { | ||
"transaction_id": "FixedBytes32" | ||
"transaction_id": "fixed_bytes32" | ||
}, | ||
"results": { | ||
"transaction_id": "FixedBytes32", | ||
"transaction_id": "fixed_bytes32", | ||
"transaction": "Transaction" | ||
@@ -17,9 +17,9 @@ } | ||
"params": { | ||
"account_name": "AccountName", | ||
"skip_seq": "Optional<UInt32>", | ||
"num_seq": "Optional<UInt32>" | ||
"account_name": "account_name", | ||
"skip_seq": "optional<uint32>", | ||
"num_seq": "optional<uint32>" | ||
}, | ||
"results": { | ||
"transactions": "OrderedTransaction[]", | ||
"time_limit_exceeded_error": "Optional<Bool>" | ||
"transactions": "vector<ordered_transaction_results>", | ||
"time_limit_exceeded_error": "optional<bool>" | ||
} | ||
@@ -31,6 +31,6 @@ }, | ||
"params": { | ||
"public_key": "PublicKey" | ||
"public_key": "public_key" | ||
}, | ||
"results": { | ||
"account_names": "AccountName[]" | ||
"account_names": "vector[name]" | ||
} | ||
@@ -42,8 +42,8 @@ }, | ||
"params": { | ||
"controlling_account": "AccountName" | ||
"controlling_account": "name" | ||
}, | ||
"results": { | ||
"controlled_accounts": "AccountName[]" | ||
"controlled_accounts": "vector[name]" | ||
} | ||
} | ||
} |
@@ -6,8 +6,9 @@ { | ||
"results": { | ||
"head_block_num": "UInt32", | ||
"head_block_id": "FixedBytes32", | ||
"head_block_time": "Time", | ||
"head_block_producer": {"_id": "UInt16"}, | ||
"recent_slots": "String", | ||
"participation_rate": "Double" | ||
"head_block_num": "uint32", | ||
"last_irreversible_block_num": "uint32", | ||
"head_block_id": "fixed_bytes32", | ||
"head_block_time": "time", | ||
"head_block_producer": {"_id": "uint16"}, | ||
"recent_slots": "string", | ||
"participation_rate": "double" | ||
} | ||
@@ -19,11 +20,15 @@ }, | ||
"params": { | ||
"block_num_or_id": "String" | ||
"block_num_or_id": "string" | ||
}, | ||
"results": { | ||
"previous":"UInt32", | ||
"timestamp":"Time", | ||
"transaction_merkle_root":"UInt32", | ||
"producer": "UInt16", | ||
"producer_signature":"Signature", | ||
"cycles": "Thread[]" | ||
"previous":"uint32", | ||
"timestamp":"time", | ||
"transaction_merkle_root":"uint32", | ||
"producer": "uint16", | ||
"producer_changes":"map<account_name, account_name>[]", | ||
"producer_signature":"signature", | ||
"cycles": "thread[]", | ||
"id": "fixed_bytes33", | ||
"block_num": "uint32", | ||
"ref_block_prefix": "uint32" | ||
}, | ||
@@ -38,12 +43,12 @@ "errors": { | ||
"params": { | ||
"name": "Name" | ||
"account_name": "name" | ||
}, | ||
"results": { | ||
"name": "Name", | ||
"eos_balance": "UInt64", | ||
"staked_balance": "UInt64", | ||
"unstaking_balance": "UInt64", | ||
"last_unstaking_time": "Time", | ||
"producer": "Optional<producer_info>", | ||
"abi": "Optional<Abi>" | ||
"account_name": "name", | ||
"eos_balance": "uint64", | ||
"staked_balance": "uint64", | ||
"unstaking_balance": "uint64", | ||
"last_unstaking_time": "time", | ||
"permissions": "vector<permission>", | ||
"producer": "optional<producer_info>" | ||
} | ||
@@ -55,9 +60,9 @@ }, | ||
"params": { | ||
"name": "Name" | ||
"account_name": "name" | ||
}, | ||
"results": { | ||
"name": "Name", | ||
"wast": "String", | ||
"code_hash": "FixedBytes32", | ||
"abi": "Optional<Abi>" | ||
"account_name": "name", | ||
"wast": "string", | ||
"code_hash": "fixed_bytes32", | ||
"abi": "optional<abi>" | ||
} | ||
@@ -69,17 +74,18 @@ }, | ||
"params": { | ||
"scope": "Name", | ||
"code": "Name", | ||
"table": "Name", | ||
"json": { "type": "Bool", "default": false}, | ||
"lower_bound": {"type": "UInt64", "default": "0"}, | ||
"upper_bound": {"type": "UInt64", "default": "-1"}, | ||
"limit": {"type": "UInt32", "default": "10"} | ||
"json": { "type": "bool", "default": false}, | ||
"table_key": "string", | ||
"scope": "name", | ||
"code": "name", | ||
"table": "name", | ||
"lower_bound": {"type": "uint64", "default": "0"}, | ||
"upper_bound": {"type": "uint64", "default": "-1"}, | ||
"limit": {"type": "uint32", "default": "10"} | ||
}, | ||
"results": { | ||
"rows": { | ||
"type": "Vector", | ||
"type": "vector", | ||
"doc": "one row per item, either encoded as hex String or JSON object" | ||
}, | ||
"more": { | ||
"type": "Bool", | ||
"type": "bool", | ||
"doc": "true if last element" | ||
@@ -93,10 +99,10 @@ } | ||
"params": { | ||
"code": "Name", | ||
"action": "Name", | ||
"args": "Bytes" | ||
"code": "name", | ||
"action": "name", | ||
"args": "bytes" | ||
}, | ||
"results": { | ||
"binargs": "Bytes", | ||
"required_scope": "Name[]", | ||
"required_auth": "Name[]" | ||
"binargs": "bytes", | ||
"required_scope": "name[]", | ||
"required_auth": "name[]" | ||
} | ||
@@ -108,10 +114,10 @@ }, | ||
"params": { | ||
"code": "Name", | ||
"action": "Name", | ||
"binargs": "Bytes" | ||
"code": "name", | ||
"action": "name", | ||
"binargs": "bytes" | ||
}, | ||
"results": { | ||
"args": "Bytes", | ||
"required_scope": "Name[]", | ||
"required_auth": "Name[]" | ||
"args": "bytes", | ||
"required_scope": "name[]", | ||
"required_auth": "name[]" | ||
} | ||
@@ -122,6 +128,6 @@ }, | ||
"params": { | ||
"transaction": "Transaction", | ||
"available_keys": "Set[PublicKey]" | ||
"transaction": "transaction", | ||
"available_keys": "set[public_key]" | ||
}, | ||
"results": "Set[PublicKey]" | ||
"results": "Set[public_key]" | ||
}, | ||
@@ -132,3 +138,3 @@ | ||
"params": { | ||
"block": "Block" | ||
"block": "signed_block" | ||
}, | ||
@@ -140,6 +146,7 @@ "results": null | ||
"brief": "Attempts to push the transaction into the pending queue.", | ||
"params": { | ||
"signed_transaction": "SignedTransaction" | ||
}, | ||
"results": null | ||
"params": "signed_transaction", | ||
"results": { | ||
"transaction_id": "fixed_bytes32", | ||
"processed": "bytes" | ||
} | ||
}, | ||
@@ -149,8 +156,6 @@ | ||
"brief": "Attempts to push transactions into the pending queue.", | ||
"params": { | ||
"signed_transaction": "SignedTransaction[]" | ||
}, | ||
"results": null | ||
"params": "signed_transaction[]", | ||
"results": "vector[push_transaction.results]" | ||
} | ||
} |
/* eslint-env mocha */ | ||
const assert = require('assert') | ||
const Fcbuffer = require('fcbuffer') | ||
const schema = require('./schema') | ||
@@ -18,4 +16,6 @@ describe('syntax', () => { | ||
const Fcbuffer = require('fcbuffer') | ||
const schema = require('./schema') | ||
describe('fcbuffer', () => { | ||
it('parses', () => { | ||
@@ -22,0 +22,0 @@ const fcbuffer = Fcbuffer(schema) |
{ | ||
"name": "eosjs-json", | ||
"version": "1.4.1", | ||
"version": "2.0.0", | ||
"description": "Information about the EOS blockchain in the JSON file format.", | ||
@@ -5,0 +5,0 @@ "dependencies": {}, |
@@ -12,3 +12,3 @@ [](https://travis-ci.org/EOSIO/eosjs-json) | ||
Build and run [eosd](https://github.com/eosio/eos) or direct requests to a public testnet or production node. | ||
Run [eosd](https://github.com/eosio/eos) or direct requests to a public node. | ||
@@ -25,3 +25,4 @@ Usage: | ||
These operations make up the blockchain. Because these are signed and stored in binary format a serialization and deserialization library is needed. | ||
These operations update the blockchain. Because these are signed and stored in | ||
binary format a serialization and deserialization library is needed. | ||
@@ -28,0 +29,0 @@ * [fcbuffer](https://github.com/EOSIO/eosjs-fcbuffer) - JavaScript |
{ | ||
"Name": "UInt64", | ||
"Checksum": "FixedBytes32", | ||
"Signature": "FixedBytes65", | ||
"PublicKey": "FixedBytes33", | ||
"MessageType": "FixedString16", | ||
"GeneratedTransactionID": "UInt32", | ||
"BlockID": "Checksum", | ||
"TransactionID": "Checksum", | ||
"AssetSymbol": "UInt64", | ||
"ShareType": "Int64", | ||
"FieldName": "String", | ||
"Asset": { | ||
"name": "uint64", | ||
"checksum": "fixed_bytes32", | ||
"signature": "fixed_bytes65", | ||
"public_key": "fixed_bytes33", | ||
"message_type": "fixed_string16", | ||
"asset_symbol": "uint64", | ||
"share_type": "int64", | ||
"field_name": "string", | ||
"asset": { | ||
"fields": { | ||
"amount": "ShareType", | ||
"symbol": "AssetSymbol" | ||
"amount": "share_type", | ||
"symbol": "asset_symbol" | ||
} | ||
}, | ||
"Struct": { | ||
"struct_t": { | ||
"fields": { | ||
"name": "TypeName", | ||
"base": "TypeName", | ||
"fields": "Map<FieldName, TypeName>" | ||
"name": "type_name", | ||
"base": "type_name", | ||
"fields": "map<field_name, type_name>" | ||
} | ||
} | ||
} |
{ | ||
"AccountName": "Name", | ||
"PermissionName": "Name", | ||
"FuncName": "Name", | ||
"MessageName": "FixedString32", | ||
"TypeName": "FixedString32", | ||
"AccountPermission": { | ||
"account_name": "name", | ||
"permission_name": "name", | ||
"func_name": "name", | ||
"message_name": "fixed_string32", | ||
"type_name": "fixed_string32", | ||
"account_permission": { | ||
"fields": { | ||
"account": "AccountName", | ||
"permission": "PermissionName" | ||
"account": "account_name", | ||
"permission": "permission_name" | ||
} | ||
}, | ||
"Message": { | ||
"message": { | ||
"fields": { | ||
"code": "AccountName", | ||
"type": "FuncName", | ||
"authorization": "AccountPermission[]", | ||
"data": "Bytes" | ||
"code": "account_name", | ||
"type": "func_name", | ||
"authorization": "account_permission[]", | ||
"data": "bytes" | ||
}, | ||
@@ -27,16 +27,16 @@ "docs": { | ||
}, | ||
"AccountPermissionWeight": { | ||
"account_permission_weight": { | ||
"fields": { | ||
"permission": "AccountPermission", | ||
"weight": "UInt16" | ||
"permission": "account_permission", | ||
"weight": "uint16" | ||
} | ||
}, | ||
"Transaction": { | ||
"transaction": { | ||
"fields": { | ||
"refBlockNum": "UInt16", | ||
"refBlockPrefix": "UInt32", | ||
"expiration": "Time", | ||
"scope": "AccountName[]", | ||
"readscope": "AccountName[]", | ||
"messages": "Message[]" | ||
"ref_block_num": "uint16", | ||
"ref_block_prefix": "uint32", | ||
"expiration": "time", | ||
"scope": "account_name[]", | ||
"read_scope": "account_name[]", | ||
"messages": "message[]" | ||
}, | ||
@@ -47,71 +47,75 @@ "docs": { | ||
}, | ||
"SignedTransaction": { | ||
"base": "Transaction", | ||
"signed_transaction": { | ||
"base": "transaction", | ||
"fields": { | ||
"signatures": "Signature[]" | ||
"signatures": "signature[]" | ||
} | ||
}, | ||
"KeyPermissionWeight": { | ||
"key_permission_weight": { | ||
"fields": { | ||
"key": "PublicKey", | ||
"weight": "UInt16" | ||
"key": "public_key", | ||
"weight": "uint16" | ||
} | ||
}, | ||
"Authority": { | ||
"authority": { | ||
"fields": { | ||
"threshold": "UInt32", | ||
"keys": "KeyPermissionWeight[]", | ||
"accounts": "AccountPermissionWeight[]" | ||
"threshold": "uint32", | ||
"keys": "key_permission_weight[]", | ||
"accounts": "account_permission_weight[]" | ||
} | ||
}, | ||
"BlockchainConfiguration": { | ||
"blockchain_configuration": { | ||
"fields": { | ||
"maxBlockSize": "UInt32", | ||
"targetBlockSize": "UInt32", | ||
"maxStorageSize": "UInt64", | ||
"electedPay": "ShareType", | ||
"runnerUpPay": "ShareType", | ||
"minEosBalance": "ShareType", | ||
"maxTrxLifetime": "UInt32", | ||
"authDepthLimit": "UInt16", | ||
"maxTrxRuntime": "UInt32", | ||
"inlineDepthLimit": "UInt16", | ||
"maxInlineMsgSize": "UInt32", | ||
"maxGenTrxSize": "UInt32" | ||
"max_blk_size": "uint32", | ||
"target_blk_size": "uint32", | ||
"max_storage_size": "uint64", | ||
"elected_pay": "share_type", | ||
"runner_up_pay": "share_type", | ||
"min_eos_balance": "share_type", | ||
"max_trx_lifetime": "uint32", | ||
"auth_depth_limit": "uint16", | ||
"max_trx_runtime": "uint32", | ||
"in_depth_limit": "uint16", | ||
"max_in_msg_size": "uint32", | ||
"max_gen_trx_size": "uint32" | ||
}, | ||
"docs": { | ||
"in_depth_limit": "inline depth limit", | ||
"max_in_msg_size": "max inline message size" | ||
} | ||
}, | ||
"TypeDef": { | ||
"type_def": { | ||
"fields": { | ||
"newTypeName": "TypeName", | ||
"type": "TypeName" | ||
"new_type_name": "type_name", | ||
"type": "type_name" | ||
} | ||
}, | ||
"Action": { | ||
"action": { | ||
"fields": { | ||
"action": "Name", | ||
"type": "TypeName" | ||
"action_name": "name", | ||
"type": "type_name" | ||
} | ||
}, | ||
"Table": { | ||
"table": { | ||
"fields": { | ||
"table": "Name", | ||
"indextype": "TypeName", | ||
"keynames": "TypeName[]", | ||
"keytypes": "TypeName[]", | ||
"type": "TypeName" | ||
"table_name": "name", | ||
"index_type": "type_name", | ||
"key_names": "field_name[]", | ||
"key_types": "type_name[]", | ||
"type": "type_name" | ||
}, | ||
"docs": { | ||
"table": "the name of the table", | ||
"indextype": "the kind of index, i64, i128i128, etc", | ||
"keynames": "names for the keys defined by keytype", | ||
"keytype": "the meaning / type of key parameters, how to convert binary key to json", | ||
"table_name": "the name of the table", | ||
"index_type": "the kind of index, i64, i128i128, etc", | ||
"key_names": "names for the keys defined by keytype", | ||
"key_types": "the meaning / type of key parameters, how to convert binary key to json", | ||
"type": "the meaning / type of the binary data stored in this table" | ||
} | ||
}, | ||
"Abi": { | ||
"abi": { | ||
"fields": { | ||
"types": "TypeDef[]", | ||
"structs": "Struct[]", | ||
"actions": "Action[]", | ||
"tables": "Table[]" | ||
"types": "type_def[]", | ||
"structs": "struct_t[]", | ||
"actions": "action[]", | ||
"tables": "table[]" | ||
} | ||
@@ -121,6 +125,6 @@ }, | ||
"fields": { | ||
"from": "AccountName", | ||
"to": "AccountName", | ||
"amount": "UInt64", | ||
"memo": "String" | ||
"from": "account_name", | ||
"to": "account_name", | ||
"amount": "uint64", | ||
"memo": "string" | ||
}, | ||
@@ -131,7 +135,12 @@ "docs": { | ||
}, | ||
"nonce": { | ||
"fields": { | ||
"value": "string" | ||
} | ||
}, | ||
"lock": { | ||
"fields": { | ||
"from": "AccountName", | ||
"to": "AccountName", | ||
"amount": "ShareType" | ||
"from": "account_name", | ||
"to": "account_name", | ||
"amount": "share_type" | ||
} | ||
@@ -141,4 +150,4 @@ }, | ||
"fields": { | ||
"account": "AccountName", | ||
"amount": "ShareType" | ||
"account": "account_name", | ||
"amount": "share_type" | ||
} | ||
@@ -148,4 +157,4 @@ }, | ||
"fields": { | ||
"account": "AccountName", | ||
"amount": "ShareType" | ||
"account": "account_name", | ||
"amount": "share_type" | ||
} | ||
@@ -155,8 +164,8 @@ }, | ||
"fields": { | ||
"creator": "AccountName", | ||
"name": "AccountName", | ||
"owner": "Authority", | ||
"active": "Authority", | ||
"recovery": "Authority", | ||
"deposit": "Asset" | ||
"creator": "account_name", | ||
"name": "account_name", | ||
"owner": "authority", | ||
"active": "authority", | ||
"recovery": "authority", | ||
"deposit": "asset" | ||
} | ||
@@ -166,14 +175,14 @@ }, | ||
"fields": { | ||
"account": "AccountName", | ||
"vmtype": "UInt8", | ||
"vmversion": "UInt8", | ||
"code": "Bytes", | ||
"abi": "Abi" | ||
"account": "account_name", | ||
"vm_type": "uint8", | ||
"vm_version": "uint8", | ||
"code": "bytes", | ||
"code_abi": "abi" | ||
}, | ||
"docs": { | ||
"account": "the account that is handling the message", | ||
"vmtype": "the virtual machine type", | ||
"vmversion": "the virtual machine version", | ||
"vm_type": "the virtual machine type", | ||
"vm_version": "the virtual machine version", | ||
"code": "the apply", | ||
"abi": "the interface description of the code" | ||
"code_abi": "the interface description of the code" | ||
} | ||
@@ -183,5 +192,5 @@ }, | ||
"fields": { | ||
"name": "AccountName", | ||
"key": "PublicKey", | ||
"configuration": "BlockchainConfiguration" | ||
"name": "account_name", | ||
"key": "public_key", | ||
"configuration": "blockchain_configuration" | ||
} | ||
@@ -191,5 +200,5 @@ }, | ||
"fields": { | ||
"voter": "AccountName", | ||
"producer": "AccountName", | ||
"approve": "Int8" | ||
"voter": "account_name", | ||
"producer": "account_name", | ||
"approve": "int8" | ||
}, | ||
@@ -204,4 +213,4 @@ "docs": { | ||
"fields": { | ||
"stakeholder": "AccountName", | ||
"proxy": "AccountName" | ||
"stakeholder": "account_name", | ||
"proxy": "account_name" | ||
}, | ||
@@ -215,6 +224,6 @@ "docs": { | ||
"fields": { | ||
"account": "AccountName", | ||
"permission": "PermissionName", | ||
"parent": "PermissionName", | ||
"authority": "Authority" | ||
"account": "account_name", | ||
"permission": "permission_name", | ||
"parent": "permission_name", | ||
"new_authority": "authority" | ||
} | ||
@@ -224,4 +233,4 @@ }, | ||
"fields": { | ||
"account": "AccountName", | ||
"permission": "PermissionName" | ||
"account": "account_name", | ||
"permission": "permission_name" | ||
} | ||
@@ -231,6 +240,6 @@ }, | ||
"fields": { | ||
"account": "AccountName", | ||
"code": "AccountName", | ||
"type": "FuncName", | ||
"requirement": "PermissionName" | ||
"account": "account_name", | ||
"code": "account_name", | ||
"type": "func_name", | ||
"requirement": "permission_name" | ||
}, | ||
@@ -245,5 +254,5 @@ "docs": { | ||
"fields": { | ||
"account": "AccountName", | ||
"code": "AccountName", | ||
"type": "FuncName" | ||
"account": "account_name", | ||
"code": "account_name", | ||
"type": "func_name" | ||
}, | ||
@@ -250,0 +259,0 @@ "docs": { |
17197
18
577
38