chore: rename program ids to governance

This commit is contained in:
Sebastian.Bor 2021-04-24 13:34:41 +01:00
parent 43e2c9060c
commit eb786f2fc3
2 changed files with 6 additions and 6 deletions

View File

@ -8,6 +8,6 @@
"typescript.enablePromptUseWorkspaceTsdk": true,
"prettier.prettierPath": ".vscode/pnpify/prettier/index.js",
"cSpell.words": [
"Timelock"
]
}

View File

@ -54,7 +54,7 @@ export const ENABLE_FEES_INPUT = false;
export const PROGRAM_IDS = [
{
name: 'mainnet-beta',
timelock: () => ({
governance: () => ({
programId: new PublicKey('9iAeqqppjn7g1Jn8o2cQCqU5aQVV3h4q9bbWdKRbeC2w'),
}),
wormhole: () => ({
@ -75,7 +75,7 @@ export const PROGRAM_IDS = [
},
{
name: 'testnet',
timelock: () => ({
governance: () => ({
programId: new PublicKey('DCVPuhaGNMLh73FRWFroH4o3ERUhBKMRWfBgJV94VqRk'),
}),
wormhole: () => ({
@ -93,7 +93,7 @@ export const PROGRAM_IDS = [
},
{
name: 'devnet',
timelock: () => ({
governance: () => ({
programId: new PublicKey('DCVPuhaGNMLh73FRWFroH4o3ERUhBKMRWfBgJV94VqRk'),
}),
wormhole: () => ({
@ -111,7 +111,7 @@ export const PROGRAM_IDS = [
},
{
name: 'localnet',
timelock: () => ({
governance: () => ({
programId: new PublicKey('2uWrXQ3tMurqTLe3Dmue6DzasUGV9UPqK7AK7HzS7v3D'),
}),
wormhole: () => ({
@ -143,7 +143,7 @@ export const setProgramIds = (envName: string) => {
SWAP_PROGRAM_LAYOUT = swap.current.layout;
SWAP_PROGRAM_LEGACY_IDS = swap.legacy;
GOVERNANCE = instance.timelock();
GOVERNANCE = instance.governance();
if (envName === 'mainnet-beta') {
LENDING_PROGRAM_ID = new PublicKey(