@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.
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.js +6 -6
- package/dist/legacy.js.map +1 -1
- package/dist/native-libs.js +4 -5
- package/dist/native-libs.js.map +1 -1
- package/dist/services/solana/SolanaWeb3Manager.d.ts +1 -2
- package/package.json +3 -3
- package/src/services/solana/SolanaWeb3Manager.ts +1 -2
- package/src/services/wormhole/Wormhole.ts +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -22,8 +22,7 @@ import { Transaction } from 'ethereumjs-tx';
|
|
|
22
22
|
import * as AudiusData from '@audius/anchor-audius-data';
|
|
23
23
|
import { idl } from '@audius/anchor-audius-data';
|
|
24
24
|
import anchor, { ProgramError, BN as BN$1 } from '@project-serum/anchor';
|
|
25
|
-
import
|
|
26
|
-
import { PublicKey, SYSVAR_RENT_PUBKEY, SYSVAR_INSTRUCTIONS_PUBKEY, SystemProgram, Secp256k1Program, TransactionInstruction, Keypair, Transaction as Transaction$1, Connection } from '@solana/web3.js';
|
|
25
|
+
import solanaWeb3, { PublicKey, SYSVAR_RENT_PUBKEY, SYSVAR_INSTRUCTIONS_PUBKEY, SystemProgram, Secp256k1Program, TransactionInstruction, Keypair, Transaction as Transaction$1, Connection } from '@solana/web3.js';
|
|
27
26
|
import splToken, { ASSOCIATED_TOKEN_PROGRAM_ID, Token, TOKEN_PROGRAM_ID } from '@solana/spl-token';
|
|
28
27
|
import borsh from 'borsh';
|
|
29
28
|
import BN from 'bn.js';
|
|
@@ -33410,9 +33409,9 @@ var formatProviders = function formatProviders(providers) {
|
|
|
33410
33409
|
};
|
|
33411
33410
|
|
|
33412
33411
|
var name = "@audius/sdk";
|
|
33413
|
-
var version = "0.0.
|
|
33412
|
+
var version = "0.0.37";
|
|
33414
33413
|
var audius = {
|
|
33415
|
-
releaseSHA: "
|
|
33414
|
+
releaseSHA: "ce81e1601506bb4982a2d5617ecf220bc94ba76d"
|
|
33416
33415
|
};
|
|
33417
33416
|
var description = "";
|
|
33418
33417
|
var main = "dist/index.cjs.js";
|
|
@@ -33455,7 +33454,7 @@ var dependencies = {
|
|
|
33455
33454
|
"@improbable-eng/grpc-web-node-http-transport": "0.15.0",
|
|
33456
33455
|
"@project-serum/anchor": "0.24.1",
|
|
33457
33456
|
"@solana/spl-token": "0.1.8",
|
|
33458
|
-
"@solana/web3.js": "1.
|
|
33457
|
+
"@solana/web3.js": "1.37.1",
|
|
33459
33458
|
"abi-decoder": "2.4.0",
|
|
33460
33459
|
ajv: "6.12.2",
|
|
33461
33460
|
"async-retry": "1.3.1",
|
|
@@ -50229,7 +50228,7 @@ var Wormhole = /*#__PURE__*/function () {
|
|
|
50229
50228
|
wAudioAmount = wAudioFromWeiAudio(amount); // Generate a solana keypair derived from the hedgehog private key
|
|
50230
50229
|
// NOTE: The into to fromSeed is a 32 bytes Uint8Array
|
|
50231
50230
|
|
|
50232
|
-
rootSolanaAccount = Keypair.fromSeed((_this$hedgehog$wallet = this.hedgehog.wallet) === null || _this$hedgehog$wallet === void 0 ? void 0 : _this$hedgehog$wallet.getPrivateKey());
|
|
50231
|
+
rootSolanaAccount = this.solanaWeb3Manager.solanaWeb3.Keypair.fromSeed((_this$hedgehog$wallet = this.hedgehog.wallet) === null || _this$hedgehog$wallet === void 0 ? void 0 : _this$hedgehog$wallet.getPrivateKey());
|
|
50233
50232
|
solanaAddress = rootSolanaAccount.publicKey.toString();
|
|
50234
50233
|
logs.push("Root Solana Account: ".concat(solanaAddress)); // Find the token account owned by the root solana account and get the token account's info
|
|
50235
50234
|
|