@solana-mobile/dapp-store-publishing-tools 0.4.1 → 0.4.3

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.
Files changed (92) hide show
  1. package/lib/CoreUtils.js +226 -0
  2. package/lib/create/AppCore.js +197 -0
  3. package/lib/create/PublisherCore.js +186 -0
  4. package/lib/create/ReleaseCore.js +709 -0
  5. package/lib/{esm/create → create}/index.js +0 -1
  6. package/lib/generated/appJsonMetadata.d.js +5 -0
  7. package/lib/{esm/generated → generated}/index.js +0 -1
  8. package/lib/generated/publisherJsonMetadata.d.js +5 -0
  9. package/lib/generated/releaseJsonMetadata.d.js +5 -0
  10. package/lib/{esm/index.js → index.js} +0 -1
  11. package/lib/publish/PublishCoreAttestation.js +161 -0
  12. package/lib/publish/PublishCoreRemove.js +224 -0
  13. package/lib/publish/PublishCoreSubmit.js +236 -0
  14. package/lib/publish/PublishCoreSupport.js +221 -0
  15. package/lib/publish/PublishCoreUpdate.js +236 -0
  16. package/lib/publish/dapp_publisher_portal.js +202 -0
  17. package/lib/{esm/publish → publish}/index.js +0 -1
  18. package/lib/publish/types.js +1 -0
  19. package/lib/schemas/appJsonMetadata.json +58 -0
  20. package/lib/schemas/publisherJsonMetadata.json +85 -0
  21. package/lib/schemas/releaseJsonMetadata.json +230 -0
  22. package/lib/types/index.d.js +0 -0
  23. package/lib/types.js +1 -0
  24. package/lib/validate/CoreValidation.js +99 -0
  25. package/package.json +9 -6
  26. package/lib/esm/CoreUtils.js +0 -22
  27. package/lib/esm/CoreUtils.js.map +0 -1
  28. package/lib/esm/create/AppCore.js +0 -47
  29. package/lib/esm/create/AppCore.js.map +0 -1
  30. package/lib/esm/create/PublisherCore.js +0 -43
  31. package/lib/esm/create/PublisherCore.js.map +0 -1
  32. package/lib/esm/create/ReleaseCore.js +0 -141
  33. package/lib/esm/create/ReleaseCore.js.map +0 -1
  34. package/lib/esm/create/index.js.map +0 -1
  35. package/lib/esm/generated/index.js.map +0 -1
  36. package/lib/esm/index.js.map +0 -1
  37. package/lib/esm/publish/PublishCoreAttestation.js +0 -14
  38. package/lib/esm/publish/PublishCoreAttestation.js.map +0 -1
  39. package/lib/esm/publish/PublishCoreRemove.js +0 -62
  40. package/lib/esm/publish/PublishCoreRemove.js.map +0 -1
  41. package/lib/esm/publish/PublishCoreSubmit.js +0 -74
  42. package/lib/esm/publish/PublishCoreSubmit.js.map +0 -1
  43. package/lib/esm/publish/PublishCoreSupport.js +0 -59
  44. package/lib/esm/publish/PublishCoreSupport.js.map +0 -1
  45. package/lib/esm/publish/PublishCoreUpdate.js +0 -74
  46. package/lib/esm/publish/PublishCoreUpdate.js.map +0 -1
  47. package/lib/esm/publish/dapp_publisher_portal.js +0 -57
  48. package/lib/esm/publish/dapp_publisher_portal.js.map +0 -1
  49. package/lib/esm/publish/index.js.map +0 -1
  50. package/lib/esm/publish/types.js +0 -2
  51. package/lib/esm/publish/types.js.map +0 -1
  52. package/lib/esm/schemas/appJsonMetadata.json +0 -58
  53. package/lib/esm/schemas/publisherJsonMetadata.json +0 -85
  54. package/lib/esm/schemas/releaseJsonMetadata.json +0 -230
  55. package/lib/esm/types.js +0 -2
  56. package/lib/esm/types.js.map +0 -1
  57. package/lib/esm/validate/CoreValidation.js +0 -57
  58. package/lib/esm/validate/CoreValidation.js.map +0 -1
  59. package/lib/types/CoreUtils.d.ts +0 -11
  60. package/lib/types/CoreUtils.d.ts.map +0 -1
  61. package/lib/types/create/AppCore.d.ts +0 -11
  62. package/lib/types/create/AppCore.d.ts.map +0 -1
  63. package/lib/types/create/PublisherCore.d.ts +0 -11
  64. package/lib/types/create/PublisherCore.d.ts.map +0 -1
  65. package/lib/types/create/ReleaseCore.d.ts +0 -20
  66. package/lib/types/create/ReleaseCore.d.ts.map +0 -1
  67. package/lib/types/create/index.d.ts +0 -4
  68. package/lib/types/create/index.d.ts.map +0 -1
  69. package/lib/types/generated/index.d.ts +0 -4
  70. package/lib/types/generated/index.d.ts.map +0 -1
  71. package/lib/types/index.d.ts +0 -5
  72. package/lib/types/index.d.ts.map +0 -1
  73. package/lib/types/publish/PublishCoreAttestation.d.ts +0 -7
  74. package/lib/types/publish/PublishCoreAttestation.d.ts.map +0 -1
  75. package/lib/types/publish/PublishCoreRemove.d.ts +0 -11
  76. package/lib/types/publish/PublishCoreRemove.d.ts.map +0 -1
  77. package/lib/types/publish/PublishCoreSubmit.d.ts +0 -12
  78. package/lib/types/publish/PublishCoreSubmit.d.ts.map +0 -1
  79. package/lib/types/publish/PublishCoreSupport.d.ts +0 -11
  80. package/lib/types/publish/PublishCoreSupport.d.ts.map +0 -1
  81. package/lib/types/publish/PublishCoreUpdate.d.ts +0 -13
  82. package/lib/types/publish/PublishCoreUpdate.d.ts.map +0 -1
  83. package/lib/types/publish/dapp_publisher_portal.d.ts +0 -26
  84. package/lib/types/publish/dapp_publisher_portal.d.ts.map +0 -1
  85. package/lib/types/publish/index.d.ts +0 -6
  86. package/lib/types/publish/index.d.ts.map +0 -1
  87. package/lib/types/publish/types.d.ts +0 -8
  88. package/lib/types/publish/types.d.ts.map +0 -1
  89. package/lib/types/types.d.ts +0 -76
  90. package/lib/types/types.d.ts.map +0 -1
  91. package/lib/types/validate/CoreValidation.d.ts +0 -6
  92. package/lib/types/validate/CoreValidation.d.ts.map +0 -1
@@ -1,85 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "schema_version": {
5
- "type": "string"
6
- },
7
- "name": {
8
- "type": "string",
9
- "maxLength": 32
10
- },
11
- "image": {
12
- "type": "string"
13
- },
14
- "properties": {
15
- "type": "object",
16
- "properties": {
17
- "category": {
18
- "type": "string"
19
- },
20
- "creators": {
21
- "type": "array",
22
- "items": {
23
- "type": "object",
24
- "properties": {
25
- "address": {
26
- "type": "string"
27
- }
28
- },
29
- "required": [
30
- "address"
31
- ]
32
- }
33
- }
34
- },
35
- "required": [
36
- "category",
37
- "creators"
38
- ]
39
- },
40
- "extensions": {
41
- "type": "object",
42
- "properties": {
43
- "solana_dapp_store": {
44
- "type": "object",
45
- "properties": {
46
- "publisher_details": {
47
- "type": "object",
48
- "properties": {
49
- "name": {
50
- "type": "string"
51
- },
52
- "website": {
53
- "type": "string",
54
- "pattern": "^https://"
55
- },
56
- "contact": {
57
- "type": "string",
58
- "pattern": "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
59
- }
60
- },
61
- "required": [
62
- "name",
63
- "website",
64
- "contact"
65
- ]
66
- }
67
- },
68
- "required": [
69
- "publisher_details"
70
- ]
71
- }
72
- },
73
- "required": [
74
- "solana_dapp_store"
75
- ]
76
- }
77
- },
78
- "required": [
79
- "schema_version",
80
- "name",
81
- "image",
82
- "properties",
83
- "extensions"
84
- ]
85
- }
@@ -1,230 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "schema_version": {
5
- "type": "string"
6
- },
7
- "name": {
8
- "type": "string",
9
- "maxLength": 32
10
- },
11
- "description": {
12
- "type": "string"
13
- },
14
- "image": {
15
- "type": "string"
16
- },
17
- "properties": {
18
- "type": "object",
19
- "properties": {
20
- "category": {
21
- "type": "string"
22
- },
23
- "creators": {
24
- "type": "array",
25
- "items": {
26
- "type": "object",
27
- "properties": {
28
- "address": {
29
- "type": "string"
30
- }
31
- },
32
- "required": ["address"]
33
- }
34
- }
35
- }
36
- },
37
- "extensions": {
38
- "type": "object",
39
- "properties": {
40
- "solana_dapp_store": {
41
- "type": "object",
42
- "properties": {
43
- "publisher_details": {
44
- "type": "object",
45
- "properties": {
46
- "name": {
47
- "type": "string"
48
- },
49
- "website": {
50
- "type": "string",
51
- "pattern": "^https://"
52
- },
53
- "contact": {
54
- "type": "string",
55
- "pattern": "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
56
- }
57
- },
58
- "required": ["name", "website", "contact"]
59
- },
60
- "release_details": {
61
- "type": "object",
62
- "properties": {
63
- "updated_on": {
64
- "type": "string"
65
- },
66
- "license_url": {
67
- "type": "string",
68
- "pattern": "^https://"
69
- },
70
- "copyright_url": {
71
- "type": "string",
72
- "pattern": "^https://"
73
- },
74
- "privacy_policy_url": {
75
- "type": "string",
76
- "pattern": "^https://"
77
- },
78
- "localized_resources": {
79
- "type": "object",
80
- "properties": {
81
- "short_description": {
82
- "type": "string",
83
- "maxLength": 50
84
- },
85
- "long_description": {
86
- "type": "string"
87
- },
88
- "new_in_version": {
89
- "type": "string"
90
- },
91
- "saga_features": {
92
- "type": "string"
93
- },
94
- "name": {
95
- "type": "string"
96
- }
97
- },
98
- "required": ["short_description", "long_description", "new_in_version", "name"]
99
- }
100
- },
101
- "required": [
102
- "updated_on",
103
- "license_url",
104
- "copyright_url",
105
- "privacy_policy_url",
106
- "localized_resources"
107
- ]
108
- },
109
- "media": {
110
- "type": "array",
111
- "items": {
112
- "type": "object",
113
- "properties": {
114
- "mime": {
115
- "type": "string"
116
- },
117
- "purpose": {
118
- "type": "string"
119
- },
120
- "width": {
121
- "type": "integer"
122
- },
123
- "height": {
124
- "type": "integer"
125
- },
126
- "sha256": {
127
- "type": "string"
128
- },
129
- "uri": {
130
- "type": "string"
131
- }
132
- },
133
- "required": ["mime", "purpose", "width", "height", "sha256"]
134
- }
135
- },
136
- "files": {
137
- "type": "array",
138
- "items": {
139
- "type": "object",
140
- "properties": {
141
- "mime": {
142
- "type": "string"
143
- },
144
- "purpose": {
145
- "type": "string"
146
- },
147
- "size": {
148
- "type": "integer"
149
- },
150
- "sha256": {
151
- "type": "string"
152
- },
153
- "uri": {
154
- "type": "string"
155
- }
156
- },
157
- "required": ["mime", "purpose", "size", "sha256"]
158
- }
159
- },
160
- "android_details": {
161
- "type": "object",
162
- "properties": {
163
- "android_package": {
164
- "type": "string"
165
- },
166
- "version_code": {
167
- "type": "integer"
168
- },
169
- "version": {
170
- "type": "string"
171
- },
172
- "min_sdk": {
173
- "type": "integer"
174
- },
175
- "permissions": {
176
- "type": "array",
177
- "items": {
178
- "type": "string"
179
- }
180
- },
181
- "locales": {
182
- "type": "array",
183
- "items": {
184
- "type": "string"
185
- }
186
- }
187
- },
188
- "required": [
189
- "android_package",
190
- "version_code",
191
- "version",
192
- "min_sdk",
193
- "permissions",
194
- "locales"
195
- ]
196
- }
197
- },
198
- "required": [
199
- "publisher_details",
200
- "release_details",
201
- "media",
202
- "files",
203
- "android_details"
204
- ]
205
- },
206
- "i18n": {
207
- "type": "object",
208
- "patternProperties": {
209
- "^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{2,8})*$": {
210
- "type": "object",
211
- "additionalProperties": {
212
- "type": "string"
213
- }
214
- }
215
- },
216
- "additionalProperties": false
217
- }
218
- },
219
- "required": ["solana_dapp_store", "i18n"]
220
- }
221
- },
222
- "required": [
223
- "schema_version",
224
- "name",
225
- "description",
226
- "image",
227
- "properties",
228
- "extensions"
229
- ]
230
- }
package/lib/esm/types.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
@@ -1,57 +0,0 @@
1
- import Ajv from "ajv";
2
- // eslint-disable-next-line require-extensions/require-extensions
3
- import publisherSchema from "../schemas/publisherJsonMetadata.json" assert { type: "json" };
4
- // eslint-disable-next-line require-extensions/require-extensions
5
- import appSchema from "../schemas/appJsonMetadata.json" assert { type: "json" };
6
- // eslint-disable-next-line require-extensions/require-extensions
7
- import releaseSchema from "../schemas/releaseJsonMetadata.json" assert { type: "json" };
8
- import { isMetaplexFile } from "@metaplex-foundation/js";
9
- export const metaplexFileReplacer = (k, v) => {
10
- if (isMetaplexFile(v)) {
11
- return "https://temp-asset-path";
12
- }
13
- return v;
14
- };
15
- export const validatePublisher = (publisherJson) => {
16
- const jsonToValidate = { ...publisherJson };
17
- if (typeof jsonToValidate.image !== "string") {
18
- jsonToValidate.image = jsonToValidate.image?.fileName;
19
- }
20
- const ajv = new Ajv({ strictTuples: false });
21
- const validate = ajv.compile(publisherSchema);
22
- const valid = validate(jsonToValidate);
23
- if (!valid) {
24
- console.error(validate.errors);
25
- throw new Error("Publisher JSON not valid");
26
- }
27
- return valid;
28
- };
29
- export const validateApp = (appJson) => {
30
- const jsonToValidate = { ...appJson };
31
- if (typeof jsonToValidate.image !== "string") {
32
- jsonToValidate.image = jsonToValidate.image?.fileName;
33
- }
34
- const ajv = new Ajv({ strictTuples: false });
35
- const validate = ajv.compile(appSchema);
36
- const valid = validate(jsonToValidate);
37
- if (!valid) {
38
- console.error(validate.errors);
39
- throw new Error("App JSON not valid");
40
- }
41
- return valid;
42
- };
43
- export const validateRelease = (releaseJson) => {
44
- const jsonToValidate = { ...releaseJson };
45
- if (typeof jsonToValidate.image !== "string") {
46
- jsonToValidate.image = jsonToValidate.image?.fileName;
47
- }
48
- const ajv = new Ajv({ strictTuples: false });
49
- const validate = ajv.compile(releaseSchema);
50
- const valid = validate(jsonToValidate);
51
- if (!valid) {
52
- console.error(validate.errors);
53
- throw new Error("Release JSON not valid");
54
- }
55
- return valid;
56
- };
57
- //# sourceMappingURL=CoreValidation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoreValidation.js","sourceRoot":"","sources":["../../../src/validate/CoreValidation.ts"],"names":[],"mappings":"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"}
@@ -1,11 +0,0 @@
1
- import type { CreateNftInput, JsonMetadata, Metaplex, MetaplexFile, TransactionBuilder } from "@metaplex-foundation/js";
2
- export declare class Constants {
3
- static PUBLISHING_SCHEMA_VER: string;
4
- }
5
- export declare const truncateAddress: (address: string) => string;
6
- declare type JsonMetadataMetaplexFile = Omit<JsonMetadata, "image"> & {
7
- image: string | MetaplexFile;
8
- };
9
- export declare const mintNft: (metaplex: Metaplex, json: JsonMetadataMetaplexFile, createNftInput: Omit<CreateNftInput, "uri" | "name" | "sellerFeeBasisPoints">) => Promise<TransactionBuilder>;
10
- export {};
11
- //# sourceMappingURL=CoreUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoreUtils.d.ts","sourceRoot":"","sources":["../../src/CoreUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,qBAAa,SAAS;IACpB,MAAM,CAAC,qBAAqB,SAAW;CACxC;AACD,eAAO,MAAM,eAAe,YAAa,MAAM,WAK9C,CAAC;AAEF,aAAK,wBAAwB,GAAG,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG;IAC5D,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,OAAO,aACR,QAAQ,QACZ,wBAAwB,kBACd,KAAK,cAAc,EAAE,KAAK,GAAG,MAAM,GAAG,sBAAsB,CAAC,KAC5E,QAAQ,kBAAkB,CAgB5B,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { App, AppMetadata, Context } from "../types.js";
2
- import type { PublicKey, Signer } from "@solana/web3.js";
3
- export declare const createAppJson: (app: App, publisherAddress: PublicKey) => AppMetadata;
4
- declare type CreateAppInput = {
5
- publisherMintAddress: PublicKey;
6
- mintAddress: Signer;
7
- appDetails: App;
8
- };
9
- export declare const createApp: ({ publisherMintAddress, mintAddress, appDetails }: CreateAppInput, { metaplex, publisher }: Context) => Promise<import("@metaplex-foundation/js").TransactionBuilder<object>>;
10
- export {};
11
- //# sourceMappingURL=AppCore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppCore.d.ts","sourceRoot":"","sources":["../../../src/create/AppCore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAMzD,eAAO,MAAM,aAAa,QACnB,GAAG,oBACU,SAAS,KAC1B,WAuBF,CAAC;AAEF,aAAK,cAAc,GAAG;IACpB,oBAAoB,EAAE,SAAS,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,SAAS,sDAC+B,cAAc,2BACxC,OAAO,0EA0BjC,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { TransactionBuilder } from "@metaplex-foundation/js";
2
- import type { Signer } from "@solana/web3.js";
3
- import type { Context, Publisher, PublisherMetadata } from "../types.js";
4
- export declare const createPublisherJson: (publisher: Publisher) => PublisherMetadata;
5
- declare type CreatePublisherInput = {
6
- mintAddress: Signer;
7
- publisherDetails: Publisher;
8
- };
9
- export declare const createPublisher: ({ mintAddress, publisherDetails }: CreatePublisherInput, { metaplex }: Context) => Promise<TransactionBuilder>;
10
- export {};
11
- //# sourceMappingURL=PublisherCore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublisherCore.d.ts","sourceRoot":"","sources":["../../../src/create/PublisherCore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAI9C,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIzE,eAAO,MAAM,mBAAmB,cACnB,SAAS,KACnB,iBA2BF,CAAC;AAEF,aAAK,oBAAoB,GAAG;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,eAAe,sCACS,oBAAoB,gBACzC,OAAO,KACpB,QAAQ,kBAAkB,CAa5B,CAAC"}
@@ -1,20 +0,0 @@
1
- import type { Keypair, PublicKey } from "@solana/web3.js";
2
- import type { App, Context, MetaplexFileReleaseJsonMetadata, Publisher, Release } from "../types.js";
3
- export declare const createReleaseJson: ({ releaseDetails, appDetails, publisherDetails, }: {
4
- releaseDetails: Release;
5
- appDetails: App;
6
- publisherDetails: Publisher;
7
- }, publisherAddress: PublicKey) => Promise<MetaplexFileReleaseJsonMetadata>;
8
- declare type CreateReleaseInput = {
9
- releaseMintAddress: Keypair;
10
- appMintAddress: PublicKey;
11
- releaseDetails: Release;
12
- publisherDetails: Publisher;
13
- appDetails: App;
14
- };
15
- export declare const createRelease: ({ appMintAddress, releaseMintAddress, releaseDetails, appDetails, publisherDetails, }: CreateReleaseInput, { publisher, metaplex }: Context) => Promise<{
16
- releaseJson: MetaplexFileReleaseJsonMetadata;
17
- txBuilder: import("@metaplex-foundation/js").TransactionBuilder<object>;
18
- }>;
19
- export {};
20
- //# sourceMappingURL=ReleaseCore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReleaseCore.d.ts","sourceRoot":"","sources":["../../../src/create/ReleaseCore.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EACV,GAAG,EACH,OAAO,EACP,+BAA+B,EAC/B,SAAS,EACT,OAAO,EACR,MAAM,aAAa,CAAC;AAwCrB,eAAO,MAAM,iBAAiB;oBAKP,OAAO;gBAAc,GAAG;sBAAoB,SAAS;qBACxD,SAAS,KAC1B,QAAQ,+BAA+B,CAyFzC,CAAC;AAEF,aAAK,kBAAkB,GAAG;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,SAAS,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,SAAS,CAAC;IAC5B,UAAU,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,aAAa,0FAOrB,kBAAkB,2BACI,OAAO;;;EA8BjC,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from "./AppCore.js";
2
- export * from "./PublisherCore.js";
3
- export * from "./ReleaseCore.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/create/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from "./publisherJsonMetadata.js";
2
- export * from "./appJsonMetadata.js";
3
- export * from "./releaseJsonMetadata.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from "./create/index.js";
2
- export * from "./publish/index.js";
3
- export * from "./validate/CoreValidation.js";
4
- export * from "./types.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- import { Connection } from "@solana/web3.js";
2
- import { SignWithPublisherKeypair } from "./types";
3
- export declare const createAttestationPayload: (connection: Connection, sign: SignWithPublisherKeypair) => Promise<{
4
- attestationPayload: string;
5
- requestUniqueId: string;
6
- }>;
7
- //# sourceMappingURL=PublishCoreAttestation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublishCoreAttestation.d.ts","sourceRoot":"","sources":["../../../src/publish/PublishCoreAttestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAYnD,eAAO,MAAM,wBAAwB,eAAsB,UAAU,QAAQ,wBAAwB;;;EAiBpG,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { Publisher } from "../types.js";
2
- import { PublishSolanaNetworkInput } from "./types.js";
3
- export declare type PublishRemoveInput = {
4
- appMintAddress: string;
5
- releaseMintAddress: string;
6
- publisherDetails: Publisher;
7
- requestorIsAuthorized: boolean;
8
- criticalUpdate: boolean;
9
- };
10
- export declare const publishRemove: (publishSolanaNetworkInput: PublishSolanaNetworkInput, { appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, criticalUpdate, }: PublishRemoveInput, dryRun: boolean) => Promise<void>;
11
- //# sourceMappingURL=PublishCoreRemove.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublishCoreRemove.d.ts","sourceRoot":"","sources":["../../../src/publish/PublishCoreRemove.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAiB7C,OAAO,EAAE,yBAAyB,EAA4B,MAAM,YAAY,CAAC;AAuEjF,oBAAY,kBAAkB,GAAG;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,SAAS,CAAC;IAC5B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,aAAa,8BACG,yBAAyB,oGAOhD,kBAAkB,UACd,OAAO,kBAYhB,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { Publisher, SolanaMobileDappPublisherPortal } from "../types.js";
2
- import { PublishSolanaNetworkInput } from "./types.js";
3
- export declare type PublishSubmitInput = {
4
- appMintAddress: string;
5
- releaseMintAddress: string;
6
- publisherDetails: Publisher;
7
- solanaMobileDappPublisherPortalDetails: SolanaMobileDappPublisherPortal;
8
- compliesWithSolanaDappStorePolicies: boolean;
9
- requestorIsAuthorized: boolean;
10
- };
11
- export declare const publishSubmit: (publishSolanaNetworkInput: PublishSolanaNetworkInput, { appMintAddress, releaseMintAddress, publisherDetails, solanaMobileDappPublisherPortalDetails, compliesWithSolanaDappStorePolicies, requestorIsAuthorized, }: PublishSubmitInput, dryRun: boolean) => Promise<void>;
12
- //# sourceMappingURL=PublishCoreSubmit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublishCoreSubmit.d.ts","sourceRoot":"","sources":["../../../src/publish/PublishCoreSubmit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAmB9E,OAAO,EAAE,yBAAyB,EAA4B,MAAM,YAAY,CAAC;AAqFjF,oBAAY,kBAAkB,GAAG;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,SAAS,CAAC;IAC5B,sCAAsC,EAAE,+BAA+B,CAAC;IACxE,mCAAmC,EAAE,OAAO,CAAC;IAC7C,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,aAAa,8BACG,yBAAyB,iKAQhD,kBAAkB,UACd,OAAO,kBAahB,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { Publisher } from "../types.js";
2
- import { PublishSolanaNetworkInput } from "./types.js";
3
- export declare type PublishSupportInput = {
4
- appMintAddress: string;
5
- releaseMintAddress: string;
6
- publisherDetails: Publisher;
7
- requestorIsAuthorized: boolean;
8
- requestDetails: string;
9
- };
10
- export declare const publishSupport: (publishSolanaNetworkInput: PublishSolanaNetworkInput, { appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, requestDetails, }: PublishSupportInput, dryRun: boolean) => Promise<void>;
11
- //# sourceMappingURL=PublishCoreSupport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublishCoreSupport.d.ts","sourceRoot":"","sources":["../../../src/publish/PublishCoreSupport.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAiB7C,OAAO,EAAE,yBAAyB,EAA4B,MAAM,YAAY,CAAC;AAgEjF,oBAAY,mBAAmB,GAAG;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,SAAS,CAAC;IAC5B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,cAAc,8BACE,yBAAyB,oGAOhD,mBAAmB,UACf,OAAO,kBAYhB,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { Publisher, SolanaMobileDappPublisherPortal } from "../types.js";
2
- import { PublishSolanaNetworkInput } from "./types.js";
3
- export declare type PublishUpdateInput = {
4
- appMintAddress: string;
5
- releaseMintAddress: string;
6
- publisherDetails: Publisher;
7
- solanaMobileDappPublisherPortalDetails: SolanaMobileDappPublisherPortal;
8
- compliesWithSolanaDappStorePolicies: boolean;
9
- requestorIsAuthorized: boolean;
10
- criticalUpdate: boolean;
11
- };
12
- export declare const publishUpdate: (publishSolanaNetworkInput: PublishSolanaNetworkInput, { appMintAddress, releaseMintAddress, publisherDetails, solanaMobileDappPublisherPortalDetails, compliesWithSolanaDappStorePolicies, requestorIsAuthorized, criticalUpdate, }: PublishUpdateInput, dryRun: boolean) => Promise<void>;
13
- //# sourceMappingURL=PublishCoreUpdate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublishCoreUpdate.d.ts","sourceRoot":"","sources":["../../../src/publish/PublishCoreUpdate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAmB9E,OAAO,EAAE,yBAAyB,EAA4B,MAAM,YAAY,CAAC;AAwFjF,oBAAY,kBAAkB,GAAG;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,SAAS,CAAC;IAC5B,sCAAsC,EAAE,+BAA+B,CAAC;IACxE,mCAAmC,EAAE,OAAO,CAAC;IAC7C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,aAAa,8BACG,yBAAyB,iLAShD,kBAAkB,UACd,OAAO,kBAchB,CAAC"}
@@ -1,26 +0,0 @@
1
- export declare const PORTAL_ID = "22812690";
2
- export declare const CONTACT_OBJECT_ID = "0-1";
3
- export declare const CONTACT_PROPERTY_COMPANY = "company";
4
- export declare const CONTACT_PROPERTY_EMAIL = "email";
5
- export declare const CONTACT_PROPERTY_WEBSITE = "website";
6
- export declare const TICKET_OBJECT_ID = "0-5";
7
- export declare const TICKET_PROPERTY_CONTENT = "content";
8
- export declare const TICKET_PROPERTY_ATTESTATION_PAYLOAD = "attestation_payload";
9
- export declare const TICKET_PROPERTY_AUTHORIZED_REQUEST = "requestor_is_authorized_to_submit_this_request";
10
- export declare const TICKET_PROPERTY_CRITICAL_UPDATE = "critical_update";
11
- export declare const TICKET_PROPERTY_DAPP_COLLECTION_ACCOUNT_ADDRESS = "dapp_collection_account_address";
12
- export declare const TICKET_PROPERTY_DAPP_RELEASE_ACCOUNT_ADDRESS = "dapp_release_account_address";
13
- export declare const TICKET_PROPERTY_GOOGLE_PLAY_STORE_PACKAGE_NAME = "google_play_store_package_name";
14
- export declare const TICKET_PROPERTY_POLICY_COMPLIANT = "complies_with_solana_dapp_store_policies";
15
- export declare const TICKET_PROPERTY_REQUEST_UNIQUE_ID = "request_unique_id";
16
- export declare const TICKET_PROPERTY_TESTING_INSTRUCTIONS = "testing_instructions";
17
- export declare const FORM_SUBMIT = "1464247f-6804-46e1-8114-952f372daa81";
18
- export declare const FORM_UPDATE = "87b4cbe7-957f-495c-a132-8b789678883d";
19
- export declare const FORM_REMOVE = "913a4e44-ec90-4db6-8aa9-c49f29b569b9";
20
- export declare const FORM_SUPPORT = "2961f018-6a4d-4e9d-8332-e219428c8cf2";
21
- export declare const URL_FORM_SUBMIT: string;
22
- export declare const URL_FORM_UPDATE: string;
23
- export declare const URL_FORM_REMOVE: string;
24
- export declare const URL_FORM_SUPPORT: string;
25
- export declare const submitRequestToSolanaDappPublisherPortal: (request: any, url: string, dryRun: boolean) => Promise<void>;
26
- //# sourceMappingURL=dapp_publisher_portal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dapp_publisher_portal.d.ts","sourceRoot":"","sources":["../../../src/publish/dapp_publisher_portal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,aAAa,CAAC;AAEpC,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAC9C,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAElD,eAAO,MAAM,gBAAgB,QAAQ,CAAC;AACtC,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,mCAAmC,wBAAwB,CAAC;AACzE,eAAO,MAAM,kCAAkC,mDAAmD,CAAC;AACnG,eAAO,MAAM,+BAA+B,oBAAoB,CAAC;AACjE,eAAO,MAAM,+CAA+C,oCAAoC,CAAC;AACjG,eAAO,MAAM,4CAA4C,iCAAiC,CAAC;AAC3F,eAAO,MAAM,8CAA8C,mCAAmC,CAAC;AAC/F,eAAO,MAAM,gCAAgC,6CAA6C,CAAC;AAC3F,eAAO,MAAM,iCAAiC,sBAAsB,CAAC;AACrE,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,eAAO,MAAM,WAAW,yCAAyC,CAAC;AAClE,eAAO,MAAM,WAAW,yCAAyC,CAAC;AAClE,eAAO,MAAM,WAAW,yCAAyC,CAAC;AAClE,eAAO,MAAM,YAAY,yCAAyC,CAAC;AAEnE,eAAO,MAAM,eAAe,QAA0F,CAAA;AACtH,eAAO,MAAM,eAAe,QAA0F,CAAA;AACtH,eAAO,MAAM,eAAe,QAA0F,CAAA;AACtH,eAAO,MAAM,gBAAgB,QAA2F,CAAA;AAExH,eAAO,MAAM,wCAAwC,YAC1C,GAAG,OACP,MAAM,UACH,OAAO,kBA8BhB,CAAC"}
@@ -1,6 +0,0 @@
1
- export * from "./PublishCoreRemove.js";
2
- export * from "./PublishCoreSubmit.js";
3
- export * from "./PublishCoreSupport.js";
4
- export * from "./types.js";
5
- export * from "./PublishCoreUpdate.js";
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/publish/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC"}
@@ -1,8 +0,0 @@
1
- /// <reference types="node" />
2
- import { Connection } from "@solana/web3.js";
3
- export declare type SignWithPublisherKeypair = (buf: Buffer) => Buffer;
4
- export declare type PublishSolanaNetworkInput = {
5
- connection: Connection;
6
- sign: SignWithPublisherKeypair;
7
- };
8
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/publish/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,oBAAY,wBAAwB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;AAE/D,oBAAY,yBAAyB,GAAG;IACtC,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,wBAAwB,CAAC;CAChC,CAAC"}