3land_sdk 1.0.5 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -7,6 +7,7 @@ async function main() {
7
7
  // };
8
8
  const optionsWithBase58 = {
9
9
  privateKey: "", //your private key
10
+ isMainnet: true,
10
11
  };
11
12
  const storeSetup = {
12
13
  storeName: "Super cool store",
@@ -18,15 +19,16 @@ async function main() {
18
19
  collectionDescription: "This is a collection for the cool guys",
19
20
  };
20
21
  const createItemOptions = {
21
- itemName: "supercoolitem7",
22
+ itemName: "supercoolitem12",
22
23
  sellerFee: 500,
23
- itemSymbol: "SCI7",
24
- itemDescription: "implementing link imgs",
24
+ itemAmount: 101,
25
+ itemSymbol: "SCI11",
26
+ itemDescription: "testing mainnet after refactor",
25
27
  traits: [
26
28
  { trait_type: "type", value: "cool" },
27
29
  { trait_type: "creator", value: "me" },
28
30
  ],
29
- price: 100000000, //100000000 == 0.1 sol
31
+ price: 10000000, //100000000 == 0.1 sol
30
32
  mainImageUrl: "https://arweave.net/FMkKYYsheEImBfejYaPPoJbI3CxJxunwvErD9VYzxOY?ext=jpeg",
31
33
  };
32
34
  try {
@@ -45,8 +47,10 @@ async function main() {
45
47
  // console.log("collection mint: ", collection);
46
48
  // Create single edition
47
49
  // const storeAccount = "3MwBR619SgJ35ek7vDLxxE5QvBaNq1fmmEZSXKW2X3Lf"; //"P1c4bboejX24NbY3vMw8EncKVmvcGEryznWLs4PGp9j"; //current store created for testing
48
- const collectionAccount = "Fpm8XgXEuNxxjmqUQuqEFkGusiSsKM6astUGPs5U9x6v"; //"2rQq34FJG1613i7H8cDfxuGCtEjJmFAUNbAPJqK699oD";
49
- const singleEditionResult = await (0, storeImplementation_1.createSingleImp)(optionsWithBase58, landStoreDevnet, collectionAccount, createItemOptions);
50
+ const collectionAccount = "GKLBspqHCKJMFKSn46CNdSP3AUeKDvcyF5knXxsJmhLj"; //"7Zsbs84BhMuHVqtigJFH9yQgpxvYnRZY9MyxSQT1ftfa"; //"Fpm8XgXEuNxxjmqUQuqEFkGusiSsKM6astUGPs5U9x6v"; //"2rQq34FJG1613i7H8cDfxuGCtEjJmFAUNbAPJqK699oD";
51
+ const singleEditionResult = await (0, storeImplementation_1.createSingleImp)(optionsWithBase58,
52
+ // landStoreDevnet,
53
+ landStoreMainnet, collectionAccount, createItemOptions);
50
54
  console.log("Single edition created. Transaction ID:", singleEditionResult.transactionId);
51
55
  // Buy single edition
52
56
  // const itemAccount = "8iUHPXuZWQdSGTV9X8hPdUgxSLfdXX7YjZYMck2TALBc"; //"7BhKXmc5obiwn5hhrUhErVBrAT7TErYcTpRYE8ggfjKV"; //current item created for testing
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA,sFAKsD;AAQtD,KAAK,UAAU,IAAI;IACjB,wCAAwC;IACxC,4EAA4E;IAC5E,OAAO;IAEP,MAAM,iBAAiB,GAAqB;QAC1C,UAAU,EAAE,EAAE,EAAE,kBAAkB;KACnC,CAAC;IAEF,MAAM,UAAU,GAAsB;QACpC,SAAS,EAAE,kBAAkB;QAC7B,QAAQ,EAAE,CAAC;KACZ,CAAC;IAEF,MAAM,cAAc,GAA4B;QAC9C,cAAc,EAAE,0BAA0B;QAC1C,gBAAgB,EAAE,KAAK;QACvB,qBAAqB,EAAE,wCAAwC;KAChE,CAAC;IAEF,MAAM,iBAAiB,GAAwB;QAC7C,QAAQ,EAAE,gBAAgB;QAC1B,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,MAAM;QAClB,eAAe,EAAE,wBAAwB;QACzC,MAAM,EAAE;YACN,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YACrC,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE;SACvC;QACD,KAAK,EAAE,SAAS,EAAE,sBAAsB;QACxC,YAAY,EACV,0EAA0E;KAC7E,CAAC;IAEF,IAAI,CAAC;QACH,q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E,iBAAiB;QAC3B,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,GAAG;QACf,UAAU,EAAE,OAAO;QACnB,eAAe,EAAE,gCAAgC;QACjD,MAAM,EAAE;YACN,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YACrC,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE;SACvC;QACD,KAAK,EAAE,QAAQ,EAAE,sBAAsB;QACvC,YAAY,EACV,0EAA0E;KAC7E,CAAC;IAEF,IAAI,CAAC;QACH,qFAAqF;QACrF,qeAAqe;QACre,eAAe;QACf,2EAA2E;QAC3E,2EAA2E;QAC3E,MAAM,gBAAgB,GAAG,6CAA6C,CAAC;QACvE,MAAM,eAAe,GAAG,8CAA8C,CAAC;QACvE,oBAAoB;QACpB,gDAAgD;QAChD,uBAAuB;QACvB,mBAAmB;QACnB,KAAK;QACL,gDAAgD;QAChD,wBAAwB;QACxB,4JAA4J;QAC5J,MAAM,iBAAiB,GAAG,8CAA8C,CAAC,CAAC,qJAAqJ;QAC/N,MAAM,mBAAmB,GAAG,MAAM,IAAA,qCAAe,EAC/C,iBAAiB;QACjB,mBAAmB;QACnB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CACT,yCAAyC,EACzC,mBAAmB,CAAC,aAAa,CAClC,CAAC;QACF,qBAAqB;QACrB,2JAA2J;QAC3J,+DAA+D;QAC/D,eAAe;QACf,iDAAiD;QACjD,4BAA4B;QAC5B,KAAK;IACP,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,iCAAW,EAAC,KAAK,CAAC,CAAC;IACrB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC"}
@@ -67,11 +67,13 @@ export declare class IrysHelper {
67
67
  init(address: string, options: {
68
68
  arweave_rpc?: string;
69
69
  rpc?: string;
70
+ network?: string;
70
71
  }): Promise<boolean>;
71
72
  }
72
73
  export declare const init: (address: string, options: {
73
74
  arweave_rpc?: string;
74
75
  rpc?: string;
76
+ network?: string;
75
77
  }) => Promise<IrysHelper | null>;
76
78
  export {};
77
79
  //# sourceMappingURL=irys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"irys.d.ts","sourceRoot":"","sources":["../../../src/library/Irys/irys.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGpE,UAAU,eAAe;IACvB,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CAExB;AAED,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC;IACvC,IAAI,CAAC,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,eAAe,CAAC;QAC7B,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,GAAG,CAAC;CAEhB;AAED,UAAU,eAAe;IACvB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,IAAI,EAAE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IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,KAChE,OAAO,CAAC,UAAU,GAAG,IAAI,CAU3B,CAAC"}
@@ -288,10 +288,11 @@ class IrysHelper {
288
288
  // url: irys_network,
289
289
  token: "solana",
290
290
  key: wallet.secretKey,
291
- network: "devnet",
291
+ network: options?.network || "devnet",
292
292
  config: { providerUrl: irys_network },
293
293
  // wallet: { rpcUrl: rpc, provider },
294
294
  });
295
+ console.log("irysconfig inside: ", this.irys);
295
296
  await this.irys.ready();
296
297
  const to = await this.irys.utils.getBundlerAddress("solana");
297
298
  const bal = await this.getBalance();
@@ -1 +1 @@
1
- {"version":3,"file":"irys.js","sourceRoot":"","sources":["../../../src/library/Irys/irys.ts"],"names":[],"mappings":";;;;;;AAAA,mCAA8C;AAC9C,+CAAkD;AAClD,yDAAuD;AACvD,oDAA4B;AAC5B,6CAAoE;AACpE,0DAA6B;AA+C7B,MAAa,UAAU;IAMrB;QACE,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACzB,CAAC;IAED,0BAA0B;IAC1B,4BAA4B;IAC5B,0BAA0B;IAElB,iBAAiB;QACvB,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YAC9C,MAAM,IAAI,KAAK,CACb,yDAAyD,CAC1D,CAAC;QACJ,CAAC;IACH,CAAC;IAED,mDAAmD;IACnD,8BAA8B;IAC9B,UAAU;IACV,+CAA+C;IAC/C,uBAAuB;IACvB,kBAAkB;IAClB,4CAA4C;IAC5C,MAAM;IACN,kBAAkB;IAClB,IAAI;IAEJ,qCAAqC;IACrC,8BAA8B;IAC9B,yCAAyC;IACzC,IAAI;IAEJ,KAAK,CAAC,aAAa,CAAC,EAAO;QACzB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;Y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U,EAAE,SAAS,EACrB,QAAQ,EAAE,GAAG,GACZ,OAAO,CAAC,MAAM,CAAC;IAqKZ,gBAAgB,CACpB,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,MAAM,EAAE,EAC3B,WAAW,EAAE,SAAS,EACtB,aAAa,GAAE,GAAG,EAAiB,EACnC,kBAAkB,GAAE,SAA6B,EACjD,WAAW,GAAE,SAAwB,EACrC,YAAY,GAAE,SAAwB,EACtC,SAAS,GAAE,SAAwB,GAClC,OAAO,CAAC,MAAM,CAAC;CAuHnB;AAED,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -95,7 +95,14 @@ class Store {
95
95
  let signers = [payer];
96
96
  if (metadata.uri.length !== 0)
97
97
  throw new Error("-- URI must be empty --");
98
- const irys = await (0, irys_1.init)(payer.publicKey.toBase58(), {});
98
+ const irysConfig = this.networkConfig.endpoint.includes(config_1.NetworkType.MAINNET)
99
+ ? {
100
+ arweave_rpc: "https://node2.irys.xyz",
101
+ rpc: "https://api.mainnet-beta.solana.com",
102
+ network: "mainnet",
103
+ }
104
+ : {};
105
+ const irys = await (0, irys_1.init)(payer.publicKey.toBase58(), irysConfig);
99
106
  const uuid = "random_uuid_per_upload_session";
100
107
  const { instruction, signerIrys, metadataUrl } = await (0, uploadFilesIryis_1.uploadFilesIrysInstruction)(irysData.options, irys, uuid);
101
108
  instructions.push(instruction);
@@ -186,7 +193,15 @@ class Store {
186
193
  (0, validation_1.validateSaleConfig)(saleConfig);
187
194
  (0, validation_1.validateIdentifier)(identifier);
188
195
  try {
189
- const irys = await (0, irys_1.init)(payer.publicKey.toBase58(), {});
196
+ const irysConfig = this.networkConfig.endpoint.includes(config_1.NetworkType.MAINNET)
197
+ ? {
198
+ arweave_rpc: "https://node2.irys.xyz",
199
+ rpc: "https://api.mainnet-beta.solana.com",
200
+ network: "mainnet",
201
+ }
202
+ : {};
203
+ console.log("irysConfig: ", irysConfig);
204
+ const irys = await (0, irys_1.init)(payer.publicKey.toBase58(), irysConfig);
190
205
  const uuid = "random_uuid_per_upload_session";
191
206
  const [itemAccount] = await (0, PdaManager_1.itemAccountPDA)({
192
207
  creator: creator,
@@ -1 +1 @@
1
- {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/library/Store.ts"],"names":[],"mappings":";;;;;;AAAA,6CASyB;AACzB,gFAIiD;AAEjD,iDAK2B;AAC3B,sDAAsD;AACtD,kEAA0E;AAC1E,kFAA0F;AAC1F,4EAAoF;AACpF,0CAMwB;AAokBf,4FAzkBP,mBAAW,OAykBO;AAAE,6FAxkBpB,oBAAY,OAwkBoB;AAAE,2FAvkBlC,kBAAU,OAukBkC;AAnkB9C,sDAe+B;AAC/B,gDAAkD;AAClD,kDAAuB;AACvB,4EAAmF;AACnF,kDAK4B;AAE5B,2EAAwE;AACxE,sCAA2C;AAC3C,gFAAsG;AACtG,wDAA0D;AAC1D,sDAS+B;AAC/B,8CAAgF;AAChF,gDAA2C;AAQ3C,MAAM,YAAY,GAAG;IACnB;QACE,MAAM,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,cAAc;QACrF,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,IAAI;KACjB;CACF,CAAC;AAEF,MAAa,KAAK;IAIhB,YAAY,UAAwB,EAAE;QACpC,MAAM,EACJ,OAAO,GAAG,oBAAW,CAAC,MAAM;QAC5B,iCAAiC;QACjC,cAAc,EACd,YAAY,GACb,GAAG,OAAO,CAAC;QAEZ,MAAM,UAAU,GAAG,wBAAe,CAAC,OAAO,CAAC,CAAC;QAE5C,IAAI,CAAC,aAAa,GAAG;YACnB,GAAG,UAAU;YACb,GAAG,YAAY;YACf,QAAQ,EAAE,cAAc,IAAI,UAAU,CAAC,QAAQ;SAChD,CAAC;QAEF,IAAI,CAAC,UAAU,GAAG,IAAA,0BAAa,EAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,WAA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EAAE,IAAA,wBAAW,EAAC,wBAAY,CAAC;gBACnC,KAAK,EAAE,YAAY;aACpB,CAAC,CAAC;YAEH,MAAM,UAAU,GAAG,IAAA,gCAAiB,EAClC;gBACE,WAAW,EAAE,WAAW;gBACxB,YAAY,EAAE,gBAAgB;aAC/B,EACD;gBACE,uBAAuB,EAAE,iBAAiB;gBAC1C,uBAAuB,EAAE,uBAAuB;gBAChD,YAAY,EAAE,YAAY;gBAC1B,eAAe,EAAE,eAAe;gBAChC,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,KAAK,CAAC,SAAS;gBACtB,aAAa,EAAE,uBAAa,CAAC,SAAS;aACvC,CACF,CAAC;YACF,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAE9B,MAAM,WAAW,GAAG,IAAI,qBAAW,EAAE,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,CAAC;YAC3D,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;YAC9C,OAAO,IAAA,mCAAyB,EAAC,IAAI,CAAC,UAAU,EAAE,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1E,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,4BAAe,EAAE,CAAC;gBACrC,MAAM,KAAK,CAAC;YACd,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,iCAAiC,KAAK,EAAE,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;CACF;AA3hBD,sBA2hBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"storeImplementation.d.ts","sourceRoot":"","sources":["../../../src/library/implementation/storeImplementation.ts"],"names":[],"mappings":"AAqBA,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,gDAAgD,CAAC;AAoCxD,iBAAe,cAAc,CAC3B,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAE,iBAAiB;;;GAiC9B;AAED,iBAAe,mBAAmB,CAChC,OAAO,EAAE,gBAAgB,EACzB,cAAc,EAAE,uBAAuB;;;GAoExC;AAED,iBAAe,eAAe,CAC5B,OAAO,EAAE,gBAAgB,EACzB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,mBAAmB;;;GAiLnC;AAED,iBAAe,YAAY,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM;;;GAoBlE;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,OAAO,QAOlC;AAED,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,WAAW,GACZ,CAAC"}
1
+ {"version":3,"file":"storeImplementation.d.ts","sourceRoot":"","sources":["../../../src/library/implementation/storeImplementation.ts"],"names":[],"mappings":"AAqBA,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,gDAAgD,CAAC;AA2CxD,iBAAe,cAAc,CAC3B,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAE,iBAAiB;;;GAiC9B;AAED,iBAAe,mBAAmB,CAChC,OAAO,EAAE,gBAAgB,EACzB,cAAc,EAAE,uBAAuB;;;GAiIxC;AAED,iBAAe,eAAe,CAC5B,OAAO,EAAE,gBAAgB,EACzB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,mBAAmB;;;GAiLnC;AAED,iBAAe,YAAY,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM;;;GAoBlE;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,OAAO,QAOlC;AAED,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,WAAW,GACZ,CAAC"}
@@ -39,8 +39,15 @@ const anchor_1 = require("@project-serum/anchor");
39
39
  const fs2 = __importStar(require("fs"));
40
40
  const path_1 = __importDefault(require("path"));
41
41
  const bytes_1 = require("@project-serum/anchor/dist/cjs/utils/bytes");
42
+ const config_1 = require("../../utility/config");
42
43
  function initializeSDKAndWallet(options) {
43
- const sdk = new Store_1.Store();
44
+ let sdk;
45
+ if (options.isMainnet) {
46
+ sdk = new Store_1.Store({ network: config_1.NetworkType.MAINNET });
47
+ }
48
+ else {
49
+ sdk = new Store_1.Store();
50
+ }
44
51
  let walletKeypair;
45
52
  if (options.privateKey) {
46
53
  if (typeof options.privateKey === "string") {
@@ -117,32 +124,90 @@ async function createCollectionImp(options, collectionOpts) {
117
124
  collection: null,
118
125
  uses: null,
119
126
  };
120
- const imageBuffer = fs2.readFileSync(path_1.default.join(process.cwd(), "assets", "ds.jpeg")).buffer;
121
- const coverBuffer = fs2.readFileSync(path_1.default.join(process.cwd(), "assets", "3land_rebrand.gif")).buffer;
122
- const optionsCollection = {
123
- symbol: metadata.symbol,
124
- metadata: {
125
- name: metadata.name,
126
- description: collectionOpts.collectionDescription,
127
- files: {
128
- file: {
129
- arrayBuffer() {
130
- return imageBuffer;
127
+ let optionsCollection;
128
+ if (collectionOpts.mainImageUrl) {
129
+ // Use URLs if provided
130
+ let files = {
131
+ file: {
132
+ url: collectionOpts.mainImageUrl,
133
+ },
134
+ };
135
+ // Add cover URL if provided
136
+ if (collectionOpts.coverImageUrl) {
137
+ files.cover = {
138
+ url: collectionOpts.coverImageUrl,
139
+ };
140
+ }
141
+ optionsCollection = {
142
+ symbol: metadata.symbol,
143
+ metadata: {
144
+ name: metadata.name,
145
+ description: collectionOpts.collectionDescription,
146
+ files: files,
147
+ },
148
+ creators: metadata.creators,
149
+ traits: [],
150
+ sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
151
+ };
152
+ }
153
+ else {
154
+ const imageBuffer = fs2.readFileSync(path_1.default.join(process.cwd(), "assets", "ds.jpeg")).buffer;
155
+ const coverBuffer = fs2.readFileSync(path_1.default.join(process.cwd(), "assets", "3land_rebrand.gif")).buffer;
156
+ optionsCollection = {
157
+ symbol: metadata.symbol,
158
+ metadata: {
159
+ name: metadata.name,
160
+ description: collectionOpts.collectionDescription,
161
+ files: {
162
+ file: {
163
+ arrayBuffer() {
164
+ return imageBuffer;
165
+ },
166
+ type: "image/gif",
131
167
  },
132
- type: "image/gif",
133
- },
134
- cover: {
135
- arrayBuffer() {
136
- return coverBuffer;
168
+ cover: {
169
+ arrayBuffer() {
170
+ return coverBuffer;
171
+ },
172
+ type: "image/gif",
137
173
  },
138
- type: "image/gif",
139
174
  },
140
175
  },
141
- },
142
- creators: metadata.creators,
143
- traits: [],
144
- sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
145
- };
176
+ creators: metadata.creators,
177
+ traits: [],
178
+ sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
179
+ };
180
+ }
181
+ // const imageBuffer = fs2.readFileSync(
182
+ // path.join(process.cwd(), "assets", "ds.jpeg")
183
+ // ).buffer;
184
+ // const coverBuffer = fs2.readFileSync(
185
+ // path.join(process.cwd(), "assets", "3land_rebrand.gif")
186
+ // ).buffer;
187
+ // const optionsCollection = {
188
+ // symbol: metadata.symbol,
189
+ // metadata: {
190
+ // name: metadata.name,
191
+ // description: collectionOpts.collectionDescription,
192
+ // files: {
193
+ // file: {
194
+ // arrayBuffer() {
195
+ // return imageBuffer;
196
+ // },
197
+ // type: "image/gif",
198
+ // },
199
+ // cover: {
200
+ // arrayBuffer() {
201
+ // return coverBuffer;
202
+ // },
203
+ // type: "image/gif",
204
+ // },
205
+ // },
206
+ // },
207
+ // creators: metadata.creators,
208
+ // traits: [],
209
+ // sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
210
+ // };
146
211
  try {
147
212
  const collectionTx = await sdk.createCollection(walletKeypair, collectionDetails, metadata, {
148
213
  options: optionsCollection,
@@ -283,7 +348,7 @@ async function createSingleImp(options, storeAccount, collectionAccount, createO
283
348
  throw new Error("Function not implemented.");
284
349
  },
285
350
  };
286
- const createSingleEditionTxId = await sdk.createSingleEdition(walletKeypair, new web3_js_1.PublicKey(storeAccount), 100, metadata, saleConfig, [1, 0, 0], [1, 0], 0, 12345, new web3_js_1.PublicKey(collectionAccount), {
351
+ const createSingleEditionTxId = await sdk.createSingleEdition(walletKeypair, new web3_js_1.PublicKey(storeAccount), createOptions.itemAmount, metadata, saleConfig, [1, 0, 0], [1, 0], 0, 12345, new web3_js_1.PublicKey(collectionAccount), {
287
352
  options: options,
288
353
  });
289
354
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"storeImplementation.js","sourceRoot":"","sources":["../../../src/library/implementation/storeImplementation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkYE,wCAAc;AACd,kDAAmB;AACnB,0CAAe;AACf,oCAAY;AACZ,kCAAW;AAtYb,iCAA2B;AAC3B,oCAA0D;AAC1D,6CAA2E;AAC3E,6CAW2B;AAC3B,kDAA+C;AAC/C,wCAA0B;AAE1B,gDAAwB;AAExB,sEAAkE;AAQlE,SAAS,sBAAsB,CAAC,OAAyB;IACvD,MAAM,GAAG,GAAG,IAAI,aAAK,EAAE,CAAC;IACxB,IAAI,aAAsB,CAAC;IAE3B,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,IAAI,OAAO,OAAO,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;YAC3C,qCAAqC;YACrC,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,YAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;gBAChD,aAAa,GAAG,iBAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YACjD,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,+BAA+B,KAAK,EAAE,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC;aAAM,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;YAC7C,0BAA0B;YAC1B,aAAa,GAAG,iBAAO,CAAC,aA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IACd,CAAC;AACH,CAAC;AAED,KAAK,UAAU,YAAY,CAAC,OAAyB,EAAE,IAAY;IACjE,MAAM,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAEtE,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,KAAK,CAAC;QAEpB,MAAM,oBAAoB,GAAG,MAAM,GAAG,CAAC,gBAAgB,CACrD,aAAa,EACb,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAClB,IAAI,mBAAS,CAAC,IAAI,CAAC,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;QACxD,OAAO;YACL,aAAa,EAAE,oBAAoB;YACnC,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,EAAE;SAC3C,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,WAAW,CAAC,KAAK,CAAC,CAAC;QACnB,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,IAAI,KAAK,YAAY,8BAAoB,EAAE,CAAC;QAC1C,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QACnE,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"storeImplementation.js","sourceRoot":"","sources":["../../../src/library/implementation/storeImplementation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAscE,wCAAc;AACd,kDAAmB;AACnB,0CAAe;AACf,oCAAY;AACZ,kCAAW;AA1cb,iC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CAAC,GAAG,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;QACxD,OAAO;YACL,aAAa,EAAE,oBAAoB;YACnC,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,EAAE;SAC3C,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,WAAW,CAAC,KAAK,CAAC,CAAC;QACnB,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,IAAI,KAAK,YAAY,8BAAoB,EAAE,CAAC;QAC1C,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QACnE,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC;AACH,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export interface StoreInitOptions {
2
2
  walletPath?: string;
3
3
  privateKey?: number[] | Uint8Array | string;
4
+ isMainnet?: boolean;
4
5
  }
5
6
  export interface CreateStoreParams {
6
7
  storeName: string;
@@ -10,14 +11,17 @@ export interface CreateCollectionOptions {
10
11
  collectionSymbol: string;
11
12
  collectionName: string;
12
13
  collectionDescription: string;
14
+ mainImageUrl?: string;
15
+ coverImageUrl?: string;
13
16
  }
14
17
  export interface CreateSingleOptions {
15
18
  itemName: string;
16
19
  sellerFee: number;
20
+ itemAmount: number;
17
21
  itemSymbol: string;
18
22
  itemDescription: string;
19
23
  traits: any;
20
- price: number;
24
+ price?: number;
21
25
  mainImageUrl?: string;
22
26
  coverImageUrl?: string;
23
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"implementationTypes.d.ts","sourceRoot":"","sources":["../../../src/types/implementation/implementationTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAE/B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC;CAC7C;AACD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"implementationTypes.d.ts","sourceRoot":"","sources":["../../../src/types/implementation/implementationTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAE/B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AACD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3land_sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "sdk for interacting with 3land's solana program",
5
5
  "main": "./dist/library/implementation/storeImplementation.js",
6
6
  "types": "./dist/library/implementation/storeImplementation.d.ts",
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@ import {
4
4
  createStoreImp,
5
5
  buySingleImp,
6
6
  handleError,
7
+ createCollectionImp,
7
8
  } from "./library/implementation/storeImplementation";
8
9
  import {
9
10
  CreateCollectionOptions,
@@ -19,6 +20,7 @@ async function main() {
19
20
 
20
21
  const optionsWithBase58: StoreInitOptions = {
21
22
  privateKey: "", //your private key
23
+ isMainnet: true,
22
24
  };
23
25
 
24
26
  const storeSetup: CreateStoreParams = {
@@ -33,15 +35,16 @@ async function main() {
33
35
  };
34
36
 
35
37
  const createItemOptions: CreateSingleOptions = {
36
- itemName: "supercoolitem7",
38
+ itemName: "supercoolitem12",
37
39
  sellerFee: 500,
38
- itemSymbol: "SCI7",
39
- itemDescription: "implementing link imgs",
40
+ itemAmount: 101,
41
+ itemSymbol: "SCI11",
42
+ itemDescription: "testing mainnet after refactor",
40
43
  traits: [
41
44
  { trait_type: "type", value: "cool" },
42
45
  { trait_type: "creator", value: "me" },
43
46
  ],
44
- price: 100000000, //100000000 == 0.1 sol
47
+ price: 10000000, //100000000 == 0.1 sol
45
48
  mainImageUrl:
46
49
  "https://arweave.net/FMkKYYsheEImBfejYaPPoJbI3CxJxunwvErD9VYzxOY?ext=jpeg",
47
50
  };
@@ -62,10 +65,11 @@ async function main() {
62
65
  // console.log("collection mint: ", collection);
63
66
  // Create single edition
64
67
  // const storeAccount = "3MwBR619SgJ35ek7vDLxxE5QvBaNq1fmmEZSXKW2X3Lf"; //"P1c4bboejX24NbY3vMw8EncKVmvcGEryznWLs4PGp9j"; //current store created for testing
65
- const collectionAccount = "Fpm8XgXEuNxxjmqUQuqEFkGusiSsKM6astUGPs5U9x6v"; //"2rQq34FJG1613i7H8cDfxuGCtEjJmFAUNbAPJqK699oD";
68
+ const collectionAccount = "GKLBspqHCKJMFKSn46CNdSP3AUeKDvcyF5knXxsJmhLj"; //"7Zsbs84BhMuHVqtigJFH9yQgpxvYnRZY9MyxSQT1ftfa"; //"Fpm8XgXEuNxxjmqUQuqEFkGusiSsKM6astUGPs5U9x6v"; //"2rQq34FJG1613i7H8cDfxuGCtEjJmFAUNbAPJqK699oD";
66
69
  const singleEditionResult = await createSingleImp(
67
70
  optionsWithBase58,
68
- landStoreDevnet,
71
+ // landStoreDevnet,
72
+ landStoreMainnet,
69
73
  collectionAccount,
70
74
  createItemOptions
71
75
  );
@@ -359,7 +359,7 @@ export class IrysHelper {
359
359
 
360
360
  async init(
361
361
  address: string,
362
- options: { arweave_rpc?: string; rpc?: string }
362
+ options: { arweave_rpc?: string; rpc?: string; network?: string }
363
363
  ): Promise<boolean> {
364
364
  const irys_network =
365
365
  options?.arweave_rpc || "https://arweave.devnet.irys.xyz";
@@ -382,11 +382,11 @@ export class IrysHelper {
382
382
  // url: irys_network,
383
383
  token: "solana",
384
384
  key: wallet.secretKey,
385
- network: "devnet",
385
+ network: options?.network || "devnet",
386
386
  config: { providerUrl: irys_network },
387
387
  // wallet: { rpcUrl: rpc, provider },
388
388
  });
389
-
389
+ console.log("irysconfig inside: ", this.irys);
390
390
  await this.irys.ready();
391
391
  const to = await this.irys.utils.getBundlerAddress("solana");
392
392
  const bal = await this.getBalance();
@@ -398,7 +398,7 @@ let global: IrysHelper | null = null;
398
398
 
399
399
  export const init = async (
400
400
  address: string,
401
- options: { arweave_rpc?: string; rpc?: string }
401
+ options: { arweave_rpc?: string; rpc?: string; network?: string }
402
402
  ): Promise<IrysHelper | null> => {
403
403
  if (global) {
404
404
  const g = await global.sync(address);
@@ -192,7 +192,16 @@ export class Store {
192
192
 
193
193
  if (metadata.uri.length !== 0) throw new Error("-- URI must be empty --");
194
194
 
195
- const irys = await Irys(payer.publicKey.toBase58(), {});
195
+ const irysConfig = this.networkConfig.endpoint.includes(
196
+ NetworkType.MAINNET
197
+ )
198
+ ? {
199
+ arweave_rpc: "https://node2.irys.xyz",
200
+ rpc: "https://api.mainnet-beta.solana.com",
201
+ network: "mainnet",
202
+ }
203
+ : {};
204
+ const irys = await Irys(payer.publicKey.toBase58(), irysConfig);
196
205
  const uuid = "random_uuid_per_upload_session";
197
206
 
198
207
  const { instruction, signerIrys, metadataUrl } =
@@ -343,7 +352,17 @@ export class Store {
343
352
  validateIdentifier(identifier);
344
353
 
345
354
  try {
346
- const irys = await Irys(payer.publicKey.toBase58(), {});
355
+ const irysConfig = this.networkConfig.endpoint.includes(
356
+ NetworkType.MAINNET
357
+ )
358
+ ? {
359
+ arweave_rpc: "https://node2.irys.xyz",
360
+ rpc: "https://api.mainnet-beta.solana.com",
361
+ network: "mainnet",
362
+ }
363
+ : {};
364
+ console.log("irysConfig: ", irysConfig);
365
+ const irys = await Irys(payer.publicKey.toBase58(), irysConfig);
347
366
  const uuid = "random_uuid_per_upload_session";
348
367
 
349
368
  const [itemAccount] = await itemAccountPDA({
@@ -25,9 +25,16 @@ import {
25
25
  CreateStoreParams,
26
26
  StoreInitOptions,
27
27
  } from "../../types/implementation/implementationTypes";
28
+ import { NetworkType } from "../../utility/config";
28
29
 
29
30
  function initializeSDKAndWallet(options: StoreInitOptions) {
30
- const sdk = new Store();
31
+ let sdk;
32
+ if (options.isMainnet) {
33
+ sdk = new Store({ network: NetworkType.MAINNET });
34
+ } else {
35
+ sdk = new Store();
36
+ }
37
+
31
38
  let walletKeypair: Keypair;
32
39
 
33
40
  if (options.privateKey) {
@@ -120,37 +127,98 @@ async function createCollectionImp(
120
127
  uses: null,
121
128
  };
122
129
 
123
- const imageBuffer = fs2.readFileSync(
124
- path.join(process.cwd(), "assets", "ds.jpeg")
125
- ).buffer;
126
- const coverBuffer = fs2.readFileSync(
127
- path.join(process.cwd(), "assets", "3land_rebrand.gif")
128
- ).buffer;
129
-
130
- const optionsCollection = {
131
- symbol: metadata.symbol,
132
- metadata: {
133
- name: metadata.name,
134
- description: collectionOpts.collectionDescription,
135
- files: {
136
- file: {
137
- arrayBuffer() {
138
- return imageBuffer;
130
+ let optionsCollection;
131
+ if (collectionOpts.mainImageUrl) {
132
+ // Use URLs if provided
133
+ let files: any = {
134
+ file: {
135
+ url: collectionOpts.mainImageUrl,
136
+ },
137
+ };
138
+
139
+ // Add cover URL if provided
140
+ if (collectionOpts.coverImageUrl) {
141
+ files.cover = {
142
+ url: collectionOpts.coverImageUrl,
143
+ };
144
+ }
145
+
146
+ optionsCollection = {
147
+ symbol: metadata.symbol,
148
+ metadata: {
149
+ name: metadata.name,
150
+ description: collectionOpts.collectionDescription,
151
+ files: files,
152
+ },
153
+ creators: metadata.creators,
154
+ traits: [],
155
+ sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
156
+ };
157
+ } else {
158
+ const imageBuffer = fs2.readFileSync(
159
+ path.join(process.cwd(), "assets", "ds.jpeg")
160
+ ).buffer;
161
+ const coverBuffer = fs2.readFileSync(
162
+ path.join(process.cwd(), "assets", "3land_rebrand.gif")
163
+ ).buffer;
164
+
165
+ optionsCollection = {
166
+ symbol: metadata.symbol,
167
+ metadata: {
168
+ name: metadata.name,
169
+ description: collectionOpts.collectionDescription,
170
+ files: {
171
+ file: {
172
+ arrayBuffer() {
173
+ return imageBuffer;
174
+ },
175
+ type: "image/gif",
139
176
  },
140
- type: "image/gif",
141
- },
142
- cover: {
143
- arrayBuffer() {
144
- return coverBuffer;
177
+ cover: {
178
+ arrayBuffer() {
179
+ return coverBuffer;
180
+ },
181
+ type: "image/gif",
145
182
  },
146
- type: "image/gif",
147
183
  },
148
184
  },
149
- },
150
- creators: metadata.creators,
151
- traits: [],
152
- sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
153
- };
185
+ creators: metadata.creators,
186
+ traits: [],
187
+ sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
188
+ };
189
+ }
190
+
191
+ // const imageBuffer = fs2.readFileSync(
192
+ // path.join(process.cwd(), "assets", "ds.jpeg")
193
+ // ).buffer;
194
+ // const coverBuffer = fs2.readFileSync(
195
+ // path.join(process.cwd(), "assets", "3land_rebrand.gif")
196
+ // ).buffer;
197
+
198
+ // const optionsCollection = {
199
+ // symbol: metadata.symbol,
200
+ // metadata: {
201
+ // name: metadata.name,
202
+ // description: collectionOpts.collectionDescription,
203
+ // files: {
204
+ // file: {
205
+ // arrayBuffer() {
206
+ // return imageBuffer;
207
+ // },
208
+ // type: "image/gif",
209
+ // },
210
+ // cover: {
211
+ // arrayBuffer() {
212
+ // return coverBuffer;
213
+ // },
214
+ // type: "image/gif",
215
+ // },
216
+ // },
217
+ // },
218
+ // creators: metadata.creators,
219
+ // traits: [],
220
+ // sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
221
+ // };
154
222
 
155
223
  try {
156
224
  const collectionTx = await sdk.createCollection(
@@ -304,7 +372,7 @@ async function createSingleImp(
304
372
  const saleConfig: SaleConfig = {
305
373
  prices: [
306
374
  {
307
- amount: new BN(createOptions.price),
375
+ amount: new BN(createOptions.price!),
308
376
  priceType: new CurrencyType.Native(),
309
377
  toJSON: function (): PriceJSON {
310
378
  throw new Error("Function not implemented.");
@@ -329,7 +397,7 @@ async function createSingleImp(
329
397
  const createSingleEditionTxId = await sdk.createSingleEdition(
330
398
  walletKeypair,
331
399
  new PublicKey(storeAccount),
332
- 100,
400
+ createOptions.itemAmount,
333
401
  metadata,
334
402
  saleConfig,
335
403
  [1, 0, 0],
@@ -3,6 +3,7 @@ export interface StoreInitOptions {
3
3
  walletPath?: string;
4
4
  // Add privateKey option - can be array of numbers, Uint8Array, or base58 string
5
5
  privateKey?: number[] | Uint8Array | string;
6
+ isMainnet?: boolean;
6
7
  }
7
8
  export interface CreateStoreParams {
8
9
  storeName: string;
@@ -13,15 +14,18 @@ export interface CreateCollectionOptions {
13
14
  collectionSymbol: string;
14
15
  collectionName: string;
15
16
  collectionDescription: string;
17
+ mainImageUrl?: string;
18
+ coverImageUrl?: string;
16
19
  }
17
20
 
18
21
  export interface CreateSingleOptions {
19
22
  itemName: string;
20
23
  sellerFee: number;
24
+ itemAmount: number;
21
25
  itemSymbol: string;
22
26
  itemDescription: string;
23
27
  traits: any;
24
- price: number;
28
+ price?: number;
25
29
  mainImageUrl?: string;
26
30
  coverImageUrl?: string;
27
31
  }