Skip to content

Commit

Permalink
BREAKING CHANGE: no RPC or registry, currently incompatible with vat env
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Apr 5, 2024
1 parent 041c976 commit b6de2ed
Show file tree
Hide file tree
Showing 164 changed files with 146 additions and 37,778 deletions.
4 changes: 2 additions & 2 deletions packages/cosmic-proto/scripts/codegen.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ telescope({
},
aminoEncoding: {
// Necessary for getSigningAgoricClient
enabled: true,
enabled: false,
},
lcdClients: {
enabled: false,
},
rpcClients: {
enabled: true,
enabled: false,
},
},
})
Expand Down
24 changes: 0 additions & 24 deletions packages/cosmic-proto/src/codegen/agoric/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ import * as _11 from './vlocalchain/vlocalchain.js';
import * as _12 from './vstorage/genesis.js';
import * as _13 from './vstorage/query.js';
import * as _14 from './vstorage/vstorage.js';
import * as _98 from './swingset/msgs.amino.js';
import * as _99 from './vibc/msgs.amino.js';
import * as _100 from './swingset/msgs.registry.js';
import * as _101 from './vibc/msgs.registry.js';
import * as _102 from './swingset/query.rpc.Query.js';
import * as _103 from './vbank/query.rpc.Query.js';
import * as _104 from './vstorage/query.rpc.Query.js';
import * as _105 from './swingset/msgs.rpc.msg.js';
import * as _106 from './vibc/msgs.rpc.msg.js';
import * as _150 from './rpc.query.js';
import * as _151 from './rpc.tx.js';
export namespace agoric {
export const lien = {
..._0,
Expand All @@ -35,23 +24,15 @@ export namespace agoric {
..._3,
..._4,
..._5,
..._98,
..._100,
..._102,
..._105,
};
export const vbank = {
..._6,
..._7,
..._8,
..._9,
..._103,
};
export const vibc = {
..._10,
..._99,
..._101,
..._106,
};
export const vlocalchain = {
..._11,
Expand All @@ -60,10 +41,5 @@ export namespace agoric {
..._12,
..._13,
..._14,
..._104,
};
export const ClientFactory = {
..._150,
..._151,
};
}
59 changes: 0 additions & 59 deletions packages/cosmic-proto/src/codegen/agoric/client.ts

This file was deleted.

59 changes: 1 addition & 58 deletions packages/cosmic-proto/src/codegen/agoric/lien/genesis.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ts-nocheck
import { Lien, LienAmino, LienSDKType } from './lien.js';
import { Lien, LienSDKType } from './lien.js';
import { BinaryReader, BinaryWriter } from '../../binary.js';
import { isSet } from '../../helpers.js';
/** The initial or exported state. */
Expand All @@ -11,14 +11,6 @@ export interface GenesisStateProtoMsg {
value: Uint8Array;
}
/** The initial or exported state. */
export interface GenesisStateAmino {
liens?: AccountLienAmino[];
}
export interface GenesisStateAminoMsg {
type: '/agoric.lien.GenesisState';
value: GenesisStateAmino;
}
/** The initial or exported state. */
export interface GenesisStateSDKType {
liens: AccountLienSDKType[];
}
Expand All @@ -34,17 +26,6 @@ export interface AccountLienProtoMsg {
value: Uint8Array;
}
/** The lien on a particular account */
export interface AccountLienAmino {
/** Account address, bech32-encoded. */
address?: string;
/** The liened amount. Should be nonzero. */
lien?: LienAmino;
}
export interface AccountLienAminoMsg {
type: '/agoric.lien.AccountLien';
value: AccountLienAmino;
}
/** The lien on a particular account */
export interface AccountLienSDKType {
address: string;
lien?: LienSDKType;
Expand Down Expand Up @@ -106,25 +87,6 @@ export const GenesisState = {
message.liens = object.liens?.map(e => AccountLien.fromPartial(e)) || [];
return message;
},
fromAmino(object: GenesisStateAmino): GenesisState {
const message = createBaseGenesisState();
message.liens = object.liens?.map(e => AccountLien.fromAmino(e)) || [];
return message;
},
toAmino(message: GenesisState): GenesisStateAmino {
const obj: any = {};
if (message.liens) {
obj.liens = message.liens.map(e =>
e ? AccountLien.toAmino(e) : undefined,
);
} else {
obj.liens = message.liens;
}
return obj;
},
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
return GenesisState.fromAmino(object.value);
},
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
return GenesisState.decode(message.value);
},
Expand Down Expand Up @@ -201,25 +163,6 @@ export const AccountLien = {
: undefined;
return message;
},
fromAmino(object: AccountLienAmino): AccountLien {
const message = createBaseAccountLien();
if (object.address !== undefined && object.address !== null) {
message.address = object.address;
}
if (object.lien !== undefined && object.lien !== null) {
message.lien = Lien.fromAmino(object.lien);
}
return message;
},
toAmino(message: AccountLien): AccountLienAmino {
const obj: any = {};
obj.address = message.address === '' ? undefined : message.address;
obj.lien = message.lien ? Lien.toAmino(message.lien) : undefined;
return obj;
},
fromAminoMsg(object: AccountLienAminoMsg): AccountLien {
return AccountLien.fromAmino(object.value);
},
fromProtoMsg(message: AccountLienProtoMsg): AccountLien {
return AccountLien.decode(message.value);
},
Expand Down
46 changes: 1 addition & 45 deletions packages/cosmic-proto/src/codegen/agoric/lien/lien.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
//@ts-nocheck
import {
Coin,
CoinAmino,
CoinSDKType,
} from '../../cosmos/base/v1beta1/coin.js';
import { Coin, CoinSDKType } from '../../cosmos/base/v1beta1/coin.js';
import { BinaryReader, BinaryWriter } from '../../binary.js';
/** Lien contains the lien state of a particular account. */
export interface Lien {
Expand All @@ -21,21 +17,6 @@ export interface LienProtoMsg {
value: Uint8Array;
}
/** Lien contains the lien state of a particular account. */
export interface LienAmino {
/** coins holds the amount liened */
coins?: CoinAmino[];
/**
* delegated tracks the net amount delegated for non-vesting accounts,
* or zero coins for vesting accounts.
* (Vesting accounts have their own fields to track delegation.)
*/
delegated?: CoinAmino[];
}
export interface LienAminoMsg {
type: '/agoric.lien.Lien';
value: LienAmino;
}
/** Lien contains the lien state of a particular account. */
export interface LienSDKType {
coins: CoinSDKType[];
delegated: CoinSDKType[];
Expand Down Expand Up @@ -113,31 +94,6 @@ export const Lien = {
message.delegated = object.delegated?.map(e => Coin.fromPartial(e)) || [];
return message;
},
fromAmino(object: LienAmino): Lien {
const message = createBaseLien();
message.coins = object.coins?.map(e => Coin.fromAmino(e)) || [];
message.delegated = object.delegated?.map(e => Coin.fromAmino(e)) || [];
return message;
},
toAmino(message: Lien): LienAmino {
const obj: any = {};
if (message.coins) {
obj.coins = message.coins.map(e => (e ? Coin.toAmino(e) : undefined));
} else {
obj.coins = message.coins;
}
if (message.delegated) {
obj.delegated = message.delegated.map(e =>
e ? Coin.toAmino(e) : undefined,
);
} else {
obj.delegated = message.delegated;
}
return obj;
},
fromAminoMsg(object: LienAminoMsg): Lien {
return Lien.fromAmino(object.value);
},
fromProtoMsg(message: LienProtoMsg): Lien {
return Lien.decode(message.value);
},
Expand Down
89 changes: 0 additions & 89 deletions packages/cosmic-proto/src/codegen/agoric/rpc.query.ts

This file was deleted.

Loading

0 comments on commit b6de2ed

Please sign in to comment.