@nosana/node 1.0.11 → 1.0.12-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.0.11",
3
+ "version": "1.0.12-rc",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"
@@ -2,6 +2,7 @@ import { Client } from '@nosana/sdk';
2
2
  import 'rpc-websockets/dist/lib/client.js';
3
3
  import { TokenAmount, Transaction, VersionedTransaction } from '@solana/web3.js';
4
4
  import { OptionValues } from 'commander';
5
+ export declare function setSDKInstance(instance: Client): void;
5
6
  export declare function setSDK(network: 'mainnet' | 'devnet', rpc: string | undefined, market: string | undefined, keyfile: string, options: OptionValues): Promise<Client>;
6
7
  export declare function getSDK(): Client<{}>;
7
8
  export declare function getNosBalance(): TokenAmount | undefined;
@@ -11,6 +11,9 @@ import { outputFormatSelector } from '../../output-formatter/outputFormatSelecto
11
11
  import { configs } from '../configs/configs.js';
12
12
  let nosana;
13
13
  let nosBalance, solBalance;
14
+ export function setSDKInstance(instance) {
15
+ nosana = instance;
16
+ }
14
17
  export async function setSDK(network, rpc, market, keyfile, options) {
15
18
  const envConfig = configs();
16
19
  const formatter = outputFormatSelector(options.format);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.0.11",
3
+ "version": "1.0.12-rc",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@nosana/node",
9
- "version": "1.0.11",
9
+ "version": "1.0.12-rc",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@coral-xyz/anchor": "^0.28.1-beta.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.0.11",
3
+ "version": "1.0.12-rc",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"