proof-of-take-sdk 3.0.4 → 3.0.5
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/index.d.ts +6 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,9 @@ export * from "./utils/accountConverters";
|
|
|
36
36
|
export * from "./utils/depositTier";
|
|
37
37
|
export * from "./utils/fetchAccount";
|
|
38
38
|
export declare const getProgram: typeof _getProgram;
|
|
39
|
+
export * from "./utils/programHelpers";
|
|
40
|
+
export * from "./utils/anchorHelpers";
|
|
41
|
+
export * from "./utils/tierPenalty";
|
|
39
42
|
export * from "./utils/signerHelpers";
|
|
40
43
|
export * from "./utils/conversions";
|
|
41
44
|
export * from "./utils/transactionBuilder";
|
|
@@ -47,10 +50,12 @@ export * from "./constants/season";
|
|
|
47
50
|
export * from "./types";
|
|
48
51
|
export * from "./types/instructionResults";
|
|
49
52
|
export * from "./types/accountTypes";
|
|
53
|
+
export * from "./types/anchorAccounts";
|
|
54
|
+
export * from "./types/anchorViews";
|
|
50
55
|
export type { ProofOfTakeIdlAccounts, AnchorMiztake, AnchorMiztakeStatistics, AnchorUserStats, AnchorSeasonSettings, AnchorSeason, AnchorSeasonMembership, AnchorRewardWindow, AnchorUserWindowParticipation, AnchorReferralPenaltyClaim, ProofOfTakeIdlTypes, AnchorCurrentSeasonView, AnchorSeasonMembershipStatusView, AnchorWindowStatusView, TierNumber, Sha256HexString, Bytes32, WindowIndex, WindowNumberLike, SeasonNumberLike, DepositTierName, SeasonDepositTier, SeasonStateAnchor, WindowStateAnchor, SeasonStateLike, WindowStateLike, FixedLengthArray, EligibleStakePerWindow, } from "./types";
|
|
51
56
|
export type { StandardInstructionResult, StandardInstructionResultWithPdas, StandardInstructionResultWithPdasAndAccounts, } from "./types/instructionResults";
|
|
52
57
|
export type { ProofOfTake } from "./types/proof_of_take";
|
|
53
|
-
export { IDL } from "./idl/idl";
|
|
58
|
+
export { IDL, ANCHOR_IDL } from "./idl/idl";
|
|
54
59
|
export { createProgram, createProgramWithId, getProgramReadOnly, } from "./client";
|
|
55
60
|
export * from "./getters";
|
|
56
61
|
export * from "./instructions/closeAuxiliaryAccounts";
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
21
21
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.VERSION = exports.getProgramReadOnly = exports.createProgramWithId = exports.createProgram = exports.IDL = exports.PDAManager = exports.getProgram = exports.viewCurrentSeason = exports.viewWindowStatus = exports.viewSeasonMembershipStatus = exports.updateSeasonAdmin = exports.toggleSeasonPause = exports.initializeRewardWindow = exports.withdrawSeasonDeposit = exports.claimReferralPenaltyForWindow = exports.claimWindowRewards = exports.confirmedPostOnX = exports.joinSeason = exports.initializeEscrowVault = exports.initializeSeasonVault = exports.initializeSeasonSettings = exports.initializeStatistics = exports.getMiztakePdaForParams = exports.createMiztake = void 0;
|
|
24
|
+
exports.VERSION = exports.getProgramReadOnly = exports.createProgramWithId = exports.createProgram = exports.ANCHOR_IDL = exports.IDL = exports.PDAManager = exports.getProgram = exports.viewCurrentSeason = exports.viewWindowStatus = exports.viewSeasonMembershipStatus = exports.updateSeasonAdmin = exports.toggleSeasonPause = exports.initializeRewardWindow = exports.withdrawSeasonDeposit = exports.claimReferralPenaltyForWindow = exports.claimWindowRewards = exports.confirmedPostOnX = exports.joinSeason = exports.initializeEscrowVault = exports.initializeSeasonVault = exports.initializeSeasonSettings = exports.initializeStatistics = exports.getMiztakePdaForParams = exports.createMiztake = void 0;
|
|
25
25
|
// NOTE:
|
|
26
26
|
// We intentionally export `getProgram` via a local const assignment (instead of `export * from ...`)
|
|
27
27
|
// so that the compiled CommonJS output uses a writable property. This makes it possible to mock
|
|
@@ -74,6 +74,9 @@ __exportStar(require("./utils/accountConverters"), exports);
|
|
|
74
74
|
__exportStar(require("./utils/depositTier"), exports);
|
|
75
75
|
__exportStar(require("./utils/fetchAccount"), exports);
|
|
76
76
|
exports.getProgram = programHelpers_1.getProgram;
|
|
77
|
+
__exportStar(require("./utils/programHelpers"), exports);
|
|
78
|
+
__exportStar(require("./utils/anchorHelpers"), exports);
|
|
79
|
+
__exportStar(require("./utils/tierPenalty"), exports);
|
|
77
80
|
__exportStar(require("./utils/signerHelpers"), exports);
|
|
78
81
|
__exportStar(require("./utils/conversions"), exports);
|
|
79
82
|
__exportStar(require("./utils/transactionBuilder"), exports);
|
|
@@ -89,8 +92,11 @@ __exportStar(require("./constants/season"), exports);
|
|
|
89
92
|
__exportStar(require("./types"), exports);
|
|
90
93
|
__exportStar(require("./types/instructionResults"), exports);
|
|
91
94
|
__exportStar(require("./types/accountTypes"), exports);
|
|
95
|
+
__exportStar(require("./types/anchorAccounts"), exports);
|
|
96
|
+
__exportStar(require("./types/anchorViews"), exports);
|
|
92
97
|
var idl_1 = require("./idl/idl");
|
|
93
98
|
Object.defineProperty(exports, "IDL", { enumerable: true, get: function () { return idl_1.IDL; } });
|
|
99
|
+
Object.defineProperty(exports, "ANCHOR_IDL", { enumerable: true, get: function () { return idl_1.ANCHOR_IDL; } });
|
|
94
100
|
// Export client helpers
|
|
95
101
|
var client_1 = require("./client");
|
|
96
102
|
Object.defineProperty(exports, "createProgram", { enumerable: true, get: function () { return client_1.createProgram; } });
|