aiprotocol-sbi 1.2.4 → 1.2.6

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.
@@ -35,6 +35,7 @@ export declare class BackendApiService {
35
35
  network: string;
36
36
  wallet_address: string;
37
37
  type: "GRANT" | "SELF";
38
+ links: string;
38
39
  }): Promise<any>;
39
40
  submitApplication(application: {
40
41
  bot_id: string;
@@ -56,10 +56,10 @@ let EconomyLaunchCommand = EconomyLaunchCommand_1 = class EconomyLaunchCommand {
56
56
  }
57
57
  const name = this.security.sanitizeString(opts.name, 64);
58
58
  const ticker = tickerCheck.value;
59
- const description = opts.description;
60
- const image = opts.image
59
+ const description = opts.description
61
60
  ? this.security.sanitizeString(opts.description, 512)
62
61
  : undefined;
62
+ const image = opts.image;
63
63
  if (!opts.yes && !opts.json) {
64
64
  this.output.blank();
65
65
  this.output.row("Name", name);
@@ -30,7 +30,6 @@ let GrantStatusCommand = class GrantStatusCommand {
30
30
  .action(async (opts) => {
31
31
  const cfg = this.config.load();
32
32
  const botId = opts.botId || cfg.botId;
33
- console.log(cfg, "cfg");
34
33
  if (!botId) {
35
34
  const msg = "No bot ID provided. Pass --botId or configure a default bot.";
36
35
  if (opts.json)
@@ -78,7 +77,7 @@ let GrantStatusCommand = class GrantStatusCommand {
78
77
  this.output.blank();
79
78
  this.output.info("Your agent is ready to launch economy!");
80
79
  this.output.blank();
81
- this.output.info(`Next: aiprotocol-sbi economy launch --name "token name" --ticker "token ticker" --description "token description"`);
80
+ this.output.info(`Next: aiprotocol-sbi economy launch --name "token name" --ticker "token ticker" --description "token description" --image "link"`);
82
81
  this.output.blank();
83
82
  }
84
83
  catch (err) {
@@ -83,7 +83,7 @@ let PaymentVerifyCommand = class PaymentVerifyCommand {
83
83
  this.output.blank();
84
84
  this.output.info("Your agent is ready to launch economy!");
85
85
  this.output.blank();
86
- this.output.info(`Next: aiprotocol-sbi economy launch --name "token name" --ticker "token ticker" --description "token description"`);
86
+ this.output.info(`Next: aiprotocol-sbi economy launch --name "token name" --ticker "token ticker" --description "token description" --image "link"`);
87
87
  this.output.blank();
88
88
  }
89
89
  catch (err) {
@@ -170,7 +170,7 @@ let SetupCommand = class SetupCommand {
170
170
  if (!opts.applicantName ||
171
171
  !opts.applicantEmail ||
172
172
  !opts.purpose ||
173
- !!opts.links) {
173
+ !opts.links) {
174
174
  throw new Error("GRANT requires --applicant-name, --applicant-email, --purpose --links");
175
175
  }
176
176
  this.output.section("AIP Grant Application");
@@ -182,6 +182,7 @@ let SetupCommand = class SetupCommand {
182
182
  network,
183
183
  wallet_address: wallet.address,
184
184
  type: "GRANT",
185
+ links: opts.links,
185
186
  });
186
187
  this.output.success("Grant application submitted!");
187
188
  this.output.row("Application ID", result._id);