forked from metaplex-foundation/js-deprecated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ammanrc.js
52 lines (46 loc) · 1.35 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
// @ts-check
'use strict';
const { tmpdir } = require('os');
const path = require('path');
const { LOCALHOST, tmpLedgerDir } = require('@metaplex-foundation/amman');
const isLocal = process.env.LOCAL_MPL === '1';
const localDeployDir = isLocal ?
path.resolve(process.cwd(), '../metaplex-program-library', 'target', 'deploy') :
path.join(tmpdir(), 'test', 'rust', 'target', 'deploy');
const programIds = {
metadata: 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
vault: 'vau1zxA2LbssAUEF7Gpw91zMM1LvXrvpzJtmZ58rPsn',
auction: 'auctxRXPeJoc4817jDhf4HbjnhEcr1cCXenosMhK5R8',
metaplex: 'p1exdMJcjVao65QdewkaZRUnU6VPSXhus9n2GzWfh98',
};
function localDeployPath(programName) {
return path.join(localDeployDir, `${programName}.so`);
}
const programs = [
{
programId: programIds.metadata,
deployPath: localDeployPath('mpl_token_metadata'),
},
{
programId: programIds.vault,
deployPath: localDeployPath('mpl_token_vault'),
},
{ programId: programIds.auction, deployPath: localDeployPath('mpl_auction') },
{
programId: programIds.metaplex,
deployPath: localDeployPath('mpl_metaplex'),
},
];
const validator = {
killRunningValidators: true,
programs,
jsonRpcUrl: LOCALHOST,
websocketUrl: '',
commitment: 'confirmed',
ledgerDir: tmpLedgerDir(),
resetLedger: true,
verifyFees: false,
};
module.exports = {
validator,
};