@zebec-network/zebec-stream-sdk 1.7.0 → 1.7.1
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/providers.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Address, AnchorProvider
|
|
2
|
-
import { ConfirmOptions, PublicKey } from "@solana/web3.js";
|
|
1
|
+
import { Address, AnchorProvider } from "@coral-xyz/anchor";
|
|
2
|
+
import { ConfirmOptions, Connection, PublicKey, Transaction, VersionedTransaction } from "@solana/web3.js";
|
|
3
3
|
export declare class ReadonlyProvider {
|
|
4
|
-
readonly connection:
|
|
4
|
+
readonly connection: Connection;
|
|
5
5
|
readonly walletAddress?: PublicKey;
|
|
6
|
-
constructor(connection:
|
|
6
|
+
constructor(connection: Connection, walletAddress?: Address);
|
|
7
7
|
}
|
|
8
|
-
export declare function createReadonlyProvider(connection:
|
|
8
|
+
export declare function createReadonlyProvider(connection: Connection, walletAddress?: Address): ReadonlyProvider;
|
|
9
9
|
/**
|
|
10
10
|
* Wallet interface used by Anchor Framework
|
|
11
11
|
*/
|
|
12
12
|
export interface AnchorWallet {
|
|
13
|
-
signTransaction: <T extends
|
|
14
|
-
signAllTransactions: <T extends
|
|
13
|
+
signTransaction: <T extends Transaction | VersionedTransaction>(tx: T) => Promise<T>;
|
|
14
|
+
signAllTransactions: <T extends Transaction | VersionedTransaction>(txs: T[]) => Promise<T[]>;
|
|
15
15
|
publicKey: PublicKey;
|
|
16
16
|
}
|
|
17
|
-
export declare function createAnchorProvider(connection:
|
|
17
|
+
export declare function createAnchorProvider(connection: Connection, wallet: AnchorWallet, options?: ConfirmOptions): AnchorProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Address, BN, Program, Provider
|
|
2
|
-
import { Commitment, Keypair, PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
1
|
+
import { Address, BN, Program, Provider } from "@coral-xyz/anchor";
|
|
2
|
+
import { Commitment, Connection, Keypair, PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
3
3
|
import { TransactionPayload } from "@zebec-network/solana-common";
|
|
4
4
|
import { ZebecStreamIdl } from "../artifacts";
|
|
5
5
|
import { Numeric, StreamConfigInfo, StreamMetadataInfo, TokenMetadata } from "../types";
|
|
@@ -10,7 +10,7 @@ export declare class ZebecStreamService {
|
|
|
10
10
|
constructor(provider: Provider, network: "mainnet-beta" | "devnet", program: Program<ZebecStreamIdl>);
|
|
11
11
|
static create(provider: Provider, network: "mainnet-beta" | "devnet"): ZebecStreamService;
|
|
12
12
|
private _createPayload;
|
|
13
|
-
get connection():
|
|
13
|
+
get connection(): Connection;
|
|
14
14
|
get programId(): PublicKey;
|
|
15
15
|
getInitializeStreamConfigInstruction(admin: PublicKey, config: {
|
|
16
16
|
baseFee: BN;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zebec-network/zebec-stream-sdk",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "This is an SDK for interacting with ZEBEC Stream Program in solana",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@metaplex-foundation/umi-bundle-defaults": "^1.4.1",
|
|
37
37
|
"@metaplex-foundation/umi-web3js-adapters": "^1.4.1",
|
|
38
38
|
"@solana/spl-token": "^0.4.14",
|
|
39
|
-
"@solana/web3.js": "
|
|
39
|
+
"@solana/web3.js": "1.98.2",
|
|
40
40
|
"@zebec-network/core-utils": "^1.1.1",
|
|
41
41
|
"@zebec-network/solana-common": "^2.1.1",
|
|
42
42
|
"bignumber.js": "^9.3.1"
|