@audius/sdk 0.0.36 → 0.0.37

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.
@@ -1,6 +1,5 @@
1
1
  /// <reference types="node" />
2
- import * as solanaWeb3 from '@solana/web3.js';
3
- import { Connection, Keypair, PublicKey } from '@solana/web3.js';
2
+ import solanaWeb3, { Connection, Keypair, PublicKey } from '@solana/web3.js';
4
3
  import type BN from 'bn.js';
5
4
  import splToken from '@solana/spl-token';
6
5
  import anchor, { Address, Idl, Program } from '@project-serum/anchor';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@audius/sdk",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "audius": {
5
- "releaseSHA": "6d1ca16dfb4944e5e5b83ee30e302fa4e6811da4"
5
+ "releaseSHA": "ce81e1601506bb4982a2d5617ecf220bc94ba76d"
6
6
  },
7
7
  "description": "",
8
8
  "main": "dist/index.cjs.js",
@@ -45,7 +45,7 @@
45
45
  "@improbable-eng/grpc-web-node-http-transport": "0.15.0",
46
46
  "@project-serum/anchor": "0.24.1",
47
47
  "@solana/spl-token": "0.1.8",
48
- "@solana/web3.js": "1.53.0",
48
+ "@solana/web3.js": "1.37.1",
49
49
  "abi-decoder": "2.4.0",
50
50
  "ajv": "6.12.2",
51
51
  "async-retry": "1.3.1",
@@ -1,5 +1,4 @@
1
- import * as solanaWeb3 from '@solana/web3.js'
2
- import { Connection, Keypair, PublicKey } from '@solana/web3.js'
1
+ import solanaWeb3, { Connection, Keypair, PublicKey } from '@solana/web3.js'
3
2
  import type BN from 'bn.js'
4
3
  import splToken from '@solana/spl-token'
5
4
  import anchor, { Address, Idl, Program, Wallet } from '@project-serum/anchor'
@@ -1,5 +1,4 @@
1
1
  import type { Hedgehog } from '@audius/hedgehog'
2
- import { Keypair } from '@solana/web3.js'
3
2
  import type { EthContracts } from '../ethContracts'
4
3
  import type { ContractReceipt } from 'ethers'
5
4
  import type { EthWeb3Manager } from '../ethWeb3Manager'
@@ -270,9 +269,10 @@ export class Wormhole {
270
269
  const wAudioAmount = wAudioFromWeiAudio(amount)
271
270
  // Generate a solana keypair derived from the hedgehog private key
272
271
  // NOTE: The into to fromSeed is a 32 bytes Uint8Array
273
- const rootSolanaAccount = Keypair.fromSeed(
274
- this.hedgehog.wallet?.getPrivateKey() as Uint8Array
275
- )
272
+ const rootSolanaAccount =
273
+ this.solanaWeb3Manager.solanaWeb3.Keypair.fromSeed(
274
+ this.hedgehog.wallet?.getPrivateKey() as Uint8Array
275
+ )
276
276
 
277
277
  const solanaAddress = rootSolanaAccount.publicKey.toString()
278
278
  logs.push(`Root Solana Account: ${solanaAddress}`)