cosmos-rest
Advanced tools
Comparing version 0.1.4 to 0.1.5
10
index.js
@@ -36,4 +36,4 @@ 'use strcit'; | ||
//获取gsid | ||
get_gc = async (json) => { | ||
const data = await this.request('POST','/bc/game/start',json); | ||
get_gc = async (gsid,json) => { | ||
const data = await this.request('POST',`/bc/game/${gsid}/start`,json); | ||
return data; | ||
@@ -48,8 +48,8 @@ } | ||
query_amount = async (gsid,json) => { | ||
const data = await this.request('POST',`/bc/game/${gsid}/cq`,json); | ||
const data = await this.request('POST',`/bc/game/${gsid}/query`,json); | ||
return data; | ||
} | ||
//状态迁移 (本手牌结束) | ||
game_relay = async (json) => { | ||
const data = await this.request('POST','/bc/game/relay',json); | ||
game_relay = async (gsid,json) => { | ||
const data = await this.request('POST',`/bc/game/${gsid}/relay`,json); | ||
return data; | ||
@@ -56,0 +56,0 @@ } |
{ | ||
"name": "cosmos-rest", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"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
24914