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

goblingold-sdk

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

goblingold-sdk - npm Package Compare versions

Comparing version 1.2.15 to 1.2.16

2

lib/client.d.ts

@@ -7,3 +7,3 @@ import { web3, Wallet } from "@project-serum/anchor";

connection: web3.Connection;
wallet?: Wallet;
wallet: Wallet;
user?: web3.PublicKey;

@@ -10,0 +10,0 @@ };

@@ -18,3 +18,3 @@ import { Address, BN, Idl, Program, web3, Wallet } from "@project-serum/anchor";

user: web3.PublicKey;
constructor(idl: Idl, programId: Address, connection: web3.Connection, wallet?: Wallet, user?: web3.PublicKey);
constructor(idl: Idl, programId: Address, connection: web3.Connection, wallet: Wallet, user?: web3.PublicKey);
setToken(token: string): void;

@@ -21,0 +21,0 @@ }

@@ -67,5 +67,3 @@ "use strict";

var _a;
const provider = wallet !== undefined
? new anchor_1.AnchorProvider(connection, wallet, anchor_1.AnchorProvider.defaultOptions())
: anchor_1.AnchorProvider.local("https://ssc-dao.genesysgo.net");
const provider = new anchor_1.AnchorProvider(connection, wallet, anchor_1.AnchorProvider.defaultOptions());
super(idl, programId, provider);

@@ -72,0 +70,0 @@ this.tokenInput = "WSOL";

{
"name": "goblingold-sdk",
"version": "1.2.15",
"version": "1.2.16",
"description": "Client to interact with GoblinGold",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -14,3 +14,3 @@ import { BN, Idl, web3, Wallet } from "@project-serum/anchor";

connection: web3.Connection;
wallet?: Wallet;
wallet: Wallet;
user?: web3.PublicKey;

@@ -17,0 +17,0 @@ };

@@ -70,13 +70,10 @@ import {

connection: web3.Connection,
wallet?: Wallet,
wallet: Wallet,
user?: web3.PublicKey
) {
const provider =
wallet !== undefined
? new AnchorProvider(
connection,
wallet,
AnchorProvider.defaultOptions()
)
: AnchorProvider.local("https://ssc-dao.genesysgo.net");
const provider = new AnchorProvider(
connection,
wallet,
AnchorProvider.defaultOptions()
);

@@ -83,0 +80,0 @@ super(idl, programId, provider);

Sorry, the diff of this file is not supported yet

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