forked from metaplex-foundation/metaplex-program-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spl token gating feature to fixed-price-sale program (metaplex-fo…
…undation#448) * feat: add spl token gating feature to fixed-price-sale program, tests included * fix: native treasury holder balance check * fix: update program idl * fixes js sdk * lint * fixed pyaout ticket * tests unstable on GH, working locally Co-authored-by: austbot <[email protected]> Co-authored-by: Austin Adams <[email protected]>
- Loading branch information
1 parent
4805ed8
commit ab062d7
Showing
21 changed files
with
835 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
'use strict'; | ||
// @ts-check | ||
const base = require('../../.ammanrc.js'); | ||
console.log(base.validator.programs.find(({label})=>label === "Candy Machine")) | ||
const validator = {...base.validator, programs: [ | ||
base.validator.programs.find((e)=>e.label === "Candy Machine"), | ||
base.validator.programs.find((e)=>e.label === "Metadata"), | ||
]}; | ||
module.exports = { | ||
validator, | ||
relay: { | ||
enabled: true, | ||
killRunningRelay: true, | ||
}, | ||
const base = require('../../.base-ammanrc.js'); | ||
const validator = { | ||
...base.validator, | ||
programs: [base.programs.metadata, base.programs.candy_machine], | ||
}; | ||
module.exports = {validator}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
'use strict'; | ||
// @ts-check | ||
const base = require('../../.ammanrc.js'); | ||
|
||
const base = require('../../.base-ammanrc.js'); | ||
const validator = { | ||
...base.validator, | ||
programs: [base.programs.metadata, base.programs.fixedPriceSaleToken], | ||
...base.validator, | ||
programs: [base.programs.metadata, base.programs.token_sale], | ||
}; | ||
module.exports = { validator }; | ||
module.exports = {validator}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -980,6 +980,9 @@ | |
}, | ||
{ | ||
"name": "WrongCollectionMintKey" | ||
}, | ||
{ | ||
"name": "WrongGatingToken" | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.