Drazen Urch
95b6ac50be
Type safe bounds ( #1179 )
...
* Type safe bounds
* Debug get_all_delegations
* List raw delegations
* query all delegation values
* Get all keys and values
* Differentiate on len
* Clean up duplicates
* Remove stop gap
* Cleanup, fix paged query key
* Reduce queries required to get all delegations
* Sandbox migration
* Delete migration
2022-03-30 12:20:03 +02:00
Drazen Urch
c2938e0672
Fix delegation paging ( #1174 )
...
* Fix delegation paging and tests
* Circuit breaker, upgrade storage and cosmwasm
* beta6
* Cleanup delegation events
2022-03-29 17:02:56 +02:00
Tommy Verrall
8d7428923a
Update binaries to rc version
2022-03-28 15:32:31 +01:00
Jędrzej Stuczyński
ab9c892f8a
Updated BBBC contract tests dependencies
2022-03-25 14:03:51 +00:00
durch
e1efcda3dd
Test last paged page
2022-03-25 11:09:46 +01:00
Drazen Urch
59056a22c5
Feature/upgrade rewarding sandbox ( #1167 )
...
* Add init_epoch msg
* Use 64BE ctr variant
* Remove query_all_delegations
* Comment migration
2022-03-25 10:57:49 +01:00
durch
ecd566432b
Improve pagination test
2022-03-24 10:50:23 +01:00
durch
5eb2249ad5
Regenerate mixnet json schema
2022-03-23 20:40:24 +01:00
durch
ddc09bbb2e
Additive rewarding test stub
2022-03-22 12:09:41 +01:00
Drazen Urch
071720c1cc
Cleanup ( #1155 )
2022-03-21 18:24:40 +01:00
Drazen Urch
592b3b3bb1
Pending endpoints ( #1150 )
...
* Add QueryPendingDelegationEvents QueryMsg
* Add pending_delegation_events to nymd client
* Add pending delegation events to wallet
* Get rid of double epoch accounting
* Fix reward saving
* Try batching operations to reduce fees
* Bundle all transactions into one
* make nice
2022-03-21 10:07:51 +01:00
Drazen Urch
63dd26ca1b
Add Query endpoints for calculating rewards ( #1152 )
2022-03-18 15:44:26 +01:00
Drazen Urch
f24d6e224d
Change accumulated reward to Option, migrate delegations ( #1147 )
...
* Change accumulated reward to Option, migrate delegations
* Remove interval from the validator cache
* Add info to db errors
* Remove interval fetch from the contract
* Rework epochs
* Fix undelegation errors
* Emit error event instead of error
* make no-clippy
* Fix clippy lints
2022-03-17 12:03:05 +01:00
Drazen Urch
929a780315
Fix delegated free calculation ( #1145 )
2022-03-11 21:44:28 +01:00
Drazen Urch
b30f680549
Refactor to a lazy rewarding system ( #1127 )
...
* Remove eager operator and delegator rewarding
* Add mixnodes snapshoting
* Add Intervals map, getter and setter
* Refactor reward params
* Refactor MixnodeToReward
* Persist node reward params and results on chain
* Update cw-storage-plus to 0.12.1
* Refactor delegation storage
* Compound delegator reward command
* Compound delegator reward command
* Add defered delegate and undelegate
* Compound on behalf command
* Scale calculations to epoch
* Rename interval -> epoch where practical
* Store epochs on chain
* Cleanup first pass
* Adapt reporting to lazy rewarding
* make clippy --all
2022-03-09 14:28:16 +01:00
Jon Häggblad
acb1aa8df0
network-defaults: make defaults a bit more dynamic
...
By attaching network defaults to the selector enum, we can get them
either from DEFAULT_NETWORK or a selector passed as a dependency.
Hopefully this opens up some venues for being able to toggle between
networks at runtime.
2022-03-03 13:26:53 +01:00
Jędrzej Stuczyński
448aba0917
Fixed dependencies in mixnet contract tests
2022-03-02 12:51:58 +00:00
Jędrzej Stuczyński
9462bc726d
Feature-locking parts of common/crypto
2022-03-02 10:34:27 +00:00
Jędrzej Stuczyński
2a539dc3cc
Upgrade blake3 to v1.3.1
2022-03-01 18:50:05 +00:00
Jon Häggblad
18837220f4
Make wallet denom dynamic
...
Making denom dynamic enables coin transfers on other nets than the
default sandbox net, such as mainnet.
2022-03-01 12:20:27 +01:00
durch
6af0dbd1da
Add AccountInfo to wallet
2022-02-28 18:24:40 +01:00
dependabot[bot]
229329ae4c
Bump follow-redirects in /contracts/basic-bandwidth-generation ( #1117 )
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 09:56:10 +00:00
Jędrzej Stuczyński
af4801ac47
Removes migration code ( #1071 )
2022-02-22 09:54:57 +00:00
Drazen Urch
2caf79fba0
Feature/vesting get current period ( #1111 )
...
* Add GetCurrentPeriod Msg
* Add a few more query endpoints
* Enrich original vesting response
2022-02-14 12:13:55 +01:00
Drazen Urch
938eb2d0f0
Add UpdateMixnodeConfigOnBehalf to vestng contract ( #1091 )
...
* Add UpdateMixnodeConfigOnBehalf
* Rename one_u* function
2022-02-11 12:15:00 +01:00
dependabot[bot]
ede51fa589
Bump simple-get in /contracts/basic-bandwidth-generation ( #1110 )
...
Bumps [simple-get](https://github.com/feross/simple-get ) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/feross/simple-get/releases )
- [Commits](https://github.com/feross/simple-get/compare/v2.8.1...v2.8.2 )
---
updated-dependencies:
- dependency-name: simple-get
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-11 11:03:26 +00:00
Drazen Urch
ba233b6016
Fix hardcoded period logic ( #1104 )
2022-02-11 09:44:15 +01:00
Tommy Verrall
1903938035
Merge pull request #1094 from nymtech/feature/minor-rewarding-adjustments
...
Emit original bond as part of rewarding event
2022-02-03 14:58:13 +00:00
mfahampshire
bb646c4f6a
updated token contract address
2022-02-03 14:43:37 +01:00
Jędrzej Stuczyński
4c65ef3a2f
Emit original bond as part of rewarding event
2022-02-03 09:52:44 +00:00
Jon Häggblad
e24f8aa219
Fix rust 2018 idioms warnings ( #1092 )
...
* Fix elided-lifetimes-in-paths warnings
Enabling `-Wrust-2018-idioms` generates `-Welided-lifetimes-in-paths`
warnings about hidden lifetime parameters in types being deprecated
* Unused extern crate
2022-02-02 20:47:28 +01:00
Drazen Urch
2b84b5472b
Prevent contract overwriting ( #1090 )
2022-02-02 13:34:41 +01:00
Drazen Urch
fe33df723b
Tag contract errors, and print out lines for easier QA ( #1084 )
...
* Tag contract errors, and print out lines for easier QA
* Allow updating mixnet address by admin
* Add reply endpoint, and unbond callback
* Extract vesting messages
* Wrap up
2022-02-01 18:10:33 +01:00
mfahampshire
3a0e499199
added verification args for bandwidth generator with nymt
2022-02-01 17:39:05 +01:00
mfahampshire
ce23662270
added NYMT contract address kv pairs
2022-02-01 17:38:44 +01:00
Jon Häggblad
c6e41ca3f3
Update to rust edition 2021 everywhere ( #1086 )
...
* chore: update to rust edition 2021 everywhere
* validator-api: simplify into_iter call in rust 2021
2022-02-01 13:28:02 +01:00
Drazen Urch
538616af54
Feature/flexible vesting + utility queries ( #1083 )
...
* Flexible vesting schedules
* Utility queries
* make vesting specification fields public
* Address review comments
Co-authored-by: Tommy Verrall <tommyvez@protonmail.com >
2022-01-28 14:07:07 +01:00
dependabot[bot]
6333042826
Bump @openzeppelin/contracts in /contracts/basic-bandwidth-generation ( #1082 )
...
Bumps [@openzeppelin/contracts](https://github.com/OpenZeppelin/openzeppelin-contracts ) from 4.3.1 to 4.4.2.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-contracts/releases )
- [Changelog](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/CHANGELOG.md )
- [Commits](https://github.com/OpenZeppelin/openzeppelin-contracts/compare/v4.3.1...v4.4.2 )
---
updated-dependencies:
- dependency-name: "@openzeppelin/contracts"
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-28 10:31:26 +00:00
Drazen Urch
5f4d56c1d8
Rework vesting contract storage ( #1061 )
...
* Rework storage
* Handle may_load failures
* Set ADMIN on init
* Use strings for storage keys
* Add GetAccount
* Move amount to msg
* Use iterators everywhere
* mock test properly
* Configure mixnet contract on init
* Updated Cargo.lock
2022-01-27 21:47:28 +01:00
Mx
390e58f603
Merge pull request #1022 from nymtech/feature/testnet-deploy-scripts
...
Feature/testnet deploy scripts
2022-01-27 16:42:04 +01:00
mfahampshire
6cf16d9c8f
fixed merge clash
2022-01-27 16:36:20 +01:00
mfahampshire
9bfda6a254
prettified contract addresses json
2022-01-25 19:11:50 +01:00
mfahampshire
147be7afd9
increased logging, added localhost config to hardhat for gas approximation
2022-01-25 19:10:17 +01:00
mfahampshire
0a2ce7fa6d
added new builds
2022-01-25 18:22:44 +01:00
mfahampshire
72f24c2c9d
added new tests for killswitch
2022-01-25 18:22:36 +01:00
mfahampshire
f5b5d139ac
added killswitch for credential generation
2022-01-25 18:22:25 +01:00
Jędrzej Stuczyński
f7574924a8
Mixnet Contract constants extraction ( #1060 )
...
* Extracted constants that could realistically be controlled by governance to constants.rs
Also made interval control be more explicit in the contract
* Extracted active set work factor to a constant
* Required type changes in wallet code
* [ci skip] Generate TS types
* Missing change in test code
Co-authored-by: jstuczyn <jstuczyn@users.noreply.github.com >
2022-01-25 16:46:46 +00:00
Jędrzej Stuczyński
655ff9bffb
De-'float'-ing Interval (Display impl + serde) ( #1065 )
...
* Updated time to 0.3.6
* Changed Display impl for Interval so it doesnt use floats
* Explicit rfc3339 datetime serialization
* Typo
* Changed 'visit_borrwed_str' to 'visit_str'
2022-01-25 11:17:44 +00:00
mfahampshire
48ceb9d1ce
mainnet token args for contract verification
2022-01-21 23:43:51 +01:00
mfahampshire
e82e8b8bc3
added mainnet config
2022-01-21 23:43:32 +01:00