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

@rabbitholegg/questdk-plugin-artblocks

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rabbitholegg/questdk-plugin-artblocks - npm Package Compare versions

Comparing version 1.0.0-alpha.20 to 1.0.0-alpha.21

vite.config.js

12

CHANGELOG.md
# @rabbitholegg/questdk-plugin-artblocks
## 1.0.0-alpha.21
### Minor Changes
- [#385](https://github.com/rabbitholegg/questdk-plugins/pull/385) [`72a86095`](https://github.com/rabbitholegg/questdk-plugins/commit/72a860954036856b073a2043dfc8614c200585d6) Thanks [@sammccord](https://github.com/sammccord)! - use vite for build tooling, reduce plugin size, improve build speeds
### Patch Changes
- Updated dependencies [[`1fa4bb52`](https://github.com/rabbitholegg/questdk-plugins/commit/1fa4bb5262cef6a1f434850b097b9aacc0d1e8ba), [`19d8db5c`](https://github.com/rabbitholegg/questdk-plugins/commit/19d8db5c5cafb4409dd469d22bdfc709d6d108aa), [`72a86095`](https://github.com/rabbitholegg/questdk-plugins/commit/72a860954036856b073a2043dfc8614c200585d6)]:
- @rabbitholegg/questdk-plugin-utils@1.0.0-alpha.32
- @rabbitholegg/questdk@2.0.0-alpha.52
## 1.0.0-alpha.20

@@ -4,0 +16,0 @@

54

dist/cjs/index.js

@@ -1,53 +0,1 @@

"use strict";
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ArtBlocks = void 0;
var _questdk = require("@rabbitholegg/questdk");
var _ArtBlocks = require("./ArtBlocks.js");
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
var ArtBlocks = exports.ArtBlocks = {
pluginId: 'artblocks',
getSupportedTokenAddresses: _ArtBlocks.getSupportedTokenAddresses,
getSupportedChainIds: _ArtBlocks.getSupportedChainIds,
bridge: function () {
var _bridge = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
return _regeneratorRuntime().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", new _questdk.PluginActionNotImplementedError());
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
function bridge() {
return _bridge.apply(this, arguments);
}
return bridge;
}(),
swap: function () {
var _swap = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
return _context2.abrupt("return", new _questdk.PluginActionNotImplementedError());
case 1:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function swap() {
return _swap.apply(this, arguments);
}
return swap;
}(),
mint: _ArtBlocks.mint
};
//# sourceMappingURL=index.js.map
(function(t,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("@rabbitholegg/questdk"),require("@rabbitholegg/questdk-plugin-utils")):typeof define=="function"&&define.amd?define(["exports","@rabbitholegg/questdk","@rabbitholegg/questdk-plugin-utils"],n):(t=typeof globalThis<"u"?globalThis:t||self,n(t.QuestdkPluginArtblocks={},t.questdk,t.questdkPluginUtils))})(this,function(t,n,s){"use strict";const o="0x0000000000000000000000000000000000000000",_=[{inputs:[{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"}],name:"purchase",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],E=[{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],c=[{inputs:[{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"uint256",name:"maxPricePerToken",type:"uint256"},{internalType:"address",name:"currencyAddress",type:"address"}],name:"purchase",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],l=[{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"uint256",name:"maxPricePerToken",type:"uint256"},{internalType:"address",name:"currencyAddress",type:"address"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],m=[{inputs:[{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"bytes32[]",name:"proof",type:"bytes32[]"}],name:"purchase",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],I=[{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"bytes32[]",name:"proof",type:"bytes32[]"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],R=[{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"address",name:"vault",type:"address"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],A=[{inputs:[{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"address",name:"ownedNFTAddress",type:"address"},{internalType:"uint256",name:"ownedNFTTokenId",type:"uint256"}],name:"purchase",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],b=[{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"address",name:"ownedNFTAddress",type:"address"},{internalType:"uint256",name:"ownedNFTTokenId",type:"uint256"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],C=[{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"address",name:"ownedNFTAddress",type:"address"},{internalType:"uint256",name:"ownedNFTTokenId",type:"uint256"},{internalType:"address",name:"vault",type:"address"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],f=[{inputs:[{internalType:"uint256",name:"_projectId",type:"uint256"}],name:"purchase",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],P=[{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_projectId",type:"uint256"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],M=[{inputs:[{internalType:"uint256",name:"_projectId",type:"uint256"},{internalType:"bytes32[]",name:"_proof",type:"bytes32[]"}],name:"purchase",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],B=[{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_projectId",type:"uint256"},{internalType:"bytes32[]",name:"_proof",type:"bytes32[]"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],D=[{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_projectId",type:"uint256"},{internalType:"bytes32[]",name:"_proof",type:"bytes32[]"},{internalType:"address",name:"_vault",type:"address"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"}],S=[{inputs:[{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"uint256",name:"maxPricePerToken",type:"uint256"},{internalType:"address",name:"currencyAddress",type:"address"},{internalType:"address",name:"ownedNFTAddress",type:"address"},{internalType:"uint256",name:"ownedNFTTokenId",type:"uint256"}],name:"purchase",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],N=[{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"uint256",name:"maxPricePerToken",type:"uint256"},{internalType:"address",name:"currencyAddress",type:"address"},{internalType:"address",name:"ownedNFTAddress",type:"address"},{internalType:"uint256",name:"ownedNFTTokenId",type:"uint256"},{internalType:"address",name:"vault",type:"address"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],V=[{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"projectId",type:"uint256"},{internalType:"address",name:"coreContract",type:"address"},{internalType:"uint256",name:"maxPricePerToken",type:"uint256"},{internalType:"address",name:"currencyAddress",type:"address"},{internalType:"address",name:"ownedNFTAddress",type:"address"},{internalType:"uint256",name:"ownedNFTTokenId",type:"uint256"}],name:"purchaseTo",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],F=[_,c,m,A,f,M,S],k=[E,l,I,R,b,C,P,B,D,N,V];var i=(e=>(e.MINTER_SET_PRICE_V5="0x0635E2f2926b306356b5B3F5CB6489107796b085",e.MINTER_SET_PRICE_ERC20V5="0x11515aE3f510D8BFEDD2B60B4A878F8a77a7b7ec",e.MINTER_DA_LIN_V5="0x7b03Ec8ee63740642ca76b5Fe169978f2077ca08",e.MINTER_DA_EXP_V5="0x7E6F7Aa281133e394041b5fEA1f3Be7a00D7201F",e.MINTER_DA_EXP_SETTLEMENT_V3="0x6caFC1B007F16f171B34eE45Fc61B378ad58F592",e.MINTER_SET_PRICE_MERKLE_V5="0xa19Bf77719A9B6E7daa3c33b3AAC119AF865e1c4",e.MINTER_SET_PRICE_HOLDER_V5="0x69f04FDDF0c4c32642B22E68b867282d5074A98a",e.MINTER_SET_PRICE_V4="0x234B25288011081817B5cC199C3754269cCb76D2",e.MINTER_SET_PRICE_ERC20_V4="0x9fEcd2FbC6D890fB93632DcE9b1a01c4090A7E2d",e.MINTER_MERKLE_V5="0xB8Bd1D2836C466DB149f665F777928bEE267304d",e.MINTER_DA_LIN_V4="0x419501DD208BFf237e3E32C40D074065e12DfF4d",e.MINTER_DA_EXP_V4="0x47e2df2723238f913741Cc6b1963e76fdfD19B94",e.ARBITRUM_MINTER_SET_PRICE_V5="0xe2bC24f74ed326CA4deB75753942731A566ebC83",e.ARBITRUM_MINTER_SET_PRICE_ERC20V5="0xE89b16B4e5Cb619772894E29650437dee9779933",e.ARBITRUM_MINTER_SET_PRICE_HOLDER_V5="0x04514d6883FA3374Ba1466A7D9f7D8A799542182",e.ARBITRUM_MINTER_SET_PRICE_MERKLE_V5="0x03E590B63Ff9B4045480495aBEf47BFfC082e81D",e.ARBITRUM_MINTER_SET_PRICE_POLYPTYCH_V5="0x2d3f8D5c5294B7934aFBe4B901EEb5E7B48a4e97",e.ARBITRUM_MINTER_SET_PRICE_POLYPTYCH_ERC20_V5="0x37861f95882ACDba2cCD84F5bFc4598e2ECDDdAF",e.ARBITRUM_MINTER_DA_EXP_V5="0xeE4494Cb6178979f3B0481AE4653fE8A8A204c53",e.ARBITRUM_MINTER_DA_LIN_V5="0x4Ce51FefEcfc333471965ad10a852dEe8BbD6a1d",e.ARBITRUM_MINTER_DA_EXP_SETTLEMENT_V3="0x4C9d23D14fF4D4d336dD7eF75B20Ef45D25B3e92",e.ARBITRUM_MINTER_DA_EXP_HOLDER_V5="0xB68920a9a209eAfA7a65771f33Aa894cdcC96398",e.ARBITRUM_MINTER_DA_LIN_HOLDER_V5="0xE573cfcEb462A9500741e60452756bFDcA726f22",e))(i||{});const r=["0x234B25288011081817B5cC199C3754269cCb76D2","0x9fEcd2FbC6D890fB93632DcE9b1a01c4090A7E2d","0xB8Bd1D2836C466DB149f665F777928bEE267304d","0x419501DD208BFf237e3E32C40D074065e12DfF4d","0x47e2df2723238f913741Cc6b1963e76fdfD19B94"].map(e=>e.toLowerCase()),x={pluginId:"artblocks",getSupportedTokenAddresses:async e=>[],getSupportedChainIds:async()=>[s.Chains.ETHEREUM,s.Chains.ARBITRUM_ONE],bridge:async()=>new n.PluginActionNotImplementedError,swap:async()=>new n.PluginActionNotImplementedError,mint:async e=>{const{chainId:L,tokenId:d,contractAddress:p,recipient:y}=e,u={chainId:L,to:p===o?p:{$or:Object.values(i).map(a=>a.toLowerCase())}},T={...d!==void 0?{[r.includes(p)?"_projectId":"projectId"]:d}:{}};return n.compressJson({$or:[...F.map(a=>({...u,from:y,input:{$abi:a,...T}})),...k.map(a=>({...u,input:{$abi:a,[r.includes(p)?"_to":"to"]:y,...T}}))]})}};t.ArtBlocks=x,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});

@@ -1,11 +0,710 @@

import { PluginActionNotImplementedError } from '@rabbitholegg/questdk';
import { getSupportedChainIds, getSupportedTokenAddresses, mint } from './ArtBlocks.js';
export const ArtBlocks = {
pluginId: 'artblocks',
getSupportedTokenAddresses,
getSupportedChainIds,
bridge: async () => new PluginActionNotImplementedError(),
swap: async () => new PluginActionNotImplementedError(),
mint
import { compressJson as o, PluginActionNotImplementedError as i } from "@rabbitholegg/questdk";
import { Chains as d } from "@rabbitholegg/questdk-plugin-utils";
const _ = "0x0000000000000000000000000000000000000000", E = [
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
}
],
name: "purchase",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], c = [
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], l = [
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "uint256",
name: "maxPricePerToken",
type: "uint256"
},
{
internalType: "address",
name: "currencyAddress",
type: "address"
}
],
name: "purchase",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
}
], m = [
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "uint256",
name: "maxPricePerToken",
type: "uint256"
},
{
internalType: "address",
name: "currencyAddress",
type: "address"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
}
], I = [
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "bytes32[]",
name: "proof",
type: "bytes32[]"
}
],
name: "purchase",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], R = [
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "bytes32[]",
name: "proof",
type: "bytes32[]"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], A = [
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "bytes32[]",
name: "proof",
type: "bytes32[]"
},
{
internalType: "address",
name: "vault",
type: "address"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], C = [
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "address",
name: "ownedNFTAddress",
type: "address"
},
{
internalType: "uint256",
name: "ownedNFTTokenId",
type: "uint256"
}
],
name: "purchase",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], b = [
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "address",
name: "ownedNFTAddress",
type: "address"
},
{
internalType: "uint256",
name: "ownedNFTTokenId",
type: "uint256"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], P = [
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "address",
name: "ownedNFTAddress",
type: "address"
},
{
internalType: "uint256",
name: "ownedNFTTokenId",
type: "uint256"
},
{
internalType: "address",
name: "vault",
type: "address"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], f = [
{
inputs: [
{
internalType: "uint256",
name: "_projectId",
type: "uint256"
}
],
name: "purchase",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], M = [
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address"
},
{
internalType: "uint256",
name: "_projectId",
type: "uint256"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], B = [
{
inputs: [
{
internalType: "uint256",
name: "_projectId",
type: "uint256"
},
{
internalType: "bytes32[]",
name: "_proof",
type: "bytes32[]"
}
],
name: "purchase",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], D = [
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address"
},
{
internalType: "uint256",
name: "_projectId",
type: "uint256"
},
{
internalType: "bytes32[]",
name: "_proof",
type: "bytes32[]"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], S = [
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address"
},
{
internalType: "uint256",
name: "_projectId",
type: "uint256"
},
{
internalType: "bytes32[]",
name: "_proof",
type: "bytes32[]"
},
{
internalType: "address",
name: "_vault",
type: "address"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "payable",
type: "function"
}
], V = [
{
inputs: [
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "uint256",
name: "maxPricePerToken",
type: "uint256"
},
{
internalType: "address",
name: "currencyAddress",
type: "address"
},
{
internalType: "address",
name: "ownedNFTAddress",
type: "address"
},
{
internalType: "uint256",
name: "ownedNFTTokenId",
type: "uint256"
}
],
name: "purchase",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
}
], F = [
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "uint256",
name: "maxPricePerToken",
type: "uint256"
},
{
internalType: "address",
name: "currencyAddress",
type: "address"
},
{
internalType: "address",
name: "ownedNFTAddress",
type: "address"
},
{
internalType: "uint256",
name: "ownedNFTTokenId",
type: "uint256"
},
{
internalType: "address",
name: "vault",
type: "address"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
}
], N = [
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "projectId",
type: "uint256"
},
{
internalType: "address",
name: "coreContract",
type: "address"
},
{
internalType: "uint256",
name: "maxPricePerToken",
type: "uint256"
},
{
internalType: "address",
name: "currencyAddress",
type: "address"
},
{
internalType: "address",
name: "ownedNFTAddress",
type: "address"
},
{
internalType: "uint256",
name: "ownedNFTTokenId",
type: "uint256"
}
],
name: "purchaseTo",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
}
], x = [
E,
l,
I,
C,
f,
B,
V
], U = [
c,
m,
R,
A,
b,
P,
M,
D,
S,
F,
N
];
var u = /* @__PURE__ */ ((e) => (e.MINTER_SET_PRICE_V5 = "0x0635E2f2926b306356b5B3F5CB6489107796b085", e.MINTER_SET_PRICE_ERC20V5 = "0x11515aE3f510D8BFEDD2B60B4A878F8a77a7b7ec", e.MINTER_DA_LIN_V5 = "0x7b03Ec8ee63740642ca76b5Fe169978f2077ca08", e.MINTER_DA_EXP_V5 = "0x7E6F7Aa281133e394041b5fEA1f3Be7a00D7201F", e.MINTER_DA_EXP_SETTLEMENT_V3 = "0x6caFC1B007F16f171B34eE45Fc61B378ad58F592", e.MINTER_SET_PRICE_MERKLE_V5 = "0xa19Bf77719A9B6E7daa3c33b3AAC119AF865e1c4", e.MINTER_SET_PRICE_HOLDER_V5 = "0x69f04FDDF0c4c32642B22E68b867282d5074A98a", e.MINTER_SET_PRICE_V4 = "0x234B25288011081817B5cC199C3754269cCb76D2", e.MINTER_SET_PRICE_ERC20_V4 = "0x9fEcd2FbC6D890fB93632DcE9b1a01c4090A7E2d", e.MINTER_MERKLE_V5 = "0xB8Bd1D2836C466DB149f665F777928bEE267304d", e.MINTER_DA_LIN_V4 = "0x419501DD208BFf237e3E32C40D074065e12DfF4d", e.MINTER_DA_EXP_V4 = "0x47e2df2723238f913741Cc6b1963e76fdfD19B94", e.ARBITRUM_MINTER_SET_PRICE_V5 = "0xe2bC24f74ed326CA4deB75753942731A566ebC83", e.ARBITRUM_MINTER_SET_PRICE_ERC20V5 = "0xE89b16B4e5Cb619772894E29650437dee9779933", e.ARBITRUM_MINTER_SET_PRICE_HOLDER_V5 = "0x04514d6883FA3374Ba1466A7D9f7D8A799542182", e.ARBITRUM_MINTER_SET_PRICE_MERKLE_V5 = "0x03E590B63Ff9B4045480495aBEf47BFfC082e81D", e.ARBITRUM_MINTER_SET_PRICE_POLYPTYCH_V5 = "0x2d3f8D5c5294B7934aFBe4B901EEb5E7B48a4e97", e.ARBITRUM_MINTER_SET_PRICE_POLYPTYCH_ERC20_V5 = "0x37861f95882ACDba2cCD84F5bFc4598e2ECDDdAF", e.ARBITRUM_MINTER_DA_EXP_V5 = "0xeE4494Cb6178979f3B0481AE4653fE8A8A204c53", e.ARBITRUM_MINTER_DA_LIN_V5 = "0x4Ce51FefEcfc333471965ad10a852dEe8BbD6a1d", e.ARBITRUM_MINTER_DA_EXP_SETTLEMENT_V3 = "0x4C9d23D14fF4D4d336dD7eF75B20Ef45D25B3e92", e.ARBITRUM_MINTER_DA_EXP_HOLDER_V5 = "0xB68920a9a209eAfA7a65771f33Aa894cdcC96398", e.ARBITRUM_MINTER_DA_LIN_HOLDER_V5 = "0xE573cfcEb462A9500741e60452756bFDcA726f22", e))(u || {});
const L = [
"0x234B25288011081817B5cC199C3754269cCb76D2",
"0x9fEcd2FbC6D890fB93632DcE9b1a01c4090A7E2d",
"0xB8Bd1D2836C466DB149f665F777928bEE267304d",
"0x419501DD208BFf237e3E32C40D074065e12DfF4d",
"0x47e2df2723238f913741Cc6b1963e76fdfD19B94"
/* MINTER_DA_EXP_V4 */
], y = L.map((e) => e.toLowerCase()), k = async (e) => {
const { chainId: T, tokenId: a, contractAddress: n, recipient: p } = e, s = {
chainId: T,
to: n === _ ? n : { $or: Object.values(u).map((t) => t.toLowerCase()) }
}, r = {
...a !== void 0 ? {
// Support legacy minting contract input keys
[y.includes(n) ? "_projectId" : "projectId"]: a
} : {}
};
return o({
$or: [
...x.map((t) => ({
...s,
from: p,
input: { $abi: t, ...r }
})),
...U.map((t) => ({
...s,
input: {
$abi: t,
// Support legacy minting contract input keys
[y.includes(n) ? "_to" : "to"]: p,
...r
}
}))
]
});
}, H = async (e) => [], O = async () => [d.ETHEREUM, d.ARBITRUM_ONE], w = {
pluginId: "artblocks",
getSupportedTokenAddresses: H,
getSupportedChainIds: O,
bridge: async () => new i(),
swap: async () => new i(),
mint: k
};
//# sourceMappingURL=index.js.map
export {
w as ArtBlocks
};
{
"name": "@rabbitholegg/questdk-plugin-artblocks",
"version": "1.0.0-alpha.20",
"version": "1.0.0-alpha.21",
"description": "",
"exports": {

@@ -11,26 +12,17 @@ "require": "./dist/cjs/index.js",

"module": "./dist/esm/index.js",
"packageManager": "pnpm@8.3.1",
"description": "",
"types": "./dist/types/index.d.ts",
"typings": "./dist/types/index.d.ts",
"keywords": [],
"author": "",
"license": "ISC",
"types": "./dist/types/index.d.ts",
"typings": "./dist/types/index.d.ts",
"devDependencies": {
"tsconfig": "0.1.0-alpha.1"
},
"devDependencies": {},
"dependencies": {
"@rabbitholegg/questdk-plugin-utils": "1.0.0-alpha.31",
"@rabbitholegg/questdk": "2.0.0-alpha.51"
"@rabbitholegg/questdk-plugin-utils": "1.0.0-alpha.32",
"@rabbitholegg/questdk": "2.0.0-alpha.52"
},
"scripts": {
"build": "vite build && tsc --project tsconfig.build.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./dist/types",
"bench": "vitest bench",
"bench:ci": "CI=true vitest bench",
"build": "pnpm build:types && pnpm build:esm && pnpm postbuild:esm && pnpm build:cjs && pnpm postbuild:cjs && BABEL_ENV=esmBundled pnpm rollup -c",
"build:esm": "BABEL_ENV=esmUnbundled babel src --extensions '.ts' --out-dir 'dist/esm' --source-maps",
"build:cjs": "BABEL_ENV=cjs babel src --extensions '.ts' --out-dir 'dist/cjs' --source-maps",
"build:types": "tsc --project tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"clean": "rimraf dist",
"postbuild:cjs": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
"postbuild:esm": "echo '{\"type\":\"module\"}' > dist/esm/package.json",
"format": "rome format . --write",

@@ -37,0 +29,0 @@ "lint": "eslint .",

{
"extends": "tsconfig/base.json",
"extends": "../../tsconfig.json",
"include": ["src"],

@@ -4,0 +4,0 @@ "exclude": [

{
"extends": "tsconfig/base.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*", "src/chain-data.ts"],
"exclude": ["dist", "build", "node_modules"]
}

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