Skip to content

Commit

Permalink
Subname Release V2 (#119)
Browse files Browse the repository at this point in the history
* Adds the second operation flows

* Operation 2 prep

* Also action
  • Loading branch information
manolisliolios authored May 14, 2024
1 parent 4a97892 commit 4fb9b9c
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/suins-build-tx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- Disable Free Claims
- Profits to Treasury
- Transfer Reserved Names
- Subdomains V1
- Subdomains V2
sui_tools_image:
description: 'image reference of sui_tools'
default: 'mysten/sui-tools:mainnet'
Expand Down Expand Up @@ -112,15 +112,15 @@ jobs:
run: |
cd scripts && pnpm create-deepbook-pools
- name: Subdomains V1
if: ${{ inputs.transaction_type == 'Subdomains V1' }}
- name: Subdomains V2
if: ${{ inputs.transaction_type == 'Subdomains V2' }}
env:
NODE_ENV: production
GAS_OBJECT: ${{ inputs.gas_object_id }}
NETWORK: mainnet
ORIGIN: gh_action
run: |
cd scripts && pnpm subdomains::01
cd scripts && pnpm subdomains::02
- name: Show Transaction Data (To sign)
run: |
Expand Down
8 changes: 4 additions & 4 deletions packages/denylist/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 1
manifest_digest = "AE4C6486A8D92BDDD474964CD16CD856F093249C78092E55E3EE10AABECFD1E6"
manifest_digest = "1C84167604CF87169A914020CB310C1A1B60DE762E11FE6EE258940655B2498B"
deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600"

dependencies = [
Expand All @@ -12,11 +12,11 @@ dependencies = [

[[move.package]]
name = "MoveStdlib"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/move-stdlib" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/mainnet", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
name = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/mainnet", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ name = "MoveStdlib" },
Expand All @@ -31,6 +31,6 @@ dependencies = [
]

[move.toolchain-version]
compiler-version = "1.23.1"
compiler-version = "1.26.0"
edition = "2024.beta"
flavor = "sui"
2 changes: 1 addition & 1 deletion packages/denylist/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
edition = "2024.beta"

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/mainnet", override=true }
suins = { local = "../suins" }

[addresses]
Expand Down
2 changes: 1 addition & 1 deletion packages/suins/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "suins"
version = "0.0.2"
#mainnet
published-at="0xb7004c7914308557f7afbaf0dca8dd258e18e306cb7a45b28019f3d0a693f162"
published-at="0x00c2f85e07181b90c140b15c5ce27d863f93c4d9159d2a4e7bdaeb40e286d6f5"
edition = "2024.beta"

#testnet
Expand Down
8 changes: 4 additions & 4 deletions packages/utils/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 0
manifest_digest = "9F195F1D77D56C638BA73528DA40D52177BB39DA6ECED8C7F965AB7B2857A621"
manifest_digest = "25B169BC624F0C3A81458FFA44ACED5C929841F53D650DF93E6B03FC01829598"
deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600"

dependencies = [
Expand All @@ -12,11 +12,11 @@ dependencies = [

[[move.package]]
name = "MoveStdlib"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "mainnet", subdir = "crates/sui-framework/packages/move-stdlib" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/mainnet", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
name = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "mainnet", subdir = "crates/sui-framework/packages/sui-framework" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/mainnet", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ name = "MoveStdlib" },
Expand All @@ -31,6 +31,6 @@ dependencies = [
]

[move.toolchain-version]
compiler-version = "1.23.1"
compiler-version = "1.26.0"
edition = "2024.beta"
flavor = "sui"
2 changes: 1 addition & 1 deletion packages/utils/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
edition = "2024.beta"

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "mainnet", override=true }
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/mainnet", override=true }
suins = { local = "../suins" }

[addresses]
Expand Down
2 changes: 1 addition & 1 deletion scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"eslint:fix": "pnpm run eslint:check --fix",
"lint": "pnpm run eslint:check && pnpm run prettier:check",
"lint:fix": "pnpm run eslint:fix && pnpm run prettier:fix",
"subdomains::01": "pnpm ts-node transactions/subnames/01.ts"
"subdomains::02": "pnpm ts-node transactions/subnames/02.ts"
},
"keywords": [],
"author": "",
Expand Down
29 changes: 29 additions & 0 deletions scripts/transactions/subnames/02.ts
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();

0 comments on commit 4fb9b9c

Please sign in to comment.