Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unique-nft/client

Package Overview
Dependencies
Maintainers
7
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unique-nft/client - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

33

index.d.ts

@@ -112,6 +112,6 @@ import { AxiosInstance } from 'axios';

tokenId: number;
/** Sender address */
from: object;
/** Recipient address */
to: object;
/** @example unjKJQJrRd238pkUZZvzDQrfKuM39zBSnQ5zjAGAGcdRhaJTx */
from: string;
/** @example unhk98EgHVJ3Efjz4912GfWkMoW2GXe3SuFrQ6u2bYeWToXrE */
to: string;
value: number;

@@ -149,2 +149,6 @@ }

}
interface TokenOwnerResponse {
/** @example unjq56sK9skTMR1MyPLsDFXkQdRNNrD1gzE4wRJSYm2k6GjJn */
owner: string;
}
interface TopmostTokenOwnerResponse {

@@ -232,8 +236,2 @@ /** @example unjq56sK9skTMR1MyPLsDFXkQdRNNrD1gzE4wRJSYm2k6GjJn */

}
interface SubstrateAddress {
Substrate: string;
}
interface EthereumAddress {
Ethereum: string;
}
interface NestingParentId {

@@ -243,3 +241,3 @@ collectionId: number;

}
interface UniqueTokenDecodedResponse {
interface TokenByIdResponse {
attributes: DecodedAttributeDto[];

@@ -259,3 +257,4 @@ collectionId: number;

};
owner: SubstrateAddress | EthereumAddress;
/** @example unjKJQJrRd238pkUZZvzDQrfKuM39zBSnQ5zjAGAGcdRhaJTx */
owner: string;
tokenId: number;

@@ -695,2 +694,6 @@ audio: ({

}
interface LastTokenIdResultDto {
/** @example 1 */
tokenId: number;
}
interface AttributeSchemaDto {

@@ -1107,2 +1110,5 @@ /** @example {"_":"Hello!","en":"Hello!","fr":"Bonjour!"} */

transfer: IMutation<TransferCollectionBody, TransferCollectionParsed>;
lastTokenId(args: {
collectionId: number;
}): Promise<LastTokenIdResultDto>;
}

@@ -1114,3 +1120,3 @@ interface ITokens extends ISection {

createMultiple: IMutation<CreateTokensDto, TokenId[]>;
get(args: TokenId): Promise<UniqueTokenDecodedResponse>;
get(args: TokenId): Promise<TokenByIdResponse>;
exists(args: TokenId): Promise<TokenExistsDto>;

@@ -1122,2 +1128,3 @@ properties(args: TokenId): Promise<TokenProperty[]>;

parent(args: TokenId): Promise<TokenParentResponse>;
owner(args: TokenId): Promise<TokenOwnerResponse>;
topmostOwner(args: TokenId): Promise<TopmostTokenOwnerResponse>;

@@ -1124,0 +1131,0 @@ nest: IMutation<NestTokenBody, TokenId>;

@@ -184,2 +184,11 @@ import Axios from 'axios';

}
async lastTokenId(args) {
const response = await this.client.instance({
method: "GET",
baseURL: this.baseUrl,
url: "last-token-id",
params: args
});
return response.data;
}
}

@@ -261,2 +270,11 @@

}
async owner({ collectionId, tokenId }) {
const response = await this.client.instance({
method: "GET",
baseURL: this.baseUrl,
url: "owner",
params: { collectionId, tokenId }
});
return response.data;
}
async topmostOwner({

@@ -263,0 +281,0 @@ collectionId,

{
"name": "@unique-nft/client",
"version": "0.1.3",
"version": "0.1.4",
"license": "MIT",

@@ -5,0 +5,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc