Skip to content

Commit

Permalink
Merge pull request #1469 from DA0-DA0/development
Browse files Browse the repository at this point in the history
Deploy Juno gov fix
  • Loading branch information
NoahSaso authored Nov 11, 2023
2 parents f6cfe2e + a111805 commit f719f7c
Show file tree
Hide file tree
Showing 27 changed files with 1,434 additions and 480 deletions.
180 changes: 90 additions & 90 deletions packages/protobuf/codegen/cosmos/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,62 +54,62 @@ import * as _54 from "./tx/v1beta1/tx";
import * as _55 from "./upgrade/v1beta1/query";
import * as _56 from "./upgrade/v1beta1/tx";
import * as _57 from "./upgrade/v1beta1/upgrade";
import * as _186 from "./auth/v1beta1/tx.amino";
import * as _187 from "./authz/v1beta1/tx.amino";
import * as _188 from "./bank/v1beta1/tx.amino";
import * as _189 from "./distribution/v1beta1/tx.amino";
import * as _190 from "./gov/v1/tx.amino";
import * as _191 from "./gov/v1beta1/tx.amino";
import * as _192 from "./mint/v1beta1/tx.amino";
import * as _193 from "./slashing/v1beta1/tx.amino";
import * as _194 from "./staking/v1beta1/tx.amino";
import * as _195 from "./upgrade/v1beta1/tx.amino";
import * as _196 from "./auth/v1beta1/tx.registry";
import * as _197 from "./authz/v1beta1/tx.registry";
import * as _198 from "./bank/v1beta1/tx.registry";
import * as _199 from "./distribution/v1beta1/tx.registry";
import * as _200 from "./gov/v1/tx.registry";
import * as _201 from "./gov/v1beta1/tx.registry";
import * as _202 from "./mint/v1beta1/tx.registry";
import * as _203 from "./slashing/v1beta1/tx.registry";
import * as _204 from "./staking/v1beta1/tx.registry";
import * as _205 from "./upgrade/v1beta1/tx.registry";
import * as _206 from "./auth/v1beta1/query.rpc.Query";
import * as _207 from "./authz/v1beta1/query.rpc.Query";
import * as _208 from "./bank/v1beta1/query.rpc.Query";
import * as _209 from "./base/tendermint/v1beta1/query.rpc.Service";
import * as _210 from "./distribution/v1beta1/query.rpc.Query";
import * as _211 from "./gov/v1/query.rpc.Query";
import * as _212 from "./gov/v1beta1/query.rpc.Query";
import * as _213 from "./mint/v1beta1/query.rpc.Query";
import * as _214 from "./params/v1beta1/query.rpc.Query";
import * as _215 from "./slashing/v1beta1/query.rpc.Query";
import * as _216 from "./staking/v1beta1/query.rpc.Query";
import * as _217 from "./tx/v1beta1/service.rpc.Service";
import * as _218 from "./upgrade/v1beta1/query.rpc.Query";
import * as _219 from "./auth/v1beta1/tx.rpc.msg";
import * as _220 from "./authz/v1beta1/tx.rpc.msg";
import * as _221 from "./bank/v1beta1/tx.rpc.msg";
import * as _222 from "./distribution/v1beta1/tx.rpc.msg";
import * as _223 from "./gov/v1/tx.rpc.msg";
import * as _224 from "./gov/v1beta1/tx.rpc.msg";
import * as _225 from "./mint/v1beta1/tx.rpc.msg";
import * as _226 from "./slashing/v1beta1/tx.rpc.msg";
import * as _227 from "./staking/v1beta1/tx.rpc.msg";
import * as _228 from "./upgrade/v1beta1/tx.rpc.msg";
import * as _310 from "./rpc.query";
import * as _311 from "./rpc.tx";
import * as _189 from "./auth/v1beta1/tx.amino";
import * as _190 from "./authz/v1beta1/tx.amino";
import * as _191 from "./bank/v1beta1/tx.amino";
import * as _192 from "./distribution/v1beta1/tx.amino";
import * as _193 from "./gov/v1/tx.amino";
import * as _194 from "./gov/v1beta1/tx.amino";
import * as _195 from "./mint/v1beta1/tx.amino";
import * as _196 from "./slashing/v1beta1/tx.amino";
import * as _197 from "./staking/v1beta1/tx.amino";
import * as _198 from "./upgrade/v1beta1/tx.amino";
import * as _199 from "./auth/v1beta1/tx.registry";
import * as _200 from "./authz/v1beta1/tx.registry";
import * as _201 from "./bank/v1beta1/tx.registry";
import * as _202 from "./distribution/v1beta1/tx.registry";
import * as _203 from "./gov/v1/tx.registry";
import * as _204 from "./gov/v1beta1/tx.registry";
import * as _205 from "./mint/v1beta1/tx.registry";
import * as _206 from "./slashing/v1beta1/tx.registry";
import * as _207 from "./staking/v1beta1/tx.registry";
import * as _208 from "./upgrade/v1beta1/tx.registry";
import * as _209 from "./auth/v1beta1/query.rpc.Query";
import * as _210 from "./authz/v1beta1/query.rpc.Query";
import * as _211 from "./bank/v1beta1/query.rpc.Query";
import * as _212 from "./base/tendermint/v1beta1/query.rpc.Service";
import * as _213 from "./distribution/v1beta1/query.rpc.Query";
import * as _214 from "./gov/v1/query.rpc.Query";
import * as _215 from "./gov/v1beta1/query.rpc.Query";
import * as _216 from "./mint/v1beta1/query.rpc.Query";
import * as _217 from "./params/v1beta1/query.rpc.Query";
import * as _218 from "./slashing/v1beta1/query.rpc.Query";
import * as _219 from "./staking/v1beta1/query.rpc.Query";
import * as _220 from "./tx/v1beta1/service.rpc.Service";
import * as _221 from "./upgrade/v1beta1/query.rpc.Query";
import * as _222 from "./auth/v1beta1/tx.rpc.msg";
import * as _223 from "./authz/v1beta1/tx.rpc.msg";
import * as _224 from "./bank/v1beta1/tx.rpc.msg";
import * as _225 from "./distribution/v1beta1/tx.rpc.msg";
import * as _226 from "./gov/v1/tx.rpc.msg";
import * as _227 from "./gov/v1beta1/tx.rpc.msg";
import * as _228 from "./mint/v1beta1/tx.rpc.msg";
import * as _229 from "./slashing/v1beta1/tx.rpc.msg";
import * as _230 from "./staking/v1beta1/tx.rpc.msg";
import * as _231 from "./upgrade/v1beta1/tx.rpc.msg";
import * as _317 from "./rpc.query";
import * as _318 from "./rpc.tx";
export namespace cosmos {
export namespace auth {
export const v1beta1 = {
..._2,
..._3,
..._4,
..._5,
..._186,
..._196,
..._206,
..._219
..._189,
..._199,
..._209,
..._222
};
}
export namespace authz {
Expand All @@ -119,10 +119,10 @@ export namespace cosmos {
..._8,
..._9,
..._10,
..._187,
..._197,
..._207,
..._220
..._190,
..._200,
..._210,
..._223
};
}
export namespace bank {
Expand All @@ -132,10 +132,10 @@ export namespace cosmos {
..._13,
..._14,
..._15,
..._188,
..._198,
..._208,
..._221
..._191,
..._201,
..._211,
..._224
};
}
export namespace base {
Expand All @@ -153,7 +153,7 @@ export namespace cosmos {
export const v1beta1 = {
..._18,
..._19,
..._209
..._212
};
}
export const v1beta1 = {
Expand All @@ -176,10 +176,10 @@ export namespace cosmos {
..._24,
..._25,
..._26,
..._189,
..._199,
..._210,
..._222
..._192,
..._202,
..._213,
..._225
};
}
export namespace gov {
Expand All @@ -188,20 +188,20 @@ export namespace cosmos {
..._28,
..._29,
..._30,
..._190,
..._200,
..._211,
..._223
..._193,
..._203,
..._214,
..._226
};
export const v1beta1 = {
..._31,
..._32,
..._33,
..._34,
..._191,
..._201,
..._212,
..._224
..._194,
..._204,
..._215,
..._227
};
}
export namespace mint {
Expand All @@ -210,10 +210,10 @@ export namespace cosmos {
..._36,
..._37,
..._38,
..._192,
..._202,
..._213,
..._225
..._195,
..._205,
..._216,
..._228
};
}
export namespace msg {
Expand All @@ -225,7 +225,7 @@ export namespace cosmos {
export const v1beta1 = {
..._40,
..._41,
..._214
..._217
};
}
export namespace query {
Expand All @@ -239,10 +239,10 @@ export namespace cosmos {
..._44,
..._45,
..._46,
..._193,
..._203,
..._215,
..._226
..._196,
..._206,
..._218,
..._229
};
}
export namespace staking {
Expand All @@ -252,10 +252,10 @@ export namespace cosmos {
..._49,
..._50,
..._51,
..._194,
..._204,
..._216,
..._227
..._197,
..._207,
..._219,
..._230
};
}
export namespace tx {
Expand All @@ -267,22 +267,22 @@ export namespace cosmos {
export const v1beta1 = {
..._53,
..._54,
..._217
..._220
};
}
export namespace upgrade {
export const v1beta1 = {
..._55,
..._56,
..._57,
..._195,
..._205,
..._218,
..._228
..._198,
..._208,
..._221,
..._231
};
}
export const ClientFactory = {
..._310,
..._311
..._317,
..._318
};
}
24 changes: 12 additions & 12 deletions packages/protobuf/codegen/cosmwasm/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import * as _61 from "./wasm/v1/proposal";
import * as _62 from "./wasm/v1/query";
import * as _63 from "./wasm/v1/tx";
import * as _64 from "./wasm/v1/types";
import * as _229 from "./wasm/v1/tx.amino";
import * as _230 from "./wasm/v1/tx.registry";
import * as _231 from "./wasm/v1/query.rpc.Query";
import * as _232 from "./wasm/v1/tx.rpc.msg";
import * as _312 from "./rpc.query";
import * as _313 from "./rpc.tx";
import * as _232 from "./wasm/v1/tx.amino";
import * as _233 from "./wasm/v1/tx.registry";
import * as _234 from "./wasm/v1/query.rpc.Query";
import * as _235 from "./wasm/v1/tx.rpc.msg";
import * as _319 from "./rpc.query";
import * as _320 from "./rpc.tx";
export namespace cosmwasm {
export namespace wasm {
export const v1 = {
Expand All @@ -21,14 +21,14 @@ export namespace cosmwasm {
..._62,
..._63,
..._64,
..._229,
..._230,
..._231,
..._232
..._232,
..._233,
..._234,
..._235
};
}
export const ClientFactory = {
..._312,
..._313
..._319,
..._320
};
}
26 changes: 26 additions & 0 deletions packages/protobuf/codegen/gaia/bundle.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import * as _65 from "./globalfee/v1beta1/genesis";
import * as _66 from "./globalfee/v1beta1/query";
import * as _67 from "./globalfee/v1beta1/tx";
import * as _236 from "./globalfee/v1beta1/tx.amino";
import * as _237 from "./globalfee/v1beta1/tx.registry";
import * as _238 from "./globalfee/v1beta1/query.rpc.Query";
import * as _239 from "./globalfee/v1beta1/tx.rpc.msg";
import * as _321 from "./rpc.query";
import * as _322 from "./rpc.tx";
export namespace gaia {
export namespace globalfee {
export const v1beta1 = {
..._65,
..._66,
..._67,
..._236,
..._237,
..._238,
..._239
};
}
export const ClientFactory = {
..._321,
..._322
};
}
47 changes: 47 additions & 0 deletions packages/protobuf/codegen/gaia/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
import * as gaiaGlobalfeeV1beta1TxRegistry from "./globalfee/v1beta1/tx.registry";
import * as gaiaGlobalfeeV1beta1TxAmino from "./globalfee/v1beta1/tx.amino";
export const gaiaAminoConverters = {
...gaiaGlobalfeeV1beta1TxAmino.AminoConverter
};
export const gaiaProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...gaiaGlobalfeeV1beta1TxRegistry.registry];
export const getSigningGaiaClientOptions = ({
defaultTypes = defaultRegistryTypes
}: {
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
} = {}): {
registry: Registry;
aminoTypes: AminoTypes;
} => {
const registry = new Registry([...defaultTypes, ...gaiaProtoRegistry]);
const aminoTypes = new AminoTypes({
...gaiaAminoConverters
});
return {
registry,
aminoTypes
};
};
export const getSigningGaiaClient = async ({
rpcEndpoint,
signer,
defaultTypes = defaultRegistryTypes
}: {
rpcEndpoint: string | HttpEndpoint;
signer: OfflineSigner;
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
}) => {
const {
registry,
aminoTypes
} = getSigningGaiaClientOptions({
defaultTypes
});
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
registry: (registry as any),
aminoTypes
});
return client;
};
Loading

2 comments on commit f719f7c

@vercel
Copy link

@vercel vercel bot commented on f719f7c Nov 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on f719f7c Nov 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.