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

@0xsequence/api

Package Overview
Dependencies
Maintainers
0
Versions
515
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 2.2.4 to 2.2.5

61

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

@@ -16,5 +16,5 @@ 'use strict';

/* eslint-disable */
// sequence-api v0.4.0 470a0f88ea399c2a57ff8c22da54358c033ed5f0
// sequence-api v0.4.0 24814ebb88457c0545aa80e8388cb0f08ec59bec
// --
// Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT.
// Code generated by webrpc-gen@v0.20.3 with typescript generator. DO NOT EDIT.
//

@@ -30,3 +30,3 @@ // webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts

// Schema hash generated from your RIDL schema
const WebRPCSchemaHash = '470a0f88ea399c2a57ff8c22da54358c033ed5f0';
const WebRPCSchemaHash = '24814ebb88457c0545aa80e8388cb0f08ec59bec';

@@ -180,2 +180,28 @@ //

};
this.registerPublicKey = (args, headers, signal) => {
return this.fetch(this.url('RegisterPublicKey'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.getPublicKey = (args, headers, signal) => {
return this.fetch(this.url('GetPublicKey'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
publicKey: _data.publicKey
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.friendList = (args, headers, signal) => {

@@ -785,2 +811,29 @@ return this.fetch(this.url('FriendList'), createHTTPRequest(args, headers, signal)).then(res => {

};
this.listAdoptedWallets = (args, headers, signal) => {
return this.fetch(this.url('ListAdoptedWallets'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
wallets: _data.wallets
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.getSwapPrice = (args, headers, signal) => {
return this.fetch(this.url('GetSwapPrice'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
swapPrice: _data.swapPrice
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.getSwapPrices = (args, headers, signal) => {

@@ -915,3 +968,3 @@ return this.fetch(this.url('GetSwapPrices'), createHTTPRequest(args, headers, signal)).then(res => {

};
this.hostname = hostname;
this.hostname = hostname.replace(/\/*$/, '');
this.fetch = (input, init) => fetch(input, init);

@@ -918,0 +971,0 @@ }

@@ -16,5 +16,5 @@ 'use strict';

/* eslint-disable */
// sequence-api v0.4.0 470a0f88ea399c2a57ff8c22da54358c033ed5f0
// sequence-api v0.4.0 24814ebb88457c0545aa80e8388cb0f08ec59bec
// --
// Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT.
// Code generated by webrpc-gen@v0.20.3 with typescript generator. DO NOT EDIT.
//

@@ -30,3 +30,3 @@ // webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts

// Schema hash generated from your RIDL schema
const WebRPCSchemaHash = '470a0f88ea399c2a57ff8c22da54358c033ed5f0';
const WebRPCSchemaHash = '24814ebb88457c0545aa80e8388cb0f08ec59bec';

@@ -180,2 +180,28 @@ //

};
this.registerPublicKey = (args, headers, signal) => {
return this.fetch(this.url('RegisterPublicKey'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.getPublicKey = (args, headers, signal) => {
return this.fetch(this.url('GetPublicKey'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
publicKey: _data.publicKey
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.friendList = (args, headers, signal) => {

@@ -785,2 +811,29 @@ return this.fetch(this.url('FriendList'), createHTTPRequest(args, headers, signal)).then(res => {

};
this.listAdoptedWallets = (args, headers, signal) => {
return this.fetch(this.url('ListAdoptedWallets'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
wallets: _data.wallets
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.getSwapPrice = (args, headers, signal) => {
return this.fetch(this.url('GetSwapPrice'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
swapPrice: _data.swapPrice
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.getSwapPrices = (args, headers, signal) => {

@@ -915,3 +968,3 @@ return this.fetch(this.url('GetSwapPrices'), createHTTPRequest(args, headers, signal)).then(res => {

};
this.hostname = hostname;
this.hostname = hostname.replace(/\/*$/, '');
this.fetch = (input, init) => fetch(input, init);

@@ -918,0 +971,0 @@ }

@@ -12,5 +12,5 @@ function _extends() {

/* eslint-disable */
// sequence-api v0.4.0 470a0f88ea399c2a57ff8c22da54358c033ed5f0
// sequence-api v0.4.0 24814ebb88457c0545aa80e8388cb0f08ec59bec
// --
// Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT.
// Code generated by webrpc-gen@v0.20.3 with typescript generator. DO NOT EDIT.
//

@@ -26,3 +26,3 @@ // webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts

// Schema hash generated from your RIDL schema
const WebRPCSchemaHash = '470a0f88ea399c2a57ff8c22da54358c033ed5f0';
const WebRPCSchemaHash = '24814ebb88457c0545aa80e8388cb0f08ec59bec';

@@ -176,2 +176,28 @@ //

};
this.registerPublicKey = (args, headers, signal) => {
return this.fetch(this.url('RegisterPublicKey'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.getPublicKey = (args, headers, signal) => {
return this.fetch(this.url('GetPublicKey'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
publicKey: _data.publicKey
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.friendList = (args, headers, signal) => {

@@ -781,2 +807,29 @@ return this.fetch(this.url('FriendList'), createHTTPRequest(args, headers, signal)).then(res => {

};
this.listAdoptedWallets = (args, headers, signal) => {
return this.fetch(this.url('ListAdoptedWallets'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
page: _data.page,
wallets: _data.wallets
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.getSwapPrice = (args, headers, signal) => {
return this.fetch(this.url('GetSwapPrice'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
swapPrice: _data.swapPrice
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.getSwapPrices = (args, headers, signal) => {

@@ -911,3 +964,3 @@ return this.fetch(this.url('GetSwapPrices'), createHTTPRequest(args, headers, signal)).then(res => {

};
this.hostname = hostname;
this.hostname = hostname.replace(/\/*$/, '');
this.fetch = (input, init) => fetch(input, init);

@@ -914,0 +967,0 @@ }

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

@@ -58,2 +58,7 @@ DESC = "DESC",

}
export interface PublicKey {
id: string;
x: string;
y: string;
}
export interface User {

@@ -314,3 +319,3 @@ address: string;

price: string;
to: string;
maxPrice: string;
transactionValue: string;

@@ -378,2 +383,5 @@ }

}
export interface AdoptedChildWallet {
address: string;
}
export interface API {

@@ -388,2 +396,4 @@ ping(headers?: object, signal?: AbortSignal): Promise<PingReturn>;

sendPasswordlessLink(args: SendPasswordlessLinkArgs, headers?: object, signal?: AbortSignal): Promise<SendPasswordlessLinkReturn>;
registerPublicKey(args: RegisterPublicKeyArgs, headers?: object, signal?: AbortSignal): Promise<RegisterPublicKeyReturn>;
getPublicKey(args: GetPublicKeyArgs, headers?: object, signal?: AbortSignal): Promise<GetPublicKeyReturn>;
friendList(args: FriendListArgs, headers?: object, signal?: AbortSignal): Promise<FriendListReturn>;

@@ -435,2 +445,4 @@ getFriendByAddress(args: GetFriendByAddressArgs, headers?: object, signal?: AbortSignal): Promise<GetFriendByAddressReturn>;

validateWaaSVerificationNonce(args: ValidateWaaSVerificationNonceArgs, headers?: object, signal?: AbortSignal): Promise<ValidateWaaSVerificationNonceReturn>;
listAdoptedWallets(args: ListAdoptedWalletsArgs, headers?: object, signal?: AbortSignal): Promise<ListAdoptedWalletsReturn>;
getSwapPrice(args: GetSwapPriceArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapPriceReturn>;
getSwapPrices(args: GetSwapPricesArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapPricesReturn>;

@@ -500,2 +512,14 @@ getSwapQuote(args: GetSwapQuoteArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapQuoteReturn>;

}
export interface RegisterPublicKeyArgs {
publicKey: PublicKey;
}
export interface RegisterPublicKeyReturn {
status: boolean;
}
export interface GetPublicKeyArgs {
id: string;
}
export interface GetPublicKeyReturn {
publicKey: PublicKey;
}
export interface FriendListArgs {

@@ -803,4 +827,2 @@ nickname?: string;

linkedWalletAddress: string;
linkedWalletMessage: string;
linkedWalletSignature: string;
signatureChainId: string;

@@ -827,2 +849,19 @@ }

}
export interface ListAdoptedWalletsArgs {
page?: Page;
}
export interface ListAdoptedWalletsReturn {
page: Page;
wallets: Array<AdoptedChildWallet>;
}
export interface GetSwapPriceArgs {
buyCurrencyAddress: string;
sellCurrencyAddress: string;
buyAmount: string;
chainId: number;
slippagePercentage?: number;
}
export interface GetSwapPriceReturn {
swapPrice: SwapPrice;
}
export interface GetSwapPricesArgs {

@@ -833,2 +872,3 @@ userAddress: string;

chainId: number;
slippagePercentage?: number;
}

@@ -845,2 +885,3 @@ export interface GetSwapPricesReturn {

includeApprove: boolean;
slippagePercentage?: number;
}

@@ -915,2 +956,4 @@ export interface GetSwapQuoteReturn {

sendPasswordlessLink: (args: SendPasswordlessLinkArgs, headers?: object, signal?: AbortSignal) => Promise<SendPasswordlessLinkReturn>;
registerPublicKey: (args: RegisterPublicKeyArgs, headers?: object, signal?: AbortSignal) => Promise<RegisterPublicKeyReturn>;
getPublicKey: (args: GetPublicKeyArgs, headers?: object, signal?: AbortSignal) => Promise<GetPublicKeyReturn>;
friendList: (args: FriendListArgs, headers?: object, signal?: AbortSignal) => Promise<FriendListReturn>;

@@ -962,2 +1005,4 @@ getFriendByAddress: (args: GetFriendByAddressArgs, headers?: object, signal?: AbortSignal) => Promise<GetFriendByAddressReturn>;

validateWaaSVerificationNonce: (args: ValidateWaaSVerificationNonceArgs, headers?: object, signal?: AbortSignal) => Promise<ValidateWaaSVerificationNonceReturn>;
listAdoptedWallets: (args: ListAdoptedWalletsArgs, headers?: object, signal?: AbortSignal) => Promise<ListAdoptedWalletsReturn>;
getSwapPrice: (args: GetSwapPriceArgs, headers?: object, signal?: AbortSignal) => Promise<GetSwapPriceReturn>;
getSwapPrices: (args: GetSwapPricesArgs, headers?: object, signal?: AbortSignal) => Promise<GetSwapPricesReturn>;

@@ -964,0 +1009,0 @@ getSwapQuote: (args: GetSwapQuoteArgs, headers?: object, signal?: AbortSignal) => Promise<GetSwapQuoteReturn>;

2

package.json
{
"name": "@0xsequence/api",
"version": "2.2.4",
"version": "2.2.5",
"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