cosmos-rest
Advanced tools
Comparing version 0.1.7 to 0.1.8
29
index.js
@@ -67,6 +67,6 @@ 'use strcit'; | ||
transfer_accounts = async (json) => { | ||
const data = await this.request('POST','/txs',json); | ||
const data = await this.request('POST','/txsne',json); | ||
return data; | ||
} | ||
//获取彩票 | ||
//彩票 | ||
get_lottery = async (json) => { | ||
@@ -76,3 +76,28 @@ const data = await this.request('POST','/gc/contract/ctx',json); | ||
} | ||
//交易记录查询 | ||
get_txs_info = async (json) => { | ||
const data = await this.request('POST','/gc/txsinfo/query',json); | ||
return data; | ||
} | ||
//查询未完成的游戏会话 | ||
get_last = async (address) => { | ||
const data = await this.request('GET',`/gc/gamesession/id/query/player/${address}`); | ||
return data; | ||
} | ||
//获取BCserver地址 | ||
get_bc_server = async (gsid) => { | ||
const data = await this.request('GET',`/bc/game/${gsid}/query/game/info/last`); | ||
return data; | ||
} | ||
//获取游戏会话 | ||
recover_game = async (gsid) => { | ||
const data = await this.request('POST',`/bc/game/${gsid}/recover`); | ||
return data; | ||
} | ||
//往期开奖记录 | ||
get_past_lottery = async () => { | ||
const data = await this.request('GET',`/gc/getpastlottery`); | ||
return data; | ||
} | ||
} | ||
export default Client; |
{ | ||
"name": "cosmos-rest", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "A js sdk for cosmos blockchain", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25873
250