@@ -9,14 +9,12 @@ import {
99 makeLeaderFromRpcAddresses ,
1010 makeCastingSpec ,
1111} from '@agoric/casting' ;
12- import { DirectSecp256k1HdWallet , Registry } from '@cosmjs/proto-signing ' ;
13- import { defaultRegistryTypes } from '@cosmjs/stargate ' ;
12+ import { getSigningAgoricClientOptions } from '@agoric/cosmic-proto ' ;
13+ import { DirectSecp256k1HdWallet } from '@cosmjs/proto-signing ' ;
1414import { stringToPath } from '@cosmjs/crypto' ;
1515import { Decimal } from '@cosmjs/math' ;
1616import { fromBech32 } from '@cosmjs/encoding' ;
1717
18- import { MsgInstallBundle } from '@agoric/cosmic-proto/swingset/msgs.js' ;
19-
2018// https://github.com/Agoric/agoric-sdk/blob/master/golang/cosmos/daemon/main.go
2119const Agoric = {
2220 Bech32MainPrefix : 'agoric' ,
@@ -38,11 +36,6 @@ const Agoric = {
3836const hdPath = ( coinType = 118 , account = 0 ) =>
3937 stringToPath ( `m/44'/${ coinType } '/${ account } '/0/0` ) ;
4038
41- const registry = new Registry ( [
42- ...defaultRegistryTypes ,
43- [ Agoric . proto . swingset . InstallBundle . typeUrl , MsgInstallBundle ] ,
44- ] ) ;
45-
4639/**
4740 * @typedef {object } JsonHttpRequest
4841 * @property {string } hostname
@@ -290,8 +283,8 @@ export const makeCosmosBundlePublisher = ({
290283
291284 // AWAIT
292285 const stargateClient = await connectWithSigner ( endpoint , wallet , {
286+ ...getSigningAgoricClientOptions ( ) ,
293287 gasPrice : Agoric . gasPrice ,
294- registry,
295288 } ) ;
296289
297290 // AWAIT
0 commit comments