Socket
Socket
Sign inDemoInstall

@rarible/ethereum-api-client

Package Overview
Dependencies
2
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.25-beta2 to 0.1.25-beta3

build/models/SeaportFulfillmentSimpleResponse.d.ts

26

build/apis/OrderSignatureControllerApi.d.ts

@@ -13,6 +13,9 @@ /**

import * as runtime from '../runtime';
import { EthereumApiErrorBadRequest, EthereumApiErrorServerError, EthereumSignatureValidationForm, X2Y2GetCancelInputRequest, X2Y2OrderSignRequest, X2Y2SignResponse } from '../models';
import { EthereumApiErrorBadRequest, EthereumApiErrorServerError, EthereumSignatureValidationForm, SeaportFulfillmentSimpleResponse, X2Y2GetCancelInputRequest, X2Y2OrderSignRequest, X2Y2SignResponse } from '../models';
export interface CancelSignX2Y2Request {
x2Y2GetCancelInputRequest: X2Y2GetCancelInputRequest;
}
export interface GetSeaportOrderSignatureRequest {
hash: string;
}
export interface OrderSignX2Y2Request {

@@ -37,2 +40,10 @@ x2Y2OrderSignRequest: X2Y2OrderSignRequest;

/**
* Fetch Seaport order signature
*/
getSeaportOrderSignatureRaw(requestParameters: GetSeaportOrderSignatureRequest): Promise<GetSeaportOrderSignatureResponse>;
/**
* Fetch Seaport order signature
*/
getSeaportOrderSignature(requestParameters: GetSeaportOrderSignatureRequest): Promise<SeaportFulfillmentSimpleResponse>;
/**
* Fetch x2y2 order sign

@@ -67,2 +78,15 @@ */

export declare type CancelSignX2Y2Response = CancelSignX2Y2200 | CancelSignX2Y2400 | CancelSignX2Y2500;
export declare type GetSeaportOrderSignature200 = {
status: 200;
value: SeaportFulfillmentSimpleResponse;
};
export declare type GetSeaportOrderSignature400 = {
status: 400;
value: EthereumApiErrorBadRequest;
};
export declare type GetSeaportOrderSignature500 = {
status: 500;
value: EthereumApiErrorServerError;
};
export declare type GetSeaportOrderSignatureResponse = GetSeaportOrderSignature200 | GetSeaportOrderSignature400 | GetSeaportOrderSignature500;
export declare type OrderSignX2Y2200 = {

@@ -69,0 +93,0 @@ status: 200;

@@ -169,2 +169,72 @@ "use strict";

/**
* Fetch Seaport order signature
*/
OrderSignatureControllerApi.prototype.getSeaportOrderSignatureRaw = function (requestParameters) {
return __awaiter(this, void 0, void 0, function () {
var queryParameters, headerParameters, response;
var _a, _b, _c;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
if (requestParameters.hash === null || requestParameters.hash === undefined) {
throw new runtime.RequiredError('hash', 'Required parameter requestParameters.hash was null or undefined when calling getSeaportOrderSignature.');
}
queryParameters = {};
headerParameters = {};
return [4 /*yield*/, this.request({
path: "/v0.1/order/signature/seaport/simple/{hash}".replace("{" + "hash" + "}", encodeURIComponent(String(requestParameters.hash))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
})];
case 1:
response = _d.sent();
if (!(response.status === 200)) return [3 /*break*/, 3];
_a = {
status: 200
};
return [4 /*yield*/, response.json()];
case 2: return [2 /*return*/, (_a.value = _d.sent(),
_a)];
case 3:
if (!(response.status === 400)) return [3 /*break*/, 5];
_b = {
status: 400
};
return [4 /*yield*/, response.json()];
case 4: return [2 /*return*/, (_b.value = _d.sent(),
_b)];
case 5:
if (!(response.status === 500)) return [3 /*break*/, 7];
_c = {
status: 500
};
return [4 /*yield*/, response.json()];
case 6: return [2 /*return*/, (_c.value = _d.sent(),
_c)];
case 7: throw response;
}
});
});
};
/**
* Fetch Seaport order signature
*/
OrderSignatureControllerApi.prototype.getSeaportOrderSignature = function (requestParameters) {
return __awaiter(this, void 0, void 0, function () {
var response;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.getSeaportOrderSignatureRaw(requestParameters)];
case 1:
response = _a.sent();
if (response.status === 200) {
return [2 /*return*/, response.value];
}
throw response;
}
});
});
};
/**
* Fetch x2y2 order sign

@@ -171,0 +241,0 @@ */

@@ -64,2 +64,3 @@ export * from "./NftSignature";

export * from "./NftOrderOwnershipsPage";
export * from "./SeaportFulfillmentSimpleResponse";
export * from "./OrderSort";

@@ -66,0 +67,0 @@ export * from "./EventTimeMark";

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

__exportStar(require("./NftOrderOwnershipsPage"), exports);
__exportStar(require("./SeaportFulfillmentSimpleResponse"), exports);
__exportStar(require("./OrderSort"), exports);

@@ -78,0 +79,0 @@ __exportStar(require("./EventTimeMark"), exports);

2

build/runtime.js

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

exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.Configuration = exports.COLLECTION_FORMATS = exports.RequiredError = exports.BaseAPI = exports.BASE_PATH = void 0;
exports.BASE_PATH = "https://ethereum-api.rarible.org".replace(/\/+$/, "");
exports.BASE_PATH = "https://testnet-ethereum-api.rarible.org".replace(/\/+$/, "");
var isBlob = function (value) { return typeof Blob !== 'undefined' && value instanceof Blob; };

@@ -82,0 +82,0 @@ /**

{
"name": "@rarible/ethereum-api-client",
"version": "0.1.25-beta2",
"version": "0.1.25-beta3",
"keywords": [

@@ -5,0 +5,0 @@ "axios",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc