diff --git a/go.mod b/go.mod index 576ac7f..2f1af37 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/go-ozzo/ozzo-validation/v4 v4.3.0 github.com/iden3/go-rapidsnark/types v0.0.3 github.com/rarimo/rarimo-core v0.0.0-20231004143803-6b209428ecbf - github.com/rarimo/zkverifier-kit v0.1.2-0.20240510160559-794b6f41b954 + github.com/rarimo/zkverifier-kit v0.2.0 github.com/rubenv/sql-migrate v1.6.1 gitlab.com/distributed_lab/ape v1.7.1 gitlab.com/distributed_lab/figure/v3 v3.1.4 diff --git a/go.sum b/go.sum index 4456423..38e8437 100644 --- a/go.sum +++ b/go.sum @@ -2106,8 +2106,8 @@ github.com/rarimo/cosmos-sdk v0.46.7 h1:jU2PiWzc+19SF02cXM0O0puKPeH1C6Q6t2lzJ9s1 github.com/rarimo/cosmos-sdk v0.46.7/go.mod h1:fqKqz39U5IlEFb4nbQ72951myztsDzFKKDtffYJ63nk= github.com/rarimo/rarimo-core v0.0.0-20231004143803-6b209428ecbf h1:NvYhOErW0d7ohn2YzGxQYKssrgVrKOvjrKL1OBQgCB4= github.com/rarimo/rarimo-core v0.0.0-20231004143803-6b209428ecbf/go.mod h1:Onkd0EJP94hw4dT/2KH7QXRwDG4eIGeaMffSjA1i6/s= -github.com/rarimo/zkverifier-kit v0.1.2-0.20240510160559-794b6f41b954 h1:TeqaLhZtA4rZdUbYwDaB3oOrK9Gf1rLKjcjBJID8K9M= -github.com/rarimo/zkverifier-kit v0.1.2-0.20240510160559-794b6f41b954/go.mod h1:ROaCxusG9WLNwbqlTBKqZCm8tQrNdnwLyRWtS+yxO8o= +github.com/rarimo/zkverifier-kit v0.2.0 h1:FybrsDdpP/x/m0ZtEeU9lcHsztlPtCBLo67unAdbFGA= +github.com/rarimo/zkverifier-kit v0.2.0/go.mod h1:ROaCxusG9WLNwbqlTBKqZCm8tQrNdnwLyRWtS+yxO8o= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/regen-network/cosmos-proto v0.3.1 h1:rV7iM4SSFAagvy8RiyhiACbWEGotmqzywPxOvwMdxcg= diff --git a/internal/config/airdrop.go b/internal/config/airdrop.go deleted file mode 100644 index 91304c7..0000000 --- a/internal/config/airdrop.go +++ /dev/null @@ -1,25 +0,0 @@ -package config - -import ( - "fmt" - - "gitlab.com/distributed_lab/figure/v3" - "gitlab.com/distributed_lab/kit/kv" -) - -func (c *Config) AirdropAmount() int64 { - return c.airdrop.Do(func() interface{} { - var cfg struct { - Amount int64 `fig:"amount,required"` - } - - err := figure.Out(&cfg). - From(kv.MustGetStringMap(c.getter, "airdrop")). - Please() - if err != nil { - panic(fmt.Errorf("failed to figure out airdrop amount: %w", err)) - } - - return cfg.Amount - }).(int64) -}