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

@0xsequence/api

Package Overview
Dependencies
Maintainers
6
Versions
511
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/api - npm Package Compare versions

Comparing version 0.0.0-20240923135602 to 0.0.0-20241007154931

74

dist/0xsequence-api.cjs.dev.js

@@ -21,3 +21,3 @@ 'use strict';

/* eslint-disable */
// sequence-api v0.4.0 9ed28977ef1572bcc09e507f04c1ec92aab12865
// sequence-api v0.4.0 470a0f88ea399c2a57ff8c22da54358c033ed5f0
// --

@@ -35,3 +35,3 @@ // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT.

// Schema hash generated from your RIDL schema
const WebRPCSchemaHash = "9ed28977ef1572bcc09e507f04c1ec92aab12865";
const WebRPCSchemaHash = "470a0f88ea399c2a57ff8c22da54358c033ed5f0";

@@ -789,7 +789,7 @@ //

};
this.getSwapQuotes = (args, headers, signal) => {
return this.fetch(this.url('GetSwapQuotes'), createHTTPRequest(args, headers, signal)).then(res => {
this.getSwapPrices = (args, headers, signal) => {
return this.fetch(this.url('GetSwapPrices'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
swapQuotes: _data.swapQuotes
swapPrices: _data.swapPrices
};

@@ -803,7 +803,7 @@ });

};
this.addCurrencyGroup = (args, headers, signal) => {
return this.fetch(this.url('AddCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
this.getSwapQuote = (args, headers, signal) => {
return this.fetch(this.url('GetSwapQuote'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
groupId: _data.groupId
swapQuote: _data.swapQuote
};

@@ -817,13 +817,2 @@ });

};
this.updateCurrencyGroup = (args, headers, signal) => {
return this.fetch(this.url('UpdateCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.listCurrencyGroups = (headers, signal) => {

@@ -842,7 +831,7 @@ return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {

};
this.deleteCurrencyGroup = (args, headers, signal) => {
return this.fetch(this.url('DeleteCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
this.addOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('AddOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
ok: _data.ok
inventoryId: _data.inventoryId
};

@@ -856,7 +845,7 @@ });

};
this.addInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('AddInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.getOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('GetOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
configId: _data.configId
inventory: _data.inventory
};

@@ -870,7 +859,7 @@ });

};
this.getInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('GetInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.listOffchainInventories = (args, headers, signal) => {
return this.fetch(this.url('ListOffchainInventories'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
config: _data.config
inventory: _data.inventory
};

@@ -884,8 +873,6 @@ });

};
this.listInventoryPaymentConfigs = (args, headers, signal) => {
return this.fetch(this.url('ListInventoryPaymentConfigs'), createHTTPRequest(args, headers, signal)).then(res => {
this.updateOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('UpdateOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
configs: _data.configs
};
return {};
});

@@ -898,6 +885,8 @@ }, error => {

};
this.updateInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('UpdateInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.deleteOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('DeleteOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {};
return {
ok: _data.ok
};
});

@@ -910,7 +899,7 @@ }, error => {

};
this.deleteInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('DeleteInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.requestOffchainPayment = (args, headers, signal) => {
return this.fetch(this.url('RequestOffchainPayment'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
ok: _data.ok
payment: _data.payment
};

@@ -924,7 +913,8 @@ });

};
this.requestInventoryPayment = (args, headers, signal) => {
return this.fetch(this.url('RequestInventoryPayment'), createHTTPRequest(args, headers, signal)).then(res => {
this.listOffchainPayments = (args, headers, signal) => {
return this.fetch(this.url('ListOffchainPayments'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
payment: _data.payment
page: _data.page,
payments: _data.payments
};

@@ -931,0 +921,0 @@ });

@@ -21,3 +21,3 @@ 'use strict';

/* eslint-disable */
// sequence-api v0.4.0 9ed28977ef1572bcc09e507f04c1ec92aab12865
// sequence-api v0.4.0 470a0f88ea399c2a57ff8c22da54358c033ed5f0
// --

@@ -35,3 +35,3 @@ // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT.

// Schema hash generated from your RIDL schema
const WebRPCSchemaHash = "9ed28977ef1572bcc09e507f04c1ec92aab12865";
const WebRPCSchemaHash = "470a0f88ea399c2a57ff8c22da54358c033ed5f0";

@@ -789,7 +789,7 @@ //

};
this.getSwapQuotes = (args, headers, signal) => {
return this.fetch(this.url('GetSwapQuotes'), createHTTPRequest(args, headers, signal)).then(res => {
this.getSwapPrices = (args, headers, signal) => {
return this.fetch(this.url('GetSwapPrices'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
swapQuotes: _data.swapQuotes
swapPrices: _data.swapPrices
};

@@ -803,7 +803,7 @@ });

};
this.addCurrencyGroup = (args, headers, signal) => {
return this.fetch(this.url('AddCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
this.getSwapQuote = (args, headers, signal) => {
return this.fetch(this.url('GetSwapQuote'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
groupId: _data.groupId
swapQuote: _data.swapQuote
};

@@ -817,13 +817,2 @@ });

};
this.updateCurrencyGroup = (args, headers, signal) => {
return this.fetch(this.url('UpdateCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.listCurrencyGroups = (headers, signal) => {

@@ -842,7 +831,7 @@ return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {

};
this.deleteCurrencyGroup = (args, headers, signal) => {
return this.fetch(this.url('DeleteCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
this.addOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('AddOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
ok: _data.ok
inventoryId: _data.inventoryId
};

@@ -856,7 +845,7 @@ });

};
this.addInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('AddInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.getOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('GetOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
configId: _data.configId
inventory: _data.inventory
};

@@ -870,7 +859,7 @@ });

};
this.getInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('GetInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.listOffchainInventories = (args, headers, signal) => {
return this.fetch(this.url('ListOffchainInventories'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
config: _data.config
inventory: _data.inventory
};

@@ -884,8 +873,6 @@ });

};
this.listInventoryPaymentConfigs = (args, headers, signal) => {
return this.fetch(this.url('ListInventoryPaymentConfigs'), createHTTPRequest(args, headers, signal)).then(res => {
this.updateOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('UpdateOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
configs: _data.configs
};
return {};
});

@@ -898,6 +885,8 @@ }, error => {

};
this.updateInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('UpdateInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.deleteOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('DeleteOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {};
return {
ok: _data.ok
};
});

@@ -910,7 +899,7 @@ }, error => {

};
this.deleteInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('DeleteInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.requestOffchainPayment = (args, headers, signal) => {
return this.fetch(this.url('RequestOffchainPayment'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
ok: _data.ok
payment: _data.payment
};

@@ -924,7 +913,8 @@ });

};
this.requestInventoryPayment = (args, headers, signal) => {
return this.fetch(this.url('RequestInventoryPayment'), createHTTPRequest(args, headers, signal)).then(res => {
this.listOffchainPayments = (args, headers, signal) => {
return this.fetch(this.url('ListOffchainPayments'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
payment: _data.payment
page: _data.page,
payments: _data.payments
};

@@ -931,0 +921,0 @@ });

@@ -17,3 +17,3 @@ function _extends() {

/* eslint-disable */
// sequence-api v0.4.0 9ed28977ef1572bcc09e507f04c1ec92aab12865
// sequence-api v0.4.0 470a0f88ea399c2a57ff8c22da54358c033ed5f0
// --

@@ -31,3 +31,3 @@ // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT.

// Schema hash generated from your RIDL schema
const WebRPCSchemaHash = "9ed28977ef1572bcc09e507f04c1ec92aab12865";
const WebRPCSchemaHash = "470a0f88ea399c2a57ff8c22da54358c033ed5f0";

@@ -785,7 +785,7 @@ //

};
this.getSwapQuotes = (args, headers, signal) => {
return this.fetch(this.url('GetSwapQuotes'), createHTTPRequest(args, headers, signal)).then(res => {
this.getSwapPrices = (args, headers, signal) => {
return this.fetch(this.url('GetSwapPrices'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
swapQuotes: _data.swapQuotes
swapPrices: _data.swapPrices
};

@@ -799,7 +799,7 @@ });

};
this.addCurrencyGroup = (args, headers, signal) => {
return this.fetch(this.url('AddCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
this.getSwapQuote = (args, headers, signal) => {
return this.fetch(this.url('GetSwapQuote'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
groupId: _data.groupId
swapQuote: _data.swapQuote
};

@@ -813,13 +813,2 @@ });

};
this.updateCurrencyGroup = (args, headers, signal) => {
return this.fetch(this.url('UpdateCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.listCurrencyGroups = (headers, signal) => {

@@ -838,7 +827,7 @@ return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {

};
this.deleteCurrencyGroup = (args, headers, signal) => {
return this.fetch(this.url('DeleteCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
this.addOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('AddOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
ok: _data.ok
inventoryId: _data.inventoryId
};

@@ -852,7 +841,7 @@ });

};
this.addInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('AddInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.getOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('GetOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
configId: _data.configId
inventory: _data.inventory
};

@@ -866,7 +855,7 @@ });

};
this.getInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('GetInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.listOffchainInventories = (args, headers, signal) => {
return this.fetch(this.url('ListOffchainInventories'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
config: _data.config
inventory: _data.inventory
};

@@ -880,8 +869,6 @@ });

};
this.listInventoryPaymentConfigs = (args, headers, signal) => {
return this.fetch(this.url('ListInventoryPaymentConfigs'), createHTTPRequest(args, headers, signal)).then(res => {
this.updateOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('UpdateOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
configs: _data.configs
};
return {};
});

@@ -894,6 +881,8 @@ }, error => {

};
this.updateInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('UpdateInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.deleteOffchainInventory = (args, headers, signal) => {
return this.fetch(this.url('DeleteOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {};
return {
ok: _data.ok
};
});

@@ -906,7 +895,7 @@ }, error => {

};
this.deleteInventoryPaymentConfig = (args, headers, signal) => {
return this.fetch(this.url('DeleteInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
this.requestOffchainPayment = (args, headers, signal) => {
return this.fetch(this.url('RequestOffchainPayment'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
ok: _data.ok
payment: _data.payment
};

@@ -920,7 +909,8 @@ });

};
this.requestInventoryPayment = (args, headers, signal) => {
return this.fetch(this.url('RequestInventoryPayment'), createHTTPRequest(args, headers, signal)).then(res => {
this.listOffchainPayments = (args, headers, signal) => {
return this.fetch(this.url('ListOffchainPayments'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
payment: _data.payment
page: _data.page,
payments: _data.payments
};

@@ -927,0 +917,0 @@ });

export declare const WebRPCVersion = "v1";
export declare const WebRPCSchemaVersion = "v0.4.0";
export declare const WebRPCSchemaHash = "9ed28977ef1572bcc09e507f04c1ec92aab12865";
export declare const WebRPCSchemaHash = "470a0f88ea399c2a57ff8c22da54358c033ed5f0";
export declare enum SortOrder {

@@ -309,2 +309,9 @@ DESC = "DESC",

}
export interface SwapPrice {
currencyAddress: string;
currencyBalance: string;
price: string;
to: string;
transactionValue: string;
}
export interface SwapQuote {

@@ -321,3 +328,2 @@ currencyAddress: string;

export interface CurrencyGroup {
id: number;
name: string;

@@ -327,8 +333,6 @@ tokens: Array<CurrencyGroupToken>;

export interface CurrencyGroupToken {
id: number;
currencyGroupId: number;
chainId: number;
tokenAddress: string;
}
export interface InventoryPaymentConfig {
export interface OffchainInventory {
id: number;

@@ -350,5 +354,5 @@ projectId: number;

}
export interface InventoryPayment {
export interface OffchainPayment {
id: number;
inventoryPaymentConfigId: number;
offchainInventoryId: number;
productRecipient: string;

@@ -362,5 +366,5 @@ paymentChainId: number;

}
export interface InventoryPaymentResponse {
export interface PaymentResponse {
paymentId: number;
inventoryPaymentConfigId: number;
offchainInventoryId: number;
chainId: number;

@@ -432,13 +436,12 @@ externalProductId: string;

validateWaaSVerificationNonce(args: ValidateWaaSVerificationNonceArgs, headers?: object, signal?: AbortSignal): Promise<ValidateWaaSVerificationNonceReturn>;
getSwapQuotes(args: GetSwapQuotesArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapQuotesReturn>;
addCurrencyGroup(args: AddCurrencyGroupArgs, headers?: object, signal?: AbortSignal): Promise<AddCurrencyGroupReturn>;
updateCurrencyGroup(args: UpdateCurrencyGroupArgs, headers?: object, signal?: AbortSignal): Promise<UpdateCurrencyGroupReturn>;
getSwapPrices(args: GetSwapPricesArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapPricesReturn>;
getSwapQuote(args: GetSwapQuoteArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapQuoteReturn>;
listCurrencyGroups(headers?: object, signal?: AbortSignal): Promise<ListCurrencyGroupsReturn>;
deleteCurrencyGroup(args: DeleteCurrencyGroupArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCurrencyGroupReturn>;
addInventoryPaymentConfig(args: AddInventoryPaymentConfigArgs, headers?: object, signal?: AbortSignal): Promise<AddInventoryPaymentConfigReturn>;
getInventoryPaymentConfig(args: GetInventoryPaymentConfigArgs, headers?: object, signal?: AbortSignal): Promise<GetInventoryPaymentConfigReturn>;
listInventoryPaymentConfigs(args: ListInventoryPaymentConfigsArgs, headers?: object, signal?: AbortSignal): Promise<ListInventoryPaymentConfigsReturn>;
updateInventoryPaymentConfig(args: UpdateInventoryPaymentConfigArgs, headers?: object, signal?: AbortSignal): Promise<UpdateInventoryPaymentConfigReturn>;
deleteInventoryPaymentConfig(args: DeleteInventoryPaymentConfigArgs, headers?: object, signal?: AbortSignal): Promise<DeleteInventoryPaymentConfigReturn>;
requestInventoryPayment(args: RequestInventoryPaymentArgs, headers?: object, signal?: AbortSignal): Promise<RequestInventoryPaymentReturn>;
addOffchainInventory(args: AddOffchainInventoryArgs, headers?: object, signal?: AbortSignal): Promise<AddOffchainInventoryReturn>;
getOffchainInventory(args: GetOffchainInventoryArgs, headers?: object, signal?: AbortSignal): Promise<GetOffchainInventoryReturn>;
listOffchainInventories(args: ListOffchainInventoriesArgs, headers?: object, signal?: AbortSignal): Promise<ListOffchainInventoriesReturn>;
updateOffchainInventory(args: UpdateOffchainInventoryArgs, headers?: object, signal?: AbortSignal): Promise<UpdateOffchainInventoryReturn>;
deleteOffchainInventory(args: DeleteOffchainInventoryArgs, headers?: object, signal?: AbortSignal): Promise<DeleteOffchainInventoryReturn>;
requestOffchainPayment(args: RequestOffchainPaymentArgs, headers?: object, signal?: AbortSignal): Promise<RequestOffchainPaymentReturn>;
listOffchainPayments(args: ListOffchainPaymentsArgs, headers?: object, signal?: AbortSignal): Promise<ListOffchainPaymentsReturn>;
}

@@ -823,23 +826,22 @@ export interface PingArgs {

}
export interface GetSwapQuotesArgs {
export interface GetSwapPricesArgs {
userAddress: string;
currencyAddress: string;
currencyAmount: string;
buyCurrencyAddress: string;
buyAmount: string;
chainId: number;
includeApprove: boolean;
}
export interface GetSwapQuotesReturn {
swapQuotes: Array<SwapQuote>;
export interface GetSwapPricesReturn {
swapPrices: Array<SwapPrice>;
}
export interface AddCurrencyGroupArgs {
currencyGroup: CurrencyGroup;
export interface GetSwapQuoteArgs {
userAddress: string;
buyCurrencyAddress: string;
sellCurrencyAddress: string;
buyAmount: string;
chainId: number;
includeApprove: boolean;
}
export interface AddCurrencyGroupReturn {
groupId: number;
export interface GetSwapQuoteReturn {
swapQuote: SwapQuote;
}
export interface UpdateCurrencyGroupArgs {
currencyGroup: CurrencyGroup;
}
export interface UpdateCurrencyGroupReturn {
}
export interface ListCurrencyGroupsArgs {

@@ -850,39 +852,33 @@ }

}
export interface DeleteCurrencyGroupArgs {
groupId: number;
export interface AddOffchainInventoryArgs {
inventory: OffchainInventory;
}
export interface DeleteCurrencyGroupReturn {
ok: boolean;
export interface AddOffchainInventoryReturn {
inventoryId: number;
}
export interface AddInventoryPaymentConfigArgs {
config: InventoryPaymentConfig;
export interface GetOffchainInventoryArgs {
inventoryId: number;
}
export interface AddInventoryPaymentConfigReturn {
configId: number;
export interface GetOffchainInventoryReturn {
inventory: OffchainInventory;
}
export interface GetInventoryPaymentConfigArgs {
configId: number;
}
export interface GetInventoryPaymentConfigReturn {
config: InventoryPaymentConfig;
}
export interface ListInventoryPaymentConfigsArgs {
export interface ListOffchainInventoriesArgs {
projectId: number;
}
export interface ListInventoryPaymentConfigsReturn {
configs: Array<InventoryPaymentConfig>;
export interface ListOffchainInventoriesReturn {
inventory: Array<OffchainInventory>;
}
export interface UpdateInventoryPaymentConfigArgs {
config: InventoryPaymentConfig;
export interface UpdateOffchainInventoryArgs {
inventory: OffchainInventory;
}
export interface UpdateInventoryPaymentConfigReturn {
export interface UpdateOffchainInventoryReturn {
}
export interface DeleteInventoryPaymentConfigArgs {
configId: number;
export interface DeleteOffchainInventoryArgs {
inventoryId: number;
}
export interface DeleteInventoryPaymentConfigReturn {
export interface DeleteOffchainInventoryReturn {
ok: boolean;
}
export interface RequestInventoryPaymentArgs {
configId: number;
export interface RequestOffchainPaymentArgs {
inventoryId: number;
recipient: string;

@@ -892,5 +888,13 @@ chainId?: number;

}
export interface RequestInventoryPaymentReturn {
payment: InventoryPaymentResponse;
export interface RequestOffchainPaymentReturn {
payment: PaymentResponse;
}
export interface ListOffchainPaymentsArgs {
inventoryId: number;
page?: Page;
}
export interface ListOffchainPaymentsReturn {
page: Page;
payments: Array<OffchainPayment>;
}
export declare class API implements API {

@@ -956,13 +960,12 @@ protected hostname: string;

validateWaaSVerificationNonce: (args: ValidateWaaSVerificationNonceArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ValidateWaaSVerificationNonceReturn>;
getSwapQuotes: (args: GetSwapQuotesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSwapQuotesReturn>;
addCurrencyGroup: (args: AddCurrencyGroupArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddCurrencyGroupReturn>;
updateCurrencyGroup: (args: UpdateCurrencyGroupArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UpdateCurrencyGroupReturn>;
getSwapPrices: (args: GetSwapPricesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSwapPricesReturn>;
getSwapQuote: (args: GetSwapQuoteArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSwapQuoteReturn>;
listCurrencyGroups: (headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListCurrencyGroupsReturn>;
deleteCurrencyGroup: (args: DeleteCurrencyGroupArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<DeleteCurrencyGroupReturn>;
addInventoryPaymentConfig: (args: AddInventoryPaymentConfigArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddInventoryPaymentConfigReturn>;
getInventoryPaymentConfig: (args: GetInventoryPaymentConfigArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetInventoryPaymentConfigReturn>;
listInventoryPaymentConfigs: (args: ListInventoryPaymentConfigsArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListInventoryPaymentConfigsReturn>;
updateInventoryPaymentConfig: (args: UpdateInventoryPaymentConfigArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UpdateInventoryPaymentConfigReturn>;
deleteInventoryPaymentConfig: (args: DeleteInventoryPaymentConfigArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<DeleteInventoryPaymentConfigReturn>;
requestInventoryPayment: (args: RequestInventoryPaymentArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<RequestInventoryPaymentReturn>;
addOffchainInventory: (args: AddOffchainInventoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddOffchainInventoryReturn>;
getOffchainInventory: (args: GetOffchainInventoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetOffchainInventoryReturn>;
listOffchainInventories: (args: ListOffchainInventoriesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListOffchainInventoriesReturn>;
updateOffchainInventory: (args: UpdateOffchainInventoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UpdateOffchainInventoryReturn>;
deleteOffchainInventory: (args: DeleteOffchainInventoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<DeleteOffchainInventoryReturn>;
requestOffchainPayment: (args: RequestOffchainPaymentArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<RequestOffchainPaymentReturn>;
listOffchainPayments: (args: ListOffchainPaymentsArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListOffchainPaymentsReturn>;
}

@@ -969,0 +972,0 @@ export declare class WebrpcError extends Error {

{
"name": "@0xsequence/api",
"version": "0.0.0-20240923135602",
"version": "0.0.0-20241007154931",
"description": "api sub-package for Sequence",

@@ -5,0 +5,0 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/api",

Sorry, the diff of this file is too big to display

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