-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds the second operation flows * Operation 2 prep * Also action
- Loading branch information
1 parent
4a97892
commit 4fb9b9c
Showing
8 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import path from 'path'; | ||
import { TransactionBlock } from '@mysten/sui.js/transactions'; | ||
|
||
import { mainPackage } from '../../config/constants'; | ||
import { createDisplay } from '../../init/display_tp'; | ||
import { prepareMultisigTx, publishPackage } from '../../utils/utils'; | ||
|
||
export const secondTransaction = async () => { | ||
const constants = mainPackage.mainnet; | ||
const contractsFolder = path.resolve(__dirname + '../../../../packages'); | ||
const txb = new TransactionBlock(); | ||
|
||
publishPackage(txb, contractsFolder + '/utils'); | ||
publishPackage(txb, contractsFolder + '/denylist'); | ||
|
||
createDisplay({ | ||
txb, | ||
publisher: constants.publisherId, | ||
isSubdomain: true, | ||
suinsPackageIdV1: '0x00c2f85e07181b90c140b15c5ce27d863f93c4d9159d2a4e7bdaeb40e286d6f5', | ||
}); | ||
|
||
await prepareMultisigTx(txb, constants.adminAddress, 'mainnet'); | ||
}; | ||
|
||
secondTransaction(); |