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

atomicassets

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atomicassets - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

76

build/API/Explorer/index.d.ts

@@ -8,3 +8,20 @@ import ExplorerActionGenerator from '../../Actions/Explorer';

};
export declare type AssetParams = {
interface GreylistParams {
collection_blacklist?: string;
collection_whitelist?: string;
}
interface HideOffersParams {
hide_offers?: boolean;
hide_sales?: boolean;
}
interface PrimaryBoundaryParams {
ids?: string;
lower_bound?: string;
upper_bound?: string;
}
interface DateBoundaryParams {
before?: number;
after?: number;
}
export interface AssetParams extends GreylistParams, HideOffersParams, PrimaryBoundaryParams, DateBoundaryParams {
owner?: string;

@@ -16,7 +33,10 @@ collection_name?: string;

authorized_account?: string;
is_transferable?: boolean;
is_burnable?: boolean;
only_duplicate_templates?: boolean;
order?: string;
sort?: string;
[key: string]: any;
};
export declare type CollectionParams = {
}
export interface CollectionParams extends GreylistParams, PrimaryBoundaryParams, DateBoundaryParams {
author?: string;

@@ -28,4 +48,4 @@ match?: string;

sort?: string;
};
export declare type SchemaParams = {
}
export interface SchemaParams extends GreylistParams, PrimaryBoundaryParams, DateBoundaryParams {
collection_name?: string;

@@ -37,4 +57,4 @@ schema_name?: string;

sort?: string;
};
export declare type TemplateParams = {
}
export interface TemplateParams extends GreylistParams, PrimaryBoundaryParams, DateBoundaryParams {
collection_name?: string;

@@ -44,7 +64,11 @@ schema_name?: string;

template_id?: string;
max_supply?: number;
issued_supply?: number;
is_transferable?: boolean;
is_burnable?: boolean;
order?: string;
sort?: string;
[key: string]: any;
};
export declare type TransferParams = {
}
export interface TransferParams extends GreylistParams, PrimaryBoundaryParams, DateBoundaryParams {
account?: string;

@@ -56,4 +80,4 @@ sender?: string;

sort?: string;
};
export declare type OfferParams = {
}
export interface OfferParams extends GreylistParams, PrimaryBoundaryParams, DateBoundaryParams {
account?: string;

@@ -66,3 +90,9 @@ sender?: string;

sort?: string;
};
}
export interface AccountParams extends GreylistParams, PrimaryBoundaryParams, DateBoundaryParams {
match?: string;
collection_name?: string;
schema_name?: string;
template_id?: string;
}
export declare type DataOptions = {

@@ -101,2 +131,24 @@ [key: string]: any;

getOffer(id: string): Promise<ApiOffer>;
getAccounts(options?: AccountParams, page?: number, limit?: number): Promise<Array<{
account: string;
assets: string;
}>>;
countAccounts(options?: AccountParams): Promise<number>;
getAccount(account: string, options?: any): Promise<{
assets: string;
collections: Array<{
collection: ApiCollection;
assets: string;
}>;
}>;
getAccountCollection(account: string, collection: string, options?: any): Promise<{
templates: Array<{
template_id: string;
assets: string;
}>;
schemas: Array<{
schema_name: string;
assets: string;
}>;
}>;
fetchEndpoint(path: string, args: any): Promise<any>;

@@ -103,0 +155,0 @@ countEndpoint(path: string, args: any): Promise<number>;

@@ -102,2 +102,14 @@ "use strict";

}
async getAccounts(options = {}, page = 1, limit = 100) {
return await this.fetchEndpoint('/v1/accounts', Object.assign({ page, limit }, options));
}
async countAccounts(options = {}) {
return await this.countEndpoint('/v1/accounts', options);
}
async getAccount(account, options = {}) {
return await this.fetchEndpoint('/v1/accounts/' + account, options);
}
async getAccountCollection(account, collection, options = {}) {
return await this.fetchEndpoint('/v1/accounts/' + account + '/' + collection, options);
}
async fetchEndpoint(path, args) {

@@ -104,0 +116,0 @@ let response;

107

build/API/Explorer/Types.d.ts

@@ -10,3 +10,3 @@ import { SchemaObject } from '../../Schema';

}
export declare type ApiAsset = {
export interface ApiAsset {
contract: string;

@@ -26,4 +26,4 @@ asset_id: string;

market_fee: boolean;
created_at_block: number;
created_at_time: number;
created_at_block: string;
created_at_time: string;
};

@@ -38,4 +38,4 @@ schema: {

template_id: number;
max_supply: number;
issued_supply: number;
max_supply: string;
issued_supply: string;
is_transferable: boolean;

@@ -46,4 +46,4 @@ is_burnable: boolean;

};
created_at_time: number;
created_at_block: number;
created_at_time: string;
created_at_block: string;
};

@@ -65,10 +65,11 @@ backed_tokens: Array<{

};
burned_at_time: number | null;
burned_at_block: number | null;
updated_at_time: number;
updated_at_block: number;
minted_at_time: number;
minted_at_block: number;
};
export declare type ApiCollection = {
burned_by_account: string | null;
burned_at_time: string | null;
burned_at_block: string | null;
updated_at_time: string;
updated_at_block: string;
minted_at_time: string;
minted_at_block: string;
}
export interface ApiCollection {
contract: string;

@@ -85,6 +86,6 @@ collection_name: string;

};
created_at_block: number;
created_at_time: number;
};
export declare type ApiSchema = {
created_at_block: string;
created_at_time: string;
}
export interface ApiSchema {
contract: string;

@@ -103,11 +104,11 @@ schema_name: string;

market_fee: boolean;
created_at_block: number;
created_at_time: number;
created_at_block: string;
created_at_time: string;
};
};
export declare type ApiSchemaStats = {
assets: number;
templates: number;
};
export declare type ApiTemplate = {
}
export interface ApiSchemaStats {
assets: string;
templates: string;
}
export interface ApiTemplate {
contract: string;

@@ -122,4 +123,4 @@ template_id: number;

};
created_at_time: number;
created_at_block: number;
created_at_time: string;
created_at_block: string;
collection: {

@@ -133,4 +134,4 @@ collection_name: string;

market_fee: boolean;
created_at_block: number;
created_at_time: number;
created_at_block: string;
created_at_time: string;
};

@@ -140,10 +141,10 @@ schema: {

format: SchemaObject[];
created_at_block: number;
created_at_time: number;
created_at_block: string;
created_at_time: string;
};
};
export declare type ApiTemplateStats = {
assets: number;
};
export declare type ApiOffer = {
}
export interface ApiTemplateStats {
assets: string;
}
export interface ApiOffer {
contract: string;

@@ -159,8 +160,8 @@ offer_id: string;

recipient_assets: ApiAsset[];
updated_at_block: number;
updated_at_time: number;
created_at_block: number;
created_at_time: number;
};
export declare type ApiTransfer = {
updated_at_block: string;
updated_at_time: string;
created_at_block: string;
created_at_time: string;
}
export interface ApiTransfer {
contract: string;

@@ -171,6 +172,6 @@ sender_name: string;

assets: ApiAsset[];
created_at_block: number;
created_at_time: number;
};
export declare type ApiLog = {
created_at_block: string;
created_at_time: string;
}
export interface ApiLog {
log_id: number;

@@ -180,6 +181,6 @@ name: string;

txid: string;
created_at_block: number;
created_at_time: number;
};
export declare type ApiConfig = {
created_at_block: string;
created_at_time: string;
}
export interface ApiConfig {
contract: string;

@@ -193,2 +194,2 @@ version: string;

}>;
};
}

@@ -12,3 +12,3 @@ {

"license": "MIT",
"version": "1.1.1",
"version": "1.2.0",
"main": "build/index.js",

@@ -15,0 +15,0 @@ "types": "build/index.d.ts",

@@ -202,2 +202,10 @@ # AtomicAssets JavaScript

##### Accounts
`async getAccounts(account: string): Promise<any>`
`async getAccount(account: string): Promise<any>`
`async getAccountCollection(account: string): Promise<any>`
#### ExplorerActionGenerator

@@ -204,0 +212,0 @@

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