Commit Graph

229 Commits

Author SHA1 Message Date
Julian Strobl
682796b3c8 Fix linter findings (#178)
* [linter] Fix unnecessary conversion (unconvert)

* [linter] Fix fmt.Sprintf can be replaced with faster strconv.FormatInt (perfsprint)

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-15 14:06:29 +01:00
Julian Strobl
9662389446 [ci] Add all linters that don't affect the code (#177)
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-15 13:37:20 +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
Julian Strobl
1ca7faec60 Library for RPC requests to Planetmint (#173)
* [lib] Add initial version

// See #152

* [lib] Add initial README.md

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-14 15:04:46 +01:00
Julian Strobl
1e1138d026 Switch to revive and fix findings (#171)
* [ci] Switch from `nosnakecase` to `revive`

* [revive] Fix findings

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-13 12:42:52 +01:00
Lorenz Herzberger
c8bfb861f1 add machine allowance e2e test (#166)
* add machine allowance e2e test

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>

* fix linter errors

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>

---------

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-11-09 15:47:41 +01:00
Julian Strobl
8a2a05f2fb Fix default validator address in app.toml (#169)
Copy&paste error.

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-08 15:20:40 +01:00
Jürgen Eckel
f0ae4c96ba Use GetConfig() to utilize the singleton (#168)
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
v0.5.5
2023-11-07 18:09:54 +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
Julian Strobl
0b6b1e120a DRY: Use RootDir from main config (#155)
Usually passed by `--home`.

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-23 10:45:10 +02:00
Julian Strobl
6472d7693f [ci] Add nosnakecase to golangci-lint (#161)
Golang uses:

- Camel Case for variable names, e.g. `firstName`
- Camel Case for private function names, e.g. `getFirstName`
- Pascal Case for public function names, e.g. `GetFirstName`

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-20 14:09:07 +02:00
Julian Strobl
7d65bff35f Switch BlockHeight to int64 (#158)
To align with cosmos-sdk and make interoperability easier.

* Fix typo: blockheight -> blockHeight

* Generate protobuf and openapi

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-20 13:43:44 +02:00
Julian Strobl
bed03197b5 [ci] Add forbidigo to golangci-lint (#160)
* Move setup into config file
* Add forbidigo to default linters

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-20 13:31:16 +02:00
Julian Strobl
45504f4670 Replace fmt.PrintX calls by proper logging (#159)
// Closes #137

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-20 12:57:42 +02:00
Julian Strobl
6aaa5399ef Remove /planetmint-go from API paths (#157)
* Remove `/planetmint-go` from API paths

* Generate protobuf and openapi

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
v0.5.4
2023-10-19 10:39:23 +02:00
Julian Strobl
e10416b23d Use globally defined keyring backend from client.toml (#156)
This partially reverts commit 1927c4d472.

// Closes #142

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-19 09:48:18 +02:00
Julian Strobl
283eeb7c9a Fix broken API paths (#154)
* Fix broken API paths

Partially revert d4eed021c8

* Generate protobuf and openapi

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
v0.5.3
2023-10-18 08:48:33 +02:00
Jürgen Eckel
c6909a3e4a hotfix: inconsistent logging of block-proposer results on the chain. … (#153)
* hotfix: inconsistent logging of block-proposer results on the chain. These results need to be consensed via an explicit message instead of an error output.

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
v0.5.2
2023-10-17 11:49:54 +02:00
Julian Strobl
126d59cff9 [ci] Check generated files
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-16 13:17:10 +02:00
Julian Strobl
e8dbfcb644 [ignite] Fix multiple main packages found
When downloading the `vendor/` directory with:
```
$ go mod vendor
```
and then e.g. run `ignite chain init` this error happens:

* specify the path to your chain's main package in your
  config.yml>build.main: multiple main packages found

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-16 13:17:10 +02: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
1927c4d472 Eckelj/support keyring (#136)
* added keyring option
* added Reissuance workflow logging

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
v0.5.1
2023-10-11 16:02:37 +02:00
Jürgen Eckel
5f834726b8 from float to satoshi (#134)
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-10 15:15:10 +02:00
Lorenz Herzberger
481f929bdf Merge pull request #133 from planetmint/124-propose-a-liquid-issuance-to-the-network-unsigned-transaction
124 issue liquid tokens
v0.5.0
2023-10-10 09:18:01 +02:00
Lorenz Herzberger
267f4beb37 remove unused code
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-10-10 09:10:50 +02:00
Jürgen Eckel
6e3d5ec394 improved error handling
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-10 02:14:05 +02:00
Jürgen Eckel
5adaab3b14 fixed linter issues
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-10 01:54:09 +02:00
Jürgen Eckel
0835ab4b46 removed circular dependency
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-10 01:48:15 +02:00
Jürgen Eckel
a0d4a9a575 removed obsolete print commands
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-10 01:39:09 +02:00
Jürgen Eckel
46ec3df289 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-10 01:31:28 +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
Lorenz Herzberger
9d2627f04f add mint request check to ante handle (#130)
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-10-09 13:09:01 +02:00
Jürgen Eckel
dac2d96194 added get_reissuances call body
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-06 13:08:23 +02:00
Jürgen Eckel
ef52e51ec8 Merge branch 'main' into 124-propose-a-liquid-issuance-to-the-network-unsigned-transaction 2023-10-06 12:00:08 +02:00
Julian Strobl
ec77832ca1 Fix missing quotes
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
v0.4.1
2023-10-06 11:54:24 +02:00
Julian Strobl
0c8a01f16a Fix generated files
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-06 11:53:56 +02:00
Jürgen Eckel
44a851f5ef ignite scaffold query get_reissuances --paginated -r reissuance:Reissuance --module dao
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-06 11:50:31 +02:00
Jürgen Eckel
4dc1485cd7 added get_reissuance query
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-06 11:49:51 +02:00
Jürgen Eckel
a441ff87dd added reissuance tests and fixed conversion
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-06 10:12:23 +02:00
Jürgen Eckel
f69c978911 added SendRDDLReissuanceResult sending by the proposer after the consensus over the ReissuanceProposal
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-05 17:49:59 +02:00
Jürgen Eckel
8f76199214 added MsgReissueRDDLResult handling
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-05 17:31:41 +02:00
Jürgen Eckel
87641aefe8 fix casting/marshalling bug
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-05 17:16:20 +02:00
Jürgen Eckel
128a406158 ignite scaffold message --module dao reissueRDDLResult proposer:string tx-id:string block-height:uint
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-05 17:13:45 +02:00
Jürgen Eckel
c02e00616f ignite scaffold type reissuance proposer rawtx tx-id block-height:uint --module dao
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-05 17:08:22 +02:00
Jürgen Eckel
fa1b16ba58 added the ante hanlder pattern
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-05 16:19:08 +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
Lorenz Herzberger
7a3ccccc7a 119 create dao msg to mint plmnt on demand (#122)
* add mint address to config file
* ignite scaffold type mint-request beneficiary amount liquid-tx-hash --module dao
* add mintrequest stores
* rename mint_request.go
* add unit tests for mint request store
* ignite scaffold message mint-token mint-request:MintRequest --module dao
* add ante handler for mint address
* add msg validation for mint request
* fix staticcheck error
* ignite scaffold query get-mint-requests-by-hash hash --response mint-request:MintRequest --module dao
* add a query for mint request and additional validation for msg server
* add mock for mint unit testing
* add unit test for mint token msg server
* add unit tests for query mint requests by hash
* ignite scaffold query mint-requests-by-address address --response mint-requests:MintRequests --module dao
* implement query mint requests by address and unit tests
* add e2e test for token mint

---------

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
v0.4.0
2023-10-05 15:38:53 +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
Jürgen Eckel
4ad86048a5 initial reissue rddl proposal message
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-05 15:02:36 +02:00