-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ammanrc.js
79 lines (76 loc) · 2.28 KB
/
.ammanrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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'),
},
};