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

@0xsequence/api

Package Overview
Dependencies
Maintainers
4
Versions
492
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.15.0 to 0.15.1

6

CHANGELOG.md
# @0xsequence/api
## 0.15.1
### Patch Changes
- update api clients
## 0.15.0

@@ -4,0 +10,0 @@

391

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

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

/* eslint-disable */
// arcadeum-api v0.3.0 e031abac112433715e4e4f562967eb545ecc2c23
// arcadeum-api v0.3.0 2b634b92e7e36c914159d8944bbac9521526d4b0
// --

@@ -40,3 +40,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

const WebRPCSchemaHash = "e031abac112433715e4e4f562967eb545ecc2c23"; //
const WebRPCSchemaHash = "2b634b92e7e36c914159d8944bbac9521526d4b0"; //
// Types

@@ -118,12 +118,2 @@ //

exports.OrderStatus = void 0;
(function (OrderStatus) {
OrderStatus["UNKNOWN"] = "UNKNOWN";
OrderStatus["FAILED"] = "FAILED";
OrderStatus["PENDING"] = "PENDING";
OrderStatus["SUCCESS"] = "SUCCESS";
OrderStatus["FINAL"] = "FINAL";
})(exports.OrderStatus || (exports.OrderStatus = {}));
exports.SortOrder = void 0;

@@ -156,37 +146,2 @@

this.browserSignIn = (args, headers) => {
return this.fetch(this.url('BrowserSignIn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
address: _data.address,
user: _data.user
};
});
});
};
this.browserLogout = headers => {
return this.fetch(this.url('BrowserLogout'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.appSignIn = (args, headers) => {
return this.fetch(this.url('AppSignIn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
address: _data.address,
auth: _data.auth,
user: _data.user
};
});
});
};
this.getAuthToken = (args, headers) => {

@@ -216,99 +171,2 @@ return this.fetch(this.url('GetAuthToken'), createHTTPRequest(args, headers)).then(res => {

this.createUser = (args, headers) => {
return this.fetch(this.url('CreateUser'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.createUserWithBackup = (args, headers) => {
return this.fetch(this.url('CreateUserWithBackup'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.updateUsernameOrPassword = (args, headers) => {
return this.fetch(this.url('UpdateUsernameOrPassword'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.updateUserProfile = (args, headers) => {
return this.fetch(this.url('UpdateUserProfile'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.findUserByUsername = (args, headers) => {
return this.fetch(this.url('FindUserByUsername'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.findUserByAddress = (args, headers) => {
return this.fetch(this.url('FindUserByAddress'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.searchUsers = (args, headers) => {
return this.fetch(this.url('SearchUsers'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
users: _data.users
};
});
});
};
this.generateSillyName = headers => {
return this.fetch(this.url('GenerateSillyName'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
username: _data.username
};
});
});
};
this.validateUsername = (args, headers) => {
return this.fetch(this.url('ValidateUsername'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.internalClaimAccessCode = (args, headers) => {

@@ -334,32 +192,2 @@ return this.fetch(this.url('InternalClaimAccessCode'), createHTTPRequest(args, headers)).then(res => {

this.walletSaveBackup = (args, headers) => {
return this.fetch(this.url('WalletSaveBackup'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.walletDeleteBackup = headers => {
return this.fetch(this.url('WalletDeleteBackup'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.walletBackupConfirmation = (args, headers) => {
return this.fetch(this.url('WalletBackupConfirmation'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.friendList = (args, headers) => {

@@ -429,107 +257,2 @@ return this.fetch(this.url('FriendList'), createHTTPRequest(args, headers)).then(res => {

this.bookmarkList = (args, headers) => {
return this.fetch(this.url('BookmarkList'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
bookmarks: _data.bookmarks
};
});
});
};
this.addBookmark = (args, headers) => {
return this.fetch(this.url('AddBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
bookmark: _data.bookmark
};
});
});
};
this.updateBookmark = (args, headers) => {
return this.fetch(this.url('UpdateBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
bookmark: _data.bookmark
};
});
});
};
this.removeBookmark = (args, headers) => {
return this.fetch(this.url('RemoveBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.reorderBookmark = (args, headers) => {
return this.fetch(this.url('ReorderBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
bookmark: _data.bookmark
};
});
});
};
this.fetchThumbnailForURL = (args, headers) => {
return this.fetch(this.url('FetchThumbnailForURL'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
thumbnailURL: _data.thumbnailURL
};
});
});
};
this.getInviteInfo = headers => {
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
inviteInfo: _data.inviteInfo
};
});
});
};
this.createInvite = headers => {
return this.fetch(this.url('CreateInvite'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
invite: _data.invite
};
});
});
};
this.createInviteAndSend = (args, headers) => {
return this.fetch(this.url('CreateInviteAndSend'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
invite: _data.invite
};
});
});
};
this.sendInvite = (args, headers) => {
return this.fetch(this.url('SendInvite'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
invite: _data.invite
};
});
});
};
this.getContract = (args, headers) => {

@@ -575,10 +298,2 @@ return this.fetch(this.url('GetContract'), createHTTPRequest(args, headers)).then(res => {

this.registerContract = (args, headers) => {
return this.fetch(this.url('RegisterContract'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {};
});
});
};
this.metaTxLogList = (args, headers) => {

@@ -595,13 +310,2 @@ return this.fetch(this.url('MetaTxLogList'), createHTTPRequest(args, headers)).then(res => {

this.adminMetaTxLogList = (args, headers) => {
return this.fetch(this.url('AdminMetaTxLogList'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
logs: _data.logs
};
});
});
};
this.transactionHistory = (args, headers) => {

@@ -681,66 +385,2 @@ return this.fetch(this.url('TransactionHistory'), createHTTPRequest(args, headers)).then(res => {

this.internalForceBalanceBootstrap = (args, headers) => {
return this.fetch(this.url('InternalForceBalanceBootstrap'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
balances: _data.balances
};
});
});
};
this.placeOrder = (args, headers) => {
return this.fetch(this.url('PlaceOrder'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
metaTxnID: _data.metaTxnID,
order: _data.order
};
});
});
};
this.listOrders = (args, headers) => {
return this.fetch(this.url('ListOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
orders: _data.orders
};
});
});
};
this.getOrder = (args, headers) => {
return this.fetch(this.url('GetOrder'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
order: _data.order
};
});
});
};
this.getOrderByMetaTxnID = (args, headers) => {
return this.fetch(this.url('GetOrderByMetaTxnID'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
order: _data.order
};
});
});
};
this.getOrderByID = (args, headers) => {
return this.fetch(this.url('GetOrderByID'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
order: _data.order
};
});
});
};
this.getNiftyswapTokenSupply = (args, headers) => {

@@ -766,13 +406,2 @@ return this.fetch(this.url('GetNiftyswapTokenSupply'), createHTTPRequest(args, headers)).then(res => {

this.adminOrderLogsList = (args, headers) => {
return this.fetch(this.url('AdminOrderLogsList'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
orders: _data.orders
};
});
});
};
this.sendMetaTxn = (args, headers) => {

@@ -829,12 +458,2 @@ return this.fetch(this.url('SendMetaTxn'), createHTTPRequest(args, headers)).then(res => {

this.estimateMetaTxnGasReceipt = (args, headers) => {
return this.fetch(this.url('EstimateMetaTxnGasReceipt'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
res: _data.res
};
});
});
};
this.tokenFee = headers => {

@@ -881,7 +500,7 @@ return this.fetch(this.url('TokenFee'), createHTTPRequest({}, headers)).then(res => {

this.wyreWalletOrderReserve = (args, headers) => {
return this.fetch(this.url('WyreWalletOrderReserve'), createHTTPRequest(args, headers)).then(res => {
this.getInviteInfo = headers => {
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
reservationID: _data.reservationID
inviteInfo: _data.inviteInfo
};

@@ -888,0 +507,0 @@ });

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

/* eslint-disable */
// arcadeum-api v0.3.0 e031abac112433715e4e4f562967eb545ecc2c23
// arcadeum-api v0.3.0 2b634b92e7e36c914159d8944bbac9521526d4b0
// --

@@ -40,3 +40,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

const WebRPCSchemaHash = "e031abac112433715e4e4f562967eb545ecc2c23"; //
const WebRPCSchemaHash = "2b634b92e7e36c914159d8944bbac9521526d4b0"; //
// Types

@@ -118,12 +118,2 @@ //

exports.OrderStatus = void 0;
(function (OrderStatus) {
OrderStatus["UNKNOWN"] = "UNKNOWN";
OrderStatus["FAILED"] = "FAILED";
OrderStatus["PENDING"] = "PENDING";
OrderStatus["SUCCESS"] = "SUCCESS";
OrderStatus["FINAL"] = "FINAL";
})(exports.OrderStatus || (exports.OrderStatus = {}));
exports.SortOrder = void 0;

@@ -156,37 +146,2 @@

this.browserSignIn = (args, headers) => {
return this.fetch(this.url('BrowserSignIn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
address: _data.address,
user: _data.user
};
});
});
};
this.browserLogout = headers => {
return this.fetch(this.url('BrowserLogout'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.appSignIn = (args, headers) => {
return this.fetch(this.url('AppSignIn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
address: _data.address,
auth: _data.auth,
user: _data.user
};
});
});
};
this.getAuthToken = (args, headers) => {

@@ -216,99 +171,2 @@ return this.fetch(this.url('GetAuthToken'), createHTTPRequest(args, headers)).then(res => {

this.createUser = (args, headers) => {
return this.fetch(this.url('CreateUser'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.createUserWithBackup = (args, headers) => {
return this.fetch(this.url('CreateUserWithBackup'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.updateUsernameOrPassword = (args, headers) => {
return this.fetch(this.url('UpdateUsernameOrPassword'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.updateUserProfile = (args, headers) => {
return this.fetch(this.url('UpdateUserProfile'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.findUserByUsername = (args, headers) => {
return this.fetch(this.url('FindUserByUsername'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.findUserByAddress = (args, headers) => {
return this.fetch(this.url('FindUserByAddress'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.searchUsers = (args, headers) => {
return this.fetch(this.url('SearchUsers'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
users: _data.users
};
});
});
};
this.generateSillyName = headers => {
return this.fetch(this.url('GenerateSillyName'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
username: _data.username
};
});
});
};
this.validateUsername = (args, headers) => {
return this.fetch(this.url('ValidateUsername'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.internalClaimAccessCode = (args, headers) => {

@@ -334,32 +192,2 @@ return this.fetch(this.url('InternalClaimAccessCode'), createHTTPRequest(args, headers)).then(res => {

this.walletSaveBackup = (args, headers) => {
return this.fetch(this.url('WalletSaveBackup'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.walletDeleteBackup = headers => {
return this.fetch(this.url('WalletDeleteBackup'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.walletBackupConfirmation = (args, headers) => {
return this.fetch(this.url('WalletBackupConfirmation'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.friendList = (args, headers) => {

@@ -429,107 +257,2 @@ return this.fetch(this.url('FriendList'), createHTTPRequest(args, headers)).then(res => {

this.bookmarkList = (args, headers) => {
return this.fetch(this.url('BookmarkList'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
bookmarks: _data.bookmarks
};
});
});
};
this.addBookmark = (args, headers) => {
return this.fetch(this.url('AddBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
bookmark: _data.bookmark
};
});
});
};
this.updateBookmark = (args, headers) => {
return this.fetch(this.url('UpdateBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
bookmark: _data.bookmark
};
});
});
};
this.removeBookmark = (args, headers) => {
return this.fetch(this.url('RemoveBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.reorderBookmark = (args, headers) => {
return this.fetch(this.url('ReorderBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
bookmark: _data.bookmark
};
});
});
};
this.fetchThumbnailForURL = (args, headers) => {
return this.fetch(this.url('FetchThumbnailForURL'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
thumbnailURL: _data.thumbnailURL
};
});
});
};
this.getInviteInfo = headers => {
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
inviteInfo: _data.inviteInfo
};
});
});
};
this.createInvite = headers => {
return this.fetch(this.url('CreateInvite'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
invite: _data.invite
};
});
});
};
this.createInviteAndSend = (args, headers) => {
return this.fetch(this.url('CreateInviteAndSend'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
invite: _data.invite
};
});
});
};
this.sendInvite = (args, headers) => {
return this.fetch(this.url('SendInvite'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
invite: _data.invite
};
});
});
};
this.getContract = (args, headers) => {

@@ -575,10 +298,2 @@ return this.fetch(this.url('GetContract'), createHTTPRequest(args, headers)).then(res => {

this.registerContract = (args, headers) => {
return this.fetch(this.url('RegisterContract'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {};
});
});
};
this.metaTxLogList = (args, headers) => {

@@ -595,13 +310,2 @@ return this.fetch(this.url('MetaTxLogList'), createHTTPRequest(args, headers)).then(res => {

this.adminMetaTxLogList = (args, headers) => {
return this.fetch(this.url('AdminMetaTxLogList'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
logs: _data.logs
};
});
});
};
this.transactionHistory = (args, headers) => {

@@ -681,66 +385,2 @@ return this.fetch(this.url('TransactionHistory'), createHTTPRequest(args, headers)).then(res => {

this.internalForceBalanceBootstrap = (args, headers) => {
return this.fetch(this.url('InternalForceBalanceBootstrap'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
balances: _data.balances
};
});
});
};
this.placeOrder = (args, headers) => {
return this.fetch(this.url('PlaceOrder'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
metaTxnID: _data.metaTxnID,
order: _data.order
};
});
});
};
this.listOrders = (args, headers) => {
return this.fetch(this.url('ListOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
orders: _data.orders
};
});
});
};
this.getOrder = (args, headers) => {
return this.fetch(this.url('GetOrder'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
order: _data.order
};
});
});
};
this.getOrderByMetaTxnID = (args, headers) => {
return this.fetch(this.url('GetOrderByMetaTxnID'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
order: _data.order
};
});
});
};
this.getOrderByID = (args, headers) => {
return this.fetch(this.url('GetOrderByID'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
order: _data.order
};
});
});
};
this.getNiftyswapTokenSupply = (args, headers) => {

@@ -766,13 +406,2 @@ return this.fetch(this.url('GetNiftyswapTokenSupply'), createHTTPRequest(args, headers)).then(res => {

this.adminOrderLogsList = (args, headers) => {
return this.fetch(this.url('AdminOrderLogsList'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
orders: _data.orders
};
});
});
};
this.sendMetaTxn = (args, headers) => {

@@ -829,12 +458,2 @@ return this.fetch(this.url('SendMetaTxn'), createHTTPRequest(args, headers)).then(res => {

this.estimateMetaTxnGasReceipt = (args, headers) => {
return this.fetch(this.url('EstimateMetaTxnGasReceipt'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
res: _data.res
};
});
});
};
this.tokenFee = headers => {

@@ -881,7 +500,7 @@ return this.fetch(this.url('TokenFee'), createHTTPRequest({}, headers)).then(res => {

this.wyreWalletOrderReserve = (args, headers) => {
return this.fetch(this.url('WyreWalletOrderReserve'), createHTTPRequest(args, headers)).then(res => {
this.getInviteInfo = headers => {
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
reservationID: _data.reservationID
inviteInfo: _data.inviteInfo
};

@@ -888,0 +507,0 @@ });

@@ -22,3 +22,3 @@ import fetch from 'cross-fetch';

/* eslint-disable */
// arcadeum-api v0.3.0 e031abac112433715e4e4f562967eb545ecc2c23
// arcadeum-api v0.3.0 2b634b92e7e36c914159d8944bbac9521526d4b0
// --

@@ -32,3 +32,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

const WebRPCSchemaHash = "e031abac112433715e4e4f562967eb545ecc2c23"; //
const WebRPCSchemaHash = "2b634b92e7e36c914159d8944bbac9521526d4b0"; //
// Types

@@ -110,12 +110,2 @@ //

let OrderStatus;
(function (OrderStatus) {
OrderStatus["UNKNOWN"] = "UNKNOWN";
OrderStatus["FAILED"] = "FAILED";
OrderStatus["PENDING"] = "PENDING";
OrderStatus["SUCCESS"] = "SUCCESS";
OrderStatus["FINAL"] = "FINAL";
})(OrderStatus || (OrderStatus = {}));
let SortOrder;

@@ -148,37 +138,2 @@

this.browserSignIn = (args, headers) => {
return this.fetch(this.url('BrowserSignIn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
address: _data.address,
user: _data.user
};
});
});
};
this.browserLogout = headers => {
return this.fetch(this.url('BrowserLogout'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.appSignIn = (args, headers) => {
return this.fetch(this.url('AppSignIn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
address: _data.address,
auth: _data.auth,
user: _data.user
};
});
});
};
this.getAuthToken = (args, headers) => {

@@ -208,99 +163,2 @@ return this.fetch(this.url('GetAuthToken'), createHTTPRequest(args, headers)).then(res => {

this.createUser = (args, headers) => {
return this.fetch(this.url('CreateUser'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.createUserWithBackup = (args, headers) => {
return this.fetch(this.url('CreateUserWithBackup'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.updateUsernameOrPassword = (args, headers) => {
return this.fetch(this.url('UpdateUsernameOrPassword'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.updateUserProfile = (args, headers) => {
return this.fetch(this.url('UpdateUserProfile'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.findUserByUsername = (args, headers) => {
return this.fetch(this.url('FindUserByUsername'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.findUserByAddress = (args, headers) => {
return this.fetch(this.url('FindUserByAddress'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
user: _data.user
};
});
});
};
this.searchUsers = (args, headers) => {
return this.fetch(this.url('SearchUsers'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
users: _data.users
};
});
});
};
this.generateSillyName = headers => {
return this.fetch(this.url('GenerateSillyName'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
username: _data.username
};
});
});
};
this.validateUsername = (args, headers) => {
return this.fetch(this.url('ValidateUsername'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.internalClaimAccessCode = (args, headers) => {

@@ -326,32 +184,2 @@ return this.fetch(this.url('InternalClaimAccessCode'), createHTTPRequest(args, headers)).then(res => {

this.walletSaveBackup = (args, headers) => {
return this.fetch(this.url('WalletSaveBackup'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.walletDeleteBackup = headers => {
return this.fetch(this.url('WalletDeleteBackup'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.walletBackupConfirmation = (args, headers) => {
return this.fetch(this.url('WalletBackupConfirmation'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.friendList = (args, headers) => {

@@ -421,107 +249,2 @@ return this.fetch(this.url('FriendList'), createHTTPRequest(args, headers)).then(res => {

this.bookmarkList = (args, headers) => {
return this.fetch(this.url('BookmarkList'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
bookmarks: _data.bookmarks
};
});
});
};
this.addBookmark = (args, headers) => {
return this.fetch(this.url('AddBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
bookmark: _data.bookmark
};
});
});
};
this.updateBookmark = (args, headers) => {
return this.fetch(this.url('UpdateBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
bookmark: _data.bookmark
};
});
});
};
this.removeBookmark = (args, headers) => {
return this.fetch(this.url('RemoveBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.reorderBookmark = (args, headers) => {
return this.fetch(this.url('ReorderBookmark'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
bookmark: _data.bookmark
};
});
});
};
this.fetchThumbnailForURL = (args, headers) => {
return this.fetch(this.url('FetchThumbnailForURL'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
thumbnailURL: _data.thumbnailURL
};
});
});
};
this.getInviteInfo = headers => {
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
inviteInfo: _data.inviteInfo
};
});
});
};
this.createInvite = headers => {
return this.fetch(this.url('CreateInvite'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
invite: _data.invite
};
});
});
};
this.createInviteAndSend = (args, headers) => {
return this.fetch(this.url('CreateInviteAndSend'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
invite: _data.invite
};
});
});
};
this.sendInvite = (args, headers) => {
return this.fetch(this.url('SendInvite'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
invite: _data.invite
};
});
});
};
this.getContract = (args, headers) => {

@@ -567,10 +290,2 @@ return this.fetch(this.url('GetContract'), createHTTPRequest(args, headers)).then(res => {

this.registerContract = (args, headers) => {
return this.fetch(this.url('RegisterContract'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {};
});
});
};
this.metaTxLogList = (args, headers) => {

@@ -587,13 +302,2 @@ return this.fetch(this.url('MetaTxLogList'), createHTTPRequest(args, headers)).then(res => {

this.adminMetaTxLogList = (args, headers) => {
return this.fetch(this.url('AdminMetaTxLogList'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
logs: _data.logs
};
});
});
};
this.transactionHistory = (args, headers) => {

@@ -673,66 +377,2 @@ return this.fetch(this.url('TransactionHistory'), createHTTPRequest(args, headers)).then(res => {

this.internalForceBalanceBootstrap = (args, headers) => {
return this.fetch(this.url('InternalForceBalanceBootstrap'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
balances: _data.balances
};
});
});
};
this.placeOrder = (args, headers) => {
return this.fetch(this.url('PlaceOrder'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
metaTxnID: _data.metaTxnID,
order: _data.order
};
});
});
};
this.listOrders = (args, headers) => {
return this.fetch(this.url('ListOrders'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
orders: _data.orders
};
});
});
};
this.getOrder = (args, headers) => {
return this.fetch(this.url('GetOrder'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
order: _data.order
};
});
});
};
this.getOrderByMetaTxnID = (args, headers) => {
return this.fetch(this.url('GetOrderByMetaTxnID'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
order: _data.order
};
});
});
};
this.getOrderByID = (args, headers) => {
return this.fetch(this.url('GetOrderByID'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
order: _data.order
};
});
});
};
this.getNiftyswapTokenSupply = (args, headers) => {

@@ -758,13 +398,2 @@ return this.fetch(this.url('GetNiftyswapTokenSupply'), createHTTPRequest(args, headers)).then(res => {

this.adminOrderLogsList = (args, headers) => {
return this.fetch(this.url('AdminOrderLogsList'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
orders: _data.orders
};
});
});
};
this.sendMetaTxn = (args, headers) => {

@@ -821,12 +450,2 @@ return this.fetch(this.url('SendMetaTxn'), createHTTPRequest(args, headers)).then(res => {

this.estimateMetaTxnGasReceipt = (args, headers) => {
return this.fetch(this.url('EstimateMetaTxnGasReceipt'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
res: _data.res
};
});
});
};
this.tokenFee = headers => {

@@ -873,7 +492,7 @@ return this.fetch(this.url('TokenFee'), createHTTPRequest({}, headers)).then(res => {

this.wyreWalletOrderReserve = (args, headers) => {
return this.fetch(this.url('WyreWalletOrderReserve'), createHTTPRequest(args, headers)).then(res => {
this.getInviteInfo = headers => {
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
reservationID: _data.reservationID
inviteInfo: _data.inviteInfo
};

@@ -988,2 +607,2 @@ });

export { ArcadeumAPI, ArcadeumAPIClient, ChainStateProp, ContractCategory, ContractType, ETHNetwork, ETHTxnStatus, EventLogType, OrderStatus, OrderType, SortOrder, TransferType, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };
export { ArcadeumAPI, ArcadeumAPIClient, ChainStateProp, ContractCategory, ContractType, ETHNetwork, ETHTxnStatus, EventLogType, OrderType, SortOrder, TransferType, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };
export declare const WebRPCVersion = "v1";
export declare const WebRPCSchemaVersion = "v0.3.0";
export declare const WebRPCSchemaHash = "e031abac112433715e4e4f562967eb545ecc2c23";
export declare const WebRPCSchemaHash = "2b634b92e7e36c914159d8944bbac9521526d4b0";
export declare enum ChainStateProp {

@@ -56,9 +56,2 @@ UNKNOWN = "UNKNOWN",

}
export declare enum OrderStatus {
UNKNOWN = "UNKNOWN",
FAILED = "FAILED",
PENDING = "PENDING",
SUCCESS = "SUCCESS",
FINAL = "FINAL"
}
export declare enum SortOrder {

@@ -84,10 +77,2 @@ DESC = "DESC",

}
export interface WalletProof {
address: string;
message: string;
signature: string;
}
export interface Authorization {
jwt: string;
}
export interface User {

@@ -106,7 +91,2 @@ address: string;

}
export interface Signup {
user: User;
code?: string;
source?: string;
}
export interface WalletBackup {

@@ -128,11 +108,2 @@ accountAddress: string;

}
export interface Bookmark {
id: number;
userAddress: string;
url: string;
name: string;
thumbnailURL: string;
position: number;
createdAt?: string;
}
export interface InviteResponse {

@@ -236,30 +207,2 @@ code: string;

}
export interface Order {
orderID?: string;
txnHash?: string;
txnNonce?: string;
metaTxnID?: string;
txnStatus: ETHTxnStatus;
txnReceipt?: {
[key: string]: any;
};
txnRevertReason: string;
accountAddress: string;
shopContractAddress: string;
assetContractAddress: string;
baseContractAddress: string;
orderType: OrderType;
orderStatus: OrderStatus;
tokenIds: Array<string>;
amounts: Array<string>;
unitPrices: Array<string>;
subtotalPrice: string;
metatxFee: string;
brokerFee: string;
totalPrice: string;
gasUsed: number;
gasFeeWei: string;
updatedAt: string;
createdAt: string;
}
export interface MetaTxLog {

@@ -324,12 +267,2 @@ id: number;

}
export interface MetaTxnEstimationInput {
contract: string;
payload: string;
numSigners: number;
}
export interface MetaTxnEstimationOutput {
payload: string;
gasLimit: number;
feeAppended: boolean;
}
export interface MetaTxn {

@@ -470,21 +403,6 @@ contract: string;

export interface ArcadeumAPI {
browserSignIn(args: BrowserSignInArgs, headers?: object): Promise<BrowserSignInReturn>;
browserLogout(headers?: object): Promise<BrowserLogoutReturn>;
appSignIn(args: AppSignInArgs, headers?: object): Promise<AppSignInReturn>;
getAuthToken(args: GetAuthTokenArgs, headers?: object): Promise<GetAuthTokenReturn>;
getSession(headers?: object): Promise<GetSessionReturn>;
createUser(args: CreateUserArgs, headers?: object): Promise<CreateUserReturn>;
createUserWithBackup(args: CreateUserWithBackupArgs, headers?: object): Promise<CreateUserWithBackupReturn>;
updateUsernameOrPassword(args: UpdateUsernameOrPasswordArgs, headers?: object): Promise<UpdateUsernameOrPasswordReturn>;
updateUserProfile(args: UpdateUserProfileArgs, headers?: object): Promise<UpdateUserProfileReturn>;
findUserByUsername(args: FindUserByUsernameArgs, headers?: object): Promise<FindUserByUsernameReturn>;
findUserByAddress(args: FindUserByAddressArgs, headers?: object): Promise<FindUserByAddressReturn>;
searchUsers(args: SearchUsersArgs, headers?: object): Promise<SearchUsersReturn>;
generateSillyName(headers?: object): Promise<GenerateSillyNameReturn>;
validateUsername(args: ValidateUsernameArgs, headers?: object): Promise<ValidateUsernameReturn>;
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>;
walletSaveBackup(args: WalletSaveBackupArgs, headers?: object): Promise<WalletSaveBackupReturn>;
walletDeleteBackup(headers?: object): Promise<WalletDeleteBackupReturn>;
walletBackupConfirmation(args: WalletBackupConfirmationArgs, headers?: object): Promise<WalletBackupConfirmationReturn>;
friendList(args: FriendListArgs, headers?: object): Promise<FriendListReturn>;

@@ -496,12 +414,2 @@ getFriendByAddress(args: GetFriendByAddressArgs, headers?: object): Promise<GetFriendByAddressReturn>;

removeFriend(args: RemoveFriendArgs, headers?: object): Promise<RemoveFriendReturn>;
bookmarkList(args: BookmarkListArgs, headers?: object): Promise<BookmarkListReturn>;
addBookmark(args: AddBookmarkArgs, headers?: object): Promise<AddBookmarkReturn>;
updateBookmark(args: UpdateBookmarkArgs, headers?: object): Promise<UpdateBookmarkReturn>;
removeBookmark(args: RemoveBookmarkArgs, headers?: object): Promise<RemoveBookmarkReturn>;
reorderBookmark(args: ReorderBookmarkArgs, headers?: object): Promise<ReorderBookmarkReturn>;
fetchThumbnailForURL(args: FetchThumbnailForURLArgs, headers?: object): Promise<FetchThumbnailForURLReturn>;
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
createInvite(headers?: object): Promise<CreateInviteReturn>;
createInviteAndSend(args: CreateInviteAndSendArgs, headers?: object): Promise<CreateInviteAndSendReturn>;
sendInvite(args: SendInviteArgs, headers?: object): Promise<SendInviteReturn>;
getContract(args: GetContractArgs, headers?: object): Promise<GetContractReturn>;

@@ -511,5 +419,3 @@ getContractByAlias(args: GetContractByAliasArgs, headers?: object): Promise<GetContractByAliasReturn>;

getTokenBalances(headers?: object): Promise<GetTokenBalancesReturn>;
registerContract(args: RegisterContractArgs, headers?: object): Promise<RegisterContractReturn>;
metaTxLogList(args: MetaTxLogListArgs, headers?: object): Promise<MetaTxLogListReturn>;
adminMetaTxLogList(args: AdminMetaTxLogListArgs, headers?: object): Promise<AdminMetaTxLogListReturn>;
transactionHistory(args: TransactionHistoryArgs, headers?: object): Promise<TransactionHistoryReturn>;

@@ -522,11 +428,4 @@ sentTransactions(args: SentTransactionsArgs, headers?: object): Promise<SentTransactionsReturn>;

decodeTxnData(args: DecodeTxnDataArgs, headers?: object): Promise<DecodeTxnDataReturn>;
internalForceBalanceBootstrap(args: InternalForceBalanceBootstrapArgs, headers?: object): Promise<InternalForceBalanceBootstrapReturn>;
placeOrder(args: PlaceOrderArgs, headers?: object): Promise<PlaceOrderReturn>;
listOrders(args: ListOrdersArgs, headers?: object): Promise<ListOrdersReturn>;
getOrder(args: GetOrderArgs, headers?: object): Promise<GetOrderReturn>;
getOrderByMetaTxnID(args: GetOrderByMetaTxnIDArgs, headers?: object): Promise<GetOrderByMetaTxnIDReturn>;
getOrderByID(args: GetOrderByIDArgs, headers?: object): Promise<GetOrderByIDReturn>;
getNiftyswapTokenSupply(args: GetNiftyswapTokenSupplyArgs, headers?: object): Promise<GetNiftyswapTokenSupplyReturn>;
getNiftyswapUnitPrices(args: GetNiftyswapUnitPricesArgs, headers?: object): Promise<GetNiftyswapUnitPricesReturn>;
adminOrderLogsList(args: AdminOrderLogsListArgs, headers?: object): Promise<AdminOrderLogsListReturn>;
sendMetaTxn(args: SendMetaTxnArgs, headers?: object): Promise<SendMetaTxnReturn>;

@@ -537,3 +436,2 @@ getMetaTxnNonce(args: GetMetaTxnNonceArgs, headers?: object): Promise<GetMetaTxnNonceReturn>;

getChainID(headers?: object): Promise<GetChainIDReturn>;
estimateMetaTxnGasReceipt(args: EstimateMetaTxnGasReceiptArgs, headers?: object): Promise<EstimateMetaTxnGasReceiptReturn>;
tokenFee(headers?: object): Promise<TokenFeeReturn>;

@@ -543,3 +441,3 @@ getEstimatedTime(headers?: object): Promise<GetEstimatedTimeReturn>;

getMetaTxnNetworkFeeOptions(args: GetMetaTxnNetworkFeeOptionsArgs, headers?: object): Promise<GetMetaTxnNetworkFeeOptionsReturn>;
wyreWalletOrderReserve(args: WyreWalletOrderReserveArgs, headers?: object): Promise<WyreWalletOrderReserveReturn>;
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
ping(headers?: object): Promise<PingReturn>;

@@ -549,24 +447,2 @@ version(headers?: object): Promise<VersionReturn>;

}
export interface BrowserSignInArgs {
proof: WalletProof;
}
export interface BrowserSignInReturn {
status: boolean;
address: string;
user?: User;
}
export interface BrowserLogoutArgs {
}
export interface BrowserLogoutReturn {
status: boolean;
}
export interface AppSignInArgs {
proof: WalletProof;
}
export interface AppSignInReturn {
status: boolean;
address: string;
auth?: Authorization;
user?: User;
}
export interface GetAuthTokenArgs {

@@ -587,67 +463,2 @@ ewtString: string;

}
export interface CreateUserArgs {
user: Signup;
}
export interface CreateUserReturn {
status: boolean;
user?: User;
}
export interface CreateUserWithBackupArgs {
user: Signup;
encryptedWallet: string;
secretHash: string;
}
export interface CreateUserWithBackupReturn {
status: boolean;
user?: User;
}
export interface UpdateUsernameOrPasswordArgs {
newUsername: string;
currentSecretHash?: string;
newEncryptedWallet?: string;
newSecretHash?: string;
}
export interface UpdateUsernameOrPasswordReturn {
status: boolean;
user?: User;
}
export interface UpdateUserProfileArgs {
user: User;
}
export interface UpdateUserProfileReturn {
status: boolean;
user?: User;
}
export interface FindUserByUsernameArgs {
filterUsername: string;
}
export interface FindUserByUsernameReturn {
status: boolean;
user?: User;
}
export interface FindUserByAddressArgs {
filterAddress: string;
}
export interface FindUserByAddressReturn {
status: boolean;
user?: User;
}
export interface SearchUsersArgs {
filterUsername: string;
}
export interface SearchUsersReturn {
status: boolean;
users: Array<User>;
}
export interface GenerateSillyNameArgs {
}
export interface GenerateSillyNameReturn {
username: string;
}
export interface ValidateUsernameArgs {
username: string;
}
export interface ValidateUsernameReturn {
status: boolean;
}
export interface InternalClaimAccessCodeArgs {

@@ -667,20 +478,2 @@ address: string;

}
export interface WalletSaveBackupArgs {
encryptedWallet: string;
secretHash: string;
}
export interface WalletSaveBackupReturn {
status: boolean;
}
export interface WalletDeleteBackupArgs {
}
export interface WalletDeleteBackupReturn {
status: boolean;
}
export interface WalletBackupConfirmationArgs {
t: boolean;
}
export interface WalletBackupConfirmationReturn {
status: boolean;
}
export interface FriendListArgs {

@@ -728,69 +521,2 @@ page?: Page;

}
export interface BookmarkListArgs {
page?: Page;
}
export interface BookmarkListReturn {
page: Page;
bookmarks: Array<Bookmark>;
}
export interface AddBookmarkArgs {
bookmark: Bookmark;
afterBookmarkID?: number;
}
export interface AddBookmarkReturn {
status: boolean;
bookmark?: Bookmark;
}
export interface UpdateBookmarkArgs {
id: number;
bookmark: Bookmark;
}
export interface UpdateBookmarkReturn {
status: boolean;
bookmark?: Bookmark;
}
export interface RemoveBookmarkArgs {
id: number;
}
export interface RemoveBookmarkReturn {
status: boolean;
}
export interface ReorderBookmarkArgs {
bookmarkID: number;
afterID: number;
}
export interface ReorderBookmarkReturn {
status: boolean;
bookmark?: Bookmark;
}
export interface FetchThumbnailForURLArgs {
url: string;
}
export interface FetchThumbnailForURLReturn {
status: boolean;
thumbnailURL: string;
}
export interface GetInviteInfoArgs {
}
export interface GetInviteInfoReturn {
inviteInfo: InviteInfo;
}
export interface CreateInviteArgs {
}
export interface CreateInviteReturn {
invite: InviteResponse;
}
export interface CreateInviteAndSendArgs {
email: string;
}
export interface CreateInviteAndSendReturn {
invite: InviteResponse;
}
export interface SendInviteArgs {
email: string;
code: string;
}
export interface SendInviteReturn {
invite: InviteResponse;
}
export interface GetContractArgs {

@@ -818,7 +544,2 @@ contractHandle: string;

}
export interface RegisterContractArgs {
req: RegisterContractRequest;
}
export interface RegisterContractReturn {
}
export interface MetaTxLogListArgs {

@@ -831,9 +552,2 @@ page?: Page;

}
export interface AdminMetaTxLogListArgs {
page?: Page;
}
export interface AdminMetaTxLogListReturn {
page: Page;
logs: Array<MetaTxLog>;
}
export interface TransactionHistoryArgs {

@@ -892,45 +606,2 @@ filter: TransactionHistoryFilter;

}
export interface InternalForceBalanceBootstrapArgs {
contractHandle: string;
owners: Array<string>;
tokenIDs?: Array<string>;
}
export interface InternalForceBalanceBootstrapReturn {
status: boolean;
balances: Array<Balance>;
}
export interface PlaceOrderArgs {
metatx: MetaTxn;
}
export interface PlaceOrderReturn {
status: boolean;
metaTxnID: string;
order: Order;
}
export interface ListOrdersArgs {
shopContractHandle: string;
page?: Page;
}
export interface ListOrdersReturn {
page: Page;
orders: Array<Order>;
}
export interface GetOrderArgs {
txnHash: string;
}
export interface GetOrderReturn {
order?: Order;
}
export interface GetOrderByMetaTxnIDArgs {
metaTxnID: string;
}
export interface GetOrderByMetaTxnIDReturn {
order?: Array<Order>;
}
export interface GetOrderByIDArgs {
orderID: string;
}
export interface GetOrderByIDReturn {
order?: Order;
}
export interface GetNiftyswapTokenSupplyArgs {

@@ -950,9 +621,2 @@ shopContractHandle: string;

}
export interface AdminOrderLogsListArgs {
page?: Page;
}
export interface AdminOrderLogsListReturn {
page: Page;
orders: Array<Order>;
}
export interface SendMetaTxnArgs {

@@ -988,9 +652,2 @@ call: MetaTxn;

}
export interface EstimateMetaTxnGasReceiptArgs {
call: MetaTxnEstimationInput;
feeToken: string;
}
export interface EstimateMetaTxnGasReceiptReturn {
res: MetaTxnEstimationOutput;
}
export interface TokenFeeArgs {

@@ -1022,7 +679,6 @@ }

}
export interface WyreWalletOrderReserveArgs {
address: string;
export interface GetInviteInfoArgs {
}
export interface WyreWalletOrderReserveReturn {
reservationID: string;
export interface GetInviteInfoReturn {
inviteInfo: InviteInfo;
}

@@ -1050,21 +706,6 @@ export interface PingArgs {

private url;
browserSignIn: (args: BrowserSignInArgs, headers?: object | undefined) => Promise<BrowserSignInReturn>;
browserLogout: (headers?: object | undefined) => Promise<BrowserLogoutReturn>;
appSignIn: (args: AppSignInArgs, headers?: object | undefined) => Promise<AppSignInReturn>;
getAuthToken: (args: GetAuthTokenArgs, headers?: object | undefined) => Promise<GetAuthTokenReturn>;
getSession: (headers?: object | undefined) => Promise<GetSessionReturn>;
createUser: (args: CreateUserArgs, headers?: object | undefined) => Promise<CreateUserReturn>;
createUserWithBackup: (args: CreateUserWithBackupArgs, headers?: object | undefined) => Promise<CreateUserWithBackupReturn>;
updateUsernameOrPassword: (args: UpdateUsernameOrPasswordArgs, headers?: object | undefined) => Promise<UpdateUsernameOrPasswordReturn>;
updateUserProfile: (args: UpdateUserProfileArgs, headers?: object | undefined) => Promise<UpdateUserProfileReturn>;
findUserByUsername: (args: FindUserByUsernameArgs, headers?: object | undefined) => Promise<FindUserByUsernameReturn>;
findUserByAddress: (args: FindUserByAddressArgs, headers?: object | undefined) => Promise<FindUserByAddressReturn>;
searchUsers: (args: SearchUsersArgs, headers?: object | undefined) => Promise<SearchUsersReturn>;
generateSillyName: (headers?: object | undefined) => Promise<GenerateSillyNameReturn>;
validateUsername: (args: ValidateUsernameArgs, headers?: object | undefined) => Promise<ValidateUsernameReturn>;
internalClaimAccessCode: (args: InternalClaimAccessCodeArgs, headers?: object | undefined) => Promise<InternalClaimAccessCodeReturn>;
walletRecover: (args: WalletRecoverArgs, headers?: object | undefined) => Promise<WalletRecoverReturn>;
walletSaveBackup: (args: WalletSaveBackupArgs, headers?: object | undefined) => Promise<WalletSaveBackupReturn>;
walletDeleteBackup: (headers?: object | undefined) => Promise<WalletDeleteBackupReturn>;
walletBackupConfirmation: (args: WalletBackupConfirmationArgs, headers?: object | undefined) => Promise<WalletBackupConfirmationReturn>;
friendList: (args: FriendListArgs, headers?: object | undefined) => Promise<FriendListReturn>;

@@ -1076,12 +717,2 @@ getFriendByAddress: (args: GetFriendByAddressArgs, headers?: object | undefined) => Promise<GetFriendByAddressReturn>;

removeFriend: (args: RemoveFriendArgs, headers?: object | undefined) => Promise<RemoveFriendReturn>;
bookmarkList: (args: BookmarkListArgs, headers?: object | undefined) => Promise<BookmarkListReturn>;
addBookmark: (args: AddBookmarkArgs, headers?: object | undefined) => Promise<AddBookmarkReturn>;
updateBookmark: (args: UpdateBookmarkArgs, headers?: object | undefined) => Promise<UpdateBookmarkReturn>;
removeBookmark: (args: RemoveBookmarkArgs, headers?: object | undefined) => Promise<RemoveBookmarkReturn>;
reorderBookmark: (args: ReorderBookmarkArgs, headers?: object | undefined) => Promise<ReorderBookmarkReturn>;
fetchThumbnailForURL: (args: FetchThumbnailForURLArgs, headers?: object | undefined) => Promise<FetchThumbnailForURLReturn>;
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
createInvite: (headers?: object | undefined) => Promise<CreateInviteReturn>;
createInviteAndSend: (args: CreateInviteAndSendArgs, headers?: object | undefined) => Promise<CreateInviteAndSendReturn>;
sendInvite: (args: SendInviteArgs, headers?: object | undefined) => Promise<SendInviteReturn>;
getContract: (args: GetContractArgs, headers?: object | undefined) => Promise<GetContractReturn>;

@@ -1091,5 +722,3 @@ getContractByAlias: (args: GetContractByAliasArgs, headers?: object | undefined) => Promise<GetContractByAliasReturn>;

getTokenBalances: (headers?: object | undefined) => Promise<GetTokenBalancesReturn>;
registerContract: (args: RegisterContractArgs, headers?: object | undefined) => Promise<RegisterContractReturn>;
metaTxLogList: (args: MetaTxLogListArgs, headers?: object | undefined) => Promise<MetaTxLogListReturn>;
adminMetaTxLogList: (args: AdminMetaTxLogListArgs, headers?: object | undefined) => Promise<AdminMetaTxLogListReturn>;
transactionHistory: (args: TransactionHistoryArgs, headers?: object | undefined) => Promise<TransactionHistoryReturn>;

@@ -1102,11 +731,4 @@ sentTransactions: (args: SentTransactionsArgs, headers?: object | undefined) => Promise<SentTransactionsReturn>;

decodeTxnData: (args: DecodeTxnDataArgs, headers?: object | undefined) => Promise<DecodeTxnDataReturn>;
internalForceBalanceBootstrap: (args: InternalForceBalanceBootstrapArgs, headers?: object | undefined) => Promise<InternalForceBalanceBootstrapReturn>;
placeOrder: (args: PlaceOrderArgs, headers?: object | undefined) => Promise<PlaceOrderReturn>;
listOrders: (args: ListOrdersArgs, headers?: object | undefined) => Promise<ListOrdersReturn>;
getOrder: (args: GetOrderArgs, headers?: object | undefined) => Promise<GetOrderReturn>;
getOrderByMetaTxnID: (args: GetOrderByMetaTxnIDArgs, headers?: object | undefined) => Promise<GetOrderByMetaTxnIDReturn>;
getOrderByID: (args: GetOrderByIDArgs, headers?: object | undefined) => Promise<GetOrderByIDReturn>;
getNiftyswapTokenSupply: (args: GetNiftyswapTokenSupplyArgs, headers?: object | undefined) => Promise<GetNiftyswapTokenSupplyReturn>;
getNiftyswapUnitPrices: (args: GetNiftyswapUnitPricesArgs, headers?: object | undefined) => Promise<GetNiftyswapUnitPricesReturn>;
adminOrderLogsList: (args: AdminOrderLogsListArgs, headers?: object | undefined) => Promise<AdminOrderLogsListReturn>;
sendMetaTxn: (args: SendMetaTxnArgs, headers?: object | undefined) => Promise<SendMetaTxnReturn>;

@@ -1117,3 +739,2 @@ getMetaTxnNonce: (args: GetMetaTxnNonceArgs, headers?: object | undefined) => Promise<GetMetaTxnNonceReturn>;

getChainID: (headers?: object | undefined) => Promise<GetChainIDReturn>;
estimateMetaTxnGasReceipt: (args: EstimateMetaTxnGasReceiptArgs, headers?: object | undefined) => Promise<EstimateMetaTxnGasReceiptReturn>;
tokenFee: (headers?: object | undefined) => Promise<TokenFeeReturn>;

@@ -1123,3 +744,3 @@ getEstimatedTime: (headers?: object | undefined) => Promise<GetEstimatedTimeReturn>;

getMetaTxnNetworkFeeOptions: (args: GetMetaTxnNetworkFeeOptionsArgs, headers?: object | undefined) => Promise<GetMetaTxnNetworkFeeOptionsReturn>;
wyreWalletOrderReserve: (args: WyreWalletOrderReserveArgs, headers?: object | undefined) => Promise<WyreWalletOrderReserveReturn>;
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
ping: (headers?: object | undefined) => Promise<PingReturn>;

@@ -1126,0 +747,0 @@ version: (headers?: object | undefined) => Promise<VersionReturn>;

{
"name": "@0xsequence/api",
"version": "0.15.0",
"version": "0.15.1",
"description": "api sub-package for Sequence",

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

/* eslint-disable */
// arcadeum-api v0.3.0 e031abac112433715e4e4f562967eb545ecc2c23
// arcadeum-api v0.3.0 2b634b92e7e36c914159d8944bbac9521526d4b0
// --

@@ -14,3 +14,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = "e031abac112433715e4e4f562967eb545ecc2c23"
export const WebRPCSchemaHash = "2b634b92e7e36c914159d8944bbac9521526d4b0"

@@ -80,10 +80,2 @@

export enum OrderStatus {
UNKNOWN = 'UNKNOWN',
FAILED = 'FAILED',
PENDING = 'PENDING',
SUCCESS = 'SUCCESS',
FINAL = 'FINAL'
}
export enum SortOrder {

@@ -112,12 +104,2 @@ DESC = 'DESC',

export interface WalletProof {
address: string
message: string
signature: string
}
export interface Authorization {
jwt: string
}
export interface User {

@@ -139,8 +121,2 @@ address: string

export interface Signup {
user: User
code?: string
source?: string
}
export interface WalletBackup {

@@ -164,12 +140,2 @@ accountAddress: string

export interface Bookmark {
id: number
userAddress: string
url: string
name: string
thumbnailURL: string
position: number
createdAt?: string
}
export interface InviteResponse {

@@ -283,30 +249,2 @@ code: string

export interface Order {
orderID?: string
txnHash?: string
txnNonce?: string
metaTxnID?: string
txnStatus: ETHTxnStatus
txnReceipt?: {[key: string]: any}
txnRevertReason: string
accountAddress: string
shopContractAddress: string
assetContractAddress: string
baseContractAddress: string
orderType: OrderType
orderStatus: OrderStatus
tokenIds: Array<string>
amounts: Array<string>
unitPrices: Array<string>
subtotalPrice: string
metatxFee: string
brokerFee: string
totalPrice: string
gasUsed: number
gasFeeWei: string
updatedAt: string
createdAt: string
}
export interface MetaTxLog {

@@ -372,14 +310,2 @@ id: number

export interface MetaTxnEstimationInput {
contract: string
payload: string
numSigners: number
}
export interface MetaTxnEstimationOutput {
payload: string
gasLimit: number
feeAppended: boolean
}
export interface MetaTxn {

@@ -528,21 +454,6 @@ contract: string

export interface ArcadeumAPI {
browserSignIn(args: BrowserSignInArgs, headers?: object): Promise<BrowserSignInReturn>
browserLogout(headers?: object): Promise<BrowserLogoutReturn>
appSignIn(args: AppSignInArgs, headers?: object): Promise<AppSignInReturn>
getAuthToken(args: GetAuthTokenArgs, headers?: object): Promise<GetAuthTokenReturn>
getSession(headers?: object): Promise<GetSessionReturn>
createUser(args: CreateUserArgs, headers?: object): Promise<CreateUserReturn>
createUserWithBackup(args: CreateUserWithBackupArgs, headers?: object): Promise<CreateUserWithBackupReturn>
updateUsernameOrPassword(args: UpdateUsernameOrPasswordArgs, headers?: object): Promise<UpdateUsernameOrPasswordReturn>
updateUserProfile(args: UpdateUserProfileArgs, headers?: object): Promise<UpdateUserProfileReturn>
findUserByUsername(args: FindUserByUsernameArgs, headers?: object): Promise<FindUserByUsernameReturn>
findUserByAddress(args: FindUserByAddressArgs, headers?: object): Promise<FindUserByAddressReturn>
searchUsers(args: SearchUsersArgs, headers?: object): Promise<SearchUsersReturn>
generateSillyName(headers?: object): Promise<GenerateSillyNameReturn>
validateUsername(args: ValidateUsernameArgs, headers?: object): Promise<ValidateUsernameReturn>
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>
walletSaveBackup(args: WalletSaveBackupArgs, headers?: object): Promise<WalletSaveBackupReturn>
walletDeleteBackup(headers?: object): Promise<WalletDeleteBackupReturn>
walletBackupConfirmation(args: WalletBackupConfirmationArgs, headers?: object): Promise<WalletBackupConfirmationReturn>
friendList(args: FriendListArgs, headers?: object): Promise<FriendListReturn>

@@ -554,12 +465,2 @@ getFriendByAddress(args: GetFriendByAddressArgs, headers?: object): Promise<GetFriendByAddressReturn>

removeFriend(args: RemoveFriendArgs, headers?: object): Promise<RemoveFriendReturn>
bookmarkList(args: BookmarkListArgs, headers?: object): Promise<BookmarkListReturn>
addBookmark(args: AddBookmarkArgs, headers?: object): Promise<AddBookmarkReturn>
updateBookmark(args: UpdateBookmarkArgs, headers?: object): Promise<UpdateBookmarkReturn>
removeBookmark(args: RemoveBookmarkArgs, headers?: object): Promise<RemoveBookmarkReturn>
reorderBookmark(args: ReorderBookmarkArgs, headers?: object): Promise<ReorderBookmarkReturn>
fetchThumbnailForURL(args: FetchThumbnailForURLArgs, headers?: object): Promise<FetchThumbnailForURLReturn>
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
createInvite(headers?: object): Promise<CreateInviteReturn>
createInviteAndSend(args: CreateInviteAndSendArgs, headers?: object): Promise<CreateInviteAndSendReturn>
sendInvite(args: SendInviteArgs, headers?: object): Promise<SendInviteReturn>
getContract(args: GetContractArgs, headers?: object): Promise<GetContractReturn>

@@ -569,5 +470,3 @@ getContractByAlias(args: GetContractByAliasArgs, headers?: object): Promise<GetContractByAliasReturn>

getTokenBalances(headers?: object): Promise<GetTokenBalancesReturn>
registerContract(args: RegisterContractArgs, headers?: object): Promise<RegisterContractReturn>
metaTxLogList(args: MetaTxLogListArgs, headers?: object): Promise<MetaTxLogListReturn>
adminMetaTxLogList(args: AdminMetaTxLogListArgs, headers?: object): Promise<AdminMetaTxLogListReturn>
transactionHistory(args: TransactionHistoryArgs, headers?: object): Promise<TransactionHistoryReturn>

@@ -580,11 +479,4 @@ sentTransactions(args: SentTransactionsArgs, headers?: object): Promise<SentTransactionsReturn>

decodeTxnData(args: DecodeTxnDataArgs, headers?: object): Promise<DecodeTxnDataReturn>
internalForceBalanceBootstrap(args: InternalForceBalanceBootstrapArgs, headers?: object): Promise<InternalForceBalanceBootstrapReturn>
placeOrder(args: PlaceOrderArgs, headers?: object): Promise<PlaceOrderReturn>
listOrders(args: ListOrdersArgs, headers?: object): Promise<ListOrdersReturn>
getOrder(args: GetOrderArgs, headers?: object): Promise<GetOrderReturn>
getOrderByMetaTxnID(args: GetOrderByMetaTxnIDArgs, headers?: object): Promise<GetOrderByMetaTxnIDReturn>
getOrderByID(args: GetOrderByIDArgs, headers?: object): Promise<GetOrderByIDReturn>
getNiftyswapTokenSupply(args: GetNiftyswapTokenSupplyArgs, headers?: object): Promise<GetNiftyswapTokenSupplyReturn>
getNiftyswapUnitPrices(args: GetNiftyswapUnitPricesArgs, headers?: object): Promise<GetNiftyswapUnitPricesReturn>
adminOrderLogsList(args: AdminOrderLogsListArgs, headers?: object): Promise<AdminOrderLogsListReturn>
sendMetaTxn(args: SendMetaTxnArgs, headers?: object): Promise<SendMetaTxnReturn>

@@ -595,3 +487,2 @@ getMetaTxnNonce(args: GetMetaTxnNonceArgs, headers?: object): Promise<GetMetaTxnNonceReturn>

getChainID(headers?: object): Promise<GetChainIDReturn>
estimateMetaTxnGasReceipt(args: EstimateMetaTxnGasReceiptArgs, headers?: object): Promise<EstimateMetaTxnGasReceiptReturn>
tokenFee(headers?: object): Promise<TokenFeeReturn>

@@ -601,3 +492,3 @@ getEstimatedTime(headers?: object): Promise<GetEstimatedTimeReturn>

getMetaTxnNetworkFeeOptions(args: GetMetaTxnNetworkFeeOptionsArgs, headers?: object): Promise<GetMetaTxnNetworkFeeOptionsReturn>
wyreWalletOrderReserve(args: WyreWalletOrderReserveArgs, headers?: object): Promise<WyreWalletOrderReserveReturn>
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
ping(headers?: object): Promise<PingReturn>

@@ -608,27 +499,2 @@ version(headers?: object): Promise<VersionReturn>

export interface BrowserSignInArgs {
proof: WalletProof
}
export interface BrowserSignInReturn {
status: boolean
address: string
user?: User
}
export interface BrowserLogoutArgs {
}
export interface BrowserLogoutReturn {
status: boolean
}
export interface AppSignInArgs {
proof: WalletProof
}
export interface AppSignInReturn {
status: boolean
address: string
auth?: Authorization
user?: User
}
export interface GetAuthTokenArgs {

@@ -651,76 +517,2 @@ ewtString: string

}
export interface CreateUserArgs {
user: Signup
}
export interface CreateUserReturn {
status: boolean
user?: User
}
export interface CreateUserWithBackupArgs {
user: Signup
encryptedWallet: string
secretHash: string
}
export interface CreateUserWithBackupReturn {
status: boolean
user?: User
}
export interface UpdateUsernameOrPasswordArgs {
newUsername: string
currentSecretHash?: string
newEncryptedWallet?: string
newSecretHash?: string
}
export interface UpdateUsernameOrPasswordReturn {
status: boolean
user?: User
}
export interface UpdateUserProfileArgs {
user: User
}
export interface UpdateUserProfileReturn {
status: boolean
user?: User
}
export interface FindUserByUsernameArgs {
filterUsername: string
}
export interface FindUserByUsernameReturn {
status: boolean
user?: User
}
export interface FindUserByAddressArgs {
filterAddress: string
}
export interface FindUserByAddressReturn {
status: boolean
user?: User
}
export interface SearchUsersArgs {
filterUsername: string
}
export interface SearchUsersReturn {
status: boolean
users: Array<User>
}
export interface GenerateSillyNameArgs {
}
export interface GenerateSillyNameReturn {
username: string
}
export interface ValidateUsernameArgs {
username: string
}
export interface ValidateUsernameReturn {
status: boolean
}
export interface InternalClaimAccessCodeArgs {

@@ -742,23 +534,2 @@ address: string

}
export interface WalletSaveBackupArgs {
encryptedWallet: string
secretHash: string
}
export interface WalletSaveBackupReturn {
status: boolean
}
export interface WalletDeleteBackupArgs {
}
export interface WalletDeleteBackupReturn {
status: boolean
}
export interface WalletBackupConfirmationArgs {
t: boolean
}
export interface WalletBackupConfirmationReturn {
status: boolean
}
export interface FriendListArgs {

@@ -812,79 +583,2 @@ page?: Page

}
export interface BookmarkListArgs {
page?: Page
}
export interface BookmarkListReturn {
page: Page
bookmarks: Array<Bookmark>
}
export interface AddBookmarkArgs {
bookmark: Bookmark
afterBookmarkID?: number
}
export interface AddBookmarkReturn {
status: boolean
bookmark?: Bookmark
}
export interface UpdateBookmarkArgs {
id: number
bookmark: Bookmark
}
export interface UpdateBookmarkReturn {
status: boolean
bookmark?: Bookmark
}
export interface RemoveBookmarkArgs {
id: number
}
export interface RemoveBookmarkReturn {
status: boolean
}
export interface ReorderBookmarkArgs {
bookmarkID: number
afterID: number
}
export interface ReorderBookmarkReturn {
status: boolean
bookmark?: Bookmark
}
export interface FetchThumbnailForURLArgs {
url: string
}
export interface FetchThumbnailForURLReturn {
status: boolean
thumbnailURL: string
}
export interface GetInviteInfoArgs {
}
export interface GetInviteInfoReturn {
inviteInfo: InviteInfo
}
export interface CreateInviteArgs {
}
export interface CreateInviteReturn {
invite: InviteResponse
}
export interface CreateInviteAndSendArgs {
email: string
}
export interface CreateInviteAndSendReturn {
invite: InviteResponse
}
export interface SendInviteArgs {
email: string
code: string
}
export interface SendInviteReturn {
invite: InviteResponse
}
export interface GetContractArgs {

@@ -916,8 +610,2 @@ contractHandle: string

}
export interface RegisterContractArgs {
req: RegisterContractRequest
}
export interface RegisterContractReturn {
}
export interface MetaTxLogListArgs {

@@ -931,10 +619,2 @@ page?: Page

}
export interface AdminMetaTxLogListArgs {
page?: Page
}
export interface AdminMetaTxLogListReturn {
page: Page
logs: Array<MetaTxLog>
}
export interface TransactionHistoryArgs {

@@ -1000,51 +680,2 @@ filter: TransactionHistoryFilter

}
export interface InternalForceBalanceBootstrapArgs {
contractHandle: string
owners: Array<string>
tokenIDs?: Array<string>
}
export interface InternalForceBalanceBootstrapReturn {
status: boolean
balances: Array<Balance>
}
export interface PlaceOrderArgs {
metatx: MetaTxn
}
export interface PlaceOrderReturn {
status: boolean
metaTxnID: string
order: Order
}
export interface ListOrdersArgs {
shopContractHandle: string
page?: Page
}
export interface ListOrdersReturn {
page: Page
orders: Array<Order>
}
export interface GetOrderArgs {
txnHash: string
}
export interface GetOrderReturn {
order?: Order
}
export interface GetOrderByMetaTxnIDArgs {
metaTxnID: string
}
export interface GetOrderByMetaTxnIDReturn {
order?: Array<Order>
}
export interface GetOrderByIDArgs {
orderID: string
}
export interface GetOrderByIDReturn {
order?: Order
}
export interface GetNiftyswapTokenSupplyArgs {

@@ -1066,10 +697,2 @@ shopContractHandle: string

}
export interface AdminOrderLogsListArgs {
page?: Page
}
export interface AdminOrderLogsListReturn {
page: Page
orders: Array<Order>
}
export interface SendMetaTxnArgs {

@@ -1110,10 +733,2 @@ call: MetaTxn

}
export interface EstimateMetaTxnGasReceiptArgs {
call: MetaTxnEstimationInput
feeToken: string
}
export interface EstimateMetaTxnGasReceiptReturn {
res: MetaTxnEstimationOutput
}
export interface TokenFeeArgs {

@@ -1149,8 +764,7 @@ }

}
export interface WyreWalletOrderReserveArgs {
address: string
export interface GetInviteInfoArgs {
}
export interface WyreWalletOrderReserveReturn {
reservationID: string
export interface GetInviteInfoReturn {
inviteInfo: InviteInfo
}

@@ -1195,44 +809,2 @@ export interface PingArgs {

browserSignIn = (args: BrowserSignInArgs, headers?: object): Promise<BrowserSignInReturn> => {
return this.fetch(
this.url('BrowserSignIn'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
address: <string>(_data.address),
user: <User>(_data.user)
}
})
})
}
browserLogout = (headers?: object): Promise<BrowserLogoutReturn> => {
return this.fetch(
this.url('BrowserLogout'),
createHTTPRequest({}, headers)
).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status)
}
})
})
}
appSignIn = (args: AppSignInArgs, headers?: object): Promise<AppSignInReturn> => {
return this.fetch(
this.url('AppSignIn'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
address: <string>(_data.address),
auth: <Authorization>(_data.auth),
user: <User>(_data.user)
}
})
})
}
getAuthToken = (args: GetAuthTokenArgs, headers?: object): Promise<GetAuthTokenReturn> => {

@@ -1267,118 +839,2 @@ return this.fetch(

createUser = (args: CreateUserArgs, headers?: object): Promise<CreateUserReturn> => {
return this.fetch(
this.url('CreateUser'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
user: <User>(_data.user)
}
})
})
}
createUserWithBackup = (args: CreateUserWithBackupArgs, headers?: object): Promise<CreateUserWithBackupReturn> => {
return this.fetch(
this.url('CreateUserWithBackup'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
user: <User>(_data.user)
}
})
})
}
updateUsernameOrPassword = (args: UpdateUsernameOrPasswordArgs, headers?: object): Promise<UpdateUsernameOrPasswordReturn> => {
return this.fetch(
this.url('UpdateUsernameOrPassword'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
user: <User>(_data.user)
}
})
})
}
updateUserProfile = (args: UpdateUserProfileArgs, headers?: object): Promise<UpdateUserProfileReturn> => {
return this.fetch(
this.url('UpdateUserProfile'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
user: <User>(_data.user)
}
})
})
}
findUserByUsername = (args: FindUserByUsernameArgs, headers?: object): Promise<FindUserByUsernameReturn> => {
return this.fetch(
this.url('FindUserByUsername'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
user: <User>(_data.user)
}
})
})
}
findUserByAddress = (args: FindUserByAddressArgs, headers?: object): Promise<FindUserByAddressReturn> => {
return this.fetch(
this.url('FindUserByAddress'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
user: <User>(_data.user)
}
})
})
}
searchUsers = (args: SearchUsersArgs, headers?: object): Promise<SearchUsersReturn> => {
return this.fetch(
this.url('SearchUsers'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
users: <Array<User>>(_data.users)
}
})
})
}
generateSillyName = (headers?: object): Promise<GenerateSillyNameReturn> => {
return this.fetch(
this.url('GenerateSillyName'),
createHTTPRequest({}, headers)
).then((res) => {
return buildResponse(res).then(_data => {
return {
username: <string>(_data.username)
}
})
})
}
validateUsername = (args: ValidateUsernameArgs, headers?: object): Promise<ValidateUsernameReturn> => {
return this.fetch(
this.url('ValidateUsername'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status)
}
})
})
}
internalClaimAccessCode = (args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn> => {

@@ -1408,39 +864,2 @@ return this.fetch(

walletSaveBackup = (args: WalletSaveBackupArgs, headers?: object): Promise<WalletSaveBackupReturn> => {
return this.fetch(
this.url('WalletSaveBackup'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status)
}
})
})
}
walletDeleteBackup = (headers?: object): Promise<WalletDeleteBackupReturn> => {
return this.fetch(
this.url('WalletDeleteBackup'),
createHTTPRequest({}, headers)
).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status)
}
})
})
}
walletBackupConfirmation = (args: WalletBackupConfirmationArgs, headers?: object): Promise<WalletBackupConfirmationReturn> => {
return this.fetch(
this.url('WalletBackupConfirmation'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status)
}
})
})
}
friendList = (args: FriendListArgs, headers?: object): Promise<FriendListReturn> => {

@@ -1522,129 +941,2 @@ return this.fetch(

bookmarkList = (args: BookmarkListArgs, headers?: object): Promise<BookmarkListReturn> => {
return this.fetch(
this.url('BookmarkList'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
bookmarks: <Array<Bookmark>>(_data.bookmarks)
}
})
})
}
addBookmark = (args: AddBookmarkArgs, headers?: object): Promise<AddBookmarkReturn> => {
return this.fetch(
this.url('AddBookmark'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
bookmark: <Bookmark>(_data.bookmark)
}
})
})
}
updateBookmark = (args: UpdateBookmarkArgs, headers?: object): Promise<UpdateBookmarkReturn> => {
return this.fetch(
this.url('UpdateBookmark'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
bookmark: <Bookmark>(_data.bookmark)
}
})
})
}
removeBookmark = (args: RemoveBookmarkArgs, headers?: object): Promise<RemoveBookmarkReturn> => {
return this.fetch(
this.url('RemoveBookmark'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status)
}
})
})
}
reorderBookmark = (args: ReorderBookmarkArgs, headers?: object): Promise<ReorderBookmarkReturn> => {
return this.fetch(
this.url('ReorderBookmark'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
bookmark: <Bookmark>(_data.bookmark)
}
})
})
}
fetchThumbnailForURL = (args: FetchThumbnailForURLArgs, headers?: object): Promise<FetchThumbnailForURLReturn> => {
return this.fetch(
this.url('FetchThumbnailForURL'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
thumbnailURL: <string>(_data.thumbnailURL)
}
})
})
}
getInviteInfo = (headers?: object): Promise<GetInviteInfoReturn> => {
return this.fetch(
this.url('GetInviteInfo'),
createHTTPRequest({}, headers)
).then((res) => {
return buildResponse(res).then(_data => {
return {
inviteInfo: <InviteInfo>(_data.inviteInfo)
}
})
})
}
createInvite = (headers?: object): Promise<CreateInviteReturn> => {
return this.fetch(
this.url('CreateInvite'),
createHTTPRequest({}, headers)
).then((res) => {
return buildResponse(res).then(_data => {
return {
invite: <InviteResponse>(_data.invite)
}
})
})
}
createInviteAndSend = (args: CreateInviteAndSendArgs, headers?: object): Promise<CreateInviteAndSendReturn> => {
return this.fetch(
this.url('CreateInviteAndSend'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
invite: <InviteResponse>(_data.invite)
}
})
})
}
sendInvite = (args: SendInviteArgs, headers?: object): Promise<SendInviteReturn> => {
return this.fetch(
this.url('SendInvite'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
invite: <InviteResponse>(_data.invite)
}
})
})
}
getContract = (args: GetContractArgs, headers?: object): Promise<GetContractReturn> => {

@@ -1700,13 +992,2 @@ return this.fetch(

registerContract = (args: RegisterContractArgs, headers?: object): Promise<RegisterContractReturn> => {
return this.fetch(
this.url('RegisterContract'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
}
})
})
}
metaTxLogList = (args: MetaTxLogListArgs, headers?: object): Promise<MetaTxLogListReturn> => {

@@ -1725,15 +1006,2 @@ return this.fetch(

adminMetaTxLogList = (args: AdminMetaTxLogListArgs, headers?: object): Promise<AdminMetaTxLogListReturn> => {
return this.fetch(
this.url('AdminMetaTxLogList'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
logs: <Array<MetaTxLog>>(_data.logs)
}
})
})
}
transactionHistory = (args: TransactionHistoryArgs, headers?: object): Promise<TransactionHistoryReturn> => {

@@ -1827,78 +1095,2 @@ return this.fetch(

internalForceBalanceBootstrap = (args: InternalForceBalanceBootstrapArgs, headers?: object): Promise<InternalForceBalanceBootstrapReturn> => {
return this.fetch(
this.url('InternalForceBalanceBootstrap'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
balances: <Array<Balance>>(_data.balances)
}
})
})
}
placeOrder = (args: PlaceOrderArgs, headers?: object): Promise<PlaceOrderReturn> => {
return this.fetch(
this.url('PlaceOrder'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
metaTxnID: <string>(_data.metaTxnID),
order: <Order>(_data.order)
}
})
})
}
listOrders = (args: ListOrdersArgs, headers?: object): Promise<ListOrdersReturn> => {
return this.fetch(
this.url('ListOrders'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
orders: <Array<Order>>(_data.orders)
}
})
})
}
getOrder = (args: GetOrderArgs, headers?: object): Promise<GetOrderReturn> => {
return this.fetch(
this.url('GetOrder'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
order: <Order>(_data.order)
}
})
})
}
getOrderByMetaTxnID = (args: GetOrderByMetaTxnIDArgs, headers?: object): Promise<GetOrderByMetaTxnIDReturn> => {
return this.fetch(
this.url('GetOrderByMetaTxnID'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
order: <Array<Order>>(_data.order)
}
})
})
}
getOrderByID = (args: GetOrderByIDArgs, headers?: object): Promise<GetOrderByIDReturn> => {
return this.fetch(
this.url('GetOrderByID'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
order: <Order>(_data.order)
}
})
})
}
getNiftyswapTokenSupply = (args: GetNiftyswapTokenSupplyArgs, headers?: object): Promise<GetNiftyswapTokenSupplyReturn> => {

@@ -1928,15 +1120,2 @@ return this.fetch(

adminOrderLogsList = (args: AdminOrderLogsListArgs, headers?: object): Promise<AdminOrderLogsListReturn> => {
return this.fetch(
this.url('AdminOrderLogsList'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
orders: <Array<Order>>(_data.orders)
}
})
})
}
sendMetaTxn = (args: SendMetaTxnArgs, headers?: object): Promise<SendMetaTxnReturn> => {

@@ -2005,14 +1184,2 @@ return this.fetch(

estimateMetaTxnGasReceipt = (args: EstimateMetaTxnGasReceiptArgs, headers?: object): Promise<EstimateMetaTxnGasReceiptReturn> => {
return this.fetch(
this.url('EstimateMetaTxnGasReceipt'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
res: <MetaTxnEstimationOutput>(_data.res)
}
})
})
}
tokenFee = (headers?: object): Promise<TokenFeeReturn> => {

@@ -2069,9 +1236,10 @@ return this.fetch(

wyreWalletOrderReserve = (args: WyreWalletOrderReserveArgs, headers?: object): Promise<WyreWalletOrderReserveReturn> => {
getInviteInfo = (headers?: object): Promise<GetInviteInfoReturn> => {
return this.fetch(
this.url('WyreWalletOrderReserve'),
createHTTPRequest(args, headers)).then((res) => {
this.url('GetInviteInfo'),
createHTTPRequest({}, headers)
).then((res) => {
return buildResponse(res).then(_data => {
return {
reservationID: <string>(_data.reservationID)
inviteInfo: <InviteInfo>(_data.inviteInfo)
}

@@ -2078,0 +1246,0 @@ })

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