Commit Graph

79 Commits (04239ba53211e7cb025c72a16fb2a14b2995efbe)

Author SHA1 Message Date
David Núñez 1d750af1f9 Even more detailed tests for NuCypher logger: now with JSON observer 2020-10-30 20:55:56 +01:00
jMyles 38958f69ea Adding assertions to make sure that the error handler is working and emitting logs. 2020-10-28 08:40:33 -06:00
jMyles 4c17201be2 Moving tests over to unit package. 2020-10-28 07:21:39 -06:00
David Núñez 145ebdf8ef When sending TXs, allow to specify if we want to use a pending nonce or not 2020-10-19 18:59:28 +02:00
David Núñez 32a8d92320 Enriching web3 gas strategies: better error messages; expected confirmation times 2020-10-19 18:59:28 +02:00
David Núñez 9b87786510 Create a gas strategies module in nucypher.utilities 2020-10-19 18:52:22 +02:00
derekpierre e27f7ef482 Reduce the frequency of the prometheus metrics collection. 2020-10-16 13:06:28 -04:00
Kieran Prasch 4d86930ffd
Include missing lisence file to avoid precommit hook failures. 2020-10-14 15:33:07 -07:00
tuxxy 828a630c0e Remove treasure_map_id param from receive_treasure_map API endpoint
Fix up logic and add tests. Additionally, skip test_mass_treasure_map_placement
2020-10-13 10:01:37 +02:00
tuxxy 46e1fdd4c1 Create a TreasureMap datastore record and move model tests to test_datastore_models
Move test_datastore_models to unit tests
2020-10-13 10:01:37 +02:00
derekpierre c979083a81 Handle the inlcusive block range when filtering events. 2020-10-02 09:29:42 -04:00
K Prasch 7edcdc4f9e
Merge pull request #2287 from derekpierre/try-retry
Add default retry functionality to EthereumClients
2020-09-29 19:11:14 -07:00
derekpierre 3e8834e174 Code cleanup including reusing existing add_middleware function, and general cleanup of tests. 2020-09-25 09:43:04 -04:00
derekpierre 43ea03f022 Add retry middleware for Infura. 2020-09-24 21:45:38 -04:00
derekpierre 96084fb1b9 Remove infura:// scheme for infura specific provider - it isn't used. 2020-09-24 19:32:08 -04:00
derekpierre cc9ea699c9 Use Web3 middleware, instead of modifying web3 provider classes, to automatically retry requests based on response/exception returned.
Add unit test for AlchemyClient
2020-09-24 19:32:09 -04:00
derekpierre 7f362e0c24 Refactor name of retry callable parameter. 2020-09-24 19:32:08 -04:00
derekpierre 9e8df7509f Initial work for retry functionality with Alchemy providers. 2020-09-24 19:32:08 -04:00
David Núñez 0fb2cad64a Relocate keypairs.py from datastore to crypto 2020-09-24 20:28:27 +02:00
David Núñez 064972e800 Some unit tests reorganization 2020-09-24 20:27:13 +02:00
Kieran Prasch 11c8021363 Rework trezor transaction signing so that operations on the tx dictionary are non-mutative 2020-09-23 21:09:59 -07:00
Kieran Prasch fbda526cbd Prevent CI from importing libusb1 2020-09-23 13:28:28 -07:00
Kieran Prasch d1966a9451 Lazier evaluation of trezor derivation root 2020-09-23 13:08:23 -07:00
Kieran Prasch f526b72790 SLIP44 support and EIP-155 compliance for trezor testnet derivation paths 2020-09-22 21:19:24 -07:00
Kieran Prasch 69b6cd1cd0
Repond to RFCs in PR #2220 2020-09-18 13:59:49 -07:00
Kieran R. Prasch 765adb0310
Allow module-scoped trezor imports. 2020-09-17 13:26:38 -07:00
Kieran R. Prasch 8f6def2851
Respond to RFCs - Returns filesystem integration tests to thier home. 2020-09-17 13:26:38 -07:00
Kieran Prasch 6a0e1eeb17
Accomodate basic trezor signer URI scheme; Fixturize mocked trezorlib components 2020-09-17 13:26:38 -07:00
Kieran Prasch 9677b25fb3
Consolodate web3 signer unit tests; Improvements to trezor method decoration. 2020-09-17 13:26:38 -07:00
derekpierre d79b878c12
Added unit test for Trezor transaction format conversion. 2020-09-17 13:26:38 -07:00
Derek Pierre c10b9665ce
Merge pull request #2245 from derekpierre/prometheus-events-throttle
Batch/Throttle events filter results 1000 (default) blocks at a time for CommitmentMade prometheus metrics collector
2020-09-16 15:06:06 -04:00
David Núñez 822dad77de Add docstrings to the aragon module classes. Clarify usage of a DAORegistry exception 2020-09-15 10:04:42 +02:00
David Núñez e03c65b969 Unified approach to construct contract registries filepaths 2020-09-15 10:04:42 +02:00
David Núñez b29ab877ca Introducing a DAO registry to store the DAO instances' address and type
* The concept of "instance" here refers to the fact of the same Aragon contract being deployed several times with different uses
* This registry is per network (if it has a DAO), so it's in the same directory than the contract registry
2020-09-15 10:04:42 +02:00
David Núñez 0d8826ccb1 Test encoding of multiple actions 2020-09-15 10:04:42 +02:00
David Núñez 0100ce3b47 Test encoding of ContractFunction with a mock web3 contract 2020-09-15 10:04:42 +02:00
David Núñez a32a187416 Generalize action encoding to support also ContractFunctions and HexStr input 2020-09-15 10:04:42 +02:00
David Núñez d33e6fa5f2 Initial implementation and test of Aragon's CallScript encoding logic 2020-09-15 10:04:42 +02:00
derekpierre 7a9c57dcb4 Ensure that --metrics-port is specified when --prometheus is used when running ursula.
Added/Cleaned up some tests
2020-09-14 10:23:16 -04:00
derekpierre 0180bc8625 Add unit test for BaseMetricsCollector. 2020-09-14 10:22:29 -04:00
derekpierre 4d511f1267 Added unit test for estimating block number for a period. 2020-09-14 10:22:06 -04:00
jMyles 8dead4d333 In the fixture we trust. 2020-09-05 18:13:01 -07:00
jMyles de266be0cf Resolving import conflicts with main. 2020-08-31 01:07:27 -07:00
David Núñez 066fd8461d Renaming Oracles to Datafeeds 2020-08-28 18:00:19 +02:00
David Núñez 231c3c80f9 Better name for the EthereumClient method to get gas prices for transactions 2020-08-28 18:00:19 +02:00
David Núñez ab0369b56e Some touches to the Oracles module: relocate __repr__, improved reference to oracle exception, testing speed names
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-08-28 18:00:19 +02:00
David Núñez 342ac40e3e Testing Etherchain and Upvest oracle gas strategies 2020-08-28 18:00:19 +02:00
David Núñez d6c986d9bb First pass at integrating gas price oracles 2020-08-28 18:00:19 +02:00
David Núñez 1883624c44 New method EthereumClient.generate_gas_price. Gives a gas price according to current gas strategy 2020-08-28 18:00:19 +02:00
David Núñez 39404e4e5e Fixing bug in BlockchainInterface.get_gas_strategy() for callable inputs
Unit tests for this method
2020-08-28 18:00:19 +02:00