2.4.0 • Published 1 month ago
circuscasino-sdk v2.4.0
circus-casino-dev-sdk
Installation
yarn add circus-casino-dev-sdk
Global
Load SDK wrappers
import { CircusCasinoSDK, AdminWrapper } from "circus-casino-dev-sdk";
import { SolanaProvider } from "@saberhq/solana-contrib";
const wallet = useWallet();
const { connection } = useConnection();
const provider = SolanaProvider.init({
connection,
wallet: wallet as any,
opts: {
preflightCommitment: "confirmed",
commitment: "confirmed",
},
});
const circusCasinoSDK = CircusCasinoSDK.load({ provider });
const adminWrapper = new AdminWrapper(circusCasinoSDK, wallet.publickKey.toString()); // wallet.publickKey should be String
Get global states - admin wrapper
let info = await adminWrapper.getGlobalInfo();
Bot
import { CircusCasinoSDK, BotWrapper } from "circus-casino-dev-sdk";
import { SolanaProvider } from "@saberhq/solana-contrib";
const wallet = useWallet();
const { connection } = useConnection();
const provider = SolanaProvider.init({
connection,
wallet: wallet as any,
opts: {
preflightCommitment: "confirmed",
commitment: "confirmed",
},
});
const circusCasinoSDK = CircusCasinoSDK.load({ provider });
const botWrapper = new BotWrapper(circusCasinoSDK, wallet.publickKey.toString()); // wallet.publickKey should be String
User
import { CircusCasinoSDK, UserWrapper } from "circus-casino-dev-sdk";
import { SolanaProvider } from "@saberhq/solana-contrib";
const wallet = useWallet();
const { connection } = useConnection();
const provider = SolanaProvider.init({
connection,
wallet: wallet as any,
opts: {
preflightCommitment: "confirmed",
commitment: "confirmed",
},
});
const circusCasinoSDK = CircusCasinoSDK.load({ provider });
const userWrapper = new UserWrapper(circusCasinoSDK, wallet.publickKey.toString()); // wallet.publickKey should be String
2.4.0
1 month ago
2.3.0
5 months ago
2.2.1
5 months ago
2.3.1
5 months ago
2.2.2
5 months ago
2.2.0
5 months ago
2.1.1
5 months ago
2.1.0
5 months ago
2.0.1
6 months ago
1.0.3
6 months ago
2.0.0
6 months ago
1.0.2
7 months ago
1.0.1
7 months ago
1.0.0
8 months ago
0.2.15
9 months ago
0.2.14
9 months ago
0.1.10
10 months ago
0.1.11
10 months ago
0.1.12
10 months ago
0.2.13
9 months ago
0.2.12
9 months ago
0.2.11
9 months ago
0.2.10
9 months ago
0.2.1
10 months ago
0.2.0
10 months ago
0.2.7
9 months ago
0.2.6
9 months ago
0.2.9
9 months ago
0.2.8
9 months ago
0.2.3
9 months ago
0.2.2
9 months ago
0.2.5
9 months ago
0.2.4
9 months ago
0.1.8
10 months ago
0.1.7
10 months ago
0.1.9
10 months ago
0.1.4
10 months ago
0.1.6
10 months ago
0.1.5
10 months ago
0.1.3
10 months ago
0.1.2
10 months ago
0.1.1
10 months ago
0.1.0
10 months ago