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 0.9.1 to 0.9.3

10

build/API/Explorer/types.d.ts
import { SchemaObject } from '../../Schema';
export declare enum ApiOfferState {
Pending = 0,
Invalid = 1,
Unknown = 2,
Accepted = 3,
Declined = 4,
Canceled = 5
}
export declare type ApiAsset = {

@@ -136,3 +144,3 @@ contract: string;

memo: string;
state: number;
state: ApiOfferState;
is_sender_contract: boolean;

@@ -139,0 +147,0 @@ is_recipient_contract: boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiOfferState = void 0;
var ApiOfferState;
(function (ApiOfferState) {
ApiOfferState[ApiOfferState["Pending"] = 0] = "Pending";
ApiOfferState[ApiOfferState["Invalid"] = 1] = "Invalid";
ApiOfferState[ApiOfferState["Unknown"] = 2] = "Unknown";
ApiOfferState[ApiOfferState["Accepted"] = 3] = "Accepted";
ApiOfferState[ApiOfferState["Declined"] = 4] = "Declined";
ApiOfferState[ApiOfferState["Canceled"] = 5] = "Canceled";
})(ApiOfferState = exports.ApiOfferState || (exports.ApiOfferState = {}));

3

build/Serialization/TypeParser/FixedIntegerParser.js

@@ -7,3 +7,2 @@ "use strict";

const big_integer_1 = __importDefault(require("big-integer"));
const Binary_1 = require("../Binary");
const FixedParser_1 = __importDefault(require("./FixedParser"));

@@ -18,3 +17,2 @@ class FixedIntegerParser extends FixedParser_1.default {

}
n = Binary_1.integer_unsign(n, this.size);
if (this.size <= 6) {

@@ -28,3 +26,2 @@ return n.toJSNumber();

const buffer = [];
n = Binary_1.integer_sign(n, this.size);
for (let i = 0; i < this.size; i++) {

@@ -31,0 +28,0 @@ buffer.push(n.and(0xFF).toJSNumber());

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

"license": "MIT",
"version": "0.9.1",
"version": "0.9.3",
"main": "build/index.js",

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

@@ -80,4 +80,4 @@ # AtomicAssets JavaScript

The explorer API uses [atomicassets-api](https://github.com/pinknetworkx/atomicassets-api) to query data about the NFTs.
A documentation of each endpoint and its responses can be found [here](https://wax-test.api.atomicassets.io/atomicassets/docs/#/).
The explorer API uses [eosio-contract-api](https://github.com/pinknetworkx/eosio-contract-api) to query data about the NFTs.
A documentation of each endpoint and its responses can be found [here](https://test.wax.api.atomicassets.io/atomicassets/docs/#/).
It is recommended to self-host the API for the best performance.

@@ -93,3 +93,3 @@

// - fetch: either node-fetch module or the browser equivalent
const api = new ExplorerApi("https://wax-test.api.atomicassets.io", "atomicassets", {fetch});
const api = new ExplorerApi("https://test.wax.api.atomicassets.io", "atomicassets", {fetch});

@@ -214,3 +214,3 @@ const asset = await api.getAsset("1099511627786");

Each method returns the unmodified response from the API call. For more information look at the Models
on [the documentation](https://wax-test.api.atomicassets.io/atomicassets/docs/#/)
on [the documentation](https://test.wax.api.atomicassets.io/atomicassets/docs/#/)

@@ -217,0 +217,0 @@ ### RpcApi

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