mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 11:38:12 +00:00
bumped version
This commit is contained in:
parent
aeb8baf915
commit
76f8798cb5
51
dist/web3-light.js
vendored
51
dist/web3-light.js
vendored
@ -2258,8 +2258,6 @@ var isAddress = function (address) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given string is a checksummed address
|
* Checks if the given string is a checksummed address
|
||||||
*
|
*
|
||||||
@ -2410,6 +2408,38 @@ var isJson = function (str) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if given string is a valid Ethereum block header bloom.
|
||||||
|
*
|
||||||
|
* @method isBloom
|
||||||
|
* @param {String} hex encoded bloom filter
|
||||||
|
* @return {Boolean}
|
||||||
|
*/
|
||||||
|
var isBloom = function (bloom) {
|
||||||
|
if (!/^(0x)?[0-9a-f]{512}$/i.test(bloom)) {
|
||||||
|
return false;
|
||||||
|
} else if (/^(0x)?[0-9a-f]{512}$/.test(bloom) || /^(0x)?[0-9A-F]{512}$/.test(bloom)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if given string is a valid log topic.
|
||||||
|
*
|
||||||
|
* @method isTopic
|
||||||
|
* @param {String} hex encoded topic
|
||||||
|
* @return {Boolean}
|
||||||
|
*/
|
||||||
|
var isTopic = function (topic) {
|
||||||
|
if (!/^(0x)?[0-9a-f]{64}$/i.test(topic)) {
|
||||||
|
return false;
|
||||||
|
} else if (/^(0x)?[0-9a-f]{64}$/.test(topic) || /^(0x)?[0-9A-F]{64}$/.test(topic)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
padLeft: padLeft,
|
padLeft: padLeft,
|
||||||
padRight: padRight,
|
padRight: padRight,
|
||||||
@ -2438,12 +2468,14 @@ module.exports = {
|
|||||||
isObject: isObject,
|
isObject: isObject,
|
||||||
isBoolean: isBoolean,
|
isBoolean: isBoolean,
|
||||||
isArray: isArray,
|
isArray: isArray,
|
||||||
isJson: isJson
|
isJson: isJson,
|
||||||
|
isBloom: isBloom,
|
||||||
|
isTopic: isTopic,
|
||||||
};
|
};
|
||||||
|
|
||||||
},{"./sha3.js":19,"bignumber.js":"bignumber.js","utf8":85}],21:[function(require,module,exports){
|
},{"./sha3.js":19,"bignumber.js":"bignumber.js","utf8":85}],21:[function(require,module,exports){
|
||||||
module.exports={
|
module.exports={
|
||||||
"version": "0.18.3"
|
"version": "0.18.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
},{}],22:[function(require,module,exports){
|
},{}],22:[function(require,module,exports){
|
||||||
@ -2957,7 +2989,7 @@ var ContractFactory = function (eth, abi) {
|
|||||||
if (options.value > 0) {
|
if (options.value > 0) {
|
||||||
var constructorAbi = abi.filter(function (json) {
|
var constructorAbi = abi.filter(function (json) {
|
||||||
return json.type === 'constructor' && json.inputs.length === args.length;
|
return json.type === 'constructor' && json.inputs.length === args.length;
|
||||||
})[0] || {};
|
})[0] || {};
|
||||||
|
|
||||||
if (!constructorAbi.payable) {
|
if (!constructorAbi.payable) {
|
||||||
throw new Error('Cannot send value to non-payable constructor');
|
throw new Error('Cannot send value to non-payable constructor');
|
||||||
@ -5296,6 +5328,13 @@ var methods = function () {
|
|||||||
inputFormatter: [formatters.inputTransactionFormatter]
|
inputFormatter: [formatters.inputTransactionFormatter]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var signTransaction = new Method({
|
||||||
|
name: 'signTransaction',
|
||||||
|
call: 'eth_signTransaction',
|
||||||
|
params: 1,
|
||||||
|
inputFormatter: [formatters.inputTransactionFormatter]
|
||||||
|
});
|
||||||
|
|
||||||
var sign = new Method({
|
var sign = new Method({
|
||||||
name: 'sign',
|
name: 'sign',
|
||||||
call: 'eth_sign',
|
call: 'eth_sign',
|
||||||
@ -5364,6 +5403,7 @@ var methods = function () {
|
|||||||
call,
|
call,
|
||||||
estimateGas,
|
estimateGas,
|
||||||
sendRawTransaction,
|
sendRawTransaction,
|
||||||
|
signTransaction,
|
||||||
sendTransaction,
|
sendTransaction,
|
||||||
sign,
|
sign,
|
||||||
compileSolidity,
|
compileSolidity,
|
||||||
@ -5439,7 +5479,6 @@ Eth.prototype.isSyncing = function (callback) {
|
|||||||
|
|
||||||
module.exports = Eth;
|
module.exports = Eth;
|
||||||
|
|
||||||
|
|
||||||
},{"../../utils/config":18,"../../utils/utils":20,"../contract":25,"../filter":29,"../formatters":30,"../iban":33,"../method":36,"../namereg":44,"../property":45,"../syncing":48,"../transfer":49,"./watches":43}],39:[function(require,module,exports){
|
},{"../../utils/config":18,"../../utils/utils":20,"../contract":25,"../filter":29,"../formatters":30,"../iban":33,"../method":36,"../namereg":44,"../property":45,"../syncing":48,"../transfer":49,"./watches":43}],39:[function(require,module,exports){
|
||||||
/*
|
/*
|
||||||
This file is part of web3.js.
|
This file is part of web3.js.
|
||||||
|
8
dist/web3-light.min.js
vendored
8
dist/web3-light.min.js
vendored
File diff suppressed because one or more lines are too long
51
dist/web3.js
vendored
51
dist/web3.js
vendored
@ -2258,8 +2258,6 @@ var isAddress = function (address) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given string is a checksummed address
|
* Checks if the given string is a checksummed address
|
||||||
*
|
*
|
||||||
@ -2410,6 +2408,38 @@ var isJson = function (str) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if given string is a valid Ethereum block header bloom.
|
||||||
|
*
|
||||||
|
* @method isBloom
|
||||||
|
* @param {String} hex encoded bloom filter
|
||||||
|
* @return {Boolean}
|
||||||
|
*/
|
||||||
|
var isBloom = function (bloom) {
|
||||||
|
if (!/^(0x)?[0-9a-f]{512}$/i.test(bloom)) {
|
||||||
|
return false;
|
||||||
|
} else if (/^(0x)?[0-9a-f]{512}$/.test(bloom) || /^(0x)?[0-9A-F]{512}$/.test(bloom)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if given string is a valid log topic.
|
||||||
|
*
|
||||||
|
* @method isTopic
|
||||||
|
* @param {String} hex encoded topic
|
||||||
|
* @return {Boolean}
|
||||||
|
*/
|
||||||
|
var isTopic = function (topic) {
|
||||||
|
if (!/^(0x)?[0-9a-f]{64}$/i.test(topic)) {
|
||||||
|
return false;
|
||||||
|
} else if (/^(0x)?[0-9a-f]{64}$/.test(topic) || /^(0x)?[0-9A-F]{64}$/.test(topic)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
padLeft: padLeft,
|
padLeft: padLeft,
|
||||||
padRight: padRight,
|
padRight: padRight,
|
||||||
@ -2438,12 +2468,14 @@ module.exports = {
|
|||||||
isObject: isObject,
|
isObject: isObject,
|
||||||
isBoolean: isBoolean,
|
isBoolean: isBoolean,
|
||||||
isArray: isArray,
|
isArray: isArray,
|
||||||
isJson: isJson
|
isJson: isJson,
|
||||||
|
isBloom: isBloom,
|
||||||
|
isTopic: isTopic,
|
||||||
};
|
};
|
||||||
|
|
||||||
},{"./sha3.js":19,"bignumber.js":"bignumber.js","utf8":85}],21:[function(require,module,exports){
|
},{"./sha3.js":19,"bignumber.js":"bignumber.js","utf8":85}],21:[function(require,module,exports){
|
||||||
module.exports={
|
module.exports={
|
||||||
"version": "0.18.3"
|
"version": "0.18.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
},{}],22:[function(require,module,exports){
|
},{}],22:[function(require,module,exports){
|
||||||
@ -2957,7 +2989,7 @@ var ContractFactory = function (eth, abi) {
|
|||||||
if (options.value > 0) {
|
if (options.value > 0) {
|
||||||
var constructorAbi = abi.filter(function (json) {
|
var constructorAbi = abi.filter(function (json) {
|
||||||
return json.type === 'constructor' && json.inputs.length === args.length;
|
return json.type === 'constructor' && json.inputs.length === args.length;
|
||||||
})[0] || {};
|
})[0] || {};
|
||||||
|
|
||||||
if (!constructorAbi.payable) {
|
if (!constructorAbi.payable) {
|
||||||
throw new Error('Cannot send value to non-payable constructor');
|
throw new Error('Cannot send value to non-payable constructor');
|
||||||
@ -5296,6 +5328,13 @@ var methods = function () {
|
|||||||
inputFormatter: [formatters.inputTransactionFormatter]
|
inputFormatter: [formatters.inputTransactionFormatter]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var signTransaction = new Method({
|
||||||
|
name: 'signTransaction',
|
||||||
|
call: 'eth_signTransaction',
|
||||||
|
params: 1,
|
||||||
|
inputFormatter: [formatters.inputTransactionFormatter]
|
||||||
|
});
|
||||||
|
|
||||||
var sign = new Method({
|
var sign = new Method({
|
||||||
name: 'sign',
|
name: 'sign',
|
||||||
call: 'eth_sign',
|
call: 'eth_sign',
|
||||||
@ -5364,6 +5403,7 @@ var methods = function () {
|
|||||||
call,
|
call,
|
||||||
estimateGas,
|
estimateGas,
|
||||||
sendRawTransaction,
|
sendRawTransaction,
|
||||||
|
signTransaction,
|
||||||
sendTransaction,
|
sendTransaction,
|
||||||
sign,
|
sign,
|
||||||
compileSolidity,
|
compileSolidity,
|
||||||
@ -5439,7 +5479,6 @@ Eth.prototype.isSyncing = function (callback) {
|
|||||||
|
|
||||||
module.exports = Eth;
|
module.exports = Eth;
|
||||||
|
|
||||||
|
|
||||||
},{"../../utils/config":18,"../../utils/utils":20,"../contract":25,"../filter":29,"../formatters":30,"../iban":33,"../method":36,"../namereg":44,"../property":45,"../syncing":48,"../transfer":49,"./watches":43}],39:[function(require,module,exports){
|
},{"../../utils/config":18,"../../utils/utils":20,"../contract":25,"../filter":29,"../formatters":30,"../iban":33,"../method":36,"../namereg":44,"../property":45,"../syncing":48,"../transfer":49,"./watches":43}],39:[function(require,module,exports){
|
||||||
/*
|
/*
|
||||||
This file is part of web3.js.
|
This file is part of web3.js.
|
||||||
|
10
dist/web3.js.map
vendored
10
dist/web3.js.map
vendored
File diff suppressed because one or more lines are too long
10
dist/web3.min.js
vendored
10
dist/web3.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "0.18.3"
|
"version": "0.18.4"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* jshint ignore:start */
|
/* jshint ignore:start */
|
||||||
Package.describe({
|
Package.describe({
|
||||||
name: 'ethereum:web3',
|
name: 'ethereum:web3',
|
||||||
version: '0.18.3',
|
version: '0.18.4',
|
||||||
summary: 'Ethereum JavaScript API, middleware to talk to a ethreum node over RPC',
|
summary: 'Ethereum JavaScript API, middleware to talk to a ethreum node over RPC',
|
||||||
git: 'https://github.com/ethereum/ethereum.js',
|
git: 'https://github.com/ethereum/ethereum.js',
|
||||||
// By default, Meteor will default to using README.md for documentation.
|
// By default, Meteor will default to using README.md for documentation.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "web3",
|
"name": "web3",
|
||||||
"namespace": "ethereum",
|
"namespace": "ethereum",
|
||||||
"version": "0.18.3",
|
"version": "0.18.4",
|
||||||
"description": "Ethereum JavaScript API, middleware to talk to a ethereum node over RPC",
|
"description": "Ethereum JavaScript API, middleware to talk to a ethereum node over RPC",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user