Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unfork Telescope #10867

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cosmic-proto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"devDependencies": {
"@agoric/cosmos": "^0.34.1",
"@ava/typescript": "^4.1.0",
"@cosmology/telescope": "https://gitpkg.vercel.app/agoric-labs/telescope/packages/telescope?8d2c2f6ba637a5578eead09a7368dc41c262a9d0",
"@cosmology/telescope": "^1.11.9",
"@endo/bundle-source": "^3.5.0",
"@endo/import-bundle": "^1.3.2",
"@endo/ses-ava": "^1.2.8",
Expand Down
4 changes: 4 additions & 0 deletions packages/cosmic-proto/scripts/codegen.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ telescope({
// customTypes: {
// useCosmosSDKDec: true,
// },
customTypes: {
base64Lib: '@endo/base64',
useEnhancedDecimal: true,
},
},
},
aminoEncoding: {
Expand Down
4 changes: 3 additions & 1 deletion packages/cosmic-proto/src/codegen/agoric/swingset/msgs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//@ts-nocheck
import { BinaryReader, BinaryWriter } from '../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../helpers.js';
import { isSet } from '../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
import { type JsonSafe } from '../../json-safe.js';
/** MsgDeliverInbound defines an SDK message for delivering an eventual send */
export interface MsgDeliverInbound {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {
} from './swingset.js';
import { BinaryReader, BinaryWriter } from '../../binary.js';
import { type JsonSafe } from '../../json-safe.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../helpers.js';
import { isSet } from '../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
export interface QueryParamsRequest {}
export interface QueryParamsRequestProtoMsg {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
//@ts-nocheck
import { Coin, type CoinSDKType } from '../../cosmos/base/v1beta1/coin.js';
import { BinaryReader, BinaryWriter } from '../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../helpers.js';
import { isSet } from '../../helpers.js';
import { type JsonSafe } from '../../json-safe.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
/**
* CoreEvalProposal is a gov Content type for evaluating code in the SwingSet
* core.
Expand Down
3 changes: 2 additions & 1 deletion packages/cosmic-proto/src/codegen/agoric/vbank/vbank.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//@ts-nocheck
import { Coin, type CoinSDKType } from '../../cosmos/base/v1beta1/coin.js';
import { BinaryReader, BinaryWriter } from '../../binary.js';
import { Decimal, isSet } from '../../helpers.js';
import { Decimal } from '../../decimals.js';
import { isSet } from '../../helpers.js';
import { type JsonSafe } from '../../json-safe.js';
/** The module governance/configuration parameters. */
export interface Params {
Expand Down
4 changes: 3 additions & 1 deletion packages/cosmic-proto/src/codegen/agoric/vibc/msgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {
type PacketSDKType,
} from '../../ibc/core/channel/v1/channel.js';
import { BinaryReader, BinaryWriter } from '../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../helpers.js';
import { isSet } from '../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
import { type JsonSafe } from '../../json-safe.js';
/** MsgSendPacket is an SDK message for sending an outgoing IBC packet */
export interface MsgSendPacket {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//@ts-nocheck
import { BinaryReader, BinaryWriter } from '../../binary.js';
import { bytesFromBase64, base64FromBytes } from '../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
import { type JsonSafe } from '../../json-safe.js';
/** The initial and exported module state. */
export interface GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion packages/cosmic-proto/src/codegen/binary.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//@ts-nocheck
/**
* This file and any referenced files were automatically generated by @cosmology/telescope@1.8.3
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.9
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import {
type ModuleAccountSDKType,
} from './auth.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
import { isSet } from '../../../helpers.js';
import { type JsonSafe } from '../../../json-safe.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
/**
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
import { Grant, type GrantSDKType } from './authz.js';
import { Any, type AnySDKType } from '../../../google/protobuf/any.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
import { isSet } from '../../../helpers.js';
import { type JsonSafe } from '../../../json-safe.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
/**
* MsgGrant is a request type for Grant method. It declares authorization to the grantee
* on behalf of the granter with the provided expiration time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
import { Any, type AnySDKType } from '../../../../google/protobuf/any.js';
import { Event, type EventSDKType } from '../../../../tendermint/abci/types.js';
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
import {
isSet,
bytesFromBase64,
base64FromBytes,
} from '../../../../helpers.js';
import { isSet } from '../../../../helpers.js';
import { type JsonSafe } from '../../../../json-safe.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
/**
* TxResponse defines a structure containing relevant tx data and metadata. The
* tags are stringified and the log is JSON decoded.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
//@ts-nocheck
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
import {
isSet,
bytesFromBase64,
base64FromBytes,
} from '../../../../helpers.js';
import { isSet } from '../../../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
import { type JsonSafe } from '../../../../json-safe.js';
/**
* PageRequest is to be embedded in gRPC request messages for efficient
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//@ts-nocheck
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
import { isSet } from '../../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
import { type JsonSafe } from '../../../json-safe.js';
/**
* PubKey is an ed25519 public key for handling Tendermint keys in SDK.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
//@ts-nocheck
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
import {
bytesFromBase64,
base64FromBytes,
isSet,
} from '../../../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
import { type JsonSafe } from '../../../../json-safe.js';
import { isSet } from '../../../../helpers.js';
/**
* MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey.
* See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//@ts-nocheck
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
import { isSet } from '../../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
import { type JsonSafe } from '../../../json-safe.js';
/**
* PubKey defines a secp256k1 public key
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//@ts-nocheck
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
import { isSet } from '../../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
import { type JsonSafe } from '../../../json-safe.js';
/** PubKey defines a secp256r1 ECDSA public key. */
export interface PubKey {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
type CoinSDKType,
} from '../../base/v1beta1/coin.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { Decimal, isSet } from '../../../helpers.js';
import { Decimal } from '../../../decimals.js';
import { isSet } from '../../../helpers.js';
import { type JsonSafe } from '../../../json-safe.js';
/** Params defines the set of params for the distribution module. */
export interface Params {
Expand Down
12 changes: 4 additions & 8 deletions packages/cosmic-proto/src/codegen/cosmos/gov/v1beta1/gov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ import {
type DurationSDKType,
} from '../../../google/protobuf/duration.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import {
Decimal,
isSet,
fromJsonTimestamp,
fromTimestamp,
bytesFromBase64,
base64FromBytes,
} from '../../../helpers.js';
import { Decimal } from '../../../decimals.js';
import { isSet, fromJsonTimestamp, fromTimestamp } from '../../../helpers.js';
import { type JsonSafe } from '../../../json-safe.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
/** VoteOption enumerates the valid vote options for a given governance proposal. */
export enum VoteOption {
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//@ts-nocheck
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { Decimal, isSet } from '../../../helpers.js';
import { Decimal } from '../../../decimals.js';
import { isSet } from '../../../helpers.js';
import { type JsonSafe } from '../../../json-safe.js';
/** Minter represents the minting state. */
export interface Minter {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import { Params, type ParamsSDKType } from './mint.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { type JsonSafe } from '../../../json-safe.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
import { isSet } from '../../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
export interface QueryParamsRequest {}
export interface QueryParamsRequestProtoMsg {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import {
type RedelegationSDKType,
} from './staking.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
import { isSet } from '../../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
import { type JsonSafe } from '../../../json-safe.js';
/** GenesisState defines the staking module's genesis state. */
export interface GenesisState {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ import {
} from '../../../google/protobuf/duration.js';
import { Coin, type CoinSDKType } from '../../base/v1beta1/coin.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import {
isSet,
Decimal,
fromJsonTimestamp,
fromTimestamp,
} from '../../../helpers.js';
import { isSet, fromJsonTimestamp, fromTimestamp } from '../../../helpers.js';
import { type JsonSafe } from '../../../json-safe.js';
import { Decimal } from '../../../decimals.js';
/** BondStatus is the status of a validator. */
export enum BondStatus {
/** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ import {
type TimestampSDKType,
} from '../../../google/protobuf/timestamp.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import {
isSet,
Decimal,
fromJsonTimestamp,
fromTimestamp,
} from '../../../helpers.js';
import { isSet, fromJsonTimestamp, fromTimestamp } from '../../../helpers.js';
import { type JsonSafe } from '../../../json-safe.js';
import { Decimal } from '../../../decimals.js';
/** MsgCreateValidator defines a SDK message for creating a new validator. */
export interface MsgCreateValidator {
description: Description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import {
import { Any, type AnySDKType } from '../../../../google/protobuf/any.js';
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
import { type JsonSafe } from '../../../../json-safe.js';
import {
isSet,
bytesFromBase64,
base64FromBytes,
} from '../../../../helpers.js';
import { isSet } from '../../../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
/**
* SignMode represents a signing mode with its own security guarantees.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ import {
} from '../../../tendermint/types/types.js';
import { Block, type BlockSDKType } from '../../../tendermint/types/block.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
import { isSet } from '../../../helpers.js';
import { type JsonSafe } from '../../../json-safe.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
/** OrderBy defines the sorting order */
export enum OrderBy {
/** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */
Expand Down
4 changes: 3 additions & 1 deletion packages/cosmic-proto/src/codegen/cosmos/tx/v1beta1/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import {
} from '../../crypto/multisig/v1beta1/multisig.js';
import { Coin, type CoinSDKType } from '../../base/v1beta1/coin.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
import { isSet } from '../../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
import { type JsonSafe } from '../../../json-safe.js';
/** Tx is the standard type used for broadcasting transactions. */
export interface Tx {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {
} from './upgrade.js';
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { type JsonSafe } from '../../../json-safe.js';
import { isSet, bytesFromBase64, base64FromBytes } from '../../../helpers.js';
import { isSet } from '../../../helpers.js';
import { encodeBase64 as bytesFromBase64 } from '@endo/base64';
import { decodeBase64 as base64FromBytes } from '@endo/base64';
/**
* QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
* method.
Expand Down
Loading
Loading