Skip to content

Commit

Permalink
Update protos
Browse files Browse the repository at this point in the history
  • Loading branch information
mattupham committed Sep 16, 2024
1 parent 137654e commit ebb6bc6
Show file tree
Hide file tree
Showing 35 changed files with 2,936 additions and 607 deletions.
3 changes: 3 additions & 0 deletions packages/proto-codecs/scripts/generated/package-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type AvailablePackages =
| "osmosis.gamm.poolmodels.balancer.v1beta1"
| "ibc.applications.interchain_accounts.v1"
| "osmosis.concentratedliquidity.v1beta1"
| "osmosis.cosmwasmpool.v1beta1.model.v3"
| "osmosis.downtimedetector.v1beta1"
| "ibc.lightclients.solomachine.v2"
| "ibc.lightclients.solomachine.v3"
Expand All @@ -32,6 +33,7 @@ export type AvailablePackages =
| "osmosis.valsetpref.v1beta1"
| "cosmos.base.query.v1beta1"
| "cosmos.base.store.v1beta1"
| "ibc.lightclients.wasm.v1"
| "osmosis.protorev.v1beta1"
| "cosmos.base.abci.v1beta1"
| "ibc.applications.fee.v1"
Expand Down Expand Up @@ -66,6 +68,7 @@ export type AvailablePackages =
| "tendermint.abci"
| "osmosis.lockup"
| "tendermint.p2p"
| "capability.v1"
| "cosmos.msg.v1"
| "cosmos_proto"
| "google.api"
Expand Down
7 changes: 5 additions & 2 deletions packages/proto-codecs/scripts/get-proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ git -C .repos/osmosis checkout $OSMOSIS_COMMIT_HASH


# SDK PROTOS
COSMOS_SDK_VERSION=$(awk -F '=>' '/github.com\/osmosis-labs\/cosmos-sdk/ {print $2}' .repos/osmosis/go.mod | awk '{print $NF}' | tr -d '\n')
COSMOS_SDK_VERSION=$(awk '/github.com\/cosmos\/cosmos-sdk/ {print $2}' .repos/osmosis/go.mod | tr -d '=> ')
# COSMOS_SDK_VERSION=$(awk -F '=>' '/github.com\/osmosis-labs\/cosmos-sdk/ {print $2}' .repos/osmosis/go.mod | awk '{print $NF}' | tr -d '\n')

echo -e "${GREEN}COSMOS_SDK_VERSION: $COSMOS_SDK_VERSION${NC}"

git clone --filter=blob:none --sparse https://github.com/osmosis-labs/cosmos-sdk.git .repos/cosmos-sdk
git clone --filter=blob:none --sparse https://github.com/cosmos/cosmos-sdk.git .repos/cosmos-sdk
# git clone --filter=blob:none --sparse https://github.com/osmosis-labs/cosmos-sdk.git .repos/cosmos-sdk

# Checkout to Cosmos hash commit
git -C .repos/cosmos-sdk sparse-checkout set proto
Expand Down
72 changes: 36 additions & 36 deletions packages/proto-codecs/src/codegen/cosmos/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
//@ts-nocheck
import * as _55 from "./auth/v1beta1/auth";
import * as _56 from "./auth/v1beta1/genesis";
import * as _57 from "./bank/v1beta1/authz";
import * as _58 from "./bank/v1beta1/bank";
import * as _59 from "./bank/v1beta1/genesis";
import * as _60 from "./bank/v1beta1/tx";
import * as _111 from "./bank/v1beta1/tx.amino";
import * as _114 from "./bank/v1beta1/tx.registry";
import * as _61 from "./base/query/v1beta1/pagination";
import * as _62 from "./base/v1beta1/coin";
import * as _63 from "./staking/v1beta1/authz";
import * as _64 from "./staking/v1beta1/genesis";
import * as _65 from "./staking/v1beta1/staking";
import * as _66 from "./staking/v1beta1/tx";
import * as _112 from "./staking/v1beta1/tx.amino";
import * as _115 from "./staking/v1beta1/tx.registry";
import * as _67 from "./upgrade/v1beta1/tx";
import * as _113 from "./upgrade/v1beta1/tx.amino";
import * as _116 from "./upgrade/v1beta1/tx.registry";
import * as _68 from "./upgrade/v1beta1/upgrade";
import * as _57 from "./auth/v1beta1/auth";
import * as _58 from "./auth/v1beta1/genesis";
import * as _59 from "./bank/v1beta1/authz";
import * as _60 from "./bank/v1beta1/bank";
import * as _61 from "./bank/v1beta1/genesis";
import * as _62 from "./bank/v1beta1/tx";
import * as _113 from "./bank/v1beta1/tx.amino";
import * as _116 from "./bank/v1beta1/tx.registry";
import * as _63 from "./base/query/v1beta1/pagination";
import * as _64 from "./base/v1beta1/coin";
import * as _65 from "./staking/v1beta1/authz";
import * as _66 from "./staking/v1beta1/genesis";
import * as _67 from "./staking/v1beta1/staking";
import * as _68 from "./staking/v1beta1/tx";
import * as _114 from "./staking/v1beta1/tx.amino";
import * as _117 from "./staking/v1beta1/tx.registry";
import * as _69 from "./upgrade/v1beta1/tx";
import * as _115 from "./upgrade/v1beta1/tx.amino";
import * as _118 from "./upgrade/v1beta1/tx.registry";
import * as _70 from "./upgrade/v1beta1/upgrade";
export namespace cosmos {
export namespace auth {
export const v1beta1 = {
..._55,
..._56,
..._57,
..._58,
};
}
export namespace bank {
export const v1beta1 = {
..._57,
..._58,
..._59,
..._60,
..._111,
..._114,
..._61,
..._62,
..._113,
..._116,
};
}
export namespace base {
export namespace query {
export const v1beta1 = {
..._61,
..._63,
};
}
export const v1beta1 = {
..._62,
..._64,
};
}
export namespace staking {
export const v1beta1 = {
..._63,
..._64,
..._65,
..._66,
..._112,
..._115,
..._67,
..._68,
..._114,
..._117,
};
}
export namespace upgrade {
export const v1beta1 = {
..._67,
..._68,
..._113,
..._116,
..._69,
..._70,
..._115,
..._118,
};
}
}
8 changes: 4 additions & 4 deletions packages/proto-codecs/src/codegen/cosmwasm/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import * as _9 from "./wasm/v1/genesis";
import * as _10 from "./wasm/v1/ibc";
import * as _11 from "./wasm/v1/proposal_legacy";
import * as _12 from "./wasm/v1/tx";
import * as _89 from "./wasm/v1/tx.amino";
import * as _90 from "./wasm/v1/tx.registry";
import * as _91 from "./wasm/v1/tx.amino";
import * as _92 from "./wasm/v1/tx.registry";
import * as _13 from "./wasm/v1/types";
export namespace cosmwasm {
export namespace wasm {
Expand All @@ -16,8 +16,8 @@ export namespace cosmwasm {
..._11,
..._12,
..._13,
..._89,
..._90,
..._91,
..._92,
};
}
}
91 changes: 91 additions & 0 deletions packages/proto-codecs/src/codegen/cosmwasm/wasm/v1/ibc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,20 @@ export interface MsgIBCSendResponseAminoMsg {
export interface MsgIBCSendResponseSDKType {
sequence: bigint;
}
/** MsgIBCWriteAcknowledgementResponse */
export interface MsgIBCWriteAcknowledgementResponse {}
export interface MsgIBCWriteAcknowledgementResponseProtoMsg {
typeUrl: "/cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse";
value: Uint8Array;
}
/** MsgIBCWriteAcknowledgementResponse */
export interface MsgIBCWriteAcknowledgementResponseAmino {}
export interface MsgIBCWriteAcknowledgementResponseAminoMsg {
type: "wasm/MsgIBCWriteAcknowledgementResponse";
value: MsgIBCWriteAcknowledgementResponseAmino;
}
/** MsgIBCWriteAcknowledgementResponse */
export interface MsgIBCWriteAcknowledgementResponseSDKType {}
/** MsgIBCCloseChannel port and channel need to be owned by the contract */
export interface MsgIBCCloseChannel {
channel: string;
Expand Down Expand Up @@ -302,6 +316,83 @@ export const MsgIBCSendResponse = {
};
},
};
function createBaseMsgIBCWriteAcknowledgementResponse(): MsgIBCWriteAcknowledgementResponse {
return {};
}
export const MsgIBCWriteAcknowledgementResponse = {
typeUrl: "/cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse",
encode(
_: MsgIBCWriteAcknowledgementResponse,
writer: BinaryWriter = BinaryWriter.create()
): BinaryWriter {
return writer;
},
decode(
input: BinaryReader | Uint8Array,
length?: number
): MsgIBCWriteAcknowledgementResponse {
const reader =
input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseMsgIBCWriteAcknowledgementResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
default:
reader.skipType(tag & 7);
break;
}
}
return message;
},
fromPartial(
_: Partial<MsgIBCWriteAcknowledgementResponse>
): MsgIBCWriteAcknowledgementResponse {
const message = createBaseMsgIBCWriteAcknowledgementResponse();
return message;
},
fromAmino(
_: MsgIBCWriteAcknowledgementResponseAmino
): MsgIBCWriteAcknowledgementResponse {
const message = createBaseMsgIBCWriteAcknowledgementResponse();
return message;
},
toAmino(
_: MsgIBCWriteAcknowledgementResponse
): MsgIBCWriteAcknowledgementResponseAmino {
const obj: any = {};
return obj;
},
fromAminoMsg(
object: MsgIBCWriteAcknowledgementResponseAminoMsg
): MsgIBCWriteAcknowledgementResponse {
return MsgIBCWriteAcknowledgementResponse.fromAmino(object.value);
},
toAminoMsg(
message: MsgIBCWriteAcknowledgementResponse
): MsgIBCWriteAcknowledgementResponseAminoMsg {
return {
type: "wasm/MsgIBCWriteAcknowledgementResponse",
value: MsgIBCWriteAcknowledgementResponse.toAmino(message),
};
},
fromProtoMsg(
message: MsgIBCWriteAcknowledgementResponseProtoMsg
): MsgIBCWriteAcknowledgementResponse {
return MsgIBCWriteAcknowledgementResponse.decode(message.value);
},
toProto(message: MsgIBCWriteAcknowledgementResponse): Uint8Array {
return MsgIBCWriteAcknowledgementResponse.encode(message).finish();
},
toProtoMsg(
message: MsgIBCWriteAcknowledgementResponse
): MsgIBCWriteAcknowledgementResponseProtoMsg {
return {
typeUrl: "/cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse",
value: MsgIBCWriteAcknowledgementResponse.encode(message).finish(),
};
},
};
function createBaseMsgIBCCloseChannel(): MsgIBCCloseChannel {
return {
channel: "",
Expand Down
6 changes: 3 additions & 3 deletions packages/proto-codecs/src/codegen/cosmwasm/wasm/v1/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export interface MsgInstantiateContractResponseSDKType {
}
/**
* MsgInstantiateContract2 create a new smart contract instance for the given
* code id with a predicable address.
* code id with a predictable address.
*/
export interface MsgInstantiateContract2 {
/** Sender is the that actor that signed the messages */
Expand Down Expand Up @@ -195,7 +195,7 @@ export interface MsgInstantiateContract2ProtoMsg {
}
/**
* MsgInstantiateContract2 create a new smart contract instance for the given
* code id with a predicable address.
* code id with a predictable address.
*/
export interface MsgInstantiateContract2Amino {
/** Sender is the that actor that signed the messages */
Expand Down Expand Up @@ -224,7 +224,7 @@ export interface MsgInstantiateContract2AminoMsg {
}
/**
* MsgInstantiateContract2 create a new smart contract instance for the given
* code id with a predicable address.
* code id with a predictable address.
*/
export interface MsgInstantiateContract2SDKType {
sender: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/proto-codecs/src/codegen/gogoproto/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ts-nocheck
import * as _69 from "./gogo";
import * as _71 from "./gogo";
export const gogoproto = {
..._69,
..._71,
};
22 changes: 11 additions & 11 deletions packages/proto-codecs/src/codegen/google/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
//@ts-nocheck
import * as _70 from "./api/annotations";
import * as _71 from "./api/http";
import * as _72 from "./protobuf/any";
import * as _73 from "./protobuf/descriptor";
import * as _74 from "./protobuf/duration";
import * as _75 from "./protobuf/empty";
import * as _76 from "./protobuf/timestamp";
import * as _72 from "./api/annotations";
import * as _73 from "./api/http";
import * as _74 from "./protobuf/any";
import * as _75 from "./protobuf/descriptor";
import * as _76 from "./protobuf/duration";
import * as _77 from "./protobuf/empty";
import * as _78 from "./protobuf/timestamp";
export namespace google {
export const api = {
..._70,
..._71,
};
export const protobuf = {
..._72,
..._73,
};
export const protobuf = {
..._74,
..._75,
..._76,
..._77,
..._78,
};
}
Loading

0 comments on commit ebb6bc6

Please sign in to comment.