Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cosmos-rest

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmos-rest - npm Package Compare versions

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;

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc