Skip to content

Commit

Permalink
refactor: separate update and transfer scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Jun 30, 2023
1 parent 964d965 commit 24e36c9
Show file tree
Hide file tree
Showing 7 changed files with 379 additions and 347 deletions.
7 changes: 0 additions & 7 deletions scripts/data.ts

This file was deleted.

11 changes: 6 additions & 5 deletions scripts/transfer_domains.ts
@@ -1,9 +1,10 @@
import { EWC_CHAIN_ID } from '@energyweb/credential-governance';
import { Wallet } from 'ethers';
import { transferDomain } from '../src/utils/domains';
import { domains, ewcPrivateKey } from './data';
import { transferDomain } from '../src/utils/transfer-domains';

export const newOwner = '0x3451aaEDD3f25204D483aADCF060e344155DEB02';
export const domains = ['energyweb.iam.ewc'];
export const newOwner = '0x205801aAbf81B65B3b7C52041991994d6c2e9F9d';
export const ewcPrivateKey = Wallet.createRandom().privateKey;

(async function () {
try {
Expand All @@ -16,8 +17,8 @@ export const newOwner = '0x3451aaEDD3f25204D483aADCF060e344155DEB02';
dryRun: true,
});
}
console.log('Domains are transferred');
process.stdout.write('Domains are transferred\n');
} catch (e) {
console.error('Error transferring domains:', e);
process.stderr.write(`Error transferring domains: ${e}\n`);
}
})();
333 changes: 0 additions & 333 deletions src/utils/domains.ts

This file was deleted.

0 comments on commit 24e36c9

Please sign in to comment.