@@ -22,7 +22,10 @@ message RemotePositionOracle {
2222 uint32 chain_id = 2 ;
2323
2424 // Oracle contract address on the remote chain
25- string oracle_address = 3 ;
25+ string oracle_address = 3 [
26+ (gogoproto.customtype ) = "github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" ,
27+ (gogoproto.nullable ) = false
28+ ];
2629
2730 // Vault address holding this position
2831 string vault_address = 4 ;
@@ -53,7 +56,10 @@ message RemotePositionOracle {
5356// OracleMapping defines the mapping between an oracle and its position
5457message OracleMapping {
5558 // Oracle contract address
56- string oracle_address = 1 ;
59+ string oracle_address = 1 [
60+ (gogoproto.customtype ) = "github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" ,
61+ (gogoproto.nullable ) = false
62+ ];
5763
5864 // Source chain ID
5965 uint32 chain_id = 2 ;
@@ -71,7 +77,10 @@ message EnrolledOracleRouter {
7177 string source_chain = 2 ;
7278
7379 // Oracle contract address
74- string oracle_contract = 3 ;
80+ string oracle_address = 3 [
81+ (gogoproto.customtype ) = "github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" ,
82+ (gogoproto.nullable ) = false
83+ ];
7584}
7685
7786// EnrolledOracle represents a registered oracle
@@ -83,7 +92,10 @@ message EnrolledOracle {
8392 string source_chain = 2 ;
8493
8594 // Oracle address on remote chain
86- string oracle_address = 3 ;
95+ string oracle_address = 3 [
96+ (gogoproto.customtype ) = "github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" ,
97+ (gogoproto.nullable ) = false
98+ ];
8799
88100 // Maximum staleness (seconds)
89101 int64 max_staleness = 4 ;
@@ -306,7 +318,10 @@ message MsgRegisterOracle {
306318 uint64 position_id = 2 ;
307319
308320 // Oracle contract address on remote chain
309- string oracle_address = 3 ;
321+ string oracle_address = 3 [
322+ (gogoproto.customtype ) = "github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" ,
323+ (gogoproto.nullable ) = false
324+ ];
310325
311326 // Source chain identifier
312327 string source_chain = 4 ;
0 commit comments