Julian Strobl
0b0b1206ed
chore(deps): update go-utils and elements-rpc ( #469 )
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-11-13 08:47:58 +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
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
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]
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]
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]
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
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>
2024-05-10 10:57:55 +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>
2024-04-25 14:38:58 +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
779b1edd48
Eckelj/mqtt monitoring ( #359 )
...
* added a MqttMonitor module with levelDB and periodic cleanup
* initialized in the app
* passed to dao keeper
* added conversion methods (string2unixtime, byte ToJSON)
* removed obsolete keeper code
* maded RDDLToken.Factor public
* added explicit mqtt client to the monitor module
* restart mqtt connection in mqttmonitor on connection loss
* adjusted mqttmock structure to be compatible
* added some linter exclusions to let the monitor tool pass
* created a MockMqttMonitor interface and mock object
* used this to pass tests
* made the MockMqttMonitor a global object so that it can be easily mocked
* removed MockMqttMonitor from the app/keeper initialization
* adjusted test cases to register "active machines" to the mqttmonitor
* added mutex in mocks to protect against data races
* defined mocks for the dao tests
* clear separation between interface and mqtt-Monitor
* added another waiting block to ensure the tx went through (multi-threading issue, race condition) during tests this failed sometimes
* added memstorage to test instead of a file based DB
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-04-08 10:49:00 +02:00
Julian Strobl
06e60809ca
chore: bump lib version to v0.5.0 ( #346 )
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-03-11 11:24:36 +01:00
Jürgen Eckel
04e45a7fb2
275 refactor feedenom on e2e test suite ( #312 )
...
* extended AttestMachine FundAccount to support a given fee denominator
* renamed testutil/network/network.go to testutil/network/loader.go
* renamed new to Load
* integrated cosmos/testutil/network to planetmint-go/testutil/network
* changed to plmnt token tests only!
* removed obsolete variables
* fixed newest linter issues
---------
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-02-14 12:15:40 +01:00
Lorenz Herzberger
a38fe781ba
187 implement rddl claim ( #298 )
...
* ignite scaffold map redeem-claim amount issued:bool --module dao --index beneficiary,liquid-tx-hash
* revert: remove autogenerated delete redeem claim logic
* fix: replace deprecated autogenerated sdkerrors with errorsmod
* refactor: rename issued to confirmed on redeem claim
* feat: add claim address param
* test: add test for restricted msg UpdateRedeemClaim
* refactor: update redeem claim key creation and messages
* feat: add SendUpdateRedeemCLaim to util
* feat: add RedeemClaimDecorator for ante package
* ignite scaffold message confirm-redeem-claim id:uint beneficiary:string --module dao
* feat: add handleConfirmRedeemClaim to ante handler
* feat: add handleUpdateRedeemClaim to ante handler
* feat: implement ConfirmRedeemClaim msg handler
* test: add redeem claim test and adjust e2e test suite
* fix: make use of uint to rddl string util in CreateRedeemClaim
* fix: linter and staticcheck errors
* ignite scaffold query redeem-claim-by-liquid-tx-hash liquid-tx-hash --response redeem-claim:RedeemClaim --module dao
* feat: add RedeemClaimByLiquidTXHash store capabilities
* test: add QueryRedeemClaimByLiquidTxHash to e2e test suite
* feat: add RedeemClaimDecorator to ante handler chain
* fix: remove redundant planetmint-go from service path
* fix: linter and staticcheck errors
* fix: go vet errors
* fix: remove unused autogenerated simulation
* fix: broken simulation
* fix: openapi.yml
* revert: remove autogenerated redundant test file that causes data race on pipeline
* feat: burn claim on CreateRedeemClaim
* fix: linter error
* test: fix mock bankkeeper for msg server test
* fix: reissuance test if statement
* chore: removed TODO comment
* fix: typo in redeem claim error msg
* revert: remove autogenerated genesis state
* fix: dao module simulation
* revert: remove unused function
* fix: linter errors
* fix: linter error
---------
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-02-01 09:57:58 +01:00
Julian Strobl
df264421b4
chore: bump lib version to v0.4.1
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-01-30 12:15:58 +01:00
Julian Strobl
d0e269a478
lib: bump version to v0.4.0
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-01-12 10:03:24 +01:00
Julian Strobl
fa05ec7fff
Fix test pop result ( #258 )
...
* chore: update elements-rpc to v0.5.2
* fix: logging output in dao keeper
* refactor: properly check broadcast tx output
* fix: use correct proposer address in test
Otherwise we get an error like:
```
[app] reissue: failed. valid result: true proposer: plmnt1gyg6lxcre5f8t4ef0uxcqen9jczwalzjvc25k8
validator identity: fb7ecaf9584dfdc67265f599155571651c149207
```
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-01-05 09:49:40 +01:00
dependabot[bot]
e4a57914cd
Bump github.com/dvsekhvalnov/jose2go from 1.5.0 to 1.6.0 ( #253 )
...
Bumps [github.com/dvsekhvalnov/jose2go](https://github.com/dvsekhvalnov/jose2go ) from 1.5.0 to 1.6.0.
- [Commits](https://github.com/dvsekhvalnov/jose2go/compare/v1.5...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/dvsekhvalnov/jose2go
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-03 10:32:04 +01:00
Jürgen Eckel
c09aab8b38
Initializing the PoP process on the tasmota nodes ( #243 )
...
* added MQTT lib
* added MQTT config params: domain, port user, password
* sending PoPInit commands to devices par of the pop (after delivery of the PoPInit message)
* Added test case to verify the working of the MQTT connection (test is skipped and designed for manual tests (lack of credentials))
---------
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-12-20 10:01:28 +01:00
Julian Strobl
00aba3115f
[lib] Bump version to v0.3.0
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-12-19 09:11:52 +01:00
dependabot[bot]
94ecb64034
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 ( #239 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-19 08:18:49 +01:00
Julian Strobl
ff2f2eb386
[test] Use elements RPC mock server ( #232 )
...
Fix `reissueasset` in tests.
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-12-13 15:42:09 +01:00
Julian Strobl
7b381f3313
Use elements RPC library ( #225 )
...
* Use elements RPC library
// Closes #218
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-12-12 12:14:19 +01:00
Julian Strobl
ede70b073b
Replace call to external python program ( #215 )
...
* Split asset registry endpoint
Into scheme, domain and path. We need the domain in the liquid contract.
* Switch to pure Go implementation
This is a reimplementation of the `issue2liquid.py`.
See https://github.com/rddl-network/issuer_service
// Closes #196
* Move elements RPC URL into config
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-12-11 15:53:58 +01:00
Julian Strobl
8c2e4704cd
[lib] Bump version to v0.2.1
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-29 08:13:54 +01:00
Julian Strobl
b55af9a1cf
[lib] Bump version to v0.2.0
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-28 11:02:33 +01:00
Julian Strobl
c40394e8a8
[lib] Bump version to v0.1.2
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-17 11:04:10 +01:00
Julian Strobl
dbd8e07a72
[lib] Run go mod tidy
( #180 )
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-15 16:01:57 +01:00
Julian Strobl
f57d6375fe
[lib] Fix go.mod version string ( #179 )
...
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-15 15:28:23 +01:00
Julian Strobl
5bc0097ae3
Use RPC instead of exec.Command(...) ( #176 )
...
* Move `encoding.go` to lib to avoid import cycle
* [lib] Add `SetEncodingConfig` to avoid import cycle
```
package github.com/planetmint/planetmint-go/app
imports github.com/planetmint/planetmint-go/app/ante
imports github.com/planetmint/planetmint-go/x/dao
imports github.com/planetmint/planetmint-go/util
imports github.com/planetmint/planetmint-go/app: import cycle not allowed
```
* Use RPC instead of `exec.Command(...)`
// Closes #152
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-15 14:16:21 +01:00
Jürgen Eckel
a982abecf5
Distribute assets ( #162 )
...
* distributed & result msgs
* added DistributionResult
* added RDDL token conversion methods
* set proper validatoraddress within the testcases for e2e/dao
* set proper root dir for test cases
* fixed some wordings
---------
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-11-15 13:31:20 +01:00
Lorenz Herzberger
83d493dd94
139 implement mint address param ( #174 )
...
* add MintAddress to params.proto
* ignite scaffold message update-params params:Params --module dao
* add dao get and set params
* make dao.MsgUpdateParams.Params non-nullable
* use GetMintAddress in ante handler
* adjust dao e2e test suit for mint address param
* change msg creator to authority and set gov module as default in gov proposal
* fix staticcheck error
* remove depricated config param
* fix linter errors
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-11-15 10:46:01 +01:00
dependabot[bot]
3beab6624b
Bump google.golang.org/grpc from 1.56.2 to 1.56.3 ( #163 )
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.56.2 to 1.56.3.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.56.2...v1.56.3 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 18:02:29 +01:00
dependabot[bot]
b7cfbd00d8
Bump golang.org/x/net from 0.12.0 to 0.17.0 ( #138 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.12.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.12.0...v0.17.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>
2023-10-12 12:01:52 +02:00
Jürgen Eckel
b4ddc44044
* integrated ante-handler
...
* added two new config variables: reissuance-asset and validator-address
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-10 01:24:28 +02:00
Jürgen Eckel
b81cdb6dc9
Merge branch 'main' into 124-propose-a-liquid-issuance-to-the-network-unsigned-transaction
...
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-05 16:09:10 +02:00
Jürgen Eckel
c5280e8289
fixe conversion issue, added go.mod/sum
...
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-05 15:09:51 +02:00
dependabot[bot]
3fa4ab3adb
Bump github.com/btcsuite/btcd from 0.23.0 to 0.23.2 ( #113 )
...
Bumps [github.com/btcsuite/btcd](https://github.com/btcsuite/btcd ) from 0.23.0 to 0.23.2.
- [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.0...v0.23.2 )
---
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>
2023-10-05 12:39:14 +02:00
Julian Strobl
d4eed021c8
[go.mod] Switch module to github.com ( #86 )
...
This is the quasi-standard and fixes the error below:
```
$ go get -u github.com/planetmint/planetmint-go@v0.1.0
go: github.com/planetmint/planetmint-go@v0.1.0: parsing go.mod:
module declares its path as: planetmint-go
but was required as: github.com/planetmint/planetmint-go
```
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-09-21 17:37:57 +02:00
Stefan Weber
2076b5d799
Update cosmos-sdk version ( #82 )
...
Signed-off-by: Stefan Weber <stefan.weber93@googlemail.com>
2023-09-18 13:25:44 +02:00
Lorenz Herzberger
05a484c8b9
implement e2e test scenario for fee distribution
...
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-08-31 16:33:22 +02:00
Jürgen Eckel
01ef2dbfd0
Improve communication to liquid issuance service ( #58 )
...
* added OSC response listener with logging
added Machine NFT issuance for each machine attestation process
added CID and Planetmint Issuer extPublicKey to the issuance process
removed type inconsistency
* added machine NFT creation criteria
* [toml] Parsing does not allow sub-structs
* made OSC listener port configurable
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
Co-authored-by: Julian Strobl <jmastr@mailbox.org>
2023-08-04 16:38:18 +02:00
Julian Strobl
4ba12f7b03
[config] Add planetmint section to app.toml
...
This patch extends `app.toml` and adds the following section with these
default values:
```
[planetmint]
watchmen-endpoint = "localhost"
watchmen-port = 7401
```
A global singleton `plmntConfig` is introduced to save and access the
values similar to how cosmos does it (see
vendor/github.com/cosmos/cosmos-sdk/types/config.go).
Different environments can be managed by changing the values in
`app.toml` and restarting the daemon.
// Closes #53
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-08-04 10:53:38 +02:00
Lorenz Herzberger
238e68808b
add config for watchmen
...
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-07-31 08:21:28 +02:00
Lorenz Herzberger
f6c96094c6
implement osc client mock on msg_attest_machine
...
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-07-31 08:14:56 +02:00
Jürgen Eckel
1b1bd2f790
pinned the chain id for the unit tests
...
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-07-28 13:47:25 +02:00
Lorenz Herzberger
017014317c
adjust msg_attest_machine validation
...
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-07-25 13:51:38 +02:00
dependabot[bot]
b91d4f51ef
Bump github.com/cometbft/cometbft from 0.37.1 to 0.37.2
...
Bumps [github.com/cometbft/cometbft](https://github.com/cometbft/cometbft ) from 0.37.1 to 0.37.2.
- [Release notes](https://github.com/cometbft/cometbft/releases )
- [Changelog](https://github.com/cometbft/cometbft/blob/main/CHANGELOG.md )
- [Commits](https://github.com/cometbft/cometbft/compare/v0.37.1...v0.37.2 )
---
updated-dependencies:
- dependency-name: github.com/cometbft/cometbft
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-19 12:23:13 +00:00