Kieran Prasch
81e401703c
Respond to RFCs for PR #2315 ; Combating CI timeouts for deployer CLI tests.
2020-09-30 08:12:26 -07:00
Kieran Prasch
b3462d2902
Show original and target contract version numbers during interactive upgrade
2020-09-29 21:45:45 -07:00
Kieran Prasch
1e63ce6b2c
Test touch ups
2020-09-29 20:40:15 -07:00
Kieran Prasch
e36d4da5d4
Deployment CLI plumbing adjustments: allow for domain-specefic pre-flight checks on upgrade.
2020-09-29 20:25:21 -07:00
Kieran Prasch
997a481738
Retire nucypher deploy contracts automated series test.
2020-09-29 20:25:21 -07:00
Kieran Prasch
b1da0270c9
--confirmations for manual proxy retargeting
2020-09-29 20:25:21 -07:00
Kieran Prasch
79c360a5b9
Eager pre-flight checks for deployer upgrade CLI.
2020-09-29 20:25:21 -07:00
Kieran Prasch
ea3584656c
Implements --confirmations for deployer transactions, including defaults.
2020-09-29 20:25:21 -07: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
K Prasch
1f5407e7d5
Merge pull request #2220 from KPrasch/signer
...
Trezorlib Transaction Signing
2020-09-24 08:06:54 -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
6a186eb385
Adjusts tests for hasty commitments
2020-09-21 11:05:06 -07:00
derekpierre
5552a84176
Rollback py-solc-x version and clean up imports.
2020-09-17 13:26:38 -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
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
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
vzotova
719b35889e
Stake command to control snapshots flag
2020-09-10 17:56:30 +03: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
jMyles
64d76046ca
Unused blocks, formatting, spelling - responses to the latest batch of RFCs.
2020-09-06 22:37:37 -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
vzotova
0d4058ad9d
Update tests for worklock deployers with new default parameters
2020-09-01 00:39:12 +03: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
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
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
b08f4236a5
Some missing twisted.logger.Logger imports
2020-08-28 18:00:19 +02:00
jMyles
24bc71be6e
Give Bob a chance to hit seednodes before bailing.
2020-08-27 13:16:36 -07:00
jMyles
255a4cb67c
Reworking test to assure that assertions are evaluated. While we're at it, also use verified open ports for the other tests.
2020-08-25 22:49:47 -07:00
vzotova
bb8610b744
StakingEscrow: force re-stake locking in `batchDeposit`
2020-08-25 18:50:42 +03:00
Kieran R. Prasch
93416e3bdd
Deprecates --runslow and supurflouous newlines.
2020-08-25 07:09:59 -07:00
jMyles
6498992f61
Deduplicating test; moving json validation utils to utils.
2020-08-24 09:42:15 -07:00
jMyles
0de8e25132
Merge commit from main (and merge candidate into main.)
2020-08-21 20:32:45 -07:00
jMyles
2a901559d9
We remove these elsewhere now.
2020-08-21 12:46:10 -07:00
vzotova
bfa2da251f
Apply suggestions from code review #2170
...
Co-authored-by: K Prasch <kieranprasch@gmail.com>
Co-authored-by: David Núñez <david@nucypher.com>
2020-08-20 00:49:20 +03:00
vzotova
bf76e2dd6a
Change registry field to representation of registry in Agent to highlight immutability of agents
2020-08-20 00:46:05 +03:00
vzotova
f85d1f6b69
Cashing registry id
2020-08-20 00:46:04 +03:00
vzotova
ef9665170d
Show staked tokens in current and next periods for status command
2020-08-20 00:46:04 +03:00
vzotova
bb6cee4613
Removed NO_WORKER_BONDED constant from `Staker.worker_address`, used NULL_ADDRESS instead
2020-08-20 00:46:03 +03:00
David Núñez
32e9210cd2
Merge pull request #2182 from fjarri/identical-names-fix
...
Help pytest handle the same test file name in this folder and in acceptance/blockchain/interfaces
2020-08-19 17:22:40 +02:00
Bogdan Opanchuk
6ad9a65d1a
Fix pytest discovery error - make the names of test files different
2020-08-18 22:28:56 -07:00
jMyles
0336e4d6e9
Mege commit uniting @fjarri sampling work and the rest of the async branch of TI. Done in order to provide a surface for blocking when sampling. See https://ptb.discordapp.com/channels/411401661714792449/411401661714792451/744248303528575037 .
2020-08-18 05:14:05 -07:00
derekpierre
1d367c9442
Ensure that created ursula is stopped once local keystore test is completed.
2020-08-18 05:10:44 -07:00
Kieran R. Prasch
0a52158b59
Annotate several TODOs.
2020-08-18 05:10:43 -07:00
jMyles
4057608e68
Checking for zombified Characters and failing modules that leave them in state.
2020-08-18 05:10:43 -07:00
Kieran Prasch
6dd188a6d8
Skip treasure map duplication test for now.
2020-08-18 05:10:43 -07:00
Kieran Prasch
e594ff5e8c
Test fixes: another manual tpower activation and attempt to fix tmap reference.
2020-08-18 05:10:43 -07:00
Kieran Prasch
73d1022c94
bifurcate 'network actors' tests.
2020-08-18 05:10:43 -07:00
Kieran Prasch
c6b56ed5e5
Skip geth integration alltogether until #2074
2020-08-18 05:10:43 -07:00
Bogdan Opanchuk
1a08b90294
Fix RNG seed in the sampling test to avoid low-probability random fails
2020-08-17 17:22:37 -07:00
K Prasch
697a6d3d02
Merge pull request #2056 from fjarri/sampling
...
Simplify staker sampling
2020-08-13 13:51:48 -07:00
Kieran Prasch
81b761d8bd
Unlock Ursula keyring in windingdown test.
2020-08-10 16:59:49 -07:00
vzotova
ada6824739
Command to merge stakes in agent, actor and CLI
2020-08-10 23:22:13 +03:00
vzotova
0d39b8a7b0
Flag to create and increase sub-stakes without deposit (using unlocked tokens)
2020-08-10 23:21:19 +03:00
jMyles
5547f397ba
Cleaning up some warts that were causing occasional failures.
2020-08-10 13:02:13 -07:00
jMyles
a6a873482f
Merging #2128 , #2137 , #2155 into a rebase over main (instead of three separate github-generated merge commits, which caused a conflict).
2020-08-10 13:01:47 -07:00
Kieran R. Prasch
041622c40d
Allow worker to attempt period commitment as part of it's initialization.
2020-08-10 12:52:31 -07:00
jMyles
2daa4a28e9
Lookup transacting_power in the typical public way.
2020-08-10 12:52:31 -07:00
jMyles
a2b04a00a1
Starting Bob's learning loop here (which is in keeping with reality) is needed now that we don't hardcode Bob's fixture nodes.
2020-08-10 12:52:31 -07:00
jMyles
dcbd882a9c
Lifecycle logic - shared in federated and blockchain modules.
2020-08-10 12:52:31 -07:00
jMyles
784814c4bb
Don't ship blockchain_bob with known_nodes; he can use his domain hardcoded nodes. Also, don't start his learning loop after the fact. This caused this test to pass even when he was unable to actually find the nodes in join_policy.
2020-08-10 12:52:31 -07:00
jMyles
866e0e2e0a
Skipping this test until we get the DB ( #2099 ) worked out.
2020-08-10 12:52:31 -07:00
jMyles
4e68f532b5
Felix doesn't use a network domain.
2020-08-10 12:52:31 -07:00
jMyles
5f3eca5b4b
Divide cli lifecycle tests into federated and decentralized in order to keep Ursula cache separated.
2020-08-10 12:52:31 -07:00
jMyles
16a7f90e27
Separating lifecycle tests for fixture hygiene.
2020-08-10 12:52:31 -07:00
jMyles
27b1f8fff9
Fixed imports for acumen.
2020-08-10 12:52:31 -07:00
jMyles
a0db5ffb15
Moving federated tests into their own module to keep the cache cleaner.
2020-08-10 12:52:30 -07:00
jMyles
3db10ae5ff
We're not connecting to seednodes at this stage anymore.
2020-08-10 12:49:26 -07:00
jMyles
98c63a2b54
Moving seednode loading logic inward.
2020-08-10 12:49:26 -07:00
jMyles
858345a58f
Getting --lonely through each Character where it's used.
2020-08-10 12:49:26 -07:00
jMyles
c6e004b870
Allow other Characters to be --lonely.
2020-08-10 12:49:26 -07:00
jMyles
b199830947
This will be the basis of a merge commit in the rebase of these tests. One of them reactivates Vladimir; the other fixes the method for testing the presence of Treasure Maps.
2020-08-10 12:49:25 -07:00
jMyles
babcd9174e
No need to reset checksum_address in Worker - let's try to set it in as few places as possible. #1547 .
2020-08-10 12:49:23 -07:00
jMyles
14165eb4db
Instead of the first Ursula, choose the first Ursula who is supposed to have the map.
2020-08-10 12:48:31 -07:00
jMyles
fdc69cd0ec
Changing references to acumen materials.
2020-08-10 12:47:33 -07:00
jMyles
fc3e105e54
Decentralized Alice controller test needs, you guessed it, DecentralizedTreasureMap.
2020-08-10 12:42:17 -07:00
jMyles
8f248100ff
Amonia needs to remember not to publish TreasureMaps, lest her gig being discovered too soon.
2020-08-10 12:42:17 -07:00
jMyles
1a20bbb151
Including a fake signature for the test.
2020-08-10 12:42:17 -07:00
jMyles
7a599d2c5c
Evolving the test to show how Bob can find a map much more quickly.
2020-08-10 12:42:17 -07:00
jMyles
6d60c66ec2
Alice now proposes Arrangements; Ursula considers them. Fixes #1924 .
2020-08-10 12:42:17 -07:00
jMyles
5e494a9101
Vlad's APIs are consistent with the real deal again.
2020-08-10 12:39:59 -07:00
jMyles
45b9062257
Test showing that Vladimir's efforts at posting a nonsense TreasureMap will fail.
2020-08-10 12:39:59 -07:00
jMyles
358c219b3b
Begining to test to show that blockchain signature prevents duplication.
2020-08-10 12:39:58 -07:00
Bogdan Opanchuk
f8c562ac57
Implement RFCs, part 2
2020-08-10 12:36:28 -07:00
Bogdan Opanchuk
9ca6c6d8fa
Expose staker sampling as an iterator (ish)
2020-08-10 12:36:26 -07:00
Bogdan Opanchuk
31715e55e4
Simplify staker sampling and add unit tests for proper sampling distribution
2020-08-10 12:33:45 -07:00
tuxxy
f5a7577290
Fix tests with new datastore changes
...
Use a unique temp directory for each blockchain_ursula and fix the flunky test query
Fix test_decentralized_grant test
Catch RecordNotFound errors in test_freerider_attacks
Provide a db_filepath for the test_collect_rewards_integration Ursula
Add unique temp directory for Ursula in test_collect_rewards_integration
2020-08-10 15:38:58 +02:00
tuxxy
cced32aa71
Store Workorders under a random ID, and catch DatastoreTransactionError in revoke
...
Fix typo in __prune_arrangements and catch RecordNotFound
Fix typo in docstring for build_docs
Remove reference to old datastore in test_freerider_attacks
2020-08-10 15:38:13 +02:00
tuxxy
52038e36dc
Create a MockLMDBEnv w/ fixture and fix up some tests
...
Patch the PolicyArrangement model to fix discovery phase tests
2020-08-10 15:38:12 +02:00
David Núñez
e438f2f944
Use our new Logger replacement everywhere
2020-08-08 03:14:45 +02:00
vzotova
1819d5a552
Solidity -> 0.7.0
2020-08-06 13:39:17 +03:00
vzotova
f2acc2adda
New command in CLI to increase value of specified sub-stake
2020-07-30 22:45:58 +03:00
vzotova
883f5350e4
Makes `Stake` validation stateless, new methods in `StakingEscrowAgent`, methods for increasing stake in `Staker`
2020-07-30 22:45:58 +03:00
vzotova
53674d7828
Changes `Stake` class to read-only representation of sub-stake
2020-07-30 22:45:57 +03:00
David Núñez
dadf3c81f6
Fix missing kwarg rename for NuCypherTokenAgent.approve_transfer()
2020-07-30 01:13:51 +02:00
David Núñez
001df65b3f
Use the YES_ENTER constant in test_deploy
2020-07-21 22:26:00 +02:00
David Núñez
76f0147602
Change approve token allowance flag from --approve to --allowance
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-07-21 22:15:43 +02:00
David Núñez
bd8692d6a4
Approve token allowances with `nucypher-deploy transfer-tokens --approve`
2020-07-21 22:15:43 +02:00
David Núñez
e83a815e47
Improve TokenAgent's API and usage of approve_transfer and increase_allowance
2020-07-21 22:15:43 +02:00
David Núñez
d1acf35002
Allow StakingEscrow initialization from a separate funding source
...
This is necessary to allow the DAO agent to activate the contract without necessarily giving tokens to the agent
2020-07-21 22:15:43 +02:00
Kieran R. Prasch
85806613f1
Allow worker to attempt period commitment as part of it's initialization.
2020-07-17 12:30:11 -07:00
jMyles
52a7bf3a8a
Lookup transacting_power in the typical public way.
2020-07-16 19:56:39 -07:00
jMyles
eaa6b94a49
Starting Bob's learning loop here (which is in keeping with reality) is needed now that we don't hardcode Bob's fixture nodes.
2020-07-16 19:56:39 -07:00
David Núñez
f5bee795d8
Merge pull request #2121 from mswilkison/worklock-terminology
...
Update WorkLock terminology
2020-07-15 17:46:44 +02:00
jMyles
9ba8e1dd35
Lifecycle logic - shared in federated and blockchain modules.
2020-07-09 22:29:45 -07:00
jMyles
86398eb43a
Don't ship blockchain_bob with known_nodes; he can use his domain hardcoded nodes. Also, don't start his learning loop after the fact. This caused this test to pass even when he was unable to actually find the nodes in join_policy.
2020-07-09 20:42:27 -07:00
jMyles
a7303702ab
Skipping this test until we get the DB ( #2099 ) worked out.
2020-07-09 20:40:41 -07:00
jMyles
e20a7a3a7b
Felix doesn't use a network domain.
2020-07-09 20:40:17 -07:00
jMyles
fb119720b5
Divide cli lifecycle tests into federated and decentralized in order to keep Ursula cache separated.
2020-07-09 20:39:57 -07:00
vzotova
073cbf345e
Refactor sub-stake status and selecting sub-stake
2020-07-09 16:33:25 +03:00
jMyles
8cf42aab03
Separating lifecycle tests for fixture hygiene.
2020-07-08 12:03:19 -07:00
David Núñez
10ef0a1d62
Rename WorkLock commands and options
2020-07-08 17:13:05 +02:00
vzotova
796f297e93
Refactor `StakeHolder.assimilate()`, now `StakeHolder` instances from configuration and from interactive mode are the same
2020-07-07 17:19:02 +03:00
jMyles
42cf16a0ee
Fixed imports for acumen.
2020-07-06 19:55:48 -07:00
vzotova
2d0be22dec
Apply suggestions from code review #2097
...
Co-authored-by: MacLane S Wilkison <maclane@nucypher.com>
Co-authored-by: David Núñez <david@nucypher.com>
Co-authored-by: K Prasch <kieran@nucypher.com>
2020-06-27 19:36:51 +03:00
jMyles
8c6cdf5145
Moving federated tests into their own module to keep the cache cleaner.
2020-06-25 23:18:14 -07:00
vzotova
0e46140e8f
Added `mint` command to CLI, added some warnings in `collecting-reward` command
2020-06-25 20:13:42 +03:00
jMyles
e845dc3b5b
We're not connecting to seednodes at this stage anymore.
2020-06-23 02:32:33 -07:00
jMyles
3c58a0ce60
Moving seednode loading logic inward.
2020-06-23 02:32:01 -07:00
jMyles
61b87f93bf
Getting --lonely through each Character where it's used.
2020-06-23 02:27:24 -07:00
jMyles
b491a613a1
Allow other Characters to be --lonely.
2020-06-22 21:19:20 -07:00
jMyles
97de268bd3
Merging the revised tests with the shim commit 31f001f2e
.
2020-06-22 20:31:33 -07:00
jMyles
1170c27b63
The connectivity problem will now manfiest itself as NotEnoughNodes, as Bob won't have learned in time to try to get the map.
2020-06-22 18:30:21 -07:00
jMyles
8e7d83134e
Instead of the first Ursula, choose the first Ursula who is supposed to have the map.
2020-06-22 18:30:21 -07:00
jMyles
d4807654b1
Changing references to acumen materials.
2020-06-22 18:30:20 -07:00
jMyles
568541dde8
Decentralized Alice controller test needs, you guessed it, DecentralizedTreasureMap.
2020-06-22 18:30:20 -07:00
jMyles
b821b81a89
Amonia needs to remember not to publish TreasureMaps, lest her gig being discovered too soon.
2020-06-22 18:30:20 -07:00
jMyles
5931076f77
Including a fake signature for the test.
2020-06-22 18:30:20 -07:00
jMyles
f5458fde6c
Evolving the test to show how Bob can find a map much more quickly.
2020-06-22 18:30:20 -07:00
jMyles
e576793e47
Alice now proposes Arrangements; Ursula considers them. Fixes #1924 .
2020-06-22 18:30:20 -07:00
jMyles
5ffb356558
Vlad's APIs are consistent with the real deal again.
2020-06-22 18:30:20 -07:00
jMyles
cca843d71b
Test showing that Vladimir's efforts at posting a nonsense TreasureMap will fail.
2020-06-22 18:30:20 -07:00
jMyles
5a4328f0cc
Begining to test to show that blockchain signature prevents duplication.
2020-06-22 18:30:20 -07:00
K Prasch
523ea089f4
Merge pull request #2098 from KPrasch/enrico
...
Simple Enrico file encryption
2020-06-21 07:42:38 -07:00
damon
0c8a9c3c5f
TODOs
2020-06-19 04:43:16 -07:00
Kieran Prasch
5909c37dd1
Apply API and interface updates to for enrico file handling.
2020-06-18 08:55:21 -07:00
damon
1409bb2a61
more test fixes message->plaintext
2020-06-17 11:33:24 -07:00
K Prasch
60043adffb
Merge pull request #2043 from cygnusv/block
...
Improve block confirmation logic and tests
2020-06-09 13:53:36 -07:00
K Prasch
7a81566ea9
Merge pull request #2072 from vzotova/hide-commit
...
Hide 'commit-next' from help messages
2020-06-08 19:07:38 -07:00
K Prasch
9fb5caee5f
Merge pull request #2079 from vzotova/spdx-license
...
SPDX license identifier in contracts
2020-06-08 15:07:43 -07:00
Kieran Prasch
442c9a7c30
Respond to RFCs in PR #2078
2020-06-08 14:53:41 -07:00
Kieran Prasch
e5c51507ed
Fixes #1909 - Use a decorator to skip tests on CI.
2020-06-08 10:41:56 -07:00
vzotova
4335664aca
SPDX license identifier in contracts
2020-06-08 15:52:54 +03:00