forked from metaplex-foundation/mpl-token-auth-rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ammanrc.js
51 lines (44 loc) · 1.43 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
// @ts-check
'use strict';
const path = require('path');
const accountProviders = require('./packages/sdk/dist/src/generated/accounts');
const localDeployDir = path.join(__dirname, 'program', 'target', 'deploy');
const MY_PROGRAM_ID = require("./packages/sdk/idl/lpl_token_auth_rules.json").metadata.address;
function localDeployPath(programName) {
return path.join(localDeployDir, `${programName}.so`);
}
const programs = [
{
label: 'lpl_token_auth_rules',
programId: MY_PROGRAM_ID,
deployPath: localDeployPath('lpl_token_auth_rules')
},
];
const accounts = [
{
label: 'Token Metadata Program',
accountId:'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
// marking executable as true will cause Amman to pull the executable data account as well automatically
executable: true,
},
{
label: 'Random other account',
accountId:'4VLgNs1jXgdciSidxcaLKfrR9WjATkj6vmTm5yCwNwui',
// by default executable is false
// providing a cluster here will override the accountsCluster field
cluster: 'https://metaplex.devnet.rpcpool.com'
}
];
const validator = {
programs,
// The accounts below is commented out. Uncomment if you want to pull remote accounts. Check Amman docs for more info
accounts,
verifyFees: false,
limitLedgerSize: 10000000,
};
module.exports = {
validator,
relay: {
accountProviders,
},
};