Skip to content

Commit

Permalink
v2.0.0-alpha.1 is ready. fixed some typos. tested locally via integra…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
newbreedofgeek committed Sep 22, 2023
1 parent c1b5e4b commit f17963f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -222,7 +222,7 @@ export class DataNftMarket {
}

/**
* Retrives an array of `Offer` objects.
* Retrieves an array of `Offer` objects.
*/
async viewOffers(): Promise<Offer[]> {
const interaction = this.contract.methodsExplicit.getOffers();
Expand Down
6 changes: 3 additions & 3 deletions src/minter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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<string[]> {
const interaction = this.contract.methodsExplicit.getCollectionFrozenList();
Expand All @@ -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<number[]> {
Expand Down
8 changes: 4 additions & 4 deletions src/nft-minter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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()))
Expand Down Expand Up @@ -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<string[]> {
const interaction =
Expand Down
1 change: 0 additions & 1 deletion src/sft-minter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
ContractCallPayloadBuilder,
ContractFunction,
IAddress,
ResultsParser,
StringValue,
TokenIdentifierValue,
Transaction,
Expand Down

0 comments on commit f17963f

Please sign in to comment.