Socket
Socket
Sign inDemoInstall

@rarible/ethereum-api-client

Package Overview
Dependencies
0
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0-beta1 to 0.2.1-beta1

26

build/apis/OrderSignatureControllerApi.d.ts

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

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

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

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

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

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

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

@@ -106,51 +106,2 @@ "use strict";

/**
* Fetch Seaport order signature
*/
getSeaportOrderSignatureRaw(requestParameters) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters.hash === null || requestParameters.hash === undefined) {
throw new runtime.RequiredError('hash', 'Required parameter requestParameters.hash was null or undefined when calling getSeaportOrderSignature.');
}
const queryParameters = {};
const headerParameters = {};
const response = yield this.request({
path: `/v0.1/order/signature/seaport/simple/{hash}`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
});
if (response.status === 200) {
return {
status: 200,
value: yield response.json()
};
}
if (response.status === 400) {
return {
status: 400,
value: yield response.json()
};
}
if (response.status === 500) {
return {
status: 500,
value: yield response.json()
};
}
throw response;
});
}
/**
* Fetch Seaport order signature
*/
getSeaportOrderSignature(requestParameters) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.getSeaportOrderSignatureRaw(requestParameters);
if (response.status === 200) {
return response.value;
}
throw response;
});
}
/**
* Fetch x2y2 order sign

@@ -157,0 +108,0 @@ */

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

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

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

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

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

@@ -83,0 +82,0 @@ __exportStar(require("./EventTimeMark"), exports);

3

build/models/OrderData.d.ts

@@ -88,4 +88,3 @@ import { BigNumberLike } from "@rarible/types";

conduitKey: Word;
counter?: number;
nonce?: BigNumberLike;
counter: number;
};

@@ -92,0 +91,0 @@ export type OrderCryptoPunksData = {

{
"name": "@rarible/ethereum-api-client",
"version": "0.2.0-beta1",
"version": "0.2.1-beta1",
"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