From a43181704ff74b507048a2f6feb80e7a6a1bc4db Mon Sep 17 00:00:00 2001 From: Manolis Liolios Date: Mon, 22 Apr 2024 16:19:35 +0300 Subject: [PATCH] move to move-docs, minor fixes on setup scripts --- {docs => move-docs}/README.md | 0 {docs => move-docs}/admin.md | 0 {docs => move-docs}/architecture/Base.md | 0 {docs => move-docs}/auction.md | 0 {docs => move-docs}/config.md | 0 {docs => move-docs}/constants.md | 0 {docs => move-docs}/controller.md | 0 {docs => move-docs}/domain.md | 0 {docs => move-docs}/name_record.md | 0 {docs => move-docs}/registration_nft.md | 0 {docs => move-docs}/registry.md | 0 {docs => move-docs}/suins.md | 0 {docs => move-docs}/update_image.md | 0 scripts/config/constants.ts | 27 ++++++++++++++---------- scripts/init/authorization.ts | 1 - scripts/init/packages.ts | 4 ++-- scripts/init/types.ts | 4 +++- 17 files changed, 21 insertions(+), 15 deletions(-) rename {docs => move-docs}/README.md (100%) rename {docs => move-docs}/admin.md (100%) rename {docs => move-docs}/architecture/Base.md (100%) rename {docs => move-docs}/auction.md (100%) rename {docs => move-docs}/config.md (100%) rename {docs => move-docs}/constants.md (100%) rename {docs => move-docs}/controller.md (100%) rename {docs => move-docs}/domain.md (100%) rename {docs => move-docs}/name_record.md (100%) rename {docs => move-docs}/registration_nft.md (100%) rename {docs => move-docs}/registry.md (100%) rename {docs => move-docs}/suins.md (100%) rename {docs => move-docs}/update_image.md (100%) diff --git a/docs/README.md b/move-docs/README.md similarity index 100% rename from docs/README.md rename to move-docs/README.md diff --git a/docs/admin.md b/move-docs/admin.md similarity index 100% rename from docs/admin.md rename to move-docs/admin.md diff --git a/docs/architecture/Base.md b/move-docs/architecture/Base.md similarity index 100% rename from docs/architecture/Base.md rename to move-docs/architecture/Base.md diff --git a/docs/auction.md b/move-docs/auction.md similarity index 100% rename from docs/auction.md rename to move-docs/auction.md diff --git a/docs/config.md b/move-docs/config.md similarity index 100% rename from docs/config.md rename to move-docs/config.md diff --git a/docs/constants.md b/move-docs/constants.md similarity index 100% rename from docs/constants.md rename to move-docs/constants.md diff --git a/docs/controller.md b/move-docs/controller.md similarity index 100% rename from docs/controller.md rename to move-docs/controller.md diff --git a/docs/domain.md b/move-docs/domain.md similarity index 100% rename from docs/domain.md rename to move-docs/domain.md diff --git a/docs/name_record.md b/move-docs/name_record.md similarity index 100% rename from docs/name_record.md rename to move-docs/name_record.md diff --git a/docs/registration_nft.md b/move-docs/registration_nft.md similarity index 100% rename from docs/registration_nft.md rename to move-docs/registration_nft.md diff --git a/docs/registry.md b/move-docs/registry.md similarity index 100% rename from docs/registry.md rename to move-docs/registry.md diff --git a/docs/suins.md b/move-docs/suins.md similarity index 100% rename from docs/suins.md rename to move-docs/suins.md diff --git a/docs/update_image.md b/move-docs/update_image.md similarity index 100% rename from docs/update_image.md rename to move-docs/update_image.md diff --git a/scripts/config/constants.ts b/scripts/config/constants.ts index e5495f38..52fc24b7 100644 --- a/scripts/config/constants.ts +++ b/scripts/config/constants.ts @@ -19,6 +19,8 @@ export type PackageInfo = { discountHouseId: string; }, renewalsPackageId: string; + subNamesPackageId: string; + tempSubdomainsProxyPackageId: string; } export const mainPackage: Config = { @@ -37,21 +39,24 @@ export const mainPackage: Config = { }, directSetupPackageId: '0xdac22652eb400beb1f5e2126459cae8eedc116b73b8ad60b71e3e8d7fdb317e2', renewalsPackageId: '0xd5e5f74126e7934e35991643b0111c3361827fc0564c83fa810668837c6f0b0f', - + subNamesPackageId: 'TODO: Fill this in...', + tempSubdomainsProxyPackageId: 'TODO: Fill this in...' }, testnet: { - packageId: '0x701b8ca1c40f11288a1ed2de0a9a2713e972524fbab748a7e6c137225361653f', - registrationPackageId: 'TODO: Fill this in', - publisherId: '0xd12afb9b5e4a8dc875d22fc927e78952dc9bd84730b33c02e9fd30949c100e38', - adminAddress: '0x7bdfc33239bd05af27d6989cee5455da4bc69ed4cfab5d178434a96ff412514a', - adminCap: normalizeSuiAddress('0xadc8b4c3fa0cc022e995968e06fca1d4a47f782f7bb0e88c52730eca77cdae03'), - suins: '0xedc672fadedee348108618da7555f771d4fec8d3331779a8411ff8184aded726', - directSetupPackageId: '0x9af70a4cb6d7144e68fd972eef672a74c7fe41aa5c0bb67ba40d7d1ae87bfb19', + packageId: '0x22fa05f21b1ad71442491220bb9338f7b7095fe35000ef88d5400d28523bdd93', + registrationPackageId: '0x4255184a0143c0ce4394a3f16a6f5aa5d64507269e54e51ea396d569fe8f1ba5', + publisherId: '0x62d9690d7e6234bfd57170a89c9c8ec54604ea31cefaa3869e8be4912ee1a4ab', + adminAddress: '0xfe09cf0b3d77678b99250572624bf74fe3b12af915c5db95f0ed5d755612eb68', + adminCap: normalizeSuiAddress('0x5def5bd9dc94b7d418d081a91c533ec619fb4350e6c4e4602aea96fd49331b15'), + suins: '0x300369e8909b9a6464da265b9a5a9ab6fe2158a040e84e808628cde7a07ee5a3', + directSetupPackageId: '0x6ed81fd808a23eae2da488052334d50478b36527474fc99707c1aed0e43104b1', discountsPackage: { - packageId: '0x319364827e018833f545d8291f0482c5859ead75663543dda153b50df83244eb', - discountHouseId: '0x5cee9eadc06ae2a330ba8caee517fc1502dffae6474454c45f79f0b00d148ec4', + packageId: 'TODO: Fill this in...', + discountHouseId: 'TODO: Fill this in...', }, - renewalsPackageId: '', + renewalsPackageId: '0x54800ebb4606fd0c03b4554976264373b3374eeb3fd63e7ff69f31cac786ba8c', + subNamesPackageId: '0x3c272bc45f9157b7818ece4f7411bdfa8af46303b071aca4e18c03119c9ff636', + tempSubdomainsProxyPackageId: '0x3489ab5dcd346afee8b681267bcab2583a5eba9855680ec9931355e50e21c148' } } diff --git a/scripts/init/authorization.ts b/scripts/init/authorization.ts index 5b6fc38c..b1b492d5 100644 --- a/scripts/init/authorization.ts +++ b/scripts/init/authorization.ts @@ -12,7 +12,6 @@ export const authorizeApp = ({ type: string; suinsPackageIdV1: string; }) => { - console.log({adminCap, suins, type, suinsPackageIdV1}) txb.moveCall({ target: `${suinsPackageIdV1}::suins::authorize_app`, arguments: [ diff --git a/scripts/init/packages.ts b/scripts/init/packages.ts index d7526bf3..d139b7d4 100644 --- a/scripts/init/packages.ts +++ b/scripts/init/packages.ts @@ -231,13 +231,13 @@ export const Packages = (network: Network) => { manifest: SuiNSDependentPackages(rev, 'discounts', 'day_one = { local = "../day_one" }'), processPublish: (data: SuiTransactionBlockResponse) => { const { packageId, upgradeCap } = parseCorePackageObjects(data); - const couponHouse = parseCreatedObject(data, `${packageId}::house::DiscountHouse`); + const discountHouse = parseCreatedObject(data, `${packageId}::house::DiscountHouse`); return { packageId, upgradeCap, authorizationType: `${packageId}::house::DiscountHouseApp`, - couponHouse + discountHouse } } }, diff --git a/scripts/init/types.ts b/scripts/init/types.ts index dd4913e2..82e70226 100644 --- a/scripts/init/types.ts +++ b/scripts/init/types.ts @@ -7,7 +7,9 @@ export type PackageInfo = { DayOne: Package; Coupons: Coupons; Subdomains: Package; - Discounts: Package; + Discounts: Package & { + discountHouse: string; + }; TempSubdomainProxy: Package; }