Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pili-book authored Jul 11, 2024
1 parent 1ba4c13 commit cdc5184
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions test.js
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'),
},
};

0 comments on commit cdc5184

Please sign in to comment.