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

kosu.js: implement a go-kosu JSONRPC client (the NodeClient) #229

Merged
merged 18 commits into from Aug 23, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

kosu.js: running prettier

  • Loading branch information
hrharder committed Aug 22, 2019
commit b7f6706f7bfde0f8320e3c70b585cbef0bde515c
@@ -179,12 +179,7 @@ export class NodeClient {
* @returns Information about the current rebalance period.
*/
public async roundInfo(): Promise<RoundInfo> {
const {
number: num,
limit: lim,
starts_at: startsAt,
ends_at: endsAt,
} = await this._call("kosu_roundInfo");
const { number: num, limit: lim, starts_at: startsAt, ends_at: endsAt } = await this._call("kosu_roundInfo");
return { number: num, limit: lim, startsAt, endsAt };
}

@@ -49,7 +49,7 @@ interface Signature {
sign(web3: Web3, messageHex: string, signer: string): Promise<string>;
}

interface DecodedKosuLogArgs { }
interface DecodedKosuLogArgs {}

interface LogWithDecodedKosuArgs<A, B> extends LogWithDecodedArgs {
event: string;
@@ -6,13 +6,7 @@
"resolveJsonModule": true,
"sourceMap": true,
"moduleResolution": "node",
"typeRoots": [
"node_modules/@types",
"node_modules/@0x/typescript-typings/types"
]
"typeRoots": ["node_modules/@types", "node_modules/@0x/typescript-typings/types"]
},
"include": [
"./src/**/*",
"../kosu-system-contracts/src/types.d.ts"
]
}
"include": ["./src/**/*", "../kosu-system-contracts/src/types.d.ts"]
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.