move to new authority and admin
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
f3dac89d3e
commit
0ba51e6324
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -ex pipefail
|
set -ex pipefail
|
||||||
|
|
||||||
WALLET_WITH_FUNDS=~/.config/solana/mango-mainnet.json
|
WALLET_WITH_FUNDS=~/.config/solana/mango-mainnet-1.json
|
||||||
PROGRAM_ID=4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg
|
PROGRAM_ID=4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg
|
||||||
|
|
||||||
# build program,
|
# build program,
|
||||||
|
|
|
@ -127,6 +127,20 @@ async function createGroup() {
|
||||||
console.log(`...registered group ${group.publicKey}`);
|
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() {
|
async function registerTokens() {
|
||||||
const result = await buildAdminClient();
|
const result = await buildAdminClient();
|
||||||
const client = result[0];
|
const client = result[0];
|
||||||
|
@ -425,6 +439,7 @@ async function registerPerpMarkets() {
|
||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
// await createGroup();
|
// await createGroup();
|
||||||
|
// await changeAdmin();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue