New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mintbase-js/sdk

Package Overview
Dependencies
Maintainers
2
Versions
1314
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintbase-js/sdk - npm Package Compare versions

Comparing version 0.0.4-sdk-documentation-improvement.0 to 0.0.4-sdk-documentation-improvement.1

lib/delist/delist.d.ts

2

lib/addMinter/addMinter.js

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

if (nftContractId == null) {
throw ('You must provide a nftContractId or define a TOKEN_CONTRACT enviroment variable to default to');
throw new Error('You must provide a nftContractId or define a NFT_CONTRACT_ID enviroment variable to default to');
}

@@ -17,0 +17,0 @@ return {

@@ -13,6 +13,6 @@ "use strict";

if (nftContractId == null) {
throw ('You must provide a nftContractId or define a TOKEN_CONTRACT enviroment variable to default to');
throw new Error('You must provide a nftContractId or define a NFT_CONTRACT_ID enviroment variable to default to');
}
if (addMinters.length === 0 && removeMinters.length === 0) {
throw ('There are no minters being provided to the batchChangeMinters method to be changed');
throw new Error('There are no minters being provided to the batchChangeMinters method to be changed');
}

@@ -19,0 +19,0 @@ return {

@@ -15,6 +15,6 @@ "use strict";

if (nftContractId == null) {
throw ('You must provide a nftContractId or define a TOKEN_CONTRACT enviroment variable to default to');
throw new Error('You must provide a nftContractId or define a NFT_CONTRACT_ID enviroment variable to default to');
}
if (tokenIds.length === 0) {
throw ('Burn contract call should not have an empty array of tokens ids');
throw new Error('Burn contract call should not have an empty array of tokens ids');
}

@@ -21,0 +21,0 @@ return {

@@ -7,3 +7,3 @@ import { NearContractCall } from '../execute';

referrerId?: string;
marketAddress?: string;
marketId?: string;
};

@@ -10,0 +10,0 @@ /**

@@ -13,8 +13,8 @@ "use strict";

const buy = (args) => {
const { nftContractId = constants_1.DEFAULT_CONTRACT_ADDRESS, tokenId, referrerId = null, marketAddress = constants_1.MB_MARKET_ADDRESS, price } = args;
const { nftContractId = constants_1.DEFAULT_CONTRACT_ADDRESS, tokenId, referrerId = null, marketId = constants_1.MB_MARKET_ADDRESS, price } = args;
if (nftContractId == null) {
throw ('You must provide a nftContractId or define a TOKEN_CONTRACT enviroment variable to default to');
throw new Error('You must provide a nftContractId or define a NFT_CONTRACT_ID enviroment variable to default to');
}
return {
contractAddress: marketAddress,
contractAddress: marketId,
args: {

@@ -21,0 +21,0 @@ nft_contract_id: nftContractId,

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

exports.MB_MAINNET_MARKET_CONTRACT_ADDRESS = 'simple.market.mintbase1.near';
exports.DEFAULT_CONTRACT_ADDRESS = process.env.TOKEN_CONTRACT || null;
exports.DEFAULT_CONTRACT_ADDRESS = process.env.NFT_CONTRACT_ID || null;
exports.MB_TOKEN_FACTORY_ADDRESS = exports.NEAR_NETWORK === exports.Network.MAINNET ? exports.MB_MAINNET_TOKEN_FACTORY_ADDRESS : exports.MB_TESTNET_TOKEN_FACTORY_ADDRESS;

@@ -65,0 +65,0 @@ exports.MB_MARKET_ADDRESS = exports.NEAR_NETWORK === exports.Network.MAINNET ? exports.MB_MAINNET_MARKET_CONTRACT_ADDRESS : exports.MB_TESTNET_MARKET_CONTRACT_ADDRESS;

import { NearContractCall } from '../execute';
export declare type DepositStorageArgs = {
listAmount?: number;
marketAddress?: string;
marketId?: string;
};

@@ -6,0 +6,0 @@ /**

@@ -12,6 +12,6 @@ "use strict";

const depositStorage = (args) => {
const { marketAddress = constants_1.MB_MARKET_ADDRESS, listAmount = 1 } = args;
const { marketId = constants_1.MB_MARKET_ADDRESS, listAmount = 1 } = args;
const deposit = (0.01 * listAmount).toString();
return {
contractAddress: marketAddress,
contractAddress: marketId,
args: {},

@@ -18,0 +18,0 @@ methodName: constants_1.MARKET_METHOD_NAMES.DEPOSIT_STORAGE,

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

// export * from './mint/mint';
// export * from './unlist/unlist';
// export * from './delist/delist';
__exportStar(require("./v1/token"), exports);

@@ -33,0 +33,0 @@ __exportStar(require("./v1/token.types"), exports);

import { NearContractCall } from '../execute';
export declare type ListArgs = {
nftContractId?: string;
marketAddress?: string;
marketId?: string;
price: string;

@@ -6,0 +6,0 @@ tokenId: string;

@@ -12,5 +12,5 @@ "use strict";

const list = (args) => {
const { nftContractId = constants_1.DEFAULT_CONTRACT_ADDRESS, tokenId, marketAddress = constants_1.MB_MARKET_ADDRESS, price } = args;
const { nftContractId = constants_1.DEFAULT_CONTRACT_ADDRESS, tokenId, marketId = constants_1.MB_MARKET_ADDRESS, price } = args;
if (nftContractId == null) {
throw ('You must provide a nftContractId or define a TOKEN_CONTRACT enviroment variable to default to');
throw new Error('You must provide a nftContractId or define a NFT_CONTRACT_ID enviroment variable to default to');
}

@@ -21,3 +21,3 @@ return {

token_id: tokenId,
account_id: marketAddress,
account_id: marketId,
msg: JSON.stringify({

@@ -24,0 +24,0 @@ price: price,

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

if (nftContractId == null) {
throw ('You must provide a nftContractId or define a TOKEN_CONTRACT enviroment variable to default to');
throw new Error('You must provide a nftContractId or define a NFT_CONTRACT_ID enviroment variable to default to');
}

@@ -18,0 +18,0 @@ if (splits) {

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

if (nftContractId == null) {
throw ('You must provide a nftContractId or define a TOKEN_CONTRACT enviroment variable to default to');
throw new Error('You must provide a nftContractId or define a NFT_CONTRACT_ID enviroment variable to default to');
}

@@ -17,0 +17,0 @@ return {

@@ -15,6 +15,6 @@ "use strict";

if (nftContractId == null) {
throw ('You must provide a nftContractId or define a TOKEN_CONTRACT env to default to');
throw new Error('You must provide a nftContractId or define a NFT_CONTRACT_ID env to default to');
}
if (exports.transfer.length == 0) {
throw ('You must transfer at least one token');
throw new Error('You must transfer at least one token');
}

@@ -21,0 +21,0 @@ if (transfers.length > 1) {

{
"name": "@mintbase-js/sdk",
"version": "0.0.4-sdk-documentation-improvement.0",
"version": "0.0.4-sdk-documentation-improvement.1",
"description": "Core functions for Mintbase JS SDK",

@@ -25,3 +25,3 @@ "main": "lib/index.js",

},
"gitHead": "4030a43b3e18e61486ed3a030c6c1debde4ff9e6"
"gitHead": "cb9cda3dc20a052283c5bf604970954b21392806"
}

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

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

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