forked from stegaBOB/solana-program-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ammanrc.js
37 lines (32 loc) · 894 Bytes
/
.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
// @ts-check
'use strict';
const path = require('path');
const accountProviders = require('./js/dist/generated/accounts');
const localDeployDir = path.join(__dirname, 'program', 'target', 'deploy');
const MY_PROGRAM_ID = require("./js/idl/my_program_name.json").metadata.address;
function localDeployPath(programName) {
return path.join(localDeployDir, `${programName}.so`);
}
const programs = [
{
label: 'my_program_name',
programId: MY_PROGRAM_ID,
deployPath: localDeployPath('my_program_name')
},
// Example of a program without a local .so file
// {
// label: 'token_metadata',
// programId: 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
// },
];
const validator = {
programs,
verifyFees: false,
limitLedgerSize: 10000000,
};
module.exports = {
validator,
relay: {
accountProviders,
},
};