From 991f0105ae4e6d435be473a33f194dd02f5a41bb Mon Sep 17 00:00:00 2001 From: venkatesh Date: Sun, 5 Sep 2021 12:04:39 +0530 Subject: [PATCH] Update oracle types --- chain/oracle/types/band_ibc.go | 33 ++ chain/oracle/types/codec.go | 2 + chain/oracle/types/errors.go | 2 + chain/oracle/types/genesis.pb.go | 174 +++--- chain/oracle/types/key.go | 15 +- chain/oracle/types/msgs.go | 8 +- chain/oracle/types/oracle.pb.go | 864 +++++++++++++++++++++--------- chain/oracle/types/query.pb.go | 70 ++- chain/oracle/types/query.pb.gw.go | 520 ++++++++++++++++++ chain/oracle/types/tx.pb.go | 147 +++-- 10 files changed, 1444 insertions(+), 391 deletions(-) create mode 100644 chain/oracle/types/band_ibc.go create mode 100644 chain/oracle/types/query.pb.gw.go diff --git a/chain/oracle/types/band_ibc.go b/chain/oracle/types/band_ibc.go new file mode 100644 index 00000000..3a4db9f5 --- /dev/null +++ b/chain/oracle/types/band_ibc.go @@ -0,0 +1,33 @@ +package types + +import ( + bandprice "github.com/InjectiveLabs/sdk-go/bandchain/hooks/price" + bandobi "github.com/bandprotocol/bandchain-packet/obi" + bandPacket "github.com/bandprotocol/bandchain-packet/packet" +) + +func NewOracleRequestPacketData(clientID string, calldata []byte, r *BandOracleRequest) bandPacket.OracleRequestPacketData { + return bandPacket.OracleRequestPacketData{ + ClientID: clientID, + OracleScriptID: uint64(r.OracleScriptId), + Calldata: calldata, + AskCount: r.AskCount, + MinCount: r.MinCount, + FeeLimit: r.FeeLimit, + PrepareGas: r.PrepareGas, + ExecuteGas: r.ExecuteGas, + } +} + +// GetCalldata gets the Band IBC request call data based on the symbols and multiplier. +func (r *BandOracleRequest) GetCalldata() []byte { + + requestCallData := bandprice.Input{ + Symbols: r.Symbols, + Multiplier: BandPriceMultiplier, + } + + callData := bandobi.MustEncode(requestCallData) + + return callData +} diff --git a/chain/oracle/types/codec.go b/chain/oracle/types/codec.go index bc604a42..89201f7b 100644 --- a/chain/oracle/types/codec.go +++ b/chain/oracle/types/codec.go @@ -22,6 +22,7 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&GrantPriceFeederPrivilegeProposal{}, "oracle/GrantPriceFeederPrivilegeProposal", nil) cdc.RegisterConcrete(&RevokePriceFeederPrivilegeProposal{}, "oracle/RevokePriceFeederPrivilegeProposal", nil) cdc.RegisterConcrete(&AuthorizeBandOracleRequestProposal{}, "oracle/AuthorizeBandOracleRequestProposal", nil) + cdc.RegisterConcrete(&UpdateBandOracleRequestProposal{}, "oracle/UpdateBandOracleRequestProposal", nil) cdc.RegisterConcrete(&EnableBandIBCProposal{}, "oracle/EnableBandIBCProposal", nil) } @@ -41,6 +42,7 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { &GrantPriceFeederPrivilegeProposal{}, &RevokePriceFeederPrivilegeProposal{}, &AuthorizeBandOracleRequestProposal{}, + &UpdateBandOracleRequestProposal{}, &EnableBandIBCProposal{}, ) diff --git a/chain/oracle/types/errors.go b/chain/oracle/types/errors.go index 4bc34012..e556d6b1 100644 --- a/chain/oracle/types/errors.go +++ b/chain/oracle/types/errors.go @@ -28,4 +28,6 @@ var ( ErrInvalidPortID = sdkerrors.Register(ModuleName, 21, "invalid IBC Port ID") ErrInvalidChannelID = sdkerrors.Register(ModuleName, 22, "invalid IBC Channel ID") ErrBadRequestInterval = sdkerrors.Register(ModuleName, 23, "invalid Band IBC request interval") + ErrInvalidBandIBCUpdateRequest = sdkerrors.Register(ModuleName, 24, "Invalid Band IBC Update Request Proposal") + ErrBandIBCRequestNotFound = sdkerrors.Register(ModuleName, 25, "Band IBC Oracle Request not found") ) diff --git a/chain/oracle/types/genesis.pb.go b/chain/oracle/types/genesis.pb.go index 7de2bc6d..102c8f45 100644 --- a/chain/oracle/types/genesis.pb.go +++ b/chain/oracle/types/genesis.pb.go @@ -26,16 +26,17 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState defines the oracle module's genesis state. type GenesisState struct { // params defines all the parameters of related to oracle. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - BandRelayers []string `protobuf:"bytes,2,rep,name=band_relayers,json=bandRelayers,proto3" json:"band_relayers,omitempty"` - BandPriceStates []*BandPriceState `protobuf:"bytes,3,rep,name=band_price_states,json=bandPriceStates,proto3" json:"band_price_states,omitempty"` - PriceFeedPriceStates []*PriceFeedState `protobuf:"bytes,4,rep,name=price_feed_price_states,json=priceFeedPriceStates,proto3" json:"price_feed_price_states,omitempty"` - CoinbasePriceStates []*CoinbasePriceState `protobuf:"bytes,5,rep,name=coinbase_price_states,json=coinbasePriceStates,proto3" json:"coinbase_price_states,omitempty"` - BandIbcPriceStates []*BandPriceState `protobuf:"bytes,6,rep,name=band_ibc_price_states,json=bandIbcPriceStates,proto3" json:"band_ibc_price_states,omitempty"` - BandIbcOracleRequest *BandOracleRequest `protobuf:"bytes,7,opt,name=band_ibc_oracle_request,json=bandIbcOracleRequest,proto3" json:"band_ibc_oracle_request,omitempty"` - BandIbcParams *BandIBCParams `protobuf:"bytes,8,opt,name=band_ibc_params,json=bandIbcParams,proto3" json:"band_ibc_params,omitempty"` - BandIbcLatestClientId uint64 `protobuf:"varint,9,opt,name=band_ibc_latest_client_id,json=bandIbcLatestClientId,proto3" json:"band_ibc_latest_client_id,omitempty"` - CalldataRecords []*CalldataRecord `protobuf:"bytes,10,rep,name=calldata_records,json=calldataRecords,proto3" json:"calldata_records,omitempty"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + BandRelayers []string `protobuf:"bytes,2,rep,name=band_relayers,json=bandRelayers,proto3" json:"band_relayers,omitempty"` + BandPriceStates []*BandPriceState `protobuf:"bytes,3,rep,name=band_price_states,json=bandPriceStates,proto3" json:"band_price_states,omitempty"` + PriceFeedPriceStates []*PriceFeedState `protobuf:"bytes,4,rep,name=price_feed_price_states,json=priceFeedPriceStates,proto3" json:"price_feed_price_states,omitempty"` + CoinbasePriceStates []*CoinbasePriceState `protobuf:"bytes,5,rep,name=coinbase_price_states,json=coinbasePriceStates,proto3" json:"coinbase_price_states,omitempty"` + BandIbcPriceStates []*BandPriceState `protobuf:"bytes,6,rep,name=band_ibc_price_states,json=bandIbcPriceStates,proto3" json:"band_ibc_price_states,omitempty"` + BandIbcOracleRequests []*BandOracleRequest `protobuf:"bytes,7,rep,name=band_ibc_oracle_requests,json=bandIbcOracleRequests,proto3" json:"band_ibc_oracle_requests,omitempty"` + BandIbcParams *BandIBCParams `protobuf:"bytes,8,opt,name=band_ibc_params,json=bandIbcParams,proto3" json:"band_ibc_params,omitempty"` + BandIbcLatestClientId uint64 `protobuf:"varint,9,opt,name=band_ibc_latest_client_id,json=bandIbcLatestClientId,proto3" json:"band_ibc_latest_client_id,omitempty"` + CalldataRecords []*CalldataRecord `protobuf:"bytes,10,rep,name=calldata_records,json=calldataRecords,proto3" json:"calldata_records,omitempty"` + BandIbcLatestRequestId uint64 `protobuf:"varint,11,opt,name=band_ibc_latest_request_id,json=bandIbcLatestRequestId,proto3" json:"band_ibc_latest_request_id,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -113,9 +114,9 @@ func (m *GenesisState) GetBandIbcPriceStates() []*BandPriceState { return nil } -func (m *GenesisState) GetBandIbcOracleRequest() *BandOracleRequest { +func (m *GenesisState) GetBandIbcOracleRequests() []*BandOracleRequest { if m != nil { - return m.BandIbcOracleRequest + return m.BandIbcOracleRequests } return nil } @@ -141,6 +142,13 @@ func (m *GenesisState) GetCalldataRecords() []*CalldataRecord { return nil } +func (m *GenesisState) GetBandIbcLatestRequestId() uint64 { + if m != nil { + return m.BandIbcLatestRequestId + } + return 0 +} + type CalldataRecord struct { ClientId uint64 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` Calldata []byte `protobuf:"bytes,2,opt,name=calldata,proto3" json:"calldata,omitempty"` @@ -203,40 +211,41 @@ func init() { } var fileDescriptor_f7e14cf80151b4d2 = []byte{ - // 520 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xc1, 0x6e, 0xd3, 0x30, - 0x18, 0xc7, 0x9b, 0xad, 0x94, 0xd6, 0xeb, 0x28, 0x84, 0x56, 0x0b, 0x45, 0x0a, 0xd1, 0x10, 0x10, - 0x09, 0x48, 0xb4, 0x71, 0xe1, 0xc4, 0xa1, 0x95, 0x40, 0x95, 0x2a, 0x6d, 0xf2, 0x38, 0xc1, 0x21, - 0x38, 0xce, 0xb7, 0xce, 0x28, 0x8d, 0x8b, 0xed, 0x4e, 0xda, 0x5b, 0xf0, 0x22, 0xbc, 0xc7, 0x8e, - 0x3b, 0x72, 0x42, 0xa8, 0x7d, 0x11, 0x14, 0x3b, 0xe9, 0x1a, 0x50, 0x37, 0x71, 0xf3, 0xf7, 0xf9, - 0xfb, 0xff, 0xfe, 0x7f, 0xbb, 0x6e, 0xd0, 0x73, 0x96, 0x7d, 0x05, 0xaa, 0xd8, 0x39, 0x84, 0x5c, - 0x10, 0x9a, 0x42, 0x78, 0x7e, 0x10, 0x83, 0x22, 0x07, 0xe1, 0x04, 0x32, 0x90, 0x4c, 0x06, 0x33, - 0xc1, 0x15, 0xb7, 0x9d, 0xd5, 0x5c, 0x60, 0xe6, 0x82, 0x62, 0xae, 0xff, 0x6c, 0x23, 0xa1, 0x18, - 0xd4, 0x80, 0x7e, 0x77, 0xc2, 0x27, 0x5c, 0x2f, 0xc3, 0x7c, 0x65, 0xba, 0xfb, 0x3f, 0x1a, 0xa8, - 0xfd, 0xc1, 0x18, 0x9d, 0x28, 0xa2, 0xc0, 0x7e, 0x87, 0x1a, 0x33, 0x22, 0xc8, 0x54, 0x3a, 0x96, - 0x67, 0xf9, 0x3b, 0x87, 0x5e, 0xb0, 0xc9, 0x38, 0x38, 0xd6, 0x73, 0x83, 0xfa, 0xe5, 0xaf, 0x27, - 0x35, 0x5c, 0xa8, 0xec, 0xa7, 0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0x88, 0xa6, 0x0c, 0x32, 0x15, - 0xb1, 0xc4, 0x69, 0x79, 0x96, 0x5f, 0xc7, 0xbd, 0x42, 0x31, 0xd6, 0xdb, 0x43, 0xbd, 0x3b, 0x4a, - 0xec, 0x13, 0x74, 0x9f, 0x92, 0x34, 0x4d, 0x88, 0x22, 0x91, 0x00, 0xca, 0x45, 0x22, 0x1d, 0x74, - 0xdb, 0x35, 0x0e, 0x0b, 0x05, 0xd6, 0x02, 0xdc, 0xa1, 0x95, 0x5a, 0xee, 0x8f, 0xd0, 0xbd, 0xea, - 0x88, 0xfd, 0x18, 0xb5, 0xae, 0x03, 0x59, 0x3a, 0x50, 0x93, 0x96, 0x19, 0xfa, 0xa8, 0x59, 0x12, - 0x9c, 0x2d, 0xcf, 0xf2, 0xdb, 0x78, 0x55, 0x0f, 0x4e, 0x2f, 0x17, 0xae, 0x75, 0xb5, 0x70, 0xad, - 0xdf, 0x0b, 0xd7, 0xfa, 0xbe, 0x74, 0x6b, 0x57, 0x4b, 0xb7, 0xf6, 0x73, 0xe9, 0xd6, 0x3e, 0x8d, - 0x27, 0x4c, 0x9d, 0xcd, 0xe3, 0x80, 0xf2, 0x69, 0x38, 0x2a, 0x93, 0x8e, 0x49, 0x2c, 0xc3, 0x55, - 0xee, 0xd7, 0x94, 0x0b, 0x58, 0x2f, 0xcf, 0x08, 0xcb, 0xc2, 0x29, 0x4f, 0xe6, 0x29, 0xc8, 0xf2, - 0x3b, 0xa0, 0x2e, 0x66, 0x20, 0xe3, 0x86, 0xfe, 0xa7, 0xbf, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, - 0x78, 0x09, 0xe6, 0x5a, 0x6a, 0x04, 0x00, 0x00, + // 539 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xe3, 0x26, 0x84, 0x64, 0x93, 0x12, 0x58, 0x1a, 0x30, 0x41, 0x32, 0x56, 0x11, 0x60, + 0x09, 0xb0, 0xd5, 0x72, 0x41, 0x1c, 0x38, 0x24, 0x12, 0xc8, 0x52, 0xa4, 0x56, 0x2e, 0x27, 0x38, + 0x98, 0xf5, 0x7a, 0x9a, 0x1a, 0x39, 0xb6, 0xd9, 0xdd, 0x54, 0xea, 0x5b, 0xf0, 0x58, 0x3d, 0xf6, + 0xc8, 0x09, 0xa1, 0xe4, 0xc8, 0x4b, 0x20, 0xef, 0xda, 0x6e, 0x5c, 0x94, 0x56, 0xdc, 0x3c, 0xe3, + 0x99, 0xef, 0xff, 0x67, 0x34, 0x5a, 0xf4, 0x3c, 0x4a, 0xbe, 0x01, 0x15, 0xd1, 0x29, 0x38, 0x29, + 0x23, 0x34, 0x06, 0xe7, 0x74, 0x2f, 0x00, 0x41, 0xf6, 0x9c, 0x19, 0x24, 0xc0, 0x23, 0x6e, 0x67, + 0x2c, 0x15, 0x29, 0xd6, 0xab, 0x3a, 0x5b, 0xd5, 0xd9, 0x45, 0xdd, 0xe8, 0xd9, 0x46, 0x42, 0x51, + 0x28, 0x01, 0xa3, 0x9d, 0x59, 0x3a, 0x4b, 0xe5, 0xa7, 0x93, 0x7f, 0xa9, 0xec, 0xee, 0x9f, 0x36, + 0xea, 0x7f, 0x54, 0x42, 0x47, 0x82, 0x08, 0xc0, 0xef, 0x51, 0x3b, 0x23, 0x8c, 0xcc, 0xb9, 0xae, + 0x99, 0x9a, 0xd5, 0xdb, 0x37, 0xed, 0x4d, 0xc2, 0xf6, 0xa1, 0xac, 0x1b, 0xb7, 0xce, 0x7f, 0x3d, + 0x69, 0x78, 0x45, 0x17, 0x7e, 0x8a, 0xb6, 0x03, 0x92, 0x84, 0x3e, 0x83, 0x98, 0x9c, 0x01, 0xe3, + 0xfa, 0x96, 0xd9, 0xb4, 0xba, 0x5e, 0x3f, 0x4f, 0x7a, 0x45, 0x0e, 0x7f, 0x42, 0xf7, 0x64, 0x51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x48, 0x04, 0xf1, 0x19, 0xd0, 0x94, 0x85, 0x5c, 0x47, 0x37, + 0x2d, 0x72, 0x52, 0x74, 0x78, 0xb2, 0xc1, 0x1b, 0xd0, 0x5a, 0xcc, 0xf1, 0x3b, 0x34, 0xba, 0x6a, + 0xa7, 0xd8, 0x62, 0xee, 0xa7, 0x27, 0xfd, 0x3c, 0xa8, 0xf9, 0x29, 0x56, 0xe3, 0x86, 0xbb, 0x2e, + 0xba, 0x53, 0xc7, 0xe3, 0xc7, 0xa8, 0x7b, 0x39, 0x8c, 0x26, 0x9b, 0x3b, 0xb4, 0xf4, 0x3f, 0x42, + 0x9d, 0x52, 0x5d, 0xdf, 0x32, 0x35, 0xab, 0xef, 0x55, 0xf1, 0xf8, 0xf8, 0x7c, 0x69, 0x68, 0x17, + 0x4b, 0x43, 0xfb, 0xbd, 0x34, 0xb4, 0x1f, 0x2b, 0xa3, 0x71, 0xb1, 0x32, 0x1a, 0x3f, 0x57, 0x46, + 0xe3, 0xf3, 0x74, 0x16, 0x89, 0x93, 0x45, 0x60, 0xd3, 0x74, 0xee, 0xb8, 0xe5, 0x94, 0x53, 0x12, + 0x70, 0xa7, 0x9a, 0xf9, 0x35, 0x4d, 0x19, 0xac, 0x87, 0x27, 0x24, 0x4a, 0x9c, 0x79, 0x1a, 0x2e, + 0x62, 0xe0, 0xe5, 0x2b, 0x22, 0xce, 0x32, 0xe0, 0x41, 0x5b, 0xbe, 0x13, 0x6f, 0xfe, 0x06, 0x00, + 0x00, 0xff, 0xff, 0xca, 0xb2, 0x11, 0xa8, 0xa8, 0x04, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -259,6 +268,11 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.BandIbcLatestRequestId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BandIbcLatestRequestId)) + i-- + dAtA[i] = 0x58 + } if len(m.CalldataRecords) > 0 { for iNdEx := len(m.CalldataRecords) - 1; iNdEx >= 0; iNdEx-- { { @@ -290,17 +304,19 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x42 } - if m.BandIbcOracleRequest != nil { - { - size, err := m.BandIbcOracleRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.BandIbcOracleRequests) > 0 { + for iNdEx := len(m.BandIbcOracleRequests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BandIbcOracleRequests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a } - i-- - dAtA[i] = 0x3a } if len(m.BandIbcPriceStates) > 0 { for iNdEx := len(m.BandIbcPriceStates) - 1; iNdEx >= 0; iNdEx-- { @@ -464,9 +480,11 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - if m.BandIbcOracleRequest != nil { - l = m.BandIbcOracleRequest.Size() - n += 1 + l + sovGenesis(uint64(l)) + if len(m.BandIbcOracleRequests) > 0 { + for _, e := range m.BandIbcOracleRequests { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } } if m.BandIbcParams != nil { l = m.BandIbcParams.Size() @@ -481,6 +499,9 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + if m.BandIbcLatestRequestId != 0 { + n += 1 + sovGenesis(uint64(m.BandIbcLatestRequestId)) + } return n } @@ -738,7 +759,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BandIbcOracleRequest", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BandIbcOracleRequests", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -765,10 +786,8 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.BandIbcOracleRequest == nil { - m.BandIbcOracleRequest = &BandOracleRequest{} - } - if err := m.BandIbcOracleRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.BandIbcOracleRequests = append(m.BandIbcOracleRequests, &BandOracleRequest{}) + if err := m.BandIbcOracleRequests[len(m.BandIbcOracleRequests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -861,13 +880,35 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BandIbcLatestRequestId", wireType) + } + m.BandIbcLatestRequestId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BandIbcLatestRequestId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthGenesis } if (iNdEx + skippy) > l { @@ -970,7 +1011,10 @@ func (m *CalldataRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthGenesis } if (iNdEx + skippy) > l { diff --git a/chain/oracle/types/key.go b/chain/oracle/types/key.go index ba45131a..9a4216f3 100644 --- a/chain/oracle/types/key.go +++ b/chain/oracle/types/key.go @@ -33,11 +33,12 @@ var ( CoinbasePriceKey = []byte{0x21} // Band IBC - BandIBCPriceKey = []byte{0x31} - LatestClientIDKey = []byte{0x32} - BandIBCCallDataRecordKey = []byte{0x33} - BandIBCOracleRequestKey = []byte{0x34} - BandIBCParamsKey = []byte{0x35} + BandIBCPriceKey = []byte{0x31} + LatestClientIDKey = []byte{0x32} + BandIBCCallDataRecordKey = []byte{0x33} + BandIBCOracleRequestIDKey = []byte{0x34} + BandIBCParamsKey = []byte{0x35} + LatestRequestIDKey = []byte{0x36} ) func GetBandPriceStoreKey(symbol string) []byte { @@ -48,6 +49,10 @@ func GetBandRelayerStoreKey(relayer sdk.AccAddress) []byte { return append(BandRelayerKey, relayer.Bytes()...) } +func GetBandIBCOracleRequestIDKey(requestID uint64) []byte { + return append(BandIBCOracleRequestIDKey, sdk.Uint64ToBigEndian(requestID)...) +} + func GetBandIBCPriceStoreKey(symbol string) []byte { return append(BandIBCPriceKey, []byte(symbol)...) } diff --git a/chain/oracle/types/msgs.go b/chain/oracle/types/msgs.go index dcca9535..e3b09eed 100644 --- a/chain/oracle/types/msgs.go +++ b/chain/oracle/types/msgs.go @@ -145,9 +145,11 @@ func (msg MsgRelayCoinbaseMessages) GetSigners() []sdk.AccAddress { // NewMsgRequestBandIBCRates creates a new MsgRequestBandIBCRates instance. func NewMsgRequestBandIBCRates( sender sdk.AccAddress, + requestID uint64, ) *MsgRequestBandIBCRates { return &MsgRequestBandIBCRates{ - Sender: sender.String(), + Sender: sender.String(), + RequestId: requestID, } } @@ -166,6 +168,10 @@ func (msg MsgRequestBandIBCRates) ValidateBasic() error { if sender.Empty() { return sdkerrors.Wrapf(ErrInvalidBandIBCRequest, "MsgRequestBandIBCRates: Sender address must not be empty.") } + + if msg.RequestId == 0 { + return sdkerrors.Wrapf(ErrInvalidBandIBCRequest, "MsgRequestBandIBCRates: requestID should be greater than zero") + } return nil } diff --git a/chain/oracle/types/oracle.pb.go b/chain/oracle/types/oracle.pb.go index bfce83d7..3fddb1ba 100644 --- a/chain/oracle/types/oracle.pb.go +++ b/chain/oracle/types/oracle.pb.go @@ -1144,6 +1144,46 @@ func (m *AuthorizeBandOracleRequestProposal) XXX_DiscardUnknown() { var xxx_messageInfo_AuthorizeBandOracleRequestProposal proto.InternalMessageInfo +type UpdateBandOracleRequestProposal struct { + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + DeleteRequestId uint64 `protobuf:"varint,3,opt,name=delete_request_id,json=deleteRequestId,proto3" json:"delete_request_id,omitempty"` + UpdateOracleRequest *BandOracleRequest `protobuf:"bytes,4,opt,name=update_oracle_request,json=updateOracleRequest,proto3" json:"update_oracle_request,omitempty"` +} + +func (m *UpdateBandOracleRequestProposal) Reset() { *m = UpdateBandOracleRequestProposal{} } +func (m *UpdateBandOracleRequestProposal) String() string { return proto.CompactTextString(m) } +func (*UpdateBandOracleRequestProposal) ProtoMessage() {} +func (*UpdateBandOracleRequestProposal) Descriptor() ([]byte, []int) { + return fileDescriptor_1c8fbf1e7a765423, []int{20} +} +func (m *UpdateBandOracleRequestProposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateBandOracleRequestProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateBandOracleRequestProposal.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UpdateBandOracleRequestProposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateBandOracleRequestProposal.Merge(m, src) +} +func (m *UpdateBandOracleRequestProposal) XXX_Size() int { + return m.Size() +} +func (m *UpdateBandOracleRequestProposal) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateBandOracleRequestProposal.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateBandOracleRequestProposal proto.InternalMessageInfo + type EnableBandIBCProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` @@ -1154,7 +1194,7 @@ func (m *EnableBandIBCProposal) Reset() { *m = EnableBandIBCProposal{} } func (m *EnableBandIBCProposal) String() string { return proto.CompactTextString(m) } func (*EnableBandIBCProposal) ProtoMessage() {} func (*EnableBandIBCProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_1c8fbf1e7a765423, []int{20} + return fileDescriptor_1c8fbf1e7a765423, []int{21} } func (m *EnableBandIBCProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1184,39 +1224,32 @@ func (m *EnableBandIBCProposal) XXX_DiscardUnknown() { var xxx_messageInfo_EnableBandIBCProposal proto.InternalMessageInfo type BandOracleRequest struct { - // band IBC source channel - IbcSourceChannel string `protobuf:"bytes,1,opt,name=ibc_source_channel,json=ibcSourceChannel,proto3" json:"ibc_source_channel,omitempty"` - // band IBC version - IbcVersion string `protobuf:"bytes,2,opt,name=ibc_version,json=ibcVersion,proto3" json:"ibc_version,omitempty"` - // band IBC portID - IbcPortId string `protobuf:"bytes,3,opt,name=ibc_port_id,json=ibcPortId,proto3" json:"ibc_port_id,omitempty"` + // Unique Identifier for band ibc oracle request + RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // OracleScriptID is the unique identifier of the oracle script to be executed. - OracleScriptId int64 `protobuf:"varint,4,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"` + OracleScriptId int64 `protobuf:"varint,2,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"` // Symbols is the list of symbols to prepare in the calldata - Symbols []string `protobuf:"bytes,5,rep,name=symbols,proto3" json:"symbols,omitempty"` + Symbols []string `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"` // AskCount is the number of validators that are requested to respond to this // oracle request. Higher value means more security, at a higher gas cost. - AskCount uint64 `protobuf:"varint,6,opt,name=ask_count,json=askCount,proto3" json:"ask_count,omitempty"` + AskCount uint64 `protobuf:"varint,4,opt,name=ask_count,json=askCount,proto3" json:"ask_count,omitempty"` // MinCount is the minimum number of validators necessary for the request to // proceed to the execution phase. Higher value means more security, at the // cost of liveness. - MinCount uint64 `protobuf:"varint,7,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"` + MinCount uint64 `protobuf:"varint,5,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"` // FeeLimit is the maximum tokens that will be paid to all data source providers. - FeeLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,8,rep,name=fee_limit,json=feeLimit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee_limit"` - // RequestKey is the key from request chain to match data source fee payer on Bandchain - // The key from the request chain which identifies the pool account on Bandchain to process data source fee - RequestKey string `protobuf:"bytes,9,opt,name=request_key,json=requestKey,proto3" json:"request_key,omitempty"` + FeeLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=fee_limit,json=feeLimit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee_limit"` // PrepareGas is amount of gas to pay to prepare raw requests - PrepareGas uint64 `protobuf:"varint,10,opt,name=prepare_gas,json=prepareGas,proto3" json:"prepare_gas,omitempty"` + PrepareGas uint64 `protobuf:"varint,7,opt,name=prepare_gas,json=prepareGas,proto3" json:"prepare_gas,omitempty"` // ExecuteGas is amount of gas to reserve for executing - ExecuteGas uint64 `protobuf:"varint,11,opt,name=execute_gas,json=executeGas,proto3" json:"execute_gas,omitempty"` + ExecuteGas uint64 `protobuf:"varint,8,opt,name=execute_gas,json=executeGas,proto3" json:"execute_gas,omitempty"` } func (m *BandOracleRequest) Reset() { *m = BandOracleRequest{} } func (m *BandOracleRequest) String() string { return proto.CompactTextString(m) } func (*BandOracleRequest) ProtoMessage() {} func (*BandOracleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1c8fbf1e7a765423, []int{21} + return fileDescriptor_1c8fbf1e7a765423, []int{22} } func (m *BandOracleRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1245,25 +1278,11 @@ func (m *BandOracleRequest) XXX_DiscardUnknown() { var xxx_messageInfo_BandOracleRequest proto.InternalMessageInfo -func (m *BandOracleRequest) GetIbcSourceChannel() string { - if m != nil { - return m.IbcSourceChannel - } - return "" -} - -func (m *BandOracleRequest) GetIbcVersion() string { - if m != nil { - return m.IbcVersion - } - return "" -} - -func (m *BandOracleRequest) GetIbcPortId() string { +func (m *BandOracleRequest) GetRequestId() uint64 { if m != nil { - return m.IbcPortId + return m.RequestId } - return "" + return 0 } func (m *BandOracleRequest) GetOracleScriptId() int64 { @@ -1301,13 +1320,6 @@ func (m *BandOracleRequest) GetFeeLimit() github_com_cosmos_cosmos_sdk_types.Coi return nil } -func (m *BandOracleRequest) GetRequestKey() string { - if m != nil { - return m.RequestKey - } - return "" -} - func (m *BandOracleRequest) GetPrepareGas() uint64 { if m != nil { return m.PrepareGas @@ -1327,13 +1339,19 @@ type BandIBCParams struct { BandIbcEnabled bool `protobuf:"varint,1,opt,name=band_ibc_enabled,json=bandIbcEnabled,proto3" json:"band_ibc_enabled,omitempty"` // block request interval to send Band IBC prices IbcRequestInterval int64 `protobuf:"varint,2,opt,name=ibc_request_interval,json=ibcRequestInterval,proto3" json:"ibc_request_interval,omitempty"` + // band IBC source channel + IbcSourceChannel string `protobuf:"bytes,3,opt,name=ibc_source_channel,json=ibcSourceChannel,proto3" json:"ibc_source_channel,omitempty"` + // band IBC version + IbcVersion string `protobuf:"bytes,4,opt,name=ibc_version,json=ibcVersion,proto3" json:"ibc_version,omitempty"` + // band IBC portID + IbcPortId string `protobuf:"bytes,5,opt,name=ibc_port_id,json=ibcPortId,proto3" json:"ibc_port_id,omitempty"` } func (m *BandIBCParams) Reset() { *m = BandIBCParams{} } func (m *BandIBCParams) String() string { return proto.CompactTextString(m) } func (*BandIBCParams) ProtoMessage() {} func (*BandIBCParams) Descriptor() ([]byte, []int) { - return fileDescriptor_1c8fbf1e7a765423, []int{22} + return fileDescriptor_1c8fbf1e7a765423, []int{23} } func (m *BandIBCParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1376,6 +1394,27 @@ func (m *BandIBCParams) GetIbcRequestInterval() int64 { return 0 } +func (m *BandIBCParams) GetIbcSourceChannel() string { + if m != nil { + return m.IbcSourceChannel + } + return "" +} + +func (m *BandIBCParams) GetIbcVersion() string { + if m != nil { + return m.IbcVersion + } + return "" +} + +func (m *BandIBCParams) GetIbcPortId() string { + if m != nil { + return m.IbcPortId + } + return "" +} + func init() { proto.RegisterEnum("injective.oracle.v1beta1.OracleType", OracleType_name, OracleType_value) proto.RegisterType((*Params)(nil), "injective.oracle.v1beta1.Params") @@ -1398,6 +1437,7 @@ func init() { proto.RegisterType((*SetCoinbasePriceEvent)(nil), "injective.oracle.v1beta1.SetCoinbasePriceEvent") proto.RegisterType((*PriceState)(nil), "injective.oracle.v1beta1.PriceState") proto.RegisterType((*AuthorizeBandOracleRequestProposal)(nil), "injective.oracle.v1beta1.AuthorizeBandOracleRequestProposal") + proto.RegisterType((*UpdateBandOracleRequestProposal)(nil), "injective.oracle.v1beta1.UpdateBandOracleRequestProposal") proto.RegisterType((*EnableBandIBCProposal)(nil), "injective.oracle.v1beta1.EnableBandIBCProposal") proto.RegisterType((*BandOracleRequest)(nil), "injective.oracle.v1beta1.BandOracleRequest") proto.RegisterType((*BandIBCParams)(nil), "injective.oracle.v1beta1.BandIBCParams") @@ -1408,95 +1448,98 @@ func init() { } var fileDescriptor_1c8fbf1e7a765423 = []byte{ - // 1407 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xcf, 0xc6, 0x4e, 0x62, 0x3f, 0x37, 0xc9, 0x76, 0x94, 0x56, 0xfe, 0xb6, 0xdf, 0xaf, 0xe3, - 0x5a, 0x5f, 0x8a, 0x55, 0xa8, 0xdd, 0x1f, 0x27, 0x7a, 0xab, 0x93, 0x10, 0x59, 0xad, 0x84, 0x59, - 0x37, 0x95, 0xe0, 0xb2, 0x1a, 0xaf, 0x5f, 0x92, 0xc1, 0xeb, 0xdd, 0xed, 0xcc, 0xac, 0x45, 0x7a, - 0x82, 0x1b, 0x47, 0x10, 0x67, 0xa4, 0x8a, 0x23, 0x70, 0x40, 0xe2, 0x08, 0x7f, 0x40, 0x25, 0x84, - 0x54, 0x89, 0x0b, 0xe2, 0x50, 0x50, 0x7b, 0xe9, 0x85, 0xbf, 0x80, 0x0b, 0x9a, 0x1f, 0xb6, 0xd7, - 0x69, 0x53, 0x8a, 0x52, 0x09, 0xc1, 0xc9, 0x3b, 0xef, 0xbd, 0x79, 0xf3, 0x79, 0x9f, 0x79, 0x6f, - 0xde, 0x33, 0xbc, 0xc2, 0xa2, 0xf7, 0x30, 0x90, 0x6c, 0x84, 0xcd, 0x98, 0xd3, 0x20, 0xc4, 0xe6, - 0xe8, 0x72, 0x0f, 0x25, 0xbd, 0x6c, 0x97, 0x8d, 0x84, 0xc7, 0x32, 0x26, 0xe5, 0x89, 0x59, 0xc3, - 0xca, 0xad, 0xd9, 0x99, 0xb5, 0xbd, 0x78, 0x2f, 0xd6, 0x46, 0x4d, 0xf5, 0x65, 0xec, 0xcf, 0x54, - 0x82, 0x58, 0x0c, 0x63, 0xd1, 0xec, 0x51, 0x31, 0xf5, 0x18, 0xc4, 0x2c, 0x32, 0xfa, 0xda, 0x0a, - 0x2c, 0x76, 0x28, 0xa7, 0x43, 0x71, 0x2d, 0xff, 0xe4, 0xde, 0xba, 0x53, 0xfb, 0xdd, 0x81, 0x95, - 0x16, 0x8d, 0xfa, 0x1d, 0xce, 0x02, 0xec, 0x4a, 0x2a, 0x91, 0x9c, 0x86, 0x45, 0x71, 0x30, 0xec, - 0xc5, 0x61, 0xd9, 0xa9, 0x3a, 0xf5, 0xa2, 0x67, 0x57, 0xa4, 0x05, 0x79, 0x4e, 0x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0x17, 0x48, - 0x7f, 0xb5, 0x41, 0x78, 0x85, 0x5d, 0xc4, 0x9b, 0xca, 0xb9, 0xa2, 0x6b, 0x3c, 0x18, 0xab, 0xc7, - 0xab, 0x68, 0xe8, 0xb2, 0xa2, 0x1b, 0x78, 0xa0, 0x0c, 0x12, 0x8e, 0x09, 0xe5, 0xe8, 0xef, 0x51, - 0x51, 0x06, 0x8d, 0x14, 0xac, 0x68, 0x9b, 0x0a, 0x65, 0x80, 0xef, 0x63, 0x90, 0x4a, 0x63, 0x50, - 0x32, 0x06, 0x56, 0xb4, 0x4d, 0x45, 0x6d, 0x00, 0xcb, 0x33, 0x59, 0xa0, 0x18, 0x9e, 0xe4, 0x11, - 0xea, 0x0c, 0x35, 0xcf, 0x6c, 0xc1, 0x5b, 0xb1, 0x99, 0x61, 0xf2, 0xb6, 0x4f, 0x2e, 0xc1, 0x9a, - 0x32, 0x9a, 0x8c, 0xee, 0x91, 0x44, 0x3e, 0xa2, 0xa1, 0x1d, 0x7d, 0x55, 0x5a, 0xd8, 0x24, 0x69, - 0x5b, 0xcd, 0x85, 0x4f, 0x1c, 0x00, 0x93, 0x3e, 0xb7, 0x0e, 0x12, 0x24, 0xab, 0x50, 0xda, 0x89, - 0x44, 0x82, 0x01, 0xdb, 0x65, 0xd8, 0x77, 0xe7, 0x48, 0x01, 0xf2, 0x0a, 0x8c, 0xeb, 0x90, 0x65, - 0x28, 0x4e, 0x1a, 0x93, 0x3b, 0x4f, 0x4e, 0x40, 0x61, 0xfc, 0x88, 0xba, 0x39, 0xa5, 0xdc, 0xd8, - 0xa7, 0x2c, 0x0a, 0x59, 0x34, 0x70, 0xf3, 0xa4, 0x08, 0x0b, 0x1e, 0xbd, 0x1b, 0x73, 0x77, 0x81, - 0x2c, 0x41, 0x6e, 0x93, 0x51, 0x77, 0x51, 0x79, 0xba, 0xde, 0x69, 0x5f, 0x75, 0x97, 0x94, 0x68, - 0x67, 0x48, 0xdd, 0x82, 0x12, 0x75, 0x0e, 0xe4, 0xbe, 0x5b, 0x24, 0x25, 0x58, 0xb2, 0x31, 0xbb, - 0xd0, 0xda, 0xbd, 0xff, 0xa8, 0xe2, 0x3c, 0x78, 0x54, 0x71, 0x7e, 0x7d, 0x54, 0x71, 0x3e, 0x7e, - 0x5c, 0x99, 0x7b, 0xf0, 0xb8, 0x32, 0xf7, 0xd3, 0xe3, 0xca, 0xdc, 0xbb, 0x37, 0x33, 0x37, 0xd6, - 0x1e, 0x97, 0xd0, 0x4d, 0xda, 0x13, 0xcd, 0x49, 0x41, 0x5d, 0x0c, 0x62, 0x8e, 0xd9, 0xa5, 0x82, - 0xd5, 0x1c, 0xc6, 0xfd, 0x34, 0x44, 0x31, 0xfe, 0x57, 0xaf, 0xef, 0xb6, 0xb7, 0xa8, 0xff, 0x7d, - 0x5f, 0xfd, 0x23, 0x00, 0x00, 0xff, 0xff, 0x46, 0x35, 0x4c, 0x45, 0xf6, 0x0f, 0x00, 0x00, + // 1452 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xbd, 0x6f, 0x1b, 0xc9, + 0x15, 0xd7, 0x90, 0x94, 0x44, 0x3e, 0x59, 0xd2, 0x6a, 0x22, 0x1b, 0x8c, 0x9d, 0x90, 0x34, 0x91, + 0x38, 0x84, 0x13, 0x93, 0xfe, 0xa8, 0xe2, 0xce, 0x94, 0x14, 0x81, 0xb0, 0x81, 0x30, 0x4b, 0xcb, + 0x40, 0xd2, 0x2c, 0x86, 0xbb, 0x4f, 0xd2, 0x84, 0xcb, 0x5d, 0x7a, 0x67, 0x48, 0x44, 0xae, 0x92, + 0x2e, 0x65, 0x82, 0xd4, 0x01, 0x8c, 0x94, 0x49, 0x8a, 0x00, 0x29, 0xef, 0xfe, 0x00, 0x03, 0x87, + 0x03, 0x5c, 0x1e, 0x5c, 0xf8, 0x0e, 0x72, 0xe3, 0xe6, 0x80, 0xeb, 0xaf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0x98, 0xc6, 0x15, 0x75, 0xc6, 0x18, 0x9a, 0x8b, 0xee, 0x9a, 0x8d, 0x94, 0xc9, 0xa3, 0x80, 0xde, + 0x84, 0x4d, 0xa5, 0x94, 0x86, 0x23, 0x92, 0x98, 0x4c, 0x58, 0x68, 0xf9, 0xa6, 0xbc, 0xef, 0x4f, + 0x53, 0xdd, 0xee, 0xd0, 0x5f, 0x81, 0x92, 0x7a, 0x22, 0x1e, 0x27, 0x3e, 0x7a, 0xfe, 0x21, 0x8b, + 0x22, 0x0c, 0x6d, 0x5b, 0x70, 0x78, 0xdf, 0xef, 0xe9, 0x8d, 0x2d, 0x23, 0x57, 0xe0, 0x95, 0xf6, + 0x04, 0x13, 0xa1, 0x72, 0xd0, 0x0c, 0x26, 0xc0, 0xfb, 0xfe, 0x23, 0x23, 0xa1, 0x15, 0xa3, 0x30, + 0x8a, 0x93, 0xf4, 0xb7, 0x4b, 0xc9, 0x2d, 0xf1, 0xbe, 0xdf, 0x8d, 0x13, 0xd9, 0x09, 0xae, 0xff, + 0x9d, 0x00, 0x98, 0xec, 0x79, 0x78, 0x34, 0x42, 0xba, 0x0e, 0x2b, 0x7b, 0x91, 0x18, 0xa1, 0xcf, + 0xf7, 0x39, 0x06, 0xce, 0x02, 0x2d, 0x42, 0x41, 0xf9, 0xee, 0x10, 0xba, 0x0a, 0xa5, 0xb4, 0x15, + 0x3b, 0x39, 0x7a, 0x01, 0x8a, 0xd3, 0xb6, 0xe1, 0xe4, 0xd5, 0xe6, 0xd6, 0x21, 0xe3, 0x51, 0xc8, + 0xa3, 0x81, 0x53, 0xa0, 0x25, 0x58, 0x74, 0xd9, 0x93, 0x38, 0x71, 0x16, 0xe9, 0x32, 0xe4, 0xb7, + 0x39, 0x73, 0x96, 0x94, 0xa5, 0x7b, 0xdd, 0xce, 0x1d, 0x67, 0x59, 0x89, 0xf6, 0x86, 0xcc, 0x29, + 0x2a, 0x51, 0xf7, 0x48, 0x1e, 0x3a, 0x25, 0xba, 0x02, 0xcb, 0x96, 0x62, 0x07, 0xda, 0xfb, 0xcf, + 0x8e, 0x2b, 0xe4, 0xf9, 0x71, 0x85, 0x7c, 0x71, 0x5c, 0x21, 0x7f, 0x7b, 0x55, 0x59, 0x78, 0xfe, + 0xaa, 0xb2, 0xf0, 0xd9, 0xab, 0xca, 0xc2, 0x1f, 0x1e, 0x64, 0x12, 0xa0, 0x33, 0xad, 0xa0, 0x07, + 0xac, 0x2f, 0x5a, 0x69, 0x3d, 0xdd, 0xf0, 0xe3, 0x04, 0xb3, 0x4b, 0x05, 0xab, 0x35, 0x8c, 0x83, + 0x71, 0x88, 0x62, 0xfa, 0x7f, 0x0c, 0x9d, 0x2a, 0xfd, 0x25, 0xfd, 0xff, 0x86, 0x3b, 0xdf, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x6a, 0x0e, 0xe0, 0xd6, 0xe8, 0x10, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -2462,6 +2505,60 @@ func (m *AuthorizeBandOracleRequestProposal) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } +func (m *UpdateBandOracleRequestProposal) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateBandOracleRequestProposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateBandOracleRequestProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UpdateOracleRequest != nil { + { + size, err := m.UpdateOracleRequest.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.DeleteRequestId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.DeleteRequestId)) + i-- + dAtA[i] = 0x18 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintOracle(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintOracle(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *EnableBandIBCProposal) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2532,19 +2629,12 @@ func (m *BandOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.ExecuteGas != 0 { i = encodeVarintOracle(dAtA, i, uint64(m.ExecuteGas)) i-- - dAtA[i] = 0x58 + dAtA[i] = 0x40 } if m.PrepareGas != 0 { i = encodeVarintOracle(dAtA, i, uint64(m.PrepareGas)) i-- - dAtA[i] = 0x50 - } - if len(m.RequestKey) > 0 { - i -= len(m.RequestKey) - copy(dAtA[i:], m.RequestKey) - i = encodeVarintOracle(dAtA, i, uint64(len(m.RequestKey))) - i-- - dAtA[i] = 0x4a + dAtA[i] = 0x38 } if len(m.FeeLimit) > 0 { for iNdEx := len(m.FeeLimit) - 1; iNdEx >= 0; iNdEx-- { @@ -2557,18 +2647,18 @@ func (m *BandOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintOracle(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x42 + dAtA[i] = 0x32 } } if m.MinCount != 0 { i = encodeVarintOracle(dAtA, i, uint64(m.MinCount)) i-- - dAtA[i] = 0x38 + dAtA[i] = 0x28 } if m.AskCount != 0 { i = encodeVarintOracle(dAtA, i, uint64(m.AskCount)) i-- - dAtA[i] = 0x30 + dAtA[i] = 0x20 } if len(m.Symbols) > 0 { for iNdEx := len(m.Symbols) - 1; iNdEx >= 0; iNdEx-- { @@ -2576,34 +2666,18 @@ func (m *BandOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Symbols[iNdEx]) i = encodeVarintOracle(dAtA, i, uint64(len(m.Symbols[iNdEx]))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x1a } } if m.OracleScriptId != 0 { i = encodeVarintOracle(dAtA, i, uint64(m.OracleScriptId)) i-- - dAtA[i] = 0x20 - } - if len(m.IbcPortId) > 0 { - i -= len(m.IbcPortId) - copy(dAtA[i:], m.IbcPortId) - i = encodeVarintOracle(dAtA, i, uint64(len(m.IbcPortId))) - i-- - dAtA[i] = 0x1a - } - if len(m.IbcVersion) > 0 { - i -= len(m.IbcVersion) - copy(dAtA[i:], m.IbcVersion) - i = encodeVarintOracle(dAtA, i, uint64(len(m.IbcVersion))) - i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if len(m.IbcSourceChannel) > 0 { - i -= len(m.IbcSourceChannel) - copy(dAtA[i:], m.IbcSourceChannel) - i = encodeVarintOracle(dAtA, i, uint64(len(m.IbcSourceChannel))) + if m.RequestId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.RequestId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -2628,6 +2702,27 @@ func (m *BandIBCParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.IbcPortId) > 0 { + i -= len(m.IbcPortId) + copy(dAtA[i:], m.IbcPortId) + i = encodeVarintOracle(dAtA, i, uint64(len(m.IbcPortId))) + i-- + dAtA[i] = 0x2a + } + if len(m.IbcVersion) > 0 { + i -= len(m.IbcVersion) + copy(dAtA[i:], m.IbcVersion) + i = encodeVarintOracle(dAtA, i, uint64(len(m.IbcVersion))) + i-- + dAtA[i] = 0x22 + } + if len(m.IbcSourceChannel) > 0 { + i -= len(m.IbcSourceChannel) + copy(dAtA[i:], m.IbcSourceChannel) + i = encodeVarintOracle(dAtA, i, uint64(len(m.IbcSourceChannel))) + i-- + dAtA[i] = 0x1a + } if m.IbcRequestInterval != 0 { i = encodeVarintOracle(dAtA, i, uint64(m.IbcRequestInterval)) i-- @@ -3075,7 +3170,7 @@ func (m *AuthorizeBandOracleRequestProposal) Size() (n int) { return n } -func (m *EnableBandIBCProposal) Size() (n int) { +func (m *UpdateBandOracleRequestProposal) Size() (n int) { if m == nil { return 0 } @@ -3089,28 +3184,43 @@ func (m *EnableBandIBCProposal) Size() (n int) { if l > 0 { n += 1 + l + sovOracle(uint64(l)) } - l = m.BandIbcParams.Size() - n += 1 + l + sovOracle(uint64(l)) + if m.DeleteRequestId != 0 { + n += 1 + sovOracle(uint64(m.DeleteRequestId)) + } + if m.UpdateOracleRequest != nil { + l = m.UpdateOracleRequest.Size() + n += 1 + l + sovOracle(uint64(l)) + } return n } -func (m *BandOracleRequest) Size() (n int) { +func (m *EnableBandIBCProposal) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.IbcSourceChannel) + l = len(m.Title) if l > 0 { n += 1 + l + sovOracle(uint64(l)) } - l = len(m.IbcVersion) + l = len(m.Description) if l > 0 { n += 1 + l + sovOracle(uint64(l)) } - l = len(m.IbcPortId) - if l > 0 { - n += 1 + l + sovOracle(uint64(l)) + l = m.BandIbcParams.Size() + n += 1 + l + sovOracle(uint64(l)) + return n +} + +func (m *BandOracleRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RequestId != 0 { + n += 1 + sovOracle(uint64(m.RequestId)) } if m.OracleScriptId != 0 { n += 1 + sovOracle(uint64(m.OracleScriptId)) @@ -3133,10 +3243,6 @@ func (m *BandOracleRequest) Size() (n int) { n += 1 + l + sovOracle(uint64(l)) } } - l = len(m.RequestKey) - if l > 0 { - n += 1 + l + sovOracle(uint64(l)) - } if m.PrepareGas != 0 { n += 1 + sovOracle(uint64(m.PrepareGas)) } @@ -3158,6 +3264,18 @@ func (m *BandIBCParams) Size() (n int) { if m.IbcRequestInterval != 0 { n += 1 + sovOracle(uint64(m.IbcRequestInterval)) } + l = len(m.IbcSourceChannel) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.IbcVersion) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.IbcPortId) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } return n } @@ -3202,7 +3320,10 @@ func (m *Params) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -3389,7 +3510,10 @@ func (m *BandPriceState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -3575,7 +3699,10 @@ func (m *SetBandPriceEvent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -3780,7 +3907,10 @@ func (m *SetBandIBCPriceEvent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -3881,7 +4011,10 @@ func (m *EventBandIBCAckSuccess) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -3982,7 +4115,10 @@ func (m *EventBandIBCAckError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -4051,7 +4187,10 @@ func (m *EventBandIBCResponseTimeout) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -4229,7 +4368,10 @@ func (m *GetReferenceData) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -4375,7 +4517,10 @@ func (m *GrantBandOraclePrivilegeProposal) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -4521,7 +4666,10 @@ func (m *RevokeBandOraclePrivilegeProposal) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -4731,7 +4879,10 @@ func (m *GrantPriceFeederPrivilegeProposal) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -4941,7 +5092,10 @@ func (m *RevokePriceFeederPrivilegeProposal) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -5123,7 +5277,10 @@ func (m *PriceFeedState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -5237,7 +5394,10 @@ func (m *PriceFeedInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -5321,7 +5481,10 @@ func (m *PriceFeedPrice) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -5501,7 +5664,10 @@ func (m *SetPriceFeedPriceEvent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -5686,7 +5852,10 @@ func (m *CoinbasePriceState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -5821,7 +5990,10 @@ func (m *SetCoinbasePriceEvent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -5958,7 +6130,10 @@ func (m *PriceState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -6105,7 +6280,10 @@ func (m *AuthorizeBandOracleRequestProposal) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -6120,7 +6298,7 @@ func (m *AuthorizeBandOracleRequestProposal) Unmarshal(dAtA []byte) error { } return nil } -func (m *EnableBandIBCProposal) Unmarshal(dAtA []byte) error { +func (m *UpdateBandOracleRequestProposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6143,10 +6321,10 @@ func (m *EnableBandIBCProposal) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EnableBandIBCProposal: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateBandOracleRequestProposal: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EnableBandIBCProposal: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateBandOracleRequestProposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6214,8 +6392,27 @@ func (m *EnableBandIBCProposal) Unmarshal(dAtA []byte) error { m.Description = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteRequestId", wireType) + } + m.DeleteRequestId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DeleteRequestId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BandIbcParams", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UpdateOracleRequest", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6242,7 +6439,10 @@ func (m *EnableBandIBCProposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.BandIbcParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.UpdateOracleRequest == nil { + m.UpdateOracleRequest = &BandOracleRequest{} + } + if err := m.UpdateOracleRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6252,7 +6452,10 @@ func (m *EnableBandIBCProposal) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -6267,7 +6470,7 @@ func (m *EnableBandIBCProposal) Unmarshal(dAtA []byte) error { } return nil } -func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { +func (m *EnableBandIBCProposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6290,15 +6493,15 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BandOracleRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EnableBandIBCProposal: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BandOracleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EnableBandIBCProposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IbcSourceChannel", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6326,11 +6529,11 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.IbcSourceChannel = string(dAtA[iNdEx:postIndex]) + m.Title = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IbcVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6358,13 +6561,13 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.IbcVersion = string(dAtA[iNdEx:postIndex]) + m.Description = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IbcPortId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BandIbcParams", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowOracle @@ -6374,25 +6577,98 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthOracle } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthOracle } if postIndex > l { return io.ErrUnexpectedEOF } - m.IbcPortId = string(dAtA[iNdEx:postIndex]) + if err := m.BandIbcParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 4: + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BandOracleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BandOracleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + m.RequestId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RequestId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field OracleScriptId", wireType) } @@ -6411,7 +6687,7 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { break } } - case 5: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Symbols", wireType) } @@ -6443,7 +6719,7 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { } m.Symbols = append(m.Symbols, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 6: + case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field AskCount", wireType) } @@ -6462,7 +6738,7 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { break } } - case 7: + case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MinCount", wireType) } @@ -6481,7 +6757,7 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { break } } - case 8: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FeeLimit", wireType) } @@ -6515,39 +6791,7 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOracle - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOracle - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOracle - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: + case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field PrepareGas", wireType) } @@ -6566,7 +6810,7 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { break } } - case 11: + case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ExecuteGas", wireType) } @@ -6591,7 +6835,10 @@ func (m *BandOracleRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { @@ -6674,13 +6921,112 @@ func (m *BandIBCParams) Unmarshal(dAtA []byte) error { break } } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcSourceChannel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IbcSourceChannel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IbcVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcPortId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IbcPortId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipOracle(dAtA[iNdEx:]) if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthOracle } if (iNdEx + skippy) > l { diff --git a/chain/oracle/types/query.pb.go b/chain/oracle/types/query.pb.go index de1070f0..bb56d696 100644 --- a/chain/oracle/types/query.pb.go +++ b/chain/oracle/types/query.pb.go @@ -1607,7 +1607,10 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -1690,7 +1693,10 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -1740,7 +1746,10 @@ func (m *QueryBandRelayersRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -1822,7 +1831,10 @@ func (m *QueryBandRelayersResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -1872,7 +1884,10 @@ func (m *QueryBandPriceStatesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -1956,7 +1971,10 @@ func (m *QueryBandPriceStatesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -2006,7 +2024,10 @@ func (m *QueryBandIBCPriceStatesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -2090,7 +2111,10 @@ func (m *QueryBandIBCPriceStatesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -2140,7 +2164,10 @@ func (m *QueryPriceFeedPriceStatesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -2224,7 +2251,10 @@ func (m *QueryPriceFeedPriceStatesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -2274,7 +2304,10 @@ func (m *QueryCoinbasePriceStatesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -2358,7 +2391,10 @@ func (m *QueryCoinbasePriceStatesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -2408,7 +2444,10 @@ func (m *QueryModuleStateRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -2494,7 +2533,10 @@ func (m *QueryModuleStateResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { diff --git a/chain/oracle/types/query.pb.gw.go b/chain/oracle/types/query.pb.gw.go new file mode 100644 index 00000000..b340a30b --- /dev/null +++ b/chain/oracle/types/query.pb.gw.go @@ -0,0 +1,520 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: injective/oracle/v1beta1/query.proto + +/* +Package types is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package types + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage + +func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParamsRequest + var metadata runtime.ServerMetadata + + msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParamsRequest + var metadata runtime.ServerMetadata + + msg, err := server.Params(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_BandRelayers_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBandRelayersRequest + var metadata runtime.ServerMetadata + + msg, err := client.BandRelayers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_BandRelayers_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBandRelayersRequest + var metadata runtime.ServerMetadata + + msg, err := server.BandRelayers(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_BandPriceStates_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBandPriceStatesRequest + var metadata runtime.ServerMetadata + + msg, err := client.BandPriceStates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_BandPriceStates_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBandPriceStatesRequest + var metadata runtime.ServerMetadata + + msg, err := server.BandPriceStates(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_BandIBCPriceStates_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBandIBCPriceStatesRequest + var metadata runtime.ServerMetadata + + msg, err := client.BandIBCPriceStates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_BandIBCPriceStates_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryBandIBCPriceStatesRequest + var metadata runtime.ServerMetadata + + msg, err := server.BandIBCPriceStates(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_PriceFeedPriceStates_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPriceFeedPriceStatesRequest + var metadata runtime.ServerMetadata + + msg, err := client.PriceFeedPriceStates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PriceFeedPriceStates_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPriceFeedPriceStatesRequest + var metadata runtime.ServerMetadata + + msg, err := server.PriceFeedPriceStates(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_CoinbasePriceStates_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCoinbasePriceStatesRequest + var metadata runtime.ServerMetadata + + msg, err := client.CoinbasePriceStates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_CoinbasePriceStates_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCoinbasePriceStatesRequest + var metadata runtime.ServerMetadata + + msg, err := server.CoinbasePriceStates(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_OracleModuleState_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryModuleStateRequest + var metadata runtime.ServerMetadata + + msg, err := client.OracleModuleState(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_OracleModuleState_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryModuleStateRequest + var metadata runtime.ServerMetadata + + msg, err := server.OracleModuleState(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". +// UnaryRPC :call QueryServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_BandRelayers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_BandRelayers_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BandRelayers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_BandPriceStates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_BandPriceStates_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BandPriceStates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_BandIBCPriceStates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_BandIBCPriceStates_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BandIBCPriceStates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PriceFeedPriceStates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PriceFeedPriceStates_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PriceFeedPriceStates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CoinbasePriceStates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_CoinbasePriceStates_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CoinbasePriceStates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_OracleModuleState_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_OracleModuleState_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_OracleModuleState_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterQueryHandler(ctx, mux, conn) +} + +// RegisterQueryHandler registers the http handlers for service Query to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) +} + +// RegisterQueryHandlerClient registers the http handlers for service Query +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "QueryClient" to call the correct interceptors. +func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_BandRelayers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_BandRelayers_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BandRelayers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_BandPriceStates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_BandPriceStates_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BandPriceStates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_BandIBCPriceStates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_BandIBCPriceStates_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BandIBCPriceStates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PriceFeedPriceStates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PriceFeedPriceStates_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PriceFeedPriceStates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CoinbasePriceStates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_CoinbasePriceStates_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CoinbasePriceStates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_OracleModuleState_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_OracleModuleState_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_OracleModuleState_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"injective", "oracle", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_BandRelayers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"injective", "oracle", "v1beta1", "band_relayers"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_BandPriceStates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"injective", "oracle", "v1beta1", "band_price_states"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_BandIBCPriceStates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"injective", "oracle", "v1beta1", "band_ibc_price_states"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_PriceFeedPriceStates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"injective", "oracle", "v1beta1", "pricefeed_price_states"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_CoinbasePriceStates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"injective", "oracle", "v1beta1", "coinbase_price_states"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_OracleModuleState_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"injective", "oracle", "v1beta1", "module_state"}, "", runtime.AssumeColonVerbOpt(true))) +) + +var ( + forward_Query_Params_0 = runtime.ForwardResponseMessage + + forward_Query_BandRelayers_0 = runtime.ForwardResponseMessage + + forward_Query_BandPriceStates_0 = runtime.ForwardResponseMessage + + forward_Query_BandIBCPriceStates_0 = runtime.ForwardResponseMessage + + forward_Query_PriceFeedPriceStates_0 = runtime.ForwardResponseMessage + + forward_Query_CoinbasePriceStates_0 = runtime.ForwardResponseMessage + + forward_Query_OracleModuleState_0 = runtime.ForwardResponseMessage +) diff --git a/chain/oracle/types/tx.pb.go b/chain/oracle/types/tx.pb.go index 33687439..e02663f3 100644 --- a/chain/oracle/types/tx.pb.go +++ b/chain/oracle/types/tx.pb.go @@ -298,7 +298,8 @@ var xxx_messageInfo_MsgRelayCoinbaseMessagesResponse proto.InternalMessageInfo // MsgRequestBandIBCRates defines a SDK message for requesting data from BandChain using IBC. type MsgRequestBandIBCRates struct { - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + RequestId uint64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } func (m *MsgRequestBandIBCRates) Reset() { *m = MsgRequestBandIBCRates{} } @@ -385,44 +386,45 @@ func init() { func init() { proto.RegisterFile("injective/oracle/v1beta1/tx.proto", fileDescriptor_5fdf1c490eba4310) } var fileDescriptor_5fdf1c490eba4310 = []byte{ - // 578 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x6e, 0xd3, 0x4e, - 0x10, 0xb6, 0x7f, 0x49, 0xfa, 0x6b, 0x57, 0x01, 0x89, 0xa5, 0x54, 0xc6, 0x48, 0x4e, 0x08, 0x02, - 0x55, 0x42, 0xb5, 0x69, 0x7b, 0x41, 0x39, 0xa6, 0x11, 0x52, 0xa4, 0x46, 0x42, 0x16, 0x27, 0x2e, - 0xc8, 0x76, 0x06, 0xd7, 0x10, 0x7b, 0xd3, 0x9d, 0x4d, 0xd4, 0x1c, 0x39, 0x81, 0xc4, 0x85, 0x47, - 0xa8, 0x38, 0xf2, 0x24, 0x3d, 0xf6, 0x88, 0x38, 0x54, 0x28, 0xb9, 0xf0, 0x18, 0x68, 0xd7, 0x7f, - 0x88, 0x9a, 0x58, 0x51, 0x4e, 0xde, 0x99, 0xfd, 0x66, 0xe6, 0xfb, 0x66, 0xc7, 0x43, 0x1e, 0x47, - 0xc9, 0x07, 0x08, 0x44, 0x34, 0x01, 0x87, 0x71, 0x2f, 0x18, 0x82, 0x33, 0x39, 0xf4, 0x41, 0x78, - 0x87, 0x8e, 0xb8, 0xb0, 0x47, 0x9c, 0x09, 0x46, 0x8d, 0x02, 0x62, 0xa7, 0x10, 0x3b, 0x83, 0x98, - 0xbb, 0x21, 0x0b, 0x99, 0x02, 0x39, 0xf2, 0x94, 0xe2, 0x4d, 0x2b, 0x60, 0x18, 0x33, 0x74, 0x7c, - 0x0f, 0xff, 0x65, 0x0b, 0x58, 0x94, 0x64, 0xf7, 0x4f, 0x4b, 0x4b, 0x66, 0xe9, 0x15, 0xac, 0xf5, - 0x43, 0x27, 0x7b, 0x7d, 0x0c, 0x5d, 0x18, 0x7a, 0xd3, 0xd7, 0x3c, 0x0a, 0xe0, 0x15, 0xc0, 0x40, -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 0xb5, 0x83, 0x80, 0x71, 0x58, - 0x34, 0xcf, 0xbc, 0x28, 0x71, 0x62, 0x36, 0x18, 0x0f, 0x01, 0xf3, 0x8d, 0xa8, 0x56, 0x8d, 0xbf, - 0xa5, 0x36, 0xe1, 0xf1, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x13, 0xdc, 0x4f, 0x49, 0xa5, 0x05, - 0x00, 0x00, + // 593 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xb6, 0x1b, 0xa7, 0x34, 0xab, 0x80, 0xc4, 0x52, 0x2a, 0x63, 0x84, 0x13, 0x82, 0x40, 0x91, + 0x50, 0x6d, 0xda, 0x5e, 0x50, 0x8f, 0x69, 0x84, 0x14, 0xa9, 0x91, 0x90, 0xc5, 0x05, 0x2e, 0x95, + 0x7f, 0x06, 0xd7, 0x10, 0x7b, 0x53, 0x8f, 0x13, 0x35, 0x47, 0x4e, 0x20, 0x71, 0xe1, 0x11, 0x2a, + 0x8e, 0x3c, 0x49, 0x8f, 0x3d, 0x22, 0x0e, 0x15, 0x4a, 0x2e, 0x3c, 0x06, 0xda, 0xf5, 0x4f, 0xa3, + 0x26, 0x56, 0x94, 0x93, 0x77, 0x66, 0xbf, 0x99, 0xf9, 0xbe, 0xd9, 0xf1, 0x90, 0xa7, 0x41, 0xf4, + 0x09, 0xdc, 0x24, 0x18, 0x83, 0xc9, 0x62, 0xdb, 0x1d, 0x80, 0x39, 0xde, 0x73, 0x20, 0xb1, 0xf7, + 0xcc, 0xe4, 0xdc, 0x18, 0xc6, 0x2c, 0x61, 0x54, 0x2d, 0x20, 0x46, 0x0a, 0x31, 0x32, 0x88, 0xb6, + 0xed, 0x33, 0x9f, 0x09, 0x90, 0xc9, 0x4f, 0x29, 0x5e, 0xd3, 0x5d, 0x86, 0x21, 0x43, 0xd3, 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, 0x1f, 0xce, 0xfd, 0xd5, 0x92, 0x6e, + 0xc7, 0x68, 0x87, 0xeb, 0xc7, 0xe4, 0x4c, 0x3a, 0x1f, 0x2f, 0xa7, 0xba, 0x7c, 0x35, 0xd5, 0xe5, + 0xbf, 0x53, 0x5d, 0xfe, 0x31, 0xd3, 0xa5, 0xab, 0x99, 0x2e, 0xfd, 0x9e, 0xe9, 0xd2, 0x87, 0xe3, + 0xb9, 0xfd, 0xd2, 0xcb, 0xf3, 0x1f, 0xdb, 0x0e, 0x9a, 0x45, 0xb5, 0x5d, 0x97, 0xc5, 0x30, 0x6f, + 0x9e, 0xda, 0x41, 0x64, 0x86, 0xcc, 0x1b, 0x0d, 0x00, 0xf3, 0x85, 0x29, 0x36, 0x91, 0xb3, 0x29, + 0x16, 0xe5, 0xc1, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb, 0xf4, 0x29, 0xdf, 0xc4, 0x05, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -913,6 +915,11 @@ func (m *MsgRequestBandIBCRates) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if m.RequestId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RequestId)) + i-- + dAtA[i] = 0x10 + } if len(m.Sender) > 0 { i -= len(m.Sender) copy(dAtA[i:], m.Sender) @@ -1090,6 +1097,9 @@ func (m *MsgRequestBandIBCRates) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + if m.RequestId != 0 { + n += 1 + sovTx(uint64(m.RequestId)) + } return n } @@ -1275,7 +1285,10 @@ func (m *MsgRelayPriceFeedPrice) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -1325,7 +1338,10 @@ func (m *MsgRelayPriceFeedPriceResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -1667,7 +1683,10 @@ func (m *MsgRelayBandRates) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -1717,7 +1736,10 @@ func (m *MsgRelayBandRatesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -1863,7 +1885,10 @@ func (m *MsgRelayCoinbaseMessages) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -1913,7 +1938,10 @@ func (m *MsgRelayCoinbaseMessagesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -1989,13 +2017,35 @@ func (m *MsgRequestBandIBCRates) Unmarshal(dAtA []byte) error { } m.Sender = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + m.RequestId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RequestId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -2045,7 +2095,10 @@ func (m *MsgRequestBandIBCRatesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l {