diff --git a/docs/client/swagger-ui/swagger.yaml b/docs/client/swagger-ui/swagger.yaml index e4159acdf8a..4d05b3ebd9c 100644 --- a/docs/client/swagger-ui/swagger.yaml +++ b/docs/client/swagger-ui/swagger.yaml @@ -306,6 +306,65 @@ paths: type: string tags: - Query + /ibc/apps/transfer/v1/denoms/{denom}/total_escrow: + get: + summary: >- + TotalEscrowForDenom returns the total amount of tokens in escrow based + on the denom. + operationId: TotalEscrowForDenom + responses: + '200': + description: A successful response. + schema: + type: object + properties: + amount: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: >- + QueryTotalEscrowForDenomResponse is the response type for + TotalEscrowForDenom RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + parameters: + - name: denom + in: path + required: true + type: string + tags: + - Query /ibc/apps/transfer/v1/params: get: summary: Params queries all parameters of the ibc-transfer module. @@ -640,7 +699,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -650,7 +709,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -681,7 +740,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -848,6 +906,25 @@ paths: IdentifiedPacketFees contains a list of type PacketFee and associated PacketId title: Map of all incentivized_packets + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise title: >- QueryIncentivizedPacketsResponse defines the response type for the incentivized packets RPC @@ -965,7 +1042,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -975,7 +1052,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -1006,7 +1083,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -1250,7 +1326,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -1260,7 +1336,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -1291,7 +1367,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -1471,7 +1546,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -1481,7 +1556,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -1512,7 +1587,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -1793,7 +1867,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -1803,7 +1877,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -1834,7 +1908,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -2043,7 +2116,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -2053,7 +2126,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -2084,7 +2157,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -2287,7 +2359,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -2297,7 +2369,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -2328,7 +2400,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -2531,7 +2602,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -2541,7 +2612,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -2572,7 +2643,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -2653,6 +2723,25 @@ paths: FeeEnabledChannel contains the PortID & ChannelID for a fee enabled channel title: list of fee enabled channels + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise title: >- QueryFeeEnabledChannelsResponse defines the response type for the FeeEnabledChannels rpc @@ -2770,7 +2859,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -2780,7 +2869,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -2811,7 +2900,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -3032,6 +3120,25 @@ paths: IdentifiedPacketFees contains a list of type PacketFee and associated PacketId title: list of identified fees for incentivized packets + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise title: >- QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPackets rpc @@ -3149,7 +3256,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -3159,7 +3266,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -3190,7 +3297,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -3411,7 +3517,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -3421,7 +3527,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -3452,7 +3558,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -3645,7 +3750,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -3655,7 +3760,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -3686,7 +3791,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -3891,7 +3995,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -3901,7 +4005,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -3932,7 +4036,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -4122,7 +4225,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -4132,7 +4235,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -4163,7 +4266,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -4339,7 +4441,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -4349,7 +4451,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -4380,7 +4482,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -4571,7 +4672,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -4581,7 +4682,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -4612,7 +4713,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -4804,7 +4904,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -4814,7 +4914,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -4845,7 +4945,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -5142,7 +5241,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -5152,7 +5251,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -5183,7 +5282,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -5397,7 +5495,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -5407,7 +5505,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -5438,7 +5536,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -5633,7 +5730,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -5643,7 +5740,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -5674,7 +5771,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -5760,7 +5856,13 @@ paths: type: string description: >- allowed_clients defines the list of allowed client state - types. + types which can be created + + and interacted with. If a client type is removed from the + allowed clients list, usage + + of this client will be disabled until it is added again to + the list. description: >- QueryClientParamsResponse is the response type for the Query/ClientParams RPC @@ -5880,7 +5982,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -5890,7 +5992,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -5921,7 +6023,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -6069,7 +6170,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -6079,7 +6180,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -6110,7 +6211,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -6262,7 +6362,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -6272,7 +6372,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -6303,7 +6403,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -6451,7 +6550,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -6461,7 +6560,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -6492,7 +6591,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -6644,7 +6742,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -6654,7 +6752,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -6685,7 +6783,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -6891,7 +6988,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -6901,7 +6998,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -6932,7 +7029,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -7251,7 +7347,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -7261,7 +7357,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -7292,7 +7388,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -7646,7 +7741,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -7656,7 +7751,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -7687,7 +7782,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -7851,7 +7945,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -7861,7 +7955,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -7892,7 +7986,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -8085,7 +8178,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -8095,7 +8188,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -8126,7 +8219,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -8282,7 +8374,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -8292,7 +8384,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -8323,7 +8415,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -8511,7 +8602,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -8521,7 +8612,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -8552,7 +8643,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -8750,7 +8840,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -8760,7 +8850,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -8791,7 +8881,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -9095,7 +9184,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -9105,7 +9194,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -9136,7 +9225,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -9471,7 +9559,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -9481,7 +9569,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -9512,7 +9600,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -9683,7 +9770,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -9693,7 +9780,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -9724,7 +9811,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -9917,7 +10003,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -9927,7 +10013,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -9958,7 +10044,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -10119,7 +10204,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -10129,7 +10214,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -10160,7 +10245,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -10348,7 +10432,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -10358,7 +10442,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -10389,7 +10473,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -10617,7 +10700,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -10627,7 +10710,261 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + tags: + - Query + /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence_send: + get: + summary: NextSequenceSend returns the next send sequence for a given channel. + operationId: NextSequenceSend + responses: + '200': + description: A successful response. + schema: + type: object + properties: + next_sequence_send: + type: string + format: uint64 + title: next sequence send number + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryNextSequenceSendResponse is the request type for the + Query/QueryNextSequenceSend RPC method + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + value: + type: string + format: byte + description: >- + Must be a valid serialized protocol buffer of the above + specified type. + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -10658,7 +10995,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -10926,7 +11262,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -10936,7 +11272,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -10967,7 +11303,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -11250,7 +11585,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -11260,7 +11595,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -11291,7 +11626,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -11563,7 +11897,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -11573,7 +11907,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -11604,7 +11938,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -11876,7 +12209,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -11886,7 +12219,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -11917,7 +12250,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -12143,7 +12475,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -12153,7 +12485,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -12184,7 +12516,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -12413,7 +12744,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -12423,7 +12754,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -12454,7 +12785,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -12682,7 +13012,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -12692,7 +13022,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -12723,7 +13053,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -13046,7 +13375,7 @@ paths: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -13056,7 +13385,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -13087,7 +13416,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -13266,6 +13594,18 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } + cosmos.base.v1beta1.Coin: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. google.protobuf.Any: type: object properties: @@ -13355,7 +13695,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -13365,7 +13705,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -13392,7 +13732,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -13532,7 +13871,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -13542,7 +13881,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -13569,7 +13908,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -13757,6 +14095,24 @@ definitions: chain. description: QueryParamsResponse is the response type for the Query/Params RPC method. + ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse: + type: object + properties: + amount: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: >- + QueryTotalEscrowForDenomResponse is the response type for + TotalEscrowForDenom RPC method. ibc.applications.interchain_accounts.controller.v1.Params: type: object properties: @@ -13819,18 +14175,6 @@ definitions: allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain. description: QueryParamsResponse is the response type for the Query/Params RPC method. - cosmos.base.v1beta1.Coin: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. ibc.applications.fee.v1.Fee: type: object properties: @@ -14101,6 +14445,25 @@ definitions: FeeEnabledChannel contains the PortID & ChannelID for a fee enabled channel title: list of fee enabled channels + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise title: >- QueryFeeEnabledChannelsResponse defines the response type for the FeeEnabledChannels rpc @@ -14320,6 +14683,25 @@ definitions: IdentifiedPacketFees contains a list of type PacketFee and associated PacketId title: Map of all incentivized_packets + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise title: >- QueryIncentivizedPacketsResponse defines the response type for the incentivized packets RPC @@ -14431,6 +14813,25 @@ definitions: IdentifiedPacketFees contains a list of type PacketFee and associated PacketId title: list of identified fees for incentivized packets + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise title: >- QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPackets rpc @@ -14645,7 +15046,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -14655,7 +15056,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -14682,7 +15083,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -14845,7 +15245,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -14855,7 +15255,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -14882,7 +15282,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -14924,7 +15323,14 @@ definitions: type: array items: type: string - description: allowed_clients defines the list of allowed client state types. + description: >- + allowed_clients defines the list of allowed client state types which + can be created + + and interacted with. If a client type is removed from the allowed + clients list, usage + + of this client will be disabled until it is added again to the list. description: Params defines the set of IBC light client parameters. ibc.core.client.v1.QueryClientParamsResponse: type: object @@ -14937,7 +15343,15 @@ definitions: type: array items: type: string - description: allowed_clients defines the list of allowed client state types. + description: >- + allowed_clients defines the list of allowed client state types + which can be created + + and interacted with. If a client type is removed from the allowed + clients list, usage + + of this client will be disabled until it is added again to the + list. description: >- QueryClientParamsResponse is the response type for the Query/ClientParams RPC @@ -15039,7 +15453,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -15049,7 +15463,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -15076,7 +15490,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -15259,7 +15672,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -15269,7 +15682,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -15299,7 +15712,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -15547,7 +15959,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -15557,7 +15969,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -15584,7 +15996,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -15798,7 +16209,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -15808,7 +16219,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -15838,7 +16249,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -16004,7 +16414,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -16014,7 +16424,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -16041,7 +16451,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -16173,7 +16582,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -16183,7 +16592,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -16210,7 +16619,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -16620,7 +17028,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -16630,7 +17038,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -16658,7 +17066,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -16826,7 +17233,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -16836,7 +17243,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -16863,7 +17270,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -17550,7 +17956,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -17560,7 +17966,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -17588,7 +17994,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -17756,7 +18161,7 @@ definitions: foo = any.unpack(Foo.class); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -17766,7 +18171,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -17793,7 +18198,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -18289,6 +18693,48 @@ definitions: title: |- QuerySequenceResponse is the request type for the Query/QueryNextSequenceReceiveResponse RPC method + ibc.core.channel.v1.QueryNextSequenceSendResponse: + type: object + properties: + next_sequence_send: + type: string + format: uint64 + title: next sequence send number + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping + + RevisionNumber the same. However some consensus algorithms may choose + to + + reset the height in certain conditions e.g. hard forks, state-machine + + breaking changes In these cases, the RevisionNumber is incremented so + that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryNextSequenceSendResponse is the request type for the + Query/QueryNextSequenceSend RPC method ibc.core.channel.v1.QueryPacketAcknowledgementResponse: type: object properties: diff --git a/modules/core/04-channel/types/channel.pb.go b/modules/core/04-channel/types/channel.pb.go index 594a4e93470..614871502c8 100644 --- a/modules/core/04-channel/types/channel.pb.go +++ b/modules/core/04-channel/types/channel.pb.go @@ -486,6 +486,63 @@ func (*Acknowledgement) XXX_OneofWrappers() []interface{} { } } +// Timeout defines an execution deadline structure for 04-channel handlers. +// This includes packet lifecycle handlers as well as the upgrade handshake handlers. +// A valid Timeout contains either one or both of a timestamp and block height (sequence). +type Timeout struct { + // block height after which the packet or upgrade times out + Height types.Height `protobuf:"bytes,1,opt,name=height,proto3" json:"height"` + // block timestamp (in nanoseconds) after which the packet or upgrade times out + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (m *Timeout) Reset() { *m = Timeout{} } +func (m *Timeout) String() string { return proto.CompactTextString(m) } +func (*Timeout) ProtoMessage() {} +func (*Timeout) Descriptor() ([]byte, []int) { + return fileDescriptor_c3a07336710636a0, []int{7} +} +func (m *Timeout) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Timeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Timeout.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 *Timeout) XXX_Merge(src proto.Message) { + xxx_messageInfo_Timeout.Merge(m, src) +} +func (m *Timeout) XXX_Size() int { + return m.Size() +} +func (m *Timeout) XXX_DiscardUnknown() { + xxx_messageInfo_Timeout.DiscardUnknown(m) +} + +var xxx_messageInfo_Timeout proto.InternalMessageInfo + +func (m *Timeout) GetHeight() types.Height { + if m != nil { + return m.Height + } + return types.Height{} +} + +func (m *Timeout) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp + } + return 0 +} + func init() { proto.RegisterEnum("ibc.core.channel.v1.State", State_name, State_value) proto.RegisterEnum("ibc.core.channel.v1.Order", Order_name, Order_value) @@ -496,63 +553,66 @@ func init() { proto.RegisterType((*PacketState)(nil), "ibc.core.channel.v1.PacketState") proto.RegisterType((*PacketId)(nil), "ibc.core.channel.v1.PacketId") proto.RegisterType((*Acknowledgement)(nil), "ibc.core.channel.v1.Acknowledgement") + proto.RegisterType((*Timeout)(nil), "ibc.core.channel.v1.Timeout") } func init() { proto.RegisterFile("ibc/core/channel/v1/channel.proto", fileDescriptor_c3a07336710636a0) } var fileDescriptor_c3a07336710636a0 = []byte{ - // 816 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x55, 0xcd, 0x8e, 0xdb, 0x54, - 0x14, 0xb6, 0x33, 0xce, 0xdf, 0xc9, 0x64, 0x92, 0xb9, 0x85, 0xc1, 0xb2, 0xc0, 0x71, 0x47, 0x20, - 0x42, 0x51, 0xe3, 0x4e, 0x41, 0x20, 0xd8, 0xcd, 0x24, 0x86, 0x58, 0x8c, 0x92, 0xc8, 0xc9, 0x2c, - 0xe8, 0x26, 0x72, 0xec, 0x4b, 0x62, 0x35, 0xf1, 0x35, 0xf6, 0x4d, 0xaa, 0x8a, 0x17, 0x28, 0x59, - 0xf1, 0x02, 0x91, 0x90, 0x78, 0x08, 0x5e, 0xa1, 0x12, 0x9b, 0x2e,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0x68, 0x0b, 0x77, 0x49, 0x94, 0x20, 0x15, 0x8a, 0x2b, 0x1c, 0x27, 0x01, 0x09, 0xd5, 0xbc, - 0x21, 0x37, 0xcb, 0x4e, 0x16, 0x7e, 0xab, 0xbc, 0xf8, 0xbd, 0x21, 0x9d, 0xfe, 0x95, 0x83, 0x63, - 0xdb, 0xc7, 0x21, 0x0d, 0x7e, 0x0a, 0xb0, 0xff, 0xce, 0xbb, 0x82, 0x3e, 0x80, 0x62, 0x44, 0x62, - 0x3a, 0x0e, 0x7c, 0xb5, 0xc0, 0x32, 0x85, 0x34, 0xb4, 0x7d, 0xf4, 0x11, 0x80, 0x18, 0x25, 0xcd, - 0x15, 0x59, 0xae, 0x2c, 0x10, 0xdb, 0x17, 0x6e, 0x5e, 0xc2, 0xe1, 0xee, 0x90, 0xbb, 0x6a, 0xf2, - 0x5b, 0xd4, 0x72, 0x77, 0xab, 0xbd, 0xce, 0x41, 0x61, 0xe0, 0x7a, 0x4f, 0x31, 0x45, 0x1a, 0x94, - 0x12, 0xfc, 0xf3, 0x12, 0x87, 0x1e, 0xdf, 0x89, 0xe2, 0xdc, 0xc6, 0xa8, 0x01, 0x95, 0x84, 0x2c, - 0x63, 0x0f, 0x8f, 0x53, 0x71, 0x21, 0x06, 0x1c, 0x1a, 0x90, 0x98, 0xa2, 0x4f, 0xe0, 0x48, 0x10, - 0x44, 0x07, 0xe6, 0x72, 0xd9, 0xa9, 0x72, 0x34, 0x5b, 0xfa, 0x67, 0x50, 0xf7, 0x71, 0x42, 0x83, - 0xd0, 0x65, 0xf6, 0x31, 0x31, 0x85, 0x11, 0x6b, 0x3b, 0x38, 0x53, 0x34, 0xe1, 0xde, 0x2e, 0x35, - 0x93, 0xe5, 0x5e, 0xa2, 0x9d, 0x54, 0xa6, 0x8d, 0x40, 0xf1, 0x5d, 0xea, 0x32, 0x4f, 0x0f, 0x1d, - 0x76, 0x46, 0xdf, 0xc3, 0x11, 0x0d, 0x16, 0x98, 0x2c, 0xe9, 0x78, 0x86, 0x83, 0xe9, 0x8c, 0x32, - 0x57, 0x2b, 0x7b, 0x2f, 0x0e, 0xff, 0x6c, 0x57, 0x67, 0xad, 0x2e, 0x63, 0x88, 0xad, 0x57, 0x45, - 0x1d, 0x07, 0xd1, 0xe7, 0x70, 0x9c, 0x09, 0xa5, 0xbf, 0x09, 0x75, 0x17, 0x91, 0x5a, 0x62, 0x2e, - 0xd5, 0x45, 0x62, 0x94, 0xe1, 0xc2, 0xda, 0x5f, 0xa0, 0xc2, 0x9d, 0x65, 0x2f, 0xf1, 0x7f, 0xdd, - 0xd3, 0xde, 0x5a, 0x0e, 0xde, 0x58, 0x4b, 0xf6, 0xc8, 0xca, 0xf6, 0x91, 0x45, 0x73, 0x1f, 0x4a, - 0xbc, 0xb9, 0xed, 0xff, 0x1f, 0x9d, 0x45, 0x97, 0x3e, 0xd4, 0xce, 0xbd, 0xa7, 0x21, 0x79, 0x36, - 0xc7, 0xfe, 0x14, 0x2f, 0x70, 0x48, 0x91, 0x0a, 0x85, 0x18, 0x27, 0xcb, 0x39, 0x55, 0xdf, 0x4f, - 0x87, 0xea, 0x4a, 0x8e, 0x88, 0xd1, 0x09, 0xe4, 0x71, 0x1c, 0x93, 0x58, 0x3d, 0x49, 0x1b, 0x75, - 0x25, 0x87, 0x87, 0x17, 0x00, 0xa5, 0x18, 0x27, 0x11, 0x09, 0x13, 0xfc, 0xe0, 0x4f, 0x19, 0xf2, - 0x43, 0xf1, 0xb1, 0x37, 0x86, 0xa3, 0xf3, 0x91, 0x35, 0xbe, 0xea, 0xd9, 0x3d, 0x7b, 0x64, 0x9f, - 0x5f, 0xda, 0x4f, 0xac, 0xce, 0xf8, 0xaa, 0x37, 0x1c, 0x58, 0x6d, 0xfb, 0x3b, 0xdb, 0xea, 0xd4, - 0x25, 0xed, 0x78, 0xbd, 0x31, 0xaa, 0x7b, 0x04, 0xa4, 0x02, 0xf0, 0xba, 0x14, 0xac, 0xcb, 0x5a, - 0x69, 0xbd,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a2, 0x87, 0x4b, 0xef, 0x36, 0x07, 0x00, 0x00, + // 842 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x55, 0xcd, 0x6e, 0xe3, 0x54, + 0x14, 0xb6, 0x53, 0xe7, 0xef, 0xa4, 0x69, 0xd3, 0x3b, 0x50, 0x2c, 0x6b, 0x70, 0x3c, 0x15, 0x88, + 0x30, 0x68, 0xe2, 0xe9, 0x80, 0xf8, 0xdb, 0xb5, 0x89, 0x21, 0x16, 0x55, 0x12, 0x39, 0xe9, 0x82, + 0xd9, 0x44, 0x8e, 0x7d, 0x49, 0xac, 0x49, 0x7c, 0x8d, 0x7d, 0x93, 0xd1, 0x88, 0x17, 0x18, 0xb2, + 0xe2, 0x05, 0x22, 0x21, 0xf1, 0x10, 0xbc, 0xc2, 0x48, 0x6c, 0x66, 0x39, 0x2b, 0x84, 0xda, 0x17, + 0x41, 0xbe, 0xf7, 0xba, 0x49, 0x46, 0x55, 0x85, 0x90, 0x58, 0xb1, 0xca, 0x3d, 0xdf, 0xf9, 0xce, + 0x77, 0x8e, 0xbf, 0xe3, 0xf8, 0xc2, 0x83, 0x60, 0xec, 0x99, 0x1e, 0x89, 0xb1, 0xe9, 0x4d, 0xdd, + 0x30, 0xc4, 0x33, 0x73, 0x79, 0x9a, 0x1d, 0x9b, 0x51, 0x4c, 0x28, 0x41, 0xf7, 0x82, 0xb1, 0xd7, + 0x4c, 0x29, 0xcd, 0x0c, 0x5f, 0x9e, 0x6a, 0xef, 0x4c, 0xc8, 0x84, 0xb0, 0xbc, 0x99, 0x9e, 0x38, + 0x55, 0xab, 0x6f, 0xd4, 0x66, 0x01, 0x0e, 0x29, 0x13, 0x63, 0x27, 0x4e, 0x38, 0xf9, 0x39, 0x07, + 0xc5, 0x16, 0x57, 0x41, 0x8f, 0x21, 0x9f, 0x50, 0x97, 0x62, 0x55, 0x36, 0xe4, 0xc6, 0xc1, 0x13, + 0xad, 0x79, 0x4b, 0x9f, 0xe6, 0x20, 0x65, 0x38, 0x9c, 0x88, 0x3e, 0x87, 0x12, 0x89, 0x7d, 0x1c, + 0x07, 0xe1, 0x44, 0xcd, 0xdd, 0x51, 0xd4, 0x4b, 0x49, 0xce, 0x0d, 0x17, 0x7d, 0x07, 0xfb, 0x1e, + 0x59, 0x84, 0x14, 0xc7, 0x91, 0x1b, 0xd3, 0x17, 0xea, 0x9e, 0x21, 0x37, 0x2a, 0x4f, 0x1e, 0xdc, + 0x5a, 0xdb, 0xda, 0x22, 0x9e, 0x2b, 0xaf, 0xfe, 0xac, 0x4b, 0xce, 0x4e, 0x31, 0xfa, 0x08, 0x0e, + 0x3d, 0x12, 0x86, 0xd8, 0xa3, 0x01, 0x09, 0x47, 0x53, 0x12, 0x25, 0xaa, 0x62, 0xec, 0x35, 0xca, + 0xce, 0xc1, 0x06, 0xee, 0x90, 0x28, 0x41, 0x2a, 0x14, 0x97, 0x38, 0x4e, 0x02, 0x12, 0xaa, 0x79, + 0x43, 0x6e, 0x94, 0x9d, 0x2c, 0xfc, 0x5a, 0x79, 0xf9, 0x6b, 0x5d, 0x3a, 0xf9, 0x23, 0x07, 0x47, + 0xb6, 0x8f, 0x43, 0x1a, 0xfc, 0x10, 0x60, 0xff, 0x7f, 0xef, 0x0a, 0x7a, 0x0f, 0x8a, 0x11, 0x89, + 0xe9, 0x28, 0xf0, 0xd5, 0x02, 0xcb, 0x14, 0xd2, 0xd0, 0xf6, 0xd1, 0xfb, 0x00, 0x62, 0x94, 0x34, + 0x57, 0x64, 0xb9, 0xb2, 0x40, 0x6c, 0x5f, 0xb8, 0x79, 0x01, 0xfb, 0xdb, 0x43, 0x6e, 0xab, 0xc9, + 0x77, 0xa8, 0xe5, 0x6e, 0x57, 0x7b, 0x93, 0x83, 0x42, 0xdf, 0xf5, 0x9e, 0x61, 0x8a, 0x34, 0x28, + 0x25, 0xf8, 0xc7, 0x05, 0x0e, 0x3d, 0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0xae, 0xf5, 0xd6, 0xbc, 0x4c, 0x32, 0xc5, 0xd1, 0x09, 0x1c, 0x72, 0xd6, 0x65, 0x97, 0xfd, + 0x5a, 0xed, 0x9a, 0xac, 0x55, 0x57, 0x6b, 0xa3, 0x7c, 0x03, 0xa4, 0x03, 0x73, 0x4e, 0xc6, 0x10, + 0x03, 0x8b, 0x90, 0x37, 0x3e, 0x1f, 0xbc, 0xba, 0xd2, 0xe5, 0xd7, 0x57, 0xba, 0xfc, 0xd7, 0x95, + 0x2e, 0xff, 0x72, 0xad, 0x4b, 0xaf, 0xaf, 0x75, 0xe9, 0xcd, 0xb5, 0x2e, 0x3d, 0xfd, 0x6a, 0x12, + 0xd0, 0xe9, 0x62, 0xdc, 0xf4, 0xc8, 0xdc, 0xf4, 0x48, 0x32, 0x27, 0x89, 0x19, 0x8c, 0xbd, 0x47, + 0x13, 0x62, 0x2e, 0xbf, 0x30, 0xe7, 0xc4, 0x5f, 0xcc, 0x70, 0xc2, 0xef, 0xc9, 0xc7, 0x9f, 0x3d, + 0xca, 0x2e, 0x5e, 0xfa, 0x22, 0xc2, 0xc9, 0xb8, 0xc0, 0x2e, 0xca, 0x4f, 0xff, 0x0e, 0x00, 0x00, + 0xff, 0xff, 0x80, 0x43, 0x1c, 0x54, 0x99, 0x07, 0x00, 0x00, } func (m *Channel) Marshal() (dAtA []byte, err error) { @@ -959,6 +1019,44 @@ func (m *Acknowledgement_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0xb2 return len(dAtA) - i, nil } +func (m *Timeout) 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 *Timeout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Timeout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Timestamp != 0 { + i = encodeVarintChannel(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x10 + } + { + size, err := m.Height.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChannel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func encodeVarintChannel(dAtA []byte, offset int, v uint64) int { offset -= sovChannel(v) base := offset @@ -1164,6 +1262,19 @@ func (m *Acknowledgement_Error) Size() (n int) { n += 2 + l + sovChannel(uint64(l)) return n } +func (m *Timeout) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Height.Size() + n += 1 + l + sovChannel(uint64(l)) + if m.Timestamp != 0 { + n += 1 + sovChannel(uint64(m.Timestamp)) + } + return n +} func sovChannel(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 @@ -2417,6 +2528,108 @@ func (m *Acknowledgement) Unmarshal(dAtA []byte) error { } return nil } +func (m *Timeout) 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 ErrIntOverflowChannel + } + 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: Timeout: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Timeout: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChannel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChannel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChannel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Height.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChannel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipChannel(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChannel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipChannel(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/proto/ibc/core/channel/v1/channel.proto b/proto/ibc/core/channel/v1/channel.proto index 05c7dbac33b..9eca763bcb9 100644 --- a/proto/ibc/core/channel/v1/channel.proto +++ b/proto/ibc/core/channel/v1/channel.proto @@ -159,3 +159,13 @@ message Acknowledgement { string error = 22; } } + +// Timeout defines an execution deadline structure for 04-channel handlers. +// This includes packet lifecycle handlers as well as the upgrade handshake handlers. +// A valid Timeout contains either one or both of a timestamp and block height (sequence). +message Timeout { + // block height after which the packet or upgrade times out + ibc.core.client.v1.Height height = 1 [(gogoproto.nullable) = false]; + // block timestamp (in nanoseconds) after which the packet or upgrade times out + uint64 timestamp = 2; +}