@0xsequence/api
Advanced tools
Comparing version 2.0.10 to 2.0.11
@@ -21,3 +21,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-api v0.4.0 d3f5f1338693d60d58f87bc408a076218201a097 | ||
// sequence-api v0.4.0 76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da | ||
// -- | ||
@@ -35,3 +35,3 @@ // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT. | ||
// Schema hash generated from your RIDL schema | ||
const WebRPCSchemaHash = 'd3f5f1338693d60d58f87bc408a076218201a097'; | ||
const WebRPCSchemaHash = '76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da'; | ||
@@ -47,2 +47,16 @@ // | ||
}({}); | ||
let SardinePaymentType = /*#__PURE__*/function (SardinePaymentType) { | ||
SardinePaymentType["ach"] = "ach"; | ||
SardinePaymentType["debit"] = "debit"; | ||
SardinePaymentType["credit"] = "credit"; | ||
SardinePaymentType["us_debit"] = "us_debit"; | ||
SardinePaymentType["international_debit"] = "international_debit"; | ||
SardinePaymentType["international_credit"] = "international_credit"; | ||
return SardinePaymentType; | ||
}({}); | ||
let SardineQuoteType = /*#__PURE__*/function (SardineQuoteType) { | ||
SardineQuoteType["buy"] = "buy"; | ||
SardineQuoteType["sell"] = "sell"; | ||
return SardineQuoteType; | ||
}({}); | ||
let TokenType = /*#__PURE__*/function (TokenType) { | ||
@@ -358,6 +372,72 @@ TokenType["ERC20"] = "ERC20"; | ||
}; | ||
this.getSardineClientToken = (headers, signal) => { | ||
return this.fetch(this.url('GetSardineClientToken'), createHTTPRequest({}, headers, signal)).then(res => { | ||
this.resolveENSAddress = (args, headers, signal) => { | ||
return this.fetch(this.url('ResolveENSAddress'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
address: _data.address, | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidMessageSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidMessageSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidTypedDataSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidTypedDataSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidETHAuthProof = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidETHAuthProof'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.sardineGetClientToken = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetClientToken'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
token: _data.token | ||
@@ -372,4 +452,4 @@ }; | ||
}; | ||
this.getSardineNFTCheckoutToken = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetNFTCheckoutToken = (args, headers, signal) => { | ||
return this.fetch(this.url('SardineGetNFTCheckoutToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
@@ -386,4 +466,4 @@ return { | ||
}; | ||
this.getSardineNFTCheckoutOrderStatus = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutOrderStatus'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetNFTCheckoutOrderStatus = (args, headers, signal) => { | ||
return this.fetch(this.url('SardineGetNFTCheckoutOrderStatus'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
@@ -400,8 +480,7 @@ return { | ||
}; | ||
this.resolveENSAddress = (args, headers, signal) => { | ||
return this.fetch(this.url('ResolveENSAddress'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetSupportedRegions = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetSupportedRegions'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
address: _data.address, | ||
ok: _data.ok | ||
regions: _data.regions | ||
}; | ||
@@ -415,7 +494,7 @@ }); | ||
}; | ||
this.isValidSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetSupportedFiatCurrencies = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetSupportedFiatCurrencies'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
tokens: _data.tokens | ||
}; | ||
@@ -429,7 +508,7 @@ }); | ||
}; | ||
this.isValidMessageSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidMessageSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetSupportedTokens = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetSupportedTokens'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
tokens: _data.tokens | ||
}; | ||
@@ -443,7 +522,7 @@ }); | ||
}; | ||
this.isValidTypedDataSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidTypedDataSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetEnabledTokens = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetEnabledTokens'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
tokens: _data.tokens | ||
}; | ||
@@ -457,7 +536,7 @@ }); | ||
}; | ||
this.isValidETHAuthProof = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidETHAuthProof'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetQuote = (args, headers, signal) => { | ||
return this.fetch(this.url('SardineGetQuote'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
quote: _data.quote | ||
}; | ||
@@ -471,2 +550,41 @@ }); | ||
}; | ||
this.getSardineClientToken = (headers, signal) => { | ||
return this.fetch(this.url('GetSardineClientToken'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
token: _data.token | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getSardineNFTCheckoutToken = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
resp: _data.resp | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getSardineNFTCheckoutOrderStatus = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutOrderStatus'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
resp: _data.resp | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getCoinPrices = (args, headers, signal) => { | ||
@@ -619,4 +737,3 @@ return this.fetch(this.url('GetCoinPrices'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return { | ||
status: _data.status, | ||
linkedWalletAddress: _data.linkedWalletAddress | ||
status: _data.status | ||
}; | ||
@@ -683,7 +800,7 @@ }); | ||
}; | ||
this.getSwapQuotes = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSwapQuotes'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.getSwapPrices = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSwapPrices'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
swapQuotes: _data.swapQuotes | ||
swapPrices: _data.swapPrices | ||
}; | ||
@@ -697,2 +814,15 @@ }); | ||
}; | ||
this.getSwapQuote = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSwapQuote'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
swapQuote: _data.swapQuote | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.addCurrencyGroup = (args, headers, signal) => { | ||
@@ -1096,2 +1226,4 @@ return this.fetch(this.url('AddCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => { | ||
exports.QueryFailedError = QueryFailedError; | ||
exports.SardinePaymentType = SardinePaymentType; | ||
exports.SardineQuoteType = SardineQuoteType; | ||
exports.SequenceAPIClient = SequenceAPIClient; | ||
@@ -1098,0 +1230,0 @@ exports.SessionExpiredError = SessionExpiredError; |
@@ -21,3 +21,3 @@ 'use strict'; | ||
/* eslint-disable */ | ||
// sequence-api v0.4.0 d3f5f1338693d60d58f87bc408a076218201a097 | ||
// sequence-api v0.4.0 76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da | ||
// -- | ||
@@ -35,3 +35,3 @@ // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT. | ||
// Schema hash generated from your RIDL schema | ||
const WebRPCSchemaHash = 'd3f5f1338693d60d58f87bc408a076218201a097'; | ||
const WebRPCSchemaHash = '76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da'; | ||
@@ -47,2 +47,16 @@ // | ||
}({}); | ||
let SardinePaymentType = /*#__PURE__*/function (SardinePaymentType) { | ||
SardinePaymentType["ach"] = "ach"; | ||
SardinePaymentType["debit"] = "debit"; | ||
SardinePaymentType["credit"] = "credit"; | ||
SardinePaymentType["us_debit"] = "us_debit"; | ||
SardinePaymentType["international_debit"] = "international_debit"; | ||
SardinePaymentType["international_credit"] = "international_credit"; | ||
return SardinePaymentType; | ||
}({}); | ||
let SardineQuoteType = /*#__PURE__*/function (SardineQuoteType) { | ||
SardineQuoteType["buy"] = "buy"; | ||
SardineQuoteType["sell"] = "sell"; | ||
return SardineQuoteType; | ||
}({}); | ||
let TokenType = /*#__PURE__*/function (TokenType) { | ||
@@ -358,6 +372,72 @@ TokenType["ERC20"] = "ERC20"; | ||
}; | ||
this.getSardineClientToken = (headers, signal) => { | ||
return this.fetch(this.url('GetSardineClientToken'), createHTTPRequest({}, headers, signal)).then(res => { | ||
this.resolveENSAddress = (args, headers, signal) => { | ||
return this.fetch(this.url('ResolveENSAddress'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
address: _data.address, | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidMessageSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidMessageSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidTypedDataSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidTypedDataSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidETHAuthProof = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidETHAuthProof'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.sardineGetClientToken = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetClientToken'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
token: _data.token | ||
@@ -372,4 +452,4 @@ }; | ||
}; | ||
this.getSardineNFTCheckoutToken = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetNFTCheckoutToken = (args, headers, signal) => { | ||
return this.fetch(this.url('SardineGetNFTCheckoutToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
@@ -386,4 +466,4 @@ return { | ||
}; | ||
this.getSardineNFTCheckoutOrderStatus = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutOrderStatus'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetNFTCheckoutOrderStatus = (args, headers, signal) => { | ||
return this.fetch(this.url('SardineGetNFTCheckoutOrderStatus'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
@@ -400,8 +480,7 @@ return { | ||
}; | ||
this.resolveENSAddress = (args, headers, signal) => { | ||
return this.fetch(this.url('ResolveENSAddress'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetSupportedRegions = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetSupportedRegions'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
address: _data.address, | ||
ok: _data.ok | ||
regions: _data.regions | ||
}; | ||
@@ -415,7 +494,7 @@ }); | ||
}; | ||
this.isValidSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetSupportedFiatCurrencies = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetSupportedFiatCurrencies'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
tokens: _data.tokens | ||
}; | ||
@@ -429,7 +508,7 @@ }); | ||
}; | ||
this.isValidMessageSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidMessageSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetSupportedTokens = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetSupportedTokens'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
tokens: _data.tokens | ||
}; | ||
@@ -443,7 +522,7 @@ }); | ||
}; | ||
this.isValidTypedDataSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidTypedDataSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetEnabledTokens = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetEnabledTokens'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
tokens: _data.tokens | ||
}; | ||
@@ -457,7 +536,7 @@ }); | ||
}; | ||
this.isValidETHAuthProof = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidETHAuthProof'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetQuote = (args, headers, signal) => { | ||
return this.fetch(this.url('SardineGetQuote'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
quote: _data.quote | ||
}; | ||
@@ -471,2 +550,41 @@ }); | ||
}; | ||
this.getSardineClientToken = (headers, signal) => { | ||
return this.fetch(this.url('GetSardineClientToken'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
token: _data.token | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getSardineNFTCheckoutToken = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
resp: _data.resp | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getSardineNFTCheckoutOrderStatus = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutOrderStatus'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
resp: _data.resp | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getCoinPrices = (args, headers, signal) => { | ||
@@ -619,4 +737,3 @@ return this.fetch(this.url('GetCoinPrices'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return { | ||
status: _data.status, | ||
linkedWalletAddress: _data.linkedWalletAddress | ||
status: _data.status | ||
}; | ||
@@ -683,7 +800,7 @@ }); | ||
}; | ||
this.getSwapQuotes = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSwapQuotes'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.getSwapPrices = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSwapPrices'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
swapQuotes: _data.swapQuotes | ||
swapPrices: _data.swapPrices | ||
}; | ||
@@ -697,2 +814,15 @@ }); | ||
}; | ||
this.getSwapQuote = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSwapQuote'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
swapQuote: _data.swapQuote | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.addCurrencyGroup = (args, headers, signal) => { | ||
@@ -1096,2 +1226,4 @@ return this.fetch(this.url('AddCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => { | ||
exports.QueryFailedError = QueryFailedError; | ||
exports.SardinePaymentType = SardinePaymentType; | ||
exports.SardineQuoteType = SardineQuoteType; | ||
exports.SequenceAPIClient = SequenceAPIClient; | ||
@@ -1098,0 +1230,0 @@ exports.SessionExpiredError = SessionExpiredError; |
@@ -17,3 +17,3 @@ function _extends() { | ||
/* eslint-disable */ | ||
// sequence-api v0.4.0 d3f5f1338693d60d58f87bc408a076218201a097 | ||
// sequence-api v0.4.0 76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da | ||
// -- | ||
@@ -31,3 +31,3 @@ // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT. | ||
// Schema hash generated from your RIDL schema | ||
const WebRPCSchemaHash = 'd3f5f1338693d60d58f87bc408a076218201a097'; | ||
const WebRPCSchemaHash = '76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da'; | ||
@@ -43,2 +43,16 @@ // | ||
}({}); | ||
let SardinePaymentType = /*#__PURE__*/function (SardinePaymentType) { | ||
SardinePaymentType["ach"] = "ach"; | ||
SardinePaymentType["debit"] = "debit"; | ||
SardinePaymentType["credit"] = "credit"; | ||
SardinePaymentType["us_debit"] = "us_debit"; | ||
SardinePaymentType["international_debit"] = "international_debit"; | ||
SardinePaymentType["international_credit"] = "international_credit"; | ||
return SardinePaymentType; | ||
}({}); | ||
let SardineQuoteType = /*#__PURE__*/function (SardineQuoteType) { | ||
SardineQuoteType["buy"] = "buy"; | ||
SardineQuoteType["sell"] = "sell"; | ||
return SardineQuoteType; | ||
}({}); | ||
let TokenType = /*#__PURE__*/function (TokenType) { | ||
@@ -354,6 +368,72 @@ TokenType["ERC20"] = "ERC20"; | ||
}; | ||
this.getSardineClientToken = (headers, signal) => { | ||
return this.fetch(this.url('GetSardineClientToken'), createHTTPRequest({}, headers, signal)).then(res => { | ||
this.resolveENSAddress = (args, headers, signal) => { | ||
return this.fetch(this.url('ResolveENSAddress'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
address: _data.address, | ||
ok: _data.ok | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidMessageSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidMessageSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidTypedDataSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidTypedDataSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.isValidETHAuthProof = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidETHAuthProof'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.sardineGetClientToken = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetClientToken'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
token: _data.token | ||
@@ -368,4 +448,4 @@ }; | ||
}; | ||
this.getSardineNFTCheckoutToken = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetNFTCheckoutToken = (args, headers, signal) => { | ||
return this.fetch(this.url('SardineGetNFTCheckoutToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
@@ -382,4 +462,4 @@ return { | ||
}; | ||
this.getSardineNFTCheckoutOrderStatus = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutOrderStatus'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetNFTCheckoutOrderStatus = (args, headers, signal) => { | ||
return this.fetch(this.url('SardineGetNFTCheckoutOrderStatus'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
@@ -396,8 +476,7 @@ return { | ||
}; | ||
this.resolveENSAddress = (args, headers, signal) => { | ||
return this.fetch(this.url('ResolveENSAddress'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetSupportedRegions = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetSupportedRegions'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
address: _data.address, | ||
ok: _data.ok | ||
regions: _data.regions | ||
}; | ||
@@ -411,7 +490,7 @@ }); | ||
}; | ||
this.isValidSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetSupportedFiatCurrencies = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetSupportedFiatCurrencies'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
tokens: _data.tokens | ||
}; | ||
@@ -425,7 +504,7 @@ }); | ||
}; | ||
this.isValidMessageSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidMessageSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetSupportedTokens = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetSupportedTokens'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
tokens: _data.tokens | ||
}; | ||
@@ -439,7 +518,7 @@ }); | ||
}; | ||
this.isValidTypedDataSignature = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidTypedDataSignature'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetEnabledTokens = (headers, signal) => { | ||
return this.fetch(this.url('SardineGetEnabledTokens'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
tokens: _data.tokens | ||
}; | ||
@@ -453,7 +532,7 @@ }); | ||
}; | ||
this.isValidETHAuthProof = (args, headers, signal) => { | ||
return this.fetch(this.url('IsValidETHAuthProof'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.sardineGetQuote = (args, headers, signal) => { | ||
return this.fetch(this.url('SardineGetQuote'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
isValid: _data.isValid | ||
quote: _data.quote | ||
}; | ||
@@ -467,2 +546,41 @@ }); | ||
}; | ||
this.getSardineClientToken = (headers, signal) => { | ||
return this.fetch(this.url('GetSardineClientToken'), createHTTPRequest({}, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
token: _data.token | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getSardineNFTCheckoutToken = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutToken'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
resp: _data.resp | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getSardineNFTCheckoutOrderStatus = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSardineNFTCheckoutOrderStatus'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
resp: _data.resp | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.getCoinPrices = (args, headers, signal) => { | ||
@@ -615,4 +733,3 @@ return this.fetch(this.url('GetCoinPrices'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return { | ||
status: _data.status, | ||
linkedWalletAddress: _data.linkedWalletAddress | ||
status: _data.status | ||
}; | ||
@@ -679,7 +796,7 @@ }); | ||
}; | ||
this.getSwapQuotes = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSwapQuotes'), createHTTPRequest(args, headers, signal)).then(res => { | ||
this.getSwapPrices = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSwapPrices'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
swapQuotes: _data.swapQuotes | ||
swapPrices: _data.swapPrices | ||
}; | ||
@@ -693,2 +810,15 @@ }); | ||
}; | ||
this.getSwapQuote = (args, headers, signal) => { | ||
return this.fetch(this.url('GetSwapQuote'), createHTTPRequest(args, headers, signal)).then(res => { | ||
return buildResponse(res).then(_data => { | ||
return { | ||
swapQuote: _data.swapQuote | ||
}; | ||
}); | ||
}, error => { | ||
throw WebrpcRequestFailedError.new({ | ||
cause: `fetch(): ${error.message || ''}` | ||
}); | ||
}); | ||
}; | ||
this.addCurrencyGroup = (args, headers, signal) => { | ||
@@ -1085,2 +1215,2 @@ return this.fetch(this.url('AddCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => { | ||
export { API, AbortedError, GeoblockedError, InvalidArgumentError, NotFoundError, PermissionDeniedError, QueryFailedError, SequenceAPIClient, SessionExpiredError, SortOrder, TokenType, UnauthorizedError, UnavailableError, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion, WebrpcBadMethodError, WebrpcBadRequestError, WebrpcBadResponseError, WebrpcBadRouteError, WebrpcClientDisconnectedError, WebrpcEndpointError, WebrpcError, WebrpcInternalErrorError, WebrpcRequestFailedError, WebrpcServerPanicError, WebrpcStreamFinishedError, WebrpcStreamLostError, errors }; | ||
export { API, AbortedError, GeoblockedError, InvalidArgumentError, NotFoundError, PermissionDeniedError, QueryFailedError, SardinePaymentType, SardineQuoteType, SequenceAPIClient, SessionExpiredError, SortOrder, TokenType, UnauthorizedError, UnavailableError, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion, WebrpcBadMethodError, WebrpcBadRequestError, WebrpcBadResponseError, WebrpcBadRouteError, WebrpcClientDisconnectedError, WebrpcEndpointError, WebrpcError, WebrpcInternalErrorError, WebrpcRequestFailedError, WebrpcServerPanicError, WebrpcStreamFinishedError, WebrpcStreamLostError, errors }; |
export declare const WebRPCVersion = "v1"; | ||
export declare const WebRPCSchemaVersion = "v0.4.0"; | ||
export declare const WebRPCSchemaHash = "d3f5f1338693d60d58f87bc408a076218201a097"; | ||
export declare const WebRPCSchemaHash = "76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da"; | ||
export declare enum SortOrder { | ||
@@ -8,2 +8,14 @@ DESC = "DESC", | ||
} | ||
export declare enum SardinePaymentType { | ||
ach = "ach", | ||
debit = "debit", | ||
credit = "credit", | ||
us_debit = "us_debit", | ||
international_debit = "international_debit", | ||
international_credit = "international_credit" | ||
} | ||
export declare enum SardineQuoteType { | ||
buy = "buy", | ||
sell = "sell" | ||
} | ||
export declare enum TokenType { | ||
@@ -144,2 +156,3 @@ ERC20 = "ERC20", | ||
id: number; | ||
walletType?: string; | ||
walletAddress: string; | ||
@@ -163,3 +176,3 @@ linkedWalletAddress: string; | ||
} | ||
export interface NftCheckoutParams { | ||
export interface SardineNFTCheckoutParams { | ||
name: string; | ||
@@ -181,3 +194,3 @@ imageUrl: string; | ||
} | ||
export interface NftCheckout { | ||
export interface SardineNFTCheckout { | ||
token: string; | ||
@@ -210,2 +223,99 @@ expiresAt: string; | ||
} | ||
export interface SardineRegion { | ||
countryCode: string; | ||
isAllowedOnRamp: boolean; | ||
isAllowedOnNFT: boolean; | ||
isBasicKycRequired: Array<string>; | ||
isSsnRequired: Array<string>; | ||
name: string; | ||
currencyCode: string; | ||
isPayrollSupported: boolean; | ||
supportedDocuments: Array<string>; | ||
paymentMethods: Array<SardineRegionPaymentMethod>; | ||
states: Array<SardineRegionState>; | ||
} | ||
export interface SardineRegionPaymentMethod { | ||
name: string; | ||
isAllowedOnRamp: boolean; | ||
isAllowedOnNFT: boolean; | ||
subTypes: Array<string>; | ||
type: string; | ||
subType: string; | ||
} | ||
export interface SardineRegionState { | ||
code: string; | ||
name: string; | ||
isAllowedOnRamp: boolean; | ||
isAllowedOnNFT: boolean; | ||
} | ||
export interface SardineSupportedToken { | ||
network: string; | ||
assetSymbol: string; | ||
assetName: string; | ||
chainId: string; | ||
tokenName: string; | ||
token: string; | ||
tokenAddress: string; | ||
} | ||
export interface SardineEnabledToken { | ||
network: string; | ||
assetSymbol: string; | ||
assetName: string; | ||
chainId: string; | ||
tokenName: string; | ||
token: string; | ||
tokenAddress: string; | ||
} | ||
export interface SardineGetQuoteParams { | ||
assetType: string; | ||
network: string; | ||
total: number; | ||
currency?: string; | ||
paymentType?: SardinePaymentType; | ||
quoteType?: SardineQuoteType; | ||
walletAddress?: string; | ||
} | ||
export interface SardineQuote { | ||
quantity: number; | ||
network: string; | ||
assetType: string; | ||
total: number; | ||
currency: string; | ||
expiresAt: string; | ||
paymentType: string; | ||
price: number; | ||
subtotal: number; | ||
transactionFee: number; | ||
networkFee: number; | ||
highNetworkFee: boolean; | ||
minTransactionValue: number; | ||
maxTransactionValue: number; | ||
liquidityProvider: string; | ||
} | ||
export interface SardineFiatCurrency { | ||
currencyCode: string; | ||
name: string; | ||
currencySymbol: string; | ||
paymentOptions: Array<SardinePaymentOption>; | ||
supportingCountries: Array<string>; | ||
} | ||
export interface SardinePaymentOption { | ||
name: string; | ||
dailyLimit: number; | ||
weeklyLimit: number; | ||
monthlyLimit: number; | ||
maxAmount: number; | ||
minAmount: number; | ||
subTypes: Array<string>; | ||
type: string; | ||
subType: string; | ||
processingTime: string; | ||
} | ||
export interface SwapPrice { | ||
currencyAddress: string; | ||
currencyBalance: string; | ||
price: string; | ||
to: string; | ||
transactionValue: string; | ||
} | ||
export interface SwapQuote { | ||
@@ -218,2 +328,3 @@ currencyAddress: string; | ||
transactionData: string; | ||
transactionValue: string; | ||
approveData: string; | ||
@@ -297,5 +408,2 @@ } | ||
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object, signal?: AbortSignal): Promise<GetMoonpayLinkReturn>; | ||
getSardineClientToken(headers?: object, signal?: AbortSignal): Promise<GetSardineClientTokenReturn>; | ||
getSardineNFTCheckoutToken(args: GetSardineNFTCheckoutTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetSardineNFTCheckoutTokenReturn>; | ||
getSardineNFTCheckoutOrderStatus(args: GetSardineNFTCheckoutOrderStatusArgs, headers?: object, signal?: AbortSignal): Promise<GetSardineNFTCheckoutOrderStatusReturn>; | ||
resolveENSAddress(args: ResolveENSAddressArgs, headers?: object, signal?: AbortSignal): Promise<ResolveENSAddressReturn>; | ||
@@ -306,2 +414,13 @@ isValidSignature(args: IsValidSignatureArgs, headers?: object, signal?: AbortSignal): Promise<IsValidSignatureReturn>; | ||
isValidETHAuthProof(args: IsValidETHAuthProofArgs, headers?: object, signal?: AbortSignal): Promise<IsValidETHAuthProofReturn>; | ||
sardineGetClientToken(headers?: object, signal?: AbortSignal): Promise<SardineGetClientTokenReturn>; | ||
sardineGetNFTCheckoutToken(args: SardineGetNFTCheckoutTokenArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetNFTCheckoutTokenReturn>; | ||
sardineGetNFTCheckoutOrderStatus(args: SardineGetNFTCheckoutOrderStatusArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetNFTCheckoutOrderStatusReturn>; | ||
sardineGetSupportedRegions(headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedRegionsReturn>; | ||
sardineGetSupportedFiatCurrencies(headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedFiatCurrenciesReturn>; | ||
sardineGetSupportedTokens(headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedTokensReturn>; | ||
sardineGetEnabledTokens(headers?: object, signal?: AbortSignal): Promise<SardineGetEnabledTokensReturn>; | ||
sardineGetQuote(args: SardineGetQuoteArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetQuoteReturn>; | ||
getSardineClientToken(headers?: object, signal?: AbortSignal): Promise<GetSardineClientTokenReturn>; | ||
getSardineNFTCheckoutToken(args: GetSardineNFTCheckoutTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetSardineNFTCheckoutTokenReturn>; | ||
getSardineNFTCheckoutOrderStatus(args: GetSardineNFTCheckoutOrderStatusArgs, headers?: object, signal?: AbortSignal): Promise<GetSardineNFTCheckoutOrderStatusReturn>; | ||
getCoinPrices(args: GetCoinPricesArgs, headers?: object, signal?: AbortSignal): Promise<GetCoinPricesReturn>; | ||
@@ -323,3 +442,4 @@ getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectiblePricesReturn>; | ||
validateWaaSVerificationNonce(args: ValidateWaaSVerificationNonceArgs, headers?: object, signal?: AbortSignal): Promise<ValidateWaaSVerificationNonceReturn>; | ||
getSwapQuotes(args: GetSwapQuotesArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapQuotesReturn>; | ||
getSwapPrices(args: GetSwapPricesArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapPricesReturn>; | ||
getSwapQuote(args: GetSwapQuoteArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapQuoteReturn>; | ||
addCurrencyGroup(args: AddCurrencyGroupArgs, headers?: object, signal?: AbortSignal): Promise<AddCurrencyGroupReturn>; | ||
@@ -488,19 +608,2 @@ updateCurrencyGroup(args: UpdateCurrencyGroupArgs, headers?: object, signal?: AbortSignal): Promise<UpdateCurrencyGroupReturn>; | ||
} | ||
export interface GetSardineClientTokenArgs { | ||
} | ||
export interface GetSardineClientTokenReturn { | ||
token: string; | ||
} | ||
export interface GetSardineNFTCheckoutTokenArgs { | ||
params: NftCheckoutParams; | ||
} | ||
export interface GetSardineNFTCheckoutTokenReturn { | ||
resp: NftCheckout; | ||
} | ||
export interface GetSardineNFTCheckoutOrderStatusArgs { | ||
orderId: string; | ||
} | ||
export interface GetSardineNFTCheckoutOrderStatusReturn { | ||
resp: SardineOrder; | ||
} | ||
export interface ResolveENSAddressArgs { | ||
@@ -548,2 +651,62 @@ ens: string; | ||
} | ||
export interface SardineGetClientTokenArgs { | ||
} | ||
export interface SardineGetClientTokenReturn { | ||
token: string; | ||
} | ||
export interface SardineGetNFTCheckoutTokenArgs { | ||
params: SardineNFTCheckoutParams; | ||
} | ||
export interface SardineGetNFTCheckoutTokenReturn { | ||
resp: SardineNFTCheckout; | ||
} | ||
export interface SardineGetNFTCheckoutOrderStatusArgs { | ||
orderId: string; | ||
} | ||
export interface SardineGetNFTCheckoutOrderStatusReturn { | ||
resp: SardineOrder; | ||
} | ||
export interface SardineGetSupportedRegionsArgs { | ||
} | ||
export interface SardineGetSupportedRegionsReturn { | ||
regions: Array<SardineRegion>; | ||
} | ||
export interface SardineGetSupportedFiatCurrenciesArgs { | ||
} | ||
export interface SardineGetSupportedFiatCurrenciesReturn { | ||
tokens: Array<SardineFiatCurrency>; | ||
} | ||
export interface SardineGetSupportedTokensArgs { | ||
} | ||
export interface SardineGetSupportedTokensReturn { | ||
tokens: Array<SardineSupportedToken>; | ||
} | ||
export interface SardineGetEnabledTokensArgs { | ||
} | ||
export interface SardineGetEnabledTokensReturn { | ||
tokens: Array<SardineEnabledToken>; | ||
} | ||
export interface SardineGetQuoteArgs { | ||
params: SardineGetQuoteParams; | ||
} | ||
export interface SardineGetQuoteReturn { | ||
quote: SardineQuote; | ||
} | ||
export interface GetSardineClientTokenArgs { | ||
} | ||
export interface GetSardineClientTokenReturn { | ||
token: string; | ||
} | ||
export interface GetSardineNFTCheckoutTokenArgs { | ||
params: SardineNFTCheckoutParams; | ||
} | ||
export interface GetSardineNFTCheckoutTokenReturn { | ||
resp: SardineNFTCheckout; | ||
} | ||
export interface GetSardineNFTCheckoutOrderStatusArgs { | ||
orderId: string; | ||
} | ||
export interface GetSardineNFTCheckoutOrderStatusReturn { | ||
resp: SardineOrder; | ||
} | ||
export interface GetCoinPricesArgs { | ||
@@ -624,24 +787,31 @@ tokens: Array<Token>; | ||
export interface LinkWalletArgs { | ||
chainId: string; | ||
walletAddress: string; | ||
ethAuthProofString: string; | ||
parentWalletAddress: string; | ||
parentWalletMessage: string; | ||
parentWalletSignature: string; | ||
linkedWalletAddress: string; | ||
linkedWalletMessage: string; | ||
linkedWalletSignature: string; | ||
signatureChainId: string; | ||
linkedWalletType?: string; | ||
} | ||
export interface LinkWalletReturn { | ||
status: boolean; | ||
linkedWalletAddress: string; | ||
} | ||
export interface GetLinkedWalletsArgs { | ||
walletAddress: string; | ||
parentWalletAddress: string; | ||
parentWalletMessage: string; | ||
parentWalletSignature: string; | ||
signatureChainId: string; | ||
} | ||
export interface GetLinkedWalletsReturn { | ||
linkedWallets: Array<string>; | ||
linkedWallets: Array<LinkedWallet>; | ||
} | ||
export interface RemoveLinkedWalletArgs { | ||
chainId: string; | ||
walletAddress: string; | ||
ethAuthProofString: string; | ||
parentWalletAddress: string; | ||
parentWalletMessage: string; | ||
parentWalletSignature: string; | ||
linkedWalletAddress: string; | ||
linkedWalletMessage: string; | ||
linkedWalletSignature: string; | ||
signatureChainId: string; | ||
} | ||
@@ -667,11 +837,21 @@ export interface RemoveLinkedWalletReturn { | ||
} | ||
export interface GetSwapQuotesArgs { | ||
export interface GetSwapPricesArgs { | ||
userAddress: string; | ||
currencyAddress: string; | ||
currencyAmount: string; | ||
buyCurrencyAddress: string; | ||
buyAmount: string; | ||
chainId: number; | ||
} | ||
export interface GetSwapPricesReturn { | ||
swapPrices: Array<SwapPrice>; | ||
} | ||
export interface GetSwapQuoteArgs { | ||
userAddress: string; | ||
buyCurrencyAddress: string; | ||
sellCurrencyAddress: string; | ||
buyAmount: string; | ||
chainId: number; | ||
includeApprove: boolean; | ||
} | ||
export interface GetSwapQuotesReturn { | ||
swapQuotes: Array<SwapQuote>; | ||
export interface GetSwapQuoteReturn { | ||
swapQuote: SwapQuote; | ||
} | ||
@@ -766,5 +946,2 @@ export interface AddCurrencyGroupArgs { | ||
getMoonpayLink: (args: GetMoonpayLinkArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetMoonpayLinkReturn>; | ||
getSardineClientToken: (headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSardineClientTokenReturn>; | ||
getSardineNFTCheckoutToken: (args: GetSardineNFTCheckoutTokenArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSardineNFTCheckoutTokenReturn>; | ||
getSardineNFTCheckoutOrderStatus: (args: GetSardineNFTCheckoutOrderStatusArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSardineNFTCheckoutOrderStatusReturn>; | ||
resolveENSAddress: (args: ResolveENSAddressArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ResolveENSAddressReturn>; | ||
@@ -775,2 +952,13 @@ isValidSignature: (args: IsValidSignatureArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<IsValidSignatureReturn>; | ||
isValidETHAuthProof: (args: IsValidETHAuthProofArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<IsValidETHAuthProofReturn>; | ||
sardineGetClientToken: (headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SardineGetClientTokenReturn>; | ||
sardineGetNFTCheckoutToken: (args: SardineGetNFTCheckoutTokenArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SardineGetNFTCheckoutTokenReturn>; | ||
sardineGetNFTCheckoutOrderStatus: (args: SardineGetNFTCheckoutOrderStatusArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SardineGetNFTCheckoutOrderStatusReturn>; | ||
sardineGetSupportedRegions: (headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SardineGetSupportedRegionsReturn>; | ||
sardineGetSupportedFiatCurrencies: (headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SardineGetSupportedFiatCurrenciesReturn>; | ||
sardineGetSupportedTokens: (headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SardineGetSupportedTokensReturn>; | ||
sardineGetEnabledTokens: (headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SardineGetEnabledTokensReturn>; | ||
sardineGetQuote: (args: SardineGetQuoteArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SardineGetQuoteReturn>; | ||
getSardineClientToken: (headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSardineClientTokenReturn>; | ||
getSardineNFTCheckoutToken: (args: GetSardineNFTCheckoutTokenArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSardineNFTCheckoutTokenReturn>; | ||
getSardineNFTCheckoutOrderStatus: (args: GetSardineNFTCheckoutOrderStatusArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSardineNFTCheckoutOrderStatusReturn>; | ||
getCoinPrices: (args: GetCoinPricesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetCoinPricesReturn>; | ||
@@ -792,3 +980,4 @@ getCollectiblePrices: (args: GetCollectiblePricesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetCollectiblePricesReturn>; | ||
validateWaaSVerificationNonce: (args: ValidateWaaSVerificationNonceArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ValidateWaaSVerificationNonceReturn>; | ||
getSwapQuotes: (args: GetSwapQuotesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSwapQuotesReturn>; | ||
getSwapPrices: (args: GetSwapPricesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSwapPricesReturn>; | ||
getSwapQuote: (args: GetSwapQuoteArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSwapQuoteReturn>; | ||
addCurrencyGroup: (args: AddCurrencyGroupArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddCurrencyGroupReturn>; | ||
@@ -795,0 +984,0 @@ updateCurrencyGroup: (args: UpdateCurrencyGroupArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UpdateCurrencyGroupReturn>; |
{ | ||
"name": "@0xsequence/api", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
258111
7113