MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / executeApp

Function executeApp

CLI/commands/ST20Generator.js:19–42  ·  view source on GitHub ↗
(_ticker, _transferOwnership, _name, _details, _divisible)

Source from the content-addressed store, hash-verified

17let polyToken;
18
19async function executeApp(_ticker, _transferOwnership, _name, _details, _divisible) {
20 common.logAsciiBull();
21 console.log("********************************************");
22 console.log("Welcome to the Command-Line ST-20 Generator.");
23 console.log("********************************************");
24 console.log("The following script will create a new ST-20 according to the parameters you enter.");
25 console.log("Issuer Account: " + Issuer.address + "\n");
26
27 await setup();
28
29 try {
30 await step_ticker_registration(_ticker);
31 if (!tokenLaunched) {
32 await step_transfer_ticker_ownership(_transferOwnership);
33 await step_token_deploy(_name, _details, _divisible);
34 }
35 if (typeof _divisible === 'undefined') {
36 await tokenManager.executeApp(tokenSymbol);
37 }
38 } catch (err) {
39 console.log(err);
40 return;
41 }
42};
43
44async function setup() {
45 try {

Callers 1

ST20Generator.jsFile · 0.70

Calls 4

step_ticker_registrationFunction · 0.85
step_token_deployFunction · 0.85
setupFunction · 0.70

Tested by

no test coverage detected