aion-web3-core-method
Advanced tools
Comparing version 1.1.6 to 1.2.5-beta.2
{ | ||
"name": "aion-web3-core-method", | ||
"namespace": "aion", | ||
"version": "1.1.6", | ||
"version": "1.2.5-beta.2", | ||
"description": "Creates the methods on the web3 modules. This is an internal package.", | ||
@@ -10,9 +10,9 @@ "repository": "https://github.com/aionnetwork/aion_web3/tree/master/packages/web3-core-method", | ||
"dependencies": { | ||
"aion-web3-core-helpers": "1.1.6", | ||
"aion-web3-core-promievent": "1.1.6", | ||
"aion-web3-core-subscriptions": "1.1.6", | ||
"aion-web3-utils": "1.1.6", | ||
"aion-web3-core-helpers": "1.2.5-beta.2", | ||
"aion-web3-core-promievent": "1.2.5-beta.2", | ||
"aion-web3-core-subscriptions": "1.2.5-beta.2", | ||
"aion-web3-utils": "1.2.5-beta.2", | ||
"underscore": "1.8.3" | ||
}, | ||
"gitHead": "6cdda35e1124fb489ee6809dcd068c85ed1dfa01" | ||
"gitHead": "713ab735d0b43801b38aee7561f504564058a105" | ||
} |
@@ -42,4 +42,4 @@ /* | ||
if(!options.call || !options.name) { | ||
throw new Error('When creating a method you need to provide at least the "name" and "call" property.'); | ||
} | ||
throw errors.MissingProperty('name" or "call'); | ||
}; | ||
@@ -263,3 +263,3 @@ this.name = options.name; | ||
if (!receipt.blockHash) { | ||
throw new Error('Receipt missing or blockHash null'); | ||
throw errors.MissingProperty('receipt or block hash'); | ||
} | ||
@@ -304,4 +304,3 @@ | ||
} | ||
utils._fireError(new Error('The transaction receipt didn\'t contain a contract address.'), defer.eventEmitter, defer.reject); | ||
utils._fireError(errors.MissingProperty('contract address'), defer.eventEmitter, defer.reject); | ||
return; | ||
@@ -333,3 +332,3 @@ } | ||
} else { | ||
utils._fireError(new Error('The contract code couldn\'t be stored, please check your gas limit.'), defer.eventEmitter, defer.reject); | ||
utils._fireError(errors.ContractCodeStorageError(), defer.eventEmitter, defer.reject); | ||
} | ||
@@ -365,8 +364,5 @@ | ||
if (receipt.status === false || receipt.status === '0x0') { | ||
utils._fireError(new Error("Transaction has been reverted by the EVM:\n" + receiptJSON), | ||
defer.eventEmitter, defer.reject); | ||
utils._fireError(errors.RevertedTransaction(receiptJSON), defer.eventEmitter, defer.reject); | ||
} else { | ||
utils._fireError( | ||
new Error("Transaction ran out of gas. Please provide more gas:\n" + receiptJSON), | ||
defer.eventEmitter, defer.reject); | ||
utils._fireError(errors.TransactionOutOfGas(receiptJSON), defer.eventEmitter, defer.reject); | ||
} | ||
@@ -392,3 +388,3 @@ } | ||
promiseResolved = true; | ||
utils._fireError(new Error('Transaction was not mined within' + POLLINGTIMEOUT + ' seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!'), defer.eventEmitter, defer.reject); | ||
utils._fireError(errors.TransactionTimeout(POLLINGTIMEOUT, 'seconds'), defer.eventEmitter, defer.reject); | ||
} | ||
@@ -399,3 +395,3 @@ } else { | ||
promiseResolved = true; | ||
utils._fireError(new Error('Transaction was not mined within 50 blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!'), defer.eventEmitter, defer.reject); | ||
utils._fireError(errors.TransactionTimeout(50, 'blocks'), defer.eventEmitter, defer.reject); | ||
} | ||
@@ -409,3 +405,3 @@ } | ||
promiseResolved = true; | ||
utils._fireError({message: 'Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.', data: err}, defer.eventEmitter, defer.reject); | ||
utils._fireError(errors.FailedSubscription(err), defer.eventEmitter, defer.reject); | ||
} | ||
@@ -412,0 +408,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
56092
488
2
+ Addedaion-lib@1.2.5-beta.2(transitive)
+ Addedaion-web3-core-helpers@1.2.5-beta.2(transitive)
+ Addedaion-web3-core-promievent@1.2.5-beta.2(transitive)
+ Addedaion-web3-core-subscriptions@1.2.5-beta.2(transitive)
+ Addedaion-web3-utils@1.2.5-beta.2(transitive)
- Removedaion-lib@1.1.6(transitive)
- Removedaion-web3-core-helpers@1.1.6(transitive)
- Removedaion-web3-core-promievent@1.1.6(transitive)
- Removedaion-web3-core-subscriptions@1.1.6(transitive)
- Removedaion-web3-utils@1.1.6(transitive)
Updatedaion-web3-utils@1.2.5-beta.2