Comparing version 9.0.1 to 10.0.0
@@ -9,2 +9,28 @@ { | ||
}, | ||
"blockchain_parameters": { | ||
"base": "", | ||
"fields": { | ||
"base_per_transaction_net_usage": "uint32", | ||
"base_per_transaction_cpu_usage": "uint32", | ||
"base_per_action_cpu_usage": "uint32", | ||
"base_setcode_cpu_usage": "uint32", | ||
"per_signature_cpu_usage": "uint32", | ||
"per_lock_net_usage": "uint32", | ||
"context_free_discount_cpu_usage_num": "uint64", | ||
"context_free_discount_cpu_usage_den": "uint64", | ||
"max_transaction_cpu_usage": "uint32", | ||
"max_transaction_net_usage": "uint32", | ||
"max_block_cpu_usage": "uint64", | ||
"target_block_cpu_usage_pct": "uint32", | ||
"max_block_net_usage": "uint64", | ||
"target_block_net_usage_pct": "uint32", | ||
"max_transaction_lifetime": "uint32", | ||
"max_transaction_exec_time": "uint32", | ||
"max_authority_depth": "uint16", | ||
"max_inline_depth": "uint16", | ||
"max_inline_action_size": "uint32", | ||
"max_generated_transaction_count": "uint32", | ||
"max_transaction_delay": "uint32" | ||
} | ||
}, | ||
"claimrewards": { | ||
@@ -30,5 +56,5 @@ "base": "", | ||
"receiver": "account_name", | ||
"stake_net": "asset", | ||
"stake_cpu": "asset", | ||
"stake_storage": "asset" | ||
"stake_net_quantity": "asset", | ||
"stake_cpu_quantity": "asset", | ||
"stake_storage_quantity": "asset" | ||
} | ||
@@ -41,5 +67,5 @@ }, | ||
"to": "account_name", | ||
"net_weight": "asset", | ||
"cpu_weight": "asset", | ||
"storage_stake": "asset", | ||
"net_weight": "uint64", | ||
"cpu_weight": "uint64", | ||
"storage_stake": "uint64", | ||
"storage_bytes": "uint64" | ||
@@ -57,25 +83,4 @@ } | ||
"eosio_parameters": { | ||
"base": "", | ||
"base": "blockchain_parameters", | ||
"fields": { | ||
"base_per_transaction_net_usage": "uint32", | ||
"base_per_transaction_cpu_usage": "uint32", | ||
"base_per_action_cpu_usage": "uint32", | ||
"base_setcode_cpu_usage": "uint32", | ||
"per_signature_cpu_usage": "uint32", | ||
"per_lock_net_usage": "uint32", | ||
"context_free_discount_cpu_usage_num": "uint64", | ||
"context_free_discount_cpu_usage_den": "uint64", | ||
"max_transaction_cpu_usage": "uint32", | ||
"max_transaction_net_usage": "uint32", | ||
"max_block_cpu_usage": "uint64", | ||
"target_block_cpu_usage_pct": "uint32", | ||
"max_block_net_usage": "uint64", | ||
"target_block_net_usage_pct": "uint32", | ||
"max_transaction_lifetime": "uint32", | ||
"max_transaction_exec_time": "uint32", | ||
"max_authority_depth": "uint16", | ||
"max_inline_depth": "uint16", | ||
"max_inline_action_size": "uint32", | ||
"max_generated_transaction_count": "uint32", | ||
"max_transaction_delay": "uint32", | ||
"max_storage_size": "uint64", | ||
@@ -119,2 +124,10 @@ "percent_of_max_inflation_rate": "uint32", | ||
}, | ||
"refund_request": { | ||
"base": "", | ||
"fields": { | ||
"owner": "account_name", | ||
"request_time": "time", | ||
"amount": "uint64" | ||
} | ||
}, | ||
"regproducer": { | ||
@@ -162,5 +175,5 @@ "base": "", | ||
"receiver": "account_name", | ||
"unstake_net": "asset", | ||
"unstake_cpu": "asset", | ||
"unstake_bytes": "uint64" | ||
"unstake_net_quantity": "asset", | ||
"unstake_cpu_quantity": "asset", | ||
"unstake_storage_bytes": "uint64" | ||
} | ||
@@ -167,0 +180,0 @@ }, |
@@ -8,2 +8,3 @@ 'use strict'; | ||
var _require = require('eosjs-ecc'), | ||
Signature = _require.Signature, | ||
PublicKey = _require.PublicKey; | ||
@@ -104,3 +105,3 @@ | ||
signature: function signature() { | ||
return [variant(Signature)]; | ||
return [variant(SignatureType)]; | ||
} | ||
@@ -414,3 +415,3 @@ }; | ||
var Signature = function Signature(validation, baseTypes) { | ||
var SignatureType = function SignatureType(validation, baseTypes) { | ||
var signatureType = baseTypes.fixed_bytes65(validation); | ||
@@ -420,11 +421,11 @@ return { | ||
var signatureBuffer = signatureType.fromByteBuffer(b); | ||
var signature = ecc.Signature.from(signatureBuffer); | ||
var signature = Signature.from(signatureBuffer); | ||
return signature.toString(); | ||
}, | ||
appendByteBuffer: function appendByteBuffer(b, value) { | ||
var signature = ecc.Signature.from(value); | ||
var signature = Signature.from(value); | ||
signatureType.appendByteBuffer(b, signature.toBuffer()); | ||
}, | ||
fromObject: function fromObject(value) { | ||
var signature = ecc.Signature.from(value); | ||
var signature = Signature.from(value); | ||
return signature.toString(); | ||
@@ -434,5 +435,5 @@ }, | ||
if (validation.defaults && value == null) { | ||
return 'SIGnature..'; | ||
return 'SIG_K1_bas58signature..'; | ||
} | ||
var signature = ecc.Signature.from(value); | ||
var signature = Signature.from(value); | ||
return signature.toString(); | ||
@@ -439,0 +440,0 @@ } |
@@ -85,2 +85,11 @@ 'use strict'; | ||
}); | ||
it('signature', function () { | ||
var eos = Eos.Localnet(); | ||
var types = eos.fc.types; | ||
var SignatureType = types.signature(); | ||
var signatureString = 'SIG_K1_Jzdpi5RCzHLGsQbpGhndXBzcFs8vT5LHAtWLMxPzBdwRHSmJkcCdVu6oqPUQn1hbGUdErHvxtdSTS1YA73BThQFwV1v4G5'; | ||
assertSerializer(SignatureType, signatureString); | ||
}); | ||
}); | ||
@@ -178,3 +187,3 @@ | ||
var data = Fcbuffer.toBuffer(structs.transfer, value.data); | ||
var dataHex = //Number(data.length).toString(16) + | ||
var dataHex = //Number(data.length).toString(16) + | ||
data.toString('hex'); | ||
@@ -181,0 +190,0 @@ |
{ | ||
"name": "eosjs", | ||
"version": "9.0.1", | ||
"version": "10.0.0", | ||
"description": "General purpose library for the EOS blockchain.", | ||
@@ -39,3 +39,3 @@ "main": "lib/index.js", | ||
"camel-case": "^3.0.0", | ||
"coveralls": "^2.13.1", | ||
"coveralls": "^3.0.0", | ||
"eosjs-keygen": "^1.2.0", | ||
@@ -51,3 +51,3 @@ "jsdoc-to-markdown": "^3.0.4", | ||
"eosjs-api": "^5.0.0", | ||
"eosjs-ecc": "^3.0.2", | ||
"eosjs-ecc": "^4.0.0", | ||
"fcbuffer": "^2.1.5" | ||
@@ -54,0 +54,0 @@ }, |
@@ -11,4 +11,4 @@ [](https://travis-ci.org/EOSIO/eosjs) | ||
| --- | --- | --- | --- | --- | --- | | ||
| DAWN-2018-04-23-ALPHA | branch: DAWN-2018-04-23-ALPHA | `npm install eosjs@dawn3` (version 9) | branch: DAWN-2018-04-23-ALPHA | eosio/eos:DAWN-2018-04-23-ALPHA | [local docker](https://github.com/EOSIO/eosjs/tree/DAWN-2018-04-23-ALPHA/docker) | | ||
| dawn3 | branch: master | `npm install eosjs@8` (version 8) | branch: master | eosio/eos:dawn3x | [local docker](https://github.com/EOSIO/eosjs/tree/master/docker) | | ||
| DAWN-2018-04-23-ALPHA | tag: 9.x.x | `npm install eosjs@dawn3` (version 9) | tag: DAWN-2018-04-23-ALPHA | eosio/eos:DAWN-2018-04-23-ALPHA | [local docker](https://github.com/EOSIO/eosjs/tree/DAWN-2018-04-23-ALPHA/docker) | | ||
| dawn3 | tag: 8.x.x | `npm install eosjs@8` (version 8) | tag: dawn-v3.0.0 | eosio/eos:dawn3x | [local docker](https://github.com/EOSIO/eosjs/tree/master/docker) | | ||
| dawn2 | branch: dawn2 | `npm install eosjs` | branch: dawn-2.x | eosio/eos:dawn2x | http or [https://t1readonly.eos.io](https://t1readonly.eos.io/v1/chain/get_info) | | ||
@@ -15,0 +15,0 @@ |
130618
3162
+ Added@babel/runtime@7.6.0(transitive)
+ Addedbrowserify-aes@1.0.6(transitive)
+ Addedcreate-hash@1.1.3(transitive)
+ Addedcreate-hmac@1.1.6(transitive)
+ Addedecurve@1.0.5(transitive)
+ Addedeosjs-ecc@4.0.7(transitive)
+ Addedrandombytes@2.0.5(transitive)
+ Addedregenerator-runtime@0.13.11(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedcreate-hmac@1.1.7(transitive)
- Removedecurve@1.0.6(transitive)
- Removedeosjs-ecc@3.1.0(transitive)
- Removedrandombytes@2.1.0(transitive)
Updatedeosjs-ecc@^4.0.0