@unspent/psi
Advanced tools
Comparing version 0.1.3 to 0.2.0
@@ -29,2 +29,5 @@ import axios from 'axios'; | ||
delete param.version; | ||
//@ts-ignore | ||
if ("after" in param) | ||
delete param.after; | ||
const response = await axios({ | ||
@@ -40,3 +43,2 @@ url: host, | ||
$offset: Int | ||
$after: bigint | ||
) { | ||
@@ -51,8 +53,4 @@ search_output_prefix( | ||
{ locking_bytecode_pattern: { _nlike: $exclude_pattern } } | ||
{ | ||
transaction: { | ||
block_inclusions: { block: { height: { _gt: $after } } } | ||
} | ||
} | ||
{ | ||
_or: [ | ||
@@ -306,10 +304,9 @@ { | ||
$node: String! | ||
$lockingBytecode: _text! | ||
$lockingBytecode: String! | ||
$limit: Int | ||
$offset: Int | ||
) { | ||
search_output( | ||
args: { | ||
locking_bytecode_hex: $lockingBytecode | ||
} | ||
search_output_prefix( | ||
args: { locking_bytecode_prefix_hex: $lockingBytecode } | ||
where: { | ||
@@ -365,3 +362,3 @@ _and: [ | ||
...param, | ||
"lockingBytecode": `{${lockingBytecode}}`, | ||
"lockingBytecode": `${lockingBytecode.substring(0, 24)}`, | ||
}, | ||
@@ -379,3 +376,3 @@ } | ||
} | ||
return response.data.data.search_output.map((o) => { | ||
return response.data.data.search_output_prefix.map((o) => { | ||
//console.log(JSON.stringify(o,undefined, 2)) | ||
@@ -382,0 +379,0 @@ let height = o.transaction.block_inclusions.length > 0 ? o.transaction.block_inclusions[0].block.height : -1; |
{ | ||
"name": "@unspent/psi", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "A persistent storage IndexedDB wrapper for ₿∙ϕ contracts and data using Dexie.js", | ||
@@ -32,3 +32,3 @@ "author": "2qx", | ||
"axios": "1.4.0", | ||
"cashscript": "0.8.0-next.2", | ||
"cashscript": "0.8.1", | ||
"dexie": "4.0.1-alpha.8", | ||
@@ -35,0 +35,0 @@ "electrum-cash": "^2.0.10", |
@@ -56,2 +56,4 @@ import axios from 'axios'; | ||
if ("version" in param) delete param.version | ||
//@ts-ignore | ||
if ("after" in param) delete param.after | ||
@@ -68,3 +70,2 @@ const response = await axios({ | ||
$offset: Int | ||
$after: bigint | ||
) { | ||
@@ -79,8 +80,4 @@ search_output_prefix( | ||
{ locking_bytecode_pattern: { _nlike: $exclude_pattern } } | ||
{ | ||
transaction: { | ||
block_inclusions: { block: { height: { _gt: $after } } } | ||
} | ||
} | ||
{ | ||
_or: [ | ||
@@ -350,10 +347,9 @@ { | ||
$node: String! | ||
$lockingBytecode: _text! | ||
$lockingBytecode: String! | ||
$limit: Int | ||
$offset: Int | ||
) { | ||
search_output( | ||
args: { | ||
locking_bytecode_hex: $lockingBytecode | ||
} | ||
search_output_prefix( | ||
args: { locking_bytecode_prefix_hex: $lockingBytecode } | ||
where: { | ||
@@ -410,3 +406,3 @@ _and: [ | ||
...param, | ||
"lockingBytecode": `{${lockingBytecode}}`, | ||
"lockingBytecode": `${lockingBytecode.substring(0, 24)}`, | ||
}, | ||
@@ -427,3 +423,3 @@ } | ||
return response.data.data.search_output.map((o: any) => { | ||
return response.data.data.search_output_prefix.map((o: any) => { | ||
//console.log(JSON.stringify(o,undefined, 2)) | ||
@@ -430,0 +426,0 @@ let height = o.transaction.block_inclusions.length > 0 ? o.transaction.block_inclusions[0].block.height : -1 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
320957
2710
+ Addedcashscript@0.8.1(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
- Removedcashscript@0.8.0-next.2(transitive)
Updatedcashscript@0.8.1