diff --git a/README.md b/README.md index 7f40e7d..6068d13 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This SDK is currently focused on interacting with the Itheum's Data NFT technolo ### Dev Testing -- Only simple dev testing added. First **Build** as below and then run `npm run devtest` and work on the test.mjs file for live reload +- Only simple dev testing added. First **Build** as below and then run `npm run test` and work on the test.mjs file for live reload ### Build diff --git a/package-lock.json b/package-lock.json index 02a6b36..d1afaba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@itheum/sdk-mx-data-nft", - "version": "1.2.0", + "version": "2.0.0-alpha.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@itheum/sdk-mx-data-nft", - "version": "1.2.0", + "version": "2.0.0-alpha.1", "license": "GPL-3.0-only", "dependencies": { "@multiversx/sdk-core": "12.8.0", @@ -19,7 +19,7 @@ "jest": "29.7.0", "ts-jest": "29.1.1", "tslint": "6.1.3", - "typedoc": "^0.25.1", + "typedoc": "0.25.1", "typescript": "5.2.2" } }, diff --git a/package.json b/package.json index c9bcd92..61ca6d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@itheum/sdk-mx-data-nft", - "version": "1.2.0", + "version": "2.0.0-alpha.1", "description": "SDK for Itheum's Data NFT Technology on MultiversX Blockchain", "main": "out/index.js", "types": "out/index.d.js", diff --git a/src/marketplace.ts b/src/marketplace.ts index 23c8660..84d24e8 100644 --- a/src/marketplace.ts +++ b/src/marketplace.ts @@ -64,7 +64,7 @@ export class DataNftMarket { } /** - * Retrives the address of the marketplace smart contract based on the environment + * Retrieves the address of the marketplace smart contract based on the environment */ getContractAddress(): IAddress { return this.contract.getAddress(); @@ -222,7 +222,7 @@ export class DataNftMarket { } /** - * Retrives an array of `Offer` objects. + * Retrieves an array of `Offer` objects. */ async viewOffers(): Promise { const interaction = this.contract.methodsExplicit.getOffers(); diff --git a/src/minter.ts b/src/minter.ts index 1382dd8..0e42d96 100644 --- a/src/minter.ts +++ b/src/minter.ts @@ -60,7 +60,7 @@ export abstract class Minter { } /** - * Retrives the address of the minter smart contract based on the environment + * Retrieves the address of the minter smart contract based on the environment */ getContractAddress(): IAddress { return this.contract.getAddress(); @@ -158,7 +158,7 @@ export abstract class Minter { } /** - * Retrives a list of addresses that are frozen for collection + * Retrieves a list of addresses that are frozen for collection */ async viewCollectionFrozenAddresses(): Promise { const interaction = this.contract.methodsExplicit.getCollectionFrozenList(); @@ -184,7 +184,7 @@ export abstract class Minter { } /** - * Retrives a list of nonces that are frozen for address + * Retrieves a list of nonces that are frozen for address * @param address The address to check */ async viewAddressFrozenNonces(address: IAddress): Promise { diff --git a/src/nft-minter.ts b/src/nft-minter.ts index 810a142..2a2ec2d 100644 --- a/src/nft-minter.ts +++ b/src/nft-minter.ts @@ -100,14 +100,14 @@ export class NftMinter extends Minter { /** * Creates a updateAttributes transaction for the contract * @param senderAddress The address of the sender, must be the admin of the contract - * @param tokenIdentiifer The token identifier of the data nft to update attributes + * @param tokenIdentifier The token identifier of the data nft to update attributes * @param nonce The nonce of the token to update attributes * @param attributes The new attributes to update * @param quantity The quantity of the token to update attributes (default: 1) */ updateAttributes( senderAddress: IAddress, - tokenIdentiifer: string, + tokenIdentifier: string, nonce: number, attributes: { dataMarshalUrl: string; @@ -123,7 +123,7 @@ export class NftMinter extends Minter { value: 0, data: new ContractCallPayloadBuilder() .setFunction(new ContractFunction('ESDTNFTTransfer')) - .addArg(new TokenIdentifierValue(tokenIdentiifer)) + .addArg(new TokenIdentifierValue(tokenIdentifier)) .addArg(new U64Value(nonce)) .addArg(new U64Value(quantity)) .addArg(new AddressValue(this.contract.getAddress())) @@ -485,7 +485,7 @@ export class NftMinter extends Minter { } /** - * Retrieves the addresss with update attributes roles for contract collection + * Retrieves the address with update attributes roles for contract collection */ async viewUpdateAttributesRoles(): Promise { const interaction = diff --git a/src/sft-minter.ts b/src/sft-minter.ts index 43b2db1..08c637e 100644 --- a/src/sft-minter.ts +++ b/src/sft-minter.ts @@ -5,7 +5,6 @@ import { ContractCallPayloadBuilder, ContractFunction, IAddress, - ResultsParser, StringValue, TokenIdentifierValue, Transaction,