-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utxos by asset add policy id filtering (#170)
* asset utxos: add policy id filtering * fix unrelated compilation error * update openapi
- Loading branch information
1 parent
97c8d4a
commit cc61660
Showing
7 changed files
with
88 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
import { AssetName, PolicyId } from "./PolicyIdAssetMap"; | ||
|
||
/** | ||
* @example "asset1c43p68zwjezc7f6w4w9qkhkwv9ppwz0f7c3amw" | ||
*/ | ||
export type Cip14Fingerprint = string; | ||
|
||
export type AssetUtxosRequest = { | ||
range: { minSlot: number; maxSlot: number }, | ||
assets: Cip14Fingerprint[] | ||
range: { minSlot: number; maxSlot: number }; | ||
fingerprints?: Cip14Fingerprint[]; | ||
policyIds?: PolicyId[]; | ||
}; | ||
|
||
export type AssetUtxosResponse = { | ||
|
||
/** | ||
* If the utxo is created, this has the amount. It's undefined if the utxo | ||
* is spent. | ||
* | ||
* @example '1031423725351' | ||
*/ | ||
amount: string | undefined, | ||
utxo: { | ||
tx: string, | ||
index: number, | ||
}, | ||
cip14Fingerprint: string, | ||
paymentCred: string, | ||
slot: number | ||
txId: string, | ||
/** | ||
* If the utxo is created, this has the amount. It's undefined if the utxo | ||
* is spent. | ||
* | ||
* @example '1031423725351' | ||
*/ | ||
amount: string | undefined; | ||
utxo: { | ||
tx: string; | ||
index: number; | ||
}; | ||
cip14Fingerprint: string; | ||
policyId: string; | ||
assetName: AssetName; | ||
paymentCred: string; | ||
slot: number; | ||
txId: string; | ||
}[]; |