atomicassets
Advanced tools
Comparing version 0.9.1 to 0.9.3
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 = {})); |
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138874
3102