Skip to content

Commit bbaf0c6

Browse files
authored
Chore: retire mpl-core NPM js package (metaplex-foundation#892)
* remove from fixed-price-sale * bump mpl-fixed-price-sale * remove mpl core from candy machine js * disable seeds in anchor gen * major bump candy machine * remove core/js package * remove core/js from readme * update issue templates * remove core from actions * fix tests
1 parent b1914bc commit bbaf0c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+2374
-4720
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ body:
1010
options:
1111
- auction-house
1212
- candy-machine
13-
- core
1413
- fixed-price-sale
1514
- gumdrop
1615
- hydra

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ body:
99
label: Which package is this feature request for?
1010
options:
1111
- auction-house
12+
- auctioneer
13+
- bubblegum
1214
- candy-machine
15+
- candy-machine-core
1316
- core
1417
- fixed-price-sale
1518
- gumdrop
19+
- hydra
1620
- nft-packs
1721
- token-entangler
1822
- token-metadata
19-
- hydra
2023
validations:
2124
required: true
2225
- type: textarea
@@ -53,4 +56,4 @@ body:
5356
id: additional-context
5457
attributes:
5558
label: Other context
56-
description: Any other context, screenshots, or file uploads that help us understand your feature request.
59+
description: Any other context, screenshots, or file uploads that help us understand your feature request.

.github/workflows/sdk-reusable.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
runs-on: ubuntu-latest
2929
# Set job outputs to values from filter step
3030
outputs:
31-
core: ${{ steps.filter.outputs.core }}
3231
package: ${{ steps.filter.outputs.package }}
3332
workflow: ${{ steps.filter.outputs.workflow }}
3433
steps:
@@ -38,8 +37,6 @@ jobs:
3837
id: filter
3938
with:
4039
filters: |
41-
core:
42-
- 'core/js/**'
4340
package:
4441
- '${{ inputs.name }}/js/**'
4542
workflow:
@@ -50,7 +47,6 @@ jobs:
5047
needs: changes
5148
if: |
5249
inputs.changes == false ||
53-
needs.changes.outputs.core == 'true' ||
5450
needs.changes.outputs.package == 'true' ||
5551
needs.changes.outputs.workflow == 'true'
5652
runs-on: ubuntu-latest

.github/workflows/sdk.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
- name: "candy-machine"
2929
- name: "candy-machine-core"
3030
skip_test: true
31-
- name: "core"
3231
- name: "fixed-price-sale"
3332
skip_test: true
3433
- name: "gumdrop"

Anchor.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[features]
2-
seeds = true
3-
41
[registry]
52
url = "https://anchor.projectserum.com"
63

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ merged.
8888
| Bubblegum | [mpl-bubblegum][mpl-bubblegum-npm] | [![NPM][mpl-bubblegum-nimg]][mpl-bubblegum-npm] |
8989
| Candy Machine Core | [mpl-candy-machine-core][mpl-candy-machine-core-npm] | [![NPM][mpl-candy-machine-core-nimg]][mpl-candy-machine-core-npm] |
9090
| Candy Machine | [mpl-candy-machine][mpl-candy-machine-npm] | [![NPM][mpl-candy-machine-nimg]][mpl-candy-machine-npm] |
91-
| Core | [mpl-core][mpl-core-npm] | [![NPM][mpl-core-nimg]][mpl-core-npm] |
9291
| Fixed Price Sale | [mpl-fixed-price-sale][mpl-fixed-price-sale-npm] | [![NPM][mpl-fixed-price-sale-nimg]][mpl-fixed-price-sale-npm] |
9392
| Gumdrop | [mpl-gumdrop][mpl-gumdrop-npm] | [![NPM][mpl-gumdrop-nimg]][mpl-gumdrop-npm] |
9493
| Hydra | [mpl-hydra][mpl-hydra-npm] | [![NPM][mpl-hydra-nimg]][mpl-hydra-npm] |
@@ -210,9 +209,6 @@ under either the [MIT][mit-license] or the [Apache][apache-license] licenses.
210209
[mpl-fixed-price-sale-nimg-long]:https://img.shields.io/npm/v/@metaplex-foundation/mpl-fixed-price-sale?label=npm%20%7C%20mpl-fixed-price-sale&logo=typescript
211210
[mpl-fixed-price-sale-nimg]:https://img.shields.io/npm/v/@metaplex-foundation/mpl-fixed-price-sale?logo=typescript
212211

213-
[mpl-core-nimg-long]:https://img.shields.io/npm/v/@metaplex-foundation/mpl-core?label=npm%20%7C%20mpl-core&logo=typescript
214-
[mpl-core-nimg]:https://img.shields.io/npm/v/@metaplex-foundation/mpl-core?logo=typescript
215-
216212
[mpl-gumdrop-nimg-long]:https://img.shields.io/npm/v/@metaplex-foundation/mpl-gumdrop?label=npm%20%7C%20mpl-gumdrop&logo=typescript
217213
[mpl-gumdrop-nimg]:https://img.shields.io/npm/v/@metaplex-foundation/mpl-gumdrop?logo=typescript
218214

candy-machine/js/idl/candy_machine.json

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,10 @@
303303
{
304304
"name": "clock",
305305
"isMut": false,
306-
"isSigner": false
306+
"isSigner": false,
307+
"docs": [
308+
"Account not actually used."
309+
]
307310
},
308311
{
309312
"name": "recentBlockhashes",
@@ -543,6 +546,9 @@
543546
"accounts": [
544547
{
545548
"name": "CandyMachine",
549+
"docs": [
550+
"Candy machine state and config data."
551+
],
546552
"type": {
547553
"kind": "struct",
548554
"fields": [
@@ -575,6 +581,9 @@
575581
},
576582
{
577583
"name": "CollectionPDA",
584+
"docs": [
585+
"Collection PDA account"
586+
],
578587
"type": {
579588
"kind": "struct",
580589
"fields": [
@@ -591,6 +600,9 @@
591600
},
592601
{
593602
"name": "FreezePDA",
603+
"docs": [
604+
"Collection PDA account"
605+
],
594606
"type": {
595607
"kind": "struct",
596608
"fields": [
@@ -627,6 +639,9 @@
627639
"types": [
628640
{
629641
"name": "CandyMachineData",
642+
"docs": [
643+
"Candy machine settings data."
644+
],
630645
"type": {
631646
"kind": "struct",
632647
"fields": [
@@ -640,10 +655,16 @@
640655
},
641656
{
642657
"name": "symbol",
658+
"docs": [
659+
"The symbol for the asset"
660+
],
643661
"type": "string"
644662
},
645663
{
646664
"name": "sellerFeeBasisPoints",
665+
"docs": [
666+
"Royalty basis points that goes to creators in secondary sales (0-10000)"
667+
],
647668
"type": "u16"
648669
},
649670
{
@@ -702,6 +723,9 @@
702723
},
703724
{
704725
"name": "gatekeeper",
726+
"docs": [
727+
"If [`Some`] requires gateway tokens on mint"
728+
],
705729
"type": {
706730
"option": {
707731
"defined": "GatekeeperConfig"
@@ -713,6 +737,9 @@
713737
},
714738
{
715739
"name": "ConfigLine",
740+
"docs": [
741+
"Individual config line for storing NFT data pre-mint."
742+
],
716743
"type": {
717744
"kind": "struct",
718745
"fields": [
@@ -722,6 +749,9 @@
722749
},
723750
{
724751
"name": "uri",
752+
"docs": [
753+
"URI pointing to JSON representing the asset"
754+
],
725755
"type": "string"
726756
}
727757
]
@@ -767,6 +797,9 @@
767797
},
768798
{
769799
"name": "HiddenSettings",
800+
"docs": [
801+
"Hidden Settings for large mints used with offline data."
802+
],
770803
"type": {
771804
"kind": "struct",
772805
"fields": [
@@ -820,15 +853,25 @@
820853
},
821854
{
822855
"name": "GatekeeperConfig",
856+
"docs": [
857+
"Configurations options for the gatekeeper."
858+
],
823859
"type": {
824860
"kind": "struct",
825861
"fields": [
826862
{
827863
"name": "gatekeeperNetwork",
864+
"docs": [
865+
"The network for the gateway token required"
866+
],
828867
"type": "publicKey"
829868
},
830869
{
831870
"name": "expireOnUse",
871+
"docs": [
872+
"Whether or not the token should expire after minting.",
873+
"The gatekeeper network must support this if true."
874+
],
832875
"type": "bool"
833876
}
834877
]
@@ -1124,5 +1167,11 @@
11241167
"name": "CannotSwitchFromHiddenSettings",
11251168
"msg": "Cannot remove Hidden Settings."
11261169
}
1127-
]
1170+
],
1171+
"metadata": {
1172+
"address": "cndy3Z4yapfJBmL3ShUp5exZKqR3z33thTzeNMm2gRZ",
1173+
"origin": "anchor",
1174+
"binaryVersion": "0.25.0",
1175+
"libVersion": "0.25.0"
1176+
}
11281177
}

candy-machine/js/package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metaplex-foundation/mpl-candy-machine",
3-
"version": "4.7.1",
3+
"version": "5.0.0",
44
"programVersion": "4.4.1",
55
"description": "MPL Candy Machine JavaScript API. This MPL package is for the current generation of candy machine which is 2.0.0",
66
"main": "dist/src/mpl-candy-machine.js",
@@ -39,22 +39,21 @@
3939
"author": "Metaplex Maintainers <[email protected]>",
4040
"license": "Apache-2.0",
4141
"dependencies": {
42-
"@metaplex-foundation/beet": "^0.4.0",
43-
"@metaplex-foundation/beet-solana": "^0.3.0",
42+
"@metaplex-foundation/beet": "^0.7.1",
43+
"@metaplex-foundation/beet-solana": "^0.4.0",
4444
"@metaplex-foundation/cusper": "^0.0.2",
45-
"@metaplex-foundation/mpl-core": "^0.6.1",
46-
"@solana/spl-token": "^0.3.5",
47-
"@solana/web3.js": "^1.35.1"
45+
"@solana/spl-token": "^0.3.6",
46+
"@solana/web3.js": "^1.66.2"
4847
},
4948
"devDependencies": {
50-
"eslint-config-prettier": "^8.3.0",
49+
"eslint-config-prettier": "^8.5.0",
5150
"eslint-plugin-prettier": "^4.0.0",
52-
"@metaplex-foundation/solita": "^0.14.0",
53-
"@typescript-eslint/eslint-plugin": "^5.4.0",
54-
"@typescript-eslint/parser": "^5.4.0",
55-
"eslint": "^8.3.0",
56-
"prettier": "^2.5.1",
51+
"@metaplex-foundation/solita": "^0.19.0",
52+
"@typescript-eslint/eslint-plugin": "^5.43.0",
53+
"@typescript-eslint/parser": "^5.43.0",
54+
"eslint": "^8.27.0",
55+
"prettier": "^2.7.1",
5756
"rimraf": "^3.0.2",
58-
"typescript": "^4.6.2"
57+
"typescript": "^4.9.3"
5958
}
60-
}
59+
}

candy-machine/js/src/CandyMachineProgram.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

candy-machine/js/src/generated/accounts/CandyMachine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ export class CandyMachine implements CandyMachineArgs {
7373
static async fromAccountAddress(
7474
connection: web3.Connection,
7575
address: web3.PublicKey,
76+
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig,
7677
): Promise<CandyMachine> {
77-
const accountInfo = await connection.getAccountInfo(address);
78+
const accountInfo = await connection.getAccountInfo(address, commitmentOrConfig);
7879
if (accountInfo == null) {
7980
throw new Error(`Unable to find CandyMachine account at ${address}`);
8081
}

0 commit comments

Comments
 (0)