@solana-mobile/dapp-store-cli 0.9.0 → 0.9.1

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.
package/lib/CliUtils.js CHANGED
@@ -159,7 +159,7 @@ export var Constants = function Constants() {
159
159
  "use strict";
160
160
  _class_call_check(this, Constants);
161
161
  };
162
- _define_property(Constants, "CLI_VERSION", "0.9.0");
162
+ _define_property(Constants, "CLI_VERSION", "0.9.1");
163
163
  _define_property(Constants, "CONFIG_FILE_NAME", "config.yaml");
164
164
  _define_property(Constants, "DEFAULT_RPC_DEVNET", "https://api.devnet.solana.com");
165
165
  _define_property(Constants, "DEFAULT_PRIORITY_FEE", 500000);
@@ -181,6 +181,7 @@ var createAppNft = function() {
181
181
  publisher,
182
182
  mintAddress
183
183
  ], {
184
+ commitment: "confirmed",
184
185
  minContextSlot: blockhash.context.slot
185
186
  })
186
187
  ];
@@ -229,7 +230,10 @@ export var createAppCommand = function() {
229
230
  switch(_state.label){
230
231
  case 0:
231
232
  signer = param.signer, url = param.url, dryRun = param.dryRun, publisherMintAddress = param.publisherMintAddress, storageParams = param.storageParams, _param_priorityFeeLamports = param.priorityFeeLamports, priorityFeeLamports = _param_priorityFeeLamports === void 0 ? Constants.DEFAULT_PRIORITY_FEE : _param_priorityFeeLamports;
232
- connection = new Connection(url);
233
+ connection = new Connection(url, {
234
+ commitment: "confirmed",
235
+ disableRetryOnRateLimit: true
236
+ });
233
237
  return [
234
238
  4,
235
239
  loadPublishDetailsWithChecks()
@@ -180,6 +180,7 @@ var createPublisherNft = function() {
180
180
  publisher,
181
181
  mintAddress
182
182
  ], {
183
+ commitment: "confirmed",
183
184
  minContextSlot: blockhash.context.slot
184
185
  })
185
186
  ];
@@ -228,7 +229,10 @@ export var createPublisherCommand = function() {
228
229
  switch(_state.label){
229
230
  case 0:
230
231
  signer = param.signer, url = param.url, dryRun = param.dryRun, storageParams = param.storageParams, _param_priorityFeeLamports = param.priorityFeeLamports, priorityFeeLamports = _param_priorityFeeLamports === void 0 ? Constants.DEFAULT_PRIORITY_FEE : _param_priorityFeeLamports;
231
- connection = new Connection(url);
232
+ connection = new Connection(url, {
233
+ commitment: "confirmed",
234
+ disableRetryOnRateLimit: true
235
+ });
232
236
  return [
233
237
  4,
234
238
  loadPublishDetailsWithChecks()
@@ -213,6 +213,7 @@ var createReleaseNft = function() {
213
213
  publisher,
214
214
  releaseMintAddress
215
215
  ], {
216
+ commitment: "confirmed",
216
217
  minContextSlot: blockhash.context.slot
217
218
  })
218
219
  ];
@@ -261,7 +262,10 @@ export var createReleaseCommand = function() {
261
262
  switch(_state.label){
262
263
  case 0:
263
264
  appMintAddress = param.appMintAddress, buildToolsPath = param.buildToolsPath, signer = param.signer, url = param.url, _param_dryRun = param.dryRun, dryRun = _param_dryRun === void 0 ? false : _param_dryRun, storageParams = param.storageParams, _param_priorityFeeLamports = param.priorityFeeLamports, priorityFeeLamports = _param_priorityFeeLamports === void 0 ? Constants.DEFAULT_PRIORITY_FEE : _param_priorityFeeLamports;
264
- connection = new Connection(url);
265
+ connection = new Connection(url, {
266
+ commitment: "confirmed",
267
+ disableRetryOnRateLimit: true
268
+ });
265
269
  return [
266
270
  4,
267
271
  loadPublishDetailsWithChecks(buildToolsPath)
@@ -228,7 +228,7 @@ var AaptPrefixes = {
228
228
  packagePrefix: "package: name=",
229
229
  verCodePrefix: "versionCode=",
230
230
  verNamePrefix: "versionName=",
231
- sdkPrefix: "sdkVersion:",
231
+ sdkPrefix: "(?:minSdk|sdk)Version:",
232
232
  debuggableApkPrefix: "application-debuggable",
233
233
  localePrefix: "locales: "
234
234
  };
@@ -670,7 +670,7 @@ var getAndroidDetails = function() {
670
670
  versionCode = new RegExp(AaptPrefixes.verCodePrefix + AaptPrefixes.quoteRegex).exec(stdout);
671
671
  versionName = new RegExp(AaptPrefixes.verNamePrefix + AaptPrefixes.quoteRegex).exec(stdout);
672
672
  minSdk = new RegExp(AaptPrefixes.sdkPrefix + AaptPrefixes.quoteRegex).exec(stdout);
673
- permissions = _to_consumable_array(stdout.matchAll(/uses-permission: name='(.*)'/g)).flatMap(function(permission) {
673
+ permissions = _to_consumable_array(stdout.matchAll(/(?:uses-permission|uses-permission-sdk-23): name='([^']*)'/g)).flatMap(function(permission) {
674
674
  return permission[1];
675
675
  });
676
676
  locales = new RegExp(AaptPrefixes.localePrefix + AaptPrefixes.quoteNonLazyRegex).exec(stdout);
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-mobile/dapp-store-cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -53,7 +53,7 @@
53
53
  "dependencies": {
54
54
  "@aws-sdk/client-s3": "^3.321.1",
55
55
  "@metaplex-foundation/js-plugin-aws": "^0.20.0",
56
- "@solana-mobile/dapp-store-publishing-tools": "workspace:0.9.0",
56
+ "@solana-mobile/dapp-store-publishing-tools": "workspace:0.9.1",
57
57
  "@solana/web3.js": "1.68.0",
58
58
  "@types/semver": "^7.3.13",
59
59
  "ajv": "^8.11.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-mobile/dapp-store-cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@aws-sdk/client-s3": "^3.321.1",
48
48
  "@metaplex-foundation/js-plugin-aws": "^0.20.0",
49
- "@solana-mobile/dapp-store-publishing-tools": "0.9.0",
49
+ "@solana-mobile/dapp-store-publishing-tools": "0.9.1",
50
50
  "@solana/web3.js": "1.68.0",
51
51
  "@types/semver": "^7.3.13",
52
52
  "ajv": "^8.11.0",
package/src/CliUtils.ts CHANGED
@@ -18,7 +18,7 @@ import { awsStorage } from "@metaplex-foundation/js-plugin-aws";
18
18
  import { S3StorageManager } from "./config/index.js";
19
19
 
20
20
  export class Constants {
21
- static CLI_VERSION = "0.9.0";
21
+ static CLI_VERSION = "0.9.1";
22
22
  static CONFIG_FILE_NAME = "config.yaml";
23
23
  static DEFAULT_RPC_DEVNET = "https://api.devnet.solana.com";
24
24
  static DEFAULT_PRIORITY_FEE = 500000;
@@ -57,6 +57,7 @@ const createAppNft = async (
57
57
  publisher,
58
58
  mintAddress,
59
59
  ], {
60
+ commitment: "confirmed",
60
61
  minContextSlot: blockhash.context.slot
61
62
  });
62
63
  return { appAddress: mintAddress.publicKey.toBase58(), transactionSignature: txSig };
@@ -91,7 +92,13 @@ export const createAppCommand = async ({
91
92
  storageParams,
92
93
  priorityFeeLamports = Constants.DEFAULT_PRIORITY_FEE,
93
94
  }: CreateAppCommandInput) => {
94
- const connection = new Connection(url);
95
+ const connection = new Connection(
96
+ url,
97
+ {
98
+ commitment: "confirmed",
99
+ disableRetryOnRateLimit: true,
100
+ }
101
+ );
95
102
 
96
103
  const { app: appDetails, publisher: publisherDetails } =
97
104
  await loadPublishDetailsWithChecks();
@@ -48,6 +48,7 @@ const createPublisherNft = async (
48
48
  publisher,
49
49
  mintAddress,
50
50
  ], {
51
+ commitment: "confirmed",
51
52
  minContextSlot: blockhash.context.slot
52
53
  });
53
54
  return { publisherAddress: mintAddress.publicKey.toBase58(), transactionSignature: txSig};
@@ -78,7 +79,13 @@ export const createPublisherCommand = async ({
78
79
  storageParams: string;
79
80
  priorityFeeLamports: number;
80
81
  }) => {
81
- const connection = new Connection(url);
82
+ const connection = new Connection(
83
+ url,
84
+ {
85
+ commitment: "confirmed",
86
+ disableRetryOnRateLimit: true,
87
+ }
88
+ );
82
89
 
83
90
  const { publisher: publisherDetails } = await loadPublishDetailsWithChecks();
84
91
 
@@ -77,6 +77,7 @@ const createReleaseNft = async ({
77
77
  publisher,
78
78
  releaseMintAddress,
79
79
  ], {
80
+ commitment: "confirmed",
80
81
  minContextSlot: blockhash.context.slot,
81
82
  });
82
83
  return { releaseAddress: releaseMintAddress.publicKey.toBase58(), transactionSignature: txSig };
@@ -103,7 +104,13 @@ export const createReleaseCommand = async ({
103
104
  storageParams,
104
105
  priorityFeeLamports = Constants.DEFAULT_PRIORITY_FEE,
105
106
  }: CreateReleaseCommandInput) => {
106
- const connection = new Connection(url);
107
+ const connection = new Connection(
108
+ url,
109
+ {
110
+ commitment: "confirmed",
111
+ disableRetryOnRateLimit: true,
112
+ }
113
+ );
107
114
 
108
115
  const config = await loadPublishDetailsWithChecks(buildToolsPath);
109
116
 
@@ -38,7 +38,7 @@ const AaptPrefixes = {
38
38
  packagePrefix: "package: name=",
39
39
  verCodePrefix: "versionCode=",
40
40
  verNamePrefix: "versionName=",
41
- sdkPrefix: "sdkVersion:",
41
+ sdkPrefix: "(?:minSdk|sdk)Version:",
42
42
  debuggableApkPrefix: "application-debuggable",
43
43
  localePrefix: "locales: ",
44
44
  };
@@ -272,7 +272,7 @@ const getAndroidDetails = async (
272
272
  const minSdk = new RegExp(
273
273
  AaptPrefixes.sdkPrefix + AaptPrefixes.quoteRegex
274
274
  ).exec(stdout);
275
- const permissions = [...stdout.matchAll(/uses-permission: name='(.*)'/g)].flatMap(permission => permission[1]);
275
+ const permissions = [...stdout.matchAll(/(?:uses-permission|uses-permission-sdk-23): name='([^']*)'/g)].flatMap(permission => permission[1]);
276
276
  const locales = new RegExp(
277
277
  AaptPrefixes.localePrefix + AaptPrefixes.quoteNonLazyRegex
278
278
  ).exec(stdout);