Julian Strobl
bead62bd04
refactor(query): align with cosmos-sdk style ( #466 )
...
- use one `cmd.AddCommand(...)`
- sort commands
- use `GetCmd...` function name style
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
lib/v0.6.0
v0.12.2
2024-11-12 15:59:52 +01:00
Julian Strobl
8db682d994
feat(lint): replace deprecated exportloopref ( #467 )
...
with `copyloopvar`, which needs Go 1.22.
* chore(ci): bump go version to v1.22
* fix(ci): pin release pipeline to go v1.22
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-11-12 15:59:09 +01:00
Julian Strobl
72e36c11eb
fix(lint): remove inactivated execinquery ( #468 )
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-11-12 11:27:04 +01:00
Lorenz Herzberger
0bd6964d3e
feat: add unresolved claim cleanup ( #460 )
...
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-11-07 09:51:06 +01:00
Lorenz Herzberger
764d1158dc
refactor: IsValidatorBlockProposer no longer accepts proposerAddress … ( #458 )
...
* refactor: IsValidatorBlockProposer no longer accepts proposerAddress because already given in ctx
* refactor: make use of ctx.BlockHeader().ProposerAddress to ensure correct Proposer
* fix: linter error because no longer in use* feat: add call logging to MQTT mock
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
v0.12.1
2024-11-05 07:59:34 +01:00
Lorenz Herzberger
0b17e93e9c
fix: remove error from valid check ( #456 )
v0.12.0
2024-10-15 12:56:00 +02:00
Lorenz Herzberger
2a5b7c49c8
447 add validatoraddress getter to config ( #449 )
...
* feat: add GetValidatorAddress() to config
* feat: add GetDefaultValidatorRecord() to libConfig
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-10-02 13:52:26 +02:00
Lorenz Herzberger
72df3de139
fix: pop initiator is now validator address instead of blockProposer in order to not mixup rewards ( #450 )
...
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-10-02 10:36:08 +02:00
Lorenz Herzberger
dacd261df4
446 add command to initialize tw ( #448 )
...
* fix: use correct array index on OSCresponse.data
* feat: add trust-wallet initialize cmd
* feat: add trust-wallet keys subcommand
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-09-24 15:10:26 +02:00
Lorenz Herzberger
e404fef08b
Add occ signing to lib ( #441 )
...
* feat: add trustwallet signing to lib
* feat: add osc message sender to lib
* docs: update README
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-09-19 16:20:24 +02:00
Lorenz Herzberger
a7bb114301
chore: changed module param defaults to be more visible ( #445 )
...
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-09-19 15:41:44 +02:00
Lorenz Herzberger
975a1005b0
test: add additonal validatorPopReward reallocation test ( #436 )
...
* test: add additonal validatorPopReward reallocation test
* fix: linter & staticcheck errors
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-09-10 09:13:20 +02:00
Lorenz Herzberger
5d84ae6806
fix: ConsensusVersion on machine module ( #432 )
...
* fix: ConsensusVersion on machine module
* fix: use correct key to store activated ta counter on migration
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
v0.11.0
v0.11.1
2024-07-25 10:31:15 +02:00
Lorenz Herzberger
c2ef2b5924
feat: add QueryActiveTrustAnchorCount ( #431 )
...
* feat: add QueryActiveTrustAnchorCount
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-07-24 09:44:07 +02:00
Lorenz Herzberger
4c8427c3b1
426 add registered machine counter to machine module ( #430 )
...
* feat: add counter for activated TAs
* feat: add QueryActivatedTrustAnchorCount
* feat: add migration for activated ta counter
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-07-24 09:24:13 +02:00
Lorenz Herzberger
e06fc55630
427 add more details to machine not found error message ( #429 )
...
* fix: add more details to machine not found error
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-07-19 11:03:56 +02:00
Lorenz Herzberger
605b6c73d6
415 add validator pop reward amount to chain params ( #420 )
...
* feat: add validator pop reward as chain param
* feat: add store for challenge initiator reward amount indexed by height
* feat: add validator PoP reward calculation between distributions
* fix: remove paralleltest lint rule due to data race
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
v0.10.5
2024-07-18 10:34:50 +02:00
Julian Strobl
197ebe1279
chore: remove obsolete rpc config ( #423 )
...
this is handled by shamir coordinator now.
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
v0.10.4
2024-07-03 10:39:05 +02:00
Lorenz Herzberger
3ffd9f96ef
chore: replace elementsd-connector with shamir-coordinator-client ( #422 )
...
* chore: replace elementsd-connector with shamir-coordinator-client
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
v0.10.3
2024-07-03 09:54:42 +02:00
Julian Strobl
d2def2b453
chore: remove obsolete config param ( #417 )
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-06-27 15:16:52 +02:00
Lorenz Herzberger
a4c8c821d0
feat: add certs path and mtls setup for shamir coordinator client ( #414 )
...
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
v0.10.2
2024-06-27 10:09:34 +02:00
Lorenz Herzberger
7d87d662ea
feat: add shamir-coordinator-client for issuer wallet protection ( #413 )
...
* feat: add shamir-coordinator-client for issuer wallet protection
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
v0.10.1
2024-06-26 14:02:28 +02:00
dependabot[bot]
bd16b0a151
chore(deps): Bump github.com/cosmos/ibc-go/v7 in /lib ( #360 )
...
Bumps [github.com/cosmos/ibc-go/v7](https://github.com/cosmos/ibc-go ) from 7.1.0 to 7.4.0.
- [Release notes](https://github.com/cosmos/ibc-go/releases )
- [Changelog](https://github.com/cosmos/ibc-go/blob/v7.4.0/CHANGELOG.md )
- [Commits](https://github.com/cosmos/ibc-go/compare/v7.1.0...v7.4.0 )
---
updated-dependencies:
- dependency-name: github.com/cosmos/ibc-go/v7
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-26 11:24:00 +02:00
dependabot[bot]
90d19cea1d
chore(deps): Bump github.com/cosmos/ibc-go/v7 from 7.1.0 to 7.4.0 ( #361 )
...
Bumps [github.com/cosmos/ibc-go/v7](https://github.com/cosmos/ibc-go ) from 7.1.0 to 7.4.0.
- [Release notes](https://github.com/cosmos/ibc-go/releases )
- [Changelog](https://github.com/cosmos/ibc-go/blob/v7.4.0/CHANGELOG.md )
- [Commits](https://github.com/cosmos/ibc-go/compare/v7.1.0...v7.4.0 )
---
updated-dependencies:
- dependency-name: github.com/cosmos/ibc-go/v7
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-26 11:07:41 +02:00
dependabot[bot]
640b34ceab
chore(deps): Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 in /lib ( #349 )
...
* chore(deps): Bump google.golang.org/protobuf in /lib
Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.
---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
* fixed dep isue
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-26 00:16:56 +02:00
dependabot[bot]
7e1bbc9eb4
chore(deps): Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 ( #348 )
...
* chore(deps): Bump google.golang.org/protobuf from 1.31.0 to 1.33.0
Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.
---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
* fixe dependencies
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-25 23:51:19 +02:00
dependabot[bot]
95036475b4
chore(deps): Bump github.com/hashicorp/go-getter in /lib ( #411 )
...
Bumps [github.com/hashicorp/go-getter](https://github.com/hashicorp/go-getter ) from 1.7.1 to 1.7.5.
- [Release notes](https://github.com/hashicorp/go-getter/releases )
- [Changelog](https://github.com/hashicorp/go-getter/blob/main/.goreleaser.yml )
- [Commits](https://github.com/hashicorp/go-getter/compare/v1.7.1...v1.7.5 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-getter
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-25 23:50:44 +02:00
dependabot[bot]
48ef258ed6
chore(deps): Bump github.com/hashicorp/go-getter in /lib ( #386 )
...
Bumps [github.com/hashicorp/go-getter](https://github.com/hashicorp/go-getter ) from 1.7.1 to 1.7.4.
- [Release notes](https://github.com/hashicorp/go-getter/releases )
- [Changelog](https://github.com/hashicorp/go-getter/blob/main/.goreleaser.yml )
- [Commits](https://github.com/hashicorp/go-getter/compare/v1.7.1...v1.7.4 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-getter
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-25 23:38:44 +02:00
dependabot[bot]
2d73110836
chore(deps): Bump golang.org/x/net from 0.17.0 to 0.23.0 in /lib ( #374 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-25 23:38:16 +02:00
dependabot[bot]
a8109e8273
chore(deps): Bump github.com/hashicorp/go-getter from 1.7.1 to 1.7.5 ( #412 )
...
Bumps [github.com/hashicorp/go-getter](https://github.com/hashicorp/go-getter ) from 1.7.1 to 1.7.5.
- [Release notes](https://github.com/hashicorp/go-getter/releases )
- [Changelog](https://github.com/hashicorp/go-getter/blob/main/.goreleaser.yml )
- [Commits](https://github.com/hashicorp/go-getter/compare/v1.7.1...v1.7.5 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-getter
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <eckelj@users.noreply.github.com>
2024-06-25 23:28:57 +02:00
dependabot[bot]
b2c526941a
chore(deps): Bump github.com/btcsuite/btcd from 0.23.2 to 0.24.0 in /lib ( #394 )
...
Bumps [github.com/btcsuite/btcd](https://github.com/btcsuite/btcd ) from 0.23.2 to 0.24.0.
- [Release notes](https://github.com/btcsuite/btcd/releases )
- [Changelog](https://github.com/btcsuite/btcd/blob/master/CHANGES )
- [Commits](https://github.com/btcsuite/btcd/compare/v0.23.2...v0.24.0 )
---
updated-dependencies:
- dependency-name: github.com/btcsuite/btcd
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-25 23:13:43 +02:00
dependabot[bot]
d055d7f63c
chore(deps): Bump golang.org/x/net from 0.17.0 to 0.23.0 ( #373 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-25 22:59:11 +02:00
dependabot[bot]
8c66ce9ba4
chore(deps): Bump github.com/hashicorp/go-getter from 1.7.1 to 1.7.4 ( #385 )
...
Bumps [github.com/hashicorp/go-getter](https://github.com/hashicorp/go-getter ) from 1.7.1 to 1.7.4.
- [Release notes](https://github.com/hashicorp/go-getter/releases )
- [Changelog](https://github.com/hashicorp/go-getter/blob/main/.goreleaser.yml )
- [Commits](https://github.com/hashicorp/go-getter/compare/v1.7.1...v1.7.4 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-getter
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-25 22:58:43 +02:00
dependabot[bot]
700cfdcd0b
chore(deps): Bump github.com/btcsuite/btcd from 0.23.2 to 0.24.0 ( #393 )
...
Bumps [github.com/btcsuite/btcd](https://github.com/btcsuite/btcd ) from 0.23.2 to 0.24.0.
- [Release notes](https://github.com/btcsuite/btcd/releases )
- [Changelog](https://github.com/btcsuite/btcd/blob/master/CHANGES )
- [Commits](https://github.com/btcsuite/btcd/compare/v0.23.2...v0.24.0 )
---
updated-dependencies:
- dependency-name: github.com/btcsuite/btcd
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-25 22:58:18 +02:00
Lorenz Herzberger
468fbb5305
402 bug asset query does not repsect lookupperiodinmin value ( #405 )
...
* chore: remove unused asset.proto and asset.pb.go files
* feat: add AssetByAddress store functionality
* fix: asset query now returns numElements passed in req
* chore: add migration for new store mechanics
* chore: set upgradehandler for assetmodule migration
* chore: removed obsolete GetCIDsByAddress function
* chore: adjust cmd usage
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
v0.10.0
2024-06-06 14:39:05 +02:00
Jürgen Eckel
1462b6ee88
add only legit machine addresses to the PoPSelection process ( #404 )
...
add only legit machine addresses to the PoPSelection process
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-06-06 14:37:09 +02:00
Jürgen Eckel
dd2621afde
hot fix for the tasmota PoP issues ( #403 )
...
* hot fix for the RDDL-Tasmota PoP issues
* adjusted test case
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
v0.9.7
2024-05-28 14:54:31 +02:00
Jürgen Eckel
e99b614e4a
added connection loss handler, extended logging, mqtt msg updates ( #400 )
...
* added a bit of logging
* added update messages to mqtt (every second with a timestamp)
* added isConnectionOpen to the interface and analysis this during execution
* added connection loss handler and status check
* put some global objects into an objects to avoid inter service testing issues
* TestingLocker Mutex to RWMutex (increase performance)
* termintationMutex became a sync.RWMutex
* added logging to the mqtt mock client
* made monitor Mutex a RWMutex
* added Mutex protection to the numberOfElements varialbe
* added another Waiting block to the machine attestation methods (CI tests)
* had to adjust the test cases to the impact of that change.
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
v0.9.6
2024-05-16 17:06:19 +02:00
Jürgen Eckel
0c05081604
unlock mutex before return ( #399 )
...
* unlock mutex before return
* added termination clause for the scheduler
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
v0.9.5
2024-05-15 17:05:26 +02:00
Jürgen Eckel
1f2b1702ea
Eckelj/mqtt monitoring fix ( #398 )
...
* set keepalive ping
* made mutex more granular
* avoid using app.Logger to have a consistent log from the beginning
* made lazyLoading local to the module
* fixed ticker bug so that the tasks are executed in an endless loop
* fixed timezone bug of Add Participant. only validator local time is used not the timestamp from the mqtt messages as these might come from a different time zone (resulted in delayed deletion from the activeActors DB)
* improved connection management for the monitor
* added a watchdog task to restart the monitor in case of connection loss (every 2 min)
* removed obsolete SetContext function/interface
* removed obsolete time conversion method
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
v0.9.4
2024-05-15 13:23:06 +02:00
Jürgen Eckel
ccf491d658
added uncompressed trust anchor pub key processing ( #396 )
...
* added uncompressed trust anchor pub key processing
* added a nother waiting block to pass CI test cases - these are a bit slower
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
v0.9.3
2024-05-14 10:32:52 +02:00
Jürgen Eckel
af1483a8ec
added secp256r1 machine ID Sig verification ( #395 )
...
* added secp256r1 machineIDSignature verification
* to go-utils v0.1.1
---------
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
v0.9.2
2024-05-10 10:57:55 +02:00
Lorenz Herzberger
066c1a7667
Fix rddl claim client load ( #388 )
...
* fix: lazyLoad on rddl-claim-service-client
* fix: sane default value for claim-host
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
v0.9.1
2024-04-29 11:49:45 +02:00
Lorenz Herzberger
b0f8516cd6
379 create redeem claim does not call service ( #383 )
...
* feat: add rddl-claim-service/client
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
Co-authored-by: Julian Strobl <jmastr@mailbox.org>
v0.9.0
2024-04-25 14:38:58 +02:00
Julian Strobl
937104b3cd
fix: mqtt default config ( #382 )
...
* fix: mqtt-tls in default config template
- panic: json: cannot unmarshal string into Go struct field
Config.mqtt-tls of type bool
* fix: default mqtt port
- since MqttTLS is set to true by default we need to use the mqtts port
as well.
panic: network Error : EOF
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-04-25 13:50:22 +02:00
Jürgen Eckel
b45c381b3b
TLS support for planetmint ( #381 )
...
* added TSL support for mqtt
* added configuration value mqtt-tls (bool) to support tls and non-tls connections (testing)
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-04-24 14:59:17 +02:00
Jürgen Eckel
43d152fcf6
Donate tokens to attested machines so that these are able to run after their attestation ( #375 )
...
* added donation of tokens/denom to the just attestet machine
* extended the machine module to have two additional parameters: amount of tokens to be distributed and their denominator
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-04-23 12:00:31 +02:00
Lorenz Herzberger
5e2b307a70
368 make attestmachine msgtx with fee=zero ( #372 )
...
* no fee deduction in case of machineattestation messages
* no gas price for machineattestations in lib/tx
* test: add balance check to machine attestation e2e test
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-04-22 13:07:40 +02:00
Jürgen Eckel
1983890fb8
Adjusting to newest version of elements-rpc ( #353 )
...
* added tests (for the sake of on-demand local tests)
* added wrapping the first parameters of the calls into `"`
* using newest elements RPC from now on (>=1.0.0)
* removed print outputs
* removed parallel testing from util/elementsd_connector_test.go
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-04-09 13:49:51 +02:00
Jürgen Eckel
0fd12a563c
added to wait for another block to ensure the tx went through ( #365 )
...
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-04-08 14:42:54 +02:00