move to new authority and admin

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-12-19 19:50:09 +01:00
parent f3dac89d3e
commit 0ba51e6324
2 changed files with 16 additions and 1 deletions

View File

@ -2,7 +2,7 @@
set -ex pipefail
WALLET_WITH_FUNDS=~/.config/solana/mango-mainnet.json
WALLET_WITH_FUNDS=~/.config/solana/mango-mainnet-1.json
PROGRAM_ID=4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg
# build program,

View File

@ -127,6 +127,20 @@ async function createGroup() {
console.log(`...registered group ${group.publicKey}`);
}
async function changeAdmin() {
const result = await buildAdminClient();
const client = result[0];
const admin = result[1];
const group = await client.getGroupForCreator(admin.publicKey, GROUP_NUM);
console.log(`Changing admin...`);
await client.groupEdit(
group,
new PublicKey('DSiGNQaKhFCSZbg4HczqCtPAPb1xV51c9GfbfqcVKTB4'),
);
}
async function registerTokens() {
const result = await buildAdminClient();
const client = result[0];
@ -425,6 +439,7 @@ async function registerPerpMarkets() {
async function main() {
try {
// await createGroup();
// await changeAdmin();
} catch (error) {
console.log(error);
}