@suigar/sdk 2.0.0-beta.14 → 2.0.0-beta.16
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/CHANGELOG.md +14 -0
- package/README.md +22 -8
- package/dist/client.d.mts +258 -0
- package/dist/client.d.mts.map +1 -0
- package/dist/client.mjs +291 -0
- package/dist/client.mjs.map +1 -0
- package/dist/configs/package.mainnet.mjs +23 -0
- package/dist/configs/package.mainnet.mjs.map +1 -0
- package/dist/configs/package.mjs +19 -0
- package/dist/configs/package.mjs.map +1 -0
- package/dist/configs/package.testnet.mjs +23 -0
- package/dist/configs/package.testnet.mjs.map +1 -0
- package/dist/configs/registry.mainnet.mjs +6 -0
- package/dist/configs/registry.mainnet.mjs.map +1 -0
- package/dist/configs/registry.mjs +11 -0
- package/dist/configs/registry.mjs.map +1 -0
- package/dist/configs/registry.testnet.mjs +6 -0
- package/dist/configs/registry.testnet.mjs.map +1 -0
- package/dist/contracts/coinflip/coinflip.mjs +46 -0
- package/dist/contracts/coinflip/coinflip.mjs.map +1 -0
- package/dist/contracts/core/core.d.mts +55 -0
- package/dist/contracts/core/core.d.mts.map +1 -0
- package/dist/contracts/core/core.mjs +22 -0
- package/dist/contracts/core/core.mjs.map +1 -0
- package/dist/contracts/core/deps/0x0000000000000000000000000000000000000000000000000000000000000001/type_name.mjs +10 -0
- package/dist/contracts/core/deps/0x0000000000000000000000000000000000000000000000000000000000000001/type_name.mjs.map +1 -0
- package/dist/contracts/core/deps/0x0000000000000000000000000000000000000000000000000000000000000002/vec_map.mjs +26 -0
- package/dist/contracts/core/deps/0x0000000000000000000000000000000000000000000000000000000000000002/vec_map.mjs.map +1 -0
- package/dist/contracts/core/float.d.mts +14 -0
- package/dist/contracts/core/float.d.mts.map +1 -0
- package/dist/contracts/core/float.mjs +15 -0
- package/dist/contracts/core/float.mjs.map +1 -0
- package/dist/contracts/core/i64.mjs +10 -0
- package/dist/contracts/core/i64.mjs.map +1 -0
- package/dist/contracts/limbo/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/float.mjs +15 -0
- package/dist/contracts/limbo/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/float.mjs.map +1 -0
- package/dist/contracts/limbo/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/i64.mjs +10 -0
- package/dist/contracts/limbo/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/i64.mjs.map +1 -0
- package/dist/contracts/limbo/limbo.mjs +53 -0
- package/dist/contracts/limbo/limbo.mjs.map +1 -0
- package/dist/contracts/plinko/deps/0x0000000000000000000000000000000000000000000000000000000000000002/vec_map.mjs +26 -0
- package/dist/contracts/plinko/deps/0x0000000000000000000000000000000000000000000000000000000000000002/vec_map.mjs.map +1 -0
- package/dist/contracts/plinko/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/float.mjs +15 -0
- package/dist/contracts/plinko/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/float.mjs.map +1 -0
- package/dist/contracts/plinko/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/i64.mjs +10 -0
- package/dist/contracts/plinko/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/i64.mjs.map +1 -0
- package/dist/contracts/plinko/plinko.mjs +59 -0
- package/dist/contracts/plinko/plinko.mjs.map +1 -0
- package/dist/contracts/pvp-coinflip/deps/0x0000000000000000000000000000000000000000000000000000000000000001/type_name.mjs +10 -0
- package/dist/contracts/pvp-coinflip/deps/0x0000000000000000000000000000000000000000000000000000000000000001/type_name.mjs.map +1 -0
- package/dist/contracts/pvp-coinflip/deps/0x0000000000000000000000000000000000000000000000000000000000000002/balance.mjs +10 -0
- package/dist/contracts/pvp-coinflip/deps/0x0000000000000000000000000000000000000000000000000000000000000002/balance.mjs.map +1 -0
- package/dist/contracts/pvp-coinflip/deps/0x0000000000000000000000000000000000000000000000000000000000000002/vec_map.mjs +26 -0
- package/dist/contracts/pvp-coinflip/deps/0x0000000000000000000000000000000000000000000000000000000000000002/vec_map.mjs.map +1 -0
- package/dist/contracts/pvp-coinflip/pvp_coinflip.d.mts +34 -0
- package/dist/contracts/pvp-coinflip/pvp_coinflip.d.mts.map +1 -0
- package/dist/contracts/pvp-coinflip/pvp_coinflip.mjs +131 -0
- package/dist/contracts/pvp-coinflip/pvp_coinflip.mjs.map +1 -0
- package/dist/contracts/range/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/float.mjs +15 -0
- package/dist/contracts/range/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/float.mjs.map +1 -0
- package/dist/contracts/range/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/i64.mjs +10 -0
- package/dist/contracts/range/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/i64.mjs.map +1 -0
- package/dist/contracts/range/range.mjs +53 -0
- package/dist/contracts/range/range.mjs.map +1 -0
- package/dist/contracts/utils/index.d.mts +33 -0
- package/dist/contracts/utils/index.d.mts.map +1 -0
- package/dist/contracts/utils/index.mjs +119 -0
- package/dist/contracts/utils/index.mjs.map +1 -0
- package/dist/contracts/wheel/deps/0x0000000000000000000000000000000000000000000000000000000000000002/vec_map.mjs +26 -0
- package/dist/contracts/wheel/deps/0x0000000000000000000000000000000000000000000000000000000000000002/vec_map.mjs.map +1 -0
- package/dist/contracts/wheel/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/float.mjs +15 -0
- package/dist/contracts/wheel/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/float.mjs.map +1 -0
- package/dist/contracts/wheel/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/i64.mjs +10 -0
- package/dist/contracts/wheel/deps/0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc/i64.mjs.map +1 -0
- package/dist/contracts/wheel/wheel.mjs +59 -0
- package/dist/contracts/wheel/wheel.mjs.map +1 -0
- package/dist/games.d.mts +3 -0
- package/dist/games.mjs +1 -0
- package/dist/helpers/config.mjs +51 -0
- package/dist/helpers/config.mjs.map +1 -0
- package/dist/helpers/game-settings.mjs +19 -0
- package/dist/helpers/game-settings.mjs.map +1 -0
- package/dist/helpers/metadata.mjs +42 -0
- package/dist/helpers/metadata.mjs.map +1 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +2 -0
- package/dist/transactions/coinflip.mjs +27 -0
- package/dist/transactions/coinflip.mjs.map +1 -0
- package/dist/transactions/limbo.mjs +31 -0
- package/dist/transactions/limbo.mjs.map +1 -0
- package/dist/transactions/plinko.mjs +29 -0
- package/dist/transactions/plinko.mjs.map +1 -0
- package/dist/transactions/pvp-coinflip.mjs +70 -0
- package/dist/transactions/pvp-coinflip.mjs.map +1 -0
- package/dist/transactions/range.mjs +33 -0
- package/dist/transactions/range.mjs.map +1 -0
- package/dist/transactions/shared.mjs +49 -0
- package/dist/transactions/shared.mjs.map +1 -0
- package/dist/transactions/wheel.mjs +29 -0
- package/dist/transactions/wheel.mjs.map +1 -0
- package/dist/ttl-cache.mjs +60 -0
- package/dist/ttl-cache.mjs.map +1 -0
- package/dist/types/bet-metadata.type.d.mts +7 -0
- package/dist/types/bet-metadata.type.d.mts.map +1 -0
- package/dist/types/build-game-transaction-options.type.d.mts +9 -0
- package/dist/types/build-game-transaction-options.type.d.mts.map +1 -0
- package/dist/types/game-details.type.d.mts +73 -0
- package/dist/types/game-details.type.d.mts.map +1 -0
- package/dist/types/game-details.type.mjs +59 -0
- package/dist/types/game-details.type.mjs.map +1 -0
- package/dist/types/game-settings.type.d.mts +201 -0
- package/dist/types/game-settings.type.d.mts.map +1 -0
- package/dist/types/game-settings.type.mjs +37 -0
- package/dist/types/game-settings.type.mjs.map +1 -0
- package/dist/types/game.type.d.mts +15 -0
- package/dist/types/game.type.d.mts.map +1 -0
- package/dist/types/game.type.mjs +19 -0
- package/dist/types/game.type.mjs.map +1 -0
- package/dist/types/index.d.mts +7 -0
- package/dist/types/move-float.type.d.mts +7 -0
- package/dist/types/move-float.type.d.mts.map +1 -0
- package/dist/types/network.type.d.mts +1 -0
- package/dist/types/network.type.mjs +6 -0
- package/dist/types/network.type.mjs.map +1 -0
- package/dist/types/suigar-config.type.d.mts +33 -0
- package/dist/types/suigar-config.type.d.mts.map +1 -0
- package/dist/types/transaction-options.type.d.mts +63 -0
- package/dist/types/transaction-options.type.d.mts.map +1 -0
- package/dist/utils/constants.d.mts +8 -0
- package/dist/utils/constants.d.mts.map +1 -0
- package/dist/utils/constants.mjs +10 -0
- package/dist/utils/constants.mjs.map +1 -0
- package/dist/utils/numeric.d.mts +86 -0
- package/dist/utils/numeric.d.mts.map +1 -0
- package/dist/utils/numeric.mjs +148 -0
- package/dist/utils/numeric.mjs.map +1 -0
- package/dist/utils/parser.d.mts +54 -0
- package/dist/utils/parser.d.mts.map +1 -0
- package/dist/utils/parser.mjs +94 -0
- package/dist/utils/parser.mjs.map +1 -0
- package/dist/utils.d.mts +4 -0
- package/dist/utils.mjs +4 -0
- package/package.json +21 -22
- package/dist/chunk-7N55D2TV.js +0 -343
- package/dist/games-Da2uZvVJ.d.cts +0 -98
- package/dist/games-Da2uZvVJ.d.ts +0 -98
- package/dist/games.cjs +0 -2
- package/dist/games.d.cts +0 -2
- package/dist/games.d.ts +0 -2
- package/dist/games.js +0 -1
- package/dist/index-3P_LBbDM.d.cts +0 -25
- package/dist/index-3P_LBbDM.d.ts +0 -25
- package/dist/index.cjs +0 -1692
- package/dist/index.d.cts +0 -467
- package/dist/index.d.ts +0 -467
- package/dist/index.js +0 -1470
- package/dist/utils.cjs +0 -243
- package/dist/utils.d.cts +0 -180
- package/dist/utils.d.ts +0 -180
- package/dist/utils.js +0 -1
package/dist/index.d.cts
DELETED
|
@@ -1,467 +0,0 @@
|
|
|
1
|
-
import { M as MoveStruct } from './index-3P_LBbDM.cjs';
|
|
2
|
-
import * as _mysten_bcs from '@mysten/bcs';
|
|
3
|
-
import { SuiClientTypes, ClientWithCoreApi } from '@mysten/sui/client';
|
|
4
|
-
import { Transaction, BuildTransactionOptions } from '@mysten/sui/transactions';
|
|
5
|
-
import { S as StandardGame, B as BuildCoinflipTransactionOptions, a as BuildWheelTransactionOptions, b as BuildLimboTransactionOptions, c as BuildPlinkoTransactionOptions, d as BuildRangeTransactionOptions, G as Game$1, e as SuigarConfig, W as WithThrowOnError, P as PvPCoinflipAction, f as BuildPvPCoinflipTransactionOptions, g as SuigarExtensionOptions } from './games-Da2uZvVJ.cjs';
|
|
6
|
-
import '@mysten/sui/bcs';
|
|
7
|
-
|
|
8
|
-
declare const Game: MoveStruct<{
|
|
9
|
-
id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
-
creator: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
-
creator_is_tails: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
12
|
-
is_private: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
13
|
-
creator_metadata: MoveStruct<{
|
|
14
|
-
contents: _mysten_bcs.BcsType<{
|
|
15
|
-
key: string;
|
|
16
|
-
value: number[];
|
|
17
|
-
}[], Iterable<{
|
|
18
|
-
key: string;
|
|
19
|
-
value: Iterable<number> & {
|
|
20
|
-
length: number;
|
|
21
|
-
};
|
|
22
|
-
}> & {
|
|
23
|
-
length: number;
|
|
24
|
-
}, string>;
|
|
25
|
-
}, "0x2::vec_map::VecMap<string, vector<u8>>">;
|
|
26
|
-
joiner: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
27
|
-
winner: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
28
|
-
stake_per_player: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
29
|
-
house_edge_bps: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
30
|
-
stake_pot: MoveStruct<{
|
|
31
|
-
value: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
32
|
-
}, "0x2::balance::Balance<phantom T0>">;
|
|
33
|
-
}, "0xb43cf6583c0c15315c7e66f173af4be79ac40c38aad1fd92ec08638ab2026202::pvp_coinflip::Game<phantom T0>">;
|
|
34
|
-
|
|
35
|
-
type WithoutConfig<T> = Omit<T, 'config'>;
|
|
36
|
-
type BuildGameOptions<GameId extends StandardGame> = GameId extends 'coinflip' ? WithoutConfig<BuildCoinflipTransactionOptions> : GameId extends 'wheel' ? WithoutConfig<BuildWheelTransactionOptions> : GameId extends 'limbo' ? WithoutConfig<BuildLimboTransactionOptions> : GameId extends 'plinko' ? WithoutConfig<BuildPlinkoTransactionOptions> : GameId extends 'range' ? WithoutConfig<BuildRangeTransactionOptions> : never;
|
|
37
|
-
|
|
38
|
-
declare const GAME_SETTINGS: {
|
|
39
|
-
readonly coinflip: {
|
|
40
|
-
readonly settingsKey: MoveStruct<{
|
|
41
|
-
dummy_field: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
42
|
-
}, "0xb35c5f286c443752afc8ccb40125a578a4f32df35617170ccfa17fe180ab80ea::coinflip::CoinFlipSettingsKey">;
|
|
43
|
-
readonly parameters: MoveStruct<{
|
|
44
|
-
id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
45
|
-
house_edge: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
46
|
-
min_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
47
|
-
max_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
48
|
-
}, "0xb35c5f286c443752afc8ccb40125a578a4f32df35617170ccfa17fe180ab80ea::coinflip::Parameters<phantom T0>">;
|
|
49
|
-
};
|
|
50
|
-
readonly limbo: {
|
|
51
|
-
readonly settingsKey: MoveStruct<{
|
|
52
|
-
dummy_field: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
53
|
-
}, "0x96c7841b9b32c59a219760fd656f1c3aceb53cc74a68ec9844a3a696374309f4::limbo::LimboSettingsKey">;
|
|
54
|
-
readonly parameters: MoveStruct<{
|
|
55
|
-
id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
56
|
-
min_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
57
|
-
max_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
58
|
-
max_payout: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
59
|
-
min_target_multiplier: MoveStruct<{
|
|
60
|
-
is_negative: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
61
|
-
exp: MoveStruct<{
|
|
62
|
-
bits: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
63
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::i64::I64">;
|
|
64
|
-
mant: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
65
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::float::Float">;
|
|
66
|
-
max_target_multiplier: MoveStruct<{
|
|
67
|
-
is_negative: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
68
|
-
exp: MoveStruct<{
|
|
69
|
-
bits: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
70
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::i64::I64">;
|
|
71
|
-
mant: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
72
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::float::Float">;
|
|
73
|
-
max_number_of_games: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
74
|
-
min_rtp: MoveStruct<{
|
|
75
|
-
is_negative: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
76
|
-
exp: MoveStruct<{
|
|
77
|
-
bits: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
78
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::i64::I64">;
|
|
79
|
-
mant: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
80
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::float::Float">;
|
|
81
|
-
max_rtp: MoveStruct<{
|
|
82
|
-
is_negative: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
83
|
-
exp: MoveStruct<{
|
|
84
|
-
bits: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
85
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::i64::I64">;
|
|
86
|
-
mant: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
87
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::float::Float">;
|
|
88
|
-
}, "0x96c7841b9b32c59a219760fd656f1c3aceb53cc74a68ec9844a3a696374309f4::limbo::Parameters<phantom T0>">;
|
|
89
|
-
};
|
|
90
|
-
readonly plinko: {
|
|
91
|
-
readonly settingsKey: MoveStruct<{
|
|
92
|
-
dummy_field: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
93
|
-
}, "0xd3dd2200883af10811724f0bed97591ad155a02efd6332d471ff8b346030dfb7::plinko::PlinkoSettingsKey">;
|
|
94
|
-
readonly parameters: MoveStruct<{
|
|
95
|
-
id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
96
|
-
min_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
97
|
-
max_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
98
|
-
max_number_of_balls: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
99
|
-
configs: MoveStruct<{
|
|
100
|
-
contents: _mysten_bcs.BcsType<{
|
|
101
|
-
key: number;
|
|
102
|
-
value: {
|
|
103
|
-
num_rows: number;
|
|
104
|
-
multipliers: {
|
|
105
|
-
is_negative: boolean;
|
|
106
|
-
exp: {
|
|
107
|
-
bits: string;
|
|
108
|
-
};
|
|
109
|
-
mant: string;
|
|
110
|
-
}[];
|
|
111
|
-
min_stake: string;
|
|
112
|
-
max_stake: string;
|
|
113
|
-
is_playable: boolean;
|
|
114
|
-
};
|
|
115
|
-
}[], Iterable<{
|
|
116
|
-
key: number;
|
|
117
|
-
value: {
|
|
118
|
-
num_rows: number;
|
|
119
|
-
multipliers: Iterable<{
|
|
120
|
-
is_negative: boolean;
|
|
121
|
-
exp: {
|
|
122
|
-
bits: string | number | bigint;
|
|
123
|
-
};
|
|
124
|
-
mant: string | number | bigint;
|
|
125
|
-
}> & {
|
|
126
|
-
length: number;
|
|
127
|
-
};
|
|
128
|
-
min_stake: string | number | bigint;
|
|
129
|
-
max_stake: string | number | bigint;
|
|
130
|
-
is_playable: boolean;
|
|
131
|
-
};
|
|
132
|
-
}> & {
|
|
133
|
-
length: number;
|
|
134
|
-
}, string>;
|
|
135
|
-
}, "0x2::vec_map::VecMap<u8, 0xd3dd2200883af10811724f0bed97591ad155a02efd6332d471ff8b346030dfb7::plinko::PlinkoConfig>">;
|
|
136
|
-
}, "0xd3dd2200883af10811724f0bed97591ad155a02efd6332d471ff8b346030dfb7::plinko::Parameters<phantom T0>">;
|
|
137
|
-
};
|
|
138
|
-
readonly 'pvp-coinflip': {
|
|
139
|
-
readonly settingsKey: MoveStruct<{
|
|
140
|
-
dummy_field: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
141
|
-
}, "0xb43cf6583c0c15315c7e66f173af4be79ac40c38aad1fd92ec08638ab2026202::pvp_coinflip::PvpCoinflipSettingsKey">;
|
|
142
|
-
readonly parameters: MoveStruct<{
|
|
143
|
-
id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
144
|
-
house_edge_bps: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
145
|
-
min_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
146
|
-
}, "0xb43cf6583c0c15315c7e66f173af4be79ac40c38aad1fd92ec08638ab2026202::pvp_coinflip::Parameters<phantom T0>">;
|
|
147
|
-
};
|
|
148
|
-
readonly range: {
|
|
149
|
-
readonly settingsKey: MoveStruct<{
|
|
150
|
-
dummy_field: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
151
|
-
}, "0x096a4cf18b3661e76b2c62b90785418345d52f45b272448794f123a4cb6b6416::range::RangeSettingsKey">;
|
|
152
|
-
readonly parameters: MoveStruct<{
|
|
153
|
-
id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
154
|
-
min_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
155
|
-
max_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
156
|
-
min_zone_size: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
157
|
-
max_zone_size: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
158
|
-
max_number_of_games: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
159
|
-
min_rtp: MoveStruct<{
|
|
160
|
-
is_negative: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
161
|
-
exp: MoveStruct<{
|
|
162
|
-
bits: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
163
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::i64::I64">;
|
|
164
|
-
mant: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
165
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::float::Float">;
|
|
166
|
-
max_rtp: MoveStruct<{
|
|
167
|
-
is_negative: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
168
|
-
exp: MoveStruct<{
|
|
169
|
-
bits: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
170
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::i64::I64">;
|
|
171
|
-
mant: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
172
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::float::Float">;
|
|
173
|
-
}, "0x096a4cf18b3661e76b2c62b90785418345d52f45b272448794f123a4cb6b6416::range::Parameters<phantom T0>">;
|
|
174
|
-
};
|
|
175
|
-
readonly wheel: {
|
|
176
|
-
readonly settingsKey: MoveStruct<{
|
|
177
|
-
dummy_field: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
178
|
-
}, "0x0997852ded7e13301c42317004bc49704a893aa82997c5706cebee59053a31b7::wheel::WheelSettingsKey">;
|
|
179
|
-
readonly parameters: MoveStruct<{
|
|
180
|
-
id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
181
|
-
min_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
182
|
-
max_stake: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
183
|
-
max_number_of_spins: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
184
|
-
configs: MoveStruct<{
|
|
185
|
-
contents: _mysten_bcs.BcsType<{
|
|
186
|
-
key: number;
|
|
187
|
-
value: {
|
|
188
|
-
num_cases: number;
|
|
189
|
-
multipliers: {
|
|
190
|
-
is_negative: boolean;
|
|
191
|
-
exp: {
|
|
192
|
-
bits: string;
|
|
193
|
-
};
|
|
194
|
-
mant: string;
|
|
195
|
-
}[];
|
|
196
|
-
min_stake: string;
|
|
197
|
-
max_stake: string;
|
|
198
|
-
is_playable: boolean;
|
|
199
|
-
};
|
|
200
|
-
}[], Iterable<{
|
|
201
|
-
key: number;
|
|
202
|
-
value: {
|
|
203
|
-
num_cases: number;
|
|
204
|
-
multipliers: Iterable<{
|
|
205
|
-
is_negative: boolean;
|
|
206
|
-
exp: {
|
|
207
|
-
bits: string | number | bigint;
|
|
208
|
-
};
|
|
209
|
-
mant: string | number | bigint;
|
|
210
|
-
}> & {
|
|
211
|
-
length: number;
|
|
212
|
-
};
|
|
213
|
-
min_stake: string | number | bigint;
|
|
214
|
-
max_stake: string | number | bigint;
|
|
215
|
-
is_playable: boolean;
|
|
216
|
-
};
|
|
217
|
-
}> & {
|
|
218
|
-
length: number;
|
|
219
|
-
}, string>;
|
|
220
|
-
}, "0x2::vec_map::VecMap<u8, 0x0997852ded7e13301c42317004bc49704a893aa82997c5706cebee59053a31b7::wheel::WheelConfig>">;
|
|
221
|
-
}, "0x0997852ded7e13301c42317004bc49704a893aa82997c5706cebee59053a31b7::wheel::Parameters<phantom T0>">;
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
type GameParametersMap = {
|
|
225
|
-
[TGame in Game$1]: ReturnType<(typeof GAME_SETTINGS)[TGame]['parameters']['parse']>;
|
|
226
|
-
};
|
|
227
|
-
type GameParameters<TGame extends Game$1> = GameParametersMap[TGame];
|
|
228
|
-
type GetGameParametersOptions = SuiClientTypes.CoreClientMethodOptions & {
|
|
229
|
-
coinType?: string;
|
|
230
|
-
ignoreCache?: boolean;
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
declare function suigar<const Name = 'suigar'>({ name, partner, cacheTtl, }?: SuigarExtensionOptions<Name>): {
|
|
234
|
-
name: Name;
|
|
235
|
-
register: (client: ClientWithCoreApi) => SuigarClient;
|
|
236
|
-
};
|
|
237
|
-
declare class SuigarClient {
|
|
238
|
-
#private;
|
|
239
|
-
constructor({ client, name, partner, cacheTtl, }: {
|
|
240
|
-
client: ClientWithCoreApi;
|
|
241
|
-
name: string;
|
|
242
|
-
partner?: string;
|
|
243
|
-
cacheTtl?: number;
|
|
244
|
-
});
|
|
245
|
-
/**
|
|
246
|
-
* Returns the resolved SDK configuration for the connected network.
|
|
247
|
-
*
|
|
248
|
-
* This is primarily useful for debugging or inspecting which package ids,
|
|
249
|
-
* registry ids, supported coin types, and price info object ids the SDK
|
|
250
|
-
* resolved for the current client network.
|
|
251
|
-
*
|
|
252
|
-
* @returns Network-resolved Suigar configuration.
|
|
253
|
-
*/
|
|
254
|
-
getConfig(): SuigarConfig;
|
|
255
|
-
/**
|
|
256
|
-
* Builds a transaction with the configured Sui client and encodes the resulting BCS bytes as base64.
|
|
257
|
-
*
|
|
258
|
-
* Use this when an external wallet, API, or transport expects the built transaction payload as a base64 string
|
|
259
|
-
* instead of raw bytes. The SDK always injects the configured Sui client, so `options` accepts the standard
|
|
260
|
-
* transaction build options except for `client`.
|
|
261
|
-
*
|
|
262
|
-
* @param transaction Transaction to build and serialize.
|
|
263
|
-
* @param options Optional transaction build options forwarded to `transaction.build()`, excluding `client`.
|
|
264
|
-
* @returns Base64-encoded transaction bytes ready to send over the wire.
|
|
265
|
-
*/
|
|
266
|
-
serializeTransactionToBase64(transaction: Transaction, options?: Omit<BuildTransactionOptions, 'client'>): Promise<string>;
|
|
267
|
-
/**
|
|
268
|
-
* Reads on-chain game parameters for the requested game.
|
|
269
|
-
*
|
|
270
|
-
* The SDK first reads the selected game's settings object from SweetHouse,
|
|
271
|
-
* then reads that game's coin-specific `Parameters<T>` object. Results are
|
|
272
|
-
* cached according to the extension `cacheTtl` option. Pass
|
|
273
|
-
* `ignoreCache: true` to refresh the on-chain read and replace the cached
|
|
274
|
-
* value.
|
|
275
|
-
*
|
|
276
|
-
* @param game Game whose parameters should be loaded.
|
|
277
|
-
* @param options Optional coin type, cache override, and abort signal.
|
|
278
|
-
* @returns Parsed game parameters typed for the requested game.
|
|
279
|
-
*/
|
|
280
|
-
getGameParameters<TGame extends Game$1>(game: TGame, options?: GetGameParametersOptions): Promise<GameParameters<TGame>>;
|
|
281
|
-
/**
|
|
282
|
-
* Lists unresolved PvP coinflip games from the configured registry and resolves
|
|
283
|
-
* each entry into parsed on-chain game state.
|
|
284
|
-
*
|
|
285
|
-
* This fetches dynamic fields from the PvP coinflip registry object, then bulk
|
|
286
|
-
* loads the referenced game objects through `client.core.getObjects()`. Registry
|
|
287
|
-
* membership is the unresolved-state signal: when a game is joined and resolved,
|
|
288
|
-
* the Move flow removes it from the registry and deletes the live `Game` object.
|
|
289
|
-
* Use this when a product needs the current set of open PvP coinflip matches for
|
|
290
|
-
* browsing or lobby views.
|
|
291
|
-
*
|
|
292
|
-
* @param options Optional dynamic field pagination forwarded to `listDynamicFields()`, excluding `parentId`.
|
|
293
|
-
* Supported options such as `limit`, `cursor`, and `signal` are forwarded to the
|
|
294
|
-
* underlying lookup calls. Pass `throwOnError: true` to fail the whole lookup
|
|
295
|
-
* when any referenced game object cannot be fetched or parsed. By default,
|
|
296
|
-
* failed per-object lookups are skipped and only successfully parsed unresolved
|
|
297
|
-
* games are returned.
|
|
298
|
-
* @returns Parsed unresolved PvP coinflip game objects for the requested
|
|
299
|
-
* registry page. When `throwOnError` is `false`, entries that fail object fetch
|
|
300
|
-
* or parse are omitted from the returned array.
|
|
301
|
-
*/
|
|
302
|
-
getPvPCoinflipGames(options?: WithThrowOnError<Omit<SuiClientTypes.ListDynamicFieldsOptions, 'parentId'>>): Promise<((typeof Game)['$inferType'] & {
|
|
303
|
-
coinType: string;
|
|
304
|
-
})[]>;
|
|
305
|
-
/**
|
|
306
|
-
* BCS struct constructors for decoding on-chain objects and events related to Suigar games.
|
|
307
|
-
*
|
|
308
|
-
* These can be used to parse the `content` field of on-chain objects and events into structured data with the
|
|
309
|
-
* expected types. For example, use `client.suigar.bcs.PvPCoinflipGame.parse(object.content)` to decode a PvP
|
|
310
|
-
* coinflip game object.
|
|
311
|
-
*
|
|
312
|
-
* Note that these constructors are not meant for encoding transaction arguments, as the SDK's transaction
|
|
313
|
-
* builders handle argument serialization internally. Use these primarily for decoding and parsing on-chain data.
|
|
314
|
-
*/
|
|
315
|
-
bcs: {
|
|
316
|
-
/**
|
|
317
|
-
* Object representing the state of a PvP coinflip game, as stored on-chain.
|
|
318
|
-
*/
|
|
319
|
-
PvPCoinflipGame: MoveStruct<{
|
|
320
|
-
id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
321
|
-
creator: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
322
|
-
creator_is_tails: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
323
|
-
is_private: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
324
|
-
creator_metadata: MoveStruct<{
|
|
325
|
-
contents: _mysten_bcs.BcsType<{
|
|
326
|
-
key: string;
|
|
327
|
-
value: number[];
|
|
328
|
-
}[], Iterable<{
|
|
329
|
-
key: string;
|
|
330
|
-
value: Iterable<number> & {
|
|
331
|
-
length: number;
|
|
332
|
-
};
|
|
333
|
-
}> & {
|
|
334
|
-
length: number;
|
|
335
|
-
}, string>;
|
|
336
|
-
}, "0x2::vec_map::VecMap<string, vector<u8>>">;
|
|
337
|
-
joiner: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
338
|
-
winner: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
339
|
-
stake_per_player: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
340
|
-
house_edge_bps: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
341
|
-
stake_pot: MoveStruct<{
|
|
342
|
-
value: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
343
|
-
}, "0x2::balance::Balance<phantom T0>">;
|
|
344
|
-
}, "0xb43cf6583c0c15315c7e66f173af4be79ac40c38aad1fd92ec08638ab2026202::pvp_coinflip::Game<phantom T0>">;
|
|
345
|
-
/**
|
|
346
|
-
* Event emitted at the end of a standard game (e.g., Coinflip, Limbo), containing the result and payout information.
|
|
347
|
-
*/
|
|
348
|
-
BetResultEvent: MoveStruct<{
|
|
349
|
-
player: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
350
|
-
coin_type: MoveStruct<{
|
|
351
|
-
name: _mysten_bcs.BcsType<string, string, "string">;
|
|
352
|
-
}, "0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName">;
|
|
353
|
-
stake_amount: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
354
|
-
unsafe_oracle_usd_coin_price: MoveStruct<{
|
|
355
|
-
is_negative: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
356
|
-
exp: MoveStruct<{
|
|
357
|
-
bits: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
358
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::i64::I64">;
|
|
359
|
-
mant: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
360
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::float::Float">;
|
|
361
|
-
adjusted_oracle_usd_coin_price: MoveStruct<{
|
|
362
|
-
is_negative: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
363
|
-
exp: MoveStruct<{
|
|
364
|
-
bits: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
365
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::i64::I64">;
|
|
366
|
-
mant: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
367
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::float::Float">;
|
|
368
|
-
outcome_amount: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
369
|
-
game_details: MoveStruct<{
|
|
370
|
-
contents: _mysten_bcs.BcsType<{
|
|
371
|
-
key: string;
|
|
372
|
-
value: number[];
|
|
373
|
-
}[], Iterable<{
|
|
374
|
-
key: string;
|
|
375
|
-
value: Iterable<number> & {
|
|
376
|
-
length: number;
|
|
377
|
-
};
|
|
378
|
-
}> & {
|
|
379
|
-
length: number;
|
|
380
|
-
}, string>;
|
|
381
|
-
}, "0x2::vec_map::VecMap<string, vector<u8>>">;
|
|
382
|
-
metadata: MoveStruct<{
|
|
383
|
-
contents: _mysten_bcs.BcsType<{
|
|
384
|
-
key: string;
|
|
385
|
-
value: number[];
|
|
386
|
-
}[], Iterable<{
|
|
387
|
-
key: string;
|
|
388
|
-
value: Iterable<number> & {
|
|
389
|
-
length: number;
|
|
390
|
-
};
|
|
391
|
-
}> & {
|
|
392
|
-
length: number;
|
|
393
|
-
}, string>;
|
|
394
|
-
}, "0x2::vec_map::VecMap<string, vector<u8>>">;
|
|
395
|
-
}, "0xf391858d2a08473e8d4defcc8df89976bd7b123d3865c6b9341b237f7853dbbc::core::BetResultEvent<phantom T0>">;
|
|
396
|
-
/**
|
|
397
|
-
* Event emitted when a PvP Coinflip game is created, containing the game configuration and initial state.
|
|
398
|
-
*/
|
|
399
|
-
PvPCoinflipGameCreatedEvent: MoveStruct<{
|
|
400
|
-
game_id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
401
|
-
creator: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
402
|
-
creator_is_tails: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
403
|
-
is_private: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
404
|
-
joiner_is_tails: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
405
|
-
stake_per_player: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
406
|
-
house_edge_bps: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
407
|
-
coin_type: MoveStruct<{
|
|
408
|
-
name: _mysten_bcs.BcsType<string, string, "string">;
|
|
409
|
-
}, "0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName">;
|
|
410
|
-
}, "0xb43cf6583c0c15315c7e66f173af4be79ac40c38aad1fd92ec08638ab2026202::pvp_coinflip::GameCreatedEvent<phantom T0>">;
|
|
411
|
-
/**
|
|
412
|
-
* Event emitted when a PvP Coinflip game is resolved, containing the final outcome.
|
|
413
|
-
*/
|
|
414
|
-
PvPCoinflipGameResolvedEvent: MoveStruct<{
|
|
415
|
-
game_id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
416
|
-
creator: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
417
|
-
joiner: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
418
|
-
winner: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
419
|
-
creator_is_tails: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
420
|
-
is_private: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
421
|
-
joiner_is_tails: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
422
|
-
stake_per_player: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
423
|
-
total_pot: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
424
|
-
house_edge_amount: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
425
|
-
payout_amount: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
426
|
-
coin_type: MoveStruct<{
|
|
427
|
-
name: _mysten_bcs.BcsType<string, string, "string">;
|
|
428
|
-
}, "0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName">;
|
|
429
|
-
}, "0xb43cf6583c0c15315c7e66f173af4be79ac40c38aad1fd92ec08638ab2026202::pvp_coinflip::GameResolvedEvent<phantom T0>">;
|
|
430
|
-
/**
|
|
431
|
-
* Event emitted when a PvP Coinflip game is cancelled.
|
|
432
|
-
*/
|
|
433
|
-
PvPCoinflipGameCancelledEvent: MoveStruct<{
|
|
434
|
-
game_id: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
435
|
-
creator: _mysten_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
436
|
-
creator_is_tails: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
437
|
-
is_private: _mysten_bcs.BcsType<boolean, boolean, "bool">;
|
|
438
|
-
stake_per_player: _mysten_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
439
|
-
coin_type: MoveStruct<{
|
|
440
|
-
name: _mysten_bcs.BcsType<string, string, "string">;
|
|
441
|
-
}, "0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName">;
|
|
442
|
-
}, "0xb43cf6583c0c15315c7e66f173af4be79ac40c38aad1fd92ec08638ab2026202::pvp_coinflip::GameCancelledEvent<phantom T0>">;
|
|
443
|
-
};
|
|
444
|
-
/**
|
|
445
|
-
* Transaction builders for Suigar games.
|
|
446
|
-
*/
|
|
447
|
-
tx: {
|
|
448
|
-
/**
|
|
449
|
-
* Creates a standard game transaction for the provided game id.
|
|
450
|
-
*
|
|
451
|
-
* @param gameId Supported standard game identifier.
|
|
452
|
-
* @param options Transaction builder options for the selected game.
|
|
453
|
-
* @returns Prepared transaction for the selected game.
|
|
454
|
-
*/
|
|
455
|
-
createBetTransaction: <GameId extends StandardGame>(gameId: GameId, options: BuildGameOptions<GameId>) => Transaction;
|
|
456
|
-
/**
|
|
457
|
-
* Creates a PvP coinflip transaction for the requested action.
|
|
458
|
-
*
|
|
459
|
-
* @param action PvP coinflip action to perform.
|
|
460
|
-
* @param options Transaction builder options for the selected action.
|
|
461
|
-
* @returns Prepared PvP coinflip transaction.
|
|
462
|
-
*/
|
|
463
|
-
createPvPCoinflipTransaction: <Action extends PvPCoinflipAction>(action: Action, options: BuildPvPCoinflipTransactionOptions<Action>) => Transaction;
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
export { SuigarClient, suigar };
|