forked from gdy666/luci-app-lucky
-
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.
- Loading branch information
Showing
1 changed file
with
79 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
const { LOCALHOST, tmpLedgerDir } = require('@metaplex-foundation/amman'); | ||
const mplTokenMetadata = require('@metaplex-foundation/mpl-token-metadata'); | ||
const mplCandyMachine = require('@metaplex-foundation/mpl-candy-machine'); | ||
const mplAuctionHouse = require('@metaplex-foundation/mpl-auction-house'); | ||
const mplCandyMachineCore = require('@metaplex-foundation/mpl-candy-machine-core'); | ||
const mplCandyGuard = require('@metaplex-foundation/mpl-candy-guard'); | ||
const path = require('path'); | ||
const MOCK_STORAGE_ID = 'js-next-sdk'; | ||
|
||
function localDeployPath(programName) { | ||
return path.join(__dirname, 'programs', `${programName}.so`); | ||
} | ||
|
||
const programs = [ | ||
{ | ||
label: 'Token Metadata', | ||
programId: mplTokenMetadata.PROGRAM_ADDRESS, | ||
deployPath: localDeployPath('mpl_token_metadata'), | ||
}, | ||
{ | ||
label: 'Candy Machine V2', | ||
programId: mplCandyMachine.PROGRAM_ADDRESS, | ||
deployPath: localDeployPath('mpl_candy_machine'), | ||
}, | ||
{ | ||
label: 'Auction House', | ||
programId: mplAuctionHouse.PROGRAM_ADDRESS, | ||
deployPath: localDeployPath('mpl_auction_house'), | ||
}, | ||
{ | ||
label: 'Candy Machine V3', | ||
programId: mplCandyMachineCore.PROGRAM_ADDRESS, | ||
deployPath: localDeployPath('mpl_candy_machine_core'), | ||
}, | ||
{ | ||
label: 'Candy Guard', | ||
programId: mplCandyGuard.PROGRAM_ADDRESS, | ||
deployPath: localDeployPath('mpl_candy_guard'), | ||
}, | ||
{ | ||
label: 'Gateway', | ||
programId: 'gatem74V238djXdzWnJf94Wo1DcnuGkfijbf3AuBhfs', | ||
deployPath: localDeployPath('solana_gateway_program'), | ||
}, | ||
{ | ||
label: 'Token Auth Rules', | ||
programId: 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', | ||
deployPath: localDeployPath('mpl_token_auth_rules'), | ||
}, | ||
]; | ||
|
||
module.exports = { | ||
validator: { | ||
killRunningValidators: true, | ||
programs, | ||
jsonRpcUrl: LOCALHOST, | ||
websocketUrl: '', | ||
commitment: 'confirmed', | ||
ledgerDir: tmpLedgerDir(), | ||
resetLedger: true, | ||
verifyFees: false, | ||
}, | ||
relay: { | ||
accountProviders: { | ||
...mplTokenMetadata.accountProviders, | ||
...mplCandyMachine.accountProviders, | ||
// ...mplAuctionHouse.accountProviders, | ||
...mplCandyMachineCore.accountProviders, | ||
...mplCandyGuard.accountProviders, | ||
}, | ||
}, | ||
storage: { | ||
storageId: MOCK_STORAGE_ID, | ||
clearOnStart: true, | ||
}, | ||
snapshot: { | ||
snapshotFolder: path.join(__dirname, 'snapshots'), | ||
}, | ||
}; |