goblingold-sdk
Advanced tools
Comparing version 1.2.15 to 1.2.16
@@ -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
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
476802
10342