proof-of-take-sdk 3.0.0 → 3.0.1
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/idl/proof_of_take.json +32 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -2
- package/dist/types/proof_of_take.d.ts +32 -0
- package/package.json +1 -1
|
@@ -336,6 +336,38 @@
|
|
|
336
336
|
}
|
|
337
337
|
]
|
|
338
338
|
},
|
|
339
|
+
{
|
|
340
|
+
"name": "close_generic_account",
|
|
341
|
+
"discriminator": [
|
|
342
|
+
124,
|
|
343
|
+
13,
|
|
344
|
+
206,
|
|
345
|
+
67,
|
|
346
|
+
55,
|
|
347
|
+
195,
|
|
348
|
+
177,
|
|
349
|
+
118
|
|
350
|
+
],
|
|
351
|
+
"accounts": [
|
|
352
|
+
{
|
|
353
|
+
"name": "admin",
|
|
354
|
+
"docs": [
|
|
355
|
+
"Admin must sign and pay for the transaction"
|
|
356
|
+
],
|
|
357
|
+
"writable": true,
|
|
358
|
+
"signer": true
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"name": "account_to_close",
|
|
362
|
+
"docs": [
|
|
363
|
+
"The account to close (must be owned by this program)",
|
|
364
|
+
"We only verify it's owned by the program and transfer its lamports"
|
|
365
|
+
],
|
|
366
|
+
"writable": true
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"args": []
|
|
370
|
+
},
|
|
339
371
|
{
|
|
340
372
|
"name": "close_miztake",
|
|
341
373
|
"discriminator": [
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
*/
|
|
8
|
+
import { getProgram as _getProgram } from "./utils/programHelpers";
|
|
8
9
|
export { createMiztake, getMiztakePdaForParams, } from "./instructions/createMiztake";
|
|
9
10
|
export type { CreateMiztakeOptions, CreateMiztakeResult, } from "./instructions/createMiztake";
|
|
10
11
|
export { initializeStatistics } from "./instructions/initializeStatistics";
|
|
@@ -29,7 +30,7 @@ export { viewCurrentSeason } from "./instructions/viewCurrentSeason";
|
|
|
29
30
|
export * from "./utils/pdas";
|
|
30
31
|
export * from "./utils/constants";
|
|
31
32
|
export * from "./utils/accountUpdates";
|
|
32
|
-
export
|
|
33
|
+
export declare const getProgram: typeof _getProgram;
|
|
33
34
|
export * from "./utils/signerHelpers";
|
|
34
35
|
export * from "./utils/conversions";
|
|
35
36
|
export * from "./utils/transactionBuilder";
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,12 @@ 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.viewCurrentSeason = exports.viewWindowStatus = exports.viewSeasonMembershipStatus = exports.updateSeasonAdmin = exports.toggleSeasonPause = 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.IDL = exports.PDAManager = exports.getProgram = exports.viewCurrentSeason = exports.viewWindowStatus = exports.viewSeasonMembershipStatus = exports.updateSeasonAdmin = exports.toggleSeasonPause = 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
|
+
// NOTE:
|
|
26
|
+
// We intentionally export `getProgram` via a local const assignment (instead of `export * from ...`)
|
|
27
|
+
// so that the compiled CommonJS output uses a writable property. This makes it possible to mock
|
|
28
|
+
// `getProgram` in Jest by reassigning the export in test environments.
|
|
29
|
+
const programHelpers_1 = require("./utils/programHelpers");
|
|
25
30
|
// Export all instructions
|
|
26
31
|
// Core miztake instructions
|
|
27
32
|
var createMiztake_1 = require("./instructions/createMiztake");
|
|
@@ -63,7 +68,7 @@ Object.defineProperty(exports, "viewCurrentSeason", { enumerable: true, get: fun
|
|
|
63
68
|
__exportStar(require("./utils/pdas"), exports);
|
|
64
69
|
__exportStar(require("./utils/constants"), exports);
|
|
65
70
|
__exportStar(require("./utils/accountUpdates"), exports);
|
|
66
|
-
|
|
71
|
+
exports.getProgram = programHelpers_1.getProgram;
|
|
67
72
|
__exportStar(require("./utils/signerHelpers"), exports);
|
|
68
73
|
__exportStar(require("./utils/conversions"), exports);
|
|
69
74
|
__exportStar(require("./utils/transactionBuilder"), exports);
|
|
@@ -342,6 +342,38 @@ export type ProofOfTake = {
|
|
|
342
342
|
}
|
|
343
343
|
];
|
|
344
344
|
},
|
|
345
|
+
{
|
|
346
|
+
"name": "closeGenericAccount";
|
|
347
|
+
"discriminator": [
|
|
348
|
+
124,
|
|
349
|
+
13,
|
|
350
|
+
206,
|
|
351
|
+
67,
|
|
352
|
+
55,
|
|
353
|
+
195,
|
|
354
|
+
177,
|
|
355
|
+
118
|
|
356
|
+
];
|
|
357
|
+
"accounts": [
|
|
358
|
+
{
|
|
359
|
+
"name": "admin";
|
|
360
|
+
"docs": [
|
|
361
|
+
"Admin must sign and pay for the transaction"
|
|
362
|
+
];
|
|
363
|
+
"writable": true;
|
|
364
|
+
"signer": true;
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "accountToClose";
|
|
368
|
+
"docs": [
|
|
369
|
+
"The account to close (must be owned by this program)",
|
|
370
|
+
"We only verify it's owned by the program and transfer its lamports"
|
|
371
|
+
];
|
|
372
|
+
"writable": true;
|
|
373
|
+
}
|
|
374
|
+
];
|
|
375
|
+
"args": [];
|
|
376
|
+
},
|
|
345
377
|
{
|
|
346
378
|
"name": "closeMiztake";
|
|
347
379
|
"discriminator": [
|