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

@unique-nft/sdk

Package Overview
Dependencies
Maintainers
7
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unique-nft/sdk - npm Package Compare versions

Comparing version 0.1.1 to 0.5.9

57

index.d.ts
import { AxiosInstance } from 'axios';
import { Blob } from 'node:buffer';
declare type arrayNumberRecordStringAny = string | number;
declare type IpfsUploadRequest = {
file: Blob | Buffer;
};

@@ -300,3 +304,3 @@ interface TokenIdQuery {

/** @example Build */
use?: 'Build' | 'Sign' | 'Submit' | 'SubmitWatch' | 'Result';
use?: 'Build' | 'BuildBatch' | 'Sign' | 'Submit' | 'SubmitWatch' | 'Result';
/** @example false */

@@ -313,2 +317,6 @@ withFee?: boolean;

}
interface BuildBatchPayloadsResponse {
payloads: string[];
nextNonce: number;
}
interface CreateTokenPayload {

@@ -396,2 +404,3 @@ owner?: string;

nested: TokenId;
value?: number;
}

@@ -410,2 +419,3 @@ interface NestTokenResponse {

nested: TokenId;
value?: number;
}

@@ -585,3 +595,3 @@ interface UnnestTokenResponse {

}
interface CollectionIdQuery {
interface CollectionByIdQuery {
/**

@@ -592,4 +602,3 @@ * Hash of execution block

at?: string;
/** @example 1 */
collectionId: number;
collectionId: string;
}

@@ -862,2 +871,11 @@ interface CollectionSponsorship {

}
interface CollectionIdQuery {
/**
* Hash of execution block
* @example 0xd2da8cb57e892cd1487ed289d7a9c96a0590a35b034adfb7a0bd99340aa31e74
*/
at?: string;
/** @example 1 */
collectionId: number;
}
interface EffectiveCollectionLimitsResponse {

@@ -915,3 +933,3 @@ /** @example 1 */

*/
from: string;
address: string;
/**

@@ -1617,5 +1635,8 @@ * The ss-58 encoded address

interface IExtrinsics extends ISection {
interface ISection {
path: string;
baseUrl: string;
client: IClient;
}
interface IExtrinsics extends ISection {
build(args: TxBuildBody): Promise<UnsignedTxPayloadBody>;

@@ -1627,7 +1648,2 @@ getFee(args: TxBuildBody | UnsignedTxPayloadBody | SubmitTxBody): Promise<FeeResponse>;

}
interface ISection {
path: string;
baseUrl: string;
client: IClient;
}
interface MutationOptions {

@@ -1647,4 +1663,2 @@ signer?: Signer;

interface IBalance extends ISection {
path: string;
baseUrl: string;
transfer: IMutation<BalanceTransferBody, BalanceTransferParsed>;

@@ -1656,4 +1670,2 @@ get(args: {

interface IFungible extends ISection {
path: string;
baseUrl: string;
getCollection(args: {

@@ -1671,11 +1683,6 @@ collectionId: number;

interface IIpfs extends ISection {
path: string;
baseUrl: string;
uploadFile({ file }: {
file: Blob | Buffer;
}): Promise<IpfsUploadResponse>;
uploadFile({ file }: IpfsUploadRequest): Promise<IpfsUploadResponse>;
uploadZip({ file }: IpfsUploadRequest): Promise<IpfsUploadResponse>;
}
interface ICollections extends ISection {
path: string;
baseUrl: string;
creation: IMutation<CreateCollectionBody, CreateCollectionParsed>;

@@ -1726,4 +1733,2 @@ setLimits: IMutation<SetCollectionLimitsBody, SetCollectionLimitsParsed>;

interface ITokens extends ISection {
path: string;
baseUrl: string;
create: IMutation<CreateTokenBody, TokenId>;

@@ -1763,3 +1768,3 @@ createMultiple: IMutation<CreateMultipleTokensBody, TokenId[]>;

baseUrl: string;
signer: Signer | null;
signer?: Signer | null;
maximumNumberOfStatusRequests?: number;

@@ -1808,2 +1813,2 @@ waitBetweenStatusRequestsInMs?: number;

export { AccountTokensQuery, AccountTokensResponse, AddCollectionAdminBody, AddCollectionAdminParsed, AddCollectionAdminResponse, AddToAllowListBody, AddToAllowListParsed, AddToAllowListResponse, AddTokensArgsDto, AddTokensResultDto, AddressDto, AddressWithPrefixQuery, AdminlistResponse, AllBalancesResponse, AllowListBodyResult, AllowListQuery, AllowanceArgumentsQuery, AllowanceResultResponse, AllowedQuery, AllowedResponse, ApiGetterParams, ApiRequestBody, ApproveTokenBody, ApproveTokenParsed, ApproveTokenResponse, AttributeSchemaDto, AudioDto, BalanceResponse, BalanceTransferBody, BalanceTransferParsed, BalanceTransferResponse, BaseQuery, BurnTokenBody, BurnTokenParsed, BurnTokenResponse, ChainPropertiesResponse, Client, ClientParameters, CollectionIdQuery, CollectionInfoWithSchemaResponse, CollectionLimitsDto, CollectionNestingPermissionsDto, CollectionPermissionsDto, CollectionPropertiesResponse, CollectionProperty, CollectionPropertyDeletedEvent, CollectionPropertySetEvent, CollectionSponsorship, ConfirmSponsorshipBody, ConfirmSponsorshipParsed, ConfirmSponsorshipResponse, CreateCollectionBody, CreateCollectionParsed, CreateCollectionResponse, CreateERC721CollectionBody, CreateERC721TokenBody, CreateERC721TokenResponse, CreateFungibleCollectionRequest, CreateMultipleTokensBody, CreateTokenBody, CreateTokenPayload, DecodedAttributeDto, DeleteCollectionPropertiesBody, DeleteCollectionPropertiesParsed, DeleteCollectionPropertiesResponse, DeleteTokenPropertiesBody, DeleteTokenPropertiesParsed, DeleteTokenPropertiesResponse, DestroyCollectionBody, DestroyCollectionParsed, DestroyCollectionResponse, EffectiveCollectionLimitsResponse, EthereumAddress, EthereumAddressDto, ExtrinsicResultEvent, ExtrinsicResultRequest, ExtrinsicResultResponse, FeeResponse, FungibleCollectionInfoDto, GenerateAccountDataBody, GetAccountDataQuery, GetBalanceQuery, GetBundleResponse, GetCollectionTokensResponse, GetFungibleBalanceArgsRequest, GetStatsResponse, IBalance, IChain, IClient, ICollections, IERC721, IExtrinsics, IFungible, IIpfs, IMutation, ISection, ITokens, ImageDto, ImagePreviewDto, IpfsUploadResponse, IsBundleResponse, LastTokenIdQuery, LastTokenIdResultDto, MutationMethodQuery, MutationOptions, NestTokenBody, NestTokenResponse, NestingAddressDto, NestingParentId, NextSponsoredQuery, NextSponsoredResponse, OldPropertiesDto, Options, PropertyKeyPermission, PropertyPermission, PropertyPermissionSetEvent, PropertyPermissionsQuery, PropertyPermissionsResponse, RemoveCollectionAdminBody, RemoveCollectionAdminParsed, RemoveCollectionAdminResponse, RemoveFromAllowListBody, RemoveFromAllowListParsed, RemoveFromAllowListResponse, RemoveSponsorshipBody, RemoveSponsorshipParsed, RemoveSponsorshipResponse, Sdk, SetCollectionLimitsBody, SetCollectionLimitsParsed, SetCollectionLimitsResponse, SetCollectionPermissionsBody, SetCollectionPermissionsParsed, SetCollectionPermissionsResponse, SetCollectionPropertiesBody, SetCollectionPropertiesParsed, SetCollectionPropertiesResponse, SetPropertyPermissionsBody, SetPropertyPermissionsParsed, SetPropertyPermissionsResponse, SetSponsorshipBody, SetSponsorshipParsed, SetSponsorshipResponse, SetTokenPropertiesBody, SetTokenPropertiesParsed, SetTokenPropertiesResponse, SetTransfersEnabledBody, SetTransfersEnabledParsed, SetTransfersEnabledResponse, SignResponse, SignTxResultResponse, Signer, SignerPayloadJSONDto, SignerPayloadRawDto, SpatialObjectDto, SubmitResponse, SubmitResultResponse, SubmitTxBody, SubstrateAddress, TokenByIdResponse, TokenChildrenResponse, TokenExistsResponse, TokenId, TokenIdQuery, TokenOwnerResponse, TokenParentResponse, TokenPropertiesResponse, TokenProperty, TokenPropertyDeletedEvent, TokenPropertySetEvent, TopmostTokenOwnerResponse, TotalSupplyResponse, TransferCollectionBody, TransferCollectionParsed, TransferCollectionResponse, TransferTokenBody, TransferTokenParsed, TransferTokenResponse, TransferTokensArgsDto, TransferTokensResultDto, TxBuildBody, UniqueCollectionSchemaDecodedDto, UniqueCollectionSchemaToCreateDto, UniqueTokenToCreateDto, UnnestTokenBody, UnnestTokenResponse, UnsignedTxPayloadBody, UnsignedTxPayloadResponse, VerificationResultResponse, VideoDto, arrayNumberRecordStringAny };
export { AccountTokensQuery, AccountTokensResponse, AddCollectionAdminBody, AddCollectionAdminParsed, AddCollectionAdminResponse, AddToAllowListBody, AddToAllowListParsed, AddToAllowListResponse, AddTokensArgsDto, AddTokensResultDto, AddressDto, AddressWithPrefixQuery, AdminlistResponse, AllBalancesResponse, AllowListBodyResult, AllowListQuery, AllowanceArgumentsQuery, AllowanceResultResponse, AllowedQuery, AllowedResponse, ApiGetterParams, ApiRequestBody, ApproveTokenBody, ApproveTokenParsed, ApproveTokenResponse, AttributeSchemaDto, AudioDto, BalanceResponse, BalanceTransferBody, BalanceTransferParsed, BalanceTransferResponse, BaseQuery, BuildBatchPayloadsResponse, BurnTokenBody, BurnTokenParsed, BurnTokenResponse, ChainPropertiesResponse, Client, ClientParameters, CollectionByIdQuery, CollectionIdQuery, CollectionInfoWithSchemaResponse, CollectionLimitsDto, CollectionNestingPermissionsDto, CollectionPermissionsDto, CollectionPropertiesResponse, CollectionProperty, CollectionPropertyDeletedEvent, CollectionPropertySetEvent, CollectionSponsorship, ConfirmSponsorshipBody, ConfirmSponsorshipParsed, ConfirmSponsorshipResponse, CreateCollectionBody, CreateCollectionParsed, CreateCollectionResponse, CreateERC721CollectionBody, CreateERC721TokenBody, CreateERC721TokenResponse, CreateFungibleCollectionRequest, CreateMultipleTokensBody, CreateTokenBody, CreateTokenPayload, DecodedAttributeDto, DeleteCollectionPropertiesBody, DeleteCollectionPropertiesParsed, DeleteCollectionPropertiesResponse, DeleteTokenPropertiesBody, DeleteTokenPropertiesParsed, DeleteTokenPropertiesResponse, DestroyCollectionBody, DestroyCollectionParsed, DestroyCollectionResponse, EffectiveCollectionLimitsResponse, EthereumAddress, EthereumAddressDto, ExtrinsicResultEvent, ExtrinsicResultRequest, ExtrinsicResultResponse, FeeResponse, FungibleCollectionInfoDto, GenerateAccountDataBody, GetAccountDataQuery, GetBalanceQuery, GetBundleResponse, GetCollectionTokensResponse, GetFungibleBalanceArgsRequest, GetStatsResponse, IBalance, IChain, IClient, ICollections, IERC721, IExtrinsics, IFungible, IIpfs, IMutation, ISection, ITokens, ImageDto, ImagePreviewDto, IpfsUploadRequest, IpfsUploadResponse, IsBundleResponse, LastTokenIdQuery, LastTokenIdResultDto, MutationMethodQuery, MutationOptions, NestTokenBody, NestTokenResponse, NestingAddressDto, NestingParentId, NextSponsoredQuery, NextSponsoredResponse, OldPropertiesDto, Options, PropertyKeyPermission, PropertyPermission, PropertyPermissionSetEvent, PropertyPermissionsQuery, PropertyPermissionsResponse, RemoveCollectionAdminBody, RemoveCollectionAdminParsed, RemoveCollectionAdminResponse, RemoveFromAllowListBody, RemoveFromAllowListParsed, RemoveFromAllowListResponse, RemoveSponsorshipBody, RemoveSponsorshipParsed, RemoveSponsorshipResponse, Sdk, SetCollectionLimitsBody, SetCollectionLimitsParsed, SetCollectionLimitsResponse, SetCollectionPermissionsBody, SetCollectionPermissionsParsed, SetCollectionPermissionsResponse, SetCollectionPropertiesBody, SetCollectionPropertiesParsed, SetCollectionPropertiesResponse, SetPropertyPermissionsBody, SetPropertyPermissionsParsed, SetPropertyPermissionsResponse, SetSponsorshipBody, SetSponsorshipParsed, SetSponsorshipResponse, SetTokenPropertiesBody, SetTokenPropertiesParsed, SetTokenPropertiesResponse, SetTransfersEnabledBody, SetTransfersEnabledParsed, SetTransfersEnabledResponse, SignResponse, SignTxResultResponse, Signer, SignerPayloadJSONDto, SignerPayloadRawDto, SpatialObjectDto, SubmitResponse, SubmitResultResponse, SubmitTxBody, SubstrateAddress, TokenByIdResponse, TokenChildrenResponse, TokenExistsResponse, TokenId, TokenIdQuery, TokenOwnerResponse, TokenParentResponse, TokenPropertiesResponse, TokenProperty, TokenPropertyDeletedEvent, TokenPropertySetEvent, TopmostTokenOwnerResponse, TotalSupplyResponse, TransferCollectionBody, TransferCollectionParsed, TransferCollectionResponse, TransferTokenBody, TransferTokenParsed, TransferTokenResponse, TransferTokensArgsDto, TransferTokensResultDto, TxBuildBody, UniqueCollectionSchemaDecodedDto, UniqueCollectionSchemaToCreateDto, UniqueTokenToCreateDto, UnnestTokenBody, UnnestTokenResponse, UnsignedTxPayloadBody, UnsignedTxPayloadResponse, VerificationResultResponse, VideoDto, arrayNumberRecordStringAny };

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

}
async buildBatch(args, options) {
const response = await this.client.instance({
method: this.method,
url: this.url,
params: __spreadProps(__spreadValues({}, options), { use: "BuildBatch" }),
data: args
});
return response.data;
}
async build(args, options) {

@@ -452,5 +461,3 @@ const response = await this.client.instance({

}
async uploadFile({
file
}) {
async uploadFile({ file }) {
const form = new FormData();

@@ -468,5 +475,3 @@ form.append("file", file, "file");

}
async uploadZip({
file
}) {
async uploadZip({ file }) {
const form = new FormData();

@@ -521,3 +526,3 @@ form.append("file", file, "file");

var version = "0.2.0";
var version = "0.1.2";

@@ -536,4 +541,3 @@ class Client {

this.defaults = {
baseUrl: "",
signer: null
baseUrl: ""
};

@@ -540,0 +544,0 @@ this.params = {

{
"name": "@unique-nft/sdk",
"version": "0.1.1",
"version": "0.5.9",
"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