Commit Graph

2682 Commits (7b337c5bee79280f6f543a765a2234ee881fcb1e)

Author SHA1 Message Date
vzotova 7987115f75 StakingInterface: method to control snapshots 2020-09-28 12:45:52 +03:00
vzotova 4dcb414890 StakingEscrow: deposits from worklock allowed only after initialization 2020-09-28 12:12:35 +03:00
derekpierre 3e8834e174 Code cleanup including reusing existing add_middleware function, and general cleanup of tests. 2020-09-25 09:43:04 -04:00
David Núñez df06e3e1ee Pending change to single-domain from the Trezor PR 2020-09-25 11:53:08 +02: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 f96e82d95e Utility test to obtain versioned Ursulas' metadata hexstrings 2020-09-24 20:28:31 +02:00
David Núñez 3d6502468d Comment flaky assertion on test_discovery_phases. See #2016 2020-09-24 20:28:31 +02:00
David Núñez 279f07c9e4 Handle invalid metadata bytes in node storage. Unit tests. 2020-09-24 20:28:31 +02:00
David Núñez d4ac7ce351 Failing test showing that currently we learn about nodes from a different domain
Demonstrates #1843
2020-09-24 20:28:31 +02:00
David Núñez f42de3ae11 Some janitorial stuff 2020-09-24 20:28:31 +02: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
David Núñez 14c6307645 Include test for hardcoded version 2 node metadata bytestrings 2020-09-24 20:27:13 +02:00
David Núñez 148ba39698 Adapt Learning Loop version 1 test due to new incompatibility with current version. 2020-09-24 20:27:13 +02:00
David Núñez 84a53a790f Allow to define a sort of "compatibility range" for LL versions: anything outside it's either from the future or the past 2020-09-24 20:27:13 +02:00
jMyles 8d18272d77 Some syntactic cleanup suggested by @michwill in comments on #1868. 2020-09-24 20:27:13 +02:00
David Núñez 4cf7dcadc3 We're done with multiple domains, for the moment.
Closes #2144. Closes #1580.
2020-09-24 20:27:13 +02:00
David Núñez 7e21280a12 Include test for hardcoded version 1 node bytestrings. See #1869 2020-09-24 20:27:13 +02:00
David Núñez 2d2a7a7cde Janitorial stuff 2020-09-24 20:27:13 +02:00
K Prasch 1f5407e7d5
Merge pull request #2220 from KPrasch/signer
Trezorlib Transaction Signing
2020-09-24 08:06:54 -07: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 c89fa91eef Adjust integration test for trezor signing testnet flag. 2020-09-23 15:37:25 -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
Bogdan Opanchuk 7be50030aa Remove the reduced LMDB size fixture
It is not the cause of the bug, and it doesn't really test anything.
2020-09-22 16:55:37 -07:00
Bogdan Opanchuk 35944ad8de Add _finalize() method to Ursula to force releasing the datastore and call it in fixtures 2020-09-22 16:55:37 -07:00
Bogdan Opanchuk 0b001f262a Break a reference cycle in Ursula
1. Ursula -> rest_server -> rest_app -> closure -> Ursula
2. rest_app -> closure -> datastore, rest_app
2020-09-22 16:55:31 -07:00
K Prasch 287645fdfe
Merge pull request #2278 from KPrasch/fire-and-forget
Commit without haste
2020-09-21 13:59:22 -07:00
Kieran Prasch 6a186eb385
Adjusts tests for hasty commitments 2020-09-21 11:05:06 -07:00
Kieran Prasch 69b6cd1cd0
Repond to RFCs in PR #2220 2020-09-18 13:59:49 -07:00
vzotova e9b506ff92 StakingEscrow: enable wind down for claim from worklock 2020-09-18 14:34:54 +03: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
derekpierre 5552a84176
Rollback py-solc-x version and clean up imports. 2020-09-17 13:26:38 -07:00
Kieran Prasch 148528b24c
Signers is now a package 2020-09-17 13:26:33 -07:00
K Prasch 7a26900976
Merge pull request #2258 from vzotova/remove-force-lock
Remove force re-stake lock
2020-09-17 08:27:13 -07:00
David Núñez 85c14b0819
Merge pull request #2253 from derekpierre/ursula-limpia
Provide periodic feedback to user about still waiting for bonding and funding
2020-09-17 13:58:31 +02:00
vzotova d51ad8db93 Remove force re-stake lock 2020-09-17 13:54:57 +03: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
derekpierre ee718fce75 Provide periodic feedback to user about still waiting for bonding and funding on Worker startup. 2020-09-15 14:33:30 -04:00
David Núñez 86c0ec486b
Merge pull request #2242 from tuxxy/datastore-thread-lock
Add thread lock to MockLMDB
2020-09-15 19:13:58 +02:00
tuxxy 3ac32cd7ea Move the thread lock to a class variable 2020-09-15 12:56:33 +02: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 a4efbcf06b Use Solidity 0.7.0 in the DAO contracts so far 2020-09-15 10:04:42 +02:00
David Núñez a7bc85c075 Get rid of the Translators idea and use Agents instead ...
... but this time the agent only defines the methods for getting function calls (with the name preceded by _ to mark this), since we'll only use this contract indirectly
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
tuxxy 8cd9bccfef Respond to requests 2020-09-11 16:29:22 +02:00
tuxxy 423ed05a3a Add thread lock to MockLMDB 2020-09-11 14:42:19 +02:00
vzotova 719b35889e Stake command to control snapshots flag 2020-09-10 17:56:30 +03:00
K Prasch 23ee35c49c
Merge pull request #2233 from KPrasch/main
Keep pre commit & push passing
2020-09-09 13:27:48 -07:00
K Prasch 4f9db6a602
Merge pull request #2212 from vepkenez/static-noise
new static files service for Web Servers supported by latest hendrix version
2020-09-09 13:23:19 -07:00
Kieran R. Prasch bee1f7f5f8
Adds missing newline to mainnet registry 2020-09-08 13:09:27 -07:00
K Prasch 704a361fc3
Merge pull request #1741 from nucypher/†reasure-ïsland-@ss-pi®ate-ß̆çh
Treasure Island...
2020-09-08 06:25:31 -07:00
David Núñez 6927a053bb
Merge pull request #1811 from vzotova/pooling-contract
First iteration of pooling contract
2020-09-08 11:58:03 +02:00
jMyles 64d76046ca Unused blocks, formatting, spelling - responses to the latest batch of RFCs. 2020-09-06 22:37:37 -07:00
jMyles 8dead4d333 In the fixture we trust. 2020-09-05 18:13:01 -07:00
jMyles 2157fcdd6d Ensure that threadpool gets cleaned up. 2020-09-05 17:39:38 -07:00
jMyles 1415843f89 Treasuremap: Decentralized -=> Signed. 2020-09-05 11:46:34 -07:00
damon 77385c9b7c new static files supported by latest hendrix version 2020-09-03 12:16:52 -07:00
jMyles d2cb974bc1 Merge commit integrating the deployer test fixes in an effort to get that green check. 2020-08-31 15:31:53 -07:00
jMyles 9db84e1260 Passing testerchain as a kwarg. 2020-08-31 15:30:12 -07:00
jMyles ce0684c037 Admist reports from others on the team of having to code these values up... coding these values up. 2020-08-31 14:39:54 -07:00
vzotova 0d4058ad9d Update tests for worklock deployers with new default parameters 2020-09-01 00:39:12 +03:00
jMyles 3f07bb8b33 Use default value (5 percent) instead of overriding. 2020-08-31 14:28:47 -07:00
jMyles 670ac3b122 Better to just pass a tuple of nodes here; we don't need the living dict. 2020-08-31 13:48:48 -07:00
jMyles 4269150974 Using signal flag to check queue. Fixes #2190. 2020-08-31 12:41:44 -07:00
David Núñez 7d87a1f2c3 CLI defaults are tricky. See #2214
For the moment, we'll continue with the global default network being None, but setting `mainnet` as default for nucypher worklock and nucypher status
2020-08-31 20:58:17 +02:00
jMyles d1b2257797 This test actually performs better with random values - when every node takes the same amount of time to return, there's a much more likely chance of all of them returning at the same moment, and thus overshooting the mutex requirement for unblocking. 2020-08-31 10:10:43 -07:00
jMyles de266be0cf Resolving import conflicts with main. 2020-08-31 01:07:27 -07:00
jMyles 1f99d7c22c Making testerchain optional, and unused for federated lifecycle test. 2020-08-31 01:01:10 -07:00
David Núñez 066fd8461d Renaming Oracles to Datafeeds 2020-08-28 18:00:19 +02:00
David Núñez 7d5646e2f5 Fixing wrong provider URI in an ursula test 2020-08-28 18:00:19 +02:00
David Núñez 920ae58bc3 Setting a free gas strategy in tests that create a new blockchain interface 2020-08-28 18:00:19 +02:00
David Núñez caea0af82d Fix Multisig test, which only worked because gas strategies were being ignored 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 b08f4236a5 Some missing twisted.logger.Logger imports 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
vzotova 6fe4bfe8b1 Fix after rebasing 2020-08-28 12:43:57 +03:00
vzotova 626fb70f9c PoolingContract: owner can disable deposit 2020-08-28 12:10:31 +03:00
vzotova ba17feb926 PoolingContract: split tokens into reward and deposit 2020-08-28 12:10:30 +03:00