@triadxyz/triad-protocol 0.0.1-beta

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.
@@ -0,0 +1,66 @@
1
+ import { PublicKey } from '@solana/web3.js';
2
+ import BN from 'bn.js';
3
+ export type RpcOptions = {
4
+ skipPreflight?: boolean;
5
+ microLamports?: number;
6
+ };
7
+ export type Collection = 'alligators' | 'coleta' | 'undead' | 'pyth';
8
+ export type StakeArgs = {
9
+ name: string;
10
+ wallet: PublicKey;
11
+ stakeVault: string;
12
+ mint: PublicKey;
13
+ collections: Record<Collection, boolean>;
14
+ rarity: {
15
+ common: {};
16
+ } | {
17
+ uncommon: {};
18
+ } | {
19
+ rare: {};
20
+ } | {
21
+ epic: {};
22
+ } | {
23
+ legendary: {};
24
+ } | {
25
+ mythic: {};
26
+ };
27
+ };
28
+ export type InitializeStakeArgs = {
29
+ name: string;
30
+ slots: BN;
31
+ amount: BN;
32
+ collection: string;
33
+ };
34
+ export type DepositStakeRewardsArgs = {
35
+ wallet: PublicKey;
36
+ amount: BN;
37
+ mint: PublicKey;
38
+ stakeVault: string;
39
+ };
40
+ export type RequestWithdrawArgs = {
41
+ wallet: PublicKey;
42
+ nftName: string;
43
+ mint: PublicKey;
44
+ stakeVault: string;
45
+ };
46
+ export type WithdrawArgs = {
47
+ wallet: PublicKey;
48
+ nftName: string;
49
+ mint: PublicKey;
50
+ stakeVault: string;
51
+ };
52
+ export declare enum RARITY_WEIGHT {
53
+ COMMON = 1,
54
+ UNCOMMON = 2,
55
+ RARE = 3,
56
+ EPIC = 4,
57
+ LEGENDARY = 5,
58
+ MYTHIC = 6
59
+ }
60
+ export declare enum COLLECTION_MUlTIPlIER {
61
+ ALLIGATORS = 1.5,
62
+ COLETA = 1.5,
63
+ UNDEAD = 1.5,
64
+ UNDEAD_TRIADFI = 2.5,
65
+ PYTH = 1.5
66
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COLLECTION_MUlTIPlIER = exports.RARITY_WEIGHT = void 0;
4
+ var RARITY_WEIGHT;
5
+ (function (RARITY_WEIGHT) {
6
+ RARITY_WEIGHT[RARITY_WEIGHT["COMMON"] = 1] = "COMMON";
7
+ RARITY_WEIGHT[RARITY_WEIGHT["UNCOMMON"] = 2] = "UNCOMMON";
8
+ RARITY_WEIGHT[RARITY_WEIGHT["RARE"] = 3] = "RARE";
9
+ RARITY_WEIGHT[RARITY_WEIGHT["EPIC"] = 4] = "EPIC";
10
+ RARITY_WEIGHT[RARITY_WEIGHT["LEGENDARY"] = 5] = "LEGENDARY";
11
+ RARITY_WEIGHT[RARITY_WEIGHT["MYTHIC"] = 6] = "MYTHIC";
12
+ })(RARITY_WEIGHT || (exports.RARITY_WEIGHT = RARITY_WEIGHT = {}));
13
+ var COLLECTION_MUlTIPlIER;
14
+ (function (COLLECTION_MUlTIPlIER) {
15
+ COLLECTION_MUlTIPlIER[COLLECTION_MUlTIPlIER["ALLIGATORS"] = 1.5] = "ALLIGATORS";
16
+ COLLECTION_MUlTIPlIER[COLLECTION_MUlTIPlIER["COLETA"] = 1.5] = "COLETA";
17
+ COLLECTION_MUlTIPlIER[COLLECTION_MUlTIPlIER["UNDEAD"] = 1.5] = "UNDEAD";
18
+ COLLECTION_MUlTIPlIER[COLLECTION_MUlTIPlIER["UNDEAD_TRIADFI"] = 2.5] = "UNDEAD_TRIADFI";
19
+ COLLECTION_MUlTIPlIER[COLLECTION_MUlTIPlIER["PYTH"] = 1.5] = "PYTH";
20
+ })(COLLECTION_MUlTIPlIER || (exports.COLLECTION_MUlTIPlIER = COLLECTION_MUlTIPlIER = {}));