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

ordinalsbot

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ordinalsbot - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

dist/marketplaceClient.d.ts

3

dist/index.d.ts

@@ -6,2 +6,5 @@ export { InscriptionClient } from "./client";

export { Inscription } from "./inscription";
export { Satscanner } from "./satscanner";
export { Satextractor } from "./satextractor";
export { Mempool } from "./mempool";
//# sourceMappingURL=index.d.ts.map

@@ -17,3 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Inscription = exports.MarketPlace = exports.InscriptionError = exports.InscriptionClient = void 0;
exports.Mempool = exports.Satextractor = exports.Satscanner = exports.Inscription = exports.MarketPlace = exports.InscriptionError = exports.InscriptionClient = void 0;
var client_1 = require("./client");

@@ -28,2 +28,8 @@ Object.defineProperty(exports, "InscriptionClient", { enumerable: true, get: function () { return client_1.InscriptionClient; } });

Object.defineProperty(exports, "Inscription", { enumerable: true, get: function () { return inscription_1.Inscription; } });
var satscanner_1 = require("./satscanner");
Object.defineProperty(exports, "Satscanner", { enumerable: true, get: function () { return satscanner_1.Satscanner; } });
var satextractor_1 = require("./satextractor");
Object.defineProperty(exports, "Satextractor", { enumerable: true, get: function () { return satextractor_1.Satextractor; } });
var mempool_1 = require("./mempool");
Object.defineProperty(exports, "Mempool", { enumerable: true, get: function () { return mempool_1.Mempool; } });
//# sourceMappingURL=index.js.map

4

dist/marketplace.js

@@ -27,3 +27,3 @@ "use strict";

exports.MarketPlace = void 0;
const marketplace_client_1 = require("./marketplace_client");
const marketplaceClient_1 = require("./marketplaceClient");
const marketplace_types_1 = require("./types/marketplace_types");

@@ -39,3 +39,3 @@ const bitcoin = __importStar(require("bitcoinjs-lib"));

this.network = environment === 'live' ? sats_connect_1.BitcoinNetworkType.Mainnet : sats_connect_1.BitcoinNetworkType.Testnet;
this.marketplaceInstance = new marketplace_client_1.MarketPlaceClient(key, environment);
this.marketplaceInstance = new marketplaceClient_1.MarketPlaceClient(key, environment);
}

@@ -42,0 +42,0 @@ createMarketplace(createMarketplaceRequest) {

@@ -104,3 +104,9 @@ export interface InscriptionTransaction {

cover?: string;
allowlist?: AllocationMap;
}
export type AllocationMap = {
[address: string]: {
allocation: number;
};
};
export interface InscriptionCollectionCreateResponse extends InscriptionCollectionCreateRequest {

@@ -107,0 +113,0 @@ status: string;

{
"name": "ordinalsbot",
"version": "0.1.3",
"version": "0.1.4",
"description": "Node.js library for OrdinalsBot API",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -27,3 +27,3 @@ # OrdinalsBot Node.js Library

```js
import { MarketPlace, Inscription } from "ordinalsbot";
import { MarketPlace, Inscription, Satscanner, Satextractor, Mempool } from "ordinalsbot";

@@ -33,2 +33,5 @@ // if no parameter given, default environment is 'live'

let marketplace = new MarketPlace("API_KEY", "dev");
let satscanner = new Satscanner("API_KEY", "dev");
let satextractor = new Satextractor("API_KEY", "dev");
let mempool = new Mempool("API_KEY", "dev");
```

@@ -107,2 +110,7 @@

### Run examples
You can check and run examples after setting your API Key
```
npx ts-node examples/example.ts
```

@@ -109,0 +117,0 @@ ### Using Wallets on the client side

@@ -6,1 +6,4 @@ export { InscriptionClient } from "./client";

export { Inscription } from "./inscription";
export { Satscanner } from "./satscanner";
export { Satextractor } from "./satextractor";
export { Mempool } from "./mempool";

@@ -1,2 +0,2 @@

import { MarketPlaceClient } from "./marketplace_client";
import { MarketPlaceClient } from "./marketplaceClient";
import { InscriptionEnv } from "./types";

@@ -3,0 +3,0 @@ import {

@@ -193,4 +193,14 @@ export interface InscriptionTransaction {

cover?: string;
// allowlist is optional
allowlist?: AllocationMap;
}
// allocation: -1 = unlimited, 0 = not allowed, any other number = allowed number of inscriptions
export type AllocationMap = {
[address: string]: {
allocation: number;
};
};
export interface InscriptionCollectionCreateResponse

@@ -197,0 +207,0 @@ extends InscriptionCollectionCreateRequest {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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