@triadxyz/triad-protocol 0.1.2-alpha.9 → 0.1.2-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,4 @@
1
+ export type RpcOptions = {
2
+ skipPreflight?: boolean;
3
+ microLamports?: number;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,130 @@
1
+ import { PublicKey } from '@solana/web3.js';
2
+ import BN from 'bn.js';
3
+ export type Collection = 'alligators' | 'coleta' | 'undead' | 'pyth';
4
+ export type StakeArgs = {
5
+ name: string;
6
+ wallet: PublicKey;
7
+ stakeVault: string;
8
+ mint: PublicKey;
9
+ collections: Record<Collection, boolean>;
10
+ rarity: {
11
+ common: {};
12
+ } | {
13
+ uncommon: {};
14
+ } | {
15
+ rare: {};
16
+ } | {
17
+ epic: {};
18
+ } | {
19
+ legendary: {};
20
+ } | {
21
+ mythic: {};
22
+ };
23
+ };
24
+ export type InitializeStakeArgs = {
25
+ name: string;
26
+ slots: BN;
27
+ amount: BN;
28
+ collection: string;
29
+ };
30
+ export type DepositStakeRewardsArgs = {
31
+ wallet: PublicKey;
32
+ amount: BN;
33
+ mint: PublicKey;
34
+ stakeVault: string;
35
+ };
36
+ export type RequestWithdrawArgs = {
37
+ wallet: PublicKey;
38
+ nftName: string;
39
+ mint: PublicKey;
40
+ stakeVault: string;
41
+ };
42
+ export type WithdrawArgs = {
43
+ wallet: PublicKey;
44
+ nftName: string;
45
+ mint: PublicKey;
46
+ stakeVault: string;
47
+ };
48
+ export type UpdateStakeVaultStatusArgs = {
49
+ wallet: PublicKey;
50
+ isLocked: boolean;
51
+ week: number;
52
+ stakeVault: string;
53
+ };
54
+ export type ClaimStakeRewardsArgs = {
55
+ wallet: PublicKey;
56
+ week: number[];
57
+ mint: PublicKey;
58
+ stakeVault: string;
59
+ nftName: string;
60
+ };
61
+ export type CreateUserArgs = {
62
+ wallet: PublicKey;
63
+ name: string;
64
+ referral: string;
65
+ };
66
+ export type UpdateStakeRewardsArgs = {
67
+ day: number;
68
+ wallet: PublicKey;
69
+ items: {
70
+ rewards: BN;
71
+ apr: number;
72
+ nftName: string;
73
+ }[];
74
+ };
75
+ export declare enum RARITY_WEIGHT {
76
+ COMMON = 1,
77
+ UNCOMMON = 2,
78
+ RARE = 3,
79
+ EPIC = 4,
80
+ LEGENDARY = 5,
81
+ MYTHIC = 6
82
+ }
83
+ export declare enum COLLECTION_MUlTIPLIER {
84
+ ALLIGATORS = 1.5,
85
+ COLETA = 1.5,
86
+ UNDEAD = 1.5,
87
+ UNDEAD_TRIADFI = 2.5,
88
+ PYTH = 1.5
89
+ }
90
+ export type StakeVaultResponse = {
91
+ name: string;
92
+ collection: string;
93
+ authority: string;
94
+ slots: number;
95
+ amount: number;
96
+ isLocked: boolean;
97
+ tokenMint: string;
98
+ amountPaid: number;
99
+ nftStaked: number;
100
+ tokenDecimals: number;
101
+ tokenStaked: number;
102
+ week: number;
103
+ initTs: number;
104
+ endTs: number;
105
+ };
106
+ export type StakeResponse = {
107
+ name: string;
108
+ collections: Record<Collection, {}>;
109
+ rarity: string;
110
+ stakeVault: string;
111
+ authority: string;
112
+ initTs: number;
113
+ isLocked: boolean;
114
+ withdrawTs: number;
115
+ mint: string;
116
+ stakeRewards: string;
117
+ apr?: number;
118
+ dailyRewards?: number[];
119
+ weeklyRewardsPaid?: boolean[];
120
+ weeklyRewards?: number;
121
+ rewardsToClaim?: number;
122
+ allRewards?: number;
123
+ };
124
+ export type UserResponse = {
125
+ ts: number;
126
+ authority: string;
127
+ referral: string;
128
+ referred: number;
129
+ name: string;
130
+ };
@@ -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 = {}));