Skip to content

Commit f7aeed6

Browse files
committed
clear deps and setup
1 parent 3d3584c commit f7aeed6

File tree

4 files changed

+38
-38
lines changed

4 files changed

+38
-38
lines changed

cmd/minitiad/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func initAppConfig() (string, interface{}) {
4141
srvCfg.MinGasPrices = fmt.Sprintf("0%s", types.BaseDenom)
4242
srvCfg.Mempool.MaxTxs = 2000
4343
srvCfg.QueryGasLimit = 3000000
44+
srvCfg.InterBlockCache = false
4445

4546
// Enable API and unsafe CORS (CORS allowed from any host)
4647
srvCfg.API.Enable = true

go.mod

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ require (
100100
github.com/consensys/gnark-crypto v0.12.1 // indirect
101101
github.com/cosmos/btcutil v1.0.5 // indirect
102102
github.com/cosmos/gogogateway v1.2.0 // indirect
103-
github.com/cosmos/iavl v1.2.2 // indirect
104103
github.com/cosmos/ics23/go v0.11.0 // indirect
105104
github.com/cosmos/interchain-security/v6 v6.0.0 // indirect
106105
github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect
@@ -217,7 +216,6 @@ require (
217216
github.com/sourcegraph/conc v0.3.0 // indirect
218217
github.com/spf13/afero v1.11.0 // indirect
219218
github.com/spf13/pflag v1.0.5 // indirect
220-
github.com/strangelove-ventures/cometbft-client v0.1.0 // indirect
221219
github.com/subosito/gotenv v1.6.0 // indirect
222220
github.com/supranational/blst v0.3.11 // indirect
223221
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
@@ -260,6 +258,7 @@ require (
260258
sigs.k8s.io/yaml v1.4.0 // indirect
261259
)
262260

261+
// cosmos repalces
263262
replace (
264263
// use cosmos fork of keyring
265264
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
@@ -277,14 +276,17 @@ replace (
277276
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
278277
)
279278

279+
// indirect custom dependencies
280+
require (
281+
github.com/cosmos/iavl v1.2.4 // indirect
282+
github.com/strangelove-ventures/cometbft-client v0.1.1 // indirect
283+
)
284+
280285
// initia custom
281286
replace (
282-
github.com/cometbft/cometbft => github.com/initia-labs/cometbft v0.0.0-20241224101634-a905db74416a
287+
github.com/cometbft/cometbft => github.com/initia-labs/cometbft v0.0.0-20250109053429-822f3def6a97
283288
github.com/cosmos/ibc-go/v8 => github.com/initia-labs/ibc-go/v8 v8.0.0-20240802003717-19c0b4ad450d
284289

285-
// use custom version until this PR is merged
286-
// - https://github.com/strangelove-ventures/cometbft-client/pull/10
287-
github.com/strangelove-ventures/cometbft-client => github.com/initia-labs/cometbft-client v0.0.0-20240924071428-ef115cefa07e
288290
// cosmos/relayer seems having problem with the latest version of grpc; return nil in the below line
289291
// - https://github.com/cosmos/relayer/blob/4e4e9530800d28fb2c984f1cfc7b03f05eec618c/relayer/chains/cosmos/grpc_query.go#L30
290292
google.golang.org/grpc => google.golang.org/grpc v1.65.0

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,8 +1001,8 @@ github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ
10011001
github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU=
10021002
github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro=
10031003
github.com/cosmos/gogoproto v1.7.0/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0=
1004-
github.com/cosmos/iavl v1.2.2 h1:qHhKW3I70w+04g5KdsdVSHRbFLgt3yY3qTMd4Xa4rC8=
1005-
github.com/cosmos/iavl v1.2.2/go.mod h1:GiM43q0pB+uG53mLxLDzimxM9l/5N9UuSY3/D0huuVw=
1004+
github.com/cosmos/iavl v1.2.4 h1:IHUrG8dkyueKEY72y92jajrizbkZKPZbMmG14QzsEkw=
1005+
github.com/cosmos/iavl v1.2.4/go.mod h1:GiM43q0pB+uG53mLxLDzimxM9l/5N9UuSY3/D0huuVw=
10061006
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 v8.0.2 h1:dyLNlDElY6+5zW/BT/dO/3Ad9FpQblfh+9dQpYQodbA=
10071007
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 v8.0.2/go.mod h1:82hPO/tRawbuFad2gPwChvpZ0JEIoNi91LwVneAYCeM=
10081008
github.com/cosmos/ibc-apps/modules/rate-limiting/v8 v8.0.0 h1:AQO9NIAP3RFqvBCj7IqM/V1LCxmuvcvGUdu0RIEz/c0=
@@ -1429,10 +1429,8 @@ github.com/initia-labs/OPinit v0.6.2 h1:XGf++xIKhLSZS+y7S05pnHiAAuG2GrZuh12noN0m
14291429
github.com/initia-labs/OPinit v0.6.2/go.mod h1:e+ASISXctMJE2Tw2zisNWIEVnxgV9SogZHoZddcgg2w=
14301430
github.com/initia-labs/OPinit/api v0.6.2 h1:nU9Rv5s/6WbV3CfmNnW3MSSmqpk7Avgfd68qMWjYD08=
14311431
github.com/initia-labs/OPinit/api v0.6.2/go.mod h1:gHK6DEWb3/DqQD5LjKirUx9jilAh2UioXanoQdgqVfU=
1432-
github.com/initia-labs/cometbft v0.0.0-20241224101634-a905db74416a h1:qQP2cQhsZ+YyPJ0aayQr/LVva+3TbhSaBnplj0etnF8=
1433-
github.com/initia-labs/cometbft v0.0.0-20241224101634-a905db74416a/go.mod h1:9Jv7s3Z8ukB0YpH4P6PrsL5DVadnoIIL9XDToIinx9A=
1434-
github.com/initia-labs/cometbft-client v0.0.0-20240924071428-ef115cefa07e h1:k+pg63SFozCAK4LZFSiZtof6z69Tlu0O/Zftj1aAwes=
1435-
github.com/initia-labs/cometbft-client v0.0.0-20240924071428-ef115cefa07e/go.mod h1:aVposiPW9FOUeAeJ7JjJRdE3g+L6i8YDxFn6Cv6+Az4=
1432+
github.com/initia-labs/cometbft v0.0.0-20250109053429-822f3def6a97 h1:yeQYzr1UhsX+xNq8z35evLqmEjDod4DHGhLoobdRpHs=
1433+
github.com/initia-labs/cometbft v0.0.0-20250109053429-822f3def6a97/go.mod h1:9Jv7s3Z8ukB0YpH4P6PrsL5DVadnoIIL9XDToIinx9A=
14361434
github.com/initia-labs/ibc-go/v8 v8.0.0-20240802003717-19c0b4ad450d h1:TLq8lB1PtQ0pjGf+bN8YgGVeLMuytZ26SBGMOs1seKY=
14371435
github.com/initia-labs/ibc-go/v8 v8.0.0-20240802003717-19c0b4ad450d/go.mod h1:zh6x1osR0hNvEcFrC/lhGD08sMfQmr9wHVvZ/mRWMCs=
14381436
github.com/initia-labs/initia v0.6.4 h1:61ERWEW888b0IEqI9LQUkD1ztmOtRY74nOPsuKVnJWM=
@@ -1776,6 +1774,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
17761774
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
17771775
github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI=
17781776
github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg=
1777+
github.com/strangelove-ventures/cometbft-client v0.1.1 h1:chBZCTcTOGl3i+CjXWU+kIJZ7s6mY2uZ1gzwr7W2f0g=
1778+
github.com/strangelove-ventures/cometbft-client v0.1.1/go.mod h1:aVposiPW9FOUeAeJ7JjJRdE3g+L6i8YDxFn6Cv6+Az4=
17791779
github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
17801780
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
17811781
github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI=

proto/miniwasm/tokenfactory/v1/tx.proto

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ syntax = "proto3";
22
package miniwasm.tokenfactory.v1;
33

44
import "amino/amino.proto";
5-
import "cosmos_proto/cosmos.proto";
6-
import "cosmos/base/v1beta1/coin.proto";
75
import "cosmos/bank/v1beta1/bank.proto";
6+
import "cosmos/base/v1beta1/coin.proto";
87
import "cosmos/msg/v1/msg.proto";
8+
import "cosmos_proto/cosmos.proto";
99
import "gogoproto/gogo.proto";
1010
import "miniwasm/tokenfactory/v1/params.proto";
1111

@@ -30,13 +30,11 @@ service Msg {
3030

3131
// SetDenomMetadata defines a gRPC service method for setting the metadata of
3232
// a denom.
33-
rpc SetDenomMetadata(MsgSetDenomMetadata)
34-
returns (MsgSetDenomMetadataResponse);
33+
rpc SetDenomMetadata(MsgSetDenomMetadata) returns (MsgSetDenomMetadataResponse);
3534

3635
// SetBeforeSendHook defines a gRPC service method for setting the before send
3736
// hook of a denom.
38-
rpc SetBeforeSendHook(MsgSetBeforeSendHook)
39-
returns (MsgSetBeforeSendHookResponse);
37+
rpc SetBeforeSendHook(MsgSetBeforeSendHook) returns (MsgSetBeforeSendHookResponse);
4038

4139
// ForceTransfer defines a gRPC service method for transferring a token from
4240
// one account to another.
@@ -61,16 +59,15 @@ message MsgCreateDenom {
6159

6260
option (amino.name) = "tokenfactory/MsgCreateDenom";
6361

64-
string sender = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
62+
string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
6563
// subdenom can be up to 44 "alphanumeric" characters long.
66-
string subdenom = 2 [ (gogoproto.moretags) = "yaml:\"subdenom\"" ];
64+
string subdenom = 2 [(gogoproto.moretags) = "yaml:\"subdenom\""];
6765
}
6866

6967
// MsgCreateDenomResponse is the return value of MsgCreateDenom
7068
// It returns the full string of the newly created denom
7169
message MsgCreateDenomResponse {
72-
string new_token_denom = 1
73-
[ (gogoproto.moretags) = "yaml:\"new_token_denom\"" ];
70+
string new_token_denom = 1 [(gogoproto.moretags) = "yaml:\"new_token_denom\""];
7471
}
7572

7673
// MsgMint is the sdk.Msg type for allowing an admin account to mint
@@ -81,7 +78,7 @@ message MsgMint {
8178
option (cosmos.msg.v1.signer) = "sender";
8279
option (amino.name) = "tokenfactory/MsgMint";
8380

84-
string sender = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
81+
string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
8582
cosmos.base.v1beta1.Coin amount = 2 [
8683
(gogoproto.moretags) = "yaml:\"amount\"",
8784
(gogoproto.nullable) = false
@@ -104,7 +101,7 @@ message MsgBurn {
104101
option (cosmos.msg.v1.signer) = "sender";
105102
option (amino.name) = "tokenfactory/MsgBurn";
106103

107-
string sender = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
104+
string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
108105
cosmos.base.v1beta1.Coin amount = 2 [
109106
(gogoproto.moretags) = "yaml:\"amount\"",
110107
(gogoproto.nullable) = false
@@ -125,9 +122,9 @@ message MsgChangeAdmin {
125122
option (cosmos.msg.v1.signer) = "sender";
126123
option (amino.name) = "tokenfactory/MsgChangeAdmin";
127124

128-
string sender = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
129-
string denom = 2 [ (gogoproto.moretags) = "yaml:\"denom\"" ];
130-
string new_admin = 3 [ (gogoproto.moretags) = "yaml:\"new_admin\"" ];
125+
string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
126+
string denom = 2 [(gogoproto.moretags) = "yaml:\"denom\""];
127+
string new_admin = 3 [(gogoproto.moretags) = "yaml:\"new_admin\""];
131128
}
132129

133130
// MsgChangeAdminResponse defines the response structure for an executed
@@ -140,8 +137,8 @@ message MsgSetBeforeSendHook {
140137
option (cosmos.msg.v1.signer) = "sender";
141138
option (amino.name) = "tokenfactory/MsgSetBeforeSendHook";
142139

143-
string sender = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
144-
string denom = 2 [ (gogoproto.moretags) = "yaml:\"denom\"" ];
140+
string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
141+
string denom = 2 [(gogoproto.moretags) = "yaml:\"denom\""];
145142
string cosmwasm_address = 3 [
146143
(gogoproto.moretags) = "yaml:\"cosmwasm_address\"",
147144
(amino.dont_omitempty) = true
@@ -158,7 +155,7 @@ message MsgSetDenomMetadata {
158155
option (cosmos.msg.v1.signer) = "sender";
159156
option (amino.name) = "tokenfactory/MsgSetDenomMetadata";
160157

161-
string sender = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
158+
string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
162159
cosmos.bank.v1beta1.Metadata metadata = 2 [
163160
(gogoproto.moretags) = "yaml:\"metadata\"",
164161
(gogoproto.nullable) = false
@@ -175,15 +172,13 @@ message MsgForceTransfer {
175172
option (cosmos.msg.v1.signer) = "sender";
176173
option (amino.name) = "tokenfactory/MsgForceTransfer";
177174

178-
string sender = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
175+
string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
179176
cosmos.base.v1beta1.Coin amount = 2 [
180177
(gogoproto.moretags) = "yaml:\"amount\"",
181178
(gogoproto.nullable) = false
182179
];
183-
string transfer_from_address = 3
184-
[ (gogoproto.moretags) = "yaml:\"transfer_from_address\"" ];
185-
string transfer_to_address = 4
186-
[ (gogoproto.moretags) = "yaml:\"transfer_to_address\"" ];
180+
string transfer_from_address = 3 [(gogoproto.moretags) = "yaml:\"transfer_from_address\""];
181+
string transfer_to_address = 4 [(gogoproto.moretags) = "yaml:\"transfer_to_address\""];
187182
}
188183

189184
// MsgForceTransferResponse defines the response structure for an executed
@@ -197,12 +192,14 @@ message MsgUpdateParams {
197192

198193
// authority is the address that controls the module
199194
// (defaults to x/gov unless overwritten).
200-
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
195+
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
201196
// params defines the x/staking parameters to update.
202197
//
203198
// NOTE: All parameters must be supplied.
204-
Params params = 2
205-
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
199+
Params params = 2 [
200+
(gogoproto.nullable) = false,
201+
(amino.dont_omitempty) = true
202+
];
206203
}
207204

208205
// MsgUpdateParamsResponse defines the response structure for executing a

0 commit comments

Comments
 (0)