Skip to content

Commit

Permalink
admin
Browse files Browse the repository at this point in the history
  • Loading branch information
leecchh committed Oct 9, 2024
1 parent 351c6f7 commit 7a30c26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion scripts/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

export const adminCapOwner = {
"mainnet": "0xbd1d25f49cc9b65f1e41d6c264ad0e065923de7ce6fd8b86d87d25c0a58742b9", // change back to right owner 0xd0ec0b201de6b4e7f425918bbd7151c37fc1b06c59b3961a2a00db74f6ea865e
"mainnet": "0xd0ec0b201de6b4e7f425918bbd7151c37fc1b06c59b3961a2a00db74f6ea865e", // change back to right owner
"testnet": "0xb3d277c50f7b846a5f609a8d13428ae482b5826bb98437997373f3a0d60d280e",
};

Expand All @@ -15,3 +15,8 @@ export const upgradeCapID = {
"mainnet": "0xc3670c420ee0e3cccfae819be4b6780007d56727467d5e5c60c0d3b6e264f5d9", // change after publish
"testnet": "0x56632f4f1b707b5b0c1b99defe65a056af3f846d95700b4a1cbd3adc94bf7c96",
};

export const adminCapID = {
"mainnet": "0xd542cd47d94009452de200032ac80ff1ceb31bb5f9ed6df5d97c9ae54a1976dd",
"testnet": "0x014e6a65f60936177820141ad64430290b6ad5e16421691dc9f3fa9907154b2e"
};
5 changes: 2 additions & 3 deletions scripts/transactions/createPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
// SPDX-License-Identifier: Apache-2.0
import { Transaction } from '@mysten/sui/transactions';
import { prepareMultisigTx } from '../utils/utils';
import { adminCapOwner } from '../config/constants';
import { adminCapOwner, adminCapID } from '../config/constants';
import { DeepBookClient } from '@mysten/deepbook-v3';
import { getFullnodeUrl, SuiClient } from '@mysten/sui/client';

(async () => {
// Update constant for env
const env = 'mainnet';
const adminCap = '0xd542cd47d94009452de200032ac80ff1ceb31bb5f9ed6df5d97c9ae54a1976dd';

// Initialize with balance managers if created
const balanceManagers = {
Expand All @@ -26,7 +25,7 @@ import { getFullnodeUrl, SuiClient } from '@mysten/sui/client';
url: getFullnodeUrl(env),
}),
balanceManagers: balanceManagers,
adminCap: adminCap,
adminCap: adminCapID[env],
});

const tx = new Transaction();
Expand Down

0 comments on commit 7a30c26

Please sign in to comment.