-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update setup prefixService for query
- Loading branch information
1 parent
fa8da0f
commit 5711d92
Showing
28 changed files
with
123 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { BaseProvider } from '../providers'; | ||
import Cosm from './index'; | ||
|
||
let rpcUrl = 'https://osmosis-rpc.polkachu.com'; | ||
|
||
async function test2() { | ||
let provider = new BaseProvider(); | ||
await provider.connect(rpcUrl); | ||
let cosm = new Cosm(provider); | ||
|
||
let denom = await cosm.cosmos.mint.prefixService('osmosis').query.Params({}); | ||
console.log(denom); | ||
} | ||
|
||
test2(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import * as Protobuf from 'cosmjs-types/cosmos/base/v1beta1/coin'; | ||
|
||
import { provider } from '../providers'; | ||
import { Provider } from '../providers'; | ||
|
||
import { App } from './app'; | ||
|
||
export class Base extends App { | ||
public protobuf = Protobuf; | ||
|
||
constructor(provider: provider) { | ||
constructor(provider: Provider) { | ||
super(provider); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import * as Protobuf from 'cosmjs-types/cosmos/capability/v1beta1/capability'; | ||
|
||
import { provider } from '../providers'; | ||
import { Provider } from '../providers'; | ||
|
||
import { App } from './app'; | ||
|
||
export class Capability extends App { | ||
public protobuf = Protobuf; | ||
|
||
constructor(provider: provider) { | ||
constructor(provider: Provider) { | ||
super(provider); | ||
} | ||
} |
Oops, something went wrong.