@@ -3,13 +3,15 @@ package tendermint.spn.campaign;
33
44import "gogoproto/gogo.proto" ;
55import "cosmos/base/v1beta1/coin.proto" ;
6+ import "cosmos_proto/cosmos.proto" ;
7+
68import "campaign/vesting.proto" ;
79
810option go_package = "github.com/tendermint/spn/x/campaign/types" ;
911
1012message EventCampaignCreated {
1113 uint64 campaignID = 1 ;
12- string coordinatorAddress = 2 ;
14+ string coordinatorAddress = 2 [ (cosmos_proto .scalar ) = "cosmos.AddressString" ] ;
1315 uint64 coordinatorID = 3 ;
1416}
1517
@@ -20,14 +22,14 @@ message EventCampaignChainAdded {
2022
2123message EventCampaignInfoUpdated {
2224 uint64 campaignID = 1 ;
23- string coordinatorAddress = 2 ;
25+ string coordinatorAddress = 2 [ (cosmos_proto .scalar ) = "cosmos.AddressString" ] ;
2426 string campaignName = 3 ;
2527 bytes metadata = 4 ;
2628}
2729
2830message EventCampaignSharesUpdated {
2931 uint64 campaignID = 1 ;
30- string coordinatorAddress = 2 ;
32+ string coordinatorAddress = 2 [ (cosmos_proto .scalar ) = "cosmos.AddressString" ] ;
3133 repeated cosmos.base.v1beta1.Coin allocatedShares = 3 [
3234 (gogoproto.nullable ) = false ,
3335 (gogoproto.casttype ) = "github.com/cosmos/cosmos-sdk/types.Coin" ,
@@ -37,7 +39,7 @@ message EventCampaignSharesUpdated {
3739
3840message EventCampaignTotalSupplyUpdated {
3941 uint64 campaignID = 1 ;
40- string coordinatorAddress = 2 ;
42+ string coordinatorAddress = 2 [ (cosmos_proto .scalar ) = "cosmos.AddressString" ] ;
4143 repeated cosmos.base.v1beta1.Coin totalSupply = 3 [
4244 (gogoproto.nullable ) = false ,
4345 (gogoproto.casttype ) = "github.com/cosmos/cosmos-sdk/types.Coin" ,
@@ -47,13 +49,13 @@ message EventCampaignTotalSupplyUpdated {
4749
4850message EventCampaignMainnetInitialized {
4951 uint64 campaignID = 1 ;
50- string coordinatorAddress = 2 ;
52+ string coordinatorAddress = 2 [ (cosmos_proto .scalar ) = "cosmos.AddressString" ] ;
5153 uint64 mainnetID = 3 ;
5254}
5355
5456message EventMainnetAccountCreated {
5557 uint64 campaignID = 1 ;
56- string address = 2 ;
58+ string address = 2 [ (cosmos_proto .scalar ) = "cosmos.AddressString" ] ;
5759 repeated cosmos.base.v1beta1.Coin shares = 3 [
5860 (gogoproto.nullable ) = false ,
5961 (gogoproto.casttype ) = "github.com/cosmos/cosmos-sdk/types.Coin" ,
@@ -63,7 +65,7 @@ message EventMainnetAccountCreated {
6365
6466message EventMainnetAccountUpdated {
6567 uint64 campaignID = 1 ;
66- string address = 2 ;
68+ string address = 2 [ (cosmos_proto .scalar ) = "cosmos.AddressString" ] ;
6769 repeated cosmos.base.v1beta1.Coin shares = 3 [
6870 (gogoproto.nullable ) = false ,
6971 (gogoproto.casttype ) = "github.com/cosmos/cosmos-sdk/types.Coin" ,
@@ -73,18 +75,18 @@ message EventMainnetAccountUpdated {
7375
7476message EventMainnetAccountRemoved {
7577 uint64 campaignID = 1 ;
76- string address = 2 ;
78+ string address = 2 [ (cosmos_proto .scalar ) = "cosmos.AddressString" ] ;
7779}
7880
7981message EventMainnetVestingAccountCreated {
8082 uint64 campaignID = 1 ;
81- string address = 2 ;
83+ string address = 2 [ (cosmos_proto .scalar ) = "cosmos.AddressString" ] ;
8284 ShareVestingOptions vestingOptions = 3 [(gogoproto.nullable ) = false ];
8385}
8486
8587message EventMainnetVestingAccountUpdated {
8688 uint64 campaignID = 1 ;
87- string address = 2 ;
89+ string address = 2 [ (cosmos_proto .scalar ) = "cosmos.AddressString" ] ;
8890 ShareVestingOptions vestingOptions = 3 [(gogoproto.nullable ) = false ];
8991}
9092
0 commit comments