@0xobelisk/sui-common 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,11 +6,6 @@ import { capitalizeAndRemoveUnderscores } from './generateSchema';
6
6
  import { readFileSync } from 'fs';
7
7
 
8
8
  export async function generateDeployHook(config: DubheConfig, srcPrefix: string) {
9
- console.log('\nšŸ“ Starting Deploy Hook Generation...');
10
- console.log(
11
- ` └─ Output path: ${srcPrefix}/contracts/${config.name}/sources/scripts/deploy_hook.move`
12
- );
13
-
14
9
  const path = `${srcPrefix}/contracts/${config.name}/sources/scripts/deploy_hook.move`;
15
10
  if (!existsSync(path)) {
16
11
  const code = `module ${config.name}::${config.name}_deploy_hook {
@@ -22,7 +17,6 @@ export async function generateDeployHook(config: DubheConfig, srcPrefix: string)
22
17
  }`;
23
18
  await formatAndWriteMove(code, path, 'formatAndWriteMove');
24
19
  }
25
- console.log('āœ… Deploy Hook Generation Complete\n');
26
20
  }
27
21
 
28
22
  export async function generateMigrate(config: DubheConfig, srcPrefix: string) {
@@ -5,12 +5,7 @@ import fs from 'node:fs/promises';
5
5
  import path from 'node:path';
6
6
 
7
7
  export async function generateSystem(config: DubheConfig, srcPrefix: string) {
8
- console.log('\nāš™ļø Starting System Generation...');
9
- console.log(` ā”œā”€ Generating systems`);
10
- console.log(` └─ Output path: ${srcPrefix}/contracts/${config.name}/sources/systems`);
11
-
12
8
  if (!existsSync(`${srcPrefix}/contracts/${config.name}/sources/systems`)) {
13
9
  await fs.mkdir(`${srcPrefix}/contracts/${config.name}/sources/systems`, { recursive: true });
14
10
  }
15
- console.log('āœ… System Generation Complete\n');
16
11
  }
@@ -19,9 +19,9 @@ export async function schemaGen(
19
19
  ) {
20
20
  console.log('\nšŸš€ Starting Schema Generation Process...');
21
21
  console.log('šŸ“‹ Project Configuration:');
22
- console.log(` ā”œā”€ Name: ${config.name}`);
23
- console.log(` ā”œā”€ Description: ${config.description || 'No description provided'}`);
24
- console.log(` ā”œā”€ Network: ${network || 'testnet'}`);
22
+ console.log(` └─ Name: ${config.name}`);
23
+ console.log(` └─ Description: ${config.description || 'No description provided'}`);
24
+ console.log(` └─ Network: ${network || 'testnet'}`);
25
25
 
26
26
  const path = srcPrefix ?? process.cwd();
27
27
 
@@ -61,5 +61,5 @@ export async function schemaGen(
61
61
  await generateSystem(config, path);
62
62
  await generateMigrate(config, path);
63
63
 
64
- console.log('āœ… Schema Generation Process Complete!\n');
64
+ console.log('\nāœ… Schema Generation Process Complete!\n');
65
65
  }