3land_sdk 1.0.7 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ async function main() {
7
7
  // };
8
8
  const optionsWithBase58 = {
9
9
  privateKey: "", //your private key
10
- isMainnet: true,
10
+ isMainnet: false,
11
11
  };
12
12
  const storeSetup = {
13
13
  storeName: "Super cool store",
@@ -19,16 +19,17 @@ async function main() {
19
19
  collectionDescription: "This is a collection for the cool guys",
20
20
  };
21
21
  const createItemOptions = {
22
- itemName: "supercoolitem12",
22
+ itemName: "supercoolitem16",
23
23
  sellerFee: 500,
24
- itemAmount: 101,
25
- itemSymbol: "SCI11",
24
+ itemAmount: 55,
25
+ itemSymbol: "SCI15",
26
26
  itemDescription: "testing mainnet after refactor",
27
27
  traits: [
28
28
  { trait_type: "type", value: "cool" },
29
29
  { trait_type: "creator", value: "me" },
30
30
  ],
31
- price: 10000000, //100000000 == 0.1 sol
31
+ price: 0, //100000000 == 0.1 sol
32
+ // splHash: "HabTivxE5cnR1G9CmXf3kysdKSmzJncedPstiqiUZBMv",
32
33
  mainImageUrl: "https://arweave.net/FMkKYYsheEImBfejYaPPoJbI3CxJxunwvErD9VYzxOY?ext=jpeg",
33
34
  };
34
35
  try {
@@ -47,10 +48,12 @@ async function main() {
47
48
  // console.log("collection mint: ", collection);
48
49
  // Create single edition
49
50
  // const storeAccount = "3MwBR619SgJ35ek7vDLxxE5QvBaNq1fmmEZSXKW2X3Lf"; //"P1c4bboejX24NbY3vMw8EncKVmvcGEryznWLs4PGp9j"; //current store created for testing
50
- const collectionAccount = "GKLBspqHCKJMFKSn46CNdSP3AUeKDvcyF5knXxsJmhLj"; //"7Zsbs84BhMuHVqtigJFH9yQgpxvYnRZY9MyxSQT1ftfa"; //"Fpm8XgXEuNxxjmqUQuqEFkGusiSsKM6astUGPs5U9x6v"; //"2rQq34FJG1613i7H8cDfxuGCtEjJmFAUNbAPJqK699oD";
51
- const singleEditionResult = await (0, storeImplementation_1.createSingleImp)(optionsWithBase58,
52
- // landStoreDevnet,
53
- landStoreMainnet, collectionAccount, createItemOptions);
51
+ const collectionAccountMain = "GKLBspqHCKJMFKSn46CNdSP3AUeKDvcyF5knXxsJmhLj";
52
+ const collectionAccountDev = "Dj91sSU6EErETscXj4mv4tMV6GM8HgJKFvqDqmq3F7Fz";
53
+ const singleEditionResult = await (0, storeImplementation_1.createSingleImp)(optionsWithBase58, landStoreDevnet,
54
+ // landStoreMainnet,
55
+ // collectionAccountMain,
56
+ collectionAccountDev, createItemOptions);
54
57
  console.log("Single edition created. Transaction ID:", singleEditionResult.transactionId);
55
58
  // Buy single edition
56
59
  // 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,sFAMsD;AAQtD,KAAK,UAAU,IAAI;IACjB,wCAAwC;IACxC,4EAA4E;IAC5E,OAAO;IAEP,MAAM,iBAAiB,GAAqB;QAC1C,UAAU,EAAE,EAAE,EAAE,kBAAkB;QAClC,SAAS,EAAE,IAAI;KAChB,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,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,MA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AE,GAAG,EACtB,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,GAAG,EACb,OAAO,GAAE,OAAe,EACxB,MAAM,GAAE,MAAU;IAwJd,mBAAmB,CACvB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,SAAS,EACvB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,iBAAiB,EAC3B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,MAAM,EAAE,EAClB,aAAa,EAAE,MAAM,EAAE,EACvB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,SAAS,EACrB,QAAQ,EAAE,GAAG,GACZ,OAAO,CAAC,MAAM,CAAC;IAwKZ,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"}
@@ -271,7 +271,9 @@ class Store {
271
271
  const [creatorRegistry] = await (0, PdaManager_1.creatorRegistryPDA)({
272
272
  user: creator,
273
273
  store: storeAccount,
274
- currency: (0, PdaManager_1.toPublicKey)(programId_1.PROGRAM_CNFT),
274
+ currency: saleConfig?.prices?.[0]?.priceType?.kind === "Spl"
275
+ ? (0, PdaManager_1.toPublicKey)(saleConfig?.prices?.[0]?.priceType?.value?.id)
276
+ : (0, PdaManager_1.toPublicKey)(programId_1.PROGRAM_CNFT),
275
277
  });
276
278
  const registerIX = (0, registerCreator_1.registerCreator)({
277
279
  userActivityBump: userActivityBump,
@@ -1 +1 @@
1
- {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/library/Store.ts"],"names":[],"mappings":";;;;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,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;AA9hBD,sBA8hBC"}
@@ -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;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"}
1
+ {"version":3,"file":"storeImplementation.d.ts","sourceRoot":"","sources":["../../../src/library/implementation/storeImplementation.ts"],"names":[],"mappings":"AAsBA,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;;;GA0MnC;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"}
@@ -323,20 +323,47 @@ async function createSingleImp(options, storeAccount, collectionAccount, createO
323
323
  sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
324
324
  };
325
325
  }
326
- console.log("cover options: ", options);
327
- const saleConfig = {
328
- prices: [
329
- {
330
- amount: new bn_js_1.BN(createOptions.price),
331
- priceType: new types_1.CurrencyType.Native(),
332
- toJSON: function () {
333
- throw new Error("Function not implemented.");
326
+ let priceConfig;
327
+ if (createOptions?.price <= 0) {
328
+ priceConfig = [];
329
+ console.log("price is zero");
330
+ }
331
+ else {
332
+ if (createOptions.splHash) {
333
+ priceConfig = [
334
+ {
335
+ amount: new bn_js_1.BN(createOptions.price),
336
+ priceType: new types_1.CurrencyType.Spl({
337
+ id: new web3_js_1.PublicKey(createOptions.splHash),
338
+ }),
339
+ toJSON: function () {
340
+ throw new Error("Function not implemented.");
341
+ },
342
+ toEncodable: function () {
343
+ throw new Error("Function not implemented.");
344
+ },
334
345
  },
335
- toEncodable: function () {
336
- throw new Error("Function not implemented.");
346
+ ];
347
+ console.log("spl hash: ", createOptions.splHash);
348
+ }
349
+ else {
350
+ priceConfig = [
351
+ {
352
+ amount: new bn_js_1.BN(createOptions.price),
353
+ priceType: new types_1.CurrencyType.Native(),
354
+ toJSON: function () {
355
+ throw new Error("Function not implemented.");
356
+ },
357
+ toEncodable: function () {
358
+ throw new Error("Function not implemented.");
359
+ },
337
360
  },
338
- },
339
- ],
361
+ ];
362
+ }
363
+ }
364
+ console.log("priceConfig: ", priceConfig);
365
+ const saleConfig = {
366
+ prices: priceConfig,
340
367
  priceType: new types_1.PriceRule.None(),
341
368
  rules: [],
342
369
  sendToVault: 0,
@@ -1 +1 @@
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,iCAA2B;AAC3B,oCAA0D;AAC1D,6CAA2E;AAC3E,6CAW2B;AAC3B,kDAA+C;AAC/C,wCAA0B;AAE1B,gDAAwB;AAExB,sEAAkE;AAOlE,iDAAmD;AAEnD,SAAS,sBAAsB,CAAC,OAAyB;IACvD,IAAI,GAAG,CAAC;IACR,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACtB,GAAG,GAAG,IAAI,aAAK,CAAC,EAAE,OAAO,EAAE,oBAAW,CAAC,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;SAAM,CAAC;QACN,GAAG,GAAG,IAAI,aAAK,EAAE,CAAC;IACpB,CAAC;IAED,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+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C;QACnB,MAAM,KAAK,CAAC;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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgeE,wCAAc;AACd,kDAAmB;AACnB,0CAAe;AACf,oC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;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"}
@@ -24,5 +24,6 @@ export interface CreateSingleOptions {
24
24
  price?: number;
25
25
  mainImageUrl?: string;
26
26
  coverImageUrl?: string;
27
+ splHash?: string;
27
28
  }
28
29
  //# sourceMappingURL=implementationTypes.d.ts.map
@@ -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;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"}
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;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -46,14 +46,16 @@ function validateMetadata(metadata) {
46
46
  }
47
47
  }
48
48
  function validateSaleConfig(config) {
49
- if (!config.prices || !config.prices.length) {
50
- throw new ValidationError("At least one price configuration is required");
51
- }
52
- config.prices.forEach((price) => {
53
- if (!price.amount || !(price.amount instanceof bn_js_1.BN)) {
54
- throw new ValidationError("Each price amount must be a valid BN instance");
55
- }
56
- });
49
+ // if (!config.prices || !config.prices.length) {
50
+ // throw new ValidationError("At least one price configuration is required");
51
+ // }
52
+ // config.prices.forEach((price) => {
53
+ // if (!price.amount || !(price.amount instanceof BN)) {
54
+ // throw new ValidationError(
55
+ // "Each price amount must be a valid BN instance"
56
+ // );
57
+ // }
58
+ // });
57
59
  if (config.sendToVault < 0) {
58
60
  throw new ValidationError("sendToVault must be non-negative");
59
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/utility/validation.ts"],"names":[],"mappings":";;;AAWA,kDAkBC;AAED,4CAsBC;AAED,gDAgBC;AAED,wCAIC;AAED,gDAIC;AAED,wDAoDC;AAED,sDAyFC;AApOD,6CAAoD;AAEpD,iCAA2B;AAE3B,MAAa,eAAgB,SAAQ,KAAK;IACxC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AALD,0CAKC;AAED,SAAgB,mBAAmB,CAAC,MAAmB;IACrD,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,YAAY,UAAE,CAAC,EAAE,CAAC;QAC/C,MAAM,IAAI,eAAe,CAAC,uCAAuC,CAAC,CAAC;IACrE,CAAC;IAED,IACE,OAAO,MAAM,CAAC,aAAa,KAAK,QAAQ;QACxC,MAAM,CAAC,aAAa,GAAG,CAAC;QACxB,MAAM,CAAC,aAAa,GAAG,GAAG,EAC1B,CAAC;QACD,MAAM,IAAI,eAAe,CACvB,mDAAmD,CACpD,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,YAAY,mBAAS,CAAC,EAAE,CAAC;QAC1D,MAAM,IAAI,eAAe,CAAC,iCAAiC,CAAC,CAAC;IAC/D,CAAC;AACH,CAAC;AAED,SAAgB,gBAAgB,CAAC,QAA2B;IAC1D,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,GAAG,EAAE,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AAsD,KAAK,EAAE,CAC9D,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3land_sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
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
@@ -20,7 +20,7 @@ async function main() {
20
20
 
21
21
  const optionsWithBase58: StoreInitOptions = {
22
22
  privateKey: "", //your private key
23
- isMainnet: true,
23
+ isMainnet: false,
24
24
  };
25
25
 
26
26
  const storeSetup: CreateStoreParams = {
@@ -35,16 +35,17 @@ async function main() {
35
35
  };
36
36
 
37
37
  const createItemOptions: CreateSingleOptions = {
38
- itemName: "supercoolitem12",
38
+ itemName: "supercoolitem16",
39
39
  sellerFee: 500,
40
- itemAmount: 101,
41
- itemSymbol: "SCI11",
40
+ itemAmount: 55,
41
+ itemSymbol: "SCI15",
42
42
  itemDescription: "testing mainnet after refactor",
43
43
  traits: [
44
44
  { trait_type: "type", value: "cool" },
45
45
  { trait_type: "creator", value: "me" },
46
46
  ],
47
- price: 10000000, //100000000 == 0.1 sol
47
+ price: 0, //100000000 == 0.1 sol
48
+ // splHash: "HabTivxE5cnR1G9CmXf3kysdKSmzJncedPstiqiUZBMv",
48
49
  mainImageUrl:
49
50
  "https://arweave.net/FMkKYYsheEImBfejYaPPoJbI3CxJxunwvErD9VYzxOY?ext=jpeg",
50
51
  };
@@ -65,12 +66,15 @@ async function main() {
65
66
  // console.log("collection mint: ", collection);
66
67
  // Create single edition
67
68
  // const storeAccount = "3MwBR619SgJ35ek7vDLxxE5QvBaNq1fmmEZSXKW2X3Lf"; //"P1c4bboejX24NbY3vMw8EncKVmvcGEryznWLs4PGp9j"; //current store created for testing
68
- const collectionAccount = "GKLBspqHCKJMFKSn46CNdSP3AUeKDvcyF5knXxsJmhLj"; //"7Zsbs84BhMuHVqtigJFH9yQgpxvYnRZY9MyxSQT1ftfa"; //"Fpm8XgXEuNxxjmqUQuqEFkGusiSsKM6astUGPs5U9x6v"; //"2rQq34FJG1613i7H8cDfxuGCtEjJmFAUNbAPJqK699oD";
69
+ const collectionAccountMain =
70
+ "GKLBspqHCKJMFKSn46CNdSP3AUeKDvcyF5knXxsJmhLj";
71
+ const collectionAccountDev = "Dj91sSU6EErETscXj4mv4tMV6GM8HgJKFvqDqmq3F7Fz";
69
72
  const singleEditionResult = await createSingleImp(
70
73
  optionsWithBase58,
71
- // landStoreDevnet,
72
- landStoreMainnet,
73
- collectionAccount,
74
+ landStoreDevnet,
75
+ // landStoreMainnet,
76
+ // collectionAccountMain,
77
+ collectionAccountDev,
74
78
  createItemOptions
75
79
  );
76
80
  console.log(
@@ -460,7 +460,10 @@ export class Store {
460
460
  const [creatorRegistry] = await creatorRegistryPDA({
461
461
  user: creator,
462
462
  store: storeAccount,
463
- currency: toPublicKey(PROGRAM_CNFT),
463
+ currency:
464
+ saleConfig?.prices?.[0]?.priceType?.kind === "Spl"
465
+ ? toPublicKey(saleConfig?.prices?.[0]?.priceType?.value?.id)
466
+ : toPublicKey(PROGRAM_CNFT),
464
467
  });
465
468
 
466
469
  const registerIX = registerCreator(
@@ -5,6 +5,7 @@ import {
5
5
  Creator,
6
6
  CurrencyType,
7
7
  FeeType,
8
+ Price,
8
9
  PriceJSON,
9
10
  PriceRule,
10
11
  SaleConfigJSON,
@@ -367,21 +368,46 @@ async function createSingleImp(
367
368
  };
368
369
  }
369
370
 
370
- console.log("cover options: ", options);
371
-
372
- const saleConfig: SaleConfig = {
373
- prices: [
374
- {
375
- amount: new BN(createOptions.price!),
376
- priceType: new CurrencyType.Native(),
377
- toJSON: function (): PriceJSON {
378
- throw new Error("Function not implemented.");
371
+ let priceConfig: Price[];
372
+ if (createOptions?.price! <= 0) {
373
+ priceConfig = [];
374
+ console.log("price is zero");
375
+ } else {
376
+ if (createOptions.splHash) {
377
+ priceConfig = [
378
+ {
379
+ amount: new BN(createOptions.price!),
380
+ priceType: new CurrencyType.Spl({
381
+ id: new PublicKey(createOptions.splHash),
382
+ }),
383
+ toJSON: function (): PriceJSON {
384
+ throw new Error("Function not implemented.");
385
+ },
386
+ toEncodable: function () {
387
+ throw new Error("Function not implemented.");
388
+ },
379
389
  },
380
- toEncodable: function () {
381
- throw new Error("Function not implemented.");
390
+ ];
391
+ console.log("spl hash: ", createOptions.splHash);
392
+ } else {
393
+ priceConfig = [
394
+ {
395
+ amount: new BN(createOptions.price!),
396
+ priceType: new CurrencyType.Native(),
397
+ toJSON: function (): PriceJSON {
398
+ throw new Error("Function not implemented.");
399
+ },
400
+ toEncodable: function () {
401
+ throw new Error("Function not implemented.");
402
+ },
382
403
  },
383
- },
384
- ],
404
+ ];
405
+ }
406
+ }
407
+
408
+ console.log("priceConfig: ", priceConfig);
409
+ const saleConfig: SaleConfig = {
410
+ prices: priceConfig,
385
411
  priceType: new PriceRule.None(),
386
412
  rules: [],
387
413
  sendToVault: 0,
@@ -28,4 +28,5 @@ export interface CreateSingleOptions {
28
28
  price?: number;
29
29
  mainImageUrl?: string;
30
30
  coverImageUrl?: string;
31
+ splHash?: string;
31
32
  }
@@ -54,17 +54,17 @@ export function validateMetadata(metadata: ShortMetadataArgs) {
54
54
  }
55
55
 
56
56
  export function validateSaleConfig(config: SaleConfig) {
57
- if (!config.prices || !config.prices.length) {
58
- throw new ValidationError("At least one price configuration is required");
59
- }
60
-
61
- config.prices.forEach((price) => {
62
- if (!price.amount || !(price.amount instanceof BN)) {
63
- throw new ValidationError(
64
- "Each price amount must be a valid BN instance"
65
- );
66
- }
67
- });
57
+ // if (!config.prices || !config.prices.length) {
58
+ // throw new ValidationError("At least one price configuration is required");
59
+ // }
60
+
61
+ // config.prices.forEach((price) => {
62
+ // if (!price.amount || !(price.amount instanceof BN)) {
63
+ // throw new ValidationError(
64
+ // "Each price amount must be a valid BN instance"
65
+ // );
66
+ // }
67
+ // });
68
68
 
69
69
  if (config.sendToVault < 0) {
70
70
  throw new ValidationError("sendToVault must be non-negative");