mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 00:57:26 +00:00 
			
		
		
		
	* start makefile refactor to smaller units; break out proto-dep updating; add check-proto-deps target for use in CI in order to determine if depdencies have diverged * add proto check workflow * download go modules before checking proto deps * clean up -- hide output and add error message for check target * add error message for check-rsync * update any type, and ibc-go protos for v3.4.0 * add buf generate files for gogo, docs, and swagger * update swagger dirs and run with latest swagger gen * ignore new build directories * refactor proto makefile logic -- use buf instead of scripts * remove old protobuf scripts * run all proto checks on push * remove moved file * set default value for protoc machine * install build deps seperately * fetch master for buf check breaking * checkout from https url in CI for buf breaking * fix rsync file permissions on darwin * ignore build dirs * fix issue with apple provided make; clean up build deps; switch to buf format * remove clang format file -- using buf format now * run make proto-format (buf format changes) * update generated files for proto format changes
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
syntax = "proto3";
 | 
						|
 | 
						|
package ibc.applications.transfer.v1;
 | 
						|
 | 
						|
option go_package = "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types";
 | 
						|
 | 
						|
import "gogoproto/gogo.proto";
 | 
						|
import "cosmos/base/v1beta1/coin.proto";
 | 
						|
import "ibc/core/client/v1/client.proto";
 | 
						|
 | 
						|
// Msg defines the ibc/transfer Msg service.
 | 
						|
service Msg {
 | 
						|
  // Transfer defines a rpc handler method for MsgTransfer.
 | 
						|
  rpc Transfer(MsgTransfer) returns (MsgTransferResponse);
 | 
						|
}
 | 
						|
 | 
						|
// MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between
 | 
						|
// ICS20 enabled chains. See ICS Spec here:
 | 
						|
// https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures
 | 
						|
message MsgTransfer {
 | 
						|
  option (gogoproto.equal)           = false;
 | 
						|
  option (gogoproto.goproto_getters) = false;
 | 
						|
 | 
						|
  // the port on which the packet will be sent
 | 
						|
  string source_port = 1 [(gogoproto.moretags) = "yaml:\"source_port\""];
 | 
						|
  // the channel by which the packet will be sent
 | 
						|
  string source_channel = 2 [(gogoproto.moretags) = "yaml:\"source_channel\""];
 | 
						|
  // the tokens to be transferred
 | 
						|
  cosmos.base.v1beta1.Coin token = 3 [(gogoproto.nullable) = false];
 | 
						|
  // the sender address
 | 
						|
  string sender = 4;
 | 
						|
  // the recipient address on the destination chain
 | 
						|
  string receiver = 5;
 | 
						|
  // Timeout height relative to the current block height.
 | 
						|
  // The timeout is disabled when set to 0.
 | 
						|
  ibc.core.client.v1.Height timeout_height = 6
 | 
						|
      [(gogoproto.moretags) = "yaml:\"timeout_height\"", (gogoproto.nullable) = false];
 | 
						|
  // Timeout timestamp in absolute nanoseconds since unix epoch.
 | 
						|
  // The timeout is disabled when set to 0.
 | 
						|
  uint64 timeout_timestamp = 7 [(gogoproto.moretags) = "yaml:\"timeout_timestamp\""];
 | 
						|
  // optional memo
 | 
						|
  string memo = 8;
 | 
						|
}
 | 
						|
 | 
						|
// MsgTransferResponse defines the Msg/Transfer response type.
 | 
						|
message MsgTransferResponse {
 | 
						|
  // sequence number of the transfer packet sent
 | 
						|
  uint64 sequence = 1;
 | 
						|
}
 |