Page MenuHomePhabricator

D17650.id52596.diff
No OneTemporary

D17650.id52596.diff

This file is larger than 256 KB, so syntax highlighting was skipped.
diff --git a/apps/ecash-herald/config.ts b/apps/ecash-herald/config.ts
--- a/apps/ecash-herald/config.ts
+++ b/apps/ecash-herald/config.ts
@@ -27,23 +27,23 @@
ifpAddress: string;
tgMsgOptions: SendMessageOptions;
whaleSats: {
- bigWhale: number;
+ bigWhale: bigint;
// 10 billion xec
- modestWhale: number;
+ modestWhale: bigint;
// 5 billion xec
- shark: number;
+ shark: bigint;
// 1 billion xec
- swordfish: number;
+ swordfish: bigint;
// 700 million xec
- barracuda: number;
+ barracuda: bigint;
// 500 million xec
- octopus: number;
+ octopus: bigint;
// 250 million xec
- piranha: number;
+ piranha: bigint;
// 100 million xec
- crab: number;
+ crab: bigint;
// anything under 100 million xec
- shrimp: number;
+ shrimp: bigint;
};
emojis: {
capacityLow: string;
@@ -131,23 +131,23 @@
},
whaleSats: {
// 20 billion xec
- bigWhale: 2000000000000,
+ bigWhale: 2000000000000n,
// 10 billion xec
- modestWhale: 1000000000000,
+ modestWhale: 1000000000000n,
// 5 billion xec
- shark: 500000000000,
+ shark: 500000000000n,
// 1 billion xec
- swordfish: 100000000000,
+ swordfish: 100000000000n,
// 700 million xec
- barracuda: 70000000000,
+ barracuda: 70000000000n,
// 500 million xec
- octopus: 50000000000,
+ octopus: 50000000000n,
// 250 million xec
- piranha: 25000000000,
+ piranha: 25000000000n,
// 100 million xec
- crab: 10000000000,
+ crab: 10000000000n,
// anything under 100 million xec
- shrimp: 0,
+ shrimp: 0n,
},
emojis: {
capacityLow: '💧',
diff --git a/apps/ecash-herald/scripts/generateMock.ts b/apps/ecash-herald/scripts/generateMock.ts
--- a/apps/ecash-herald/scripts/generateMock.ts
+++ b/apps/ecash-herald/scripts/generateMock.ts
@@ -189,7 +189,7 @@
// If you don't have a mock for this particular outputScript in block.js,
// mock it as an address with a single utxo for 100 XEC
mockedChronik.setUtxosByScript(type as 'p2pkh' | 'p2sh', hash, [
- { value: 10000 } as ScriptUtxo,
+ { sats: 10000n } as ScriptUtxo,
]);
}
});
diff --git a/apps/ecash-herald/src/chronik.ts b/apps/ecash-herald/src/chronik.ts
--- a/apps/ecash-herald/src/chronik.ts
+++ b/apps/ecash-herald/src/chronik.ts
@@ -7,7 +7,7 @@
ScriptType,
Tx,
GenesisInfo,
- Utxo,
+ ScriptUtxo,
} from 'chronik-client';
import { getEmojiFromBalanceSats } from './utils';
import { getTypeAndHashFromOutputScript } from 'ecashaddrjs';
@@ -66,8 +66,8 @@
export interface OutputscriptInfo {
emoji: string;
- balanceSats: number;
- utxos: Utxo[];
+ balanceSats: bigint;
+ utxos: ScriptUtxo[];
}
/**
* Build a reference map of outputScripts and their balance in satoshis
@@ -79,7 +79,7 @@
chronik: ChronikClient,
outputScripts: Set<string>,
): Promise<false | Map<string, OutputscriptInfo>> => {
- const outputScriptInfoMap = new Map();
+ const outputScriptInfoMap: Map<string, OutputscriptInfo> = new Map();
const outputScriptInfoPromises: Promise<void>[] = [];
// For each outputScript, create a promise to get its balance and add
@@ -98,14 +98,16 @@
// If this address has utxos, then utxos = [{utxos: []}]
const balanceSats =
response.utxos.length === 0
- ? 0
- : response.utxos
- .map(utxo => utxo.value)
- .reduce(
- (prev, curr) => prev + curr,
- 0,
- );
-
+ ? 0n
+ : BigInt(
+ response.utxos
+ .map(utxo => utxo.sats)
+ .reduce(
+ (prev, curr) =>
+ prev + Number(curr),
+ 0,
+ ),
+ );
// Set the map outputScript => emoji
outputScriptInfoMap.set(outputScript, {
emoji: getEmojiFromBalanceSats(balanceSats),
diff --git a/apps/ecash-herald/src/parse.ts b/apps/ecash-herald/src/parse.ts
--- a/apps/ecash-herald/src/parse.ts
+++ b/apps/ecash-herald/src/parse.ts
@@ -67,7 +67,7 @@
}
interface HeraldStaker {
staker: string;
- reward: number;
+ reward: bigint;
}
interface HeraldOpReturnInfo {
app: string;
@@ -89,14 +89,14 @@
opReturnInfo: false | HeraldOpReturnInfo;
txFee: number;
xecSendingOutputScripts: Set<string>;
- xecReceivingOutputs: Map<string, number>;
- totalSatsSent: number;
+ xecReceivingOutputs: Map<string, bigint>;
+ totalSatsSent: bigint;
tokenSendInfo: false | TokenSendInfo;
tokenBurnInfo:
| false
| {
tokenId: string;
- undecimalizedTokenBurnAmount: string;
+ actualBurnAtoms: bigint;
};
}
export interface HeraldParsedBlock {
@@ -124,7 +124,7 @@
count: number;
}
interface AgoraAction extends TokenAction {
- volume: number;
+ volume: bigint;
}
interface TokenActions {
actionCount: number;
@@ -137,7 +137,7 @@
cancel?: TokenAction;
genesis?:
| TokenAction
- | { hasBaton: boolean; amount: string; count?: number };
+ | { hasBaton: boolean; atoms: bigint; count?: number };
}
export const getStakerFromCoinbaseTx = (
@@ -151,18 +151,18 @@
}
const STAKING_REWARDS_PERCENT = 10;
const totalCoinbaseSats = coinbaseOutputs
- .map(output => output.value)
- .reduce((prev, curr) => prev + curr, 0);
+ .map(output => output.sats)
+ .reduce((prev, curr) => prev + curr, 0n);
for (const output of coinbaseOutputs) {
- const thisValue = output.value;
+ const thisValue = output.sats;
const minStakerValue = Math.floor(
- totalCoinbaseSats * STAKING_REWARDS_PERCENT * 0.01,
+ Number(totalCoinbaseSats) * STAKING_REWARDS_PERCENT * 0.01,
);
// In practice, the staking reward will almost always be the one that is exactly 10% of totalCoinbaseSats
// Use a STAKER_PERCENT_PADDING range to exclude miner and ifp outputs
const STAKER_PERCENT_PADDING = 1;
const assumedMaxStakerValue = Math.floor(
- totalCoinbaseSats *
+ Number(totalCoinbaseSats) *
(STAKING_REWARDS_PERCENT + STAKER_PERCENT_PADDING) *
0.01,
);
@@ -922,7 +922,7 @@
| false
| {
tokenId: string;
- undecimalizedTokenBurnAmount: string;
+ actualBurnAtoms: bigint;
} = false;
/* Collect xecSendInfo for all txs, since all txs are XEC sends
@@ -932,11 +932,11 @@
// xecSend parsing variables
const xecSendingOutputScripts: Set<string> = new Set();
- const xecReceivingOutputs = new Map();
- let xecInputAmountSats = 0;
- let xecOutputAmountSats = 0;
- let totalSatsSent = 0;
- let changeAmountSats = 0;
+ const xecReceivingOutputs: Map<string, bigint> = new Map();
+ let xecInputAmountSats = 0n;
+ let xecOutputAmountSats = 0n;
+ let totalSatsSent = 0n;
+ let changeAmountSats = 0n;
if (
tx.tokenStatus !== 'TOKEN_STATUS_NON_TOKEN' &&
@@ -951,11 +951,11 @@
// TODO handle txs with multiple tokenEntries
const parsedTokenAction = tx.tokenEntries[0];
- const { tokenId, tokenType, txType, burnSummary, actualBurnAmount } =
+ const { tokenId, tokenType, txType, burnSummary, actualBurnAtoms } =
parsedTokenAction;
const { protocol, number } = tokenType;
const isUnintentionalBurn =
- burnSummary !== '' && actualBurnAmount !== '0';
+ burnSummary !== '' && actualBurnAtoms !== 0n;
// Get token type
// TODO present the token type in msgs
@@ -993,7 +993,7 @@
if (isUnintentionalBurn) {
tokenBurnInfo = {
tokenId,
- undecimalizedTokenBurnAmount: actualBurnAmount,
+ actualBurnAtoms,
};
} else {
tokenSendInfo = {
@@ -1016,7 +1016,7 @@
xecSendingOutputScripts.add(input.outputScript);
}
- xecInputAmountSats += input.value;
+ xecInputAmountSats += input.sats;
// The input that sent the token utxos will have key 'slpToken'
if (typeof input.token !== 'undefined') {
// Add amount to undecimalizedTokenInputAmount
@@ -1024,7 +1024,7 @@
// Could have mistakes in parsing ALP txs otherwise
// For now, this is outside the scope of migration
undecimalizedTokenInputAmount = undecimalizedTokenInputAmount.plus(
- input.token.amount,
+ input.token.atoms.toString(),
);
// Collect the input outputScripts to identify change output
if (typeof input.outputScript !== 'undefined') {
@@ -1035,12 +1035,12 @@
// Iterate over outputs to check for OP_RETURN msgs
for (const output of outputs) {
- const { value, outputScript } = output;
- xecOutputAmountSats += value;
+ const { sats, outputScript } = output;
+ xecOutputAmountSats += sats;
// If this output script is the same as one of the sendingOutputScripts
if (xecSendingOutputScripts.has(outputScript)) {
// Then this XEC amount is change
- changeAmountSats += value;
+ changeAmountSats += sats;
} else {
// Add an xecReceivingOutput
@@ -1048,11 +1048,11 @@
// If this outputScript is already in xecReceivingOutputs, increment its value
xecReceivingOutputs.set(
outputScript,
- (xecReceivingOutputs.get(outputScript) ?? 0) + value,
+ (xecReceivingOutputs.get(outputScript) ?? 0n) + sats,
);
// Increment totalSatsSent
- totalSatsSent += value;
+ totalSatsSent += sats;
}
// Don't parse OP_RETURN values of etoken txs, this info is available from chronik
if (outputScript.startsWith(opReturn.opReturnPrefix) && !isTokenTx) {
@@ -1068,7 +1068,7 @@
outputScript,
(
tokenChangeOutputs.get(outputScript) ?? new BigNumber(0)
- ).plus(output.token.amount),
+ ).plus(output.token.atoms.toString()),
);
} else {
/* This is the sent token qty
@@ -1083,14 +1083,14 @@
(
tokenReceivingOutputs.get(outputScript) ??
new BigNumber(0)
- ).plus(output.token.amount),
+ ).plus(output.token.atoms.toString()),
);
}
}
}
// Determine tx fee
- const txFee = xecInputAmountSats - xecOutputAmountSats;
+ const txFee = Number(xecInputAmountSats - xecOutputAmountSats);
// If this is a token send tx, return token send parsing info and not 'false' for tokenSendInfo
if (tokenSendInfo) {
@@ -1153,7 +1153,7 @@
// Sort parsedTxs by totalSatsSent, highest to lowest
parsedTxs = parsedTxs.sort((a, b) => {
- return b.totalSatsSent - a.totalSatsSent;
+ return Number(b.totalSatsSent) - Number(a.totalSatsSent);
});
// Collect token info needed to parse token send txs
@@ -1220,8 +1220,8 @@
*/
export const getEncryptedCashtabMsg = (
sendingAddress: string,
- xecReceivingOutputs: Map<string, number>,
- totalSatsSent: number,
+ xecReceivingOutputs: Map<string, bigint>,
+ totalSatsSent: bigint,
xecPrice?: number,
): string => {
const displayedSentQtyString = satsToFormattedValue(
@@ -1263,8 +1263,8 @@
export const getAirdropTgMsg = (
stackArray: string[],
airdropSendingAddress: string,
- airdropRecipientsMap: Map<string, number>,
- totalSatsAirdropped: number,
+ airdropRecipientsMap: Map<string, bigint>,
+ totalSatsAirdropped: bigint,
tokenInfo: false | GenesisInfo,
xecPrice?: number,
): string => {
@@ -1516,7 +1516,7 @@
const genesisTxTgMsgLines = [];
let cashtabTokenRewards = 0;
let cashtabXecRewardTxs = 0;
- let cashtabXecRewardsTotalXec = 0;
+ let cashtabXecRewardsTotalSats = 0n;
const tokenSendTxTgMsgLines: string[] = [];
const tokenBurnTxTgMsgLines = [];
const opReturnTxTgMsgLines = [];
@@ -1752,7 +1752,7 @@
if (tokenBurnInfo && tokenInfoMap) {
// If this is a token burn tx and you have tokenInfoMap
- const { tokenId, undecimalizedTokenBurnAmount } = tokenBurnInfo;
+ const { tokenId, actualBurnAtoms } = tokenBurnInfo;
if (typeof tokenId !== 'undefined' && tokenInfoMap.has(tokenId)) {
// Some txs may have tokenBurnInfo, but did not get tokenSendInfo
@@ -1772,7 +1772,7 @@
// Use decimals to calculate the burned amount as string
const decimalizedTokenBurnAmount =
bigNumberAmountToLocaleString(
- undecimalizedTokenBurnAmount,
+ actualBurnAtoms.toString(),
decimals,
);
@@ -1823,7 +1823,7 @@
if (firstXecSendingOutputScript === TOKEN_SERVER_OUTPUTSCRIPT) {
cashtabXecRewardTxs += 1;
- cashtabXecRewardsTotalXec += totalSatsSent;
+ cashtabXecRewardsTotalSats += totalSatsSent;
continue;
}
@@ -2014,7 +2014,7 @@
`<b>${cashtabXecRewardTxs}</b> new user${
cashtabXecRewardTxs > 1 ? `s` : ''
} received <b>${satsToFormattedValue(
- cashtabXecRewardsTotalXec,
+ cashtabXecRewardsTotalSats,
)}</b>`,
);
}
@@ -2229,7 +2229,7 @@
};
interface AdditionalActionParams {
- volume: number;
+ volume: bigint;
}
/**
@@ -2351,7 +2351,7 @@
const viabtcMinerMap = new Map();
// stakerOutputScript => {count, reward}
- const stakerMap: Map<string, { count: number; reward: number }> = new Map();
+ const stakerMap: Map<string, { count: number; reward: bigint }> = new Map();
// TODO more info about send txs
// inputs[0].outputScript => {count, satoshisSent}
@@ -2360,12 +2360,12 @@
// lokad name => count
const appTxMap = new Map();
- let totalStakingRewardSats = 0;
+ let totalStakingRewardSats = 0n;
let cashtabXecRewardCount = 0;
- let cashtabXecRewardSats = 0;
+ let cashtabXecRewardSats = 0n;
let cashtabCachetRewardCount = 0;
let binanceWithdrawalCount = 0;
- let binanceWithdrawalSats = 0;
+ let binanceWithdrawalSats = 0n;
let fungibleTokenTxs = 0;
let appTxs = 0;
@@ -2391,8 +2391,8 @@
// Agora vars
let agoraTxs = 0;
const agoraActions: Map<string, TokenActions> = new Map();
- let oneshotVolumeSatoshis = 0;
- let partialVolumeSatoshis = 0;
+ let oneshotVolumeSatoshis = 0n;
+ let partialVolumeSatoshis = 0n;
// Token reference
// We have this in tokenInfoMap, but it's easier to set and access here
@@ -2461,9 +2461,9 @@
// XEC rwd
cashtabXecRewardCount += 1;
for (const output of outputs) {
- const { value, outputScript } = output;
+ const { sats, outputScript } = output;
if (outputScript !== TOKEN_SERVER_OUTPUTSCRIPT) {
- cashtabXecRewardSats += value;
+ cashtabXecRewardSats += sats;
}
}
}
@@ -2474,11 +2474,11 @@
// Tx sent by Binance
// Make sure it's not just a utxo consolidation
for (const output of outputs) {
- const { value, outputScript } = output;
+ const { sats, outputScript } = output;
if (outputScript !== BINANCE_OUTPUTSCRIPT) {
// If we have an output that is not sending to the binance hot wallet
// Increment total value amount withdrawn
- binanceWithdrawalSats += value;
+ binanceWithdrawalSats += sats;
// We also call this a withdrawal
// Note that 1 tx from the hot wallet may include more than 1 withdrawal
binanceWithdrawalCount += 1;
@@ -2497,7 +2497,7 @@
txType,
groupTokenId,
isInvalid,
- actualBurnAmount,
+ actualBurnAtoms,
} = tokenEntry;
const { type } = tokenType;
tokenTypeMap.set(tokenId, type);
@@ -2654,10 +2654,10 @@
// ONESHOT purchases include the purchase price at the
// 1-indexed output
- let volumeSatoshisThisBuy = 0;
+ let volumeSatoshisThisBuy = 0n;
if (tx.outputs.length >= 2) {
volumeSatoshisThisBuy =
- tx.outputs[1].value;
+ tx.outputs[1].sats;
oneshotVolumeSatoshis +=
volumeSatoshisThisBuy;
} else {
@@ -2739,7 +2739,7 @@
continue;
}
- if (actualBurnAmount !== '0') {
+ if (actualBurnAtoms !== 0n) {
nftNonAgoraTokenEntries += 1;
// Parse as burn
// Note this is not currently supported in Cashtab
@@ -2838,7 +2838,7 @@
}
case 'GENESIS': {
const genesis = {
- amount: '0',
+ atoms: 0n,
hasBaton: false,
};
// See if we already have tokenActions at this tokenId
@@ -2850,12 +2850,12 @@
// But we iterate over all outputs to check for mint batons
// ALP spec includes mint batons first and qty after, so makes sense
// to check them all
- const { amount, isMintBaton } =
+ const { atoms, isMintBaton } =
output.token;
if (isMintBaton) {
genesis.hasBaton = true;
} else {
- genesis.amount = amount;
+ genesis.atoms = atoms;
}
}
// We do not use initializeOrIncrementTokenData here
@@ -2969,12 +2969,13 @@
// Partial purchases include the purchase price at the
// 1-indexed output
- let volumeSatoshisThisBuy = 0;
+ let volumeSatoshisThisBuy =
+ 0n;
if (
tx.outputs.length >= 2
) {
volumeSatoshisThisBuy =
- tx.outputs[1].value;
+ tx.outputs[1].sats;
partialVolumeSatoshis +=
volumeSatoshisThisBuy;
} else {
@@ -3110,7 +3111,7 @@
}
// Parse as burn
- if (actualBurnAmount !== '0') {
+ if (actualBurnAtoms !== 0n) {
initializeOrIncrementTokenData(
tokenActions,
existingTokenActions,
@@ -3426,8 +3427,8 @@
const sortedAgoraActions = new Map(
[...agoraActions.entries()].sort(
(keyValueArrayA, keyValueArrayB) => {
- const volA = keyValueArrayA[1].buy?.volume ?? 0;
- const volB = keyValueArrayB[1].buy?.volume ?? 0;
+ const volA = Number(keyValueArrayA[1].buy?.volume ?? 0n);
+ const volB = Number(keyValueArrayB[1].buy?.volume ?? 0n);
return volB - volA;
},
),
diff --git a/apps/ecash-herald/src/utils.ts b/apps/ecash-herald/src/utils.ts
--- a/apps/ecash-herald/src/utils.ts
+++ b/apps/ecash-herald/src/utils.ts
@@ -266,6 +266,12 @@
dataType: 'BigNumberReplacer',
value: thisKeyValue[1].toString(),
};
+ } else if (typeof thisKeyValue[1] === 'bigint') {
+ // Replace it
+ thisKeyValue[1] = {
+ dataType: 'BigIntReplacer',
+ value: thisKeyValue[1].toString(),
+ };
}
}
}
@@ -279,6 +285,11 @@
dataType: 'Set',
value: Array.from(value.keys()),
};
+ } else if (typeof value === 'bigint') {
+ return {
+ dataType: 'BigIntReplacer',
+ value: value.toString(),
+ };
} else {
return value;
}
@@ -302,16 +313,17 @@
for (let i = 0; i < value.value.length; i += 1) {
const thisKeyValuePair = value.value[i]; // [key, value]
const thisValue = thisKeyValuePair[1];
- if (
- thisValue &&
- thisValue.dataType === 'BigNumberReplacer'
- ) {
- // If this is saved BigNumber, replace it with an actual BigNumber
- // note, you can't use thisValue = new BigNumber(thisValue.value)
- // Need to use this specific array entry
- value.value[i][1] = new BigNumber(
- value.value[i][1].value,
- );
+ if (thisValue) {
+ if (thisValue.dataType === 'BigNumberReplacer') {
+ // If this is saved BigNumber, replace it with an actual BigNumber
+ // note, you can't use thisValue = new BigNumber(thisValue.value)
+ // Need to use this specific array entry
+ value.value[i][1] = new BigNumber(
+ value.value[i][1].value,
+ );
+ } else if (thisValue.dataType === 'BigIntReplacer') {
+ value.value[i][1] = BigInt(value.value[i][1].value);
+ }
}
}
}
@@ -320,6 +332,9 @@
if (value.dataType === 'Set') {
return new Set(value.value);
}
+ if (value.dataType === 'BigIntReplacer') {
+ return BigInt(value.value);
+ }
}
return value;
};
@@ -345,7 +360,7 @@
* @param balanceSats
* @returns emoji determined by thresholds set in config
*/
-export const getEmojiFromBalanceSats = (balanceSats: number): string => {
+export const getEmojiFromBalanceSats = (balanceSats: bigint): string => {
const { whaleSats, emojis } = config;
if (balanceSats >= whaleSats.bigWhale) {
return emojis.bigWhale;
diff --git a/apps/ecash-herald/test/fixtures/invalidatedBlocks.ts b/apps/ecash-herald/test/fixtures/invalidatedBlocks.ts
--- a/apps/ecash-herald/test/fixtures/invalidatedBlocks.ts
+++ b/apps/ecash-herald/test/fixtures/invalidatedBlocks.ts
@@ -12,12 +12,12 @@
'0394340d0492ae026708fabe6d6daf60fc610807858663407096d0cb0b05229c70aa6c9618533929fc17e36632c6000100000000000000b1145b730000009d00122f4d696e696e672d44757463682f2d313236',
outputs: [
{
- value: 181250772,
+ sats: 181250772n,
outputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
},
{
- value: 31250132,
+ sats: 31250132n,
outputScript:
'76a914b03bb6f8567bade53cc3a716e0414c1082a8530088ac',
},
@@ -39,12 +39,12 @@
'0394340d0492ae026708fabe6d6daf60fc610807858663407096d0cb0b05229c70aa6c9618533929fc17e36632c6000100000000000000b1145b730000009d00122f4d696e696e672d44757463682f2d313236',
outputs: [
{
- value: 181250772,
+ sats: 181250772n,
outputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
},
{
- value: 100000424,
+ sats: 100000424n,
outputScript:
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
},
@@ -63,17 +63,17 @@
'0394340d0492ae026708fabe6d6daf60fc610807858663407096d0cb0b05229c70aa6c9618533929fc17e36632c6000100000000000000b1145b730000009d00122f4d696e696e672d44757463682f2d313236',
outputs: [
{
- value: 181250772,
+ sats: 181250772n,
outputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
},
{
- value: 100000424,
+ sats: 100000424n,
outputScript:
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
},
{
- value: 31250132,
+ sats: 31250132n,
outputScript:
'76a914b03bb6f8567bade53cc3a716e0414c1082a8530088ac',
},
@@ -96,17 +96,17 @@
'0394340d0492ae026708fabe6d6daf60fc610807858663407096d0cb0b05229c70aa6c9618533929fc17e36632c6000100000000000000b1145b730000009d00122f4d696e696e672d44757463682f2d313236',
outputs: [
{
- value: 181250772,
+ sats: 181250772n,
outputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
},
{
- value: 100000424,
+ sats: 100000424n,
outputScript:
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
},
{
- value: 31250132,
+ sats: 31250132n,
outputScript:
'76a914b03bb6f8567bade53cc3a716e0414c1082a8530088ac',
},
@@ -128,17 +128,17 @@
'0394340d0492ae026708fabe6d6daf60fc610807858663407096d0cb0b05229c70aa6c9618533929fc17e36632c6000100000000000000b1145b730000009d00122f4d696e696e672d44757463682f2d313236',
outputs: [
{
- value: 181250772,
+ sats: 181250772n,
outputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
},
{
- value: 100000424,
+ sats: 100000424n,
outputScript:
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
},
{
- value: 31250132,
+ sats: 31250132n,
outputScript:
'76a914b03bb6f8567bade53cc3a716e0414c1082a8530088ac',
},
@@ -168,17 +168,17 @@
'0394340d0492ae026708fabe6d6daf60fc610807858663407096d0cb0b05229c70aa6c9618533929fc17e36632c6000100000000000000b1145b730000009d00122f4d696e696e672d44757463682f2d313236',
outputs: [
{
- value: 181250772,
+ sats: 181250772n,
outputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
},
{
- value: 100000424,
+ sats: 100000424n,
outputScript:
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
},
{
- value: 31250132,
+ sats: 31250132n,
outputScript:
'76a914b03bb6f8567bade53cc3a716e0414c1082a8530088ac',
},
diff --git a/apps/ecash-herald/test/fixtures/stakers.ts b/apps/ecash-herald/test/fixtures/stakers.ts
--- a/apps/ecash-herald/test/fixtures/stakers.ts
+++ b/apps/ecash-herald/test/fixtures/stakers.ts
@@ -7,21 +7,21 @@
coinbaseTx: {
outputs: [
{
- value: 362501148,
+ sats: 362501148n,
outputScript:
'76a9141b1bbcb888b4440a573427f526cb221f657318cf88ac',
slpToken: undefined,
spentBy: undefined,
},
{
- value: 200000632,
+ sats: 200000632n,
outputScript:
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
slpToken: undefined,
spentBy: undefined,
},
{
- value: 62500197,
+ sats: 62500197n,
outputScript:
'76a914066f83c9a49e2639b5f0fb03f4da1b387c7e8ad188ac',
slpToken: undefined,
@@ -36,21 +36,21 @@
},
staker: {
staker: '76a914066f83c9a49e2639b5f0fb03f4da1b387c7e8ad188ac',
- reward: 62500197,
+ reward: 62500197n,
},
},
{
coinbaseTx: {
outputs: [
{
- value: 575000000,
+ sats: 575000000n,
outputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
slpToken: undefined,
spentBy: undefined,
},
{
- value: 50000000,
+ sats: 50000000n,
outputScript:
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
slpToken: undefined,
@@ -71,21 +71,21 @@
coinbaseTx: {
outputs: [
{
- value: '268750850',
+ sats: 268750850n,
outputScript:
'76a9141b1bbcb888b4440a573427f526cb221f657318cf88ac',
slpToken: undefined,
spentBy: undefined,
},
{
- value: '200000632',
+ sats: 200000632n,
outputScript:
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
slpToken: undefined,
spentBy: undefined,
},
{
- value: '156250494',
+ sats: 156250494n,
outputScript:
'76a914066f83c9a49e2639b5f0fb03f4da1b387c7e8ad188ac',
slpToken: undefined,
diff --git a/apps/ecash-herald/test/mocks/appTxSamples.ts b/apps/ecash-herald/test/mocks/appTxSamples.ts
--- a/apps/ecash-herald/test/mocks/appTxSamples.ts
+++ b/apps/ecash-herald/test/mocks/appTxSamples.ts
@@ -14,7 +14,7 @@
tokenInfo: false | GenesisInfo;
}
-type RecipientEntry = [string, number];
+type RecipientEntry = [string, bigint];
// Define the type for the entire array
type RecipientsArray = RecipientEntry[];
@@ -303,19 +303,19 @@
airdropRecipientsKeyValueArray: [
[
'6a0464726f70207c06091e745037b46c5ea60def8ad526274c2caabb1fae6c4ac89fad02fedf9a04007461624643736f6e676f72206261627920686173206265656e20626f726e2e2054616b652074686973206c6974746c6520676966742066726f6d20612070726f75642066617468657221',
- 0,
+ 0n,
],
- ['76a9142ec5281864fc989dab543b054631c9703809689e88ac', 892857],
- ['76a914efa3a87fc4022378a5f7e8e0a5c112094f3fb9be88ac', 892857],
- ['76a9142a6572780193dbcb3422773c2e353048805c2cb888ac', 892857],
- ['76a914ce9650c2d64f487739798d2815ab9e0a38fe8f9b88ac', 89286],
- ['76a91473ef17c5b9f551eae3f3b4fadf61f93cae5e6aea88ac', 89286],
- ['76a9143efd4899993b5c6e554238187577b81ed1f6bb4188ac', 89286],
- ['76a914198d8c7a32b750cbdbe1f97103d404f5e6a9465788ac', 892857],
- ['76a91457499920b99c483d745f9925adf9eecbe46c583d88ac', 535714],
- ['76a9140d17fb5b181b676fc5ed2825c0b2b25cc578f3ea88ac', 89286],
- ['76a9142a96944d06700882bbd984761d9c9e4215f2d78e88ac', 446429],
- ['76a91469003998c2c32ac81951b88416a9a15df3a1992988ac', 89286],
+ ['76a9142ec5281864fc989dab543b054631c9703809689e88ac', 892857n],
+ ['76a914efa3a87fc4022378a5f7e8e0a5c112094f3fb9be88ac', 892857n],
+ ['76a9142a6572780193dbcb3422773c2e353048805c2cb888ac', 892857n],
+ ['76a914ce9650c2d64f487739798d2815ab9e0a38fe8f9b88ac', 89286n],
+ ['76a91473ef17c5b9f551eae3f3b4fadf61f93cae5e6aea88ac', 89286n],
+ ['76a9143efd4899993b5c6e554238187577b81ed1f6bb4188ac', 89286n],
+ ['76a914198d8c7a32b750cbdbe1f97103d404f5e6a9465788ac', 892857n],
+ ['76a91457499920b99c483d745f9925adf9eecbe46c583d88ac', 535714n],
+ ['76a9140d17fb5b181b676fc5ed2825c0b2b25cc578f3ea88ac', 89286n],
+ ['76a9142a96944d06700882bbd984761d9c9e4215f2d78e88ac', 446429n],
+ ['76a91469003998c2c32ac81951b88416a9a15df3a1992988ac', 89286n],
],
tokenId:
'7c06091e745037b46c5ea60def8ad526274c2caabb1fae6c4ac89fad02fedf9a',
@@ -349,11 +349,11 @@
airdropRecipientsKeyValueArray: [
[
'6a0464726f70201c6c9c64d70b285befe733f175d0f384538576876bd280b10587df81279d3f5e0400746162',
- 0,
+ 0n,
],
- ['76a9147ab07df481649eb27c7ad9afda52b2a93d2f722a88ac', 2000],
- ['76a9149846b6b38ff713334ac19fe3cf851a1f98c07b0088ac', 1000],
- ['76a914b82361c5851f4ec48b995175a2e1c3646338e07688ac', 2000],
+ ['76a9147ab07df481649eb27c7ad9afda52b2a93d2f722a88ac', 2000n],
+ ['76a9149846b6b38ff713334ac19fe3cf851a1f98c07b0088ac', 1000n],
+ ['76a914b82361c5851f4ec48b995175a2e1c3646338e07688ac', 2000n],
],
tokenId:
'1c6c9c64d70b285befe733f175d0f384538576876bd280b10587df81279d3f5e',
@@ -387,11 +387,11 @@
airdropRecipientsKeyValueArray: [
[
'6a0464726f701f6c9c64d70b285befe733f175d0f384538576876bd280b10587df81279d3f5e0400746162',
- 0,
+ 0n,
],
- ['76a9147ab07df481649eb27c7ad9afda52b2a93d2f722a88ac', 2000],
- ['76a9149846b6b38ff713334ac19fe3cf851a1f98c07b0088ac', 1000],
- ['76a914b82361c5851f4ec48b995175a2e1c3646338e07688ac', 2000],
+ ['76a9147ab07df481649eb27c7ad9afda52b2a93d2f722a88ac', 2000n],
+ ['76a9149846b6b38ff713334ac19fe3cf851a1f98c07b0088ac', 1000n],
+ ['76a914b82361c5851f4ec48b995175a2e1c3646338e07688ac', 2000n],
],
tokenId: false,
tokenInfo: false,
@@ -411,10 +411,10 @@
airdropSendingAddress:
'ecash:qrmz0egsqxj35x5jmzf8szrszdeu72fx0uxgwk3r48',
airdropRecipientsKeyValueArray: [
- ['6a0464726f70', 0],
- ['76a9147ab07df481649eb27c7ad9afda52b2a93d2f722a88ac', 2000],
- ['76a9149846b6b38ff713334ac19fe3cf851a1f98c07b0088ac', 1000],
- ['76a914b82361c5851f4ec48b995175a2e1c3646338e07688ac', 2000],
+ ['6a0464726f70', 0n],
+ ['76a9147ab07df481649eb27c7ad9afda52b2a93d2f722a88ac', 2000n],
+ ['76a9149846b6b38ff713334ac19fe3cf851a1f98c07b0088ac', 1000n],
+ ['76a914b82361c5851f4ec48b995175a2e1c3646338e07688ac', 2000n],
],
tokenId: false,
tokenInfo: false,
@@ -453,11 +453,11 @@
xecReceivingOutputsKeyValueArray: [
[
'6a04657461624c810281d8b3db5585bf24903022d9c5f3b8cafed757f254840c0f7bc872fda070745cb6cef3d645fc7e4403e2bc212e616db6691ab415cd1f7e9abcebdd8738e775a05ebeb14fadbdbf5941e0e4804e0c075239d0906ca5d5c00a93ebae11df7770c4aeeaef5b804abca08c10520fa47a6dc3df018378334a15f7ea3075bc9b8840a8',
- 0,
+ 0n,
],
[
'76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
- 24242424,
+ 24242424n,
],
],
stackArray: [
@@ -480,11 +480,11 @@
xecReceivingOutputsKeyValueArray: [
[
'6a04657461624cd1026d3ebca7776500d72ee640e56509cefcedee044b25584f0cc32d15c54766bc8960b179d07838f6ffb221c49c7f74d9a9bf4101cdb4a78d5507620ca020eab052d24995bcca37e9dd5b1baa210045b2942438e31a43062ef35c019250cef35dff2fd4b6999b98a103344d05c70847aa5124ac76d8528f737f4a504e96b46dbbe05b8a80bdc4b98bb0bb0f12ad12a3271550e79524ebae01dece0a231bfd546dab7714167bc73989613b73d94a5b48fbeda4913dbf42daedd52a3239a1654e4d3ded120b714eecffc3f3b1a37aed9e2d3b',
- 0,
+ 0n,
],
- ['76a914f627e51001a51a1a92d8927808701373cf29267f88ac', 600],
+ ['76a914f627e51001a51a1a92d8927808701373cf29267f88ac', 600n],
// manually give it another output to test
- ['76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac', 100],
+ ['76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac', 100n],
],
stackArray: [
'65746162',
diff --git a/apps/ecash-herald/test/mocks/block.ts b/apps/ecash-herald/test/mocks/block.ts
--- a/apps/ecash-herald/test/mocks/block.ts
+++ b/apps/ecash-herald/test/mocks/block.ts
@@ -1,4 +1,4 @@
-// Copyright (c) 2023 The Bitcoin developers
+// Copyright (c) 2025 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
@@ -16,37 +16,37 @@
},
inputScript:
'0392800c04904c5d650cfabe6d6d2a5055cb96fc034feb64a6533f9ba428768f019b0efc92797bb1eeae3bda05e410000000000000000800002bed8efca61700000015643839366564326466356633353334353432323837',
- value: 0,
sequenceNo: 0,
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
],
outputs: [
{
- value: 362500000,
outputScript:
'76a914ce8c8cf69a922a607e8e03e27ec014fbc24882e088ac',
spentBy: {
txid: '2e3399f02280def3908afc561157cbaa159bbacee47dbcdebac15a668d009fc0',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '362500000' },
},
{
- value: 200000000,
outputScript:
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
spentBy: {
txid: '2df7650a9ebebd998d0dc756650144c21d84722c60fe6389c538d272f134d365',
outIdx: 226,
},
+ sats: { dataType: 'BigIntReplacer', value: '200000000' },
},
{
- value: 62500000,
outputScript:
'76a914c36941af4c8cdf6e3156f7fe1426d05d6177890e88ac',
spentBy: {
txid: '6da0fa092de6c985365eb40ebe8a9112a62e48a1375dc348b2f2fc9fc27664d1',
outIdx: 27,
},
+ sats: { dataType: 'BigIntReplacer', value: '62500000' },
},
],
lockTime: 0,
@@ -73,20 +73,19 @@
},
inputScript:
'48304502210086860e8ee3721d2ebc919dca21e44ff96a2adc287528e46e12665dc1a5af75ec02206dd0c593becad3d4055ed011f9d61468a378090e1fe4246eeb34b68744ec5e93412103bc01efabf76dafe666a98c88fe72915c4cceb26cacf6772904b3fa1fa5629765',
- value: 5285,
sequenceNo: 4294967294,
outputScript:
'76a914104e67d912a7aab2a159bba141477e5867c04bfd88ac',
+ sats: { dataType: 'BigIntReplacer', value: '5285' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953054c6f6c6c79054c4f4c4c591468747470733a2f2f636173687461622e636f6d2f4c0001084c00080162ea854d0fc000',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a914104e67d912a7aab2a159bba141477e5867c04bfd88ac',
token: {
@@ -97,15 +96,19 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '99900000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '99900000000000000',
+ },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 4284,
outputScript:
'76a914104e67d912a7aab2a159bba141477e5867c04bfd88ac',
+ sats: { dataType: 'BigIntReplacer', value: '4284' },
},
],
lockTime: 0,
@@ -125,9 +128,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -149,7 +152,6 @@
},
inputScript:
'47304402202edcaf6fad2b7789b54ae9283db93f8028249dab78455653f4a1765aae29ca48022060f44bb9fcc82233ba64b4ba1725bfd1d451babb7f96d13c2ef8d833e972946941210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -159,12 +161,16 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '92940000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '92940000',
+ },
},
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -173,20 +179,19 @@
},
inputScript:
'483045022100917c49035cd87aea0c004121561ec5c7488badbfc9ee51e9c7684c0717306bea02206a197976706fc6d6d05590f14482264e90ca080e561978257ba7df451debffd541210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 14274406,
sequenceNo: 4294967295,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
+ sats: { dataType: 'BigIntReplacer', value: '14274406' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e4420aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb108000000000000271008000000000589ffd0',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a914dcc535261a43835ca12352d0926ba06cf07cbe8388ac',
token: {
@@ -197,13 +202,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '10000' },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 546,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
token: {
@@ -214,23 +219,27 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '92930000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '92930000',
+ },
},
spentBy: {
txid: '4852929bc3809bb1b6fa5b607f4856df1d0cf13816e01c93a3b32f6a59647f73',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 14273379,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
spentBy: {
txid: '4852929bc3809bb1b6fa5b607f4856df1d0cf13816e01c93a3b32f6a59647f73',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '14273379' },
},
],
lockTime: 0,
@@ -250,9 +259,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -274,7 +283,6 @@
},
inputScript:
'4830450221008295a1f9391cdcd4b6ce64e3667e50fbd4c2ce37abc15840cc686bb2ad9970bf022006a16801d509b6f72eca4393731604ee0f28ba0d6ce55dcd4c3b706c374eca8341210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -284,12 +292,16 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '92640000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '92640000',
+ },
},
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -298,20 +310,19 @@
},
inputScript:
'47304402204fd42db620084ff54f32c60fb5cded7040255fdef7b6ba80a1a5a3b9f7c4fef1022042acf826a81e39c4224de432e92a24c1ee11c2a85d6f6f45f8e88cdbb081f4c441210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 14243596,
sequenceNo: 4294967295,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
+ sats: { dataType: 'BigIntReplacer', value: '14243596' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e4420aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1080000000000002710080000000005856bf0',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a91469724b96df46096cc95b1a6d408a4240ea80d85588ac',
token: {
@@ -322,13 +333,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '10000' },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 546,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
token: {
@@ -339,23 +350,27 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '92630000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '92630000',
+ },
},
spentBy: {
txid: 'a998c6bdd2d4755b4be7537a5ba064cc19428ce3a47d0c069ee4241a1a83058e',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 14242569,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
spentBy: {
txid: 'a998c6bdd2d4755b4be7537a5ba064cc19428ce3a47d0c069ee4241a1a83058e',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '14242569' },
},
],
lockTime: 0,
@@ -375,9 +390,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -399,7 +414,6 @@
},
inputScript:
'47304402207223b7e969380eb1c83569a6c217f2d6350f2b3f241d30af9446c04bc36d109f022049bcc4d0a9327f839618a8174af837ac61d6cea1d30962f2866c1dfb4a9d3e8041210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -409,12 +423,16 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '92560000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '92560000',
+ },
},
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -423,20 +441,19 @@
},
inputScript:
'483045022100f5b0ca73d4d81cba5abf91d9d3531085768ef71b173b1a1701bbefc6cefad65202201540deb6e8c7c3ca96889ef6965abcc61c9c1e3e3ada3d70be1bed146f48bfe341210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 14235380,
sequenceNo: 4294967295,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
+ sats: { dataType: 'BigIntReplacer', value: '14235380' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e4420aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1080000000000002710080000000005843370',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a91458cddba2449285814dae43d4ed4a1c9998f3693e88ac',
token: {
@@ -447,13 +464,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '10000' },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 546,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
token: {
@@ -464,23 +481,27 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '92550000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '92550000',
+ },
},
spentBy: {
txid: '0a77eb6a5b08bc91a60a8ed8752ac2d3dc477e0c94624c486fcef7429be47d0d',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 14234353,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
spentBy: {
txid: '0a77eb6a5b08bc91a60a8ed8752ac2d3dc477e0c94624c486fcef7429be47d0d',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '14234353' },
},
],
lockTime: 0,
@@ -500,9 +521,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -524,7 +545,6 @@
},
inputScript:
'483045022100f7f2eac186605f5d37a038b17367a4b6fc5458ca7485ce6b77baf19b4160bcd8022029b5ef41a2ebb4642e9802d32a1649d84c7daf2e978c32ebc7342b90e9427cc1412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -534,12 +554,16 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '10000000',
+ },
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -548,20 +572,19 @@
},
inputScript:
'483045022100b0404d5d553867df9ed190ce52ec13565aaf6e3c8986b712c150acac6d3853f70220727abe6d27a333f72249a08f3b40cd15346c6096466b6118248f92279201b5f7412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 3899,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '3899' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e4420aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1080000000000002710080000000000986f70',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
token: {
@@ -572,17 +595,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '10000' },
},
spentBy: {
txid: '80baab3dc64a3922c8d3ca11bacc6af4f05b103e15e18e9ea7592d926612c829',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -593,23 +616,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9990000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '9990000' },
},
spentBy: {
txid: '4fb3b37c25c8a5cb43f0130435eb33c19b2fdaf4be98b113e580a66ec9340435',
outIdx: 3,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 2872,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'fb6086e1e98f88fdef7abab312dfb68449d1b43d511e1f15c488a8cb804f1c51',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '2872' },
},
],
lockTime: 0,
@@ -629,9 +653,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -653,10 +677,10 @@
},
inputScript:
'48304502210081ba28d95e619fbc5997299a03a0ae2ffa0bf0af66277b6d57087ac45a1a300502202c8cac931e6e58aac9c318f59e31df3b149d240244f6d74fc1b5aa19fad742c6412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 15177819,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '15177819' },
},
{
prevOut: {
@@ -665,7 +689,6 @@
},
inputScript:
'483045022100d117557506158821beb623a0a9c6ecbc88011a1eca397afe910067a994ad35fd022003355bd201f7f21edeedc2a4f3991530043ee9981021887702152418c2b28b7d412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -675,22 +698,25 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999977691',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '999977691',
+ },
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f4808000000000000003708000000003b9a72a4',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a9146ffbe7c7d7bd01295eb1e371de9550339bdcf9fd88ac',
token: {
@@ -701,13 +727,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '55',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '55' },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -718,19 +744,23 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999977636',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '999977636',
+ },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 15176136,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '5f06207dea4762524dbe2d84900cc78711d079f2b2e909867ec5e9abdeb850aa',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '15176136' },
},
],
lockTime: 0,
@@ -750,9 +780,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -774,10 +804,10 @@
},
inputScript:
'47304402206f260f779e10e44d290d7092b4a4f627c5387e30c2e2080e1ac3a726adb33f850220562e7e32bba69f4dad19bf267f1721b9d80e7504135edbb50ff5f1ec1ebf99e8412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 17421473,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '17421473' },
},
{
prevOut: {
@@ -786,7 +816,6 @@
},
inputScript:
'47304402204f6ed41e291f0ad846be2516e7626ed0adbcf64f8a13a05897f61f7ce7f7afba0220559546ea121ad78ae6b2ff91f33e0a083299c0657fb3122a251eb6d05e2a6269412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -796,22 +825,25 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5235120638765433',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '5235120638765433',
+ },
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44207443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d0800000000068c953f08001299507b7b143a',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a9146ffbe7c7d7bd01295eb1e371de9550339bdcf9fd88ac',
token: {
@@ -822,13 +854,16 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '109876543',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '109876543',
+ },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -839,19 +874,23 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5235120528888890',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '5235120528888890',
+ },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 17419790,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '8f6676b602a9f074f10a7561fb7256bbce3b103a119f809a05485e42489d2233',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '17419790' },
},
],
lockTime: 0,
@@ -871,9 +910,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -895,10 +934,10 @@
},
inputScript:
'483045022100889c5bc4aac2b8fba02f2414c596f5458d47acc3f21f8893a8fc5c367ca2559702205fe45c504ed024740df74811f8a75b40831cbdbfdad72aa332112fe0f759f0f2412103632f603f43ae61afece65288d7d92e55188783edb74e205be974b8cd1cd36a1e',
- value: 1528001,
sequenceNo: 4294967294,
outputScript:
'76a9141c13ddb8dd422bbe02dc2ae8798b4549a67a3c1d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '1528001' },
},
{
prevOut: {
@@ -907,7 +946,6 @@
},
inputScript:
'473044022016f9ad02f956cb7160099c80a5899bca83e92965665c9b75f2719f4432ab8dcf02206d7b8f1e29eb2761798cb76f96efc623ec72764f79f8d85320c1c4566fbc08b9412103632f603f43ae61afece65288d7d92e55188783edb74e205be974b8cd1cd36a1e',
- value: 546,
sequenceNo: 4294967294,
token: {
tokenId:
@@ -917,22 +955,25 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '34443689000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '34443689000',
+ },
},
outputScript:
'76a9141c13ddb8dd422bbe02dc2ae8798b4549a67a3c1d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e4420fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa08000000001dcd65000800000007e7339728',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a914dadf34cde9c774fdd6340cd2916a9b9c5d57cf4388ac',
token: {
@@ -943,17 +984,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '500000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '500000000',
+ },
},
spentBy: {
txid: '9b4cad218d7743f1610d73577e2c3c4bcd97a2e70a61e69aea67088277dad936',
outIdx: 2,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 546,
outputScript:
'76a9141c13ddb8dd422bbe02dc2ae8798b4549a67a3c1d88ac',
token: {
@@ -964,23 +1008,27 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '33943689000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '33943689000',
+ },
},
spentBy: {
txid: 'd28244a5f79ed2323c543294d901fc0fe6ecc3c08f2ab4224ac141289daa4da9',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 1526318,
outputScript:
'76a9141c13ddb8dd422bbe02dc2ae8798b4549a67a3c1d88ac',
spentBy: {
txid: '660d23a32becd5fbca89e87a15981953c1ad092ec148f2f04661b3c54d8b5e25',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '1526318' },
},
],
lockTime: 0,
@@ -1000,9 +1048,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -1024,7 +1072,6 @@
},
inputScript:
'4153405b57f5a1969c45891448e99bb69376490bea5ce29240a1152168c72dee5adfb09b84c90b0d4f0e590ba1127b94e2f3ff36877224c1779e04743f2b64d308c121039764908e0122ca735c3470ff3c805b265e54589901fcee0d610f0d31b356f7f3',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1034,12 +1081,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '526349',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '526349' },
},
outputScript:
'76a9146d69b5cbe7c85d87628473c43620c0daa9a8102988ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -1048,7 +1096,6 @@
},
inputScript:
'41e3558233c98f31574ac950c322f43e45f3fd7c4e5462aeeaf034e7263115ddad77cd37e834a1c5c942e552028e17077ef9ea146fdc18986ccf8449efe8ac9d44c121039764908e0122ca735c3470ff3c805b265e54589901fcee0d610f0d31b356f7f3',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1058,12 +1105,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '420181',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '420181' },
},
outputScript:
'76a9146d69b5cbe7c85d87628473c43620c0daa9a8102988ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -1072,7 +1120,6 @@
},
inputScript:
'4102b9d0890ef77f2078e1b6899210039480d66bdef4fdc91c740ecaeec5583f55a731717a32e0dd9252d5bdef096b337ad3ecd57636f6bac8067fc3a78d3c0a94c121039764908e0122ca735c3470ff3c805b265e54589901fcee0d610f0d31b356f7f3',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1082,12 +1129,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '312605',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '312605' },
},
outputScript:
'76a9146d69b5cbe7c85d87628473c43620c0daa9a8102988ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -1096,7 +1144,6 @@
},
inputScript:
'41a81656ffe952c34a011aa55653846abe1db05de068f2e6a6b91de7b5500d72762a8d37b041c2f9a451f58196e7045aaf0a4bb957768395b37b4f4759c823d1e1c121039764908e0122ca735c3470ff3c805b265e54589901fcee0d610f0d31b356f7f3',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1106,12 +1153,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '526877',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '526877' },
},
outputScript:
'76a9146d69b5cbe7c85d87628473c43620c0daa9a8102988ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -1120,7 +1168,6 @@
},
inputScript:
'4112461349af15cabe257ef0290f2a8e923e33cbfcd7f8d34923e95d5afacfff2407a2549f5819760e3c1ece84b20d3276893638ef8636f366338c8c4a0e2b0841c121039764908e0122ca735c3470ff3c805b265e54589901fcee0d610f0d31b356f7f3',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1130,22 +1177,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1780906',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '1780906' },
},
outputScript:
'76a9146d69b5cbe7c85d87628473c43620c0daa9a8102988ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44207e7dacd72dcdb14e00a03dd3aff47f019ed51a6f1f4e4f532ae50692f62bc4e50800000000002737100800000000000f3636',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a9146d69b5cbe7c85d87628473c43620c0daa9a8102988ac',
token: {
@@ -1156,17 +1203,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2570000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '2570000' },
},
spentBy: {
txid: 'ea54f221be5c17dafc852f581f0e20dea0e72d7f0b3c691b4333fc1577bf0724',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 546,
outputScript:
'76a9146d69b5cbe7c85d87628473c43620c0daa9a8102988ac',
token: {
@@ -1177,14 +1224,15 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '996918',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '996918' },
},
spentBy: {
txid: 'f490c4dd2b2a7cf14a04af6efaba9851cd233e753e239ff021296aae4b71ad88',
outIdx: 3,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
],
lockTime: 0,
@@ -1204,9 +1252,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -1228,10 +1276,10 @@
},
inputScript:
'483045022100a7e929b6748902fe6896d21d6f542994f594c96b50f33963ee967011d6bcae9e02203e11d0cd2ac4c4f5efb56e1b2f86ed53d995164e08e3ca65a0b60118a7dd6b114121032f047c5282b9f24806f6bae65d1505ad60b555c2456004301f6253f14240b0ce',
- value: 5000,
sequenceNo: 4294967295,
outputScript:
'76a9144bb6f659b8dafd99527e0c0a3289f121b0a0209f88ac',
+ sats: { dataType: 'BigIntReplacer', value: '5000' },
},
{
prevOut: {
@@ -1240,7 +1288,6 @@
},
inputScript:
'483045022100ae739cec070e17a943aea0b59b74aa2320e6223a90191e598a0695fde4300bab02207889e7530838df5fa792bcbe062cc3b3c6f5378dff4723bf0ee80755af6c82964121032f047c5282b9f24806f6bae65d1505ad60b555c2456004301f6253f14240b0ce',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1250,22 +1297,25 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '205000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '205000000',
+ },
},
outputScript:
'76a9144bb6f659b8dafd99527e0c0a3289f121b0a0209f88ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e4420fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa08000000000c380cdc',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a9144bb6f659b8dafd99527e0c0a3289f121b0a0209f88ac',
token: {
@@ -1276,20 +1326,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '204999900',
isMintBaton: false,
entryIdx: 0,
+ atoms: {
+ dataType: 'BigIntReplacer',
+ value: '204999900',
+ },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 546,
outputScript:
'76a9144bb6f659b8dafd99527e0c0a3289f121b0a0209f88ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 3317,
outputScript:
'76a9144bb6f659b8dafd99527e0c0a3289f121b0a0209f88ac',
+ sats: { dataType: 'BigIntReplacer', value: '3317' },
},
],
lockTime: 0,
@@ -1309,9 +1363,12 @@
isInvalid: false,
burnSummary: 'Unexpected burn: Burns 100 base tokens',
failedColorings: [],
- actualBurnAmount: '100',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: {
+ dataType: 'BigIntReplacer',
+ value: '100',
+ },
},
],
tokenFailedParsings: [],
@@ -1333,10 +1390,10 @@
},
inputScript:
'41976761151559c9edf23b21b314d1003ee8562bce946f3cc56261245354f4536e93320d5f01c16f3efedfd71d8a32798f16ae4ef562ff173297b95ba863bd22df412103b28690ae5178fef9a75901f6c0974e5d5554dcd62ef1962ee26b55d613f0da6b',
- value: 789283,
sequenceNo: 4294967295,
outputScript:
'76a91412934a7a99b69a60c3b99f991cd79d257104f5a688ac',
+ sats: { dataType: 'BigIntReplacer', value: '789283' },
},
{
prevOut: {
@@ -1345,10 +1402,10 @@
},
inputScript:
'41343ae6b5573d542ce7fc5c1ad9d3b3982437f9d3d29fb359ff5c725fb379d73f1e09dc0fb01a9e87ebd21f1cc7c1bf5f9605bef90603489f03845b32b851b75f412102facaf89e3fb087741aea79247dcd947765c07cc7a3b61dd1e00a108e7f09c363',
- value: 19661976,
sequenceNo: 4294967295,
outputScript:
'76a91415c0b62c9f73847ca9a686561216c20b487a0aad88ac',
+ sats: { dataType: 'BigIntReplacer', value: '19661976' },
},
{
prevOut: {
@@ -1357,10 +1414,10 @@
},
inputScript:
'419560a571383df383cc335fe89791675f9e45e00c8fc452c85698d6654822a01dfea76cde4ea4411f9a7a5e3a150c7f0f3fde46d7b2bb1f9446d27d9b911dfe32412102b74d3a97c688764abe5e77aa21784881aa98724f10a323af9e7aff6f5dbf31ef',
- value: 236812,
sequenceNo: 4294967295,
outputScript:
'76a914a4e299724b8e81474df916c25c7a816a43c8748888ac',
+ sats: { dataType: 'BigIntReplacer', value: '236812' },
},
{
prevOut: {
@@ -1369,10 +1426,10 @@
},
inputScript:
'41c7cf7bd61687724127d21a05ae950a88570475f1433fa3a2477407700624d4785b5cf530422de3f461a009b4ac1806cf8ae2e4938613fc412253b5d8f0137435412102f54d7c16ad99d58a1c2118d71584498055247735eddf494b84f5311d1575bced',
- value: 1481924,
sequenceNo: 4294967295,
outputScript:
'76a9147afa62562b93fecaff30190ee3a2836dcb95d42f88ac',
+ sats: { dataType: 'BigIntReplacer', value: '1481924' },
},
{
prevOut: {
@@ -1381,10 +1438,10 @@
},
inputScript:
'41eeeff8f9f55d7a9106346ca430cb15ab38e3ae49518a9bb0377f614f64e1679c6218a4b60cb086ce406fd0eb298a3ccb7dd09fca20d96dcbbb489acb5ec82d37412102e1065480d2c5df584ee53b6a121103c4f084d37d8932dbf04d10fa674b4d258c',
- value: 1923633,
sequenceNo: 4294967295,
outputScript:
'76a91468e15e8bfe2d969b7963181b976e6833e294661288ac',
+ sats: { dataType: 'BigIntReplacer', value: '1923633' },
},
{
prevOut: {
@@ -1393,10 +1450,10 @@
},
inputScript:
'41670d46d9042b979fdbc2ccb50df231dc8f8dfc8c9ea66180a41ca60ad498a05936b8683daa93281bcf46a18ad838f80f284cccc1de04931381d3279c93e109cb4121020be1664f1cc506d056017b7072633452b3571724560bb73dce68a160cd9182e6',
- value: 12566124,
sequenceNo: 4294967295,
outputScript:
'76a914f941b2e03f973ce5b13766159eef190963e2393488ac',
+ sats: { dataType: 'BigIntReplacer', value: '12566124' },
},
{
prevOut: {
@@ -1405,10 +1462,10 @@
},
inputScript:
'412b5195fe17713edc3b58102ef3e60ef06fe50229e65dd143f23a9a6edcd7956a7148c9d038891a866b0e98627bb1f66f1c9f43ab7716bc5455ed1cf599b553f6412103da9dc1e5ff5116e6d8b4535b9e565e0c5323316b240043ede4f9bf8ae6927bf4',
- value: 20033202,
sequenceNo: 4294967295,
outputScript:
'76a9146e3430f87a128ac4509fb0547f07ba0e3e8cea7688ac',
+ sats: { dataType: 'BigIntReplacer', value: '20033202' },
},
{
prevOut: {
@@ -1417,10 +1474,10 @@
},
inputScript:
'41c07981287684a57d6dff05fe35bb9cf49682be07b51fc9bd1aecdb50dfeaf5646d6bcbf04e45d711ef229fa2564197bc7c21994180491218c063cde76f733de64121020c2f45d704ca5ef65d16520512184601411e4704da88ccaa21ae5d116dd62e27',
- value: 30370886,
sequenceNo: 4294967295,
outputScript:
'76a914c72166790bc8c779163e17b11939a6bd6022a7e188ac',
+ sats: { dataType: 'BigIntReplacer', value: '30370886' },
},
{
prevOut: {
@@ -1429,10 +1486,10 @@
},
inputScript:
'41628d99c6f5ffefb2e8b33874caa20b26a9b2b26a3a353738cbe4f82babb6800f13aa0eef1575cbda249a5488407d6f34614c610613e3e27fcb20b93316e0be2c4121021e0eda5f4d41e5388cae8ed899fcde2571a155b23e8d25199eae7b674f8a3335',
- value: 37898355,
sequenceNo: 4294967295,
outputScript:
'76a91483c54d6ec805f4db16c935f5bb89da791f971ac888ac',
+ sats: { dataType: 'BigIntReplacer', value: '37898355' },
},
{
prevOut: {
@@ -1441,10 +1498,10 @@
},
inputScript:
'412c5a59a5176563765df132213db2d7767112dfc45df859091d8336dc472df44809449bc9bfcdd29dca69d5784976f04401d4910483f6150b955adc08faa7adeb412102d8ba67b96c5a0371d96d5270f85ddb02b6e9fc4801bd1e85b1877edb52ffbda6',
- value: 2489718,
sequenceNo: 4294967295,
outputScript:
'76a914336fb64b7e98221f82aced275440c29e7e1d11b388ac',
+ sats: { dataType: 'BigIntReplacer', value: '2489718' },
},
{
prevOut: {
@@ -1453,10 +1510,10 @@
},
inputScript:
'41581270a283d4512a3ffc4179ba1c6650534740b2f8c115c6348d029850d00a5cf3acb70cdb059acf3d6dff94753f8f574acc1e3019df797275be79d912709a294121023353579f3a7d6b492db0132190e675f92564aa23d2b9c3d79654bfab0bba4830',
- value: 5710023,
sequenceNo: 4294967295,
outputScript:
'76a914b114a9d636ac7558c04e902c3a1f7c1fd9008bcd88ac',
+ sats: { dataType: 'BigIntReplacer', value: '5710023' },
},
{
prevOut: {
@@ -1465,10 +1522,10 @@
},
inputScript:
'4181ae55a349cc2864b2839d67764c8a88d9f5f8e322d16465df763529cc56238b4ad990c617431d17607c43421030c3bb83758da3023846ff5f1a425179311d6b412102c69259026f5ad94372a1d98de97374adda25aebc6858dca8511a9ac1cb95287f',
- value: 8237826,
sequenceNo: 4294967295,
outputScript:
'76a91411667c453097adf3e71d08986df7766c26f3399088ac',
+ sats: { dataType: 'BigIntReplacer', value: '8237826' },
},
{
prevOut: {
@@ -1477,10 +1534,10 @@
},
inputScript:
'41d7f92d59288eff61e959f9c59cda2b33ca15dbececb2d632f08026aae5608167b401f5e39f3e35a812eca83310ec06c89606eb053eabef78b6838f3306584963412102916d2b0bedeef5c35659f8ea8e54871cf3a2241b85e696dfaea797fb3ac19d93',
- value: 8485409,
sequenceNo: 4294967295,
outputScript:
'76a914a125966da9024acea37f867323778641ff0e891888ac',
+ sats: { dataType: 'BigIntReplacer', value: '8485409' },
},
{
prevOut: {
@@ -1489,10 +1546,10 @@
},
inputScript:
'41b2f767347acd9142d5f0f9754a2dbf79575eaf9f29e124b15b3536d0ceade8bcdd31d04656ba63f44cd144d66ff724e602c3080b66329b29536e4f9c1fae922941210278ea288a9f62d52ac4d9301779ce177a9d8efa2c650205dd80e895c8f10bec4d',
- value: 24067273,
sequenceNo: 4294967295,
outputScript:
'76a914e03ba5757763a00aaa8aa9eda71da51610d5ef2788ac',
+ sats: { dataType: 'BigIntReplacer', value: '24067273' },
},
{
prevOut: {
@@ -1501,10 +1558,10 @@
},
inputScript:
'41b2c968dfd3653975ede62f15eb0925cad47d06ec2e01a597efe8aa0db73f9af79090dbc3adad9bcc11a9bdb323240ea178cbe8641907a3c9dfa5e01652bceaee412103d0d7f54b4cf2be2f19d4eceac703f445e1223a134fed95fee7d7d6fedaf7f1fe',
- value: 25912582,
sequenceNo: 4294967295,
outputScript:
'76a914b13b05d51174d91381b0ea6fb07a6345eea1abf788ac',
+ sats: { dataType: 'BigIntReplacer', value: '25912582' },
},
{
prevOut: {
@@ -1513,10 +1570,10 @@
},
inputScript:
'4195760d04133191dce89bf872b61ad771f9b33db8f36c249418d0cea3e1c7f73e4bcaf151103effd88f82911a831f2e552961df731f7cb4d87db42f97f9ef4d11412103dbd5c06a2afaeef2240ba22bb6c7650d51d18ec16e4ea3edf4ebd795760f96d8',
- value: 32513005,
sequenceNo: 4294967295,
outputScript:
'76a914349c3f91c2782b235ae0d1a2c3acf053d554170788ac',
+ sats: { dataType: 'BigIntReplacer', value: '32513005' },
},
{
prevOut: {
@@ -1525,10 +1582,10 @@
},
inputScript:
'416e3713337d09659305d797115c9281dc060d65f45a491828ae6e6676db691d4f9d0c473000806d2254303b99effab78ace1f85da921bf22c8a47fe89c465a7dd412102258cedf84db0614de15c53a92010e0bf2371c386403457385ed0c1ab8ba38e29',
- value: 70247919,
sequenceNo: 4294967295,
outputScript:
'76a9143afafec322ef1a4f70a6ca68dd9090182716181888ac',
+ sats: { dataType: 'BigIntReplacer', value: '70247919' },
},
{
prevOut: {
@@ -1537,10 +1594,10 @@
},
inputScript:
'4198de475fa1ce6eaf983ea0a021ed49ef35c3a96cbd4ba88769b1db92c0455b40e50261eca6c7d7a0edf8a8f5fec1fcd405c5cc9c19c2db691ee7652866ec704541210268a9995c00a0588bada4e48264f7cd0fc1c139bc8ee1b009d1672a5700689c14',
- value: 1199454,
sequenceNo: 4294967295,
outputScript:
'76a914cb74cf87cd355cd01505645eaf165646a4eb1ce988ac',
+ sats: { dataType: 'BigIntReplacer', value: '1199454' },
},
{
prevOut: {
@@ -1549,10 +1606,10 @@
},
inputScript:
'41d735894ba83cdf74b971b1ae8903ac72215378941798b3f98389c845f1092edd186648e1108632bb98ad4b85a5f3aeaaf1468498e8a61c29043f978acba2713e412102c6a66170358d332c880609845feba09445468dbca3977f8243b71f7708a38931',
- value: 3496387,
sequenceNo: 4294967295,
outputScript:
'76a914c42245ebeb7fea2996e5e0f65537b56fb58ea97d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '3496387' },
},
{
prevOut: {
@@ -1561,10 +1618,10 @@
},
inputScript:
'4127e265aaa3ffb1188d61c01f48597045e0b20cf03d6c0a6d261b825759c1402e8a81ed03d6b7f02dd9d433931d8d56e8c4c3c929bdfe6166864ed13fa6a14c2041210247e436fe91fd245894bdc61f01fac054f2c2a9e14e3b16584d28d0396546b208',
- value: 30653501,
sequenceNo: 4294967295,
outputScript:
'76a91447d7bc2240955fd18d53c67c4b814e166b152ec388ac',
+ sats: { dataType: 'BigIntReplacer', value: '30653501' },
},
{
prevOut: {
@@ -1573,10 +1630,10 @@
},
inputScript:
'4132fab3b2ee76ff4f2a9608029ff01a499f04b048a53238d09f2ee5545667e5d76053ac9a018530aded8f06e07b096caed77d6d8b436e9325deca58ec33381f1b412102677e892b57954785abea57b508662752d134e1b85b0cf8c924c382e957b424f5',
- value: 54383530,
sequenceNo: 4294967295,
outputScript:
'76a91410b45d95195a71957b43bb82762e6cb48e67888f88ac',
+ sats: { dataType: 'BigIntReplacer', value: '54383530' },
},
{
prevOut: {
@@ -1585,10 +1642,10 @@
},
inputScript:
'418c33f23f296bd45cc26514ca2acb394e76e0c0085af0f5bb72fe94192f9f81d3cb3eca750aa64d8b73c0ff11d3788b46a08b308de793789a0db203fcaae7f4334121025754d300a9c992376c28aeb2f711579e072ced8a6a9f8f6f5046e2dfb34773ef',
- value: 48782413,
sequenceNo: 4294967295,
outputScript:
'76a914894e84afe4b07413c99087067292aca67d286fbf88ac',
+ sats: { dataType: 'BigIntReplacer', value: '48782413' },
},
{
prevOut: {
@@ -1597,10 +1654,10 @@
},
inputScript:
'419585e642c12308cb16dc820f8432ca140ce85050711a2d0ddab19836248a6e8c7327c8256af217010b812593753105959f3b9d957c77f7ae81b1798cbe1322b1412103a3325e9436167659795eb6984a33b890c7e31a2d2b860300a892bd1f6d186220',
- value: 25031767,
sequenceNo: 4294967295,
outputScript:
'76a91473b804181c01f16cbf63fe262e9a0c8de929af1e88ac',
+ sats: { dataType: 'BigIntReplacer', value: '25031767' },
},
{
prevOut: {
@@ -1609,10 +1666,10 @@
},
inputScript:
'4167257a33b15c13d334a2d69bb9b466c3dbac7a9017b1bcf461eb07a3443a6adba372908235a3262685d9d634dd2341547bc086c617ea3df0412452a67b0b291c41210248db002b83e2c614ae5b956b686961823edf5bb0db2bfa4964a24bfbcfea2c7b',
- value: 29615068,
sequenceNo: 4294967295,
outputScript:
'76a9147b1a9441467759f8693bdac3e356ab6110bebe1c88ac',
+ sats: { dataType: 'BigIntReplacer', value: '29615068' },
},
{
prevOut: {
@@ -1621,10 +1678,10 @@
},
inputScript:
'41de35e2cdc2e176b24d8f519d84a27c9b13ac3f01ecfb850c92e9a7c2969f2bb1d86d8e00572785bde21d6da669fa131c20e368ffeb0157349cd609bcde748b6e412103a302b269baec427ad945dcef291a2b9bb5f91ae1d287899a66bb34b3d4d19f95',
- value: 3563255,
sequenceNo: 4294967295,
outputScript:
'76a914443f7cf9987b921c10d888c3d617c54aba5e8fb088ac',
+ sats: { dataType: 'BigIntReplacer', value: '3563255' },
},
{
prevOut: {
@@ -1633,10 +1690,10 @@
},
inputScript:
'41dcb57eb57157c7ae624a100e5f4c71fc2173eb81befff2f15b521105ee553f31118d2eeec770c8e43a6a2ff15e689d81128239184ae7d844a9b382a84906e446412102321799e9dc1c2dc6c9ddfae967c7bb81bb2e64d2c59d57d35c3ca8292de56291',
- value: 11787007,
sequenceNo: 4294967295,
outputScript:
'76a91490de1562e4aadc991dc13d28a9d112461fea9cb888ac',
+ sats: { dataType: 'BigIntReplacer', value: '11787007' },
},
{
prevOut: {
@@ -1645,10 +1702,10 @@
},
inputScript:
'4157367017cd6dc848750f538e5fd32b0d7b1f69bd7b2bca0e43f772374d65b8e1558acf8544c577e2ebc4368b320f07c25f146fa004fb30e45fb8c9ae608b8afd41210360955914b784f0100bce4935f6f17c1417387598b0bebd1d7c15fc2ebb27403f',
- value: 23443485,
sequenceNo: 4294967295,
outputScript:
'76a914273808f74a845b9b77345d43cb679ca793c5e9e688ac',
+ sats: { dataType: 'BigIntReplacer', value: '23443485' },
},
{
prevOut: {
@@ -1657,10 +1714,10 @@
},
inputScript:
'414d146e2e20940c99323f0502114c2afbad68e1d772cd20bdf8a7d7894c5775952af95dcea59dc8e91ac4cde30af03cd308e4092c5d6a0a7ccd7a131599448856412102b7f55d64e8ba20077f2c9e629c312e2da2667689cc7835d6b5f9fde0245d1cbc',
- value: 26370841,
sequenceNo: 4294967295,
outputScript:
'76a91402a6a02a8bbdc6a9ebeb74bf5d8b9f7d20ad386688ac',
+ sats: { dataType: 'BigIntReplacer', value: '26370841' },
},
{
prevOut: {
@@ -1669,10 +1726,10 @@
},
inputScript:
'41ea0603fcf7d14ccdc4efffc0f3c651c4e3ce57c404b2bc9fc5f71fd652a7ce2ba3cb1895206ed3b59ae0d58071912b3ab3f46a1f0dd5539b254ae8b0740a0065412102b7fc7453a54a1ba3f31046d9ec78e102f640cade834efe5edd3a0d0a947844e4',
- value: 3053762,
sequenceNo: 4294967295,
outputScript:
'76a914fcc200903ed9167def3df599c599d0c98b2cea0588ac',
+ sats: { dataType: 'BigIntReplacer', value: '3053762' },
},
{
prevOut: {
@@ -1681,10 +1738,10 @@
},
inputScript:
'41e80a5eba60db24a51c0599b6b2e721cf9a46bf818fe0e9cec40b855ea5a928e24ff25767d3bd34d6d6c184d50590f20dcf73a73f9ee56ecc7a5cdfed65e5f710412102f6553541f1d9cd9faaeaf53342ac09a2c7c6b5a598c112060a6f3f894ca50851',
- value: 3278623,
sequenceNo: 4294967295,
outputScript:
'76a914692a38590fe1786dca47d2cbcc0ee30d969ca0c788ac',
+ sats: { dataType: 'BigIntReplacer', value: '3278623' },
},
{
prevOut: {
@@ -1693,10 +1750,10 @@
},
inputScript:
'415bea41b13af76e10f4807c43fb577363399b369b1d83bf2382fdef48235a7c32a2ef9d3a98156458ce3e85df259b5351d37bf9a144f2eb736fe562542bd0479c41210285cdb2a7fb877c0dde24ab437ae152ee7e8e32e9c850f16fc5f9ed23a95bb53c',
- value: 3534883,
sequenceNo: 4294967295,
outputScript:
'76a91486b2a4458787245715865c9ea5e42f8d68e8828988ac',
+ sats: { dataType: 'BigIntReplacer', value: '3534883' },
},
{
prevOut: {
@@ -1705,10 +1762,10 @@
},
inputScript:
'41751e7046792b1f4961d3c6369d24fad477f0be0120a3b89afe6768d6e4dfed8b24634f020178308fc07065f1c75552277611241313aea2174e355a3a395aecbf412102051de8523c2910874441e60fb9216be126effc875a7fe94bb427fb5c6fa353d6',
- value: 7546746,
sequenceNo: 4294967295,
outputScript:
'76a914c472cd5ea7282180aa6a663498e98c2b781afa0488ac',
+ sats: { dataType: 'BigIntReplacer', value: '7546746' },
},
{
prevOut: {
@@ -1717,10 +1774,10 @@
},
inputScript:
'415750a10a4d6d697b0e7a69c69b5ea5ebc2c382153dafed928cbe1427a9c50bee62dcb3623317b4eec2d1563eab85f8bf7b9c1bc72e981dd4e546e6588ab864b9412102d9e8928fa33d190ff0dad48989804494016914fa7ace7461793a95b4ea4b7928',
- value: 11875440,
sequenceNo: 4294967295,
outputScript:
'76a914457a8a10ca1b8ab373c7e5e9ea7d784e8ce2efd188ac',
+ sats: { dataType: 'BigIntReplacer', value: '11875440' },
},
{
prevOut: {
@@ -1729,10 +1786,10 @@
},
inputScript:
'412dbd961304300e86d8589586f5553757ff2ad49ad7f5f044c4f4b73a95a81d6b853d35f21de4b058743be38b0d3f239690088897006658591294a875f5400f2841210203553bdf5e4c0406661b10b9bba39ae1920144eec88414acd18bd5ec838f31ec',
- value: 12066672,
sequenceNo: 4294967295,
outputScript:
'76a91406cbe837f5a8b81ec8fddcf6e46c15b84b43965788ac',
+ sats: { dataType: 'BigIntReplacer', value: '12066672' },
},
{
prevOut: {
@@ -1741,10 +1798,10 @@
},
inputScript:
'41d6eb014368a0f5afc239a5524ba482f04fbf9f93e5604a60fbf8de342f02f6af70433dd065b9d6c879442d32a1370de5c623796f492f62f703a502f0723bf36f4121029007d7023dd0a6b7bcd1c9ca995d0b707ee727ddf4fa035e93d245554f9dea34',
- value: 31042739,
sequenceNo: 4294967295,
outputScript:
'76a9145ab8a85ea3f6bf3a69b15b9f7570aeb021df77b488ac',
+ sats: { dataType: 'BigIntReplacer', value: '31042739' },
},
{
prevOut: {
@@ -1753,10 +1810,10 @@
},
inputScript:
'41bb8e694016dfb2b475a93fd6478ba4d97ce55b4753b4552e0ce46bf477a66d28f7f8bf63ef1fe770acc281c8305b7579648c60de4b1f4cf7d2ac783f09af5e1341210217c675b14a2e262379af4407533eb2ffb11df17394feb380be4f272b2c3c9b63',
- value: 34725141,
sequenceNo: 4294967295,
outputScript:
'76a9149704c9d13afb31a9b84ea5cb56140499e54743bd88ac',
+ sats: { dataType: 'BigIntReplacer', value: '34725141' },
},
{
prevOut: {
@@ -1765,10 +1822,10 @@
},
inputScript:
'4157fa15e1e46502edabc7a33472cfafd75fd88ff75331cdd6e1cdb28384e69cac7b4529ae34cf37f3e68699d7921da7354bbd9ade45c2487a81b7935d9a46817c4121036e3cf1f1fe4d0be25ab9cfd2acaa0617ad06a6ab6cbffd2ee01380fed51db99f',
- value: 4898437,
sequenceNo: 4294967295,
outputScript:
'76a91423dab92affaa336ae18cab2669d116fbfa55b0bf88ac',
+ sats: { dataType: 'BigIntReplacer', value: '4898437' },
},
{
prevOut: {
@@ -1777,10 +1834,10 @@
},
inputScript:
'4160979fb8cb7cdb2ebf7e3fe9f8d9cd0d287cd574c0192b10d795c9e57f69135250e8bca7cc024c6d3392e6f6e5445d78bfbade6d84633fa88e3bb404a3ec3767412103bf8958e3824e6ef7710b8a212ccf1ad13488ec8951d4efba45e836e921b15da2',
- value: 5379161,
sequenceNo: 4294967295,
outputScript:
'76a914c6a520edfedb88ae478c1fdb309739d62d47dbd088ac',
+ sats: { dataType: 'BigIntReplacer', value: '5379161' },
},
{
prevOut: {
@@ -1789,10 +1846,10 @@
},
inputScript:
'41b79dfb5bf4c291742010c1e0b8972665c1a8e583bff07c26bb2f35125a43f9362fc88f7713547c3b19085eeb3b9933aaeb1820168fb7fb9a1173dd6d9ca011cb4121039060518676dea799bc646eaf5a86e2c6e38e6a48d8c809e125e6ddb29ed63941',
- value: 8316321,
sequenceNo: 4294967295,
outputScript:
'76a914388d048805daa142def4833f5cb1e02db7013a6f88ac',
+ sats: { dataType: 'BigIntReplacer', value: '8316321' },
},
{
prevOut: {
@@ -1801,10 +1858,10 @@
},
inputScript:
'41c2793e60ee18ac376d860fe3a6abbe5e1c8b562c661a5888c24ccb5def8f9fd56b1db4cd28ffd2becba4acce97061cd85432ee7482ba239200a929ada7acf960412103f2e23426245b7e8a64af3b3dfceb9dd6459467b72a58ff7f2fa7f3d885b3861e',
- value: 35352936,
sequenceNo: 4294967295,
outputScript:
'76a914cf55018839d8ab8b93de655551357d081f8120c788ac',
+ sats: { dataType: 'BigIntReplacer', value: '35352936' },
},
{
prevOut: {
@@ -1813,10 +1870,10 @@
},
inputScript:
'414b06e85ca333742e179aa5f2088b44bd40cd403625e6cb5cf8f0e80afe13fa058890656c653a6d6f2a9aa1b22af346928424330e9f701f8214c4409bc2e25495412103efddc9a5ddb955265e7006ddac64c2eb46bafdd882dc65dcaf276c1d0def176a',
- value: 40175305,
sequenceNo: 4294967295,
outputScript:
'76a9147eb48844af0ceae69879fd66456a5afffed24cb788ac',
+ sats: { dataType: 'BigIntReplacer', value: '40175305' },
},
{
prevOut: {
@@ -1825,10 +1882,10 @@
},
inputScript:
'41b0949073aa877f7fa76933c4fd68f9c8b482a844cd6362cfa10fefd782ec74a00a9cb268faa693aeb6861ca8a74a842f1b5b58279314421fa4714688883e94f8412103f0ba973ac5827cfb13ff7015ad2bdc5fbf322e369c71fd1798a9ee3c1faea606',
- value: 40956943,
sequenceNo: 4294967295,
outputScript:
'76a914e94c40d02b7860a76057a48b826ef847372eb74388ac',
+ sats: { dataType: 'BigIntReplacer', value: '40956943' },
},
{
prevOut: {
@@ -1837,10 +1894,10 @@
},
inputScript:
'410e57d52ac09032c8d9b78973af542c65301d16c7c9af11d7e8c5a5ef600bbde36dfa545c88490ce88ddc300658263541132a765895d51deab392f31c95fc2d21412103ec54521d0f77db84614164b9f294e8db801fcbf5c5681192d9b1479cf88287c2',
- value: 4594328,
sequenceNo: 4294967295,
outputScript:
'76a9148fddf18aecb230772dec7d9fa6ec5c2eae1303bf88ac',
+ sats: { dataType: 'BigIntReplacer', value: '4594328' },
},
{
prevOut: {
@@ -1849,10 +1906,10 @@
},
inputScript:
'415a307caf8836205fb11e2464b77ae02919ac3a9dcfcfdc18d9d79860a4c495301389fecf65ea97723717b38d489d71e4db3e53bca9f1c6bd5fdba3204e5421d54121025b736a838ac5bceb5b40988e49c32902d5989f3fbc9051ec98ba0b6808ef073c',
- value: 7254551,
sequenceNo: 4294967295,
outputScript:
'76a914687b26740360cae141c61c9e5dcb03b6100dc42b88ac',
+ sats: { dataType: 'BigIntReplacer', value: '7254551' },
},
{
prevOut: {
@@ -1861,10 +1918,10 @@
},
inputScript:
'415088aa133d722e072f1a090eb676c025de7154a2d2e2bdd6812b58b1101ceb53e6c0b27e24412045044dcdb06e88276f4f4a63e28f98c39b3d67453e5dde9d5741210271ba59b7662f1f7a346065cfa4738cf05521933841761b9cfa31f5e72349f494',
- value: 9563229,
sequenceNo: 4294967295,
outputScript:
'76a914c9fd6f67f21b1970264ba239e82d4a3c40e2063188ac',
+ sats: { dataType: 'BigIntReplacer', value: '9563229' },
},
{
prevOut: {
@@ -1873,10 +1930,10 @@
},
inputScript:
'415a220e9c760930cfceec2c3d60958e313cb5cecf99ef7fb70c6e26dca5c5b13fe4a64db7fbc2cb26b9b619964fd76f35a2f35f0c4c78c68d8b1705737141e26c412102d190001af9db94b3de57d023ac2d17d0d62d7b5b6c351fd25b77ba2be0223539',
- value: 9731469,
sequenceNo: 4294967295,
outputScript:
'76a914cfbdaf0aaed19c7fc5e2a39e77cc780db5e333b588ac',
+ sats: { dataType: 'BigIntReplacer', value: '9731469' },
},
{
prevOut: {
@@ -1885,10 +1942,10 @@
},
inputScript:
'415bd5dd0c5198a32c904eeaf61bcc02e473895b5e7e2f5f8e86486eb9a53f7608981be475a2dd42964d4fca04bca1e29d5b18fe6ebf0d4ebaebd7687b8327e8a4412102822ab05d098e4f0f455263f970104eeb0942ccd5f3e36415af2b202b5ace86f9',
- value: 15786585,
sequenceNo: 4294967295,
outputScript:
'76a914a17017d5f758fcc1372746bce8509c3d23f218a788ac',
+ sats: { dataType: 'BigIntReplacer', value: '15786585' },
},
{
prevOut: {
@@ -1897,10 +1954,10 @@
},
inputScript:
'415f3acedc835b8fceec445222063ca869d4260d89746c16746f237ea244c4412011ede5b644040ecd62e0761216924226b985217ce56cec35054fdf20ab288b6d412103d6fdcf7626fe46d001e5bb777d92423a056054084d61a2c0ffc91a0c0cef8df1',
- value: 21867579,
sequenceNo: 4294967295,
outputScript:
'76a914d179b30a22db1d4aa04c163f7c1474fc1fbb5c5588ac',
+ sats: { dataType: 'BigIntReplacer', value: '21867579' },
},
{
prevOut: {
@@ -1909,10 +1966,10 @@
},
inputScript:
'41fed29d22902a017b75ec8e04c708f964145e791f5c368c318951f9f23b063c4c4777fbfc07c0107fef490fc4d6495a64de759a384f478bf1c12b84d26d21986c41210351b5cbd17fddc51a2add3d88a1d9fabc29c56ca6d3e912bccc71e69a6342728b',
- value: 71746009,
sequenceNo: 4294967295,
outputScript:
'76a914f3f590529240d25b82fe10c18efbb64a64f9625988ac',
+ sats: { dataType: 'BigIntReplacer', value: '71746009' },
},
{
prevOut: {
@@ -1921,10 +1978,10 @@
},
inputScript:
'41dd8c68989718bf445ab5d7809b6516cdec095eab8acfc2e34d8ca9670c1502b8d1a677ede2d4000f4588a82b78282912aa27f83338f69cbf3fad727e81b80da141210300570f3c1121d37167795f36dbe7bf4bfbfbea4b04507f5ca42d2dfdaa85983b',
- value: 1688043,
sequenceNo: 4294967295,
outputScript:
'76a9143856ed1d33df771934e14e0446518fa21c8ef6f188ac',
+ sats: { dataType: 'BigIntReplacer', value: '1688043' },
},
{
prevOut: {
@@ -1933,10 +1990,10 @@
},
inputScript:
'41319c8dff13ebeec17d74d83a8c728c8ce913e10f4b2291d2a99457b404833558f591d3c174aef7e5c637e0aaf6d2ab3a250af3549ddd6b52d4232ade8aed48b4412103387c765fda65b283de425b4fa1388727056c325bd22fa698a4ace6df5ba6fe91',
- value: 8049989,
sequenceNo: 4294967295,
outputScript:
'76a914d26a1fac6b5c02e98e839956f3a7547d0c1b5c0088ac',
+ sats: { dataType: 'BigIntReplacer', value: '8049989' },
},
{
prevOut: {
@@ -1945,10 +2002,10 @@
},
inputScript:
'41260777d685ff3b0552995d998880509ef6af55383d352cedc88854c40e243832a2dbdd86b1503b93ebb5e2e3f1f6da1dae27a0cefca73d40a8995ad69ee5d033412103ca8f1e6ef5fa63f97fd1b05a6421c1d768df37c2b6b28764c1ecd73bab20a13a',
- value: 15469696,
sequenceNo: 4294967295,
outputScript:
'76a9147cf1203b978724009018c3a5e6a605590f6e9fed88ac',
+ sats: { dataType: 'BigIntReplacer', value: '15469696' },
},
{
prevOut: {
@@ -1957,10 +2014,10 @@
},
inputScript:
'41d50570bf2a07db56c2e28faaa9299ea251b66a0388d0c816c7591c7c8c3b90e013560d12266b45c589e2badcd1753e35bc7caf88db1e80d119c9ad77c73044184121036abcc7db8ffa1dc62c2c0ee5f87011e819e4f15f40d70186cd7acc9e2b705f2f',
- value: 3192502,
sequenceNo: 4294967295,
outputScript:
'76a9146e56ad4a85fa5e2d03f3bc16b52cfcab65c5e74188ac',
+ sats: { dataType: 'BigIntReplacer', value: '3192502' },
},
{
prevOut: {
@@ -1969,10 +2026,10 @@
},
inputScript:
'4149623ef1ee7ace2c8f33db67c9b2ba5d720e47b95242afb1aef62c9d7e4bf7de91cb4236daaced175a55f2946e13b76b7a403c90f77082ed74c922058c2826494121026292302c75da128dfdf92827bad355bb00f677176e630c2fc7f4b8e8e4144177',
- value: 93002901,
sequenceNo: 4294967295,
outputScript:
'76a914d17e89b26be59dfdbbd2582afdbf785cc11ad56388ac',
+ sats: { dataType: 'BigIntReplacer', value: '93002901' },
},
{
prevOut: {
@@ -1981,10 +2038,10 @@
},
inputScript:
'4136f2d23997838269068038af56408bea30e58d2aaa24eac9798cd7fbd544fd2afbb021178360ec86383f54ea6de1c6e32ea83e96acbbbbb87319614e4aed04ce412102d1dad4b5d20dca9c748452c3a3d64e8d589fe31edc8cdef66c6b083a34733af3',
- value: 2523800,
sequenceNo: 4294967295,
outputScript:
'76a914888bdff661832d406351713b49c683776b90e7b088ac',
+ sats: { dataType: 'BigIntReplacer', value: '2523800' },
},
{
prevOut: {
@@ -1993,10 +2050,10 @@
},
inputScript:
'41dce1809ca31e4db35d4406f14d1f7da2810a2c662e281342f64e68315f400428c9d7d574faca017044f616b82c63a5c00016212e85cdf1ed4298a2c8db3d8eea41210279aca93bb100bdc842f277f032c8854d089381350609cf5980f904e994201c52',
- value: 4330481,
sequenceNo: 4294967295,
outputScript:
'76a914e58661c82c66669cbaa2d1e813009d0b5d2fafb888ac',
+ sats: { dataType: 'BigIntReplacer', value: '4330481' },
},
{
prevOut: {
@@ -2005,10 +2062,10 @@
},
inputScript:
'4178d0f9b72584bf409e1c72aa30ef0cbf4449e5d8ecb74d730045bc8397cc870c64af6918f62ce39b4b51f01b56c24c9bbaed750649625ec3eb5383738fb0b5ca4121027ed4bb82bd6ac94dc17035738a21565115f92b842682c9c7fcd6108b767ead7c',
- value: 7600077,
sequenceNo: 4294967295,
outputScript:
'76a91463b5940d2fd7d998b343a54986ca375ff8cd2bbd88ac',
+ sats: { dataType: 'BigIntReplacer', value: '7600077' },
},
{
prevOut: {
@@ -2017,10 +2074,10 @@
},
inputScript:
'41569f9dbdf60f88d56bebbc24ebc8a48ffc3e504af9a4fc8d027d2aa30da0113f30a042028a631ed87333b10f988c49af8db233812019e63f0d4892674de2c3d8412102128780d9d337449c3b2b9cd1008a25acf895fedb6f2706e74916943e3c2d33c2',
- value: 66688896,
sequenceNo: 4294967295,
outputScript:
'76a91490b66329b172fd43feacbbb461c54183eed1bd5d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '66688896' },
},
{
prevOut: {
@@ -2029,10 +2086,10 @@
},
inputScript:
'417c5e22211868b30521f5421a1ccaf00e0ae2bbf393f9b33de9e126b4481575eb2baaa6f47bd74c204bdebf8a0c0a522c3f500c92f3df2fcc539dfa2fde91a605412102128780d9d337449c3b2b9cd1008a25acf895fedb6f2706e74916943e3c2d33c2',
- value: 5668556,
sequenceNo: 4294967295,
outputScript:
'76a91490b66329b172fd43feacbbb461c54183eed1bd5d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '5668556' },
},
{
prevOut: {
@@ -2041,10 +2098,10 @@
},
inputScript:
'413803bd25ba0ff5cd0414441dfc96cf7efaa7b6b944b4611845c4c60e075cf212c57706830e19b4007c7f7ae17c4be3ab20210662bfeb3102ba844ff22f1259c04121020f29f7a7d46ee6c29de9dec33226b4600a83a00a44ac085278c9b7ff3c8fb3b5',
- value: 9521209,
sequenceNo: 4294967295,
outputScript:
'76a9142fd4bdafad85abcb999c4bab8a2901f92caf487988ac',
+ sats: { dataType: 'BigIntReplacer', value: '9521209' },
},
{
prevOut: {
@@ -2053,10 +2110,10 @@
},
inputScript:
'41f9f621a78ec30bdd9ef8502039d4a6f97732b31f39b591d96b1c2562f951e41cc89f0aebddc39b532a1255951556fbf5bf28544a7f9c85620303bc620dfa99d1412103d3c212b78eeaa67599c99479c11259100f8d44f5e93a2620b1e7264ab4cd222f',
- value: 13527166,
sequenceNo: 4294967295,
outputScript:
'76a914979d66b56061bc4b7ac2118f54aecbf86ae5773888ac',
+ sats: { dataType: 'BigIntReplacer', value: '13527166' },
},
{
prevOut: {
@@ -2065,10 +2122,10 @@
},
inputScript:
'4154b81b0cad31762ded80ab3f5e159fe0245553e1b6e69d153b8c3cb1d4f9064b89d9d8f29b09be3c8191e93ddc7f45c42c016d9b41859a8da851087e1a73a0be4121032870664b4cf912df5171a4a76b0c7c89bc3f9422070e380bc6ce93e02018d886',
- value: 76789054,
sequenceNo: 4294967295,
outputScript:
'76a9144724b6e46690d083ece0390ced609aeb0488486988ac',
+ sats: { dataType: 'BigIntReplacer', value: '76789054' },
},
{
prevOut: {
@@ -2077,10 +2134,10 @@
},
inputScript:
'413f34f797ec73f8fc8579008566f790a95da2c02311f1da1f6bfc4a21c72e8bd56bf8b134d2d1e409a53e372825b9c5267d23a87a8599b56129694f25c24a1cf44121030d1c53703449c09a10a12ad03997d2874052f53746f4436d1a108cc20f528407',
- value: 35013098,
sequenceNo: 4294967295,
outputScript:
'76a9142342542a4947b9bfcedffa803b369ec8c108b0b488ac',
+ sats: { dataType: 'BigIntReplacer', value: '35013098' },
},
{
prevOut: {
@@ -2089,10 +2146,10 @@
},
inputScript:
'41f6107a78455d9b3db251d5c3e2478ab346c0876c66c96378a05c38eceec88263098b0f704881d6cf3456aa7be47a6894bfcd121c26742e765cc037f37744b2664121036033a99e5fd9bfe41940c466ab043eb27ce45d2f28753559894f84114c34c51d',
- value: 4158314,
sequenceNo: 4294967295,
outputScript:
'76a9140f18bea6bafd89a55997c72703006ec7a83d6e6988ac',
+ sats: { dataType: 'BigIntReplacer', value: '4158314' },
},
{
prevOut: {
@@ -2101,575 +2158,575 @@
},
inputScript:
'418b6fcd73acbaaef9a063d64fcd86597e490315edfe709aa302d429c6438b52dcc6e7d324b59612b202d4239bef09d8dff1e42363a0ca4716bf1329d8441b01714121020238ff720ccd27a92f0bb0ea63d0c08b73291cf283bb422fdcb63bd9b0a5254f',
- value: 17803274,
sequenceNo: 4294967295,
outputScript:
'76a914a7bf09e5099224ead64cb27cc9eb38283c3cde4288ac',
+ sats: { dataType: 'BigIntReplacer', value: '17803274' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a0446555a0020ab3267b0b667ea2252d414b3714d6f08b5fbf16c0026ce454c903dc6ff002255',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 506531,
outputScript:
'76a914d7fc1d156d8ec4384623bb8ceb135df93f2bd93188ac',
spentBy: {
txid: 'c5f288c020ec4e8701d2114d0f4d7970e9e01e4396abd10ddaebd6e4b44c3d5f',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '506531' },
},
{
- value: 1175076,
outputScript:
'76a91447da14cfad47a7971dd345821ac7a81e194e474588ac',
spentBy: {
txid: '9086ca2908df5f06b61ca2ec2040fc3e7bd39843e35b934f23f89ea7196c7036',
outIdx: 39,
},
+ sats: { dataType: 'BigIntReplacer', value: '1175076' },
},
{
- value: 1557619,
outputScript:
'76a914d6b7baf14352dd9769a9a8bdb1f69cf700766aca88ac',
spentBy: {
txid: '021b600e1425c69c1977daf2e72a13b83fe40414061641011573eef88834dec1',
outIdx: 46,
},
+ sats: { dataType: 'BigIntReplacer', value: '1557619' },
},
{
- value: 1685802,
outputScript:
'76a914bc53fc8620ece064004a7bb72f0613a0045f6ae488ac',
spentBy: {
txid: '021b600e1425c69c1977daf2e72a13b83fe40414061641011573eef88834dec1',
outIdx: 47,
},
+ sats: { dataType: 'BigIntReplacer', value: '1685802' },
},
{
- value: 1957993,
outputScript:
'76a914ea34af00f2585bddc37607af492a7d5b35d431fe88ac',
spentBy: {
txid: 'b3368d0b4495896c4e057a0be8df58cdead551057c0103f35a5e3a4dce7cf4b5',
outIdx: 43,
},
+ sats: { dataType: 'BigIntReplacer', value: '1957993' },
},
{
- value: 2280297,
outputScript:
'76a914dab80f23ec17efe39e3167ac47575f5b102855d288ac',
spentBy: {
txid: 'b3368d0b4495896c4e057a0be8df58cdead551057c0103f35a5e3a4dce7cf4b5',
outIdx: 44,
},
+ sats: { dataType: 'BigIntReplacer', value: '2280297' },
},
{
- value: 2804591,
outputScript:
'76a914f10147fbbff24aa9f4f9a9f3726760a4abad6a9688ac',
spentBy: {
txid: '24863ec1bc8eca7d449a37a5bd3bd85e7ccbd2d77ee51c84e1b5b8ade8bada01',
outIdx: 45,
},
+ sats: { dataType: 'BigIntReplacer', value: '2804591' },
},
{
- value: 2810950,
outputScript:
'76a9140b8b9344a473853830f3657c7247e4834171d6fd88ac',
spentBy: {
txid: 'd3942acaefee091f6bf0a9d34282988b31458bb6b10b7cfc3fcd3471be3c2ea7',
outIdx: 50,
},
+ sats: { dataType: 'BigIntReplacer', value: '2810950' },
},
{
- value: 2862208,
outputScript:
'76a914a0737c0938d04eff2d5074513ee5fd3fd41de38488ac',
spentBy: {
txid: '9086ca2908df5f06b61ca2ec2040fc3e7bd39843e35b934f23f89ea7196c7036',
outIdx: 40,
},
+ sats: { dataType: 'BigIntReplacer', value: '2862208' },
},
{
- value: 2880530,
outputScript:
'76a914b5d94938a3665b01fc0afee6b6179bb2b9e46b2e88ac',
spentBy: {
txid: '9086ca2908df5f06b61ca2ec2040fc3e7bd39843e35b934f23f89ea7196c7036',
outIdx: 41,
},
+ sats: { dataType: 'BigIntReplacer', value: '2880530' },
},
{
- value: 2894084,
outputScript:
'76a914dbb0e87717a034774a2435db6c9d4791f58bd43f88ac',
spentBy: {
txid: '1d385f3ca974110728849913177291fc4e303bdb03481b9bef7adba15734d18f',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '2894084' },
},
{
- value: 3104218,
outputScript:
'76a9144e3bebebb3ac2785181534094eadccad4ea8dc4688ac',
spentBy: {
txid: 'ae14b96fc44c7f43c3c2fd268e484b26d8f4794afef5767392fb1c246d7d3e0f',
outIdx: 5,
},
+ sats: { dataType: 'BigIntReplacer', value: '3104218' },
},
{
- value: 3122421,
outputScript:
'76a91458c2d76cd32e1d30d0e62b641d50bdd89200a7f188ac',
spentBy: {
txid: 'ae14b96fc44c7f43c3c2fd268e484b26d8f4794afef5767392fb1c246d7d3e0f',
outIdx: 7,
},
+ sats: { dataType: 'BigIntReplacer', value: '3122421' },
},
{
- value: 3419974,
outputScript:
'76a9142980d02fa9a25306f3dd195ab9c82a2e2877f67e88ac',
spentBy: {
txid: 'e59775f4ca2828c87a5b31e415e657d571184891c62860acd5a23523830e38a9',
outIdx: 3,
},
+ sats: { dataType: 'BigIntReplacer', value: '3419974' },
},
{
- value: 3594078,
outputScript:
'76a91451331eca38c944f17ee6354a3ee48193c7eb1b6b88ac',
spentBy: {
txid: '24863ec1bc8eca7d449a37a5bd3bd85e7ccbd2d77ee51c84e1b5b8ade8bada01',
outIdx: 46,
},
+ sats: { dataType: 'BigIntReplacer', value: '3594078' },
},
{
- value: 3794311,
outputScript:
'76a914755b984555fcd6305583c21d996a8dea7faa67d488ac',
spentBy: {
txid: '9086ca2908df5f06b61ca2ec2040fc3e7bd39843e35b934f23f89ea7196c7036',
outIdx: 42,
},
+ sats: { dataType: 'BigIntReplacer', value: '3794311' },
},
{
- value: 4241488,
outputScript:
'76a914e245bab4243bd6a8f3932c9dab9df496f003eae488ac',
spentBy: {
txid: '0ec20eea27fcc5eb12211157a64eb34c58b6df3911d5158faa5824e5fd3002a0',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '4241488' },
},
{
- value: 5771042,
outputScript:
'76a9147901f7c02a7fb7de87c373c143e15e87989f764b88ac',
spentBy: {
txid: '021b600e1425c69c1977daf2e72a13b83fe40414061641011573eef88834dec1',
outIdx: 48,
},
+ sats: { dataType: 'BigIntReplacer', value: '5771042' },
},
{
- value: 5801672,
outputScript:
'76a9149db2a709e1f26df987ecd5a5dcb8db0b36a449ef88ac',
spentBy: {
txid: '493dd3339fca03c94dd0e9b53359630fa8dc2aaef404a6a2328229ae64eb8721',
outIdx: 4,
},
+ sats: { dataType: 'BigIntReplacer', value: '5801672' },
},
{
- value: 6529646,
outputScript:
'76a9141c5dd21c29a653e6922c2058852d9f56e483170188ac',
spentBy: {
txid: '021b600e1425c69c1977daf2e72a13b83fe40414061641011573eef88834dec1',
outIdx: 49,
},
+ sats: { dataType: 'BigIntReplacer', value: '6529646' },
},
{
- value: 6536855,
outputScript:
'76a9143510f0c92f8b26e26de575140a084773e95f439a88ac',
spentBy: {
txid: '24863ec1bc8eca7d449a37a5bd3bd85e7ccbd2d77ee51c84e1b5b8ade8bada01',
outIdx: 47,
},
+ sats: { dataType: 'BigIntReplacer', value: '6536855' },
},
{
- value: 7742026,
outputScript:
'76a914ee542bd41bb07264cf9f6e824e45d3446a26077c88ac',
spentBy: {
txid: 'b3368d0b4495896c4e057a0be8df58cdead551057c0103f35a5e3a4dce7cf4b5',
outIdx: 45,
},
+ sats: { dataType: 'BigIntReplacer', value: '7742026' },
},
{
- value: 8072753,
outputScript:
'76a914c4131be628403d70a62e46dfc13b576af05aa5f088ac',
spentBy: {
txid: 'dbc41978baa1e1b0d1b098a34722eadf351e19383dcc1266118333060847a8e5',
outIdx: 35,
},
+ sats: { dataType: 'BigIntReplacer', value: '8072753' },
},
{
- value: 8820534,
outputScript:
'76a914f5ffa38db9ffac77b5a1a6c35eebf2415fedf87c88ac',
spentBy: {
txid: '24863ec1bc8eca7d449a37a5bd3bd85e7ccbd2d77ee51c84e1b5b8ade8bada01',
outIdx: 48,
},
+ sats: { dataType: 'BigIntReplacer', value: '8820534' },
},
{
- value: 9000450,
outputScript:
'76a914b3e42f44a3dff21f72c90555d0ec62b273f0d4a588ac',
spentBy: {
txid: 'a96de5afa4eee4b098ff8b7423e90d0131673862cb79e7b02a06e084146d5dfe',
outIdx: 56,
},
+ sats: { dataType: 'BigIntReplacer', value: '9000450' },
},
{
- value: 11771919,
outputScript:
'76a91463a7fe1eff49be76e18538f3ed380b7386af1c8f88ac',
spentBy: {
txid: 'a96de5afa4eee4b098ff8b7423e90d0131673862cb79e7b02a06e084146d5dfe',
outIdx: 57,
},
+ sats: { dataType: 'BigIntReplacer', value: '11771919' },
},
{
- value: 13144002,
outputScript:
'76a91457f118d5f5eecebc88f711a80018bececbeb86e088ac',
spentBy: {
txid: '262832d24a3b26fd1af1b24f0a7d019579b7ed1f040777d3374c62305c5f4415',
outIdx: 39,
},
+ sats: { dataType: 'BigIntReplacer', value: '13144002' },
},
{
- value: 13393930,
outputScript:
'76a9148d2a8ce8e95b3047b918d8bd24db8c3e39d906cc88ac',
spentBy: {
txid: '9086ca2908df5f06b61ca2ec2040fc3e7bd39843e35b934f23f89ea7196c7036',
outIdx: 43,
},
+ sats: { dataType: 'BigIntReplacer', value: '13393930' },
},
{
- value: 13691033,
outputScript:
'76a914d6a0a87a3a5ea254ed4a2665ac328a7ef769747688ac',
spentBy: {
txid: 'c2409334c0c33750529e2f9b762e7dab7ca2fb4e67883cd3244b7cbbdc9add14',
outIdx: 36,
},
+ sats: { dataType: 'BigIntReplacer', value: '13691033' },
},
{
- value: 14490346,
outputScript:
'76a914810c66b72d769d1fefd2c5bb26d20024e25fd35088ac',
spentBy: {
txid: '493dd3339fca03c94dd0e9b53359630fa8dc2aaef404a6a2328229ae64eb8721',
outIdx: 10,
},
+ sats: { dataType: 'BigIntReplacer', value: '14490346' },
},
{
- value: 15649462,
outputScript:
'76a914b3f036ee778de53049e0152a140bcba4952081f788ac',
spentBy: {
txid: '262832d24a3b26fd1af1b24f0a7d019579b7ed1f040777d3374c62305c5f4415',
outIdx: 40,
},
+ sats: { dataType: 'BigIntReplacer', value: '15649462' },
},
{
- value: 16885611,
outputScript:
'76a9144dbd06c9f304601d8fe89199ee7afa0afc3e5de688ac',
spentBy: {
txid: '5beda1f52503457c3e2bd93357ad7510e16e69021c589ce91b092215eb37fce5',
outIdx: 2,
},
+ sats: { dataType: 'BigIntReplacer', value: '16885611' },
},
{
- value: 17311755,
outputScript:
'76a91435cf783dd7fc1a919c5a92d73feedcab1d3e4dd588ac',
spentBy: {
txid: 'a96de5afa4eee4b098ff8b7423e90d0131673862cb79e7b02a06e084146d5dfe',
outIdx: 58,
},
+ sats: { dataType: 'BigIntReplacer', value: '17311755' },
},
{
- value: 19229444,
outputScript:
'76a914c570835edbc0de4a525a9ba9501eb0b123b8ab1c88ac',
spentBy: {
txid: 'd3942acaefee091f6bf0a9d34282988b31458bb6b10b7cfc3fcd3471be3c2ea7',
outIdx: 51,
},
+ sats: { dataType: 'BigIntReplacer', value: '19229444' },
},
{
- value: 19612475,
outputScript:
'76a9142368a5b973c7d48fa8343b71cfb51b5a4ccfcb2488ac',
spentBy: {
txid: '9086ca2908df5f06b61ca2ec2040fc3e7bd39843e35b934f23f89ea7196c7036',
outIdx: 44,
},
+ sats: { dataType: 'BigIntReplacer', value: '19612475' },
},
{
- value: 20857697,
outputScript:
'76a9149163b5cb6618d7d67562270de630da0d62896c1e88ac',
spentBy: {
txid: '021b600e1425c69c1977daf2e72a13b83fe40414061641011573eef88834dec1',
outIdx: 50,
},
+ sats: { dataType: 'BigIntReplacer', value: '20857697' },
},
{
- value: 21475345,
outputScript:
'76a91464be00bf5c68a60ae520cfa81d051225457572a788ac',
spentBy: {
txid: '493dd3339fca03c94dd0e9b53359630fa8dc2aaef404a6a2328229ae64eb8721',
outIdx: 9,
},
+ sats: { dataType: 'BigIntReplacer', value: '21475345' },
},
{
- value: 21879959,
outputScript:
'76a9148bc944201dec7391def49db52202a009c6a81f2088ac',
spentBy: {
txid: 'd3942acaefee091f6bf0a9d34282988b31458bb6b10b7cfc3fcd3471be3c2ea7',
outIdx: 52,
},
+ sats: { dataType: 'BigIntReplacer', value: '21879959' },
},
{
- value: 21900743,
outputScript:
'76a914af6ae4c996d1ab51dd344b1f491c01163169053588ac',
spentBy: {
txid: '9086ca2908df5f06b61ca2ec2040fc3e7bd39843e35b934f23f89ea7196c7036',
outIdx: 45,
},
+ sats: { dataType: 'BigIntReplacer', value: '21900743' },
},
{
- value: 22276723,
outputScript:
'76a914c1f421d009c6b36b205721c064c2ae5ea3272a4688ac',
spentBy: {
txid: 'a96de5afa4eee4b098ff8b7423e90d0131673862cb79e7b02a06e084146d5dfe',
outIdx: 59,
},
+ sats: { dataType: 'BigIntReplacer', value: '22276723' },
},
{
- value: 22828111,
outputScript:
'76a9146454f4696e5bbb5eb4d368c162b35f6fcc861e6b88ac',
spentBy: {
txid: 'd3942acaefee091f6bf0a9d34282988b31458bb6b10b7cfc3fcd3471be3c2ea7',
outIdx: 53,
},
+ sats: { dataType: 'BigIntReplacer', value: '22828111' },
},
{
- value: 22829710,
outputScript:
'76a9142a8af09882e0b5dd047b03e61eb3630e0678325e88ac',
spentBy: {
txid: '021b600e1425c69c1977daf2e72a13b83fe40414061641011573eef88834dec1',
outIdx: 51,
},
+ sats: { dataType: 'BigIntReplacer', value: '22829710' },
},
{
- value: 23106927,
outputScript:
'76a9147eec957f14c8c35b491f487a8d777cf3b427f47688ac',
spentBy: {
txid: 'd3942acaefee091f6bf0a9d34282988b31458bb6b10b7cfc3fcd3471be3c2ea7',
outIdx: 54,
},
+ sats: { dataType: 'BigIntReplacer', value: '23106927' },
},
{
- value: 25043923,
outputScript:
'76a9148f41a4d08d01a574210a0d99784248d7b718a6b388ac',
spentBy: {
txid: '021b600e1425c69c1977daf2e72a13b83fe40414061641011573eef88834dec1',
outIdx: 52,
},
+ sats: { dataType: 'BigIntReplacer', value: '25043923' },
},
{
- value: 25946731,
outputScript:
'76a9149fbf277434a5a0582ffe774693c343e95c442a8188ac',
spentBy: {
txid: 'c2409334c0c33750529e2f9b762e7dab7ca2fb4e67883cd3244b7cbbdc9add14',
outIdx: 37,
},
+ sats: { dataType: 'BigIntReplacer', value: '25946731' },
},
{
- value: 26216189,
outputScript:
'76a914d35d6706484afdc79bbaab9ce1f84fed4939317f88ac',
spentBy: {
txid: '24863ec1bc8eca7d449a37a5bd3bd85e7ccbd2d77ee51c84e1b5b8ade8bada01',
outIdx: 49,
},
+ sats: { dataType: 'BigIntReplacer', value: '26216189' },
},
{
- value: 27153210,
outputScript:
'76a914fc64d1ceb75ef723b8bb81f53039f239f69de25d88ac',
spentBy: {
txid: '24863ec1bc8eca7d449a37a5bd3bd85e7ccbd2d77ee51c84e1b5b8ade8bada01',
outIdx: 50,
},
+ sats: { dataType: 'BigIntReplacer', value: '27153210' },
},
{
- value: 27888923,
outputScript:
'76a9140b395214ae8c35fd7e8bb6921fa478216fd9e41988ac',
spentBy: {
txid: '9086ca2908df5f06b61ca2ec2040fc3e7bd39843e35b934f23f89ea7196c7036',
outIdx: 46,
},
+ sats: { dataType: 'BigIntReplacer', value: '27888923' },
},
{
- value: 28283566,
outputScript:
'76a9145c9faf662be3667f760e03535c511085a2bc814488ac',
spentBy: {
txid: 'f7ffab99cca8005728105f2b93a0afd49444116bcd6131b2fcecd0fea40391ab',
outIdx: 53,
},
+ sats: { dataType: 'BigIntReplacer', value: '28283566' },
},
{
- value: 29688615,
outputScript:
'76a914f883cd4d8e8b6e1cba5d127e24c57b45c26b46a288ac',
spentBy: {
txid: 'de39274a222922abfdd373cd373b1f71fb0e58c0c569ac6bc813d01a1dc64f8e',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '29688615' },
},
{
- value: 32471718,
outputScript:
'76a9147fe1c85d201af0ab1322d5809aaa03bb7dac05fb88ac',
spentBy: {
txid: '1ed72329e29d9441dc9fb3ac828fc66d08e52c8e67a9a0b0268b5ce6bb7e0695',
outIdx: 4,
},
+ sats: { dataType: 'BigIntReplacer', value: '32471718' },
},
{
- value: 35209256,
outputScript:
'76a9141ab1428e336477a213d18207570b5008841d24ea88ac',
spentBy: {
txid: 'de39274a222922abfdd373cd373b1f71fb0e58c0c569ac6bc813d01a1dc64f8e',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '35209256' },
},
{
- value: 40404442,
outputScript:
'76a914219f01df857ef5faa2c1509b8dc958eb9425f5df88ac',
spentBy: {
txid: '697372648af8320cd2975e4ea52d9772f6f06d9610e5088f4d92ef3f69422c30',
outIdx: 35,
},
+ sats: { dataType: 'BigIntReplacer', value: '40404442' },
},
{
- value: 48107746,
outputScript:
'76a914a4c2e50019b19c9d152b6327733033253d61efe188ac',
spentBy: {
txid: 'de39274a222922abfdd373cd373b1f71fb0e58c0c569ac6bc813d01a1dc64f8e',
outIdx: 16,
},
+ sats: { dataType: 'BigIntReplacer', value: '48107746' },
},
{
- value: 54611567,
outputScript:
'76a91479be8c6a6fc20a9f4cd1e55d8e99fef936a5b4fb88ac',
spentBy: {
txid: 'd3942acaefee091f6bf0a9d34282988b31458bb6b10b7cfc3fcd3471be3c2ea7',
outIdx: 55,
},
+ sats: { dataType: 'BigIntReplacer', value: '54611567' },
},
{
- value: 54872231,
outputScript:
'76a914e8f011eded020ed1605848c7b5e6704eb689b33f88ac',
spentBy: {
txid: 'de39274a222922abfdd373cd373b1f71fb0e58c0c569ac6bc813d01a1dc64f8e',
outIdx: 6,
},
+ sats: { dataType: 'BigIntReplacer', value: '54872231' },
},
{
- value: 56164346,
outputScript:
'76a9146573038dc2d55422c20b91588f8264f9aa038d6088ac',
spentBy: {
txid: '9086ca2908df5f06b61ca2ec2040fc3e7bd39843e35b934f23f89ea7196c7036',
outIdx: 47,
},
+ sats: { dataType: 'BigIntReplacer', value: '56164346' },
},
{
- value: 58564003,
outputScript:
'76a9147077be58e7ead7443259fe5409309edbabef41d388ac',
spentBy: {
txid: '24863ec1bc8eca7d449a37a5bd3bd85e7ccbd2d77ee51c84e1b5b8ade8bada01',
outIdx: 51,
},
+ sats: { dataType: 'BigIntReplacer', value: '58564003' },
},
{
- value: 59817398,
outputScript:
'76a9149cf6eb2a055f3340d31d83bf5e29cfe0e9d919f288ac',
spentBy: {
txid: 'd3942acaefee091f6bf0a9d34282988b31458bb6b10b7cfc3fcd3471be3c2ea7',
outIdx: 56,
},
+ sats: { dataType: 'BigIntReplacer', value: '59817398' },
},
{
- value: 64104923,
outputScript:
'76a914d12908c4b7be22044226856207328e20e3e1f2c288ac',
spentBy: {
txid: 'de39274a222922abfdd373cd373b1f71fb0e58c0c569ac6bc813d01a1dc64f8e',
outIdx: 15,
},
+ sats: { dataType: 'BigIntReplacer', value: '64104923' },
},
{
- value: 87305777,
outputScript:
'76a91437a517f6174aed807cb1f9fb26ff25912c8ea4ee88ac',
spentBy: {
txid: '021b600e1425c69c1977daf2e72a13b83fe40414061641011573eef88834dec1',
outIdx: 53,
},
+ sats: { dataType: 'BigIntReplacer', value: '87305777' },
},
{
- value: 91558238,
outputScript:
'76a914b2094f7a6f5c39a66ddff6852bfef1f6dac495fb88ac',
spentBy: {
txid: '14483f95867cb556833f90ef73485fc883a04fa31404a650c11208dfc391183e',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '91558238' },
},
],
lockTime: 0,
@@ -2696,34 +2753,34 @@
},
inputScript:
'48304502210097bb101905c26f6198cd862b64a4174e3263fa3dda571cef058e3fb6576fe1da022002c086b779f8129d6f44697e403c7607c26589659134a9468d4471da65b116774121037f36f6573744fbf433eafc2579737e041a99b242eb0fd88dfe8570b5f6a829c7',
- value: 98396406,
sequenceNo: 4294967295,
outputScript:
'76a9147d432e8ccc646fe6c52e36c285bce2b75f0f500b88ac',
+ sats: { dataType: 'BigIntReplacer', value: '98396406' },
},
],
outputs: [
{
- value: 0,
outputScript: '6a04007461620c49206c696b65206543617368',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 1000000,
outputScript:
'76a9144fb74b44c66ab529428a943131f236c80d99b82088ac',
spentBy: {
txid: 'b16ef7b4c184201dd858325c43cd67459bce352f041f7bf44f4b99972cba81bd',
outIdx: 5,
},
+ sats: { dataType: 'BigIntReplacer', value: '1000000' },
},
{
- value: 97395927,
outputScript:
'76a9147d432e8ccc646fe6c52e36c285bce2b75f0f500b88ac',
spentBy: {
txid: '2c644fba674af09cec58af30be0a93b6ebe4f48b976e0531aaacb0b3220a1556',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '97395927' },
},
],
lockTime: 0,
@@ -2750,10 +2807,10 @@
},
inputScript:
'483045022100ad2200533b3fc6cf4d06b1450a0e10cbb493933fe5927e4a9d53e7005547eeea02207f1e406d9a6a33cab711461219cd085ae33c9b605f40c479b7d072659904f35d412102394542bf928bc707dcc156acf72e87c9d2fef77eaefc5f6b836d9ceeb0fc6a3e',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9140b7d35fda03544a08e65464d54cfae4257eb6db788ac',
+ sats: { dataType: 'BigIntReplacer', value: '1000' },
},
{
prevOut: {
@@ -2762,10 +2819,10 @@
},
inputScript:
'483045022100a7e1c2bab17698871a4b5d88e15fbcb64578bf1ac525b38c73f21c8ea7e697d702201841b8459beb066fcf388b50a3b4db6a0fd8e0f525fb5353d2de40dbc314c565412102394542bf928bc707dcc156acf72e87c9d2fef77eaefc5f6b836d9ceeb0fc6a3e',
- value: 550,
sequenceNo: 4294967295,
outputScript:
'76a9140b7d35fda03544a08e65464d54cfae4257eb6db788ac',
+ sats: { dataType: 'BigIntReplacer', value: '550' },
},
{
prevOut: {
@@ -2774,35 +2831,35 @@
},
inputScript:
'483045022100d1e6a7051b3a641c490f6f9129903138a9a5d1f11cbdc4727d4272e1b5fc4b170220429f7d0e7e38265e8f2ced7311a6cc39868e930f6d35457164c891e2ac3e7f79412102394542bf928bc707dcc156acf72e87c9d2fef77eaefc5f6b836d9ceeb0fc6a3e',
- value: 64959,
sequenceNo: 4294967295,
outputScript:
'76a9140b7d35fda03544a08e65464d54cfae4257eb6db788ac',
+ sats: { dataType: 'BigIntReplacer', value: '64959' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624c71036bdec11e461033145b5d96661e45ba2a40081aad01d34c4da4dac5e42b9961c990fc603ad5c6fed77fff016d57caa7ba8cbcebb33bd47e5eb0707628c0331e4d714054ab773ae4a555c9ea432af23a83104209e5299e86081f5fabe4a744e96eac6675149ce4e7680e342270498d0e68',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 2000,
outputScript:
'76a9149846b6b38ff713334ac19fe3cf851a1f98c07b0088ac',
spentBy: {
txid: '00dbc347e48d2d422541057f2d3d1a6c32542ec2bea9e59664edbd8613774e7d',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '2000' },
},
{
- value: 63232,
outputScript:
'76a9140b7d35fda03544a08e65464d54cfae4257eb6db788ac',
spentBy: {
txid: 'f189376fd662b113e5da5904e318123aee5f573221e57a2545849ac556f31130',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '63232' },
},
],
lockTime: 0,
@@ -2829,10 +2886,10 @@
},
inputScript:
'41176c28f0b30bbd8b985a5960a6e29c3f8cfae093349d48bc609d0957b2eab91ecaf98b5de8b13bd5df66331ae6b9ae5dd73d8a9042bb8d54ae833e826d318cd74121037b28c10168dfb8007d25638ceb6bc13a168a6e4ddcd0aec28591d14387958796',
- value: 546,
sequenceNo: 4294967295,
outputScript:
'76a914aed3f8a5add35a9ddaf0a07986c2b73a2202727d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -2841,26 +2898,26 @@
},
inputScript:
'41bf1a7934dd1c5997953a1cf500bfb2b928b66574782b1dae33546e758d278c58b9527d1ff3b2913d113924eaa3af18d059ae61d49274893af1bc7f233f7bff454121022c2394a4ed0a2d8fb9c30185ea7173a15d69adceda08b96ad408fce866bcd1f9',
- value: 43110,
sequenceNo: 4294967295,
outputScript:
'76a914d50ec518d64850fda86e926764ce1bce1ba01a1988ac',
+ sats: { dataType: 'BigIntReplacer', value: '43110' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04535750000101010120aebcae9afe88d61d8b8ed7b8c83c7c2a555583bf8f8591c94a2c9eb82f34816c0453454c4c0831353938383335340100203dd9beaedcbb3ad90eec2214fcf71381fa89b08b899813e182a7a393e1ab06190101010012333236322e39393939393939393939393935',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 43190,
outputScript:
'76a914aed3f8a5add35a9ddaf0a07986c2b73a2202727d88ac',
spentBy: {
txid: '09fe3d1b848dcc23006393604811cd1e79cfb12f79c44b0d76a8822c8910ca69',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '43190' },
},
],
lockTime: 0,
@@ -2887,26 +2944,26 @@
},
inputScript:
'483045022100fe0f77633de5e95397f2a0fba128e1de7c2467e6d70558c5ef632b5afd504c62022013b4704186e5934f46547212dbd2054a5c8ab08546db945b83477542c51b3b46412103a16e0df390d377ffda5195c4b06148d674a331144fab6ad08e9ec5e8a4e5a4b4',
- value: 21944557,
sequenceNo: 4294967295,
outputScript:
'76a9148fa951904f6d0ebbc92dc29e761b9eb0a837545c88ac',
+ sats: { dataType: 'BigIntReplacer', value: '21944557' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a026d0320eae5710aba50a0a22b266ddbb445e05b7348d15c88cbc2e012a91a09bec3861a4c9654776974746572206b65657073207475726e696e6720746865697220415049206f6e20616e64206f66662e20536f6d6574696d657320697420776f726b732c20736f6d6574696d657320697420646f65736e27742e204665617475726520746f20637265617465207477656574732066726f6d206d656d6f206d617920776f726b20616761696e20617420736f6d6520706f696e742e',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 21944167,
outputScript:
'76a9148fa951904f6d0ebbc92dc29e761b9eb0a837545c88ac',
spentBy: {
txid: 'ce4a58281bda100a572a1d365cb4a83b85d08874daff194179708b18e3f651cf',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '21944167' },
},
],
lockTime: 0,
@@ -2933,10 +2990,10 @@
},
inputScript:
'47304402204b55cb0e0a458f41be000f28ac41d23b0ce7ac6184c009a08e21cde04736602a02204e2e36d24c17d174c96e0d716a0d9d51d3009bde27a37d1961cac10fe483bec3412103f1f48963ab04429f0cacf2db96ec8189598b56afd2cde8a614440c78479ae037',
- value: 500000,
sequenceNo: 4294967295,
outputScript:
'76a914f93029e7593327c5b864ea6896ecfda4fffb6ab888ac',
+ sats: { dataType: 'BigIntReplacer', value: '500000' },
},
{
prevOut: {
@@ -2945,10 +3002,10 @@
},
inputScript:
'47304402202ddc33dd6e31885d3ae5c8f35adce3c6af89ba4c7e6bcec60e90f9ac059eb42c022037d2fefcb1ad7e13f066b4bf336cdebf54cb90d59a7375c09f64d5340cf6ceaf412103f1f48963ab04429f0cacf2db96ec8189598b56afd2cde8a614440c78479ae037',
- value: 28351,
sequenceNo: 4294967295,
outputScript:
'76a914f93029e7593327c5b864ea6896ecfda4fffb6ab888ac',
+ sats: { dataType: 'BigIntReplacer', value: '28351' },
},
{
prevOut: {
@@ -2957,10 +3014,10 @@
},
inputScript:
'4830450221009d35c5646c47be48040aaa781bce22cc287b2f54d71ea028d9c12fd11dc2115d022025cf6916dfe0c4ad695b8a948eadeafb2bcdc0304dcc701637e33cbf79a401a7412103f1f48963ab04429f0cacf2db96ec8189598b56afd2cde8a614440c78479ae037',
- value: 200000,
sequenceNo: 4294967295,
outputScript:
'76a914f93029e7593327c5b864ea6896ecfda4fffb6ab888ac',
+ sats: { dataType: 'BigIntReplacer', value: '200000' },
},
{
prevOut: {
@@ -2969,10 +3026,10 @@
},
inputScript:
'483045022100cf624e1a8cbc2cb9fd61f55c443490ba9eb922296bdc698c0a7db6a23b9cd33b02206f57d5f503c70a68097f0866c9b46bc7a35b130673b0b9a72b8b71b82b2d004e412103f1f48963ab04429f0cacf2db96ec8189598b56afd2cde8a614440c78479ae037',
- value: 48995,
sequenceNo: 4294967295,
outputScript:
'76a914f93029e7593327c5b864ea6896ecfda4fffb6ab888ac',
+ sats: { dataType: 'BigIntReplacer', value: '48995' },
},
{
prevOut: {
@@ -2981,106 +3038,106 @@
},
inputScript:
'47304402202b097ee4881fc57fe7a1551f8ee8bf9e0b40b6639a038d2c744e399850690e1d022063b5ff44314df2ec83b163683ff46c963a2f021f3e59caf3fa96914cc17342f1412103f1f48963ab04429f0cacf2db96ec8189598b56afd2cde8a614440c78479ae037',
- value: 4000000,
sequenceNo: 4294967295,
outputScript:
'76a914f93029e7593327c5b864ea6896ecfda4fffb6ab888ac',
+ sats: { dataType: 'BigIntReplacer', value: '4000000' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a0464726f7020b76878b29eff39c8c28aaed7d18a166c20057c43beeb90b630264470983c984a04007461624c525374617920776974682075732c2065436173682041667269636120697320746865206e6578742062696720636f6d6d756e69747920696e20746865204166726963616e2063727970746f7370686572652e20',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 264706,
outputScript:
'76a914957b59a2bfa17ea7fc234e532b263169b6d34aa988ac',
spentBy: {
txid: '33b640c3f87a5d7d148bdf8870a3cdfad4dbfdad7abfb39fa97787ca9744b912',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '264706' },
},
{
- value: 529412,
outputScript:
'76a9148f882b02e1040f83c2f73007bb334716c38dbffc88ac',
spentBy: {
txid: '54d7c32d64ac3cb94c55ae4a9ca5c0519ea2dcf65962485e668ebb0bd7b0e990',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '529412' },
},
{
- value: 529412,
outputScript:
'76a914f43ac7271cee240bee3796938203105fb54c045c88ac',
+ sats: { dataType: 'BigIntReplacer', value: '529412' },
},
{
- value: 264706,
outputScript:
'76a914d5a79acda6dbbe14a686a0c59466f52656330a9588ac',
+ sats: { dataType: 'BigIntReplacer', value: '264706' },
},
{
- value: 529412,
outputScript:
'76a91429207c3d229d6163521fbe87e52e64bbe584dbc988ac',
spentBy: {
txid: '80129555a3900a8d1084a6ecaf24f60dfb4fb25fa93ffed057536f0655d4df24',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '529412' },
},
{
- value: 264706,
outputScript:
'76a914e735901add6ea366a0964ab54ad9d9158597f50c88ac',
+ sats: { dataType: 'BigIntReplacer', value: '264706' },
},
{
- value: 264706,
outputScript:
'76a91407acf15b7cc6a4c18d8d1c3a5611ea30718c2a0d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '264706' },
},
{
- value: 529412,
outputScript:
'76a9146671b4690e282cb79707b1ee696d54a6072329fa88ac',
+ sats: { dataType: 'BigIntReplacer', value: '529412' },
},
{
- value: 264706,
outputScript:
'76a914d4f7e7b420eb1c5410abf698c72d790f0c4cc1b388ac',
+ sats: { dataType: 'BigIntReplacer', value: '264706' },
},
{
- value: 264706,
outputScript:
'76a914b19e12ae2aa186102486e8348f22b87ae426eafd88ac',
+ sats: { dataType: 'BigIntReplacer', value: '264706' },
},
{
- value: 529412,
outputScript:
'76a914e6309418b6e60b8119928ec45b8ba87de8e735f788ac',
spentBy: {
txid: 'e58c868250f4e2949d5b72a1975d3a90247d59ea019edf4aebd214ed0d4c62b3',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '529412' },
},
{
- value: 264706,
outputScript:
'76a914cdba2655ee5abf18a5b6203da5b7d8cc28c36ca888ac',
spentBy: {
txid: 'f33e2516b93628e6f3608a2233e35af00426eb8ec3cba5836af827ba62cc0bf9',
outIdx: 2,
},
+ sats: { dataType: 'BigIntReplacer', value: '264706' },
},
{
- value: 274783,
outputScript:
'76a914f93029e7593327c5b864ea6896ecfda4fffb6ab888ac',
spentBy: {
txid: 'a2d019cffeb34decfe11f6135ee6aec09aeed439f34369ea9216b78a5d2040a0',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '274783' },
},
],
lockTime: 0,
@@ -3107,10 +3164,10 @@
},
inputScript:
'4730440220718019bbe581cd2d505837df7c76be53f7ea3798cbe2c8e9985b32d95b4f3c9202200db9c710c07e3dc7b2e6153e6af3fc0c6d9a1e9b953a2c5812c3f6a12bcfb8c8412102394542bf928bc707dcc156acf72e87c9d2fef77eaefc5f6b836d9ceeb0fc6a3e',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9140b7d35fda03544a08e65464d54cfae4257eb6db788ac',
+ sats: { dataType: 'BigIntReplacer', value: '1000' },
},
{
prevOut: {
@@ -3119,35 +3176,35 @@
},
inputScript:
'483045022100a309d82c4a00ea00b2a9f11bc0a1625b4272fbf9c627c723377ee81428c9cc5a0220523f45935bbc9bb8cfa2454cd3be1c9ee3322e5c849c5f4384bb72736958a628412102394542bf928bc707dcc156acf72e87c9d2fef77eaefc5f6b836d9ceeb0fc6a3e',
- value: 28091,
sequenceNo: 4294967295,
outputScript:
'76a9140b7d35fda03544a08e65464d54cfae4257eb6db788ac',
+ sats: { dataType: 'BigIntReplacer', value: '28091' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a042e7865630005646f67653215000b7d35fda03544a08e65464d54cfae4257eb6db7',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 554,
outputScript:
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
spentBy: {
txid: '9b9bc49c18a513f04c9d05dcff2d5e1164408b837d95ef695d24524520fb9358',
outIdx: 196,
},
+ sats: { dataType: 'BigIntReplacer', value: '554' },
},
{
- value: 27785,
outputScript:
'76a9140b7d35fda03544a08e65464d54cfae4257eb6db788ac',
spentBy: {
txid: 'c3bae8350772a99d52086720d2712813f8e47313d20f5d914a728cb7a2bcd9ea',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '27785' },
},
],
lockTime: 0,
@@ -3174,7 +3231,6 @@
},
inputScript:
'41597c9b4eff3b012afb56e745c46d3f9cddfbd72fbec655d63d0bfd4b4a23225aa237a425a25685b54a8f767becb9109f1b0951c3ecfe7fa3d1a519a8f49ef6a9c1210363bbf8cf60612f89a8da03416a7ff0f398b315c7217b0c7a15ca52d5fcecb316',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -3184,12 +3240,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '39976',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '39976' },
},
outputScript:
'76a9147276ae7693883fa1165628e298899d8ee9248e7c88ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -3198,7 +3255,6 @@
},
inputScript:
'410dc4415d0ef25301d74f5fa770bb0b8e4f3bc1b9c87f3d9c65efdbe246468c364ad4a696c9b6491a215643807db3e3ac209e38590bbecd0185d23d045cea8c07c1210363bbf8cf60612f89a8da03416a7ff0f398b315c7217b0c7a15ca52d5fcecb316',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -3208,12 +3264,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '228263',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '228263' },
},
outputScript:
'76a9147276ae7693883fa1165628e298899d8ee9248e7c88ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -3222,10 +3279,10 @@
},
inputScript:
'41d2966d687a9ad26c155c99fcf87b94b2a54b9ecbbf6caee7f6063b756aafa63113c5a16abc21495aaff02b5e558853043038de716c3adbaae2bd69356be4e3ce412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
+ sats: { dataType: 'BigIntReplacer', value: '1000' },
},
{
prevOut: {
@@ -3234,10 +3291,10 @@
},
inputScript:
'41839e901cd8f3f8d20d99c02ffbc6268baa5f6e5d410ec3207f5a582b4a2731b4baa472afec7c78f834bb16900bbc7fb16d2db446cb895a36a18bd520524ae60c412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
+ sats: { dataType: 'BigIntReplacer', value: '1000' },
},
{
prevOut: {
@@ -3246,10 +3303,10 @@
},
inputScript:
'413ba7dddc6fed541f666086c4db0420b03a279f3926c5acc7dbc0d8d51c95cc1f0ad28f030bc4b76d6c42b94caed9750d7f9d7274c017e04049ae64b194299c49412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
+ sats: { dataType: 'BigIntReplacer', value: '1000' },
},
{
prevOut: {
@@ -3258,10 +3315,10 @@
},
inputScript:
'41a14fe12995bd1fbd3e53b00767121e4504a5a97be0482f936cedf3cbc3c04449a3155293522afd213bf4c6e5655c6335179eae63b94afd70a979d63ae7621c04412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
+ sats: { dataType: 'BigIntReplacer', value: '1000' },
},
{
prevOut: {
@@ -3270,20 +3327,19 @@
},
inputScript:
'416c5a43be467820cb14fb8c82a389a80507816dae3649c28f06def267ca9de2c52089d8f7be41076bf1baea97f29538b3a8cbc6cca2e22d7227a58824a676e43f412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
+ sats: { dataType: 'BigIntReplacer', value: '1000' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a503d534c5032000453454e4445e1f25de444e399b6d46fa66e3424c04549a85a14b12bc9a4ddc9cdcdcdcdcd03401f000000006067010000002f9102000000',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a914dee50f576362377dd2f031453c0bb09009acaf8188ac',
token: {
@@ -3294,13 +3350,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '8000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '8000' },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
- value: 2588,
outputScript:
'a914f71cf8cb91804a2205901cc0972c3f4a088a1aae87',
token: {
@@ -3311,17 +3367,17 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '92000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '92000' },
},
spentBy: {
txid: '73ce0b742131ace72e8598a9585971220c4ddcd4d4d13a058bbcc52c355dca2c',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '2588' },
},
{
- value: 546,
outputScript:
'76a9147276ae7693883fa1165628e298899d8ee9248e7c88ac',
token: {
@@ -3332,14 +3388,15 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '168239',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '168239' },
},
spentBy: {
txid: '292057e2071f8245317ff4e504a0b57ce3c841f4a9505cfbe7ecc7521d0054ff',
outIdx: 4,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
],
lockTime: 0,
@@ -3359,9 +3416,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -3383,7 +3440,6 @@
},
inputScript:
'40e9025766015ff3fb2bb1a0643540589de84a6bd74799f6a5130e5f4793bb04b6614eda7d11f0e3c6edba32e8f97952f87fd0065e08d7d5700d668b72880356184730450221009aa1063132f8fe88d11d69438be0320201ec79e74b43af57ec91f6697f9eedc10220294cc6f123ef35a2a92146b3af9f19a8b84745df28ff81b0f918547c0f316aa020912cacf95b220116236c81840549456ae3cc3a537d94e9a5a7691eb609b9e1bb2102ccd325f41c9e343dcfb2b767e9fd1be0b60636c2f08c403bb72d1dc5751a1f0d2c6fbb7b01417e78ad7e21022b7c4d310cd9aee3a0256b2f6399d2d737da47f14582667ea30a159ed879f003ba',
- value: 1000,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -3393,22 +3449,22 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '0' },
},
outputScript:
'a914ea826cc1a3a981d048cd78b66711222bece8ebf287',
+ sats: { dataType: 'BigIntReplacer', value: '1000' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a5032534c503200044d494e5445e1f25de444e399b6d46fa66e3424c04549a85a14b12bc9a4ddc9cdcdcdcdcd0160ae0a00000000',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a91472a92e48c5ab72566959db1dbf1b8dce83afabb788ac',
token: {
@@ -3419,14 +3475,15 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '700000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '700000' },
},
spentBy: {
txid: '4307458f1952db756e959e68aacae82c73a4b86d6e996636d66bf79bca28cbbe',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
],
lockTime: 0,
@@ -3446,9 +3503,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -3470,27 +3527,27 @@
},
inputScript:
'473044022035f1526804dbc6164f905280e1b3ff09841b14471344bb676985ac5ded00bf3602206981faee987c646a169538a8bbef38c5d0e2f377b6d6beb7a56d01a961ca65b1412102063d93675f351cb3b95e671fb2b8b20fa2e0ff624079ab7d32c49cf462286c23',
- value: 8862751,
sequenceNo: 0,
outputScript:
'76a914d95a60cea21479569e6b1ad39416c8fbc97323c588ac',
+ sats: { dataType: 'BigIntReplacer', value: '8862751' },
},
],
outputs: [
{
- value: 8419613,
outputScript:
'76a914453c8c15aee05fe5a027d4bf5681cd0bc682c0b788ac',
+ sats: { dataType: 'BigIntReplacer', value: '8419613' },
},
{
- value: 442686,
outputScript:
'76a914d95a60cea21479569e6b1ad39416c8fbc97323c588ac',
+ sats: { dataType: 'BigIntReplacer', value: '442686' },
},
{
- value: 0,
outputScript:
'6a403d3a4554482e4554483a3078613961614633304636353935354336396331364233333435423531443432364439423838426138373a3834313332313a74723a30',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
],
lockTime: 0,
@@ -3517,26 +3574,26 @@
},
inputScript:
'47304402207dd238f4aea9210eb5e311ec38a38c079290f89ba39a436cf1d7c4b3ee10a1b002202516389f5631a67d7eb89e03598dd90a20cae966049445cb1cf82059feb1cd49412103c918521e29ff4986c49c48750d18f1f586a34578ab37f2d206ed8d25abd95d39',
- value: 12966881,
sequenceNo: 4294967295,
outputScript:
'76a9142cc3608fe629c4f402e511878982bc01bde3445d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '12966881' },
},
],
outputs: [
{
- value: 12966621,
outputScript:
'a9145aafaadba9ff909067a640e5e2a46b756aeaf71387',
spentBy: {
txid: '56f1c0813d1b44697deccdd32b5182448e8c4c1bd6db771ceed779d4a5021ab9',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '12966621' },
},
{
- value: 0,
outputScript:
'6a14663ddd99990bcd969994ec2288a2a86dc532e1a8',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
],
lockTime: 1692219709,
@@ -3563,39 +3620,39 @@
},
inputScript:
'483045022100d48813ecde5c1878587111e2b6a931414acfcd133af250f3b6f15363afb554570220780fc409af09dfe10b6b0bcbea7c1e588456a8fb029571363e31f3e4174f652b412103562731a08eb23e6260b516c4564f746033e9080bc9f61ad2158a63927500b8b1',
- value: 584106362127,
sequenceNo: 4294967295,
outputScript:
'76a914231f7087937684790d1049294f3aef9cfb7b05dd88ac',
+ sats: { dataType: 'BigIntReplacer', value: '584106362127' },
},
],
outputs: [
{
- value: 214748364700,
outputScript:
'76a914231f7087937684790d1049294f3aef9cfb7b05dd88ac',
spentBy: {
txid: '63edf584e527ec15d6d3ffa33db55cd6055a5d8af3dd778a8ffaad35a594a180',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '214748364700' },
},
{
- value: 154609632467,
outputScript:
'76a914231f7087937684790d1049294f3aef9cfb7b05dd88ac',
spentBy: {
txid: '99eec6fec03c1c3d2043a07f38488aae9416e676f859a940e521b619f9308d6d',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '154609632467' },
},
{
- value: 214748364700,
outputScript:
'76a914231f7087937684790d1049294f3aef9cfb7b05dd88ac',
spentBy: {
txid: '63edf584e527ec15d6d3ffa33db55cd6055a5d8af3dd778a8ffaad35a594a180',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '214748364700' },
},
],
lockTime: 0,
@@ -3622,10 +3679,10 @@
},
inputScript:
'483045022100b868d4ead08172bcd2dd666173f108476d6ad83536b1d669063ad48281271fa002202a1ed3f7217cf0dbc6c6114d6087a06d9d2fdcd60e3a8301f9e311be53eb91e6412102bda582a4bf42f9b5520d5023f37e53744a8f048a404d477f3187ccf3fdb0a43e',
- value: 30426563453,
sequenceNo: 4294967295,
outputScript:
'76a9147c09e7cf1b2c40d4e08057e47bda9cabcdfd208588ac',
+ sats: { dataType: 'BigIntReplacer', value: '30426563453' },
},
{
prevOut: {
@@ -3634,10 +3691,10 @@
},
inputScript:
'483045022100d5d1c650af14f2fc58ede519385f184c81cc26ab7e49bcb81700bb4fd91a33cb02204dc0c91c915dadf5bff6bb2d54713bb338072e229a9053c557a11c8df7aedf92412102bda582a4bf42f9b5520d5023f37e53744a8f048a404d477f3187ccf3fdb0a43e',
- value: 30225350654,
sequenceNo: 4294967295,
outputScript:
'76a9147c09e7cf1b2c40d4e08057e47bda9cabcdfd208588ac',
+ sats: { dataType: 'BigIntReplacer', value: '30225350654' },
},
{
prevOut: {
@@ -3646,10 +3703,10 @@
},
inputScript:
'4730440220299867647c651e087b2362cb46cea041d1340cc9d292a747b79f60a39c5e6ed802200ce28ec8453004aed4698cc91572571c3fb6c7dcab27e5b81838ba11b7fcf47b41210347225b9b5059b0ecd55f4d3c611396893be1e4ddbc4f6fb359344d66d90603f1',
- value: 16816891900,
sequenceNo: 4294967295,
outputScript:
'76a9149f27f41b828019c141516179ab00e538a3f65a1788ac',
+ sats: { dataType: 'BigIntReplacer', value: '16816891900' },
},
{
prevOut: {
@@ -3658,10 +3715,10 @@
},
inputScript:
'473044022025398b595b52b1960da327514ecfa26c764d996336b983ef8a7824082e421c93022016691118624efe4eba4c70faca860f41e36b68ee39a8d7513d170ff43c984a84412102b56ea6bd49408c797271d772223ac85b92b10237d160e5ad4ff4c44c8ed00a50',
- value: 6908486500,
sequenceNo: 4294967295,
outputScript:
'76a9142d9c4a5a292f5fef07b8cfe76b0c66d90d15a5d688ac',
+ sats: { dataType: 'BigIntReplacer', value: '6908486500' },
},
{
prevOut: {
@@ -3670,10 +3727,10 @@
},
inputScript:
'473044022004f43cc3b9ceb7f913ee80e128b08ecfa4b610c70e1099fa406f275b3df23dfc022061fd494601553d29396bba36c60510e8d2b8c3383144c917ef20a7c6866d13a64121037b692abf35a795b78711ef5455f47579360375d96eca666e2c48c85260f2eb4b',
- value: 5101721000,
sequenceNo: 4294967295,
outputScript:
'76a9149d1cd75ff25c555213ab5fef4bbd6a180a5e5e7d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '5101721000' },
},
{
prevOut: {
@@ -3682,10 +3739,10 @@
},
inputScript:
'47304402200ffaa112a2dd2dc15616ad307375c48ca838d0ad181e0ad832e288f664d821a40220734a342dd82e175c422831ef59ae0023c01ce38589b9f1748157176533d7164f412102b56ea6bd49408c797271d772223ac85b92b10237d160e5ad4ff4c44c8ed00a50',
- value: 4810263100,
sequenceNo: 4294967295,
outputScript:
'76a9142d9c4a5a292f5fef07b8cfe76b0c66d90d15a5d688ac',
+ sats: { dataType: 'BigIntReplacer', value: '4810263100' },
},
{
prevOut: {
@@ -3694,10 +3751,10 @@
},
inputScript:
'483045022100aaff5eb83c7bada3dd363f528ea7c8cf0e48d745d994d1d4bb2b906da832a24c02205430989a4dd0955690eb9a2e41b7c91bfefd3b79b82f27e0ac434f9cc55aca86412103dea874528abd36e4f0484357f510dd3875c8a2aec1baeac73dfaf5ea860bd510',
- value: 4000000000,
sequenceNo: 4294967295,
outputScript:
'76a9143d1ee2681911f344e77097a8bd25576e1da1c51788ac',
+ sats: { dataType: 'BigIntReplacer', value: '4000000000' },
},
{
prevOut: {
@@ -3706,10 +3763,10 @@
},
inputScript:
'483045022100f0a2b357da363c552f8ddcc9ce6e2e7554a90ea7214a80af62c0195d1df1ad0b02202847981fc03cb4f751b7640b283f722a241896e5a1b6221cb9c31ead0b44e524412102b56ea6bd49408c797271d772223ac85b92b10237d160e5ad4ff4c44c8ed00a50',
- value: 3463133300,
sequenceNo: 4294967295,
outputScript:
'76a9142d9c4a5a292f5fef07b8cfe76b0c66d90d15a5d688ac',
+ sats: { dataType: 'BigIntReplacer', value: '3463133300' },
},
{
prevOut: {
@@ -3718,10 +3775,10 @@
},
inputScript:
'483045022100a5df4cf238b2014f748f3ebe6c7e83cd1a32322bcea736d169b1576e0f1604c70220363170a21ae3c612dc4ef6bd4b6348ac528956e499f7c5d28a3cb40d439024d9412102b56ea6bd49408c797271d772223ac85b92b10237d160e5ad4ff4c44c8ed00a50',
- value: 3295559900,
sequenceNo: 4294967295,
outputScript:
'76a9142d9c4a5a292f5fef07b8cfe76b0c66d90d15a5d688ac',
+ sats: { dataType: 'BigIntReplacer', value: '3295559900' },
},
{
prevOut: {
@@ -3730,10 +3787,10 @@
},
inputScript:
'483045022100dd42a76f7d99703eb5f08adbdf0a55b76ca80ba84668a181a26a0a4586e894bc0220754cd7b68540db2cd51cd599880585c6005e43953ca7af282d3929b9234703a741210297dffbcf8f417222ddadba818df5110a4b83fccdce773479c2044f25d3cb0071',
- value: 1412324900,
sequenceNo: 4294967295,
outputScript:
'76a91429981fd0910f0851fcb3422b37abb5de442de33188ac',
+ sats: { dataType: 'BigIntReplacer', value: '1412324900' },
},
{
prevOut: {
@@ -3742,10 +3799,10 @@
},
inputScript:
'4730440220219e5b506570bc1d259d792a2ef33ed04a4a5ad01614bfab79d2f0f903b257d102205bd60750fca96273264c6f736397693198203f2047e457c3878b166d6145a46d412103020f6e4ca80517db5a8ce83bf33169e018f75aa55a399678a8a33dcf0506c3fc',
- value: 99900000,
sequenceNo: 4294967295,
outputScript:
'76a914ef95330c2b65976c5c63b03d544207b5e55bb58b88ac',
+ sats: { dataType: 'BigIntReplacer', value: '99900000' },
},
{
prevOut: {
@@ -3754,10 +3811,10 @@
},
inputScript:
'483045022100f74b49fa395d8cd8d92d23e9c076e090a654ab30d0fd28dcf862fe827bb35d3c02206cd85e601f7b183934553e829e2e97c20062ecc23316fd8b033a29781e7261bf412102609d0ef47f50c17d99aa5db555e267ab2f91521c8f9c6be0301ae3e69c031176',
- value: 8625006,
sequenceNo: 4294967295,
outputScript:
'76a9144d746dbe5864a2635376326a3995f8ada2ec339d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '8625006' },
},
{
prevOut: {
@@ -3766,21 +3823,21 @@
},
inputScript:
'47304402205260a686c8b3d2272a92930d76fda2dae5f9a16afee43c3b2ddb2c3d2742ab930220176b484e84b26a422481e2e6fb690484c2f6cab7d1b03af31f44a8b77aa4b58a412102609d0ef47f50c17d99aa5db555e267ab2f91521c8f9c6be0301ae3e69c031176',
- value: 8625000,
sequenceNo: 4294967295,
outputScript:
'76a9144d746dbe5864a2635376326a3995f8ada2ec339d88ac',
+ sats: { dataType: 'BigIntReplacer', value: '8625000' },
},
],
outputs: [
{
- value: 106577441836,
outputScript:
'76a914a520c86a08366941cd90d22e11ac1c7eefa2db3788ac',
spentBy: {
txid: '78bc65dce0917bf1d3c29f8a9cce02204cc85f90dfeda68356d7338e4d68be4f',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '106577441836' },
},
],
lockTime: 0,
@@ -3807,7 +3864,6 @@
},
inputScript:
'419e644b0b2da83425baffd1d591632fb07216568e0e63c93f4794541aad34801779ce531c546bc8896086670cb59c27afe70972d7e9c058d9c6c43da43ecf6ba4c121020cd8434356c9c73fe2efb9cce867cd86e2649fb77fc28b9bd72f17cf9c4b221a',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -3817,12 +3873,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '2000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '2000' },
},
outputScript:
'76a914378c3b416e77e01198c01ad215b8afd0bb72799488ac',
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
{
prevOut: {
@@ -3831,20 +3888,19 @@
},
inputScript:
'41c865813618b58d4e6f311d70392b4f1cc15d160ef6813ea95255246b0da2ee3dbfc057138998354b81c67df5e23f75ebd39c6d5b2071b0c7ae4d8521469beef7412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
+ sats: { dataType: 'BigIntReplacer', value: '1000' },
},
],
outputs: [
{
- value: 0,
outputScript:
'6a5031534c5032000453454e4445e1f25de444e399b6d46fa66e3424c04549a85a14b12bc9a4ddc9cdcdcdcdcd01d00700000000',
+ sats: { dataType: 'BigIntReplacer', value: '0' },
},
{
- value: 546,
outputScript:
'76a914acdbf937b086ddaa970072a610daa8d10f14549a88ac',
token: {
@@ -3855,10 +3911,11 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '2000',
isMintBaton: false,
entryIdx: 0,
+ atoms: { dataType: 'BigIntReplacer', value: '2000' },
},
+ sats: { dataType: 'BigIntReplacer', value: '546' },
},
],
lockTime: 0,
@@ -3878,9 +3935,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: { dataType: 'BigIntReplacer', value: '0' },
},
],
tokenFailedParsings: [],
@@ -3902,30 +3959,30 @@
},
inputScript:
'415baa3f7a0f8294ec0555e1f825c43043eb229f4e2c0bf9a5a676838a881daca32346bbdee05b346f95c39cd69ef709990fd19bbf574f69bf898cd9a1cba001a341210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 2531619,
sequenceNo: 4294967295,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
+ sats: { dataType: 'BigIntReplacer', value: '2531619' },
},
],
outputs: [
{
- value: 4200,
outputScript:
'76a91430f16ad77116a4b9e7f337743e35271323d63e0d88ac',
spentBy: {
txid: '16eb156e4b2688706f9e3da8bdcba69f363d1975ccb363b02274a7ff13d3220a',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '4200' },
},
{
- value: 2527200,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
spentBy: {
txid: '6f77cfe3148f28de4b982c18d34e79b8d51a368a7c94354b7399133318daf129',
outIdx: 1,
},
+ sats: { dataType: 'BigIntReplacer', value: '2527200' },
},
],
lockTime: 0,
@@ -3952,30 +4009,30 @@
},
inputScript:
'41f9e93665c2d65431ce4142cc4fb93ec0818b50732c52be2de33df3fc4d056fb923351bdef771f46bb235371b5def9fec16590484c0525f27d1179e7e32ab30d641210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 2524161,
sequenceNo: 4294967295,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
+ sats: { dataType: 'BigIntReplacer', value: '2524161' },
},
],
outputs: [
{
- value: 4200,
outputScript:
'76a914eeae0fea781c26c93879523ba5a47c244c768ece88ac',
spentBy: {
txid: 'afde4b9345a7bdbb20eaf7a0da3c730ca28334b8ceffce0a3e7b720b0c5d5a09',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '4200' },
},
{
- value: 2519742,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
spentBy: {
txid: '68d48755e671dbd6946d811dff04532ede483cee2f3c284e08dddec3d7c351d9',
outIdx: 0,
},
+ sats: { dataType: 'BigIntReplacer', value: '2519742' },
},
],
lockTime: 0,
@@ -3993,7 +4050,10 @@
miner: 'unknown, ...863u',
staker: {
staker: 'ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt',
- reward: 62500000,
+ reward: {
+ dataType: 'BigIntReplacer',
+ value: '62500000',
+ },
},
numTxs: 27,
parsedTxs: [
@@ -4008,11 +4068,11 @@
'76a914231f7087937684790d1049294f3aef9cfb7b05dd88ac',
],
},
- xecReceivingOutputs: {
- dataType: 'Map',
- value: [],
+ xecReceivingOutputs: { dataType: 'Map', value: [] },
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '584106361867',
},
- totalSatsSent: 584106361867,
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4043,7 +4103,10 @@
],
],
},
- totalSatsSent: 106577441836,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '106577441836',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4386,7 +4449,10 @@
],
],
},
- totalSatsSent: 1308715143,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '1308715143',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4416,7 +4482,10 @@
['6a14663ddd99990bcd969994ec2288a2a86dc532e1a8', 0],
],
},
- totalSatsSent: 12966621,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '12966621',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4451,7 +4520,10 @@
],
],
},
- totalSatsSent: 8419613,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '8419613',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4534,7 +4606,10 @@
],
],
},
- totalSatsSent: 4500002,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '4500002',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4564,7 +4639,10 @@
],
],
},
- totalSatsSent: 1000000,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '1000000',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4588,7 +4666,10 @@
],
],
},
- totalSatsSent: 4200,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '4200',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4612,7 +4693,10 @@
],
],
},
- totalSatsSent: 4200,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '4200',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4645,7 +4729,10 @@
],
],
},
- totalSatsSent: 3134,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '3134',
+ },
tokenSendInfo: {
tokenId:
'cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145',
@@ -4723,7 +4810,10 @@
],
],
},
- totalSatsSent: 2000,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '2000',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4758,7 +4848,10 @@
['a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087', 554],
],
},
- totalSatsSent: 554,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '554',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -4786,7 +4879,10 @@
],
],
},
- totalSatsSent: 546,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '546',
+ },
tokenSendInfo: {
tokenId:
'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
@@ -4849,7 +4945,10 @@
],
],
},
- totalSatsSent: 546,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '546',
+ },
tokenSendInfo: {
tokenId:
'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
@@ -4912,7 +5011,10 @@
],
],
},
- totalSatsSent: 546,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '546',
+ },
tokenSendInfo: {
tokenId:
'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
@@ -4975,7 +5077,10 @@
],
],
},
- totalSatsSent: 546,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '546',
+ },
tokenSendInfo: {
tokenId:
'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
@@ -5038,7 +5143,10 @@
],
],
},
- totalSatsSent: 546,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '546',
+ },
tokenSendInfo: {
tokenId:
'98183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48',
@@ -5061,10 +5169,7 @@
value: [
[
'76a9146ffbe7c7d7bd01295eb1e371de9550339bdcf9fd88ac',
- {
- dataType: 'BigNumberReplacer',
- value: '55',
- },
+ { dataType: 'BigNumberReplacer', value: '55' },
],
],
},
@@ -5101,7 +5206,10 @@
],
],
},
- totalSatsSent: 546,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '546',
+ },
tokenSendInfo: {
tokenId:
'7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d',
@@ -5164,7 +5272,10 @@
],
],
},
- totalSatsSent: 546,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '546',
+ },
tokenSendInfo: {
tokenId:
'fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa',
@@ -5225,7 +5336,10 @@
],
],
},
- totalSatsSent: 546,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '546',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -5254,16 +5368,16 @@
],
],
},
- totalSatsSent: 546,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '546',
+ },
tokenSendInfo: {
tokenId:
'cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145',
parsedTokenType: 'ALP',
txType: 'SEND',
- tokenChangeOutputs: {
- dataType: 'Map',
- value: [],
- },
+ tokenChangeOutputs: { dataType: 'Map', value: [] },
tokenReceivingOutputs: {
dataType: 'Map',
value: [
@@ -5308,7 +5422,10 @@
],
],
},
- totalSatsSent: 0,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '0',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -5332,7 +5449,10 @@
],
],
},
- totalSatsSent: 0,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '0',
+ },
tokenSendInfo: {
tokenId:
'7e7dacd72dcdb14e00a03dd3aff47f019ed51a6f1f4e4f532ae50692f62bc4e5',
@@ -5350,10 +5470,7 @@
],
],
},
- tokenReceivingOutputs: {
- dataType: 'Map',
- value: [],
- },
+ tokenReceivingOutputs: { dataType: 'Map', value: [] },
tokenSendingOutputScripts: {
dataType: 'Set',
value: [
@@ -5383,12 +5500,18 @@
],
],
},
- totalSatsSent: 0,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '0',
+ },
tokenSendInfo: false,
tokenBurnInfo: {
tokenId:
'fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa',
- undecimalizedTokenBurnAmount: '100',
+ actualBurnAtoms: {
+ dataType: 'BigIntReplacer',
+ value: '100',
+ },
},
},
{
@@ -5430,7 +5553,10 @@
],
],
},
- totalSatsSent: 0,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '0',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -5457,7 +5583,10 @@
],
],
},
- totalSatsSent: 0,
+ totalSatsSent: {
+ dataType: 'BigIntReplacer',
+ value: '0',
+ },
tokenSendInfo: false,
tokenBurnInfo: false,
},
@@ -5520,15 +5649,9 @@
},
},
coingeckoResponse: {
- bitcoin: {
- usd: 30000,
- },
- ecash: {
- usd: 0.0001,
- },
- ethereum: {
- usd: 2000,
- },
+ bitcoin: { usd: 30000 },
+ ecash: { usd: 0.0001 },
+ ethereum: { usd: 2000 },
},
activeStakers: [
{
@@ -5959,21 +6082,9 @@
},
],
coingeckoPrices: [
- {
- fiat: 'usd',
- price: 0.0001,
- ticker: 'XEC',
- },
- {
- fiat: 'usd',
- price: 30000,
- ticker: 'BTC',
- },
- {
- fiat: 'usd',
- price: 2000,
- ticker: 'ETH',
- },
+ { fiat: 'usd', price: 0.0001, ticker: 'XEC' },
+ { fiat: 'usd', price: 30000, ticker: 'BTC' },
+ { fiat: 'usd', price: 2000, ticker: 'ETH' },
],
tokenInfoMap: {
dataType: 'Map',
@@ -6080,10 +6191,16 @@
'76a914231f7087937684790d1049294f3aef9cfb7b05dd88ac',
{
emoji: '🐳',
- balanceSats: '01000000000000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '01000000000000',
+ },
utxos: [
{
- value: '1000000000000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '1000000000000',
+ },
},
],
},
@@ -6092,10 +6209,16 @@
'76a9147c09e7cf1b2c40d4e08057e47bda9cabcdfd208588ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6104,10 +6227,16 @@
'76a914a520c86a08366941cd90d22e11ac1c7eefa2db3788ac',
{
emoji: '🦀',
- balanceSats: '010000000000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000000000',
+ },
utxos: [
{
- value: '10000000000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000000000',
+ },
},
],
},
@@ -6116,10 +6245,16 @@
'76a91412934a7a99b69a60c3b99f991cd79d257104f5a688ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6128,10 +6263,16 @@
'76a914d7fc1d156d8ec4384623bb8ceb135df93f2bd93188ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6140,10 +6281,16 @@
'76a9142cc3608fe629c4f402e511878982bc01bde3445d88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6152,10 +6299,16 @@
'a9145aafaadba9ff909067a640e5e2a46b756aeaf71387',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6164,10 +6317,16 @@
'76a914d95a60cea21479569e6b1ad39416c8fbc97323c588ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6176,10 +6335,16 @@
'76a914453c8c15aee05fe5a027d4bf5681cd0bc682c0b788ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6188,10 +6353,16 @@
'76a914f93029e7593327c5b864ea6896ecfda4fffb6ab888ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6200,10 +6371,16 @@
'76a914957b59a2bfa17ea7fc234e532b263169b6d34aa988ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6212,10 +6389,16 @@
'76a9147d432e8ccc646fe6c52e36c285bce2b75f0f500b88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6224,10 +6407,16 @@
'76a9144fb74b44c66ab529428a943131f236c80d99b82088ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6236,10 +6425,16 @@
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6248,10 +6443,16 @@
'76a91430f16ad77116a4b9e7f337743e35271323d63e0d88ac',
{
emoji: '',
- balanceSats: 10000,
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
utxos: [
{
- value: 10000,
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6260,10 +6461,16 @@
'76a914eeae0fea781c26c93879523ba5a47c244c768ece88ac',
{
emoji: '',
- balanceSats: 10000,
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
utxos: [
{
- value: 10000,
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6272,10 +6479,16 @@
'76a9147276ae7693883fa1165628e298899d8ee9248e7c88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6284,10 +6497,16 @@
'76a914dee50f576362377dd2f031453c0bb09009acaf8188ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6296,10 +6515,16 @@
'76a9140b7d35fda03544a08e65464d54cfae4257eb6db788ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6308,10 +6533,16 @@
'76a9149846b6b38ff713334ac19fe3cf851a1f98c07b0088ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6320,10 +6551,16 @@
'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6332,10 +6569,16 @@
'76a914dcc535261a43835ca12352d0926ba06cf07cbe8388ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6344,10 +6587,16 @@
'76a91469724b96df46096cc95b1a6d408a4240ea80d85588ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6356,10 +6605,16 @@
'76a91458cddba2449285814dae43d4ed4a1c9998f3693e88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6368,10 +6623,16 @@
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6380,10 +6641,16 @@
'76a9146ffbe7c7d7bd01295eb1e371de9550339bdcf9fd88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6392,10 +6659,16 @@
'76a9141c13ddb8dd422bbe02dc2ae8798b4549a67a3c1d88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6404,10 +6677,16 @@
'76a914dadf34cde9c774fdd6340cd2916a9b9c5d57cf4388ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6416,10 +6695,16 @@
'a914ea826cc1a3a981d048cd78b66711222bece8ebf287',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6428,10 +6713,16 @@
'76a91472a92e48c5ab72566959db1dbf1b8dce83afabb788ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6440,10 +6731,16 @@
'76a914378c3b416e77e01198c01ad215b8afd0bb72799488ac',
{
emoji: '',
- balanceSats: 10000,
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
utxos: [
{
- value: 10000,
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6452,10 +6749,16 @@
'76a914acdbf937b086ddaa970072a610daa8d10f14549a88ac',
{
emoji: '',
- balanceSats: 10000,
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
utxos: [
{
- value: 10000,
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6464,10 +6767,16 @@
'76a914104e67d912a7aab2a159bba141477e5867c04bfd88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6476,10 +6785,16 @@
'76a9146d69b5cbe7c85d87628473c43620c0daa9a8102988ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6488,10 +6803,16 @@
'76a9144bb6f659b8dafd99527e0c0a3289f121b0a0209f88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6500,10 +6821,16 @@
'76a914aed3f8a5add35a9ddaf0a07986c2b73a2202727d88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
@@ -6512,10 +6839,16 @@
'76a9148fa951904f6d0ebbc92dc29e761b9eb0a837545c88ac',
{
emoji: '',
- balanceSats: '010000',
+ balanceSats: {
+ dataType: 'BigIntReplacer',
+ value: '010000',
+ },
utxos: [
{
- value: '10000',
+ sats: {
+ dataType: 'BigIntReplacer',
+ value: '10000',
+ },
},
],
},
diff --git a/apps/ecash-herald/test/mocks/dailyTxs.ts b/apps/ecash-herald/test/mocks/dailyTxs.ts
--- a/apps/ecash-herald/test/mocks/dailyTxs.ts
+++ b/apps/ecash-herald/test/mocks/dailyTxs.ts
@@ -26,22 +26,22 @@
},
inputScript:
'0372390d04d8440e6708bd41863a64000000736f6c6f706f6f6c2e6f7267',
- value: 0,
+ sats: 0n,
sequenceNo: 0,
},
],
outputs: [
{
- value: 181272025,
+ sats: 181272025n,
outputScript:
'76a914f4728f398bb962656803346fb4ac45d776041a2e88ac',
},
{
- value: 100012151,
+ sats: 100012151n,
outputScript: 'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
},
{
- value: 31253797,
+ sats: 31253797n,
outputScript:
'76a914197eaf9b9f4b4f038f967c76cf050e3d8f5f872e88ac',
},
@@ -73,22 +73,22 @@
},
inputScript:
'0370390d192f5669614254432f4d696e6564206279206d6f6f72646f632f1003e0a10ffd4bebde9cbcad5d8cb90200',
- value: 0,
+ sats: 0n,
sequenceNo: 4294967295,
},
],
outputs: [
{
- value: 181291465,
+ sats: 181291465n,
outputScript:
'76a914f1c075a01882ae0972f95d3a4177c86c852b7d9188ac',
},
{
- value: 100022876,
+ sats: 100022876n,
outputScript: 'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
},
{
- value: 31257149,
+ sats: 31257149n,
outputScript:
'76a914eaac1f0faac136c3091b67f78c4bc8d0f037b94188ac',
},
@@ -120,22 +120,22 @@
},
inputScript:
'0367390d04f0150e6708fabe6d6d25608bc631bda8933fe554bb7a50befe9e4139bda920ac0ee937769cec2ffde7000100000000000001b65911900403003201112f4d696e696e672d44757463682f2d3335',
- value: 0,
+ sats: 0n,
sequenceNo: 0,
},
],
outputs: [
{
- value: 181255884,
+ sats: 181255884n,
outputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
},
{
- value: 100003246,
+ sats: 100003246n,
outputScript: 'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
},
{
- value: 31251014,
+ sats: 31251014n,
outputScript:
'76a914a07b8141956fca49e54b474e5efd894fabab6bbb88ac',
},
@@ -167,7 +167,7 @@
},
inputScript:
'41c61f3e6506b6e66be785e1bd91c934252f36ef1345dbeaeeed82cbbc95279ad570c0aa68646e9908e559ebc5306ad323c8fcdd17286564a92f5f03656c32a7a041210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 94297394,
+ sats: 94297394n,
sequenceNo: 4294967295,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
@@ -175,12 +175,12 @@
],
outputs: [
{
- value: 4200,
+ sats: 4200n,
outputScript:
'76a914e54253a422ad52174e6ad25762c318a2aaa921db88ac',
},
{
- value: 94292975,
+ sats: 94292975n,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
spentBy: {
@@ -216,7 +216,7 @@
},
inputScript:
'416492cfb9939f8d08ce8063069242682bfc62832f5a30a8f9cf427a9d1618ca0c72d53a803667e7fc8de07c393d40a58146b34bc0f0a09f36da5cfa32c45456df41210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -226,7 +226,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '454260000',
+ atoms: 454260000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -240,7 +240,7 @@
},
inputScript:
'41128001cde47289dda3455e0c28b85bfd18775ff44b6effee197f7f4c09b9418d1cab4719dc4e3ace8c28a79e3ced43b82b7d8088f949ad1d69f0228048f3046141210353f81d61d41d6e22c73ab449476113dea124afe3972991cd237e654f15950b7c',
- value: 94291962,
+ sats: 94291962n,
sequenceNo: 4294967295,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
@@ -248,12 +248,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e4420aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb108000000000000271008000000001b134e10',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914e54253a422ad52174e6ad25762c318a2aaa921db88ac',
token: {
@@ -264,13 +264,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
+ atoms: 10000n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
token: {
@@ -281,7 +281,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '454250000',
+ atoms: 454250000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -291,7 +291,7 @@
},
},
{
- value: 94290949,
+ sats: 94290949n,
outputScript:
'76a914821407ac2993f8684227004f4086082f3f801da788ac',
spentBy: {
@@ -318,8 +318,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -345,7 +345,7 @@
},
inputScript:
'0441475230075041525449414c4180f1bfdb06735c27ffe75627fa1fecd46844334f6686dd5e64b01d4e68de28d98b6ed87ac5bf86ce27af78b06944beae25e2f0084433d563d6bd19c6616a5a62414c8c4c766a04534c500001010453454e442001d63c4f4cb496829a6743f7b1805d086ea3877a1dd34b3f92ffba2c9c99f89608000000000000000000013b62100000000000298f0000000000006de4ff1700000000f3282c4e03771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba601557f77ad075041525449414c88044147523087',
- value: 914,
+ sats: 914n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -355,7 +355,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2000',
+ atoms: 2000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -364,12 +364,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e442001d63c4f4cb496829a6743f7b1805d086ea3877a1dd34b3f92ffba2c9c99f8960800000000000007d0',
},
{
- value: 546,
+ sats: 546n,
outputScript: 'a914563178ea073228709397a2c98baf10677e683e6687',
token: {
tokenId:
@@ -379,7 +379,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2000',
+ atoms: 2000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -403,8 +403,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -429,7 +429,7 @@
},
inputScript:
'0441475230075041525449414c21023c72addb4fdf09af94f0c94d7fe92a386a7e70cf8a1d85916386bb2535c7b1b1407996448a8c0b89e341453ba9726eb40a2e8c07401808b82dc3623a2ab2c353c9115cbdbcd738b01d01a718c9c10336823231f7f16cdcc3ac43001c4c0c11e3764422020000000000001976a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac89680000000000001976a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac4d2c01f56747f8eef6e95b3408c1c407a69329c149dee323a43bceb0dd10c5cca0224802000000d37b63817b6ea2697604d0aa4701a2697602e2539700887d94527901377f75789263587e7802e253965880bc007e7e68587e527902e253965880bc007e7e825980bc7c7e007e7b02e1539302e2539658807e041976a914707501557f77a97e0288ac7e7e6b7d02220258800317a9147e024c7672587d807e7e7e01ab7e537901257f7702d3007f5c7f7701207f547f750440aef137886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501557f7768ad075041525449414c880441475230872202000000000000ffffffffdc591bfcfc4bbdd22709d6be93a5c9f25c9be52771a079ed51a1bd8767c4fa5d40aef137c100000004d0aa4701514d55014c766a04534c500001010453454e4420aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb10800000000000000000000e253000000000000e253000000000000d0aa47010000000040aef13703771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba60860b8507800000000ab7b63817b6ea2697604d0aa4701a2697602e2539700887d94527901377f75789263587e7802e253965880bc007e7e68587e527902e253965880bc007e7e825980bc7c7e007e7b02e1539302e2539658807e041976a914707501557f77a97e0288ac7e7e6b7d02220258800317a9147e024c7672587d807e7e7e01ab7e537901257f7702d3007f5c7f7701207f547f750440aef137886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501557f7768ad075041525449414c88044147523087',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -439,7 +439,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '94000',
+ atoms: 94000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -452,7 +452,7 @@
},
inputScript:
'4171aa357cf2a1e41d819440432b05557bd24da15319e714e6084330496e63f4cce9d8b3e77c86b9ae4a1ebd078a6ed8cbef34347b2d5a99643443c44d350e2ff0412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 30808,
+ sats: 30808n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -460,17 +460,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e4420aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1080000000000000000080000000000016b480800000000000003e8',
},
{
- value: 1000,
+ sats: 1000n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
{
- value: 546,
+ sats: 546n,
outputScript: 'a914366be7e1eee2040519012d19fbfc3002456aede487',
token: {
tokenId:
@@ -480,13 +480,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '93000',
+ atoms: 93000n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -497,13 +497,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000',
+ atoms: 1000n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 26761,
+ sats: 26761n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
},
@@ -526,8 +526,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -552,7 +552,7 @@
},
inputScript:
'41fd18138ab17386e9599e54d9d5f1994d1c4add3af860b1ece44b71d04bc7e7cd799e1234e2959236cd38558713d7fdb797a894c527906b0235a38519ad63fbea4121024f624d04900c2e3b7ea6014cb257f525b6d229db274bceeadbb1f06c07776e82',
- value: 975251,
+ sats: 975251n,
sequenceNo: 4294967295,
outputScript:
'76a9147847fe7070bec8567b3e810f543f2f80cc3e03be88ac',
@@ -564,7 +564,7 @@
},
inputScript:
'0441475230075041525449414c4113bb98283dc7a2f69957940bb3a45f4ec6050b61bcc1b1134d786727e379c8793107bf0d0b0e051665ab3eed2cca34901646cf564a1ab52cb32668da229eef0b41004d5f014c766a04534c500001010453454e442020a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f8080000000000000000030276a4000000000000e815000000000000a24a2600000000004b4a343a024f624d04900c2e3b7ea6014cb257f525b6d229db274bceeadbb1f06c07776e8208948eff7f00000000ab7b63817b6ea2697603a24a26a269760376a4009700887d94527901377f75789263587e780376a400965580bc030000007e7e68587e52790376a400965580bc030000007e7e825980bc7c7e0200007e7b02e7159302e8159656807e041976a914707501557f77a97e0288ac7e7e6b7d02220258800317a9147e024c7672587d807e7e7e01ab7e537901257f7702dd007f5c7f7701207f547f75044b4a343a886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501557f7768ad075041525449414c88044147523087',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -574,7 +574,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '855738679296',
+ atoms: 855738679296n,
isMintBaton: false,
entryIdx: 0,
},
@@ -583,12 +583,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e442020a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f808000000c73e000000',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9147847fe7070bec8567b3e810f543f2f80cc3e03be88ac',
token: {
@@ -599,13 +599,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '855738679296',
+ atoms: 855738679296n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 973723,
+ sats: 973723n,
outputScript:
'76a9147847fe7070bec8567b3e810f543f2f80cc3e03be88ac',
},
@@ -628,8 +628,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -656,7 +656,7 @@
},
inputScript:
'4830450221008ac252ef989af11e2c5cb9b5fc0de854f7522d3950146090c90ab79f3db693f502202a07a121ff673ffbc863be66525035e067850b804572035125672bd7dc7e43464121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 44095814,
+ sats: 44095814n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -664,12 +664,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e45534953035052500850657270657475611468747470733a2f2f636173687461622e636f6d2f4c0001000102080000000000002710',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
token: {
@@ -680,7 +680,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
+ atoms: 10000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -690,7 +690,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
token: {
@@ -701,7 +701,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
@@ -711,7 +711,7 @@
},
},
{
- value: 44094050,
+ sats: 44094050n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
@@ -738,8 +738,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -764,7 +764,7 @@
},
inputScript:
'4196b2976df5c8b5a52a02a4cfe29c79e69379d2c431b716ce8cafc173127b831e96e01730893d5fe538cd4919f61932c3720fe21edc3c0f8578cd67ee839c3e924121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -774,7 +774,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '18446744073709551615',
+ atoms: 18446744073709551615n,
isMintBaton: false,
entryIdx: 0,
},
@@ -788,7 +788,7 @@
},
inputScript:
'41c451d43dfbe0cf1a89b6894c1eb54250683569656945f984a1cc9e35c5bc8e6f6822d8a7837ee5cc820647dced5e959fc6245dfcf9981efe9e8309e9ed9c82b24121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 2815,
+ sats: 2815n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -796,12 +796,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e442004009a8be347f21a1122964c3226b99c36a9bd755c5a450a53848471a246610308000000000000006408ffffffffffffff9b',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -812,13 +812,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
+ atoms: 100n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
token: {
@@ -829,13 +829,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '18446744073709551515',
+ atoms: 18446744073709551515n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 1330,
+ sats: 1330n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
},
@@ -858,8 +858,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -885,7 +885,7 @@
},
inputScript:
'412a4090cd915b2d5838574c4ba7267264f9f35e3924865f45c3315d2398555f392aaea28f9de19c7f8115797396cb95793a8e1cb1449359c73ea0dd6b765332e44121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -895,7 +895,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
@@ -909,7 +909,7 @@
},
inputScript:
'41827f9d3b4b972bd7ac87900120b54e51b21002bdf525a10ac38a7306d73a3f03c2b307b6eb0f332b4170762a0cb510cb0e2e385bc2de0f231b53ecc6de6b4e234121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 2492,
+ sats: 2492n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -917,12 +917,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c50000101044d494e542004009a8be347f21a1122964c3226b99c36a9bd755c5a450a53848471a24661030102080000000000000021',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
token: {
@@ -933,13 +933,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '33',
+ atoms: 33n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
token: {
@@ -950,13 +950,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
},
{
- value: 1021,
+ sats: 1021n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
},
@@ -979,8 +979,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1006,7 +1006,7 @@
},
inputScript:
'41ebf71b0f30e6518961fba9c0bc17cdbed3ad3c4026c7157cc32e2e898b13c15dea3a5346e8fc8feb31616a9f58a76614490f27e834a6b96abe0007dc4a4174c54121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1016,7 +1016,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '18446744073709551615',
+ atoms: 18446744073709551615n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1030,7 +1030,7 @@
},
inputScript:
'41af685f59477f62587d266c15c8a99fb2e12970ba626eb8c63b73c2dd99e63a0616f873079fa0acfaef869b3ab90bb14f90653c576971ea26a67788c8be26e6724121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 34919953,
+ sats: 34919953n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -1038,12 +1038,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e442004009a8be347f21a1122964c3226b99c36a9bd755c5a450a53848471a246610308ffffffffffffffc8',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
token: {
@@ -1054,13 +1054,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '18446744073709551560',
+ atoms: 18446744073709551560n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 34919100,
+ sats: 34919100n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
},
@@ -1083,8 +1083,8 @@
isInvalid: false,
burnSummary: 'Unexpected burn: Burns 55 base tokens',
failedColorings: [],
- actualBurnAmount: '55',
- intentionalBurn: '0',
+ actualBurnAtoms: 55n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1110,7 +1110,7 @@
},
inputScript:
'473044022040b7bb9093b092003b5c41090f4b7560a7bcfed35278fd05d2f1083653529ea902205a11af8aea5d16a01dc7648397eb6b04369dda9e3e9ecc4a9efe3f5b4a41a1dd412102fafcdb1f5f0d2e49909fbafc18f339bcfc2b765b3def934d501eb798e626c7b3',
- value: 3851630,
+ sats: 3851630n,
sequenceNo: 4294967294,
outputScript:
'76a91452558a0640aae72592c3b336a3a4959ce97906b488ac',
@@ -1118,12 +1118,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001020747454e45534953034255581642616467657220556e6976657273616c20546f6b656e1368747470733a2f2f6275782e6469676974616c4c0001041408d6edf91c7b93d18306d3b8244587e43f11df4b080000000000000000',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91452558a0640aae72592c3b336a3a4959ce97906b488ac',
spentBy: {
@@ -1132,7 +1132,7 @@
},
},
{
- value: 3850752,
+ sats: 3850752n,
outputScript:
'76a914f4592a09e8da1a2157916963bc0fb7fe682df73e88ac',
spentBy: {
@@ -1159,8 +1159,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1187,7 +1187,7 @@
},
inputScript:
'0441475230074f4e4553484f5441f726092967ef8ec3ec48829c2beefa8feab1bbddd59d699f39f5a17a5958071ca662d1894cbcdec7496a01dae278180fdf042df9dacc479377c1ba32fe01340b414c562210270000000000001976a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac752103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6ad074f4e4553484f5488044147523087',
- value: 860,
+ sats: 860n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1197,7 +1197,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1206,12 +1206,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001410453454e44204902178c8ed20bab8984431654501942e76cb651d680559ff83627154958bfec080000000000000001',
},
{
- value: 546,
+ sats: 546n,
outputScript: 'a914e4d13a656429fafb1dbf0cb14b0385b97b1692ef87',
plugins: {
agora: {
@@ -1234,7 +1234,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1262,8 +1262,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
groupTokenId:
'0fb781a98fffb980b1c9c609f62b29783c348e74aa7ea3908dcf7f46388ab316',
@@ -1290,7 +1290,7 @@
},
inputScript:
'41c2ac670257fe9cb6ca0c3fdab8ef461e40fbbdd068c0cc41994be9d87082c8b3017c296296b21d30b76c5e2b855baf53a3ae4831c98c4848479d720eccfb646141004cb0634c6b0000000000000000406a04534c500001410453454e44204902178c8ed20bab8984431654501942e76cb651d680559ff83627154958bfec08000000000000000008000000000000000110270000000000001976a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac7c7eaa7801327f7701207f7588520144807c7ea86f7bbb7501c17e7c672103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba668abac',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1300,7 +1300,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1326,7 +1326,7 @@
},
inputScript:
'41958e12ca0bdf2c998c6f54381804d103d452aa67d0b94e3f61964bc3be4eb3a43bdb5d51b0ed2f7ffe978394b84eb5a0da25bc7c818d10b109d12f57d248cc91412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 651735486,
+ sats: 651735486n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1334,12 +1334,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001410453454e44204902178c8ed20bab8984431654501942e76cb651d680559ff83627154958bfec080000000000000001',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -1350,13 +1350,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 651734917,
+ sats: 651734917n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
@@ -1379,8 +1379,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
groupTokenId:
'0fb781a98fffb980b1c9c609f62b29783c348e74aa7ea3908dcf7f46388ab316',
@@ -1407,7 +1407,7 @@
},
inputScript:
'2103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba640694b6878134fc8f5d56a5feb78413c80cfb1b81802774f557d026de210045317e7648c3e52646cff9fdad7326739814e35db3fa824a4890734d820e8b4db33ce4c5ae9051192d1cd35b477981c5ff7151e96a9dcf7361b9489a8d16e2a7c733ec76c0100000001ac2202000000000000ffffffff207bf382a50097a3db0754db5a4feb2d448f69a26cffea3ec0d17120411ed14300000000c10000004422020000000000001976a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac60ff0d00000000001976a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac514cb0634c6b0000000000000000406a04534c500001410453454e4420de75efed4ef6026c52738178c71eca1dfe014d44d243ab9ae54d79cf6c96345a08000000000000000008000000000000000134581400000000001976a9147fb54ae2e2f36f98b3e838272725f2cd1b9f3caa88ac7c7eaa7801327f7701207f7588520144807c7ea86f7bbb7501c17e7c672102ce5232f2873c0c7b832bb74d08d904239cb7802b2e3b1ab11cf9d922289e70b668abac',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1417,7 +1417,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1443,7 +1443,7 @@
},
inputScript:
'4131b686ad2a4c8da3588a488a9f27dddb341a26248f343a90d54a03251a96653fdd5dff15b739e43bde02bc5c9e062f003e8b756802f0bcd2f884111561362ca1412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1953,
+ sats: 1953n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1455,7 +1455,7 @@
},
inputScript:
'41dba2adaabd2860975a36fc1eaf95c8e0313dc74be0d4388fe87d11718fc8a211b817d25c4f9efd695638eabf2f9bca1c8aa67de277b8e7ab06a577deecb2ad21412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1000,
+ sats: 1000n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1467,7 +1467,7 @@
},
inputScript:
'41e6d980e95d18f97ea1a99108dc86149f3f21a2be2d8a68786cd0b3a4cf7281c35f339440d85dfe999d9e294fed0d7b51e13d316096a90b307f26f9f2fe7eb1d8412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 821854,
+ sats: 821854n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1479,7 +1479,7 @@
},
inputScript:
'4177d441e7f1c6b16ffe13dc880e66f15fa70943c823fa221e8250c840f856720676d160e21d648d2ed4a349567b89795a1f44bbb38afe317a7506789d7cbd054c412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1427068,
+ sats: 1427068n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1487,17 +1487,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001410453454e4420de75efed4ef6026c52738178c71eca1dfe014d44d243ab9ae54d79cf6c96345a080000000000000000080000000000000001',
},
{
- value: 1333300,
+ sats: 1333300n,
outputScript:
'76a9147fb54ae2e2f36f98b3e838272725f2cd1b9f3caa88ac',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -1508,13 +1508,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 917344,
+ sats: 917344n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
@@ -1537,8 +1537,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
groupTokenId:
'78efa5177e99bf05b48948ac7e23e6cc2255764e52ccf7092afb979a766dee2c',
@@ -1566,7 +1566,7 @@
},
inputScript:
'417e7167fe4f0b007e566c28646aa109b20d6489476a3bc70e12f25dc76ff81f875cd7d0432b5f5906d67dba505dedb078247133c3901c5336f8c43aff97aa2885412102ce5232f2873c0c7b832bb74d08d904239cb7802b2e3b1ab11cf9d922289e70b6',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1576,7 +1576,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 1,
},
@@ -1590,7 +1590,7 @@
},
inputScript:
'41f46f82426d8d7402565b6f2f9913edc182fca96830841db667b755a909297c19f9c8fcedead5617db5bce127151cd6959a97bc1b66ac6df920f899ea90f62ba5412102ce5232f2873c0c7b832bb74d08d904239cb7802b2e3b1ab11cf9d922289e70b6',
- value: 67750,
+ sats: 67750n,
sequenceNo: 4294967295,
outputScript:
'76a9147fb54ae2e2f36f98b3e838272725f2cd1b9f3caa88ac',
@@ -1598,12 +1598,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001410747454e4553495308524d5a736d6f6b6524586f6c6f69747a6375696e746c69204e465420436967617220436f6c6c656374696f6e2e1568747470733a2f2f786f6c6f7361726d792e78797a2031dd442b9e47cf7224f78f8fce5ca940e34a6c0674100ebc426aa63d9c81e33c01004c00080000000000000001',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9147fb54ae2e2f36f98b3e838272725f2cd1b9f3caa88ac',
token: {
@@ -1614,7 +1614,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1624,7 +1624,7 @@
},
},
{
- value: 67251,
+ sats: 67251n,
outputScript:
'76a9147fb54ae2e2f36f98b3e838272725f2cd1b9f3caa88ac',
spentBy: {
@@ -1651,8 +1651,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
groupTokenId:
'8fd3f14abd2b176a1d4bd5136542cd2a7ba3df0e11947dd19326c9d1cd81ae09',
@@ -1669,8 +1669,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1696,7 +1696,7 @@
},
inputScript:
'41d3bb8bb4478a86819fdff03619b170bfb7a8f5c58c859b676560f51cde0ebc779ac9cf42f8b9ee5dc501d165579bbe9107c378eba5daa487ae874ea382c92c6f412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1706,7 +1706,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1720,7 +1720,7 @@
},
inputScript:
'411e324d5198508f8f86bd44ed1c73711cbdbdaa5215194e009d1c6060d669b57c1bb37b5cb273a269ad2b890a01290e8003ca03cf981f913a9f76a2aea0d969b0412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1000,
+ sats: 1000n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1728,12 +1728,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001410453454e4420de75efed4ef6026c52738178c71eca1dfe014d44d243ab9ae54d79cf6c96345a080000000000000001',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91445cdbfeb4ed47211afeeae8b3e045c9ab3d90b1188ac',
token: {
@@ -1744,13 +1744,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 576,
+ sats: 576n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
@@ -1773,8 +1773,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
groupTokenId:
'78efa5177e99bf05b48948ac7e23e6cc2255764e52ccf7092afb979a766dee2c',
@@ -1801,7 +1801,7 @@
},
inputScript:
'41482340e636feab0d15efb309e72eac0f559d0b85eb1799e0a1419430e95448a6a5c1e3961c92861e653dde4428e6e3a79c90d10911b045e7469f7beeae62fc56c1210378d370d2cd269a77ac2f37c28d98b392e5b9892f3b3406bfec8794c82244b039',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1811,7 +1811,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '49756',
+ atoms: 49756n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1825,7 +1825,7 @@
},
inputScript:
'4152ed9a66a0c40759e400a1484df1a1d2b152c9d6917abf3beaf974f21a935d60853490ae5a07c237531016ceae6c1f01cce9cf2a1417b2b2bcbbc4737ea2fe35412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
+ sats: 1000n,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
@@ -1837,7 +1837,7 @@
},
inputScript:
'412a65517b4df68bb03ba2b7cd85e70af662503bbc8be209e7fbf18bb0950ff7e0d589f0b3e8119b5e67314fbedd856968890556593d97db58c78e86d2417f27d7412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
+ sats: 1000n,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
@@ -1849,7 +1849,7 @@
},
inputScript:
'412c9a66d04d341b1f0c3a15689265729a18f5605269909ad9f7b842ea03d96f8540e1b5b272ddc9db5f2d392a8e0569428a7ba4b5d99bbc707168898399f00da7412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
+ sats: 1000n,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
@@ -1861,7 +1861,7 @@
},
inputScript:
'41f2ffdbd5f3694669d448899d3f6d939a8165d70cba6be2eaa8416847d56d4630a7b3ac8a35641705e4eb583b391a46c204920641dd85e2b7e04dd18553422651412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
+ sats: 1000n,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
@@ -1869,12 +1869,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a503d534c5032000453454e4445e1f25de444e399b6d46fa66e3424c04549a85a14b12bc9a4ddc9cdcdcdcdcd038a02000000003e3000000000948f00000000',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914dee50f576362377dd2f031453c0bb09009acaf8188ac',
token: {
@@ -1885,13 +1885,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '650',
+ atoms: 650n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 1960,
+ sats: 1960n,
outputScript: 'a914b0bfb87508e5203803490c2f3891d040f772ba0f87',
token: {
tokenId:
@@ -1901,7 +1901,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '12350',
+ atoms: 12350n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1911,7 +1911,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914575116c8adf5817c99fc5bdac8db18d10c25703d88ac',
token: {
@@ -1922,7 +1922,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '36756',
+ atoms: 36756n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1950,8 +1950,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1976,7 +1976,7 @@
},
inputScript:
'41e3e0fb1725f4712ded8c484eeb51212d654301bbcd4403289c9f6d502d161d8f805a1e942bc3f76ad9e63e3cecdc743bd7fe7b1ecfda4e0c57e47d41849ff3cd412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1986,7 +1986,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2000,7 +2000,7 @@
},
inputScript:
'41a523800ea0e685c77a9aba1fbbca9413993facd0ca2243dd7273438a8712af3dc6f5d95cda8ce24bf9db1d3c16e2c567bedd2acf9378bdd42f0248f49a2dbbe5412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 149303398,
+ sats: 149303398n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -2008,17 +2008,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a5030534c503200044255524e3f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e11010000000000',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
},
{
- value: 149302553,
+ sats: 149302553n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
},
@@ -2040,8 +2040,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '1',
- intentionalBurn: '1',
+ actualBurnAtoms: 1n,
+ intentionalBurnAtoms: 1n,
burnsMintBatons: false,
},
],
@@ -2067,7 +2067,7 @@
},
inputScript:
'41036e1d53dbbad08e42ec997e6d83bddd36bcd74d5a56bfd26ffb341cb02d4b1ec7bca63e187b68674a3fa88251937024b5a63b04a28c090556d3a32f3ecc0014412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2077,7 +2077,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
@@ -2091,7 +2091,7 @@
},
inputScript:
'41c1b8e7f078f3223267a07511d8db2bc259cf804f9dd34a0b043a3fc320a518df245d69e9f913b2b745181f2384895902827c232551f65289bbfa63080058cfe9412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 2807578,
+ sats: 2807578n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -2099,12 +2099,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a5032534c503200044d494e543f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e110163000000000001',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2115,7 +2115,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '99',
+ atoms: 99n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2125,7 +2125,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2136,13 +2136,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
},
{
- value: 2806576,
+ sats: 2806576n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
@@ -2164,8 +2164,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -2191,7 +2191,7 @@
},
inputScript:
'41a8f890a9ea9c07e9f7cc7458ce9822af102d38d2b1e3bfd06615ab083710209d3d249ef5cee9a185dbed5b83c79b6626f29fb101f2b17e0b8aafc92dd63e3411412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 2564,
+ sats: 2564n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -2199,12 +2199,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a504c51534c5032000747454e4553495302544208546962657269756d0b636173687461622e636f6d002103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba60001a0860100000001',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2215,7 +2215,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '100000',
+ atoms: 100000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2225,7 +2225,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2236,7 +2236,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
@@ -2246,7 +2246,7 @@
},
},
{
- value: 1125,
+ sats: 1125n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
@@ -2272,8 +2272,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -2299,7 +2299,7 @@
},
inputScript:
'41757b94ec8879a30d97a1337794b0b3028290fb2a8376301c77dbe1f6cdd0d4ed9b6b0b85bc860f1c64fce450e9703d913eda39d1ce8f543784a22f802fcb9055412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2309,7 +2309,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '1023',
+ atoms: 1023n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2323,7 +2323,7 @@
},
inputScript:
'411342d2bfa3dd23a4b651445603d49c1a616465b5e63dc022c19c419f94be4097e75de234d05ea5b2854787ba6d15e97392a60f93b1187fe77613f67deda820ad412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2333,7 +2333,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '99106',
+ atoms: 99106n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2347,7 +2347,7 @@
},
inputScript:
'4159e97bf61cd3772560593340f6709223404eea9b3c092f877f7b58594f3c42fec16ae9f0a1750e49f522992120a3919e29419f49a935bded34d901a0d76a4d6e412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1001,
+ sats: 1001n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -2355,12 +2355,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a504b41475230075041525449414c0000e253000000000000630800000000000048c420000000000029e3a34103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba637534c5032000453454e443f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e1102a08601000000810000000000',
},
{
- value: 546,
+ sats: 546n,
outputScript: 'a9144df7df04abf59471392892042427a81e2e815d2b87',
plugins: {
agora: {
@@ -2388,7 +2388,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '100000',
+ atoms: 100000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2398,7 +2398,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2409,7 +2409,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '129',
+ atoms: 129n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2432,8 +2432,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -2459,7 +2459,7 @@
},
inputScript:
'21023c72addb4fdf09af94f0c94d7fe92a386a7e70cf8a1d85916386bb2535c7b1b1401a0c37b457891c798bbba4b5dbb4c336aed6c95e09ceb2ddd0b4f1c5e7359612293582d4ee1d24cd16fd6e0512d223ffc60cd310e83c72fe316e24ea700f47064422020000000000001976a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac04470100000000001976a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac4d240175c832e777cca8c0298fd928ba4e1bed04b515b2f0543dbefcb78f94a158002902000000cb7b63817b6ea269760348c420a2697602e2539700887d945279012a7f757892635357807e7802e253965667525768807e527902e2539656807e827c7e5379012a7f777c7e825980bc7c7e007e7b026208930263089658807e041976a914707501577f77a97e0288ac7e7e6b7d02220258800317a9147e024c7872587d807e7e7e01ab7e537901257f7702cb007f5c7f7701207f547f750429e3a341886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501577f7768ac2202000000000000ffffffff81d94ad6440c1b9b54eb2336f0c3d63102d25ba30e1443a1a94b9656de6bcf5f29e3a341c10000000348c420514d4f014c78534c5032000453454e443f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e116a504b41475230075041525449414c0000e253000000000000630800000000000048c420000000000029e3a34103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba608f8f4dd7f00000000ab7b63817b6ea269760348c420a2697602e2539700887d945279012a7f757892635357807e7802e253965667525768807e527902e2539656807e827c7e5379012a7f777c7e825980bc7c7e007e7b026208930263089658807e041976a914707501577f77a97e0288ac7e7e6b7d02220258800317a9147e024c7872587d807e7e7e01ab7e537901257f7702cb007f5c7f7701207f547f750429e3a341886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501577f7768ac',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2469,7 +2469,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '99900',
+ atoms: 99900n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2500,7 +2500,7 @@
},
inputScript:
'4199fcebed608d53517bab47c15e13776e44fd069636c0115d20a445dc85c0f269800e94cb7279bd2f3db1d430158e42e46461d0b5b5c13f8bb2d4eea7ba2437134121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 811,
+ sats: 811n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -2512,7 +2512,7 @@
},
inputScript:
'411f9e02597b5c7a70b77d8a25b6fa41124e51ff54ad6ec96775e27bbdfcd1711dab668c52b7b873572d3bb2aab31729f612e9dd71d298822640875ba3b257e59d4121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 87315,
+ sats: 87315n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -2520,17 +2520,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a504b41475230075041525449414c0000e253000000000000630800000000000048c420000000000029e3a34103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba63d534c5032000453454e443f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e1103000000000000d88501000000640000000000',
},
{
- value: 1001,
+ sats: 1001n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
{
- value: 546,
+ sats: 546n,
outputScript: 'a91436efd4946e1236d077121e79397d3a255891b43087',
plugins: {
agora: {
@@ -2558,13 +2558,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '99800',
+ atoms: 99800n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
token: {
@@ -2575,13 +2575,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '100',
+ atoms: 100n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 83716,
+ sats: 83716n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
},
@@ -2603,8 +2603,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -2629,7 +2629,7 @@
},
inputScript:
'21023c72addb4fdf09af94f0c94d7fe92a386a7e70cf8a1d85916386bb2535c7b1b1408b93bfc2f99716388ddc43a1f2def4070dbf3fcdf1e19b772f695d450d5b59404258de9a8fcc872004e4c439102a22d91fe80bb23f5c3eb1b942e664f4f01c2a4422020000000000001976a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac10ffe508000000001976a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac4d2d012fc52eded200d312a9127274cf23976d7390387e82ae50dab33f5194e00f061e01000000d47b63817b6ea2697604ea78cc0ca2697604b1a547019700887d945279012a7f757892635357807e7804b1a54701965667525768807e527904b1a547019656807e827c7e5379012a7f777c7e825980bc7c7e007e7b03c546039303c646039658807e041976a914707501577f77a97e0288ac7e7e6b7d02220258800317a9147e024c7872587d807e7e7e01ab7e537901257f7702d4007f5c7f7701207f547f750496856f53886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501577f7768ac2202000000000000ffffffff4f6718f3826e94eccb06fc0fd1d29b0245141c9774089952b9229272545a709996856f53c10000000424b9fc7f514d58014c78534c5032000453454e443f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e116a504b41475230075041525449414c0000b1a5470100000000c646030000000000ea78cc0c0000000096856f5303771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba60824b9fc7f00000000ab7b63817b6ea2697604ea78cc0ca2697604b1a547019700887d945279012a7f757892635357807e7804b1a54701965667525768807e527904b1a547019656807e827c7e5379012a7f777c7e825980bc7c7e007e7b03c546039303c646039658807e041976a914707501577f77a97e0288ac7e7e6b7d02220258800317a9147e024c7872587d807e7e7e01ab7e537901257f7702d4007f5c7f7701207f547f750496856f53886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501577f7768ac',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2639,7 +2639,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '100',
+ atoms: 100n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2670,7 +2670,7 @@
},
inputScript:
'41972d1961aeb50fccfa74eef559db92947ad0a1e87649a653680534e35b77e4c1f3ce525d02cae387149d637597c1b16b0ce66481aff406eaac5bf52b42b2bfc1412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 642,
+ sats: 642n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -2682,7 +2682,7 @@
},
inputScript:
'41b4a1fa9f2eb9aa1e1107a0daa0789140b5dd1f709bf05f5876eb113c367bc8b9965b3c28405a0899b5f6d3faf4c944a4de8c7e1e9aaccd77bfcc38d8241b8620412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 587,
+ sats: 587n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -2694,7 +2694,7 @@
},
inputScript:
'41655a797528798468a7c4ac17cb6a818daecce7b69104e89a488ebe8484e8846a8fdff5a405042245a6c43a240e3a1469ce64fc833c5d6cf6fae9048325a68c4d412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 583,
+ sats: 583n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -2706,7 +2706,7 @@
},
inputScript:
'41e4f342e5d625580b576f244fc89957eb777a445a3709006b9f0dbee41b7426d7d0451b17f17286553c76b2b60d5e8032663fb59e2626f232064844554da90725412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 583,
+ sats: 583n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -2718,7 +2718,7 @@
},
inputScript:
'41b5cbfee5ebf18cf6ea9ac18975afd410d634984d03fb3f695df9239f4e8bd3337eef76a4fcc47575902232a97a48f720d51f821f7ec02f52ffd48560d782abb0412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 149302049,
+ sats: 149302049n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -2726,17 +2726,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a504b41475230075041525449414c0000b1a5470100000000c646030000000000ea78cc0c0000000096856f5303771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba637534c5032000453454e443f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e1102000000000000640000000000',
},
{
- value: 10001,
+ sats: 10001n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
plugins: {
@@ -2756,13 +2756,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '100',
+ atoms: 100n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 149290768,
+ sats: 149290768n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
},
@@ -2784,8 +2784,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -2813,7 +2813,7 @@
},
inputScript:
'41bd2efd17994e179019c3023e44d66b61b8eeafcfd5a946c12b6ef86dda404dce1bba452a1bde7dd32f7ffa41175644ce9eafa061d1a87e45b18ac7402fedc91a412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1100,
+ sats: 1100n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -2825,7 +2825,7 @@
},
inputScript:
'41737e4eac6598415b4d7d3edae5fb0cfcf6b0e3289b322ee50e6862b717b4f449fda9fd31331efff11a211ba2ce04192259e83291544c64a8f7f5d8ed37362bbd41004d52014c78534c5032000453454e443f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e116a504b41475230075041525449414c0000fcff1f0000000000000f000000000000fcff1f0000000000fb0af93b03771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba60804f0df7f00000000ab7b63817b6ea2697603fcff1fa2697603fcff1f9700887d945279012a7f757892635357807e7803fcff1f965667525768807e527903fcff1f9656807e827c7e5379012a7f777c7e825980bc7c7e007e7b02ff0e9302000f9658807e041976a914707501577f77a97e0288ac7e7e6b7d02220258800317a9147e024c7872587d807e7e7e01ab7e537901257f7702ce007f5c7f7701207f547f7504fb0af93b886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501577f7768ac',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2835,7 +2835,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '1023',
+ atoms: 1023n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2862,12 +2862,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a5031534c5032000453454e443f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e1101ff0300000000',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2878,7 +2878,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '1023',
+ atoms: 1023n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2905,8 +2905,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -2933,7 +2933,7 @@
},
inputScript:
'41c9594e4dd7338ad9ec44a81ab75db2ccb737b961b00f2f8a51e0f581158b5c25ff41b26357f432821917a642cad0fd68371a75686bd3b7847dc6daae26e3eb6a4121037bc7f6ca0474be3edf7a2ce4e753855998273e9db618b135c20ee0e4b5e9fce8',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967294,
token: {
tokenId:
@@ -2943,7 +2943,7 @@
type: 'ALP_TOKEN_TYPE_UNKNOWN',
number: 200,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: false,
entryIdx: 1,
},
@@ -2957,7 +2957,7 @@
},
inputScript:
'418aafb5e789fbc194ed7ecbad3bea728d00d9c089d3005bd6cf3487a8f196b2444e1552c5079805a790ab7339b4ef1932749f19ded730852cbc993dd80a04189d4121033b5a78b9d86813dd402f05cf0627dc4273090c70a9e52109204da0f272980633',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967294,
token: {
tokenId:
@@ -2967,7 +2967,7 @@
type: 'ALP_TOKEN_TYPE_UNKNOWN',
number: 200,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: false,
entryIdx: 1,
},
@@ -2981,7 +2981,7 @@
},
inputScript:
'414d72085dfe8b9deb741c15e83822d778f5825e35c44dbd3753937b697538e502d71aae0215881f07bd8c66112abfe466b95cb8ebc0d7e9ca0c4fd063853ad73e412102637953859a84e61e87df221c91ac3a38c59fa7e652e43894adc4443a373bcd10',
- value: 600,
+ sats: 600n,
sequenceNo: 4294967294,
outputScript:
'76a91496345bfc72a63d798a7f1deace0be9edf209a24b88ac',
@@ -2989,11 +2989,11 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript: '6a5005534c5032ff',
},
{
- value: 1000,
+ sats: 1000n,
outputScript:
'76a91400549451e5c22b18686cacdf34dce649e5ec3be288ac',
token: {
@@ -3004,7 +3004,7 @@
type: 'ALP_TOKEN_TYPE_UNKNOWN',
number: 255,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: false,
entryIdx: 0,
},
@@ -3028,8 +3028,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
{
@@ -3044,8 +3044,8 @@
isInvalid: true,
burnSummary: 'Unexpected burn: ',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -3071,7 +3071,7 @@
},
inputScript:
'4194fe416801d0ae6f2ed87fcf3e66e74de77ca425040678df43971201f264c7cf01414e773a53be4f36b230fc4c5ee07be6c85073551f5bf3c9a1ae93e85d6c3f41210290b50035060622db41171ef7f9704efd881d4beed12222f807bcc627c94570da',
- value: 550,
+ sats: 550n,
sequenceNo: 4294967295,
outputScript:
'76a91481a14c64a81f0a9c35b17499b355de9856fe1c5c88ac',
@@ -3083,7 +3083,7 @@
},
inputScript:
'41a59a9d4eb3449ef6ef8c3a99256711022b4cf24aec72e8ce7a132ba01428a27d2e671f0c38adfe36a9011556b2859fb7dd5bcf3518eab66474f633c079de1e5a41210290b50035060622db41171ef7f9704efd881d4beed12222f807bcc627c94570da',
- value: 49493,
+ sats: 49493n,
sequenceNo: 4294967295,
outputScript:
'76a91481a14c64a81f0a9c35b17499b355de9856fe1c5c88ac',
@@ -3091,17 +3091,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04636861740468617368203130294bfa5ba853cc17d90afe4ae7a2df7de011ed8713ed7eb90bf016cbb6083065636173683a717a71367a6e727934713073343870346b3936666e7636346d367639646c737574736536686d65783765',
},
{
- value: 550,
+ sats: 550n,
outputScript:
'76a91470a784633e942b7e1c9947255910c8132623225c88ac',
},
{
- value: 48564,
+ sats: 48564n,
outputScript:
'76a91481a14c64a81f0a9c35b17499b355de9856fe1c5c88ac',
},
@@ -3133,7 +3133,7 @@
},
inputScript:
'4148e8628c19bd048ba199221ead5dc7f43fb50385cc4190bc556f2a0229b153945e653cfe49072566bc13d1f5b77ef9aa6ef8dcc70f112e57ca1ab0ad6d2273f44121030a06dd7429d8fce700b702a55a012a1f9d1eaa46825bde2d31252ee9cb30e536',
- value: 25000,
+ sats: 25000n,
sequenceNo: 4294967295,
outputScript:
'76a91414582d09f61c6580b8a2b6c8af8d6a13c9128b6f88ac',
@@ -3141,12 +3141,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04626c6f674c6c3938383164646139616530613065623038373238323236303638663231353138653530623630636453756e204f637420313320323032342032313a31343a303220474d542b3131303020284175737472616c69616e204561737465726e204461796c696768742054696d6529',
},
{
- value: 550,
+ sats: 550n,
outputScript:
'76a91414582d09f61c6580b8a2b6c8af8d6a13c9128b6f88ac',
spentBy: {
@@ -3155,7 +3155,7 @@
},
},
{
- value: 23758,
+ sats: 23758n,
outputScript:
'76a91414582d09f61c6580b8a2b6c8af8d6a13c9128b6f88ac',
spentBy: {
@@ -3191,7 +3191,7 @@
},
inputScript:
'41d1e05374149017f7a14f8cb6978350035aaaba5d24723b959cd44c214796964540cdfce6b593ff850f2eb4336174b038b17e7fe8d5e2a3c7b92c6e78d5625b08412103643c1ca0e8480cf7b8be96ea475714c0122f92e4f9a0b22fbbd3bcf0e302d58c',
- value: 10000,
+ sats: 10000n,
sequenceNo: 4294967295,
outputScript:
'76a914c8080b00b32aba4977c9a9af56b9d9226f147e1688ac',
@@ -3199,17 +3199,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a0464726f702009c53c9a9fe0df2cb729dd6f99f2b836c59b842d6652becd85658e277caab611',
},
{
- value: 1000,
+ sats: 1000n,
outputScript:
'76a9143d1a781059c9915716091c90f0be3e77e02b6bba88ac',
},
{
- value: 8463,
+ sats: 8463n,
outputScript:
'76a914c8080b00b32aba4977c9a9af56b9d9226f147e1688ac',
},
@@ -3241,7 +3241,7 @@
},
inputScript:
'414979186503256f02393cbf767fa533f7bfabb35ab14114842807bb7bc9e52a0a0ba0d87806449ae35f23c0b6fdb2e2ddf19e7c5594ccaa0ba74bfbcaba28d2d0412102cbce237226bd8bba1a02def66085cfff2427042a98d8bf9590ccced8207d233b',
- value: 4628,
+ sats: 4628n,
sequenceNo: 4294967295,
outputScript:
'76a9140f81c58578bd5ecc95a82ed0a89bc7061f0c04b488ac',
@@ -3249,17 +3249,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04007461621a5468616e6b732062726f2e200a49206170707265636961746520',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914a805a320360fa685f83605d8e56de6f9d8a7a99988ac',
},
{
- value: 3557,
+ sats: 3557n,
outputScript:
'76a9140f81c58578bd5ecc95a82ed0a89bc7061f0c04b488ac',
},
@@ -3291,7 +3291,7 @@
},
inputScript:
'411f507db40c8fb326008146f0e4d95e172e3e32c817f74e891b357e8a8ba6e21ac6ff0e3a391cf2395dfa8d5168fee9cb8b8d03812d47f29f76482dac8c7175f341210349c0d5569a0a43c4473bdcd11889de00327303007e24972941ccbf3a3dc61ccc',
- value: 50000,
+ sats: 50000n,
sequenceNo: 4294967295,
outputScript:
'76a9148b48669ce8873c71698151db0453e6285aeb07c588ac',
@@ -3299,17 +3299,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a046175746814619e0bb30cc23b2879f7b1131a858ea9f0d3d873',
},
{
- value: 550,
+ sats: 550n,
outputScript:
'76a914b20298c1b5d6a82a61f6c8cd708fa87a1ce1a97a88ac',
},
{
- value: 48937,
+ sats: 48937n,
outputScript:
'76a9148b48669ce8873c71698151db0453e6285aeb07c588ac',
},
@@ -3341,7 +3341,7 @@
},
inputScript:
'41c4a70b96af0dc94bb5cafd6d847ea6b8d7c509b0914a90fbffb35dcabe119c0a61e5cd376baab1128c44c89d09ca98c84ed2e695d706329f170b3a18c6bc08cf4121039f0061726e4fed07061f705d34707b7f9c2f175bfa2ca7fe7df0a81e9efe1e8b',
- value: 2903745,
+ sats: 2903745n,
sequenceNo: 4294967295,
outputScript:
'76a9142aba37d6365d3e570cadf3ed65e58ae4ad751a3088ac',
@@ -3349,16 +3349,16 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript: '6a045041590000000863a9892c7792fbfd',
},
{
- value: 5000,
+ sats: 5000n,
outputScript:
'76a914631dde3df001e09c9cfde6c72c8ae02849f2c0c388ac',
},
{
- value: 2898252,
+ sats: 2898252n,
outputScript:
'76a9142aba37d6365d3e570cadf3ed65e58ae4ad751a3088ac',
},
@@ -3390,7 +3390,7 @@
},
inputScript:
'41fe808a1d825c384785d0e3e37be0f3af10670e075f61be1c12cd14ed89ae7f01a3af3a21ff1931326058df7cb530b84a430ac9dc65ee73734494b2010f682bc14121031febf12ea22d33cb6da0599c3fcb29b80c88efaf16c1c024192f9c2e03ce4675',
- value: 18500,
+ sats: 18500n,
sequenceNo: 4294967295,
outputScript:
'76a914c2b4edba79887da00c8022187195caf7da6ef03788ac',
@@ -3398,17 +3398,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a0470617977204999ccb611ae9d9c28b06215d42e8695cf5230db8c21707b0d36268bc68ffc76',
},
{
- value: 550,
+ sats: 550n,
outputScript:
'76a914c4d76949bd98d3a2f7d0b63322c1d4a5c2139a8b88ac',
},
{
- value: 17413,
+ sats: 17413n,
outputScript:
'76a914c2b4edba79887da00c8022187195caf7da6ef03788ac',
},
@@ -3440,7 +3440,7 @@
},
inputScript:
'41df3bbe84dcbcf9efb6fcbab59878055178d29ea98b1156a8ac2c6f54e4fbd7482a38e34a7a7ea41388362272db9b7ada93109a3e058d004c80fdec75db506de7412102b1a4d65f26afe16fba3760459ffeba454a023da32e618fce929a5531292085ab',
- value: 19044530,
+ sats: 19044530n,
sequenceNo: 4294967295,
outputScript:
'76a9140a797a01e2673b24a02fb80b5f46a70cb7b5a4d888ac',
@@ -3452,7 +3452,7 @@
},
inputScript:
'41995ba8a2c1c789a7b0a23e6a956c61beedc5c47c20b16eb90a03c2dda683caaa6c38101df05adbdd12eb17cbc1445f9c6b922ebee33873409da201eb021afe8c412103d0f243652691c1244f5c77624fec85bf4bed316126bc9bb39ca1154f89017a2a',
- value: 21813626,
+ sats: 21813626n,
sequenceNo: 4294967295,
outputScript:
'76a9144fc1984258f87c3bc0900156fe926436a78c12df88ac',
@@ -3464,7 +3464,7 @@
},
inputScript:
'419f2360309485fbb734f4494f30e084204712d829baa2f4a4f05cc4ace0424e9cff4110c6b0997462d9adb30be7565c7cac3897c43ad378797dde20b6d8d896fc41210278f666cae97366d63b06b9e1e7b4cb6d69aa625805ea32862872d8d930c5d50c',
- value: 394728,
+ sats: 394728n,
sequenceNo: 4294967295,
outputScript:
'76a91450c67b8481300a093b5501a6903e8ed98381f53988ac',
@@ -3476,7 +3476,7 @@
},
inputScript:
'410c585f2b3753202282bb590e452a5a955cda78ae6dd7bfc7475734be384cbb0930d92abcb9e0c5a03c7fc8fe5347170f83055ee1db213d47382839a9ddc6dd544121021684217e7f6b9b9fca552a01ca6215f52646a388e986df2c468bea7c42a80f6c',
- value: 414991,
+ sats: 414991n,
sequenceNo: 4294967295,
outputScript:
'76a914799b9c14ebc56fd5ba2a3801ba64743242f1af5e88ac',
@@ -3488,7 +3488,7 @@
},
inputScript:
'4146244f76308483868efe3e04146ef7d8be8b972d17b92124f9f2b833de1acdfa0a0311c359f0e114fd780876e96d3376939cdb8496671bf64b8141ccec9f4b22412102dfbb426682c141297c626c0bbb4eda4d1805a41ec6a5f9046e7431818523d60e',
- value: 7028571,
+ sats: 7028571n,
sequenceNo: 4294967295,
outputScript:
'76a914ff4b390e072bdaff1985435509fcc80eb717e6dd88ac',
@@ -3500,7 +3500,7 @@
},
inputScript:
'412dd0e8f66411bd6e637139475b0c48d00493f24c6fee5eb90a4316af61734020bb0b316b8d2dc198c5a8541691e4162121ad307cbb74d33993fb009b2fa81f9841210339f66ba9e96d8e117d1354f3a3e1547efbba247bf6e3cadf25e6b78e6bd119ba',
- value: 9302929,
+ sats: 9302929n,
sequenceNo: 4294967295,
outputScript:
'76a91450e0c8c98359095cafb50fb11c40956ff0d4fbf588ac',
@@ -3512,7 +3512,7 @@
},
inputScript:
'4129126ada21287ed43fe7e1644c7eb4fe1bd165941c264c99794c736b38171223ef59816a6d7ad956ea7ea09603d18f8de57fb225f76fe0215e22968230ab53db4121028115cb253822364f3fda454be0fc930ddf7ade935ce836a3fef1946b0b306d7f',
- value: 12522752,
+ sats: 12522752n,
sequenceNo: 4294967295,
outputScript:
'76a9149314d58e27f38fb043b9a5aa7a8ae61d2617390688ac',
@@ -3524,7 +3524,7 @@
},
inputScript:
'41e39a6d0e85a2c4513ddaa878b5ed59a6dc995fff3afcda72fbd686b64ce44949c111c71e34f4464efe823dd558b807eefb4524ad9e6cd38c150a13857623cff04121025b46687783b420affaac912c62cc08df3f600a4a61e689621c1a5dc7ac636433',
- value: 20061909,
+ sats: 20061909n,
sequenceNo: 4294967295,
outputScript:
'76a914dc82a51a0c936d0d102ec2cbd4d225e8057cec3f88ac',
@@ -3536,7 +3536,7 @@
},
inputScript:
'41880eaf18e82a6367228cb6a710072725ad6bb4521a250745967d431275dc25e5985093dd92de4d83cf5b2af4b86db070f6400d274afc68252e251079e216d3cf412103eb0f7de9e1e9cdcab35ea59e7dec29fc738ac42e9c2f76889ee7a9cafe88c39d',
- value: 56109568,
+ sats: 56109568n,
sequenceNo: 4294967295,
outputScript:
'76a914493d17051df0b8e38a08084192b5a38cc493d3c988ac',
@@ -3548,7 +3548,7 @@
},
inputScript:
'41932b38a6267156ba04423f0ed3a3004844ead66c1240df89769b0a401300f2d084e69ae26712b73e37264ef06b6349f2943ea07b718b84026bf46a9cf29a9d54412102dba5cafe198f94787aac78c77feb3334745f983fbcdd0c523a9e44890410d0e0',
- value: 723423,
+ sats: 723423n,
sequenceNo: 4294967295,
outputScript:
'76a914356f56b50c33cda30907ed5a280adda2c201943b88ac',
@@ -3560,7 +3560,7 @@
},
inputScript:
'41b5a0fae4c5e44a344663206d2159fde79e93a55d7948b2073f373dffbc28012b43d83896813db3829235e5a0c769c0293e62cb97e771da22c97a22e4eb2b29a54121031cb5f7a8937279d887cde5749cabfc0dbab5bcd0f07269ccd9a136aeeb0ae873',
- value: 1574168,
+ sats: 1574168n,
sequenceNo: 4294967295,
outputScript:
'76a91433e10aae895a2ee756b6c9d23ca7e0cd38c62d9988ac',
@@ -3572,7 +3572,7 @@
},
inputScript:
'41538aa46dea3cb55bc28fdca8d9b912865ce6c42f2a31348d3088b88c8571ac95c9d68d65cfcb3ab4f15a37a13f5a2f00702219cf6a4b3047e56c4e590b963fc9412102be5c732ffd14a71bbc48fc1968137b9718bc12469844123acceecb317a88acb7',
- value: 5347523,
+ sats: 5347523n,
sequenceNo: 4294967295,
outputScript:
'76a914e62f1eee7b4e6877dedf7b5aea40f87297467be688ac',
@@ -3584,7 +3584,7 @@
},
inputScript:
'4102e53a109e468484c2f736b69466cd170ca387275df314a8add14317103b5cbe9c7f032eca20fda1ef15381d015a12b33f6c68591aa912f7852ccc7f96ead1ff412103422e3bbe0e1d4966b0df5e60bd27fac28b8008722c2b06719ca1d8c66e827393',
- value: 5709247,
+ sats: 5709247n,
sequenceNo: 4294967295,
outputScript:
'76a914c3c0b825fe2f6a44c745eccb0f47367f7ddbc8d188ac',
@@ -3596,7 +3596,7 @@
},
inputScript:
'41fe8583171c7b0f9fa661f7e19983eaa04bada5244d5696aa7a47e4d16a8811c231c4cf70d10dedd72745b07a0971781a1cf18fef8405bf9f43f0052654c780b4412102e263921e2c0cc86e5eb011aec807b330afacca37d4709950011efc288edd9e35',
- value: 12202011,
+ sats: 12202011n,
sequenceNo: 4294967295,
outputScript:
'76a914e9f60021f56e16676ecad578abb1346db5e30d8888ac',
@@ -3608,7 +3608,7 @@
},
inputScript:
'41fb8b372ec7450923d58f117401af1da185be2e23c4ec67e0c39a2e2fc51a1732805aac25dbf7d6023b5605e8b23d654a86676e1270a0c7027327c451d094ab9241210388abbae310cc1e415e49375f4a9205a1e48a62be5623f684700aee65f62ba506',
- value: 15785620,
+ sats: 15785620n,
sequenceNo: 4294967295,
outputScript:
'76a9149817f6012414b1da0846093b7bdca256b26cbe4388ac',
@@ -3620,7 +3620,7 @@
},
inputScript:
'418354b6ce1e067e299e50c749a2582bf2af1340c1b9b0bbc167bc76a90076e9d5bf3226c856342d3e95d89c06bd0172fae0b2a1ab746474e63b3b673db7423ff0412103c96315e98c33ca47add711d1f8d3f18ca9cfa7632353d3fd26eb47fbc83a0eb9',
- value: 6027875,
+ sats: 6027875n,
sequenceNo: 4294967295,
outputScript:
'76a91414018c2de14ba872dc49a0b1dbf1b4fad6f5baad88ac',
@@ -3632,7 +3632,7 @@
},
inputScript:
'415fa716ae82dd29033e38310a38ffa92731bffc4be413dd344270249a0f7743e39180988b42f0cc0af21669b067bbcaa919eb75d27f4c0365a084eec24f462edd412103152fd9fe4d3e7932067de80cc9108427c3dc2c5846fbe90a89bcadf2960fcb62',
- value: 3368231,
+ sats: 3368231n,
sequenceNo: 4294967295,
outputScript:
'76a9149f7e0f97d488acaa7e22e7b897bb8b0af442207488ac',
@@ -3644,7 +3644,7 @@
},
inputScript:
'41471802e2bdb2e81a0404bec557885551d64f68c46144a2f1d30a76a8f46d9f52e8224ecbe0461f6689846a69b7754e3c71a2c06e0936db9b0d9af26dba6782c8412102999cc772ab81937c263a7e16003ecf1a7d66dc2b0e03824adea22eb569f67e38',
- value: 29633909,
+ sats: 29633909n,
sequenceNo: 4294967295,
outputScript:
'76a9145c98423dd06247796fd7d15bf6142df6dd65dfb788ac',
@@ -3656,7 +3656,7 @@
},
inputScript:
'41098b8fc3e6357011795c444e0ff9665413380ef7a006ff133f4599f18dcbd476b41272db3a51c254389fe71d1d1d72832467b85e8826729da1538d0c79514a4e41210227c3905f79aacb942750876c92525d0606a60d67479549f30f15727346c391c7',
- value: 9883971,
+ sats: 9883971n,
sequenceNo: 4294967295,
outputScript:
'76a91466a8ce404edf535033a47377130e8f1a16dec66888ac',
@@ -3668,7 +3668,7 @@
},
inputScript:
'41760d8aeb07e7ca65b4e108d262765da3623e5c8bdec061c3e4d7739af9674a7cab39aa9084334ebf4e93ca92a56a304691c2068d7cc08f4139c72943323495654121022a15b004a007154b8ea8cbfca2b2b1deb7486bd637e3289d52ced0b17c24ba9b',
- value: 16806623,
+ sats: 16806623n,
sequenceNo: 4294967295,
outputScript:
'76a914f89793e870c57d76572d3d51eeda078f910b206388ac',
@@ -3680,7 +3680,7 @@
},
inputScript:
'41ed99a385474633a98f857089f0dc019c214d155031f871f5018f93d0b5071324faf9f3c01b08bcd4209fbec188da6bffeb50a4c469479cd4f0fbdb71b59c4cbe412103dccb27bc84af3b5dcdfed5f08df935e168051ad32c242e698d0c1f464c2e9832',
- value: 186916,
+ sats: 186916n,
sequenceNo: 4294967295,
outputScript:
'76a914dca716d5af6b1288acd17ee88fb20a2829ab2ec588ac',
@@ -3692,7 +3692,7 @@
},
inputScript:
'41821e4c860943978ee09812f333d1b80cc219b3f1e48b60036c3072a1c811f806f28eecb34fc1ffa1c3165be97c1906744e51c8a2900f2d59112635112ddc47144121038b04a447c830a862d06b3ec4ebafd1be3d9ee1c149630616a4a27fed46cea362',
- value: 614009,
+ sats: 614009n,
sequenceNo: 4294967295,
outputScript:
'76a914dd92844bcba0daa04127dd0ff9581741af1feb8288ac',
@@ -3704,7 +3704,7 @@
},
inputScript:
'418a9b080fc4cc5b6284578bba95d9152f492a67a70e5ba93a01a40070223bb19f45018032b728edf4f7fbd4168658043ef7ede5aef8122ba1feb7002d714486544121020b4049376b0d37186240f2c834bc8579de9a8e3ad2370a0ad565eb455e1caa0d',
- value: 9846080,
+ sats: 9846080n,
sequenceNo: 4294967295,
outputScript:
'76a914489371d01d4633920176d556d614b1df7e3c4c6c88ac',
@@ -3716,7 +3716,7 @@
},
inputScript:
'41190cb88f905718c97ce7624f518be0895a7ac3dff36b909ad3c4a65f69fd7d5247b7d11f4e578c97be3277b66d355dd02cc0149fefa839a2117a840bdda3ae63412103e74e4014d3a5524029c160af6d3cbfddddedb906b71436c4f8b74ed0f21c0673',
- value: 1014962,
+ sats: 1014962n,
sequenceNo: 4294967295,
outputScript:
'76a9140820720277dd2e4c117d7d601957ee8b98719daa88ac',
@@ -3728,7 +3728,7 @@
},
inputScript:
'41f41af2c300d637d1dc76be1c22d41db11d5dcb96e6c9bf38a436e7c1985dcedce1f27ef0d4d220cc78f3becf5d1ca4ce4d4c3cfb74c86330b6dc5bf444c40591412103f9c5d3255a762234e5fe3b00744dcfdb8824344bc424a6e3de12d4e36b386851',
- value: 3195908,
+ sats: 3195908n,
sequenceNo: 4294967295,
outputScript:
'76a9141b4ec15252b9beadd55e564588efd9c58412f08688ac',
@@ -3740,7 +3740,7 @@
},
inputScript:
'419cdb4446c3b8ad1230193c299f1d22697ee02473acd74436e7690e5a8d8e2635a98e21e5709339b701bb68f2e82fb52c66619acb0c93bdd688ad9bfb6dccc14841210258f27cebaa7be00e2bce38a0462154fb36c066f5338097f5492290a036e4468e',
- value: 3547312,
+ sats: 3547312n,
sequenceNo: 4294967295,
outputScript:
'76a914ebabc065b7548d0a97488addb928bfd0bb5ffd9f88ac',
@@ -3752,7 +3752,7 @@
},
inputScript:
'412c51435daa98770fa841f30c56f57a28e55542b9d38c0958dc54ae9adec71f8b88da708d9f48df308587768f78ba9fa1de813a38f985d568248c2203253d279f4121037816e3882a1bb7d211f279d80514924a67821da755fb975e6b1da22f20d00a3d',
- value: 7845327,
+ sats: 7845327n,
sequenceNo: 4294967295,
outputScript:
'76a91410b4904640491d3760f3c6021ecee661621d315788ac',
@@ -3764,7 +3764,7 @@
},
inputScript:
'41c4d3e5bcac9b4bccba9836816eb92d7e1f2fa8c756c52e16245add08a02f441944a9ef716fe12646f800a63120eb2d045ddfe9bf8e40ab47115a04042fdf71114121030531127dac1724380ead04e01d060d2561db071dc0bca09826109a4dfcc969b2',
- value: 8867513,
+ sats: 8867513n,
sequenceNo: 4294967295,
outputScript:
'76a914da4c46bb1853086cdf8ee66e07896d273982696388ac',
@@ -3776,7 +3776,7 @@
},
inputScript:
'41de89262a098ff147bb603154f923f925b31ff1998b95441b39880421498627c2cbaa595a1920cbedff8fa4402fd8e85b517f82f044cd7b09d6f1e4d89a4712a24121025a31dd35e3dcb26bd847036dcbe581d3890904799d527b490234fdb4008aa60b',
- value: 15639927,
+ sats: 15639927n,
sequenceNo: 4294967295,
outputScript:
'76a91497d20588c573a9845baacf6f0b8163e20ece5d7b88ac',
@@ -3788,7 +3788,7 @@
},
inputScript:
'413c94e9367505680d3f5e6695b79661da5dcb2effc1fbbf2b6411e26516e9347bb50b79607b691c4199eba64f2efc536512d45cc0bfb650948f8f45f689defeb141210221432af3ad2ce61807769c17528d7bd057cbd870c71fe660bf784d3b9ad2b4d8',
- value: 8534104,
+ sats: 8534104n,
sequenceNo: 4294967295,
outputScript:
'76a91441b9b10ab1727cb4d16a94131511ff4376113d2288ac',
@@ -3800,7 +3800,7 @@
},
inputScript:
'419a17384c24d95cfab02e7bb27ec592b35bc98bbfac6109cdf999f7808e613a3795924b484b2be1c3ebddc2fe1564d9092a244309aff78d3bc71d95797184b59441210391ec904754962bfe2138ca65ebd66956d9d1c572bbba41896dddf744b9d20cf8',
- value: 11857272,
+ sats: 11857272n,
sequenceNo: 4294967295,
outputScript:
'76a914cde9bc0f8ee4bc5bde25c2e3763186389e9d82eb88ac',
@@ -3812,7 +3812,7 @@
},
inputScript:
'410c5743e207476e6dd36c076ebece2681568de8855581305e350ad8caf54c2cb043230b8ac3b5ddb3e4cc8ee1b1519f95178f19d521b1a4072f3638bcd164cf1341210316c3301c214cf5700a35bc0a5d0c41e7c4a48acff8da61d7ae66e79d8ef68026',
- value: 6300897,
+ sats: 6300897n,
sequenceNo: 4294967295,
outputScript:
'76a9147a9abbe29cb7fcf541b68981840dc4c2c672504b88ac',
@@ -3824,7 +3824,7 @@
},
inputScript:
'41b10fc4389ec67240720117d5140fba2a564095314220f5e2fafd7654da1e43fee3bf0df9464a99edc0687c8f86b552f8439c8b5908786ac9aae643c1e8c22fe94121027caaf5c02a2270a282cdb719fc22191fe86df130b98bc2f59c7881c8cd9d8e62',
- value: 6765543,
+ sats: 6765543n,
sequenceNo: 4294967295,
outputScript:
'76a91468bf52bfab795729eb8bf2d067507068909c0b3688ac',
@@ -3836,7 +3836,7 @@
},
inputScript:
'4179f63f6c2b66cfffcf83f7c4ba49591bc5dad419a75c8e15e46811d0337399abbcab7f6e0655059727d345bf83139d287e8e93232dc75319672135bc9927d9e3412103ed359db19ec76388c224eb7f631a1411939fbcc01da55d5a01d1f6130d214a22',
- value: 2129682,
+ sats: 2129682n,
sequenceNo: 4294967295,
outputScript:
'76a914ff119315f056f5a79ad69bc514ccd98fe325cc1288ac',
@@ -3848,7 +3848,7 @@
},
inputScript:
'410ad92695b50884c07014a1e7c6cb3126da5cb3ce44c2bc05ae9f2039a156ff958f7198c47f2621eee11a5289fd83d126afbc5a185a4ebf3fbfd6db274aebe94a412103b7f3e5aa641ce8be9ea9268ae50b3561d7b70e6bb7add4ed3805f9a51bfaa3f1',
- value: 3175212,
+ sats: 3175212n,
sequenceNo: 4294967295,
outputScript:
'76a9144f78f400b6ea94bcc152fd86a3a342392a0d393088ac',
@@ -3860,7 +3860,7 @@
},
inputScript:
'414305bfa6ef186ddd3f4b8b97a4ebeff87161d67b2dec4408ea4a6f91cdf7db47382e96351a33dc49ebe02be37b14e5bc990cad04eaddc90f21a8060dee2e2b24412102b982e67fe423b3dd45e38bb2457f0bf66d94a7d559d32d70319cf4dbddf66c9c',
- value: 30314073,
+ sats: 30314073n,
sequenceNo: 4294967295,
outputScript:
'76a914905cf8c762e3027b5562fb4dc949225999b7561a88ac',
@@ -3872,7 +3872,7 @@
},
inputScript:
'4192783667e913c048b56c041fc3fcfba6f4eb7f123deca342a2e6b461a66c11178db5082c2e6158b61518de5725970c71199cc2736aa789888d62ab9b290c8ec94121026799d87f335bb8a8705e9a5ecc3098073b988315806b2b0c38fd6d76352474f2',
- value: 62502527,
+ sats: 62502527n,
sequenceNo: 4294967295,
outputScript:
'76a914cf53e1bbbb20d10464328fb25ea22ce9c23348cc88ac',
@@ -3884,7 +3884,7 @@
},
inputScript:
'415ccd55e0a38970dff3a6fbddb96de79199b6e3949997fda69a6daf021b74964570d9a0ec0cedfc31ceed0c0a8f78a4c97a4ad2b372880cc2b5e73190f7e9a59341210208a31c990c4c0e0e5ae7d795d74ecbe782a5798f358ee70607f240b6a62fd925',
- value: 12975492,
+ sats: 12975492n,
sequenceNo: 4294967295,
outputScript:
'76a9147ba0a29a0d139dcfcfc37bf44fa3c0b07eb4b08488ac',
@@ -3896,7 +3896,7 @@
},
inputScript:
'41539175855a3e0ad5babfbc685ba9dcf8b515cbc9b109d016bba34b07ab502c7cf0e0c21be2f5e9320d51a4f33f9b2c46e57c7be56bf893afd4048b8b7863f4e54121036d7c1368ecb38e607c3a4905d4831d0d1b7a0452da451a87524eb585f68c5845',
- value: 52978008,
+ sats: 52978008n,
sequenceNo: 4294967295,
outputScript:
'76a914ba83a81ec8cb0e5c4c3d4f0584fcc778a08a431088ac',
@@ -3908,7 +3908,7 @@
},
inputScript:
'41afd3ae1e1909d2b01a09e4be777857e7340d7b5aac524c4b0f258dcb3c91a80332f9a4c7f3bf1b21646362d5507a7725006c1815de581945ee4808c8e36e8f52412102966e2bc7578c25d70d601d404051d3880327ea8b742a754f19e234397ba67187',
- value: 2926809,
+ sats: 2926809n,
sequenceNo: 4294967295,
outputScript:
'76a914e8a84faf2151752cce5b1a90c149cee3de8a175e88ac',
@@ -3920,7 +3920,7 @@
},
inputScript:
'41400258c69411e26ba097394882ae6b83837103a30b36b224348574375b070c40ae445ccb3301ef95b08215fbabea7fa92392506aa5a8420dd90669e00bbb9cae41210301bd439789b92005e5994ca61c073e91c75265a9ae7d66510a80601e0e46a8ec',
- value: 6374291,
+ sats: 6374291n,
sequenceNo: 4294967295,
outputScript:
'76a914e1cf05100ed4381378604695ac6a695dc6cbd59c88ac',
@@ -3932,7 +3932,7 @@
},
inputScript:
'41178c840dfeddc76f7c8801a8e6625896c2afafe3bf02224b34b5f55576c7ec1e487e39eb04c5da64ad7a1006e939084d6d0c167d2bc5275ded4aa88f91ee2a314121027fab9d61001eba328d64a41394ff6c7d20111cfe6125603b3a402a8a392e2333',
- value: 19205093,
+ sats: 19205093n,
sequenceNo: 4294967295,
outputScript:
'76a91412da0c1ee9d0e3ae99bc0d03c0389f82e5d55eb288ac',
@@ -3944,7 +3944,7 @@
},
inputScript:
'41afd33612b059e08d9137d1c52153a4293d63e06c29ed82fd234e453748b3dc2d887a87567cfa0e71c173cd1afccfbb4d67073b13f51e3aafb8904378366a2e7f412103812b9b680b5621d0e5a4493bcaf1e6d73c5f2141b193fa7740a5df1bf5c3d2e5',
- value: 30781733,
+ sats: 30781733n,
sequenceNo: 4294967295,
outputScript:
'76a9145d85e859e9d4e8feb5a618ea903ebf377b54d75e88ac',
@@ -3956,7 +3956,7 @@
},
inputScript:
'411b68176b5719f9192ad5f36e40ec03d86bc37af85f7fe1b184e12bc49ce03851a61bd1faae069c73ac471a997938640331edfacfd86f01ab65314900ccc93b20412102af2c8eb8dfd66767d20a2afdd600f75112d820737d8bf5147f5d6a11a94689e1',
- value: 7563155,
+ sats: 7563155n,
sequenceNo: 4294967295,
outputScript:
'76a914d35af95bb47672ead30711dea85ac05bb8a854ac88ac',
@@ -3968,7 +3968,7 @@
},
inputScript:
'41509fac1d23154ca52bbbed8287f20b81316af0ed83da37383671ef804251e81952c9fdede17a30b8197340f83256f367ed308bb2d26ae9620ea6a117fb634d464121036679c1faac5d79d3292634693cf8aa5de6313859a30a8e024ff03a0ca27756e8',
- value: 11318359,
+ sats: 11318359n,
sequenceNo: 4294967295,
outputScript:
'76a914b0dec1ba4c6efb18f91167342c3c2988f5dfa75888ac',
@@ -3980,7 +3980,7 @@
},
inputScript:
'41cdb6a6ee3b61ddd9f46b2dda0658f1ce7d5510401e6be6843dbbbc603fbcad46142176090c2c295967287a6a81cf1c9a27fdc5d1b8c9ea5267e9be4aa91b2bc0412103f2a000ceebf0dcc71b78c2076ceb5298d821f186344ef4ed9752ebfd206d3692',
- value: 14100332,
+ sats: 14100332n,
sequenceNo: 4294967295,
outputScript:
'76a914e9d34d084b11e4ce88cc9d0869c90c207379f9c988ac',
@@ -3992,7 +3992,7 @@
},
inputScript:
'4132a8a9642523289a520a19e325820db0a1b1e64d15b1cf122454c59d2960985e6e9fba429d26a759185220f3f9a5a6bfe915d217443bb134af4483f54815441a4121039fbfbb5269555db15811a1160c4b367ea144661791e4590f3c2214d543dad64e',
- value: 14378379,
+ sats: 14378379n,
sequenceNo: 4294967295,
outputScript:
'76a914cd6a09b5535b40ff022140a471cdc16d0e66da4288ac',
@@ -4004,7 +4004,7 @@
},
inputScript:
'41acf4a95bd83fbe0c0b853bd82d93bec1333554a4132c7e036175923aa7bf1a96c6aaa5ae6c5347040ca365c1aa24f41eba8ec9154822fac9530d0bef707b93e34121027edf78be3a7f824b1813b82aba7f7be1048817ca5148e9d130e424be56b47730',
- value: 65926662,
+ sats: 65926662n,
sequenceNo: 4294967295,
outputScript:
'76a914208e9de659ed7c1d4bdff00eda7cd0ffd4b6ceca88ac',
@@ -4016,7 +4016,7 @@
},
inputScript:
'4119da1345166c8694db830101e9608dfe7308c1991768cb65291eea3bc0074f7fc71c7e7995570a0fb93f45cb82738efaa036bfce189f1b6388456b987a965d8d4121038d89d5e03a0d7589d3d6c1c5058ad796be4e4f52baa709f10617de8f9f33690e',
- value: 3472995,
+ sats: 3472995n,
sequenceNo: 4294967295,
outputScript:
'76a914e10383617cf53b7e9dca0f42e868e2e3dc82502d88ac',
@@ -4028,7 +4028,7 @@
},
inputScript:
'4115e468dc353553fcc0000d682370329814fa7ca2eecac4c84382d799fc471f46d192874bbaca09168742cefbf8ff400cf3dc48d03454ca15bfe8a6608a5a94be41210309a4885102f697f07d003cbb066a93c68446ccf0a1afacec1b40eb2fe5582ee5',
- value: 3836272,
+ sats: 3836272n,
sequenceNo: 4294967295,
outputScript:
'76a91492c4ba6ddd7501ab82286a9e9615364535e2f3f888ac',
@@ -4040,7 +4040,7 @@
},
inputScript:
'4187e8db9862eed3a1caa1277cb5ad7b98dd35a005e4873b7438a7bf9977c739a68428a630503f46c6298621e5cb5a0390d49e806497e7f00f82ec5504549d948c4121038e774c9432e144b196f92122e67f291cd1bebc704a448bf4d7e156725a1df4d5',
- value: 4277798,
+ sats: 4277798n,
sequenceNo: 4294967295,
outputScript:
'76a9144e44c948de92c030bb0626208295d73315b8c5e988ac',
@@ -4052,7 +4052,7 @@
},
inputScript:
'4131a686c7274fa77c615ba8bfcb2d7430054f0e81c7302e2c1761b80f0bc5291f0dda9c814297799d79c9866391c7614e677d56ab8c376fc40ca97d3082b5c32b412102a69bbd2a7b05ed30d06be79231078b8054266c141123b9614b3e0e0131ec7805',
- value: 6063080,
+ sats: 6063080n,
sequenceNo: 4294967295,
outputScript:
'76a914f73e9cf52eb1748d21fcab670fc3e567085685f488ac',
@@ -4064,7 +4064,7 @@
},
inputScript:
'4130a61428674676161422657ae38362f7d71131efe99725bcb59d49dffb976e3739802b0050d3c462c8742eda191f81340273f045b6edbf49956364003c28712e4121032a1b09b6bff6cd9e7a24fe362c2c2601c21987e3cebadae381d8ced9a7f53ea1',
- value: 23507881,
+ sats: 23507881n,
sequenceNo: 4294967295,
outputScript:
'76a9142cc2ac6f08c48193fbbc5eb69a4540c98f434d9688ac',
@@ -4076,7 +4076,7 @@
},
inputScript:
'41ef5090a88edc015d00612b69ef7185039b94ef6832bcb377cabb8def1ae2d4eeea58b5349591e346ec4947583fff76e79182ee9008e3cfa7a90a864e33678724412103222133f854bc03ddba9e33bf2a835e48cb7104945677912cbb4ed577643fa4aa',
- value: 24929079,
+ sats: 24929079n,
sequenceNo: 4294967295,
outputScript:
'76a9142cc23fe84f3b64ff7b24c1a0cf354ea583072a0388ac',
@@ -4088,7 +4088,7 @@
},
inputScript:
'417febf2d756ce0e52854d180ee6a4f6face48786ce1cac18cd915de9dcd2d981ac94e2501e15167d707e5a8067cc5efe0a3b17a9cdc27850a0191453bf52d416541210208fd87bf70ab65ac9ebbe050a5c7e3bb8dd31edb21e2aea47d7a146e0ae3f8d2',
- value: 44828158,
+ sats: 44828158n,
sequenceNo: 4294967295,
outputScript:
'76a9142656de90609eb0cbdd7c4244b3d55d71ceda667b88ac',
@@ -4100,7 +4100,7 @@
},
inputScript:
'41b93878fb3a450cae4ba3d51076b002cd8f57aca1e3571bef90ab66f94bd05396d7b25e2e46a664f5c17c4fc5ad27f02d5bf5406d588e02b54a774ec627e4e698412103067a6da11957d765e831d47e6dee1a45e59aa28f60500a39bb158157c3eb1509',
- value: 15070744,
+ sats: 15070744n,
sequenceNo: 4294967295,
outputScript:
'76a914f7c311ddfc0ed8a87d8a699df9c9acbb98720d2b88ac',
@@ -4108,17 +4108,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a0446555a0020194246d7e7a3e1c8b88559ee210b390ceb8b9ab82f860d9c9d6f9daa01f6c82f',
},
{
- value: 165265,
+ sats: 165265n,
outputScript:
'76a914d0a105a83b6c44147cf2b4c5b5c8a3c75de1163e88ac',
},
{
- value: 415331,
+ sats: 415331n,
outputScript:
'76a914ca82960460fd35b5a59b2c6bf6372f3ad171bcb988ac',
spentBy: {
@@ -4127,12 +4127,12 @@
},
},
{
- value: 513772,
+ sats: 513772n,
outputScript:
'76a9143505593cb0094cece0165201c1b5320e8e0e88cb88ac',
},
{
- value: 620346,
+ sats: 620346n,
outputScript:
'76a9144523d89bee4b8481f9111865bfabcedf70d5f73488ac',
spentBy: {
@@ -4141,22 +4141,22 @@
},
},
{
- value: 745522,
+ sats: 745522n,
outputScript:
'76a914e0577e495872e411ec85bb2db60c08bd41d970c788ac',
},
{
- value: 951733,
+ sats: 951733n,
outputScript:
'76a9142884eb394c83672e40e24eed0d9f2532def1df2488ac',
},
{
- value: 977317,
+ sats: 977317n,
outputScript:
'76a9143cdaf26959fe02da6dd9b1ecf57fdc8e70f80def88ac',
},
{
- value: 1637364,
+ sats: 1637364n,
outputScript:
'76a9149f30bd564d189088a41af3298dc5e87b33482d6188ac',
spentBy: {
@@ -4165,7 +4165,7 @@
},
},
{
- value: 1709164,
+ sats: 1709164n,
outputScript:
'76a91456341f200e54c76f06fff1e610603d489e87e2ed88ac',
spentBy: {
@@ -4174,37 +4174,37 @@
},
},
{
- value: 1734037,
+ sats: 1734037n,
outputScript:
'76a914deda3755e569aa7ad431b679376465e234c1ab0e88ac',
},
{
- value: 1787574,
+ sats: 1787574n,
outputScript:
'76a914e577b97b63b684ff4bce76638b39e9bf7337391a88ac',
},
{
- value: 1794906,
+ sats: 1794906n,
outputScript:
'76a914122e9d948f848e322accc989c63b68b1f1f4a27e88ac',
},
{
- value: 1809132,
+ sats: 1809132n,
outputScript:
'76a914d2d288f72d59325aa7a93f378456416b35c1089488ac',
},
{
- value: 1830109,
+ sats: 1830109n,
outputScript:
'76a91437ff7ce27ff184efda22c428d870713d7071531788ac',
},
{
- value: 2048566,
+ sats: 2048566n,
outputScript:
'76a91471a3f02e0e7c1bd4b6c06a72aeeb9aef3c84226888ac',
},
{
- value: 2179080,
+ sats: 2179080n,
outputScript:
'76a9147133b978e3d9c4004ef8c8e288395f86a4ca64fc88ac',
spentBy: {
@@ -4213,7 +4213,7 @@
},
},
{
- value: 2390444,
+ sats: 2390444n,
outputScript:
'76a914f974ac8c5784b78316c66ee06720d6694b6a454288ac',
spentBy: {
@@ -4222,17 +4222,17 @@
},
},
{
- value: 2911412,
+ sats: 2911412n,
outputScript:
'76a914f2a178204a2efeaa652ed11df741ff13c715014388ac',
},
{
- value: 2966953,
+ sats: 2966953n,
outputScript:
'76a9144b8bcd98ebee333f0018b11071e8308fbe95554e88ac',
},
{
- value: 3004755,
+ sats: 3004755n,
outputScript:
'76a914d68020a4bb2d9f6cdb6516938c1b1f4c4b6a4efd88ac',
spentBy: {
@@ -4241,17 +4241,17 @@
},
},
{
- value: 3143178,
+ sats: 3143178n,
outputScript:
'76a91413fe018b9d729cb23e86628d04365ea77e8d443888ac',
},
{
- value: 3199496,
+ sats: 3199496n,
outputScript:
'76a914a72c7bf5b4661af684c4990af751bdc9cdb871cf88ac',
},
{
- value: 3258788,
+ sats: 3258788n,
outputScript:
'76a914f339d9aff74cb1bd22d600e38d09b0649225317d88ac',
spentBy: {
@@ -4260,7 +4260,7 @@
},
},
{
- value: 3270709,
+ sats: 3270709n,
outputScript:
'76a914ea8762d67b8ba330a86703abfb4a0eed28719f1b88ac',
spentBy: {
@@ -4269,7 +4269,7 @@
},
},
{
- value: 3428216,
+ sats: 3428216n,
outputScript:
'76a9141021bc93de524c2b76c8ff770f1db96a11dd07eb88ac',
spentBy: {
@@ -4278,12 +4278,12 @@
},
},
{
- value: 3634054,
+ sats: 3634054n,
outputScript:
'76a9146a224d728e90a9796fdb2dde295788453a0121c788ac',
},
{
- value: 3806325,
+ sats: 3806325n,
outputScript:
'76a914b0f96288a5544986d45a5d67992b52534e61585a88ac',
spentBy: {
@@ -4292,47 +4292,47 @@
},
},
{
- value: 3961600,
+ sats: 3961600n,
outputScript:
'76a914581217d2826ef7cdfe158da53797752d1b1a84fa88ac',
},
{
- value: 4188894,
+ sats: 4188894n,
outputScript:
'76a914dae3359f7056323a08cfb480334a8b4543cc7caf88ac',
},
{
- value: 4417013,
+ sats: 4417013n,
outputScript:
'76a914d6dcbb2c33b936e7f4e2d38b9782ee9c4bcc370d88ac',
},
{
- value: 4496101,
+ sats: 4496101n,
outputScript:
'76a91487f03b804d802f3ee5357149c4d192d6150c254088ac',
},
{
- value: 5142036,
+ sats: 5142036n,
outputScript:
'76a9142c5c4f436e1e0adc06592e188dff7731600b9c3a88ac',
},
{
- value: 5192325,
+ sats: 5192325n,
outputScript:
'76a9140817b0b24e07482730af2f30b5b5811a905071b388ac',
},
{
- value: 5219666,
+ sats: 5219666n,
outputScript:
'76a914cfa9bc00c9d7fa1932b786986f10082af9c6b48f88ac',
},
{
- value: 5350325,
+ sats: 5350325n,
outputScript:
'76a914d34f5216d288ab84cf5ef3e2675fac013c82408b88ac',
},
{
- value: 5525456,
+ sats: 5525456n,
outputScript:
'76a914a046783da29e24286e887bec2be51e776e56ec6f88ac',
spentBy: {
@@ -4341,22 +4341,22 @@
},
},
{
- value: 5576379,
+ sats: 5576379n,
outputScript:
'76a914bfc31c471ae0929046880f56977bce04bafce82a88ac',
},
{
- value: 5882456,
+ sats: 5882456n,
outputScript:
'76a914633e45a98df30365d95b560a5dece001d40da15788ac',
},
{
- value: 6227395,
+ sats: 6227395n,
outputScript:
'76a91474615b2ba0fb2c37106aa0ff42f6213af036d45788ac',
},
{
- value: 6337179,
+ sats: 6337179n,
outputScript:
'76a914764ca1c4108ecb20e0daad7b8e3ecf64da8a546a88ac',
spentBy: {
@@ -4365,32 +4365,32 @@
},
},
{
- value: 6464974,
+ sats: 6464974n,
outputScript:
'76a914e32dd21a1b04ffcfb3b4d6a2a78c1bf1c1e1c63d88ac',
},
{
- value: 6529342,
+ sats: 6529342n,
outputScript:
'76a914c4eefae07113114399c503d5663154c1563aae8288ac',
},
{
- value: 6560940,
+ sats: 6560940n,
outputScript:
'76a91454ecb17cfe67b65105f09c5ee7d1fe066d5340ae88ac',
},
{
- value: 6622255,
+ sats: 6622255n,
outputScript:
'76a91426e17f7957ac242c076351839cb02ae879c9412e88ac',
},
{
- value: 6649523,
+ sats: 6649523n,
outputScript:
'76a914ad2d233aad04cc481b19ead6a15b37ae865c33d588ac',
},
{
- value: 6966573,
+ sats: 6966573n,
outputScript:
'76a914294aa90705c956c74700c97a92d7ce219bc8088088ac',
spentBy: {
@@ -4399,7 +4399,7 @@
},
},
{
- value: 7237077,
+ sats: 7237077n,
outputScript:
'76a914b55a3f80593d1ef2b85dc25e20335347871b28c488ac',
spentBy: {
@@ -4408,17 +4408,17 @@
},
},
{
- value: 7247037,
+ sats: 7247037n,
outputScript:
'76a91409360004e44bb8b116cfd70301cb3e58c85bdc6e88ac',
},
{
- value: 7571632,
+ sats: 7571632n,
outputScript:
'76a914b746811bdaf55f875770cd78b068209ed987323788ac',
},
{
- value: 7936466,
+ sats: 7936466n,
outputScript:
'76a9147eadf036427bcf114711bd09f1c6cd71f7d99a5988ac',
spentBy: {
@@ -4427,12 +4427,12 @@
},
},
{
- value: 9483487,
+ sats: 9483487n,
outputScript:
'76a91471308336e8b5e92ac1e57414e9f0a025b2a5019888ac',
},
{
- value: 9577280,
+ sats: 9577280n,
outputScript:
'76a914e85d5b1a53a128308e326aad645027b2c8c4ac2788ac',
spentBy: {
@@ -4441,12 +4441,12 @@
},
},
{
- value: 9828407,
+ sats: 9828407n,
outputScript:
'76a91488528685bbe4c696b58c8b6d5411606bcb3cc63888ac',
},
{
- value: 10210178,
+ sats: 10210178n,
outputScript:
'76a914d1ac9f7674d3881fa7675a552691d4a433aeb38e88ac',
spentBy: {
@@ -4455,17 +4455,17 @@
},
},
{
- value: 10402019,
+ sats: 10402019n,
outputScript:
'76a9146674b3bdf74ae56d356815b40821385e23b88cdc88ac',
},
{
- value: 10651856,
+ sats: 10651856n,
outputScript:
'76a914269454c951ad997703c868cab35a8a80a87dc54e88ac',
},
{
- value: 11003947,
+ sats: 11003947n,
outputScript:
'76a9147b8c09c622dcfca426b5b9c46680b80265ee9c5c88ac',
spentBy: {
@@ -4474,32 +4474,32 @@
},
},
{
- value: 11036265,
+ sats: 11036265n,
outputScript:
'76a914fd793cd1790bcc882cdd531f085353bd9cceee7088ac',
},
{
- value: 11983981,
+ sats: 11983981n,
outputScript:
'76a914f3983d2e5ce9a94f386c17f4526665ed8fc776bf88ac',
},
{
- value: 12224144,
+ sats: 12224144n,
outputScript:
'76a914f4f21ca1c5cdc979bc0d88de0e6a4faaae77affe88ac',
},
{
- value: 12434515,
+ sats: 12434515n,
outputScript:
'76a914047e120012f39c07127dc9dcce6490c1b3af613288ac',
},
{
- value: 12544565,
+ sats: 12544565n,
outputScript:
'76a91498884aa69b0213b32dd58f4bcf9d76edde2f796a88ac',
},
{
- value: 13856128,
+ sats: 13856128n,
outputScript:
'76a9146a1d4ac47decfd68e4223e6932d2d27797429a2f88ac',
spentBy: {
@@ -4508,32 +4508,32 @@
},
},
{
- value: 13926555,
+ sats: 13926555n,
outputScript:
'76a9147c8467c80862216ceed083263064dee5a285eff088ac',
},
{
- value: 13953640,
+ sats: 13953640n,
outputScript:
'76a914e815252fbb0c8649aa03851e828e6d6ce554ca8188ac',
},
{
- value: 14604288,
+ sats: 14604288n,
outputScript:
'76a914c6f3e86c0b5be88b5dea5c5f97f8898d83dde84b88ac',
},
{
- value: 14796850,
+ sats: 14796850n,
outputScript:
'76a914f18a494b498b8893efac9877c58259f9f956df3488ac',
},
{
- value: 15003691,
+ sats: 15003691n,
outputScript:
'76a9144b8093c3ddf67df71ad3a55d6a1f786f07c6e9f388ac',
},
{
- value: 15069088,
+ sats: 15069088n,
outputScript:
'76a914e7b2d4e1a0269e16e506b9532e8d0fcd6146f38988ac',
spentBy: {
@@ -4542,7 +4542,7 @@
},
},
{
- value: 15542738,
+ sats: 15542738n,
outputScript:
'76a9148f2abbbc1531b363b250cd45748ab017230d971d88ac',
spentBy: {
@@ -4551,32 +4551,32 @@
},
},
{
- value: 16694191,
+ sats: 16694191n,
outputScript:
'76a914158f31b3ec66a43d8115e4711cfe2a8623ca513688ac',
},
{
- value: 16936236,
+ sats: 16936236n,
outputScript:
'76a914d0b8bee8deb1e0c45128d6da73bb3a88f583cf5188ac',
},
{
- value: 17419891,
+ sats: 17419891n,
outputScript:
'76a914496bfb89eeaf405b4cabb03705c65246414f8f9088ac',
},
{
- value: 17878439,
+ sats: 17878439n,
outputScript:
'76a914320a5c0c0c17172aa799df5e9f01fcfe34cc8acc88ac',
},
{
- value: 18203996,
+ sats: 18203996n,
outputScript:
'76a9149c532629e3bbd6b5df9fa7b2a3a8cc447a9c96b088ac',
},
{
- value: 18343505,
+ sats: 18343505n,
outputScript:
'76a9140c15e03cb7db4f39a4c5dc5318a1e8a5b3c6c9ce88ac',
spentBy: {
@@ -4585,22 +4585,22 @@
},
},
{
- value: 20055678,
+ sats: 20055678n,
outputScript:
'76a914d82b642270c662ad12ba298b677d543deb27b4bf88ac',
},
{
- value: 21519776,
+ sats: 21519776n,
outputScript:
'76a914da876799bf44f7eee7c17a0628223caa24b9dd6e88ac',
},
{
- value: 22638667,
+ sats: 22638667n,
outputScript:
'76a9140f6308b30e5406711fe10ff4d091c35168d83b0388ac',
},
{
- value: 23648127,
+ sats: 23648127n,
outputScript:
'76a914283acdf34fe0b72b8c668057ef09e68de883f1dc88ac',
spentBy: {
@@ -4609,12 +4609,12 @@
},
},
{
- value: 24750932,
+ sats: 24750932n,
outputScript:
'76a9149213d8dfdafe9925f3c3005ab195c0b9dec4b94888ac',
},
{
- value: 33183717,
+ sats: 33183717n,
outputScript:
'76a91495d307ac4c97d450c8e8520a40478cfdb7631cf988ac',
spentBy: {
@@ -4623,12 +4623,12 @@
},
},
{
- value: 38734503,
+ sats: 38734503n,
outputScript:
'76a9143a6425c522cbfee2ee3892d77734ff4170bae1fe88ac',
},
{
- value: 69219464,
+ sats: 69219464n,
outputScript:
'76a9140f20b1267a5ab07ba65f860285c5f8c4a726ee2288ac',
},
@@ -4660,7 +4660,7 @@
},
inputScript:
'41d3e2a6b3b740a0b79fcf437b4a4bf5a8d7b97d9295236aef0de5d08f3b757e7386328ae2b702bf469b69d115eada9c2f4871075bcabee76e59635321056e802a4121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -4670,7 +4670,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999756000000000',
+ atoms: 999756000000000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -4684,7 +4684,7 @@
},
inputScript:
'41d6b0dc3a7426777555d9f824c5c508c2c7b46d5a8d3f30864bb7377aa17f5c2fda0ba3951559cef4100b79b9070a32faa31e8047825dc47889f7cffca8fd028b4121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 4300,
+ sats: 4300n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -4692,12 +4692,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e442020a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f80800000002540be4000800038d4381321400',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -4708,13 +4708,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000000000',
+ atoms: 10000000000n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
token: {
@@ -4725,13 +4725,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999746000000000',
+ atoms: 999746000000000n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 2815,
+ sats: 2815n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
},
@@ -4754,8 +4754,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -4779,7 +4779,7 @@
},
inputScript:
'47304402202be54e9bb516220fd0bc48755e50374ca274b10325b896657d898849b3abc0b902201eb90668fdac9fb3133810b645f1b95ac5c8a2d410727eea355bcb07c13d48bd412103562731a08eb23e6260b516c4564f746033e9080bc9f61ad2158a63927500b8b1',
- value: 2016227,
+ sats: 2016227n,
sequenceNo: 4294967295,
outputScript:
'76a914231f7087937684790d1049294f3aef9cfb7b05dd88ac',
@@ -4787,12 +4787,12 @@
],
outputs: [
{
- value: 1972000,
+ sats: 1972000n,
outputScript:
'76a9145f41a47e1a4a86143ea999604cc504a3f19dc67088ac',
},
{
- value: 44001,
+ sats: 44001n,
outputScript:
'76a914231f7087937684790d1049294f3aef9cfb7b05dd88ac',
},
diff --git a/apps/ecash-herald/test/mocks/mockChronikCalls.ts b/apps/ecash-herald/test/mocks/mockChronikCalls.ts
--- a/apps/ecash-herald/test/mocks/mockChronikCalls.ts
+++ b/apps/ecash-herald/test/mocks/mockChronikCalls.ts
@@ -29,19 +29,19 @@
},
inputScript:
'473044022055444db90f98b462ca29a6f51981da4015623ddc34dc1f575852426ccb785f0402206e786d4056be781ca1720a0a915b040e0a9e8716b8e4d30b0779852c191fdeb3412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 6231556,
+ sats: 6231556n,
sequenceNo: 4294967294,
outputScript: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e45534953044245415207426561724e69701468747470733a2f2f636173687461622e636f6d2f4c0001004c0008000000000000115c',
},
{
- value: 546,
+ sats: 546n,
outputScript: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
tokenId:
@@ -51,7 +51,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '4444',
+ atoms: 4444n,
isMintBaton: false,
entryIdx: 0,
},
@@ -61,7 +61,7 @@
},
},
{
- value: 6230555,
+ sats: 6230555n,
outputScript: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '27a2471afab33d82b9404df12e1fa242488a9439a68e540dcf8f811ef39c11cf',
@@ -87,8 +87,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -111,7 +111,7 @@
},
inputScript:
'473044022075166617aa473e86c72f34a5576029eb8766a035b481864ebc75759155efcce00220147e2d7e662123bd728fac700f109a245a0278959f65fc402a1e912e0a5732004121034cdb43b7a1277c4d818dc177aaea4e0bed5d464d240839d5488a278b716facd5',
- value: 1000,
+ sats: 1000n,
sequenceNo: 4294967295,
outputScript: '76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
},
@@ -122,19 +122,19 @@
},
inputScript:
'4830450221009e98db4b91441190bb7e4745b9f249201d0b54c81c0a816af5f3491ffb21a7e902205a4d1347a5a9133c14e4f55319af00f1df836eba6552f30b44640e9373f4cabf4121034cdb43b7a1277c4d818dc177aaea4e0bed5d464d240839d5488a278b716facd5',
- value: 750918004,
+ sats: 750918004n,
sequenceNo: 4294967295,
outputScript: '76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e4553495305416c69746105416c6974610a616c6974612e636173684c0001044c00080000befe6f672000',
},
{
- value: 546,
+ sats: 546n,
outputScript: '76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
token: {
tokenId:
@@ -144,7 +144,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '210000000000000',
+ atoms: 210000000000000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -154,7 +154,7 @@
},
},
{
- value: 750917637,
+ sats: 750917637n,
outputScript: '76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
spentBy: {
txid: 'ca70157d5cf6275e0a36adbc3fabf671e3987f343cb35ec4ee7ed5c8d37b3233',
@@ -180,8 +180,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -204,19 +204,19 @@
},
inputScript:
'483045022100dad1d237b541b4a4d29197dbb01fa9755c2e17bbafb42855f38442b428f0df6b02205772d3fb00b7a053b07169e1534770c091fce42b9e1d63199f46ff89856b3fc6412102ceb4a6eca1eec20ff8e7780326932e8d8295489628c7f2ec9acf8f37f639235e',
- value: 49998867,
+ sats: 49998867n,
sequenceNo: 4294967295,
outputScript: '76a91485bab3680833cd9b3cc60953344fa740a2235bbd88ac',
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e4553495303504f571850726f6f666f6657726974696e672e636f6d20546f6b656e2168747470733a2f2f7777772e70726f6f666f6677726974696e672e636f6d2f32364c0001004c000800000000000f4240',
},
{
- value: 546,
+ sats: 546n,
outputScript: '76a91485bab3680833cd9b3cc60953344fa740a2235bbd88ac',
token: {
tokenId:
@@ -226,7 +226,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000',
+ atoms: 1000000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -236,7 +236,7 @@
},
},
{
- value: 49997563,
+ sats: 49997563n,
outputScript: '76a91485bab3680833cd9b3cc60953344fa740a2235bbd88ac',
spentBy: {
txid: '3c665488929f852d93a5dfb6e4b4df7bc8f7a25fb4a2480d39e3de7a30437f69',
@@ -262,8 +262,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -286,19 +286,19 @@
},
inputScript:
'4132271505f7bc271e30983bb9f42f634fcc7b83b35efd1465e70fe3192b395099fed6ce943cb21ed742022ceffcc64502f0101e669dc68fbee2dd8d54a8e50e1e4121034474f1431c4401ba1cd22e003c614deaf108695f85b0e7ea357ee3c5c0b3b549',
- value: 599417,
+ sats: 599417n,
sequenceNo: 4294967295,
outputScript: '76a9148f348f00f7eeb9238b028f5dd14cb9be14395cab88ac',
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a045357500001020101206350c611819b7e84a2afd9611d33a98de5b3426c33561f516d49147dc1c4106b',
},
{
- value: 546,
+ sats: 546n,
outputScript: '76a91483630e8c91571121a32f57c8c2b58371df7b84e188ac',
spentBy: {
txid: '805ff68b48739b6ec531e3b8de9369579bdac3be8f625127d1fbc145d35dd386',
@@ -306,7 +306,7 @@
},
},
{
- value: 598592,
+ sats: 598592n,
outputScript: '76a91483630e8c91571121a32f57c8c2b58371df7b84e188ac',
spentBy: {
txid: '805ff68b48739b6ec531e3b8de9369579bdac3be8f625127d1fbc145d35dd386',
diff --git a/apps/ecash-herald/test/parse.test.ts b/apps/ecash-herald/test/parse.test.ts
--- a/apps/ecash-herald/test/parse.test.ts
+++ b/apps/ecash-herald/test/parse.test.ts
@@ -154,7 +154,7 @@
coingeckoPrices,
} = airdrops[i];
const xecReceivingOutputs = new Map(airdropRecipientsKeyValueArray);
- let totalSatsSent = 0;
+ let totalSatsSent = 0n;
for (const satoshis of xecReceivingOutputs.values()) {
totalSatsSent += satoshis;
}
@@ -212,7 +212,7 @@
const xecReceivingOutputs = new Map(
xecReceivingOutputsKeyValueArray,
);
- let totalSatsSent = 0;
+ let totalSatsSent = 0n;
for (const satoshis of xecReceivingOutputs.values()) {
totalSatsSent += satoshis;
}
diff --git a/apps/ecash-herald/test/utils.test.ts b/apps/ecash-herald/test/utils.test.ts
--- a/apps/ecash-herald/test/utils.test.ts
+++ b/apps/ecash-herald/test/utils.test.ts
@@ -324,6 +324,17 @@
assert.deepEqual(bigNumberMap, roundTrip);
});
+ it('jsonReplacer and jsonReviver can encode and decode Map containing a bigint', function () {
+ const bigintMap = new Map([
+ ['76a9144c1efd024f560e4e1aaf4b62416cd1e82fbed24f88ac', 36n],
+ ['76a9144c1efd024f560e4e1aaf4b62416cd1e82fbed24f88ac', 72n],
+ ]);
+
+ const jsonText = JSON.stringify(bigintMap, jsonReplacer);
+ const roundTrip = JSON.parse(jsonText, jsonReviver);
+
+ assert.deepEqual(bigintMap, roundTrip);
+ });
it('jsonReplacer and jsonReviver can encode and decode a Set to and from JSON', function () {
const set = new Set(['one', 'two', 'three']);
@@ -332,6 +343,14 @@
assert.deepEqual(set, roundTrip);
});
+ it('jsonReplacer and jsonReviver can encode and decode a bigint to and from JSON', function () {
+ const test = 17n;
+
+ const jsonText = JSON.stringify(test, jsonReplacer);
+ const roundTrip = JSON.parse(jsonText, jsonReviver);
+
+ assert.deepEqual(test, roundTrip);
+ });
it('jsonReplacer and jsonReviver can encode and decode an object including a Set and a Map to and from JSON', async function () {
const map = new Map([
[1, 'one'],
diff --git a/apps/faucet/config.ts b/apps/faucet/config.ts
--- a/apps/faucet/config.ts
+++ b/apps/faucet/config.ts
@@ -7,7 +7,7 @@
/// Delay between two legitimate requests in hours
requestDelayHours: 24,
/// The amount to send upon request, in satoshi
- amount: 1000000,
+ amount: 1000000n,
/// The wallet private key in hex format. Keep this secret !
walletPrivateKey:
'000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f',
@@ -29,7 +29,7 @@
/// The faucet transaction fees in satoshi/kB
feeSatPerKB: 1000,
/// The dust transaction amount in satoshi
- dust: 546,
+ dust: 546n,
// *** Rate limiting options ***
/// How many eCash addresses to store for rate limiting
diff --git a/apps/faucet/index.ts b/apps/faucet/index.ts
--- a/apps/faucet/index.ts
+++ b/apps/faucet/index.ts
@@ -21,10 +21,10 @@
return req.headers['x-forwarded-for'] || req.socket.remoteAddress;
}
-function getBalanceSatoshi(utxos: ScriptUtxo[]) {
- let balanceSatoshi = 0;
+function getBalanceSatoshi(utxos: ScriptUtxo[]): bigint {
+ let balanceSatoshi = 0n;
for (const utxo of utxos) {
- balanceSatoshi += utxo.value;
+ balanceSatoshi += utxo.sats;
}
return balanceSatoshi;
}
@@ -86,7 +86,7 @@
}
const balance = getBalanceSatoshi(utxos);
console.log(
- `Current balance for the faucet wallet is ${balance / 100} ${
+ `Current balance for the faucet wallet is ${Number(balance) / 100} ${
config.ticker
}`,
);
@@ -186,7 +186,7 @@
const balance = await getBalanceSatoshi(chronikResponse.utxos);
if (balance < config.amount) {
console.log(
- `Balance is too low (${balance / 100} ${
+ `Balance is too low (${Number(balance) / 100} ${
config.ticker
})`,
);
@@ -203,7 +203,7 @@
input: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
outputScript: walletP2PKH,
},
},
@@ -218,7 +218,7 @@
inputs: inputs,
outputs: [
{
- value: config.amount,
+ sats: config.amount,
script: destinationScript,
},
walletP2PKH,
@@ -255,7 +255,7 @@
addressMap.set(address, Date.now());
console.log(
- `Successfully sent ${config.amount / 100} ${
+ `Successfully sent ${Number(config.amount) / 100} ${
config.ticker
} to ${address}: ${txid}`,
);
diff --git a/apps/token-server/config.ts b/apps/token-server/config.ts
--- a/apps/token-server/config.ts
+++ b/apps/token-server/config.ts
@@ -29,7 +29,7 @@
eligibilityResetSeconds: number;
rewardsTokenId: string;
rewardAmountTokenSats: bigint;
- xecAirdropAmountSats: number;
+ xecAirdropAmountSats: bigint;
imageDir: string;
rejectedDir: string;
maxUploadSize: number;
@@ -58,7 +58,7 @@
rewardsTokenId:
'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
rewardAmountTokenSats: 10000n, // Cachet is a 2-decimal token, so this is 100.00 Cachet
- xecAirdropAmountSats: 4200, // satoshis to send in new wallet XEC airdrops, 1000 = 10 XEC
+ xecAirdropAmountSats: 4200n, // satoshis to send in new wallet XEC airdrops, 1000 = 10 XEC
// Note: this must be the target= parameter for the --mount instruction of docker run
// See Production Step 3 in README.md
imageDir: '/token-server/token-icons',
diff --git a/apps/token-server/src/routes.test.ts b/apps/token-server/src/routes.test.ts
--- a/apps/token-server/src/routes.test.ts
+++ b/apps/token-server/src/routes.test.ts
@@ -85,7 +85,7 @@
]);
mockedChronikClient.setUtxosByAddress(SERVER_WALLET_ADDRESS, [
- { ...MOCK_SCRIPT_UTXO, value: 10000 },
+ { ...MOCK_SCRIPT_UTXO, sats: 10000n },
{
...MOCK_SPENDABLE_TOKEN_UTXO,
outpoint: { ...MOCK_OUTPOINT, outIdx: 1 },
@@ -96,7 +96,7 @@
// to test behavior of server if it is out of tokens
// Bad ROI on adding this test outright as we need lots of scripting
// to overcome the need for multiple mocked server wallets
- amount: config.rewardAmountTokenSats,
+ atoms: config.rewardAmountTokenSats,
},
},
] as ScriptUtxo[]);
diff --git a/apps/token-server/src/transactions.ts b/apps/token-server/src/transactions.ts
--- a/apps/token-server/src/transactions.ts
+++ b/apps/token-server/src/transactions.ts
@@ -19,9 +19,9 @@
ALL_BIP143,
TxOutput,
TxBuilderOutput,
+ DEFAULT_DUST_LIMIT,
} from 'ecash-lib';
-const DUST_SATS = 546;
const SATS_PER_KB = 1000;
const SLP_1_PROTOCOL_NUMBER = 1;
@@ -54,7 +54,7 @@
utxo?.token?.tokenId === tokenId &&
utxo?.token?.isMintBaton === false
) {
- totalSendQty += BigInt(utxo.token.amount);
+ totalSendQty += BigInt(utxo.token.atoms);
slpInputs.push(utxo);
change = totalSendQty - rewardAmountTokenSats;
if (change >= 0n) {
@@ -78,11 +78,11 @@
// Build target output(s) per spec
const script = slpSend(tokenId, SLP_1_PROTOCOL_NUMBER, sendAmounts);
- const slpOutputs: TxOutput[] = [{ script, value: 0 }];
+ const slpOutputs: TxOutput[] = [{ script, sats: 0n }];
// Add first 'to' amount to 1 index. This could be any index between 1 and 19.
slpOutputs.push({
- value: DUST_SATS,
+ sats: DEFAULT_DUST_LIMIT,
script: Script.fromAddress(destinationAddress),
});
@@ -92,7 +92,7 @@
// Add another targetOutput
// Change output is denoted by lack of address key
slpOutputs.push({
- value: DUST_SATS,
+ sats: DEFAULT_DUST_LIMIT,
script: Script.fromAddress(changeAddress),
});
}
@@ -145,7 +145,7 @@
// This is usually 546*2 (token output and token change)
// But calculate to support anything
const satoshisToSend = slpOutputs.reduce(
- (prevSatoshis, output) => prevSatoshis + Number(output.value),
+ (prevSatoshis, output) => prevSatoshis + Number(output.sats),
0,
);
@@ -162,7 +162,7 @@
// First, see where you are at with the required utxos
// Then add xec utxos until you don't need anymore
const inputs = [];
- let inputSatoshis = 0;
+ let inputSatoshis = 0n;
// For token-server, every utxo will have the same sk
const { sk } = wallet;
@@ -173,13 +173,13 @@
input: {
prevOut: slpInput.outpoint,
signData: {
- value: slpInput.value,
+ sats: slpInput.sats,
outputScript: Script.fromAddress(wallet.address),
},
},
signatory: P2PKHSignatory(sk, pk, ALL_BIP143),
});
- inputSatoshis += slpInput.value;
+ inputSatoshis += slpInput.sats;
}
let needsAnotherUtxo = inputSatoshis <= satoshisToSend;
@@ -198,13 +198,13 @@
input: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
outputScript: Script.fromAddress(wallet.address),
},
},
signatory: P2PKHSignatory(sk, pk, ALL_BIP143),
});
- inputSatoshis += utxo.value;
+ inputSatoshis += utxo.sats;
needsAnotherUtxo = inputSatoshis <= satoshisToSend;
@@ -225,7 +225,7 @@
try {
tx = txBuilder.sign({
feePerKb: SATS_PER_KB,
- dustLimit: DUST_SATS,
+ dustLimit: DEFAULT_DUST_LIMIT,
});
} catch (err) {
if (
@@ -272,7 +272,7 @@
chronik: ChronikClient,
ecc: Ecc,
wallet: ServerWallet,
- xecAirdropAmountSats: number,
+ xecAirdropAmountSats: bigint,
destinationAddress: string,
): Promise<RewardBroadcastSuccess> => {
// Sync wallet to get latest utxo set
@@ -286,7 +286,7 @@
// Build XEC outputs around target rewards and change
const outputs: TxBuilderOutput[] = [
{
- value: xecAirdropAmountSats,
+ sats: xecAirdropAmountSats,
script: Script.fromAddress(destinationAddress),
},
Script.fromAddress(address),
@@ -294,7 +294,7 @@
// Prepare inputs
const inputs = [];
- let inputSatoshis = 0;
+ let inputSatoshis = 0n;
// For token-server, every utxo will have the same sk
const { sk } = wallet;
@@ -316,13 +316,13 @@
input: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
outputScript: Script.fromAddress(wallet.address),
},
},
signatory: P2PKHSignatory(sk, pk, ALL_BIP143),
});
- inputSatoshis += utxo.value;
+ inputSatoshis += utxo.sats;
needsAnotherUtxo = inputSatoshis <= xecAirdropAmountSats;
@@ -343,7 +343,7 @@
try {
tx = txBuilder.sign({
feePerKb: SATS_PER_KB,
- dustLimit: DUST_SATS,
+ dustLimit: DEFAULT_DUST_LIMIT,
});
} catch (err) {
if (
@@ -351,7 +351,7 @@
err !== null &&
'message' in err &&
typeof err.message === 'string' &&
- err.message.startsWith('Insufficient input value')
+ err.message.startsWith('Insufficient input sats')
) {
// If we have insufficient funds to cover satoshisToSend + fee
// we need to add another input
diff --git a/apps/token-server/test/vectors.ts b/apps/token-server/test/vectors.ts
--- a/apps/token-server/test/vectors.ts
+++ b/apps/token-server/test/vectors.ts
@@ -58,12 +58,12 @@
outputScript: 'should be overwritten in tests',
prevOut: MOCK_OUTPOINT,
inputScript: '',
- value: 550,
+ sats: 550n,
sequenceNo: 100,
};
const MOCK_TX_OUTPUT: TxOutput = {
- value: 546,
+ sats: 546n,
outputScript: 'to be updated in test',
};
@@ -86,7 +86,7 @@
outpoint: MOCK_OUTPOINT,
blockHeight: 800000,
isCoinbase: false,
- value: 546,
+ sats: 546n,
isFinal: true,
};
@@ -98,7 +98,7 @@
export const MOCK_UTXO_TOKEN: Token = {
tokenId: MOCK_TOKENID_ONES,
tokenType: MOCK_TOKEN_TYPE,
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
};
export const MOCK_SPENDABLE_TOKEN_UTXO: ScriptUtxo = {
@@ -109,7 +109,7 @@
...MOCK_SPENDABLE_TOKEN_UTXO,
token: {
...MOCK_UTXO_TOKEN,
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
},
};
@@ -127,7 +127,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
};
@@ -307,7 +307,7 @@
description: string;
wallet: ServerWallet;
utxos: ScriptUtxo[];
- xecAirdropAmountSats: number;
+ xecAirdropAmountSats: bigint;
destinationAddress: string;
returned: RewardBroadcastSuccess;
}
@@ -316,7 +316,7 @@
description: string;
wallet: ServerWallet;
utxos: Error | ScriptUtxo[];
- xecAirdropAmountSats: number;
+ xecAirdropAmountSats: bigint;
destinationAddress: string;
error: Error;
}
@@ -690,7 +690,7 @@
outputs: [
{
...MOCK_TX_OUTPUT,
- value: 546,
+ sats: 546n,
outputScript: MOCK_CHECKED_OUTPUTSCRIPT,
},
],
@@ -716,7 +716,7 @@
outputs: [
{
...MOCK_TX_OUTPUT,
- value: 546,
+ sats: 546n,
token: {
...MOCK_TX_OUTPUT_TOKEN,
tokenId: 'someOtherTokenId',
@@ -746,7 +746,7 @@
outputs: [
{
...MOCK_TX_OUTPUT,
- value: 546,
+ sats: 546n,
token: {
...MOCK_TX_OUTPUT_TOKEN,
tokenId: MOCK_REWARD_TOKENID,
@@ -933,13 +933,13 @@
17, 8, 0, 0, 0, 0, 0, 0, 0, 3,
]),
),
- value: 0,
+ sats: 0n,
},
{
script: Script.fromAddress(
'ecash:qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqs7ratqfx',
),
- value: 546,
+ sats: 546n,
},
],
},
@@ -955,7 +955,7 @@
...MOCK_SPENDABLE_TOKEN_UTXO,
token: {
...MOCK_UTXO_TOKEN,
- amount: '5',
+ atoms: 5n,
},
},
],
@@ -966,7 +966,7 @@
...MOCK_SPENDABLE_TOKEN_UTXO,
token: {
...MOCK_UTXO_TOKEN,
- amount: '5',
+ atoms: 5n,
},
},
],
@@ -982,17 +982,17 @@
0, 0, 0, 0, 2,
]),
),
- value: 0,
+ sats: 0n,
},
{
script: Script.fromAddress(
'ecash:qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqs7ratqfx',
),
- value: 546,
+ sats: 546n,
},
{
script: Script.fromAddress(MOCK_WALLET.address),
- value: 546,
+ sats: 546n,
},
],
},
@@ -1033,7 +1033,7 @@
token: {
...MOCK_UTXO_TOKEN,
tokenId: MOCK_TOKENID_TWOS,
- amount: '5',
+ atoms: 5n,
},
},
],
@@ -1052,7 +1052,7 @@
token: {
...MOCK_UTXO_TOKEN,
isMintBaton: true,
- amount: '5',
+ atoms: 5n,
},
},
],
@@ -1067,7 +1067,7 @@
description: 'Token reward tx with no token change',
wallet: MOCK_WALLET,
utxos: [
- { ...MOCK_SCRIPT_UTXO, value: 10000 },
+ { ...MOCK_SCRIPT_UTXO, sats: 10000n },
{
...MOCK_SPENDABLE_TOKEN_UTXO,
outpoint: { ...MOCK_OUTPOINT, outIdx: 1 },
@@ -1087,11 +1087,11 @@
description: 'Token reward tx with change',
wallet: MOCK_WALLET,
utxos: [
- { ...MOCK_SCRIPT_UTXO, value: 10000 },
+ { ...MOCK_SCRIPT_UTXO, sats: 10000n },
{
...MOCK_SPENDABLE_TOKEN_UTXO,
outpoint: { ...MOCK_OUTPOINT, outIdx: 1 },
- token: { ...MOCK_UTXO_TOKEN, amount: '10' },
+ token: { ...MOCK_UTXO_TOKEN, atoms: 10n },
},
],
tokenId: MOCK_TOKENID_ONES,
@@ -1119,7 +1119,7 @@
description: 'Expected error if insufficient token balance',
wallet: MOCK_WALLET,
utxos: [
- { ...MOCK_SCRIPT_UTXO, value: 10000 },
+ { ...MOCK_SCRIPT_UTXO, sats: 10000n },
{
...MOCK_SPENDABLE_TOKEN_UTXO,
outpoint: { ...MOCK_OUTPOINT, outIdx: 1 },
@@ -1149,7 +1149,7 @@
{
...MOCK_SPENDABLE_TOKEN_UTXO,
outpoint: { ...MOCK_OUTPOINT, outIdx: 1 },
- token: { ...MOCK_UTXO_TOKEN, amount: '2' },
+ token: { ...MOCK_UTXO_TOKEN, atoms: 2n },
},
],
tokenId: MOCK_TOKENID_ONES,
@@ -1164,8 +1164,8 @@
{
description: 'XEC Airdrop with no change',
wallet: MOCK_WALLET,
- utxos: [{ ...MOCK_SCRIPT_UTXO, value: 2185 }],
- xecAirdropAmountSats: 2000,
+ utxos: [{ ...MOCK_SCRIPT_UTXO, sats: 2185n }],
+ xecAirdropAmountSats: 2000n,
destinationAddress: MOCK_DESTINATION_ADDRESS,
returned: {
hex: '0200000001111111111111111111111111111111111111111111111111111111111111111100000000644119ee30fd7a03ffe1b969c994842e5190a47e64a634efb4a8743762c7db6a9e76996fd119abddbc84c911bcab99da86e361d49d1a7452871f918f9ab7574cf3d041210357e84997196580b5e39b202f85ca353e92d051efa13f7f356834a15a36076e0affffffff01d0070000000000001976a914000000000000000000000000000000000000000088ac00000000',
@@ -1179,14 +1179,14 @@
'XEC Airdrop with no change, where we try to build the tx without enough XEC to cover the fee',
wallet: MOCK_WALLET,
utxos: [
- { ...MOCK_SCRIPT_UTXO, value: 2001 },
+ { ...MOCK_SCRIPT_UTXO, sats: 2001n },
{
...MOCK_SCRIPT_UTXO,
- value: 546,
+ sats: 546n,
outpoint: { ...MOCK_OUTPOINT, outIdx: 1 },
},
],
- xecAirdropAmountSats: 2000,
+ xecAirdropAmountSats: 2000n,
destinationAddress: MOCK_DESTINATION_ADDRESS,
returned: {
hex: '02000000021111111111111111111111111111111111111111111111111111111111111111000000006441f3db06231bd7aed9e487caf1f509aa99b28b3685ac98b4410003ba1458989989b19d844e987f0b3a7fbfaae5dc56fee2a74c81856d68b492cab1e1321b1e0ca841210357e84997196580b5e39b202f85ca353e92d051efa13f7f356834a15a36076e0affffffff1111111111111111111111111111111111111111111111111111111111111111010000006441cce8ff45845e94742322d073244151c8558c4e346ed5f017dd3e0fc5476a12a7cdffdaf737d2e8a9cdade5a780e1ad96217868cbfc4f06340646d4c2c9b5d70341210357e84997196580b5e39b202f85ca353e92d051efa13f7f356834a15a36076e0affffffff01d0070000000000001976a914000000000000000000000000000000000000000088ac00000000',
@@ -1198,8 +1198,8 @@
{
description: 'XEC Airdrop with change',
wallet: MOCK_WALLET,
- utxos: [{ ...MOCK_SCRIPT_UTXO, value: 10000 }],
- xecAirdropAmountSats: 2000,
+ utxos: [{ ...MOCK_SCRIPT_UTXO, sats: 10000n }],
+ xecAirdropAmountSats: 2000n,
destinationAddress: MOCK_DESTINATION_ADDRESS,
returned: {
hex: '02000000011111111111111111111111111111111111111111111111111111111111111111000000006441180e2b57a8e5f90717049afc9800699a95e84b260004c1b67f178e1a111b663cc3692d7b7890b2dce93003ebbfce466c465000137d8c0aa5a4e5c5d3719a729841210357e84997196580b5e39b202f85ca353e92d051efa13f7f356834a15a36076e0affffffff02d0070000000000001976a914000000000000000000000000000000000000000088ac651e0000000000001976a914a5aff40b97ab2a15add0185bdcd4cd0fa3dd7b1888ac00000000',
@@ -1214,7 +1214,7 @@
description: 'Expected error if wallet fails to sync utxo set',
wallet: MOCK_WALLET,
utxos: new Error('Some chronik error trying to fetch utxos'),
- xecAirdropAmountSats: 2000,
+ xecAirdropAmountSats: 2000n,
destinationAddress: MOCK_DESTINATION_ADDRESS,
error: new Error('Some chronik error trying to fetch utxos'),
},
@@ -1222,8 +1222,8 @@
description:
'Expected error if XEC balance is one satoshi too little to cover the tx',
wallet: MOCK_WALLET,
- utxos: [{ ...MOCK_SCRIPT_UTXO, value: 2184 }],
- xecAirdropAmountSats: 2000,
+ utxos: [{ ...MOCK_SCRIPT_UTXO, sats: 2184n }],
+ xecAirdropAmountSats: 2000n,
destinationAddress: MOCK_DESTINATION_ADDRESS,
error: new Error(
'Insufficient XEC utxos to complete XEC airdrop tx',
@@ -1236,11 +1236,11 @@
utxos: [
{
...MOCK_SPENDABLE_TOKEN_UTXO,
- value: 20000,
+ sats: 20000n,
outpoint: { ...MOCK_OUTPOINT, outIdx: 1 },
},
],
- xecAirdropAmountSats: 2000,
+ xecAirdropAmountSats: 2000n,
destinationAddress: MOCK_DESTINATION_ADDRESS,
error: new Error(
'Insufficient XEC utxos to complete XEC airdrop tx',
diff --git a/cashtab/src/airdrop/__tests__/index.test.ts b/cashtab/src/airdrop/__tests__/index.test.ts
--- a/cashtab/src/airdrop/__tests__/index.test.ts
+++ b/cashtab/src/airdrop/__tests__/index.test.ts
@@ -41,7 +41,7 @@
const mockToken: Token = {
tokenId: mockTokenId,
tokenType: mockTokenType,
- amount: '100',
+ atoms: 100n,
isMintBaton: false,
};
// Mock p2pkh holder
@@ -50,7 +50,7 @@
blockHeight: 800000,
isCoinbase: false,
script: '76a91400cd590bfb90b6dc1725530d6c36c78b88ddb60888ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: mockToken,
};
@@ -60,7 +60,7 @@
blockHeight: 800000,
isCoinbase: false,
script: 'a914cfbe04a8a5fa04a032977138d8099862d5b40f7687',
- value: 546,
+ sats: 546n,
isFinal: true,
token: mockToken,
};
@@ -75,7 +75,7 @@
utxos: [
mockHolderP2pkh,
mockHolderP2sh,
- { ...mockHolderP2pkh, token: { ...mockToken, amount: '500' } },
+ { ...mockHolderP2pkh, token: { ...mockToken, atoms: 500n } },
],
};
describe('Cashtab airdrop methods', () => {
diff --git a/cashtab/src/airdrop/fixtures/mocks.ts b/cashtab/src/airdrop/fixtures/mocks.ts
--- a/cashtab/src/airdrop/fixtures/mocks.ts
+++ b/cashtab/src/airdrop/fixtures/mocks.ts
@@ -15,7 +15,7 @@
blockHeight: 674143,
isCoinbase: false,
script: '76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -25,7 +25,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
},
},
@@ -37,7 +37,7 @@
blockHeight: 674444,
isCoinbase: false,
script: '76a914a5417349420ec53b27522fed1a63b1672c0f28ff88ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -47,7 +47,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
+ atoms: 3n,
isMintBaton: false,
},
},
@@ -59,7 +59,7 @@
blockHeight: 685181,
isCoinbase: false,
script: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -69,7 +69,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
},
@@ -81,7 +81,7 @@
blockHeight: 701432,
isCoinbase: false,
script: '76a914d4fa9121bcd065dd93e58831569cf51ef5a74f6188ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -91,7 +91,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
+ atoms: 2n,
isMintBaton: false,
},
},
@@ -103,7 +103,7 @@
blockHeight: 701432,
isCoinbase: false,
script: '76a914d4fa9121bcd065dd93e58831569cf51ef5a74f6188ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -113,7 +113,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
},
@@ -125,7 +125,7 @@
blockHeight: 770092,
isCoinbase: false,
script: '76a914c1aadc99f96fcfcfe5642ca29a53e701f0b801c388ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -135,7 +135,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
},
@@ -147,7 +147,7 @@
blockHeight: 770092,
isCoinbase: false,
script: '76a914a714013e6336a0378a1f71ade875b2138813a3ec88ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -157,7 +157,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '4',
+ atoms: 4n,
isMintBaton: false,
},
},
@@ -169,7 +169,7 @@
blockHeight: 836942,
isCoinbase: false,
script: '76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -179,7 +179,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '42',
+ atoms: 42n,
isMintBaton: false,
},
},
@@ -191,7 +191,7 @@
blockHeight: 836942,
isCoinbase: false,
script: '76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -201,7 +201,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '46',
+ atoms: 46n,
isMintBaton: false,
},
},
@@ -234,7 +234,7 @@
blockHeight: 660978,
isCoinbase: false,
script: '76a91419884c453167cf3011a3363b4b1ebd926bde059f88ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -244,7 +244,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
},
},
@@ -256,7 +256,7 @@
blockHeight: 661789,
isCoinbase: false,
script: '76a914740b0728a1b61c017cd731405ae2c9915801ef2c88ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -266,7 +266,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000000000000',
+ atoms: 10000000000000n,
isMintBaton: false,
},
},
@@ -278,7 +278,7 @@
blockHeight: 692599,
isCoinbase: false,
script: '76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -288,7 +288,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1003456790',
+ atoms: 1003456790n,
isMintBaton: false,
},
},
@@ -300,7 +300,7 @@
blockHeight: 692599,
isCoinbase: false,
script: '76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -310,7 +310,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '880000000',
+ atoms: 880000000n,
isMintBaton: false,
},
},
@@ -322,7 +322,7 @@
blockHeight: 766176,
isCoinbase: false,
script: '76a9146ffbe7c7d7bd01295eb1e371de9550339bdcf9fd88ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -332,7 +332,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
},
@@ -344,7 +344,7 @@
blockHeight: 825706,
isCoinbase: false,
script: '76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: {
tokenId:
@@ -354,7 +354,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '230000000',
+ atoms: 230000000n,
isMintBaton: false,
},
},
@@ -392,7 +392,7 @@
},
inputScript:
'4830450221008627b5457b1c00a6eb45b8143db3c5d8967436ab828c371252987c3565b4b8cf022043350e78f1397e2e9738f71732c3ed51a84c75e45672294bbea8109b734b5a6141210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 91092350,
+ sats: 91092350n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -403,7 +403,7 @@
},
inputScript:
'483045022100a20e5f247c2264b8906ff73282281e2d616a9b3eb56c5ac0ae3011c7ad713b1802207a8b78cbb7aacfed777b018703fdfb9b086cd06f71d86fb32d4207045144119541210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1810,
+ sats: 1810n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -414,7 +414,7 @@
},
inputScript:
'483045022100de97a6604699b0af2726e41e8ff4b0a31cbeee03fdcebf4bb71f52548528cc82022028f7473609089d2a6cfb0a0a5981000371ef4ec54b7df83433d8b7adf3265bf141210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1710,
+ sats: 1710n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -425,7 +425,7 @@
},
inputScript:
'473044022040b0fa1d7a20c55f4ba04f8d3e2c5f22190877fcd8fd954836116638de8b20ea02204d10006ae4cf36a8dcaee3c88bdd8a35d96798345311dce68e959cf1b9e0fd5d41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 10100,
+ sats: 10100n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -436,7 +436,7 @@
},
inputScript:
'47304402207b4bee7f7738f922a32e6734f587aa951bfb6fccc1edb1aee57afc827afdf24f0220016c73b1c785debe37bc1c9c5359773467ad509cb90d7b510b003f6f572adde841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1730,
+ sats: 1730n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -447,7 +447,7 @@
},
inputScript:
'483045022100da3d93a14017fe32227afbfcdce619bdeb2cf2720f50efedaf2c81c9d3212ab6022050a5ac02a3f396b022ee3d8945e1a02c4032a3f3d7fa574632f9d7e405f6a78141210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 10200,
+ sats: 10200n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -458,7 +458,7 @@
},
inputScript:
'47304402201aaeec2a255055d91d5cc28e7110a04364effcea0754b6733740f5f9d97ca670022045f1920890a326d3e0df116e9a63a81654878422504aee4fb2320e0187cab47441210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 10300,
+ sats: 10300n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -469,7 +469,7 @@
},
inputScript:
'473044022054a4424f1d4961bff856bf470291f3e78a246be54b40151fe19b8f817ce66eb5022003dc24f1c0478da7b6a919d6326f3e90b30692021fdd564fe874ce2cba5f228841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1740,
+ sats: 1740n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -480,7 +480,7 @@
},
inputScript:
'473044022002b17abe57c58476eee6ab0b5c5584a4d47de9c16479fb810b47e6dac2d76b99022074b1081354bbf873a6fcc5bce55b86a4302175d69fe8513f3381a847128ffe9741210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 10400,
+ sats: 10400n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -491,7 +491,7 @@
},
inputScript:
'483045022100dbf1f4da13943d44bdeb67f3f0e6163b66b704079fc1c5d20898d2e7015e82e6022074f071687a91e4137178baf9b3714465b8a25ba0b65a550df18e581b9ee3e40841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1750,
+ sats: 1750n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -502,7 +502,7 @@
},
inputScript:
'473044022032e325b1b84a427642570d176c4b7b933355f76cd8594c6062ad7bb6e86413ee02204ce9d379df347aea67c8816efb7a17751af36270fe5a70e3686abc8e467d3e4841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1760,
+ sats: 1760n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -513,7 +513,7 @@
},
inputScript:
'483045022100a998ba1209c7ef1e87b4a1648fd284667ca32bd68568cfd45e4df738245c50fe022053d4429b72b5ce5466d138444ad947cfa249dd34479102f614a0591a35274c7041210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 10500,
+ sats: 10500n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -524,7 +524,7 @@
},
inputScript:
'473044022036b78d4f903c169b959cf8555e3f62e5a6772810cd4bc2215eb47e8a0352bf5f0220790a9ab0d9d84880c8eee946374958319c279bc0e5c284f730537741b51a040141210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 10600,
+ sats: 10600n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -535,7 +535,7 @@
},
inputScript:
'4730440220331668fb7d8134ff3025fa81631608319ab89b1f233559b44de945673b9d0d5702207df6f50387253b6083945589f731e7d3bfb11219608199f92165570a57774a5241210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1770,
+ sats: 1770n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -546,7 +546,7 @@
},
inputScript:
'483045022100b9cf245ee16d20476f59e74b3fed0f1e23bbd06e4f935f1ff57a53ef8d2d4e4602205a398f4fbf620a93ea358b9156b89219fd3b8aa94d3973bb678350cc79f3867b41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1780,
+ sats: 1780n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -557,7 +557,7 @@
},
inputScript:
'483045022100fa419d0c299883aa3e006d928401948ae2a1077b37e4357f959b4bf9cb7784a102202975313fbf80afc577a9ed7cbcb17de4d10f91a86a29406b3621f20c5032504d41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1790,
+ sats: 1790n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -568,7 +568,7 @@
},
inputScript:
'483045022100d0931b5d01854387e0911ff2c7f8c4198f79ca87457ef163b9a940000d5ae5d00220601c1ae5be7b78283c6a2f7f8e04d7e9b5db5be3f8688abdd80180bff98c3fb841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1800,
+ sats: 1800n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -579,7 +579,7 @@
},
inputScript:
'47304402207b7856e4f0bc77d616d2641a3ff5e6efc9052aa2d986831ba5348764b479e8f802202f0e8bedaf8579b3444edaca07e6e1221aa664091725c981cc84e36224f9221c41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 19000,
+ sats: 19000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -590,7 +590,7 @@
},
inputScript:
'47304402200109e9bd05b5a4a8c909bf45b0e70f8837d68f65441ea9e1427b9beb0b0b4b4d02200ef92bd399cb64a51e029973d06a10865cef82fd4570e75f94c4ec20d59d2e5941210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 10100,
+ sats: 10100n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -601,7 +601,7 @@
},
inputScript:
'473044022074286c4bbe7c2c93ff9530b0388614e4c63646ed6c6401bf28381b55d27bbf6f02202010f3c4ea6f77209c5f8db2b61f517dfb6274d7c9592b1326a149b5fe82f60741210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1300,
+ sats: 1300n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -612,7 +612,7 @@
},
inputScript:
'483045022100d68f868717064787cb0dfd474a1260a270580ccf9f2fb192a6f6252a673e8728022040a09caf1c71f6d6b8f7c1056bf17563cd5f2f66e12aafb58f014ea9b6c683ea41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1310,
+ sats: 1310n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -623,7 +623,7 @@
},
inputScript:
'47304402201c9e473a550660279b4a57bd0c6b2ba5722e8f52759707201684487bc22115f202200725266680f79b40a3b651826b2c2717576d16e1ca353970fe6ccdc00db66bb741210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1320,
+ sats: 1320n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -634,7 +634,7 @@
},
inputScript:
'47304402200b3d5b5c0e2efa3e34a4d766e8a9e627875dd118684c18b3dd3f36985a7a0dd8022021f2431a17398f6b74aa617f2b9591bffd33039da7bc618b67ae8cbf90a6f16141210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1330,
+ sats: 1330n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -645,7 +645,7 @@
},
inputScript:
'473044022045f73a617b6b133bc4614a27a35f3951226fef4eaf112a71ec91b302fb275ecd02205c67a423772b71000f4d58f76f626b84b81f63428cd8ff1e1e42ee3343e286c241210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1340,
+ sats: 1340n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -656,7 +656,7 @@
},
inputScript:
'483045022100fee6677a8eafd856c729ee989ee3550e64477396104b70ea9ac2fdf3a495536c0220786c38930ffd1aa4e987a70ea3769e4e50b136d1bc4e7dc5e3921a09df9c0da641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1350,
+ sats: 1350n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -667,7 +667,7 @@
},
inputScript:
'483045022100de880611d05e9cdb7f9b6a08ba2bbcf335c5d79206dcb8593eb8bf2a6023a9d0022061bbaded68bb6ab1db579b7e1220b98910b8e3af18d2cb982bcc649934073ed841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1360,
+ sats: 1360n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -678,7 +678,7 @@
},
inputScript:
'47304402204a3ebd83e2a10d5b51afb24b27cb85f52119fc302e7c89c7f252fe401b6f217102203ac4c2fb2ac56dc72802a40e97a0513511ab3115077ba2a0fb5c92238424a8b941210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1370,
+ sats: 1370n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -689,7 +689,7 @@
},
inputScript:
'483045022100f97e3aa523d9b9569742e617f8d57d3d62cb7fcd8dddefba84ad6d8f6c8e3ca902206539749e1968e49e350863841ecfc6af6e3e557dac1943c921d0d1ce51861fae41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1380,
+ sats: 1380n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -700,7 +700,7 @@
},
inputScript:
'483045022100d12b94da2836686007dd146fd254873cacf48ca4f8cb373ccfb55586a3be263a02206efc1857eb662b3c68493e3106c0124d5066dcb08f6c172facb9416a3cca1e9441210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1390,
+ sats: 1390n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -711,7 +711,7 @@
},
inputScript:
'473044022070bf0c9e56991256f11af9522601a4b6721946a94c155df1272088374da8506e0220208552f1cc140b6fc45b0de7658f4b5393539dedcc124f2d5a23ce7efe020d2741210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1400,
+ sats: 1400n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -722,7 +722,7 @@
},
inputScript:
'483045022100f9d16180de35103075259edad7eb0185a2c679ee74ee4527c3299cbf2b1235db022035f5d60d75360a1f5b492ac59666da305bc833c15690a48712bfd3bd07108cad41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1400,
+ sats: 10400n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -733,7 +733,7 @@
},
inputScript:
'47304402203c3fe1d67fe2a126f69ed9b369ca9e6278c14579284c96beaefc6565e8a95d62022066709c55382ea723c0d30cc3f7b7c18fa3ff919b273859deb7b8849838c0e65141210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1410,
+ sats: 1410n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -744,7 +744,7 @@
},
inputScript:
'483045022100f04a8c5971377ef3657ad24cbd1153ee54a4eab0d5c70a1eecd4b9a6d26b82f702205c8856e60ea4c94439dd2ba6c1ec44bdd62b6d10c3e0aa0e338ced4e3b273d8841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1420,
+ sats: 1420n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -755,7 +755,7 @@
},
inputScript:
'473044022002dfc8134bccd2db489c16d80b96a1bb0388c65e2581ed9d9eee6e33612be4d7022036e6f7ffc27daf2d5bed23bf56fdd77b885ea43a5920e33556076efdc78a05d541210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1430,
+ sats: 1430n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -766,7 +766,7 @@
},
inputScript:
'473044022036c81f11d312ee072977a5d625b68fa09db4499d33c94274bac2a146f69f651202202d2f02c76bc1aeb02c2756c84ba81a878b652384cf669831e81aa24f816a659741210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1440,
+ sats: 1440n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -777,7 +777,7 @@
},
inputScript:
'47304402206c67d37becfb94ecdc2bcbf374348934c131555cfdd5b78db65c293ff074d7ec022005e0a2467ef9e313916e00a5e9fa34482f37d4bed0a13983bcf4b54456ff8d9a41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1460,
+ sats: 1460n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -788,7 +788,7 @@
},
inputScript:
'47304402205f99486ccb64ba693115f1e5f5e73f05876c5b757b75641c02cb7c02c09da52c0220383f3629ded0f4c8e8b78607b5374a5cd7758f355a34fecff7855540e96e4ca141210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1470,
+ sats: 1470n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -799,7 +799,7 @@
},
inputScript:
'47304402204721a1f70e31df19d3c5975adf262edfb9a25cdc6eac938c910f6ad3e188ad1d02201c0b4dc4ef5851cd8d9d907c8d2876c1cbf585efd7c48b03e89bccda176591e641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1480,
+ sats: 1480n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -810,7 +810,7 @@
},
inputScript:
'473044022023aae7ed74bfaa0f38b58c0ec26a1b5d88ac70cea251cb13dac977b6844c10c902203aabd4dd8740c62e4b01ac88d81f8f70495dc6ee83f610534ecfd098a90d016f41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1490,
+ sats: 1490n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -821,7 +821,7 @@
},
inputScript:
'47304402207db7b7e0e5d41bcf0f8af3a4101589a1327d0a497fd4a7ce6399c4085e6ce2d102205143a27f8c75763c10e81355e6dd9c18eb50cf107124d58e8093b750d69cca5e41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1490,
+ sats: 1490n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -832,7 +832,7 @@
},
inputScript:
'473044022028c3bd40e487a4f1663f019ae2954d7e3f9b8420a08c487c1410702b66d56e7b022031a1b01ce7f42c910574facf1031fada94eac2ab1d8edfb5346ee9ad2b2831f641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1500,
+ sats: 1500n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -843,7 +843,7 @@
},
inputScript:
'47304402206f44301ddf80d818fd9db6a2c7e0ab65c7589022b2aead2178f3982858a03fca02201b6374e8314cc2a79187309c7b781030ef8b00595f0ba2cfe5da650c6216d73541210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1510,
+ sats: 1510n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -854,7 +854,7 @@
},
inputScript:
'47304402206c91250082b80ad9859831c1b61bc0dafb3b0da6639bb862d0540c69e9576d6402201a6cfb3e21ae0f9e67e9e7ebc3bdf764ade2d3278b5fa21fabfc4c8738f234da41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1520,
+ sats: 1520n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -865,7 +865,7 @@
},
inputScript:
'47304402204a2d7e81abd32099a0dfeeda11a6c05cc696108acc145d92c5d5c496f0b69307022022105ac287550d8f33ba25b7206eabf5807d8bb4d2051dcc307b86b9bc6dfc3741210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1530,
+ sats: 1530n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -876,7 +876,7 @@
},
inputScript:
'4730440220677784f32681855d38b38e5a43e2bc0d2fec47e622c78b717efcb2d0def0f3ad022010af29a7218860ee973292c24e0281db73aca0b6861afcea3eb82f4325cb279141210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1530,
+ sats: 1530n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -887,7 +887,7 @@
},
inputScript:
'4730440220174327eb6d54456dc744b807fd4b76f233aa1fa17b1e7709bd1c23221d9191dc02205af7d5a97a85b14282a5e4c138ec6c7d0f9ec220b194c67dedf3e5d15da7550d41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1540,
+ sats: 1540n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -898,7 +898,7 @@
},
inputScript:
'483045022100f41eab18eb3100bbcc2041244f863b4618bd2152ae86b11eb16e4978165c23cd022015d49a864cb1835030f232d9467c8042bc27d9eaff50db771effe88fdca885d841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1550,
+ sats: 1550n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -909,7 +909,7 @@
},
inputScript:
'483045022100e611405a361b82c86bc58f544314e0b3f0eddd3217d2ffcfa62ab5810584948e02202bc7b9a3ac21bf9f0804bb9e94987136043cf66d0740ba48ccdc165ec2b1f37f41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1560,
+ sats: 1560n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -920,7 +920,7 @@
},
inputScript:
'473044022031073ca855dbd63f2e8d5424be78781b5088cc73cb338d5a62290475c6091be302205788fb4ef343398248825c0301a7c74e52272a495bd1051eb01aca280b37567c41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1570,
+ sats: 1570n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -931,7 +931,7 @@
},
inputScript:
'4730440220314798dbb0b3170520e392009a8634faf1bdd4f32a6e08d769f335432a1afcad02207048da8b93fb8aa910357a915fbc7fe468f17f407a9140b25bb1a1dae1535dc641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1580,
+ sats: 1580n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -942,7 +942,7 @@
},
inputScript:
'473044022011b0ed47dddc3a82ed31b1a18ab550bb844d78ef239a09157d1f20f9ddb30f3e02205511a9218c18cc6e638831dd0230262d1859d2c228104fead6f4d95a6c0bde3641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1590,
+ sats: 1590n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -953,7 +953,7 @@
},
inputScript:
'483045022100f5487c67b17e8fa8a4a5534258dceb5cdefd5a076c0ad429f11701685a3995fb02201c2b53e2acb4b4fe99db0c8ce407f65ca7aa57084c0d1b286b9eb928cdc9123e41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1600,
+ sats: 1600n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -964,7 +964,7 @@
},
inputScript:
'47304402200299fd809bea50ff28accd671257e1a85d1b289c1f8db5e4915734deae05d817022076ff59c2fb424d488591689f25ceb7d51053a8aec040a456b6422a5e90bb788041210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1610,
+ sats: 1610n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -975,7 +975,7 @@
},
inputScript:
'483045022100e16a4ecbbf8ec11af5f7dbb43522b333b881fe964055e0589d1f56b4753b29b702202aeda60ed547f95c502c2ec635cf3725b86560adca1a650cfb19b2587e53368e41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1620,
+ sats: 1620n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -986,7 +986,7 @@
},
inputScript:
'47304402203d7af9cbcd91ec8bec60c27decae42ad6048a659052f160ea6b135b267bc76d102202d5a8f3e1d360b22173aca32ebc16a436f23489ec2be46afe9c81cf3b14ac5d641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1630,
+ sats: 1630n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -997,7 +997,7 @@
},
inputScript:
'483045022100c55804d4f129b6f7a6765469ebf66144a9f64752e3e40b3b6a6ba11aae0071930220625ed9c4b840159b8bc81bebf91db15887beb1aa55a3ac0b0d2f1627dba6f0d441210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1630,
+ sats: 1630n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1008,7 +1008,7 @@
},
inputScript:
'4730440220029166621cd321c350153116103865bc42f1f84d95522533cc93d6bd02953c7b02201bb3a9f3912b88d575a1e3d60e3689d2779132fa6b3268bfbfce5c1998e652d641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1640,
+ sats: 1640n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1019,7 +1019,7 @@
},
inputScript:
'473044022017bca7479b1e67405819a96478417181e9b62a6d126b29e097de4661cc01629402205e7a76e2745b2f092a94e103655927c0f081c4b5b46abfb7d719ff1336bf97ac41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1650,
+ sats: 1650n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1030,7 +1030,7 @@
},
inputScript:
'483045022100bb284a549b6ff618fa6d485297293192fde39e2665593a11e5a0865654741f5e02206a445415ed15f8ecbae5d6d90fd47ff0ff541a713521cc128a4e4b609851624141210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1660,
+ sats: 1660n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1041,7 +1041,7 @@
},
inputScript:
'4830450221008f4462e27887f6a57d7068252feeb77119b757f6c5c86847f0b99052c43dd32d02203a9b59a4fbe1a074044da61d880cf10ed81cad33cae40004640c880c55233f0c41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1670,
+ sats: 1670n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1052,7 +1052,7 @@
},
inputScript:
'4730440220272bc400f151d18d0d5f19fff1c247ad1a5d7d215f5bd238513b4b6b9caf8cd302201d672f7d18e594087ec6b24e4aface500cb20ef09de8f765a87e7b15f3cd741441210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1680,
+ sats: 1680n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1063,7 +1063,7 @@
},
inputScript:
'4730440220028e93a9d587108919a5219370ab1760a87314da7198d77067b1f042545179d702204f49541731be881e8fc586bc457031ec4363f7a71e9ed7d49f9b7b26116c76b041210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 10000,
+ sats: 10000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1074,7 +1074,7 @@
},
inputScript:
'483045022100dd8da977abf1b2826fe8df7754dd03a7602eb131aeeb64bfe40113ee33154c4a022012ac8c25d1e089714104cf0867b818b959688ef83f446ecbafa095e51b3a7d2241210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 11000,
+ sats: 11000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1085,7 +1085,7 @@
},
inputScript:
'47304402201e7c599f2041f04b6aac329203a5776b71abd45b09963156e35551c1b7d837540220413acc322536219b7235235f9c12b0b2daa0494b5a72cc516f746605139012e841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 12000,
+ sats: 12000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1096,7 +1096,7 @@
},
inputScript:
'483045022100a0f0fd95a5bdf41c10f295ea1705792e2301af0e9c81bf5c018dd1e9c196194202207b783ef3aed112c5e3510c541bfd7b216dc89cc7b4de754147b9f0039f65e0e241210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 13000,
+ sats: 13000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1107,7 +1107,7 @@
},
inputScript:
'4830450221008b4edfa0cda2c59a36fa189564144247b731938564f462bff9453f1c8db1ad7002206d3c553fec8fd17365ccb4fef8bb724cdad2de431e14306ca8695632001c3d7b41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 14000,
+ sats: 14000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1118,7 +1118,7 @@
},
inputScript:
'4830450221009a0877791357afbc2aecb9788acbb3ac10627ddfd29a5697a98fb3a1b6a3f59d022045682951b4ff2fa3aa76a332c6bb713df5fa2561da39eebc79bd8ef28ccac0ca41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 15000,
+ sats: 15000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1129,7 +1129,7 @@
},
inputScript:
'483045022100c46d94ce3a63875aed32f0185494f45f315d52a3ddc2ef21032d0b94ffb0ec8702200c50117154f3cdf5a824699812fdd96bff534bf30391391ec36d7bf2da834e4d41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 16000,
+ sats: 16000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1140,7 +1140,7 @@
},
inputScript:
'4730440220775b873f49bbef953c2ea146b737db327f615cb75698b438c9534cb891a8e5d30220499cde73bcb63273a756c733819108d0684fb7822e3c6e754d7b0bb55d448d7c41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 17000,
+ sats: 17000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1151,7 +1151,7 @@
},
inputScript:
'47304402207b3eaac1b30ae9f6ec09195189bf5d9c15962c84f76ece7f43f17412face37600220289cc651258b277bb94b70eba03560f464f4746bd0ec70d12444f414aabd4c7b41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 18000,
+ sats: 18000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1162,7 +1162,7 @@
},
inputScript:
'473044022036685cfbdb4791ae36d3c09e8af109787cfbda5c2348408a188fea723c418e4c0220765019480f691fef4ca4a32f3069dc9e4da797eff69cd58c02184fab0b66270641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1000,
+ sats: 1000n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1173,7 +1173,7 @@
},
inputScript:
'47304402202e68351ea3f61736fca1c0fd4a627b26de8188c6dd70ddb780d63596a70ea52702204d42610d86a0bf6bd887ff640888c7961e5dd1d24cd00fef3b5210fa2127c17c41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1010,
+ sats: 1010n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1184,7 +1184,7 @@
},
inputScript:
'473044022051dd5d93afa70a9cf86465b14fbea941ed68fb11faa766174117d81ccc3ef9390220574c23b8b1171e1d802038cf85da661b8fe47ccd7342cafa1174d1c92ad839c941210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1020,
+ sats: 1020n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1195,7 +1195,7 @@
},
inputScript:
'4730440220653b3a3a317288b79e6dfca0e2d9374f0bcc600d173b1114a8cadaff979f09e102207618e87419432b44bdef0c912c2e123af5c2bc91a54783a1d95b6f53dbef97c641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1030,
+ sats: 1030n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1206,7 +1206,7 @@
},
inputScript:
'47304402206f3b2a887c702af71926ae282f35ec51908965403e4416988a4b9173a0b1328802206a5ef00bb0e2b4d2707a12535bc29d140abd7176f4b13933987e7afd48d9a51641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1040,
+ sats: 1040n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1217,7 +1217,7 @@
},
inputScript:
'473044022062846c2456e37ea475b0b08e8976005eafb2463984fa2918500256741e3e4719022018807cf18c6edb8bd1e7dbc25cd870356cbf99aa959f9838c863c566c3da135741210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1050,
+ sats: 1050n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1228,7 +1228,7 @@
},
inputScript:
'483045022100cb00c19e384743a9674be6a2551318ce7a9bd2be934f3bf934cc75cb5f75f05902207a6b72b6eca13110cde57e8fdb91e4182a1b54fcd3b3b304f0e52ba23380370c41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1070,
+ sats: 1070n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1239,7 +1239,7 @@
},
inputScript:
'4730440220524942fdddd3d26eca9400df9cbaa485fb06e19fd0da7a5d001923236fd77e1102206e2677b2e0a6d960403de35b6ff3e29f54d5aac19bdee1e4aaaca66cb28bc39241210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1090,
+ sats: 1090n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1250,7 +1250,7 @@
},
inputScript:
'483045022100c935a7daddfeb7f9fad0f5478a870ad2012d8b72ad214f108d7e28be473249da022074f09885973691682bfd349078a24df60bec2d03548ecb234157681b1340282141210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1100,
+ sats: 1100n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1261,7 +1261,7 @@
},
inputScript:
'473044022066a30d4dd0c0afc7252354b5c97feed9645806935af42d1431e3a8c0417d400a0220368299fcf1e8414c88ec203b6883ce76c118287c62efd6659fee00c36eeb062941210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1110,
+ sats: 1110n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1272,7 +1272,7 @@
},
inputScript:
'473044022021db4e6200b3abba9c317cc7be2e05a08a3c40c86e915af33eb644f5fd4d845c022071782dc15ef37b640cc5bcc35fef83e2f8a85e2a9aee4ddadf2a402a005d8a2641210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1120,
+ sats: 1120n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1283,7 +1283,7 @@
},
inputScript:
'47304402206caba28761baa160e7112ff94bf5cac7425c0ea57a8ed4efa919921bcdf4001c02203c1b883c584a7fc97e8597aa88d84dff0b9376bfb15eb345b87cd52649eeab8d41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1130,
+ sats: 1130n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1294,7 +1294,7 @@
},
inputScript:
'47304402200aa6957eed0466618b9b5dbee92caa51d21e90ecfd3f31a5546377341bebc3b102202b9be42cb6ce493523308db83c4803ca4a64f0f3713c5e2ff532b9cfbf5a0ccf41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1140,
+ sats: 1140n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1305,7 +1305,7 @@
},
inputScript:
'483045022100ee2f163c6522caa388c6f59a54bda5475a17674349ba8b4bddf423571485e6e602207637b549e89ffc21649995d65af5c96157cd4d47dc0fcd49cec0f6649e6b3c2241210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1150,
+ sats: 1150n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1316,7 +1316,7 @@
},
inputScript:
'483045022100a5b96373c284c03da571591f901679616b30c513e80f361748176d08ef77fa4902204dd52e876472ade12f73cd448afbe96850e5a5226e3c4e3adf9b6b091d92e09b41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1160,
+ sats: 1160n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1327,7 +1327,7 @@
},
inputScript:
'483045022100a25082572444b1014ff7af10915c01427ed9f048d15902247d9e6209edbf5c2f0220753d769fb4d226f9b5d867c6086b47338c128acff46f493984518cb165fa401741210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1170,
+ sats: 1170n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1338,7 +1338,7 @@
},
inputScript:
'473044022037622b8f1248a78aacc47c58398bac1af29ad190e74d9cbdebd03641011c7c9b022033ea619ebb734e31a683b32e87fe50f9f2d18c2e3e457dd7b1f754840b00ddf841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1180,
+ sats: 1180n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1349,7 +1349,7 @@
},
inputScript:
'483045022100a45102a6ceaef1921b17768f4cd7a09bd4abf0ddbd9296f1375b71057ba0a019022078325fa1c5cd2b4f2dcf140fdb7ff1cfab203302572a531447dbaa6f2d0bd3d341210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1190,
+ sats: 1190n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1360,7 +1360,7 @@
},
inputScript:
'483045022100d15593b29f5a6edf131b4b8febb5abf1179619533a12c8d7ce6272d0a79f857a02205948d8e23d7d01cf07cd9f1b6ebda9ba6e3228e6ad051c13f850e08dbe67039341210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1200,
+ sats: 1200n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1371,7 +1371,7 @@
},
inputScript:
'47304402204a5c6c51eeaec4eb467e735cb5dea54048060eaaf7f22ba5139804378a95cd610220447f03bb9e338b9c220f74d154b974e751cef86fce7c7093bf48af8b514e22d841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1210,
+ sats: 1210n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1382,7 +1382,7 @@
},
inputScript:
'473044022031c3be64ae92cf33f817d3c54b544c00c302a840e697d142c0839b44bcda3afb022073a96837c3e4d46fbba14685f846356e7af43596b1f24bb661b7fb3e4511718e41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1220,
+ sats: 1220n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1393,7 +1393,7 @@
},
inputScript:
'4730440220280487685077040632e224aa4a9c2eb1215d4c6b3b601feb4778915e033b87c702200bf2e0f3ca0a6b40e9c0d8e50e345844f5ec925045534b4bc504edded4eabf8841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1230,
+ sats: 1230n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1404,7 +1404,7 @@
},
inputScript:
'47304402204629f075e2a3a3b38c64d427d4105a0e14398ff14627b5b08a9e361520aa000102205b0949d5c70798a0a90e7f2c98c07c6dfa5c74031a0330580d0a8fa45f84e87841210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1240,
+ sats: 1240n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1415,7 +1415,7 @@
},
inputScript:
'473044022034ff428fcab08a1a257038df2d7173dab09317428b01281b3f14a78824d227f5022038691625f7cf77d5df7f18fa4e40e2d648e5cf14703dbd4377c6dbcbd8e66c1541210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1250,
+ sats: 1250n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1426,7 +1426,7 @@
},
inputScript:
'47304402203eee679ee4dffc56b4e203711bf35f328daec653c7d333f4d52413b27da885fc022044399bfaa57c53e8b7d092b9417e9ba9902f76dec9e5e6743d4c02e21d6f935b41210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1260,
+ sats: 1260n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1437,7 +1437,7 @@
},
inputScript:
'47304402202406f36d5469f515aaeb96b356beffa84c6fb9fca3d2d828acc6c375470e201d0220264d42f87c1a2e132e1dfc3e02950daa6ef95d2cf9d5615a2de5e8bceb98794441210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1270,
+ sats: 1270n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
@@ -1448,19 +1448,19 @@
},
inputScript:
'48304502210089d9ffcc120d48dda34e8ad7d0bbe73e26a765a2207f650a07caf68e62503de702207bebd26030f2d143eaecc19b810691d1057b1035cd7342408a13db68fe8ad52241210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 1270,
+ sats: 1270n,
sequenceNo: 4294967295,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e45534953034354500f436173682054616220506f696e74731768747470733a2f2f636173687461626170702e636f6d2f4c0001090102080de0b6b3a7640000',
},
{
- value: 546,
+ sats: 546n,
outputScript: '76a91419884c453167cf3011a3363b4b1ebd926bde059f88ac',
token: {
tokenId:
@@ -1470,7 +1470,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000000000000',
+ atoms: 1000000000000000000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1480,7 +1480,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript: '76a91419884c453167cf3011a3363b4b1ebd926bde059f88ac',
token: {
tokenId:
@@ -1490,7 +1490,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
@@ -1500,7 +1500,7 @@
},
},
{
- value: 91405165,
+ sats: 91405165n,
outputScript: '76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
spentBy: {
txid: 'ff46ab7730194691b89301e7d5d4805c304db83522e8aa4e5fa8b592c8aecf41',
@@ -1525,8 +1525,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
diff --git a/cashtab/src/airdrop/index.ts b/cashtab/src/airdrop/index.ts
--- a/cashtab/src/airdrop/index.ts
+++ b/cashtab/src/airdrop/index.ts
@@ -39,7 +39,7 @@
const agoraHolders = new Map();
for (const offer of activeOffers) {
const offerInfo = offer.variant.params;
- const offeredTokens = BigInt(offer.token.amount);
+ const offeredTokens = offer.token.atoms;
const pk =
offerInfo instanceof AgoraPartial
? offerInfo.makerPk
@@ -92,9 +92,9 @@
continue;
}
- const tokenSatoshis = utxo.token.amount;
+ const tokenSatoshis = utxo.token.atoms;
- if (tokenSatoshis === '0') {
+ if (tokenSatoshis === 0n) {
// We do not add a 0-qty holder
// this happens for a holder who e.g. only holds a mint baton
continue;
@@ -104,10 +104,10 @@
const thisHolderBalance = p2pkhHolders.get(script);
if (typeof thisHolderBalance === 'undefined') {
// Initialize a p2pkh holder
- p2pkhHolders.set(script, BigInt(tokenSatoshis));
+ p2pkhHolders.set(script, tokenSatoshis);
} else {
// Increment an agora holder
- p2pkhHolders.set(script, thisHolderBalance + BigInt(tokenSatoshis));
+ p2pkhHolders.set(script, thisHolderBalance + tokenSatoshis);
}
}
return p2pkhHolders;
diff --git a/cashtab/src/chronik/__tests__/index.test.js b/cashtab/src/chronik/__tests__/index.test.js
--- a/cashtab/src/chronik/__tests__/index.test.js
+++ b/cashtab/src/chronik/__tests__/index.test.js
@@ -203,7 +203,7 @@
},
blockHeight: 836457,
isCoinbase: false,
- value: 1000,
+ sats: 1000n,
isFinal: true,
token: {
tokenId:
@@ -213,7 +213,7 @@
type: 'ALP_TOKEN_TYPE_UNKNOWN',
number: 255,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: false,
},
path: 1899,
@@ -249,13 +249,13 @@
// Set tx history for all paths
const mockedChronik = new MockChronikClient();
- mockedChronik.setUtxosByAddress(defaultAddress, [{ value: 546 }]);
- mockedChronik.setUtxosByAddress(secondaryAddress, [{ value: 546 }]);
+ mockedChronik.setUtxosByAddress(defaultAddress, [{ sats: 546n }]);
+ mockedChronik.setUtxosByAddress(secondaryAddress, [{ sats: 546n }]);
expect(
await getUtxos(mockedChronik, mockTxHistoryWallet),
).toStrictEqual([
- { value: 546, path: 1899 },
- { value: 546, path: 145 },
+ { sats: 546n, path: 1899 },
+ { sats: 546n, path: 145 },
]);
});
it('We can get and parse tx history from a multi-path wallet, and update the token cache at the same time', async () => {
diff --git a/cashtab/src/chronik/fixtures/chronikUtxos.js b/cashtab/src/chronik/fixtures/chronikUtxos.js
--- a/cashtab/src/chronik/fixtures/chronikUtxos.js
+++ b/cashtab/src/chronik/fixtures/chronikUtxos.js
@@ -10,9 +10,9 @@
},
blockHeight: 755309,
isCoinbase: false,
- value: 12233856,
address: 'ecash:qz5lf9pxde9neq3hzte8mmwts03sktl9numh06k74t',
isFinal: true,
+ sats: 12233856n,
},
{
outpoint: {
@@ -21,7 +21,6 @@
},
blockHeight: 680782,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -32,9 +31,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -43,9 +43,9 @@
},
blockHeight: 680784,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 546n,
},
{
outpoint: {
@@ -54,9 +54,9 @@
},
blockHeight: 680784,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 546n,
},
{
outpoint: {
@@ -65,7 +65,6 @@
},
blockHeight: 680784,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -76,9 +75,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -87,7 +87,6 @@
},
blockHeight: 681190,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -98,9 +97,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -109,7 +109,6 @@
},
blockHeight: 681191,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -120,9 +119,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -131,7 +131,6 @@
},
blockHeight: 685181,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -142,9 +141,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -153,7 +153,6 @@
},
blockHeight: 687240,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -164,9 +163,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '99999999',
isMintBaton: false,
+ atoms: 99999999n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -175,7 +175,6 @@
},
blockHeight: 692599,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -186,9 +185,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '120000000',
isMintBaton: false,
+ atoms: 120000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -197,7 +197,6 @@
},
blockHeight: 692599,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -208,9 +207,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '120000000',
isMintBaton: false,
+ atoms: 120000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -219,7 +219,6 @@
},
blockHeight: 700185,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -230,9 +229,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5500000',
isMintBaton: false,
+ atoms: 5500000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -241,7 +241,6 @@
},
blockHeight: 700572,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -252,9 +251,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '990',
isMintBaton: false,
+ atoms: 990n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -263,7 +263,6 @@
},
blockHeight: 700677,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -274,9 +273,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '333',
isMintBaton: false,
+ atoms: 333n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -285,7 +285,6 @@
},
blockHeight: 700915,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -296,9 +295,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999975',
isMintBaton: false,
+ atoms: 999975n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -307,7 +307,6 @@
},
blockHeight: 701079,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -318,9 +317,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -329,7 +329,6 @@
},
blockHeight: 701079,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -340,9 +339,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -351,7 +351,6 @@
},
blockHeight: 701079,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -362,9 +361,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -373,7 +373,6 @@
},
blockHeight: 701079,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -384,9 +383,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -395,7 +395,6 @@
},
blockHeight: 701079,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -406,9 +405,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -417,7 +417,6 @@
},
blockHeight: 701189,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -428,9 +427,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -439,7 +439,6 @@
},
blockHeight: 701189,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -450,9 +449,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -461,7 +461,6 @@
},
blockHeight: 701191,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -472,9 +471,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2000000000',
isMintBaton: false,
+ atoms: 2000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -483,7 +483,6 @@
},
blockHeight: 701194,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -494,9 +493,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000',
isMintBaton: false,
+ atoms: 1000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -505,7 +505,6 @@
},
blockHeight: 701208,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -516,9 +515,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -527,7 +527,6 @@
},
blockHeight: 701211,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -538,9 +537,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '789698951',
isMintBaton: false,
+ atoms: 789698951n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -549,7 +549,6 @@
},
blockHeight: 701211,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -560,9 +559,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000',
isMintBaton: false,
+ atoms: 1000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -571,7 +571,6 @@
},
blockHeight: 701221,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -582,9 +581,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -593,7 +593,6 @@
},
blockHeight: 701223,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -604,9 +603,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9000',
isMintBaton: false,
+ atoms: 9000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -615,7 +615,6 @@
},
blockHeight: 709251,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -626,9 +625,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000',
isMintBaton: false,
+ atoms: 1000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -637,7 +637,6 @@
},
blockHeight: 709259,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -648,9 +647,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -659,7 +659,6 @@
},
blockHeight: 709668,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -670,9 +669,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -681,7 +681,6 @@
},
blockHeight: 710065,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -692,9 +691,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -703,7 +703,6 @@
},
blockHeight: 711227,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -714,9 +713,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '17',
isMintBaton: false,
+ atoms: 17n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -725,7 +725,6 @@
},
blockHeight: 715815,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -736,9 +735,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -747,7 +747,6 @@
},
blockHeight: 715815,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -758,9 +757,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '102',
isMintBaton: false,
+ atoms: 102n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -769,7 +769,6 @@
},
blockHeight: 715816,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -780,9 +779,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '102',
isMintBaton: false,
+ atoms: 102n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -791,7 +791,6 @@
},
blockHeight: 717055,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -802,9 +801,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10',
isMintBaton: false,
+ atoms: 10n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -813,7 +813,6 @@
},
blockHeight: 717824,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -824,9 +823,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
isMintBaton: false,
+ atoms: 10000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -835,7 +835,6 @@
},
blockHeight: 718091,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -846,9 +845,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5235120760000000',
isMintBaton: false,
+ atoms: 5235120760000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -857,7 +857,6 @@
},
blockHeight: 718280,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -868,9 +867,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
isMintBaton: false,
+ atoms: 10000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -879,7 +879,6 @@
},
blockHeight: 718790,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -890,9 +889,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9999999900',
isMintBaton: false,
+ atoms: 9999999900n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -901,7 +901,6 @@
},
blockHeight: 720056,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -912,9 +911,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -923,7 +923,6 @@
},
blockHeight: 720070,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -934,9 +933,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -945,7 +945,6 @@
},
blockHeight: 720070,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -956,9 +955,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -967,7 +967,6 @@
},
blockHeight: 720070,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -978,9 +977,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -989,7 +989,6 @@
},
blockHeight: 720070,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1000,9 +999,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '4',
isMintBaton: false,
+ atoms: 4n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1011,7 +1011,6 @@
},
blockHeight: 720078,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1022,9 +1021,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '55',
isMintBaton: false,
+ atoms: 55n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1033,7 +1033,6 @@
},
blockHeight: 720951,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1044,9 +1043,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '99',
isMintBaton: false,
+ atoms: 99n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1055,7 +1055,6 @@
},
blockHeight: 721083,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1066,9 +1065,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '82',
isMintBaton: false,
+ atoms: 82n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1077,9 +1077,9 @@
},
blockHeight: 724822,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 546n,
},
{
outpoint: {
@@ -1088,9 +1088,9 @@
},
blockHeight: 725143,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 546n,
},
{
outpoint: {
@@ -1099,7 +1099,6 @@
},
blockHeight: 725871,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1110,9 +1109,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '55',
isMintBaton: false,
+ atoms: 55n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1121,7 +1121,6 @@
},
blockHeight: 725882,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1132,9 +1131,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '47800000000',
isMintBaton: false,
+ atoms: 47800000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1143,7 +1143,6 @@
},
blockHeight: 726001,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1154,9 +1153,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '996000',
isMintBaton: false,
+ atoms: 996000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1165,7 +1165,6 @@
},
blockHeight: 726009,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1176,9 +1175,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '69',
isMintBaton: false,
+ atoms: 69n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1187,7 +1187,6 @@
},
blockHeight: 726019,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1198,9 +1197,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999989983',
isMintBaton: false,
+ atoms: 999989983n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1209,7 +1209,6 @@
},
blockHeight: 726053,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1220,9 +1219,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9000',
isMintBaton: false,
+ atoms: 9000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1231,7 +1231,6 @@
},
blockHeight: 726277,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1242,9 +1241,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999888000000000',
isMintBaton: false,
+ atoms: 999888000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1253,7 +1253,6 @@
},
blockHeight: 726809,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1264,9 +1263,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2200',
isMintBaton: false,
+ atoms: 2200n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1275,7 +1275,6 @@
},
blockHeight: 726826,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1286,9 +1285,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1297,7 +1297,6 @@
},
blockHeight: 726826,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1308,9 +1307,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9955000000000',
isMintBaton: false,
+ atoms: 9955000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1319,7 +1319,6 @@
},
blockHeight: 726826,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1330,9 +1329,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1341,7 +1341,6 @@
},
blockHeight: 727176,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1352,9 +1351,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5000',
isMintBaton: false,
+ atoms: 5000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1363,7 +1363,6 @@
},
blockHeight: 728150,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1374,9 +1373,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '6968',
isMintBaton: false,
+ atoms: 6968n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1385,7 +1385,6 @@
},
blockHeight: 728285,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1396,9 +1395,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
+ atoms: 5n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1407,7 +1407,6 @@
},
blockHeight: 728707,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1418,9 +1417,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999999000',
isMintBaton: false,
+ atoms: 999999000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1429,7 +1429,6 @@
},
blockHeight: 728726,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1440,9 +1439,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1700',
isMintBaton: false,
+ atoms: 1700n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1451,9 +1451,9 @@
},
blockHeight: 731918,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 546n,
},
{
outpoint: {
@@ -1462,7 +1462,6 @@
},
blockHeight: 737787,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1473,9 +1472,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '26',
isMintBaton: false,
+ atoms: 26n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1484,7 +1484,6 @@
},
blockHeight: 738246,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1495,9 +1494,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999999900',
isMintBaton: false,
+ atoms: 999999900n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1506,7 +1506,6 @@
},
blockHeight: 738929,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1517,9 +1516,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999897000000000',
isMintBaton: false,
+ atoms: 999897000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1528,9 +1528,9 @@
},
blockHeight: 739911,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -1539,9 +1539,9 @@
},
blockHeight: 740052,
isCoinbase: false,
- value: 600,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 600n,
},
{
outpoint: {
@@ -1550,9 +1550,9 @@
},
blockHeight: 740198,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -1561,9 +1561,9 @@
},
blockHeight: 740198,
isCoinbase: false,
- value: 7700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7700n,
},
{
outpoint: {
@@ -1572,9 +1572,9 @@
},
blockHeight: 740963,
isCoinbase: false,
- value: 700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 700n,
},
{
outpoint: {
@@ -1583,9 +1583,9 @@
},
blockHeight: 740963,
isCoinbase: false,
- value: 1245,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1245n,
},
{
outpoint: {
@@ -1594,9 +1594,9 @@
},
blockHeight: 741057,
isCoinbase: false,
- value: 1700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1700n,
},
{
outpoint: {
@@ -1605,9 +1605,9 @@
},
blockHeight: 741057,
isCoinbase: false,
- value: 800,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 800n,
},
{
outpoint: {
@@ -1616,9 +1616,9 @@
},
blockHeight: 741057,
isCoinbase: false,
- value: 600,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 600n,
},
{
outpoint: {
@@ -1627,9 +1627,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 1100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1100n,
},
{
outpoint: {
@@ -1638,9 +1638,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 6600,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 6600n,
},
{
outpoint: {
@@ -1649,9 +1649,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 1000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1000n,
},
{
outpoint: {
@@ -1660,9 +1660,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 1200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1200n,
},
{
outpoint: {
@@ -1671,9 +1671,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 5500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5500n,
},
{
outpoint: {
@@ -1682,9 +1682,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 23200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 23200n,
},
{
outpoint: {
@@ -1693,9 +1693,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 10100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 10100n,
},
{
outpoint: {
@@ -1704,9 +1704,9 @@
},
blockHeight: 741063,
isCoinbase: false,
- value: 2300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2300n,
},
{
outpoint: {
@@ -1715,9 +1715,9 @@
},
blockHeight: 741063,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -1726,9 +1726,9 @@
},
blockHeight: 741182,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -1737,7 +1737,6 @@
},
blockHeight: 741190,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1748,9 +1747,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '12',
isMintBaton: false,
+ atoms: 12n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1759,7 +1759,6 @@
},
blockHeight: 741195,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1770,9 +1769,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1781,7 +1781,6 @@
},
blockHeight: 741195,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1792,9 +1791,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1803,7 +1803,6 @@
},
blockHeight: 741195,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1814,9 +1813,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1825,7 +1825,6 @@
},
blockHeight: 741197,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1836,9 +1835,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '123456789',
isMintBaton: false,
+ atoms: 123456789n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1847,9 +1847,9 @@
},
blockHeight: 741200,
isCoinbase: false,
- value: 700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 700n,
},
{
outpoint: {
@@ -1858,7 +1858,6 @@
},
blockHeight: 741200,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1869,9 +1868,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100000000',
isMintBaton: false,
+ atoms: 100000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1880,9 +1880,9 @@
},
blockHeight: 741200,
isCoinbase: false,
- value: 800,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 800n,
},
{
outpoint: {
@@ -1891,9 +1891,9 @@
},
blockHeight: 741207,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -1902,9 +1902,9 @@
},
blockHeight: 741208,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -1913,9 +1913,9 @@
},
blockHeight: 741210,
isCoinbase: false,
- value: 2195,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2195n,
},
{
outpoint: {
@@ -1924,9 +1924,9 @@
},
blockHeight: 741769,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -1935,7 +1935,6 @@
},
blockHeight: 741791,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1946,9 +1945,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1957,9 +1957,9 @@
},
blockHeight: 741791,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -1968,7 +1968,6 @@
},
blockHeight: 741791,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -1979,9 +1978,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -1990,7 +1990,6 @@
},
blockHeight: 741796,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2001,9 +2000,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
+ atoms: 5n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2012,7 +2012,6 @@
},
blockHeight: 741796,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2023,9 +2022,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2034,7 +2034,6 @@
},
blockHeight: 741796,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2045,9 +2044,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '7',
isMintBaton: false,
+ atoms: 7n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2056,7 +2056,6 @@
},
blockHeight: 741796,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2067,9 +2066,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '17',
isMintBaton: false,
+ atoms: 17n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2078,7 +2078,6 @@
},
blockHeight: 741797,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2089,9 +2088,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2100,7 +2100,6 @@
},
blockHeight: 741798,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2111,9 +2110,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '11',
isMintBaton: false,
+ atoms: 11n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2122,7 +2122,6 @@
},
blockHeight: 741798,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2133,9 +2132,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2144,9 +2144,9 @@
},
blockHeight: 741799,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -2155,7 +2155,6 @@
},
blockHeight: 741799,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2166,9 +2165,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '33',
isMintBaton: false,
+ atoms: 33n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2177,9 +2177,9 @@
},
blockHeight: 742051,
isCoinbase: false,
- value: 1100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1100n,
},
{
outpoint: {
@@ -2188,9 +2188,9 @@
},
blockHeight: 742051,
isCoinbase: false,
- value: 1200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1200n,
},
{
outpoint: {
@@ -2199,7 +2199,6 @@
},
blockHeight: 742074,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2210,9 +2209,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2221,9 +2221,9 @@
},
blockHeight: 742074,
isCoinbase: false,
- value: 3400,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3400n,
},
{
outpoint: {
@@ -2232,9 +2232,9 @@
},
blockHeight: 742074,
isCoinbase: false,
- value: 3500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3500n,
},
{
outpoint: {
@@ -2243,9 +2243,9 @@
},
blockHeight: 742074,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -2254,7 +2254,6 @@
},
blockHeight: 742075,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2265,9 +2264,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2276,7 +2276,6 @@
},
blockHeight: 742075,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2287,9 +2286,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2298,9 +2298,9 @@
},
blockHeight: 742792,
isCoinbase: false,
- value: 200000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 200000n,
},
{
outpoint: {
@@ -2309,9 +2309,9 @@
},
blockHeight: 742792,
isCoinbase: false,
- value: 100000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 100000n,
},
{
outpoint: {
@@ -2320,9 +2320,9 @@
},
blockHeight: 742796,
isCoinbase: false,
- value: 250000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 250000n,
},
{
outpoint: {
@@ -2331,9 +2331,9 @@
},
blockHeight: 742796,
isCoinbase: false,
- value: 50000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 50000n,
},
{
outpoint: {
@@ -2342,9 +2342,9 @@
},
blockHeight: 742797,
isCoinbase: false,
- value: 250000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 250000n,
},
{
outpoint: {
@@ -2353,9 +2353,9 @@
},
blockHeight: 742799,
isCoinbase: false,
- value: 155500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 155500n,
},
{
outpoint: {
@@ -2364,9 +2364,9 @@
},
blockHeight: 742799,
isCoinbase: false,
- value: 333300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 333300n,
},
{
outpoint: {
@@ -2375,9 +2375,9 @@
},
blockHeight: 742800,
isCoinbase: false,
- value: 333300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 333300n,
},
{
outpoint: {
@@ -2386,9 +2386,9 @@
},
blockHeight: 742800,
isCoinbase: false,
- value: 111100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 111100n,
},
{
outpoint: {
@@ -2397,9 +2397,9 @@
},
blockHeight: 742800,
isCoinbase: false,
- value: 88800,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 88800n,
},
{
outpoint: {
@@ -2408,9 +2408,9 @@
},
blockHeight: 742994,
isCoinbase: false,
- value: 3330,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3330n,
},
{
outpoint: {
@@ -2419,9 +2419,9 @@
},
blockHeight: 742994,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -2430,9 +2430,9 @@
},
blockHeight: 742999,
isCoinbase: false,
- value: 1600,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1600n,
},
{
outpoint: {
@@ -2441,9 +2441,9 @@
},
blockHeight: 743101,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -2452,9 +2452,9 @@
},
blockHeight: 743138,
isCoinbase: false,
- value: 1100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1100n,
},
{
outpoint: {
@@ -2463,9 +2463,9 @@
},
blockHeight: 743158,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -2474,9 +2474,9 @@
},
blockHeight: 743228,
isCoinbase: false,
- value: 3400,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3400n,
},
{
outpoint: {
@@ -2485,9 +2485,9 @@
},
blockHeight: 743228,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -2496,9 +2496,9 @@
},
blockHeight: 743228,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -2507,9 +2507,9 @@
},
blockHeight: 743257,
isCoinbase: false,
- value: 11100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 11100n,
},
{
outpoint: {
@@ -2518,9 +2518,9 @@
},
blockHeight: 743350,
isCoinbase: false,
- value: 1200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1200n,
},
{
outpoint: {
@@ -2529,9 +2529,9 @@
},
blockHeight: 743775,
isCoinbase: false,
- value: 3700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3700n,
},
{
outpoint: {
@@ -2540,9 +2540,9 @@
},
blockHeight: 743782,
isCoinbase: false,
- value: 1700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1700n,
},
{
outpoint: {
@@ -2551,9 +2551,9 @@
},
blockHeight: 743972,
isCoinbase: false,
- value: 7700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7700n,
},
{
outpoint: {
@@ -2562,9 +2562,9 @@
},
blockHeight: 744136,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -2573,9 +2573,9 @@
},
blockHeight: 744138,
isCoinbase: false,
- value: 4200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 4200n,
},
{
outpoint: {
@@ -2584,9 +2584,9 @@
},
blockHeight: 744138,
isCoinbase: false,
- value: 12000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 12000n,
},
{
outpoint: {
@@ -2595,9 +2595,9 @@
},
blockHeight: 744138,
isCoinbase: false,
- value: 12100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 12100n,
},
{
outpoint: {
@@ -2606,9 +2606,9 @@
},
blockHeight: 744841,
isCoinbase: false,
- value: 7700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7700n,
},
{
outpoint: {
@@ -2617,9 +2617,9 @@
},
blockHeight: 744841,
isCoinbase: false,
- value: 700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 700n,
},
{
outpoint: {
@@ -2628,9 +2628,9 @@
},
blockHeight: 745157,
isCoinbase: false,
- value: 3700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3700n,
},
{
outpoint: {
@@ -2639,9 +2639,9 @@
},
blockHeight: 745157,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -2650,9 +2650,9 @@
},
blockHeight: 745158,
isCoinbase: false,
- value: 4200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 4200n,
},
{
outpoint: {
@@ -2661,9 +2661,9 @@
},
blockHeight: 745160,
isCoinbase: false,
- value: 9990,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 9990n,
},
{
outpoint: {
@@ -2672,9 +2672,9 @@
},
blockHeight: 745160,
isCoinbase: false,
- value: 10081,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 10081n,
},
{
outpoint: {
@@ -2683,9 +2683,9 @@
},
blockHeight: 745251,
isCoinbase: false,
- value: 50000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 50000n,
},
{
outpoint: {
@@ -2694,9 +2694,9 @@
},
blockHeight: 745254,
isCoinbase: false,
- value: 55000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 55000n,
},
{
outpoint: {
@@ -2705,9 +2705,9 @@
},
blockHeight: 745275,
isCoinbase: false,
- value: 250779,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 250779n,
},
{
outpoint: {
@@ -2716,9 +2716,9 @@
},
blockHeight: 745520,
isCoinbase: false,
- value: 49400,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 49400n,
},
{
outpoint: {
@@ -2727,9 +2727,9 @@
},
blockHeight: 747209,
isCoinbase: false,
- value: 5500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5500n,
},
{
outpoint: {
@@ -2738,9 +2738,9 @@
},
blockHeight: 747210,
isCoinbase: false,
- value: 5821,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5821n,
},
{
outpoint: {
@@ -2749,9 +2749,9 @@
},
blockHeight: 747210,
isCoinbase: false,
- value: 3500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3500n,
},
{
outpoint: {
@@ -2760,7 +2760,6 @@
},
blockHeight: 747210,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2771,9 +2770,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '107000000000',
isMintBaton: false,
+ atoms: 107000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2782,9 +2782,9 @@
},
blockHeight: 747433,
isCoinbase: false,
- value: 5000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5000n,
},
{
outpoint: {
@@ -2793,9 +2793,9 @@
},
blockHeight: 747433,
isCoinbase: false,
- value: 15000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 15000n,
},
{
outpoint: {
@@ -2804,9 +2804,9 @@
},
blockHeight: 747604,
isCoinbase: false,
- value: 7700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7700n,
},
{
outpoint: {
@@ -2815,9 +2815,9 @@
},
blockHeight: 749030,
isCoinbase: false,
- value: 5500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5500n,
},
{
outpoint: {
@@ -2826,9 +2826,9 @@
},
blockHeight: 753929,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -2837,9 +2837,9 @@
},
blockHeight: 754182,
isCoinbase: false,
- value: 79785,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 79785n,
},
{
outpoint: {
@@ -2848,9 +2848,9 @@
},
blockHeight: 754318,
isCoinbase: false,
- value: 83715,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 83715n,
},
{
outpoint: {
@@ -2859,9 +2859,9 @@
},
blockHeight: 754464,
isCoinbase: false,
- value: 5500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5500n,
},
{
outpoint: {
@@ -2870,9 +2870,9 @@
},
blockHeight: 755028,
isCoinbase: false,
- value: 10000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 10000n,
},
{
outpoint: {
@@ -2881,7 +2881,6 @@
},
blockHeight: 755294,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2892,9 +2891,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '7900000000',
isMintBaton: false,
+ atoms: 7900000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2903,9 +2903,9 @@
},
blockHeight: 755309,
isCoinbase: false,
- value: 7077,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7077n,
},
{
outpoint: {
@@ -2914,9 +2914,9 @@
},
blockHeight: 755325,
isCoinbase: false,
- value: 9145,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 9145n,
},
{
outpoint: {
@@ -2925,7 +2925,6 @@
},
blockHeight: 756151,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2936,9 +2935,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '210000000',
isMintBaton: false,
+ atoms: 210000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2947,7 +2947,6 @@
},
blockHeight: 756151,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -2958,9 +2957,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5400000',
isMintBaton: false,
+ atoms: 5400000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -2969,9 +2969,9 @@
},
blockHeight: 756151,
isCoinbase: false,
- value: 48182,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 48182n,
},
{
outpoint: {
@@ -2980,9 +2980,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 3182,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3182n,
},
{
outpoint: {
@@ -2991,9 +2991,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 39176,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 39176n,
},
{
outpoint: {
@@ -3002,9 +3002,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 48182,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 48182n,
},
{
outpoint: {
@@ -3013,9 +3013,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 6434,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 6434n,
},
{
outpoint: {
@@ -3024,9 +3024,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 600155,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 600155n,
},
{
outpoint: {
@@ -3035,9 +3035,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 1046,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1046n,
},
{
outpoint: {
@@ -3046,9 +3046,9 @@
},
blockHeight: 756159,
isCoinbase: false,
- value: 1155,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1155n,
},
{
outpoint: {
@@ -3057,9 +3057,9 @@
},
blockHeight: 756224,
isCoinbase: false,
- value: 1482,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1482n,
},
{
outpoint: {
@@ -3068,9 +3068,9 @@
},
blockHeight: 756225,
isCoinbase: false,
- value: 54429518,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 54429518n,
},
{
outpoint: {
@@ -3079,9 +3079,9 @@
},
blockHeight: 756229,
isCoinbase: false,
- value: 7255,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7255n,
},
{
outpoint: {
@@ -3090,7 +3090,6 @@
},
blockHeight: 756229,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3101,9 +3100,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '117',
isMintBaton: false,
+ atoms: 117n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3112,9 +3112,9 @@
},
blockHeight: 756229,
isCoinbase: false,
- value: 2255,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2255n,
},
];
@@ -3127,7 +3127,6 @@
},
blockHeight: 680782,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3138,9 +3137,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3149,7 +3149,6 @@
},
blockHeight: 680784,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3160,9 +3159,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3171,7 +3171,6 @@
},
blockHeight: 681190,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3182,9 +3181,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3193,7 +3193,6 @@
},
blockHeight: 681191,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3204,9 +3203,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3215,7 +3215,6 @@
},
blockHeight: 685181,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3226,9 +3225,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3237,7 +3237,6 @@
},
blockHeight: 687240,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3248,9 +3247,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '99999999',
isMintBaton: false,
+ atoms: 99999999n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3259,7 +3259,6 @@
},
blockHeight: 692599,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3270,9 +3269,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '120000000',
isMintBaton: false,
+ atoms: 120000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3281,7 +3281,6 @@
},
blockHeight: 692599,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3292,9 +3291,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '120000000',
isMintBaton: false,
+ atoms: 120000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3303,7 +3303,6 @@
},
blockHeight: 700185,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3314,9 +3313,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5500000',
isMintBaton: false,
+ atoms: 5500000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3325,7 +3325,6 @@
},
blockHeight: 700572,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3336,9 +3335,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '990',
isMintBaton: false,
+ atoms: 990n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3347,7 +3347,6 @@
},
blockHeight: 700677,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3358,9 +3357,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '333',
isMintBaton: false,
+ atoms: 333n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3369,7 +3369,6 @@
},
blockHeight: 700915,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3380,9 +3379,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999975',
isMintBaton: false,
+ atoms: 999975n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3391,7 +3391,6 @@
},
blockHeight: 701079,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3402,9 +3401,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3413,7 +3413,6 @@
},
blockHeight: 701079,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3424,9 +3423,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3435,7 +3435,6 @@
},
blockHeight: 701079,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3446,9 +3445,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3457,7 +3457,6 @@
},
blockHeight: 701079,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3468,9 +3467,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3479,7 +3479,6 @@
},
blockHeight: 701079,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3490,9 +3489,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3501,7 +3501,6 @@
},
blockHeight: 701189,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3512,9 +3511,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3523,7 +3523,6 @@
},
blockHeight: 701189,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3534,9 +3533,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3545,7 +3545,6 @@
},
blockHeight: 701191,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3556,9 +3555,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2000000000',
isMintBaton: false,
+ atoms: 2000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3567,7 +3567,6 @@
},
blockHeight: 701194,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3578,9 +3577,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000',
isMintBaton: false,
+ atoms: 1000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3589,7 +3589,6 @@
},
blockHeight: 701208,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3600,9 +3599,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3611,7 +3611,6 @@
},
blockHeight: 701211,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3622,9 +3621,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '789698951',
isMintBaton: false,
+ atoms: 789698951n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3633,7 +3633,6 @@
},
blockHeight: 701211,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3644,9 +3643,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000',
isMintBaton: false,
+ atoms: 1000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3655,7 +3655,6 @@
},
blockHeight: 701221,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3666,9 +3665,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3677,7 +3677,6 @@
},
blockHeight: 701223,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3688,9 +3687,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9000',
isMintBaton: false,
+ atoms: 9000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3699,7 +3699,6 @@
},
blockHeight: 709251,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3710,9 +3709,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000',
isMintBaton: false,
+ atoms: 1000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3721,7 +3721,6 @@
},
blockHeight: 709259,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3732,9 +3731,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3743,7 +3743,6 @@
},
blockHeight: 709668,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3754,9 +3753,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3765,7 +3765,6 @@
},
blockHeight: 710065,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3776,9 +3775,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3787,7 +3787,6 @@
},
blockHeight: 711227,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3798,9 +3797,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '17',
isMintBaton: false,
+ atoms: 17n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3809,7 +3809,6 @@
},
blockHeight: 715815,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3820,9 +3819,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3831,7 +3831,6 @@
},
blockHeight: 715815,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3842,9 +3841,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '102',
isMintBaton: false,
+ atoms: 102n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3853,7 +3853,6 @@
},
blockHeight: 715816,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3864,9 +3863,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '102',
isMintBaton: false,
+ atoms: 102n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3875,7 +3875,6 @@
},
blockHeight: 717055,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3886,9 +3885,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10',
isMintBaton: false,
+ atoms: 10n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3897,7 +3897,6 @@
},
blockHeight: 717824,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3908,9 +3907,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
isMintBaton: false,
+ atoms: 10000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3919,7 +3919,6 @@
},
blockHeight: 718091,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3930,9 +3929,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5235120760000000',
isMintBaton: false,
+ atoms: 5235120760000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3941,7 +3941,6 @@
},
blockHeight: 718280,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3952,9 +3951,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
isMintBaton: false,
+ atoms: 10000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3963,7 +3963,6 @@
},
blockHeight: 718790,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3974,9 +3973,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9999999900',
isMintBaton: false,
+ atoms: 9999999900n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -3985,7 +3985,6 @@
},
blockHeight: 720056,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -3996,9 +3995,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4007,7 +4007,6 @@
},
blockHeight: 720070,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4018,9 +4017,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4029,7 +4029,6 @@
},
blockHeight: 720070,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4040,9 +4039,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4051,7 +4051,6 @@
},
blockHeight: 720070,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4062,9 +4061,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4073,7 +4073,6 @@
},
blockHeight: 720070,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4084,9 +4083,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '4',
isMintBaton: false,
+ atoms: 4n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4095,7 +4095,6 @@
},
blockHeight: 720078,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4106,9 +4105,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '55',
isMintBaton: false,
+ atoms: 55n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4117,7 +4117,6 @@
},
blockHeight: 720951,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4128,9 +4127,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '99',
isMintBaton: false,
+ atoms: 99n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4139,7 +4139,6 @@
},
blockHeight: 721083,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4150,9 +4149,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '82',
isMintBaton: false,
+ atoms: 82n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4161,7 +4161,6 @@
},
blockHeight: 725871,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4172,9 +4171,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '55',
isMintBaton: false,
+ atoms: 55n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4183,7 +4183,6 @@
},
blockHeight: 725882,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4194,9 +4193,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '47800000000',
isMintBaton: false,
+ atoms: 47800000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4205,7 +4205,6 @@
},
blockHeight: 726001,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4216,9 +4215,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '996000',
isMintBaton: false,
+ atoms: 996000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4227,7 +4227,6 @@
},
blockHeight: 726009,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4238,9 +4237,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '69',
isMintBaton: false,
+ atoms: 69n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4249,7 +4249,6 @@
},
blockHeight: 726019,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4260,9 +4259,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999989983',
isMintBaton: false,
+ atoms: 999989983n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4271,7 +4271,6 @@
},
blockHeight: 726053,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4282,9 +4281,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9000',
isMintBaton: false,
+ atoms: 9000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4293,7 +4293,6 @@
},
blockHeight: 726277,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4304,9 +4303,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999888000000000',
isMintBaton: false,
+ atoms: 999888000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4315,7 +4315,6 @@
},
blockHeight: 726809,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4326,9 +4325,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2200',
isMintBaton: false,
+ atoms: 2200n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4337,7 +4337,6 @@
},
blockHeight: 726826,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4348,9 +4347,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4359,7 +4359,6 @@
},
blockHeight: 726826,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4370,9 +4369,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9955000000000',
isMintBaton: false,
+ atoms: 9955000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4381,7 +4381,6 @@
},
blockHeight: 726826,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4392,9 +4391,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4403,7 +4403,6 @@
},
blockHeight: 727176,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4414,9 +4413,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5000',
isMintBaton: false,
+ atoms: 5000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4425,7 +4425,6 @@
},
blockHeight: 728150,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4436,9 +4435,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '6968',
isMintBaton: false,
+ atoms: 6968n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4447,7 +4447,6 @@
},
blockHeight: 728285,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4458,9 +4457,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
+ atoms: 5n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4469,7 +4469,6 @@
},
blockHeight: 728707,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4480,9 +4479,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999999000',
isMintBaton: false,
+ atoms: 999999000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4491,7 +4491,6 @@
},
blockHeight: 728726,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4502,9 +4501,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1700',
isMintBaton: false,
+ atoms: 1700n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4513,7 +4513,6 @@
},
blockHeight: 737787,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4524,9 +4523,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '26',
isMintBaton: false,
+ atoms: 26n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4535,7 +4535,6 @@
},
blockHeight: 738246,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4546,9 +4545,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999999900',
isMintBaton: false,
+ atoms: 999999900n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4557,7 +4557,6 @@
},
blockHeight: 738929,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4568,9 +4567,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999897000000000',
isMintBaton: false,
+ atoms: 999897000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4579,7 +4579,6 @@
},
blockHeight: 741190,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4590,9 +4589,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '12',
isMintBaton: false,
+ atoms: 12n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4601,7 +4601,6 @@
},
blockHeight: 741195,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4612,9 +4611,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4623,7 +4623,6 @@
},
blockHeight: 741195,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4634,9 +4633,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4645,7 +4645,6 @@
},
blockHeight: 741195,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4656,9 +4655,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4667,7 +4667,6 @@
},
blockHeight: 741197,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4678,9 +4677,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '123456789',
isMintBaton: false,
+ atoms: 123456789n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4689,7 +4689,6 @@
},
blockHeight: 741200,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4700,9 +4699,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100000000',
isMintBaton: false,
+ atoms: 100000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4711,7 +4711,6 @@
},
blockHeight: 741791,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4722,9 +4721,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4733,7 +4733,6 @@
},
blockHeight: 741791,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4744,9 +4743,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4755,7 +4755,6 @@
},
blockHeight: 741796,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4766,9 +4765,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
+ atoms: 5n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4777,7 +4777,6 @@
},
blockHeight: 741796,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4788,9 +4787,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4799,7 +4799,6 @@
},
blockHeight: 741796,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4810,9 +4809,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '7',
isMintBaton: false,
+ atoms: 7n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4821,7 +4821,6 @@
},
blockHeight: 741796,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4832,9 +4831,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '17',
isMintBaton: false,
+ atoms: 17n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4843,7 +4843,6 @@
},
blockHeight: 741797,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4854,9 +4853,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4865,7 +4865,6 @@
},
blockHeight: 741798,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4876,9 +4875,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '11',
isMintBaton: false,
+ atoms: 11n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4887,7 +4887,6 @@
},
blockHeight: 741798,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4898,9 +4897,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4909,7 +4909,6 @@
},
blockHeight: 741799,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4920,9 +4919,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '33',
isMintBaton: false,
+ atoms: 33n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4931,7 +4931,6 @@
},
blockHeight: 742074,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4942,9 +4941,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4953,7 +4953,6 @@
},
blockHeight: 742075,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4964,9 +4963,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4975,7 +4975,6 @@
},
blockHeight: 742075,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -4986,9 +4985,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -4997,7 +4997,6 @@
},
blockHeight: 747210,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -5008,9 +5007,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '107000000000',
isMintBaton: false,
+ atoms: 107000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -5019,7 +5019,6 @@
},
blockHeight: 755294,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -5030,9 +5029,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '7900000000',
isMintBaton: false,
+ atoms: 7900000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -5041,7 +5041,6 @@
},
blockHeight: 756151,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -5052,9 +5051,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '210000000',
isMintBaton: false,
+ atoms: 210000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -5063,7 +5063,6 @@
},
blockHeight: 756151,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -5074,9 +5073,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5400000',
isMintBaton: false,
+ atoms: 5400000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -5085,7 +5085,6 @@
},
blockHeight: 756229,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
token: {
@@ -5096,9 +5095,10 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '117',
isMintBaton: false,
+ atoms: 117n,
},
+ sats: 546n,
},
],
nonSlpUtxos: [
@@ -5109,9 +5109,9 @@
},
blockHeight: 755309,
isCoinbase: false,
- value: 12233856,
address: 'ecash:qz5lf9pxde9neq3hzte8mmwts03sktl9numh06k74t',
isFinal: true,
+ sats: 12233856n,
},
{
outpoint: {
@@ -5120,9 +5120,9 @@
},
blockHeight: 680784,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 546n,
},
{
outpoint: {
@@ -5131,9 +5131,9 @@
},
blockHeight: 680784,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 546n,
},
{
outpoint: {
@@ -5142,9 +5142,9 @@
},
blockHeight: 724822,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 546n,
},
{
outpoint: {
@@ -5153,9 +5153,9 @@
},
blockHeight: 725143,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 546n,
},
{
outpoint: {
@@ -5164,9 +5164,9 @@
},
blockHeight: 731918,
isCoinbase: false,
- value: 546,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 546n,
},
{
outpoint: {
@@ -5175,9 +5175,9 @@
},
blockHeight: 739911,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -5186,9 +5186,9 @@
},
blockHeight: 740052,
isCoinbase: false,
- value: 600,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 600n,
},
{
outpoint: {
@@ -5197,9 +5197,9 @@
},
blockHeight: 740198,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -5208,9 +5208,9 @@
},
blockHeight: 740198,
isCoinbase: false,
- value: 7700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7700n,
},
{
outpoint: {
@@ -5219,9 +5219,9 @@
},
blockHeight: 740963,
isCoinbase: false,
- value: 700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 700n,
},
{
outpoint: {
@@ -5230,9 +5230,9 @@
},
blockHeight: 740963,
isCoinbase: false,
- value: 1245,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1245n,
},
{
outpoint: {
@@ -5241,9 +5241,9 @@
},
blockHeight: 741057,
isCoinbase: false,
- value: 1700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1700n,
},
{
outpoint: {
@@ -5252,9 +5252,9 @@
},
blockHeight: 741057,
isCoinbase: false,
- value: 800,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 800n,
},
{
outpoint: {
@@ -5263,9 +5263,9 @@
},
blockHeight: 741057,
isCoinbase: false,
- value: 600,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 600n,
},
{
outpoint: {
@@ -5274,9 +5274,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 1100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1100n,
},
{
outpoint: {
@@ -5285,9 +5285,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 6600,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 6600n,
},
{
outpoint: {
@@ -5296,9 +5296,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 1000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1000n,
},
{
outpoint: {
@@ -5307,9 +5307,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 1200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1200n,
},
{
outpoint: {
@@ -5318,9 +5318,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 5500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5500n,
},
{
outpoint: {
@@ -5329,9 +5329,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 23200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 23200n,
},
{
outpoint: {
@@ -5340,9 +5340,9 @@
},
blockHeight: 741058,
isCoinbase: false,
- value: 10100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 10100n,
},
{
outpoint: {
@@ -5351,9 +5351,9 @@
},
blockHeight: 741063,
isCoinbase: false,
- value: 2300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2300n,
},
{
outpoint: {
@@ -5362,9 +5362,9 @@
},
blockHeight: 741063,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -5373,9 +5373,9 @@
},
blockHeight: 741182,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -5384,9 +5384,9 @@
},
blockHeight: 741200,
isCoinbase: false,
- value: 700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 700n,
},
{
outpoint: {
@@ -5395,9 +5395,9 @@
},
blockHeight: 741200,
isCoinbase: false,
- value: 800,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 800n,
},
{
outpoint: {
@@ -5406,9 +5406,9 @@
},
blockHeight: 741207,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -5417,9 +5417,9 @@
},
blockHeight: 741208,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -5428,9 +5428,9 @@
},
blockHeight: 741210,
isCoinbase: false,
- value: 2195,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2195n,
},
{
outpoint: {
@@ -5439,9 +5439,9 @@
},
blockHeight: 741769,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -5450,9 +5450,9 @@
},
blockHeight: 741791,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -5461,9 +5461,9 @@
},
blockHeight: 741799,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -5472,9 +5472,9 @@
},
blockHeight: 742051,
isCoinbase: false,
- value: 1100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1100n,
},
{
outpoint: {
@@ -5483,9 +5483,9 @@
},
blockHeight: 742051,
isCoinbase: false,
- value: 1200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1200n,
},
{
outpoint: {
@@ -5494,9 +5494,9 @@
},
blockHeight: 742074,
isCoinbase: false,
- value: 3400,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3400n,
},
{
outpoint: {
@@ -5505,9 +5505,9 @@
},
blockHeight: 742074,
isCoinbase: false,
- value: 3500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3500n,
},
{
outpoint: {
@@ -5516,9 +5516,9 @@
},
blockHeight: 742074,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -5527,9 +5527,9 @@
},
blockHeight: 742792,
isCoinbase: false,
- value: 200000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 200000n,
},
{
outpoint: {
@@ -5538,9 +5538,9 @@
},
blockHeight: 742792,
isCoinbase: false,
- value: 100000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 100000n,
},
{
outpoint: {
@@ -5549,9 +5549,9 @@
},
blockHeight: 742796,
isCoinbase: false,
- value: 250000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 250000n,
},
{
outpoint: {
@@ -5560,9 +5560,9 @@
},
blockHeight: 742796,
isCoinbase: false,
- value: 50000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 50000n,
},
{
outpoint: {
@@ -5571,9 +5571,9 @@
},
blockHeight: 742797,
isCoinbase: false,
- value: 250000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 250000n,
},
{
outpoint: {
@@ -5582,9 +5582,9 @@
},
blockHeight: 742799,
isCoinbase: false,
- value: 155500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 155500n,
},
{
outpoint: {
@@ -5593,9 +5593,9 @@
},
blockHeight: 742799,
isCoinbase: false,
- value: 333300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 333300n,
},
{
outpoint: {
@@ -5604,9 +5604,9 @@
},
blockHeight: 742800,
isCoinbase: false,
- value: 333300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 333300n,
},
{
outpoint: {
@@ -5615,9 +5615,9 @@
},
blockHeight: 742800,
isCoinbase: false,
- value: 111100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 111100n,
},
{
outpoint: {
@@ -5626,9 +5626,9 @@
},
blockHeight: 742800,
isCoinbase: false,
- value: 88800,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 88800n,
},
{
outpoint: {
@@ -5637,9 +5637,9 @@
},
blockHeight: 742994,
isCoinbase: false,
- value: 3330,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3330n,
},
{
outpoint: {
@@ -5648,9 +5648,9 @@
},
blockHeight: 742994,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -5659,9 +5659,9 @@
},
blockHeight: 742999,
isCoinbase: false,
- value: 1600,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1600n,
},
{
outpoint: {
@@ -5670,9 +5670,9 @@
},
blockHeight: 743101,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -5681,9 +5681,9 @@
},
blockHeight: 743138,
isCoinbase: false,
- value: 1100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1100n,
},
{
outpoint: {
@@ -5692,9 +5692,9 @@
},
blockHeight: 743158,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -5703,9 +5703,9 @@
},
blockHeight: 743228,
isCoinbase: false,
- value: 3400,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3400n,
},
{
outpoint: {
@@ -5714,9 +5714,9 @@
},
blockHeight: 743228,
isCoinbase: false,
- value: 2200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2200n,
},
{
outpoint: {
@@ -5725,9 +5725,9 @@
},
blockHeight: 743228,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -5736,9 +5736,9 @@
},
blockHeight: 743257,
isCoinbase: false,
- value: 11100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 11100n,
},
{
outpoint: {
@@ -5747,9 +5747,9 @@
},
blockHeight: 743350,
isCoinbase: false,
- value: 1200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1200n,
},
{
outpoint: {
@@ -5758,9 +5758,9 @@
},
blockHeight: 743775,
isCoinbase: false,
- value: 3700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3700n,
},
{
outpoint: {
@@ -5769,9 +5769,9 @@
},
blockHeight: 743782,
isCoinbase: false,
- value: 1700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1700n,
},
{
outpoint: {
@@ -5780,9 +5780,9 @@
},
blockHeight: 743972,
isCoinbase: false,
- value: 7700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7700n,
},
{
outpoint: {
@@ -5791,9 +5791,9 @@
},
blockHeight: 744136,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -5802,9 +5802,9 @@
},
blockHeight: 744138,
isCoinbase: false,
- value: 4200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 4200n,
},
{
outpoint: {
@@ -5813,9 +5813,9 @@
},
blockHeight: 744138,
isCoinbase: false,
- value: 12000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 12000n,
},
{
outpoint: {
@@ -5824,9 +5824,9 @@
},
blockHeight: 744138,
isCoinbase: false,
- value: 12100,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 12100n,
},
{
outpoint: {
@@ -5835,9 +5835,9 @@
},
blockHeight: 744841,
isCoinbase: false,
- value: 7700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7700n,
},
{
outpoint: {
@@ -5846,9 +5846,9 @@
},
blockHeight: 744841,
isCoinbase: false,
- value: 700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 700n,
},
{
outpoint: {
@@ -5857,9 +5857,9 @@
},
blockHeight: 745157,
isCoinbase: false,
- value: 3700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3700n,
},
{
outpoint: {
@@ -5868,9 +5868,9 @@
},
blockHeight: 745157,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -5879,9 +5879,9 @@
},
blockHeight: 745158,
isCoinbase: false,
- value: 4200,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 4200n,
},
{
outpoint: {
@@ -5890,9 +5890,9 @@
},
blockHeight: 745160,
isCoinbase: false,
- value: 9990,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 9990n,
},
{
outpoint: {
@@ -5901,9 +5901,9 @@
},
blockHeight: 745160,
isCoinbase: false,
- value: 10081,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 10081n,
},
{
outpoint: {
@@ -5912,9 +5912,9 @@
},
blockHeight: 745251,
isCoinbase: false,
- value: 50000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 50000n,
},
{
outpoint: {
@@ -5923,9 +5923,9 @@
},
blockHeight: 745254,
isCoinbase: false,
- value: 55000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 55000n,
},
{
outpoint: {
@@ -5934,9 +5934,9 @@
},
blockHeight: 745275,
isCoinbase: false,
- value: 250779,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 250779n,
},
{
outpoint: {
@@ -5945,9 +5945,9 @@
},
blockHeight: 745520,
isCoinbase: false,
- value: 49400,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 49400n,
},
{
outpoint: {
@@ -5956,9 +5956,9 @@
},
blockHeight: 747209,
isCoinbase: false,
- value: 5500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5500n,
},
{
outpoint: {
@@ -5967,9 +5967,9 @@
},
blockHeight: 747210,
isCoinbase: false,
- value: 5821,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5821n,
},
{
outpoint: {
@@ -5978,9 +5978,9 @@
},
blockHeight: 747210,
isCoinbase: false,
- value: 3500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3500n,
},
{
outpoint: {
@@ -5989,9 +5989,9 @@
},
blockHeight: 747433,
isCoinbase: false,
- value: 5000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5000n,
},
{
outpoint: {
@@ -6000,9 +6000,9 @@
},
blockHeight: 747433,
isCoinbase: false,
- value: 15000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 15000n,
},
{
outpoint: {
@@ -6011,9 +6011,9 @@
},
blockHeight: 747604,
isCoinbase: false,
- value: 7700,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7700n,
},
{
outpoint: {
@@ -6022,9 +6022,9 @@
},
blockHeight: 749030,
isCoinbase: false,
- value: 5500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5500n,
},
{
outpoint: {
@@ -6033,9 +6033,9 @@
},
blockHeight: 753929,
isCoinbase: false,
- value: 3300,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3300n,
},
{
outpoint: {
@@ -6044,9 +6044,9 @@
},
blockHeight: 754182,
isCoinbase: false,
- value: 79785,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 79785n,
},
{
outpoint: {
@@ -6055,9 +6055,9 @@
},
blockHeight: 754318,
isCoinbase: false,
- value: 83715,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 83715n,
},
{
outpoint: {
@@ -6066,9 +6066,9 @@
},
blockHeight: 754464,
isCoinbase: false,
- value: 5500,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 5500n,
},
{
outpoint: {
@@ -6077,9 +6077,9 @@
},
blockHeight: 755028,
isCoinbase: false,
- value: 10000,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 10000n,
},
{
outpoint: {
@@ -6088,9 +6088,9 @@
},
blockHeight: 755309,
isCoinbase: false,
- value: 7077,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7077n,
},
{
outpoint: {
@@ -6099,9 +6099,9 @@
},
blockHeight: 755325,
isCoinbase: false,
- value: 9145,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 9145n,
},
{
outpoint: {
@@ -6110,9 +6110,9 @@
},
blockHeight: 756151,
isCoinbase: false,
- value: 48182,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 48182n,
},
{
outpoint: {
@@ -6121,9 +6121,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 3182,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 3182n,
},
{
outpoint: {
@@ -6132,9 +6132,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 39176,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 39176n,
},
{
outpoint: {
@@ -6143,9 +6143,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 48182,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 48182n,
},
{
outpoint: {
@@ -6154,9 +6154,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 6434,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 6434n,
},
{
outpoint: {
@@ -6165,9 +6165,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 600155,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 600155n,
},
{
outpoint: {
@@ -6176,9 +6176,9 @@
},
blockHeight: 756154,
isCoinbase: false,
- value: 1046,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1046n,
},
{
outpoint: {
@@ -6187,9 +6187,9 @@
},
blockHeight: 756159,
isCoinbase: false,
- value: 1155,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1155n,
},
{
outpoint: {
@@ -6198,9 +6198,9 @@
},
blockHeight: 756224,
isCoinbase: false,
- value: 1482,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 1482n,
},
{
outpoint: {
@@ -6209,9 +6209,9 @@
},
blockHeight: 756225,
isCoinbase: false,
- value: 54429518,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 54429518n,
},
{
outpoint: {
@@ -6220,9 +6220,9 @@
},
blockHeight: 756229,
isCoinbase: false,
- value: 7255,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 7255n,
},
{
outpoint: {
@@ -6231,9 +6231,9 @@
},
blockHeight: 756229,
isCoinbase: false,
- value: 2255,
address: 'ecash:qz2708636snqhsxu8wnlka78h6fdp77ar59jrf5035',
isFinal: true,
+ sats: 2255n,
},
],
};
diff --git a/cashtab/src/chronik/fixtures/mocks.js b/cashtab/src/chronik/fixtures/mocks.js
--- a/cashtab/src/chronik/fixtures/mocks.js
+++ b/cashtab/src/chronik/fixtures/mocks.js
@@ -19,20 +19,19 @@
},
inputScript:
'473044022024a187f6dc32082e765eeb37e1a6726e99871b3df0c385ad135ddcf73df0e79102203b81d7eb112a193e23147974432bb12116d75e995aa8c3b6a51943cc4dbd8694412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12214100,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12214100n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303434b410d4368726f6e696b20416c7068611468747470733a2f2f636173687461622e636f6d2f4c0001084c000800000014b230ce38',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -43,23 +42,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '88888888888',
isMintBaton: false,
entryIdx: 0,
+ atoms: 88888888888n,
},
spentBy: {
txid: 'a83257b2facf7c6d4f8df9a307dee9cc79af9323b8bb803994d5c967bf916569',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 12213031,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '5fc6f53ef0f94e66d5f6983402441cfdece1dbd35bd500b6e15881d1b37aa93f',
outIdx: 67,
},
+ sats: 12213031n,
},
],
lockTime: 0,
@@ -79,9 +79,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -103,31 +103,31 @@
},
inputScript:
'47304402201623de13a2cd38d379a08dbee1cb2239571b6166bf9923ffe44ae108fd21931c022030dcd5b08a997dcaa7af505a5e513985317b2da91d2f4d4879ee941e3b8931ad412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12218055,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12218055n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624c910458f886baf61daf6fa1909aab79e30bca8d35d634c6c5e969b2157b87e67fa010252a9fd1eebeed00075d0fb7bcc0dcb73b41cc73adacdae2be18d31643ad3f33d95f9a97e7cf00b2231fd0a7d37f36d082c86a392bde59eac693c002f861082d7d3cbc23eafd4511afe3619bfc0f0c028454038dee71a6e7796395574b9a06b9bf7aaf0cd607e59f4ad641393d746f88',
+ sats: 0n,
},
{
- value: 3500,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3500n,
},
{
- value: 12214100,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '56e9b1d16c9989186c846187db57d9a9389c3ecc74e7237c1d1d0327cf904a55',
outIdx: 0,
},
+ sats: 12214100n,
},
],
lockTime: 0,
@@ -154,40 +154,40 @@
},
inputScript:
'47304402202267233e578abb21efa28bc606501f582f94915d3b07ceedff39750877c7211d02206cfec78f41fe58723938c199fa908f4e13ebb298cc989be30faa1e6838c22af1412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12224078,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12224078n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04007461621c54657374696e67206d756c74692d73656e642077697468206e6f7465',
+ sats: 0n,
},
{
- value: 2200,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '10df437f64451165ac1eb371cef97aab8602d6d61c57eb97811fe724fe7371c3',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 3300,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3300n,
},
{
- value: 12218055,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'd27609956b0e4313f807fd58b82cc77f9b2bba1a792eac02707462a3d6863958',
outIdx: 0,
},
+ sats: 12218055n,
},
],
lockTime: 0,
@@ -214,35 +214,35 @@
},
inputScript:
'483045022100f3e4140c8f1614612c07ffe4d35e697d5ffd0931d7b18b9360f5f431c6704d11022002b5fd03e7f9b849fec1c0374dc3df2f1f2dae333980bd02aaa3710b66d1eb0e412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12230101,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12230101n,
},
],
outputs: [
{
- value: 3300,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3300n,
},
{
- value: 2200,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: 'ff40dc28bd694b45d782be8c1726417b8db51fd466e429cf3ee906c9dab0b650',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 12224078,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'd0470ea0b1e0d5cc6a20085ca1436e8c4752415a450a981ef2dd23105bbe2550',
outIdx: 0,
},
+ sats: 12224078n,
},
],
lockTime: 0,
@@ -269,26 +269,26 @@
},
inputScript:
'4830450221008f8052c8b78a4d250f4596b3a14c85fb2d253ce20d972422829dc4a68a87320702202b7d272a96996bab1914f693939dfc6300184f5f3db0acc5acfc155ba19d7642412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12233856,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12233856n,
},
],
outputs: [
{
- value: 3300,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3300n,
},
{
- value: 12230101,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'a5f2a143eeec451c0714e430dd5553cbee26f6f05571a316dfb784b3454855d9',
outIdx: 0,
},
+ sats: 12230101n,
},
],
lockTime: 0,
@@ -315,30 +315,30 @@
},
inputScript:
'473044022038c75f93d7abe8e6e63c0981203acd48c7e6df92ba52cc9399df84b0b367ee200220356508913a5f8ad94d126891fea372bb2bf66a249bdb63332a4625cb359865f8412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12235011,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12235011n,
},
],
outputs: [
{
- value: 0,
outputScript: '6a04007461620454657374',
+ sats: 0n,
},
{
- value: 700,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 700n,
},
{
- value: 12233856,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'bdd18f49a557c57b79da4b8a3165be6202fb48809486ec04424de99f52abeee8',
outIdx: 0,
},
+ sats: 12233856n,
},
],
lockTime: 0,
@@ -365,30 +365,30 @@
},
inputScript:
'483045022100f288e71276e2389744ecb3c98bdf0c119d19966ac086c5f5908f8c3a878aa7e402203c07905536720391f472457f52f5cf6aaeb4fa02fdf59722f25768a36fd6157f412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12243166,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12243166n,
},
],
outputs: [
{
- value: 7700,
outputScript:
'76a9146ffbe7c7d7bd01295eb1e371de9550339bdcf9fd88ac',
spentBy: {
txid: '04eedd3f4b4dc9727e393ad3e774f2dc0c6acf9e920dc6fcbcbf95ed9b98477c',
outIdx: 3,
},
+ sats: 7700n,
},
{
- value: 12235011,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '71c0f2d76c81bb91c6bf4de69693d95e8f043af9e055e949616443090f961d80',
outIdx: 0,
},
+ sats: 12235011n,
},
],
lockTime: 0,
@@ -415,30 +415,30 @@
},
inputScript:
'483045022100d541ef12cc57c3b3cc95b338aec21775b27441d12eda662dcff23a46d07cc9450220467d2aae0dadcae787db33dab6adc86ec47aafea0133cc2130a62bb8247491d6412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 14743621,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 14743621n,
},
],
outputs: [
{
- value: 2500000,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '55388f67ab1b23d2e6c146472b836c1ba1df33dd9b7685bed34c6c9ce6fe5c0e',
outIdx: 0,
},
+ sats: 2500000n,
},
{
- value: 12243166,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '3f7cbb380b2ad014fc6e95f2d4c10eda2f37c5686f6739af562e6e855c457b3b',
outIdx: 0,
},
+ sats: 12243166n,
},
],
lockTime: 0,
@@ -465,35 +465,35 @@
},
inputScript:
'473044022046faa2cc8efc0a06b2cfa8b80b658d4dc09bc1524cba1cb4ab456f8bc9ebf37902205074d7975824a06d6cba90dc91503f29801d9c180253bbe4ecefb42ddc82da6d412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 14746276,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 14746276n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624c810406fe30e60d38c4408043ca5b43cd515db4b10af477007962db6d019eeb9c3f6734c495574368da107bb00b32a27d096069706a0fb91fe18d0d8281c1b826fdd862a1955dd0d28b4e0245c862085f172d3947ca202953095ed014258f069c4d3fc36706e842b6643061e4ce70b91fb5b5b206de4d3b81a621ad9d4456c3f0cf6b',
+ sats: 0n,
},
{
- value: 2200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '31e5bf25b892e173483c7b100a5b0fcda03cac9337c335fda3b3a5cf17b64759',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 14743621,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'bd0101c9389c5e1fada4662ea9ba7c8d71f949743e42f2db563cb0ec96bd10a3',
outIdx: 0,
},
+ sats: 14743621n,
},
],
lockTime: 0,
@@ -520,30 +520,30 @@
},
inputScript:
'47304402204c6140c524e40653e85440aff615af47a481accc9dc8b45548d59a3ae91d3a0802200aa1667d00b16d3a80c5d4d1b4cabeee415289ef6818496f92abf9ec2db8262c412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 14748931,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 14748931n,
},
],
outputs: [
{
- value: 2200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '46158de814d73ded1a8f91221c85d9c91c696eaf14f0bd10e6fa7215bacf7852',
outIdx: 1,
},
+ sats: 2200n,
},
{
- value: 14746276,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '20230f564987e644070e35fa4a809b8d697c725023a903c638194231ddf9cfd3',
outIdx: 0,
},
+ sats: 14746276n,
},
],
lockTime: 0,
@@ -579,30 +579,30 @@
},
inputScript:
'483045022100f50735a67538602ec240725f9160bdfc96b4ae443fff2cebaf25485e8f98f5720220584ab745222cc7a0cd33d6f287885781b8009bc1e819b9b97436ecdb31abeff2412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 49545,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 49545n,
},
],
outputs: [
{
- value: 1300,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '98c11ba510f0870c8c9fba69827e712c8dca3695edb6893b41588322496afa18',
outIdx: 1,
},
+ sats: 1300n,
},
{
- value: 47790,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'd11d964010240aceb9cab32c200a87d2f44330852cc1f16a5e9daeed00d3a465',
outIdx: 1,
},
+ sats: 47790n,
},
],
lockTime: 0,
@@ -629,30 +629,30 @@
},
inputScript:
'483045022100ac91ae0c612165e500605ae41080a30be891ef757c378733bfe5533f331d0e97022020babc7d6a267fc5fbab8ba9740968732978abf4cf63e049721c008532204bf8412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 47562,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 47562n,
},
],
outputs: [
{
- value: 1200,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 1,
},
+ sats: 1200n,
},
{
- value: 45907,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'c5628a5ebac844a6e62bff2319558711c0d61423b2c222761945414b1f604c68',
outIdx: 1,
},
+ sats: 45907n,
},
],
lockTime: 0,
@@ -679,30 +679,30 @@
},
inputScript:
'48304502210086a6072eaabb3502c73cbb6701c04edca374de60d62b888614d76b352203e9d602205721cec95da5a0ceda4cf54bf4bf8f54bec3d07b1caa75e1d65a87d8b5572f0f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1100,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 0,
},
+ sats: 1100n,
},
{
- value: 1745,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'c5628a5ebac844a6e62bff2319558711c0d61423b2c222761945414b1f604c68',
outIdx: 0,
},
+ sats: 1745n,
},
],
lockTime: 0,
@@ -729,10 +729,10 @@
},
inputScript:
'47304402207031eafbfb4f762f1eb719defa8cb890f55085c593244eecce57082b7013fd4f02205178c40c57903baa3d9ebf554d2f3892859599b6e358e10725db81c14de4c80f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
{
prevOut: {
@@ -741,7 +741,6 @@
},
inputScript:
'473044022058d957ffc312b4f9eefd71fb2c708e0a82bf72e56fdb322d75b4201453e413c402200df9176569cb2523f541dcff39f27c116926b214de37109775f3e5015e050604412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -751,22 +750,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '34',
isMintBaton: false,
entryIdx: 0,
+ atoms: 34n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000508000000000000001d',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -777,17 +776,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -798,10 +797,11 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '29',
isMintBaton: false,
entryIdx: 0,
+ atoms: 29n,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -821,9 +821,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -845,10 +845,10 @@
},
inputScript:
'483045022100f4734cb1a5e7a64013b5408b9d0d6bc59560b08b9e7284f8bbba217f777f772c02204625fab8a1356f96f00a463be8aa64e90f663744554df60807d1aa1e00d19c5e412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1100,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1100n,
},
{
prevOut: {
@@ -857,10 +857,10 @@
},
inputScript:
'483045022100892a72b025cd5cd667bace86dfc605169018d9b46fa9ba2ef963e4dbe26a471702201283b63ebe679be3c27edc7b37aff829ba34503430147e203661d4d4ec4f14a5412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 7700,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 7700n,
},
{
prevOut: {
@@ -869,7 +869,6 @@
},
inputScript:
'47304402203bcfcdbd76587aaa0b525edec82a5078daef892a98ae76d39accf1d874bd526d02202e2eba394d27b82c54fd3605ebafe7d6c9d2e7fa5dc769a4dc113dfbf5025a9d412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -879,22 +878,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '126',
isMintBaton: false,
entryIdx: 0,
+ atoms: 126n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000108000000000000007d',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -905,17 +904,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -926,23 +925,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '125',
isMintBaton: false,
entryIdx: 0,
+ atoms: 125n,
},
spentBy: {
txid: 'e94ba6040350284311a6409267c7c1193d6c5f19a9dd76975bbf7355f0c7ed1a',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 6655,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'b24bc776a3414479f31835e26c17713cd655dd51c30351a26d3900a126b6275e',
outIdx: 0,
},
+ sats: 6655n,
},
],
lockTime: 0,
@@ -962,9 +962,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -986,30 +986,30 @@
},
inputScript:
'4730440220606efba360bf0843f8c3fe9fab7d1cdc34852395b9045a4c3cf8f27b91d414f2022054fb11ce6e4fd2ee50ba467e94460c63e45fb563e330fc35c5caa8eea71e93b7412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1900,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '98c11ba510f0870c8c9fba69827e712c8dca3695edb6893b41588322496afa18',
outIdx: 0,
},
+ sats: 1900n,
},
{
- value: 945,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'd11d964010240aceb9cab32c200a87d2f44330852cc1f16a5e9daeed00d3a465',
outIdx: 0,
},
+ sats: 945n,
},
],
lockTime: 0,
@@ -1036,10 +1036,10 @@
},
inputScript:
'47304402204569cce381885918e300caef1e8a5388b86be871ff3e8f8f52917c26df9dde760220474e3ce3f6363a826d2772e347c296773ea838f493882e15fdc6a5181286a92c412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1700,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1700n,
},
{
prevOut: {
@@ -1048,30 +1048,30 @@
},
inputScript:
'47304402206355208bd3eae6d3468a062a6cc33340cd82e0e5def4dad1efa7caee652b21b40220619f05019e5014f1154659bbf5a46f4abbf93e04eecca8c509d231eb2a495f41412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1800,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'f6afd5aa9d891919f8b412136107bebc970863ea24b23c76b96cee5b3577ccd5',
outIdx: 0,
},
+ sats: 1800n,
},
{
- value: 2448,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '8af4664ffc7f23d64f0ddf76a6881d6a9c3bcf1b3f3e6562e8ed70ab5f58f4e6',
outIdx: 0,
},
+ sats: 2448n,
},
],
lockTime: 0,
@@ -1098,21 +1098,21 @@
},
inputScript:
'4730440220665f4bf3d94204649f8a1731285eb6e94940e38a3601504612374ec0a06ff27f02206276844772b498726e3e56145d42f2316da5646619d8288598f18e828426881f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
],
outputs: [
{
- value: 1700,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'f6afd5aa9d891919f8b412136107bebc970863ea24b23c76b96cee5b3577ccd5',
outIdx: 1,
},
+ sats: 1700n,
},
],
lockTime: 0,
@@ -1139,10 +1139,10 @@
},
inputScript:
'47304402204b4de25ffee112642136a6d1ad74394c7bfb984a08703d5362500a5521d346dc022053c3e887d7bb27a2525140789a7f450b0995781787ce28750dca1421b746721f412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 43783281,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 43783281n,
},
{
prevOut: {
@@ -1151,7 +1151,6 @@
},
inputScript:
'483045022100d4d1566db73386cd9580ff6f2c60e1536993b459fb3b199d7514fbd6fb5042ca0220590e88aa183ed6a756fbb8d8ba4bf5133f578746a917fab1e1b8e712543c5861412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1161,22 +1160,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44203515f4a9851ad44124e0ddf6149344deb27a97720fc7e5254a9d2c86da7415a9080000000000000063',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -1187,23 +1186,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '99',
isMintBaton: false,
entryIdx: 0,
+ atoms: 99n,
},
spentBy: {
txid: 'a39c15bc372916359d79196a67f4edbacc515b0a9b8b9a9395e4eb13a9ef2a07',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 43781463,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'fcf45f6f12a4442bf206f85c87dfb7cfccdf438927fabbfe314a2c780545dcf9',
outIdx: 0,
},
+ sats: 43781463n,
},
],
lockTime: 0,
@@ -1223,9 +1223,9 @@
isInvalid: false,
burnSummary: 'Unexpected burn: Burns 1 base tokens',
failedColorings: [],
- actualBurnAmount: '1',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 1n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -1247,35 +1247,35 @@
},
inputScript:
'483045022100e43086bb67006f6d5140a3329001bc53dabe2da4dbe7feae34dd5f10311b15ad022045da448bc99003af6cf6d4c74ec9891c60932013dde7451abca4a6bc40b6138d412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 10409988,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 10409988n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624ca104acd46779fb7a9a8e24656ba7ffcbc066bb78701630b0a3fd1c36a3e2b605d78e1d995ea990096a3f76077985d2194fd1a87369921545a544992c86414ed859247ab8f9c2979ed9b8fecb2cfaa7ff74f1daf6f7c00f3d97a5b942aecba54bf155d464606b6faa6f5efcbdf3f525b3283acf6867d11cfc30623c3107a87b499f68ca00602492c9cdca9b481c7f2b65a6ecd481bfdd244954b32a45c658592182ad',
+ sats: 0n,
},
{
- value: 1200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'b142b79dbda8ae4aa580220bec76ae5ee78ff2c206a39ce20138c4f371c22aca',
outIdx: 1,
},
+ sats: 1200n,
},
{
- value: 10408333,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '4263f3ceb04ec33a7cdb4d076caa4f2311fbdbb50b4330693e91d4ceb2e2fd5d',
outIdx: 0,
},
+ sats: 10408333n,
},
],
lockTime: 0,
@@ -1308,20 +1308,19 @@
},
inputScript:
'473044022024a187f6dc32082e765eeb37e1a6726e99871b3df0c385ad135ddcf73df0e79102203b81d7eb112a193e23147974432bb12116d75e995aa8c3b6a51943cc4dbd8694412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12214100,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12214100n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303434b410d4368726f6e696b20416c7068611468747470733a2f2f636173687461622e636f6d2f4c0001084c000800000014b230ce38',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -1332,23 +1331,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '88888888888',
isMintBaton: false,
entryIdx: 0,
+ atoms: 88888888888n,
},
spentBy: {
txid: 'a83257b2facf7c6d4f8df9a307dee9cc79af9323b8bb803994d5c967bf916569',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 12213031,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '5fc6f53ef0f94e66d5f6983402441cfdece1dbd35bd500b6e15881d1b37aa93f',
outIdx: 67,
},
+ sats: 12213031n,
},
],
lockTime: 0,
@@ -1368,9 +1368,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -1392,31 +1392,31 @@
},
inputScript:
'47304402201623de13a2cd38d379a08dbee1cb2239571b6166bf9923ffe44ae108fd21931c022030dcd5b08a997dcaa7af505a5e513985317b2da91d2f4d4879ee941e3b8931ad412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12218055,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12218055n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624c910458f886baf61daf6fa1909aab79e30bca8d35d634c6c5e969b2157b87e67fa010252a9fd1eebeed00075d0fb7bcc0dcb73b41cc73adacdae2be18d31643ad3f33d95f9a97e7cf00b2231fd0a7d37f36d082c86a392bde59eac693c002f861082d7d3cbc23eafd4511afe3619bfc0f0c028454038dee71a6e7796395574b9a06b9bf7aaf0cd607e59f4ad641393d746f88',
+ sats: 0n,
},
{
- value: 3500,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3500n,
},
{
- value: 12214100,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '56e9b1d16c9989186c846187db57d9a9389c3ecc74e7237c1d1d0327cf904a55',
outIdx: 0,
},
+ sats: 12214100n,
},
],
lockTime: 0,
@@ -1443,40 +1443,40 @@
},
inputScript:
'47304402202267233e578abb21efa28bc606501f582f94915d3b07ceedff39750877c7211d02206cfec78f41fe58723938c199fa908f4e13ebb298cc989be30faa1e6838c22af1412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12224078,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12224078n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04007461621c54657374696e67206d756c74692d73656e642077697468206e6f7465',
+ sats: 0n,
},
{
- value: 2200,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '10df437f64451165ac1eb371cef97aab8602d6d61c57eb97811fe724fe7371c3',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 3300,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3300n,
},
{
- value: 12218055,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'd27609956b0e4313f807fd58b82cc77f9b2bba1a792eac02707462a3d6863958',
outIdx: 0,
},
+ sats: 12218055n,
},
],
lockTime: 0,
@@ -1503,35 +1503,35 @@
},
inputScript:
'483045022100f3e4140c8f1614612c07ffe4d35e697d5ffd0931d7b18b9360f5f431c6704d11022002b5fd03e7f9b849fec1c0374dc3df2f1f2dae333980bd02aaa3710b66d1eb0e412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12230101,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12230101n,
},
],
outputs: [
{
- value: 3300,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3300n,
},
{
- value: 2200,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: 'ff40dc28bd694b45d782be8c1726417b8db51fd466e429cf3ee906c9dab0b650',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 12224078,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'd0470ea0b1e0d5cc6a20085ca1436e8c4752415a450a981ef2dd23105bbe2550',
outIdx: 0,
},
+ sats: 12224078n,
},
],
lockTime: 0,
@@ -1558,26 +1558,26 @@
},
inputScript:
'4830450221008f8052c8b78a4d250f4596b3a14c85fb2d253ce20d972422829dc4a68a87320702202b7d272a96996bab1914f693939dfc6300184f5f3db0acc5acfc155ba19d7642412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12233856,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12233856n,
},
],
outputs: [
{
- value: 3300,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3300n,
},
{
- value: 12230101,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'a5f2a143eeec451c0714e430dd5553cbee26f6f05571a316dfb784b3454855d9',
outIdx: 0,
},
+ sats: 12230101n,
},
],
lockTime: 0,
@@ -1604,30 +1604,30 @@
},
inputScript:
'473044022038c75f93d7abe8e6e63c0981203acd48c7e6df92ba52cc9399df84b0b367ee200220356508913a5f8ad94d126891fea372bb2bf66a249bdb63332a4625cb359865f8412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12235011,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12235011n,
},
],
outputs: [
{
- value: 0,
outputScript: '6a04007461620454657374',
+ sats: 0n,
},
{
- value: 700,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 700n,
},
{
- value: 12233856,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'bdd18f49a557c57b79da4b8a3165be6202fb48809486ec04424de99f52abeee8',
outIdx: 0,
},
+ sats: 12233856n,
},
],
lockTime: 0,
@@ -1654,30 +1654,30 @@
},
inputScript:
'483045022100f288e71276e2389744ecb3c98bdf0c119d19966ac086c5f5908f8c3a878aa7e402203c07905536720391f472457f52f5cf6aaeb4fa02fdf59722f25768a36fd6157f412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12243166,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12243166n,
},
],
outputs: [
{
- value: 7700,
outputScript:
'76a9146ffbe7c7d7bd01295eb1e371de9550339bdcf9fd88ac',
spentBy: {
txid: '04eedd3f4b4dc9727e393ad3e774f2dc0c6acf9e920dc6fcbcbf95ed9b98477c',
outIdx: 3,
},
+ sats: 7700n,
},
{
- value: 12235011,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '71c0f2d76c81bb91c6bf4de69693d95e8f043af9e055e949616443090f961d80',
outIdx: 0,
},
+ sats: 12235011n,
},
],
lockTime: 0,
@@ -1704,30 +1704,30 @@
},
inputScript:
'483045022100d541ef12cc57c3b3cc95b338aec21775b27441d12eda662dcff23a46d07cc9450220467d2aae0dadcae787db33dab6adc86ec47aafea0133cc2130a62bb8247491d6412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 14743621,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 14743621n,
},
],
outputs: [
{
- value: 2500000,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '55388f67ab1b23d2e6c146472b836c1ba1df33dd9b7685bed34c6c9ce6fe5c0e',
outIdx: 0,
},
+ sats: 2500000n,
},
{
- value: 12243166,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '3f7cbb380b2ad014fc6e95f2d4c10eda2f37c5686f6739af562e6e855c457b3b',
outIdx: 0,
},
+ sats: 12243166n,
},
],
lockTime: 0,
@@ -1754,35 +1754,35 @@
},
inputScript:
'473044022046faa2cc8efc0a06b2cfa8b80b658d4dc09bc1524cba1cb4ab456f8bc9ebf37902205074d7975824a06d6cba90dc91503f29801d9c180253bbe4ecefb42ddc82da6d412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 14746276,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 14746276n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624c810406fe30e60d38c4408043ca5b43cd515db4b10af477007962db6d019eeb9c3f6734c495574368da107bb00b32a27d096069706a0fb91fe18d0d8281c1b826fdd862a1955dd0d28b4e0245c862085f172d3947ca202953095ed014258f069c4d3fc36706e842b6643061e4ce70b91fb5b5b206de4d3b81a621ad9d4456c3f0cf6b',
+ sats: 0n,
},
{
- value: 2200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '31e5bf25b892e173483c7b100a5b0fcda03cac9337c335fda3b3a5cf17b64759',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 14743621,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'bd0101c9389c5e1fada4662ea9ba7c8d71f949743e42f2db563cb0ec96bd10a3',
outIdx: 0,
},
+ sats: 14743621n,
},
],
lockTime: 0,
@@ -1809,30 +1809,30 @@
},
inputScript:
'47304402204c6140c524e40653e85440aff615af47a481accc9dc8b45548d59a3ae91d3a0802200aa1667d00b16d3a80c5d4d1b4cabeee415289ef6818496f92abf9ec2db8262c412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 14748931,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 14748931n,
},
],
outputs: [
{
- value: 2200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '46158de814d73ded1a8f91221c85d9c91c696eaf14f0bd10e6fa7215bacf7852',
outIdx: 1,
},
+ sats: 2200n,
},
{
- value: 14746276,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '20230f564987e644070e35fa4a809b8d697c725023a903c638194231ddf9cfd3',
outIdx: 0,
},
+ sats: 14746276n,
},
],
lockTime: 0,
@@ -1859,30 +1859,30 @@
},
inputScript:
'483045022100f50735a67538602ec240725f9160bdfc96b4ae443fff2cebaf25485e8f98f5720220584ab745222cc7a0cd33d6f287885781b8009bc1e819b9b97436ecdb31abeff2412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 49545,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 49545n,
},
],
outputs: [
{
- value: 1300,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '98c11ba510f0870c8c9fba69827e712c8dca3695edb6893b41588322496afa18',
outIdx: 1,
},
+ sats: 1300n,
},
{
- value: 47790,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'd11d964010240aceb9cab32c200a87d2f44330852cc1f16a5e9daeed00d3a465',
outIdx: 1,
},
+ sats: 47790n,
},
],
lockTime: 0,
@@ -1909,30 +1909,30 @@
},
inputScript:
'483045022100ac91ae0c612165e500605ae41080a30be891ef757c378733bfe5533f331d0e97022020babc7d6a267fc5fbab8ba9740968732978abf4cf63e049721c008532204bf8412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 47562,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 47562n,
},
],
outputs: [
{
- value: 1200,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 1,
},
+ sats: 1200n,
},
{
- value: 45907,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'c5628a5ebac844a6e62bff2319558711c0d61423b2c222761945414b1f604c68',
outIdx: 1,
},
+ sats: 45907n,
},
],
lockTime: 0,
@@ -1959,30 +1959,30 @@
},
inputScript:
'48304502210086a6072eaabb3502c73cbb6701c04edca374de60d62b888614d76b352203e9d602205721cec95da5a0ceda4cf54bf4bf8f54bec3d07b1caa75e1d65a87d8b5572f0f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1100,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 0,
},
+ sats: 1100n,
},
{
- value: 1745,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'c5628a5ebac844a6e62bff2319558711c0d61423b2c222761945414b1f604c68',
outIdx: 0,
},
+ sats: 1745n,
},
],
lockTime: 0,
@@ -2009,10 +2009,10 @@
},
inputScript:
'47304402207031eafbfb4f762f1eb719defa8cb890f55085c593244eecce57082b7013fd4f02205178c40c57903baa3d9ebf554d2f3892859599b6e358e10725db81c14de4c80f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
{
prevOut: {
@@ -2021,7 +2021,6 @@
},
inputScript:
'473044022058d957ffc312b4f9eefd71fb2c708e0a82bf72e56fdb322d75b4201453e413c402200df9176569cb2523f541dcff39f27c116926b214de37109775f3e5015e050604412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2031,22 +2030,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '34',
isMintBaton: false,
entryIdx: 0,
+ atoms: 34n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000508000000000000001d',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2057,17 +2056,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -2078,10 +2077,11 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '29',
isMintBaton: false,
entryIdx: 0,
+ atoms: 29n,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -2101,9 +2101,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -2125,10 +2125,10 @@
},
inputScript:
'483045022100f4734cb1a5e7a64013b5408b9d0d6bc59560b08b9e7284f8bbba217f777f772c02204625fab8a1356f96f00a463be8aa64e90f663744554df60807d1aa1e00d19c5e412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1100,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1100n,
},
{
prevOut: {
@@ -2137,10 +2137,10 @@
},
inputScript:
'483045022100892a72b025cd5cd667bace86dfc605169018d9b46fa9ba2ef963e4dbe26a471702201283b63ebe679be3c27edc7b37aff829ba34503430147e203661d4d4ec4f14a5412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 7700,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 7700n,
},
{
prevOut: {
@@ -2149,7 +2149,6 @@
},
inputScript:
'47304402203bcfcdbd76587aaa0b525edec82a5078daef892a98ae76d39accf1d874bd526d02202e2eba394d27b82c54fd3605ebafe7d6c9d2e7fa5dc769a4dc113dfbf5025a9d412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2159,22 +2158,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '126',
isMintBaton: false,
entryIdx: 0,
+ atoms: 126n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000108000000000000007d',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2185,17 +2184,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -2206,23 +2205,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '125',
isMintBaton: false,
entryIdx: 0,
+ atoms: 125n,
},
spentBy: {
txid: 'e94ba6040350284311a6409267c7c1193d6c5f19a9dd76975bbf7355f0c7ed1a',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 6655,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'b24bc776a3414479f31835e26c17713cd655dd51c30351a26d3900a126b6275e',
outIdx: 0,
},
+ sats: 6655n,
},
],
lockTime: 0,
@@ -2242,9 +2242,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -2266,30 +2266,30 @@
},
inputScript:
'4730440220606efba360bf0843f8c3fe9fab7d1cdc34852395b9045a4c3cf8f27b91d414f2022054fb11ce6e4fd2ee50ba467e94460c63e45fb563e330fc35c5caa8eea71e93b7412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1900,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '98c11ba510f0870c8c9fba69827e712c8dca3695edb6893b41588322496afa18',
outIdx: 0,
},
+ sats: 1900n,
},
{
- value: 945,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'd11d964010240aceb9cab32c200a87d2f44330852cc1f16a5e9daeed00d3a465',
outIdx: 0,
},
+ sats: 945n,
},
],
lockTime: 0,
@@ -2316,10 +2316,10 @@
},
inputScript:
'47304402204569cce381885918e300caef1e8a5388b86be871ff3e8f8f52917c26df9dde760220474e3ce3f6363a826d2772e347c296773ea838f493882e15fdc6a5181286a92c412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1700,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1700n,
},
{
prevOut: {
@@ -2328,30 +2328,30 @@
},
inputScript:
'47304402206355208bd3eae6d3468a062a6cc33340cd82e0e5def4dad1efa7caee652b21b40220619f05019e5014f1154659bbf5a46f4abbf93e04eecca8c509d231eb2a495f41412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1800,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'f6afd5aa9d891919f8b412136107bebc970863ea24b23c76b96cee5b3577ccd5',
outIdx: 0,
},
+ sats: 1800n,
},
{
- value: 2448,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '8af4664ffc7f23d64f0ddf76a6881d6a9c3bcf1b3f3e6562e8ed70ab5f58f4e6',
outIdx: 0,
},
+ sats: 2448n,
},
],
lockTime: 0,
@@ -2378,21 +2378,21 @@
},
inputScript:
'4730440220665f4bf3d94204649f8a1731285eb6e94940e38a3601504612374ec0a06ff27f02206276844772b498726e3e56145d42f2316da5646619d8288598f18e828426881f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
],
outputs: [
{
- value: 1700,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'f6afd5aa9d891919f8b412136107bebc970863ea24b23c76b96cee5b3577ccd5',
outIdx: 1,
},
+ sats: 1700n,
},
],
lockTime: 0,
@@ -2419,10 +2419,10 @@
},
inputScript:
'47304402204b4de25ffee112642136a6d1ad74394c7bfb984a08703d5362500a5521d346dc022053c3e887d7bb27a2525140789a7f450b0995781787ce28750dca1421b746721f412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 43783281,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 43783281n,
},
{
prevOut: {
@@ -2431,7 +2431,6 @@
},
inputScript:
'483045022100d4d1566db73386cd9580ff6f2c60e1536993b459fb3b199d7514fbd6fb5042ca0220590e88aa183ed6a756fbb8d8ba4bf5133f578746a917fab1e1b8e712543c5861412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2441,22 +2440,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44203515f4a9851ad44124e0ddf6149344deb27a97720fc7e5254a9d2c86da7415a9080000000000000063',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2467,23 +2466,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '99',
isMintBaton: false,
entryIdx: 0,
+ atoms: 99n,
},
spentBy: {
txid: 'a39c15bc372916359d79196a67f4edbacc515b0a9b8b9a9395e4eb13a9ef2a07',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 43781463,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'fcf45f6f12a4442bf206f85c87dfb7cfccdf438927fabbfe314a2c780545dcf9',
outIdx: 0,
},
+ sats: 43781463n,
},
],
lockTime: 0,
@@ -2503,9 +2503,9 @@
isInvalid: false,
burnSummary: 'Unexpected burn: Burns 1 base tokens',
failedColorings: [],
- actualBurnAmount: '1',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 1n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -2527,35 +2527,35 @@
},
inputScript:
'483045022100e43086bb67006f6d5140a3329001bc53dabe2da4dbe7feae34dd5f10311b15ad022045da448bc99003af6cf6d4c74ec9891c60932013dde7451abca4a6bc40b6138d412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 10409988,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 10409988n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624ca104acd46779fb7a9a8e24656ba7ffcbc066bb78701630b0a3fd1c36a3e2b605d78e1d995ea990096a3f76077985d2194fd1a87369921545a544992c86414ed859247ab8f9c2979ed9b8fecb2cfaa7ff74f1daf6f7c00f3d97a5b942aecba54bf155d464606b6faa6f5efcbdf3f525b3283acf6867d11cfc30623c3107a87b499f68ca00602492c9cdca9b481c7f2b65a6ecd481bfdd244954b32a45c658592182ad',
+ sats: 0n,
},
{
- value: 1200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'b142b79dbda8ae4aa580220bec76ae5ee78ff2c206a39ce20138c4f371c22aca',
outIdx: 1,
},
+ sats: 1200n,
},
{
- value: 10408333,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '4263f3ceb04ec33a7cdb4d076caa4f2311fbdbb50b4330693e91d4ceb2e2fd5d',
outIdx: 0,
},
+ sats: 10408333n,
},
],
lockTime: 0,
@@ -2585,30 +2585,30 @@
},
inputScript:
'483045022100f50735a67538602ec240725f9160bdfc96b4ae443fff2cebaf25485e8f98f5720220584ab745222cc7a0cd33d6f287885781b8009bc1e819b9b97436ecdb31abeff2412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 49545,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 49545n,
},
],
outputs: [
{
- value: 1300,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '98c11ba510f0870c8c9fba69827e712c8dca3695edb6893b41588322496afa18',
outIdx: 1,
},
+ sats: 1300n,
},
{
- value: 47790,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'd11d964010240aceb9cab32c200a87d2f44330852cc1f16a5e9daeed00d3a465',
outIdx: 1,
},
+ sats: 47790n,
},
],
lockTime: 0,
@@ -2635,30 +2635,30 @@
},
inputScript:
'483045022100ac91ae0c612165e500605ae41080a30be891ef757c378733bfe5533f331d0e97022020babc7d6a267fc5fbab8ba9740968732978abf4cf63e049721c008532204bf8412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 47562,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 47562n,
},
],
outputs: [
{
- value: 1200,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 1,
},
+ sats: 1200n,
},
{
- value: 45907,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'c5628a5ebac844a6e62bff2319558711c0d61423b2c222761945414b1f604c68',
outIdx: 1,
},
+ sats: 45907n,
},
],
lockTime: 0,
@@ -2685,30 +2685,30 @@
},
inputScript:
'48304502210086a6072eaabb3502c73cbb6701c04edca374de60d62b888614d76b352203e9d602205721cec95da5a0ceda4cf54bf4bf8f54bec3d07b1caa75e1d65a87d8b5572f0f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1100,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 0,
},
+ sats: 1100n,
},
{
- value: 1745,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'c5628a5ebac844a6e62bff2319558711c0d61423b2c222761945414b1f604c68',
outIdx: 0,
},
+ sats: 1745n,
},
],
lockTime: 0,
@@ -2735,10 +2735,10 @@
},
inputScript:
'47304402207031eafbfb4f762f1eb719defa8cb890f55085c593244eecce57082b7013fd4f02205178c40c57903baa3d9ebf554d2f3892859599b6e358e10725db81c14de4c80f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
{
prevOut: {
@@ -2747,7 +2747,6 @@
},
inputScript:
'473044022058d957ffc312b4f9eefd71fb2c708e0a82bf72e56fdb322d75b4201453e413c402200df9176569cb2523f541dcff39f27c116926b214de37109775f3e5015e050604412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2757,22 +2756,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '34',
isMintBaton: false,
entryIdx: 0,
+ atoms: 34n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000508000000000000001d',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2783,17 +2782,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -2804,10 +2803,11 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '29',
isMintBaton: false,
entryIdx: 0,
+ atoms: 29n,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -2827,9 +2827,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -2851,10 +2851,10 @@
},
inputScript:
'483045022100f4734cb1a5e7a64013b5408b9d0d6bc59560b08b9e7284f8bbba217f777f772c02204625fab8a1356f96f00a463be8aa64e90f663744554df60807d1aa1e00d19c5e412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1100,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1100n,
},
{
prevOut: {
@@ -2863,10 +2863,10 @@
},
inputScript:
'483045022100892a72b025cd5cd667bace86dfc605169018d9b46fa9ba2ef963e4dbe26a471702201283b63ebe679be3c27edc7b37aff829ba34503430147e203661d4d4ec4f14a5412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 7700,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 7700n,
},
{
prevOut: {
@@ -2875,7 +2875,6 @@
},
inputScript:
'47304402203bcfcdbd76587aaa0b525edec82a5078daef892a98ae76d39accf1d874bd526d02202e2eba394d27b82c54fd3605ebafe7d6c9d2e7fa5dc769a4dc113dfbf5025a9d412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2885,22 +2884,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '126',
isMintBaton: false,
entryIdx: 0,
+ atoms: 126n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000108000000000000007d',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2911,17 +2910,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -2932,23 +2931,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '125',
isMintBaton: false,
entryIdx: 0,
+ atoms: 125n,
},
spentBy: {
txid: 'e94ba6040350284311a6409267c7c1193d6c5f19a9dd76975bbf7355f0c7ed1a',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 6655,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'b24bc776a3414479f31835e26c17713cd655dd51c30351a26d3900a126b6275e',
outIdx: 0,
},
+ sats: 6655n,
},
],
lockTime: 0,
@@ -2968,9 +2968,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -2992,30 +2992,30 @@
},
inputScript:
'4730440220606efba360bf0843f8c3fe9fab7d1cdc34852395b9045a4c3cf8f27b91d414f2022054fb11ce6e4fd2ee50ba467e94460c63e45fb563e330fc35c5caa8eea71e93b7412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1900,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '98c11ba510f0870c8c9fba69827e712c8dca3695edb6893b41588322496afa18',
outIdx: 0,
},
+ sats: 1900n,
},
{
- value: 945,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'd11d964010240aceb9cab32c200a87d2f44330852cc1f16a5e9daeed00d3a465',
outIdx: 0,
},
+ sats: 945n,
},
],
lockTime: 0,
@@ -3042,10 +3042,10 @@
},
inputScript:
'47304402204569cce381885918e300caef1e8a5388b86be871ff3e8f8f52917c26df9dde760220474e3ce3f6363a826d2772e347c296773ea838f493882e15fdc6a5181286a92c412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1700,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1700n,
},
{
prevOut: {
@@ -3054,30 +3054,30 @@
},
inputScript:
'47304402206355208bd3eae6d3468a062a6cc33340cd82e0e5def4dad1efa7caee652b21b40220619f05019e5014f1154659bbf5a46f4abbf93e04eecca8c509d231eb2a495f41412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1800,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'f6afd5aa9d891919f8b412136107bebc970863ea24b23c76b96cee5b3577ccd5',
outIdx: 0,
},
+ sats: 1800n,
},
{
- value: 2448,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '8af4664ffc7f23d64f0ddf76a6881d6a9c3bcf1b3f3e6562e8ed70ab5f58f4e6',
outIdx: 0,
},
+ sats: 2448n,
},
],
lockTime: 0,
@@ -3104,21 +3104,21 @@
},
inputScript:
'4730440220665f4bf3d94204649f8a1731285eb6e94940e38a3601504612374ec0a06ff27f02206276844772b498726e3e56145d42f2316da5646619d8288598f18e828426881f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
],
outputs: [
{
- value: 1700,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'f6afd5aa9d891919f8b412136107bebc970863ea24b23c76b96cee5b3577ccd5',
outIdx: 1,
},
+ sats: 1700n,
},
],
lockTime: 0,
@@ -3145,10 +3145,10 @@
},
inputScript:
'47304402204b4de25ffee112642136a6d1ad74394c7bfb984a08703d5362500a5521d346dc022053c3e887d7bb27a2525140789a7f450b0995781787ce28750dca1421b746721f412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 43783281,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 43783281n,
},
{
prevOut: {
@@ -3157,7 +3157,6 @@
},
inputScript:
'483045022100d4d1566db73386cd9580ff6f2c60e1536993b459fb3b199d7514fbd6fb5042ca0220590e88aa183ed6a756fbb8d8ba4bf5133f578746a917fab1e1b8e712543c5861412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -3167,22 +3166,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44203515f4a9851ad44124e0ddf6149344deb27a97720fc7e5254a9d2c86da7415a9080000000000000063',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -3193,23 +3192,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '99',
isMintBaton: false,
entryIdx: 0,
+ atoms: 99n,
},
spentBy: {
txid: 'a39c15bc372916359d79196a67f4edbacc515b0a9b8b9a9395e4eb13a9ef2a07',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 43781463,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'fcf45f6f12a4442bf206f85c87dfb7cfccdf438927fabbfe314a2c780545dcf9',
outIdx: 0,
},
+ sats: 43781463n,
},
],
lockTime: 0,
@@ -3229,9 +3229,9 @@
isInvalid: false,
burnSummary: 'Unexpected burn: Burns 1 base tokens',
failedColorings: [],
- actualBurnAmount: '1',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 1n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -3253,35 +3253,35 @@
},
inputScript:
'483045022100e43086bb67006f6d5140a3329001bc53dabe2da4dbe7feae34dd5f10311b15ad022045da448bc99003af6cf6d4c74ec9891c60932013dde7451abca4a6bc40b6138d412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 10409988,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 10409988n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624ca104acd46779fb7a9a8e24656ba7ffcbc066bb78701630b0a3fd1c36a3e2b605d78e1d995ea990096a3f76077985d2194fd1a87369921545a544992c86414ed859247ab8f9c2979ed9b8fecb2cfaa7ff74f1daf6f7c00f3d97a5b942aecba54bf155d464606b6faa6f5efcbdf3f525b3283acf6867d11cfc30623c3107a87b499f68ca00602492c9cdca9b481c7f2b65a6ecd481bfdd244954b32a45c658592182ad',
+ sats: 0n,
},
{
- value: 1200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'b142b79dbda8ae4aa580220bec76ae5ee78ff2c206a39ce20138c4f371c22aca',
outIdx: 1,
},
+ sats: 1200n,
},
{
- value: 10408333,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '4263f3ceb04ec33a7cdb4d076caa4f2311fbdbb50b4330693e91d4ceb2e2fd5d',
outIdx: 0,
},
+ sats: 10408333n,
},
],
lockTime: 0,
@@ -3311,20 +3311,19 @@
},
inputScript:
'473044022024a187f6dc32082e765eeb37e1a6726e99871b3df0c385ad135ddcf73df0e79102203b81d7eb112a193e23147974432bb12116d75e995aa8c3b6a51943cc4dbd8694412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12214100,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12214100n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303434b410d4368726f6e696b20416c7068611468747470733a2f2f636173687461622e636f6d2f4c0001084c000800000014b230ce38',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -3335,23 +3334,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '88888888888',
isMintBaton: false,
entryIdx: 0,
+ atoms: 88888888888n,
},
spentBy: {
txid: 'a83257b2facf7c6d4f8df9a307dee9cc79af9323b8bb803994d5c967bf916569',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 12213031,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '5fc6f53ef0f94e66d5f6983402441cfdece1dbd35bd500b6e15881d1b37aa93f',
outIdx: 67,
},
+ sats: 12213031n,
},
],
lockTime: 0,
@@ -3371,9 +3371,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -3395,31 +3395,31 @@
},
inputScript:
'47304402201623de13a2cd38d379a08dbee1cb2239571b6166bf9923ffe44ae108fd21931c022030dcd5b08a997dcaa7af505a5e513985317b2da91d2f4d4879ee941e3b8931ad412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12218055,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12218055n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624c910458f886baf61daf6fa1909aab79e30bca8d35d634c6c5e969b2157b87e67fa010252a9fd1eebeed00075d0fb7bcc0dcb73b41cc73adacdae2be18d31643ad3f33d95f9a97e7cf00b2231fd0a7d37f36d082c86a392bde59eac693c002f861082d7d3cbc23eafd4511afe3619bfc0f0c028454038dee71a6e7796395574b9a06b9bf7aaf0cd607e59f4ad641393d746f88',
+ sats: 0n,
},
{
- value: 3500,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3500n,
},
{
- value: 12214100,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '56e9b1d16c9989186c846187db57d9a9389c3ecc74e7237c1d1d0327cf904a55',
outIdx: 0,
},
+ sats: 12214100n,
},
],
lockTime: 0,
@@ -3446,40 +3446,40 @@
},
inputScript:
'47304402202267233e578abb21efa28bc606501f582f94915d3b07ceedff39750877c7211d02206cfec78f41fe58723938c199fa908f4e13ebb298cc989be30faa1e6838c22af1412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12224078,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12224078n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04007461621c54657374696e67206d756c74692d73656e642077697468206e6f7465',
+ sats: 0n,
},
{
- value: 2200,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '10df437f64451165ac1eb371cef97aab8602d6d61c57eb97811fe724fe7371c3',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 3300,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3300n,
},
{
- value: 12218055,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'd27609956b0e4313f807fd58b82cc77f9b2bba1a792eac02707462a3d6863958',
outIdx: 0,
},
+ sats: 12218055n,
},
],
lockTime: 0,
@@ -3506,35 +3506,35 @@
},
inputScript:
'483045022100f3e4140c8f1614612c07ffe4d35e697d5ffd0931d7b18b9360f5f431c6704d11022002b5fd03e7f9b849fec1c0374dc3df2f1f2dae333980bd02aaa3710b66d1eb0e412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12230101,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12230101n,
},
],
outputs: [
{
- value: 3300,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3300n,
},
{
- value: 2200,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: 'ff40dc28bd694b45d782be8c1726417b8db51fd466e429cf3ee906c9dab0b650',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 12224078,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'd0470ea0b1e0d5cc6a20085ca1436e8c4752415a450a981ef2dd23105bbe2550',
outIdx: 0,
},
+ sats: 12224078n,
},
],
lockTime: 0,
@@ -3561,26 +3561,26 @@
},
inputScript:
'4830450221008f8052c8b78a4d250f4596b3a14c85fb2d253ce20d972422829dc4a68a87320702202b7d272a96996bab1914f693939dfc6300184f5f3db0acc5acfc155ba19d7642412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12233856,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12233856n,
},
],
outputs: [
{
- value: 3300,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 3300n,
},
{
- value: 12230101,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'a5f2a143eeec451c0714e430dd5553cbee26f6f05571a316dfb784b3454855d9',
outIdx: 0,
},
+ sats: 12230101n,
},
],
lockTime: 0,
@@ -3607,30 +3607,30 @@
},
inputScript:
'473044022038c75f93d7abe8e6e63c0981203acd48c7e6df92ba52cc9399df84b0b367ee200220356508913a5f8ad94d126891fea372bb2bf66a249bdb63332a4625cb359865f8412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12235011,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12235011n,
},
],
outputs: [
{
- value: 0,
outputScript: '6a04007461620454657374',
+ sats: 0n,
},
{
- value: 700,
outputScript:
'76a9149ee95bbfbdd2cf0eb6005bd75f717e4193b5913488ac',
+ sats: 700n,
},
{
- value: 12233856,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'bdd18f49a557c57b79da4b8a3165be6202fb48809486ec04424de99f52abeee8',
outIdx: 0,
},
+ sats: 12233856n,
},
],
lockTime: 0,
@@ -3657,30 +3657,30 @@
},
inputScript:
'483045022100f288e71276e2389744ecb3c98bdf0c119d19966ac086c5f5908f8c3a878aa7e402203c07905536720391f472457f52f5cf6aaeb4fa02fdf59722f25768a36fd6157f412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 12243166,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 12243166n,
},
],
outputs: [
{
- value: 7700,
outputScript:
'76a9146ffbe7c7d7bd01295eb1e371de9550339bdcf9fd88ac',
spentBy: {
txid: '04eedd3f4b4dc9727e393ad3e774f2dc0c6acf9e920dc6fcbcbf95ed9b98477c',
outIdx: 3,
},
+ sats: 7700n,
},
{
- value: 12235011,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '71c0f2d76c81bb91c6bf4de69693d95e8f043af9e055e949616443090f961d80',
outIdx: 0,
},
+ sats: 12235011n,
},
],
lockTime: 0,
@@ -3707,30 +3707,30 @@
},
inputScript:
'483045022100d541ef12cc57c3b3cc95b338aec21775b27441d12eda662dcff23a46d07cc9450220467d2aae0dadcae787db33dab6adc86ec47aafea0133cc2130a62bb8247491d6412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 14743621,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 14743621n,
},
],
outputs: [
{
- value: 2500000,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '55388f67ab1b23d2e6c146472b836c1ba1df33dd9b7685bed34c6c9ce6fe5c0e',
outIdx: 0,
},
+ sats: 2500000n,
},
{
- value: 12243166,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '3f7cbb380b2ad014fc6e95f2d4c10eda2f37c5686f6739af562e6e855c457b3b',
outIdx: 0,
},
+ sats: 12243166n,
},
],
lockTime: 0,
@@ -3757,35 +3757,35 @@
},
inputScript:
'473044022046faa2cc8efc0a06b2cfa8b80b658d4dc09bc1524cba1cb4ab456f8bc9ebf37902205074d7975824a06d6cba90dc91503f29801d9c180253bbe4ecefb42ddc82da6d412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 14746276,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 14746276n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624c810406fe30e60d38c4408043ca5b43cd515db4b10af477007962db6d019eeb9c3f6734c495574368da107bb00b32a27d096069706a0fb91fe18d0d8281c1b826fdd862a1955dd0d28b4e0245c862085f172d3947ca202953095ed014258f069c4d3fc36706e842b6643061e4ce70b91fb5b5b206de4d3b81a621ad9d4456c3f0cf6b',
+ sats: 0n,
},
{
- value: 2200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '31e5bf25b892e173483c7b100a5b0fcda03cac9337c335fda3b3a5cf17b64759',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 14743621,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: 'bd0101c9389c5e1fada4662ea9ba7c8d71f949743e42f2db563cb0ec96bd10a3',
outIdx: 0,
},
+ sats: 14743621n,
},
],
lockTime: 0,
@@ -3812,30 +3812,30 @@
},
inputScript:
'47304402204c6140c524e40653e85440aff615af47a481accc9dc8b45548d59a3ae91d3a0802200aa1667d00b16d3a80c5d4d1b4cabeee415289ef6818496f92abf9ec2db8262c412102c0850ac54a3915aa762c1ada2f50076b2aa4bc7d188eee9b5af6ddfa412a363f',
- value: 14748931,
sequenceNo: 4294967295,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
+ sats: 14748931n,
},
],
outputs: [
{
- value: 2200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '46158de814d73ded1a8f91221c85d9c91c696eaf14f0bd10e6fa7215bacf7852',
outIdx: 1,
},
+ sats: 2200n,
},
{
- value: 14746276,
outputScript:
'76a914a9f494266e4b3c823712f27dedcb83e30b2fe59f88ac',
spentBy: {
txid: '20230f564987e644070e35fa4a809b8d697c725023a903c638194231ddf9cfd3',
outIdx: 0,
},
+ sats: 14746276n,
},
],
lockTime: 0,
@@ -3862,10 +3862,10 @@
},
inputScript:
'483045022100920a6f8696b0fadd7b82f3450090cd7f198d7287551bb8f08065951c7e5f9455022004d5d8304b056f2f4a6474392665cf8dfd897ea02f18506aced86b552482e404412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
{
prevOut: {
@@ -3874,7 +3874,6 @@
},
inputScript:
'4830450221008461ccf6961f300a0f8c7ec5526813b531aea5033cacef6d15ab7e033f50130102206d22a9a7bd0ec2f04ace2c0642f233fea3bbed7ee677e53416845a0bfd367044412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -3884,22 +3883,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '17',
isMintBaton: false,
entryIdx: 0,
+ atoms: 17n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000e080000000000000003',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -3910,17 +3909,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '14',
isMintBaton: false,
entryIdx: 0,
+ atoms: 14n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 4,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -3931,19 +3930,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
entryIdx: 0,
+ atoms: 3n,
},
+ sats: 546n,
},
{
- value: 1482,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '0e8940542ea369db5a9828c5b382ab59e9b33b93ae17dc9c2fabc50ea77dcbea',
outIdx: 2,
},
+ sats: 1482n,
},
],
lockTime: 0,
@@ -3963,9 +3963,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -3982,10 +3982,10 @@
},
inputScript:
'473044022064c39d8fa6b89fcd0961d06ee7c6976c798b2de6f33bdd58b6db56a2c45b235102204444a625e5328eee7139110c03100bdc062292f28d6de8e2b36536a39d2466df412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1200n,
},
{
prevOut: {
@@ -3994,10 +3994,10 @@
},
inputScript:
'483045022100cff4ca28b0bd320f4aa7bd3029b0c1e48c392b42c56b7dfdca292bbb14302e5f02206bc74177a98481e49c937a6229ebd8191f653a363c95cd37b69f1300f05f6d3a412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
{
prevOut: {
@@ -4006,7 +4006,6 @@
},
inputScript:
'483045022100ad48dd7d1196b108e3ee0412edcbe468031dcf48244b9b4b57f6cc9e710c836602202e5a00a2c9e1e6fc8937af70fcb8018e299dd007235229e6e3d87f6af9f8761c412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -4016,22 +4015,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '228',
isMintBaton: false,
entryIdx: 0,
+ atoms: 228n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000d0800000000000000d7',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -4042,17 +4041,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '13',
isMintBaton: false,
entryIdx: 0,
+ atoms: 13n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 3,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -4063,19 +4062,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '215',
isMintBaton: false,
entryIdx: 0,
+ atoms: 215n,
},
+ sats: 546n,
},
{
- value: 1255,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '0e8940542ea369db5a9828c5b382ab59e9b33b93ae17dc9c2fabc50ea77dcbea',
outIdx: 0,
},
+ sats: 1255n,
},
],
lockTime: 0,
@@ -4095,9 +4095,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -4114,21 +4114,21 @@
},
inputScript:
'483045022100c30541783609812c5a4066e6395488f3bcabc0cd5a21444d79868c31016b5c9f02200d1c7709f414411a3e3cd9dbf606648339fb2c309b016e490d52aa565510e151412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1700,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1700n,
},
],
outputs: [
{
- value: 1200,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'c8ff3624364c59b0243f8bd341295d9afd6f12b95a2cd7e2630a206120e60bf8',
outIdx: 0,
},
+ sats: 1200n,
},
],
lockTime: 0,
@@ -4150,30 +4150,30 @@
},
inputScript:
'47304402202608525692251d17e680b7856da6abda3e92b51fbfc4fc852586355bde4fe6d30220737203dc6832383b5cc1edc45bbc972a7c18e6b3de69fd8f0cc93b0a0fbd3fa5412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 5500,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 5500n,
},
],
outputs: [
{
- value: 1100,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 2,
},
+ sats: 1100n,
},
{
- value: 3945,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '44898363021248564c3e3b83e1852b1e764e3c9898170ea4a421ac950f5bdd4f',
outIdx: 0,
},
+ sats: 3945n,
},
],
lockTime: 0,
@@ -4195,30 +4195,30 @@
},
inputScript:
'483045022100ed4f81298d98a4d9c16749cd50ed050dcbbba30266e7c1605f08142ca3f8b9390220298f5290847be114fa33eb931985ea9dd61c39043112db3fcdfcf1efad508247412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
],
outputs: [
{
- value: 1000,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'c8ff3624364c59b0243f8bd341295d9afd6f12b95a2cd7e2630a206120e60bf8',
outIdx: 1,
},
+ sats: 1000n,
},
{
- value: 745,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '0e8940542ea369db5a9828c5b382ab59e9b33b93ae17dc9c2fabc50ea77dcbea',
outIdx: 1,
},
+ sats: 745n,
},
],
lockTime: 0,
@@ -4240,30 +4240,30 @@
},
inputScript:
'483045022100f50735a67538602ec240725f9160bdfc96b4ae443fff2cebaf25485e8f98f5720220584ab745222cc7a0cd33d6f287885781b8009bc1e819b9b97436ecdb31abeff2412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 49545,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 49545n,
},
],
outputs: [
{
- value: 1300,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '98c11ba510f0870c8c9fba69827e712c8dca3695edb6893b41588322496afa18',
outIdx: 1,
},
+ sats: 1300n,
},
{
- value: 47790,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'd11d964010240aceb9cab32c200a87d2f44330852cc1f16a5e9daeed00d3a465',
outIdx: 1,
},
+ sats: 47790n,
},
],
lockTime: 0,
@@ -4290,30 +4290,30 @@
},
inputScript:
'483045022100ac91ae0c612165e500605ae41080a30be891ef757c378733bfe5533f331d0e97022020babc7d6a267fc5fbab8ba9740968732978abf4cf63e049721c008532204bf8412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 47562,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 47562n,
},
],
outputs: [
{
- value: 1200,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 1,
},
+ sats: 1200n,
},
{
- value: 45907,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'c5628a5ebac844a6e62bff2319558711c0d61423b2c222761945414b1f604c68',
outIdx: 1,
},
+ sats: 45907n,
},
],
lockTime: 0,
@@ -4340,30 +4340,30 @@
},
inputScript:
'48304502210086a6072eaabb3502c73cbb6701c04edca374de60d62b888614d76b352203e9d602205721cec95da5a0ceda4cf54bf4bf8f54bec3d07b1caa75e1d65a87d8b5572f0f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1100,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 0,
},
+ sats: 1100n,
},
{
- value: 1745,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'c5628a5ebac844a6e62bff2319558711c0d61423b2c222761945414b1f604c68',
outIdx: 0,
},
+ sats: 1745n,
},
],
lockTime: 0,
@@ -4390,10 +4390,10 @@
},
inputScript:
'47304402207031eafbfb4f762f1eb719defa8cb890f55085c593244eecce57082b7013fd4f02205178c40c57903baa3d9ebf554d2f3892859599b6e358e10725db81c14de4c80f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
{
prevOut: {
@@ -4402,7 +4402,6 @@
},
inputScript:
'473044022058d957ffc312b4f9eefd71fb2c708e0a82bf72e56fdb322d75b4201453e413c402200df9176569cb2523f541dcff39f27c116926b214de37109775f3e5015e050604412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -4412,22 +4411,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '34',
isMintBaton: false,
entryIdx: 0,
+ atoms: 34n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000508000000000000001d',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -4438,17 +4437,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -4459,10 +4458,11 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '29',
isMintBaton: false,
entryIdx: 0,
+ atoms: 29n,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -4482,9 +4482,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -4506,30 +4506,30 @@
},
inputScript:
'4730440220606efba360bf0843f8c3fe9fab7d1cdc34852395b9045a4c3cf8f27b91d414f2022054fb11ce6e4fd2ee50ba467e94460c63e45fb563e330fc35c5caa8eea71e93b7412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1900,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '98c11ba510f0870c8c9fba69827e712c8dca3695edb6893b41588322496afa18',
outIdx: 0,
},
+ sats: 1900n,
},
{
- value: 945,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'd11d964010240aceb9cab32c200a87d2f44330852cc1f16a5e9daeed00d3a465',
outIdx: 0,
},
+ sats: 945n,
},
],
lockTime: 0,
@@ -4559,10 +4559,10 @@
},
inputScript:
'483045022100920a6f8696b0fadd7b82f3450090cd7f198d7287551bb8f08065951c7e5f9455022004d5d8304b056f2f4a6474392665cf8dfd897ea02f18506aced86b552482e404412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
{
prevOut: {
@@ -4571,7 +4571,6 @@
},
inputScript:
'4830450221008461ccf6961f300a0f8c7ec5526813b531aea5033cacef6d15ab7e033f50130102206d22a9a7bd0ec2f04ace2c0642f233fea3bbed7ee677e53416845a0bfd367044412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -4581,22 +4580,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '17',
isMintBaton: false,
entryIdx: 0,
+ atoms: 17n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000e080000000000000003',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -4607,17 +4606,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '14',
isMintBaton: false,
entryIdx: 0,
+ atoms: 14n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 4,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -4628,19 +4627,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
entryIdx: 0,
+ atoms: 3n,
},
+ sats: 546n,
},
{
- value: 1482,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '0e8940542ea369db5a9828c5b382ab59e9b33b93ae17dc9c2fabc50ea77dcbea',
outIdx: 2,
},
+ sats: 1482n,
},
],
lockTime: 0,
@@ -4660,9 +4660,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -4679,10 +4679,10 @@
},
inputScript:
'473044022064c39d8fa6b89fcd0961d06ee7c6976c798b2de6f33bdd58b6db56a2c45b235102204444a625e5328eee7139110c03100bdc062292f28d6de8e2b36536a39d2466df412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1200n,
},
{
prevOut: {
@@ -4691,10 +4691,10 @@
},
inputScript:
'483045022100cff4ca28b0bd320f4aa7bd3029b0c1e48c392b42c56b7dfdca292bbb14302e5f02206bc74177a98481e49c937a6229ebd8191f653a363c95cd37b69f1300f05f6d3a412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
{
prevOut: {
@@ -4703,7 +4703,6 @@
},
inputScript:
'483045022100ad48dd7d1196b108e3ee0412edcbe468031dcf48244b9b4b57f6cc9e710c836602202e5a00a2c9e1e6fc8937af70fcb8018e299dd007235229e6e3d87f6af9f8761c412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -4713,22 +4712,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '228',
isMintBaton: false,
entryIdx: 0,
+ atoms: 228n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000d0800000000000000d7',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -4739,17 +4738,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '13',
isMintBaton: false,
entryIdx: 0,
+ atoms: 13n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 3,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -4760,19 +4759,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '215',
isMintBaton: false,
entryIdx: 0,
+ atoms: 215n,
},
+ sats: 546n,
},
{
- value: 1255,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '0e8940542ea369db5a9828c5b382ab59e9b33b93ae17dc9c2fabc50ea77dcbea',
outIdx: 0,
},
+ sats: 1255n,
},
],
lockTime: 0,
@@ -4792,9 +4792,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -4811,21 +4811,21 @@
},
inputScript:
'483045022100c30541783609812c5a4066e6395488f3bcabc0cd5a21444d79868c31016b5c9f02200d1c7709f414411a3e3cd9dbf606648339fb2c309b016e490d52aa565510e151412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1700,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1700n,
},
],
outputs: [
{
- value: 1200,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'c8ff3624364c59b0243f8bd341295d9afd6f12b95a2cd7e2630a206120e60bf8',
outIdx: 0,
},
+ sats: 1200n,
},
],
lockTime: 0,
@@ -4847,30 +4847,30 @@
},
inputScript:
'47304402202608525692251d17e680b7856da6abda3e92b51fbfc4fc852586355bde4fe6d30220737203dc6832383b5cc1edc45bbc972a7c18e6b3de69fd8f0cc93b0a0fbd3fa5412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 5500,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 5500n,
},
],
outputs: [
{
- value: 1100,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 2,
},
+ sats: 1100n,
},
{
- value: 3945,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '44898363021248564c3e3b83e1852b1e764e3c9898170ea4a421ac950f5bdd4f',
outIdx: 0,
},
+ sats: 3945n,
},
],
lockTime: 0,
@@ -4892,30 +4892,30 @@
},
inputScript:
'483045022100ed4f81298d98a4d9c16749cd50ed050dcbbba30266e7c1605f08142ca3f8b9390220298f5290847be114fa33eb931985ea9dd61c39043112db3fcdfcf1efad508247412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
],
outputs: [
{
- value: 1000,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'c8ff3624364c59b0243f8bd341295d9afd6f12b95a2cd7e2630a206120e60bf8',
outIdx: 1,
},
+ sats: 1000n,
},
{
- value: 745,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '0e8940542ea369db5a9828c5b382ab59e9b33b93ae17dc9c2fabc50ea77dcbea',
outIdx: 1,
},
+ sats: 745n,
},
],
lockTime: 0,
@@ -4937,30 +4937,30 @@
},
inputScript:
'483045022100f50735a67538602ec240725f9160bdfc96b4ae443fff2cebaf25485e8f98f5720220584ab745222cc7a0cd33d6f287885781b8009bc1e819b9b97436ecdb31abeff2412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 49545,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 49545n,
},
],
outputs: [
{
- value: 1300,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '98c11ba510f0870c8c9fba69827e712c8dca3695edb6893b41588322496afa18',
outIdx: 1,
},
+ sats: 1300n,
},
{
- value: 47790,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'd11d964010240aceb9cab32c200a87d2f44330852cc1f16a5e9daeed00d3a465',
outIdx: 1,
},
+ sats: 47790n,
},
],
lockTime: 0,
@@ -4987,30 +4987,30 @@
},
inputScript:
'483045022100ac91ae0c612165e500605ae41080a30be891ef757c378733bfe5533f331d0e97022020babc7d6a267fc5fbab8ba9740968732978abf4cf63e049721c008532204bf8412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 47562,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 47562n,
},
],
outputs: [
{
- value: 1200,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 1,
},
+ sats: 1200n,
},
{
- value: 45907,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'c5628a5ebac844a6e62bff2319558711c0d61423b2c222761945414b1f604c68',
outIdx: 1,
},
+ sats: 45907n,
},
],
lockTime: 0,
@@ -5037,30 +5037,30 @@
},
inputScript:
'48304502210086a6072eaabb3502c73cbb6701c04edca374de60d62b888614d76b352203e9d602205721cec95da5a0ceda4cf54bf4bf8f54bec3d07b1caa75e1d65a87d8b5572f0f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1100,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '96e8fe9856fd14994ce02fda65344d2929cfc37db3a56636379b6cd2ec9f5090',
outIdx: 0,
},
+ sats: 1100n,
},
{
- value: 1745,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'c5628a5ebac844a6e62bff2319558711c0d61423b2c222761945414b1f604c68',
outIdx: 0,
},
+ sats: 1745n,
},
],
lockTime: 0,
@@ -5087,10 +5087,10 @@
},
inputScript:
'47304402207031eafbfb4f762f1eb719defa8cb890f55085c593244eecce57082b7013fd4f02205178c40c57903baa3d9ebf554d2f3892859599b6e358e10725db81c14de4c80f412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 2200n,
},
{
prevOut: {
@@ -5099,7 +5099,6 @@
},
inputScript:
'473044022058d957ffc312b4f9eefd71fb2c708e0a82bf72e56fdb322d75b4201453e413c402200df9176569cb2523f541dcff39f27c116926b214de37109775f3e5015e050604412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -5109,22 +5108,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '34',
isMintBaton: false,
entryIdx: 0,
+ atoms: 34n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000508000000000000001d',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -5135,17 +5134,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5n,
},
spentBy: {
txid: '1258f779801fcb0095ba69e7956ba3a375d695af5799923bfe409bc2887ab1e8',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -5156,10 +5155,11 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '29',
isMintBaton: false,
entryIdx: 0,
+ atoms: 29n,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -5179,9 +5179,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -5203,30 +5203,30 @@
},
inputScript:
'4730440220606efba360bf0843f8c3fe9fab7d1cdc34852395b9045a4c3cf8f27b91d414f2022054fb11ce6e4fd2ee50ba467e94460c63e45fb563e330fc35c5caa8eea71e93b7412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 1900,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '98c11ba510f0870c8c9fba69827e712c8dca3695edb6893b41588322496afa18',
outIdx: 0,
},
+ sats: 1900n,
},
{
- value: 945,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'd11d964010240aceb9cab32c200a87d2f44330852cc1f16a5e9daeed00d3a465',
outIdx: 0,
},
+ sats: 945n,
},
],
lockTime: 0,
@@ -5256,30 +5256,30 @@
},
inputScript:
'4730440220724f1f261ad1e2b6b21e065632c6da0ebe3701693205f5485b395d747645fdf502207062fda8367c20b3e090391994176bf5b40877c1b60e450d73a37255d6ee10dd412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 39162,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 39162n,
},
],
outputs: [
{
- value: 2500,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'b1e65a60daf031915bf3aebcf500e14a2d86f4e77c5fa043364f8a9e5698979c',
outIdx: 0,
},
+ sats: 2500n,
},
{
- value: 36207,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '66974f4a22ca1a4aa36c932b4effafcb9dd8a32b8766dfc7644ba5922252c4c6',
outIdx: 0,
},
+ sats: 36207n,
},
],
lockTime: 0,
@@ -5301,30 +5301,30 @@
},
inputScript:
'48304502210084dcee7aefac851d47e1a8dbadc4a6263fe87a661ed37541d611c8765510501f022001e606d50a8c784b0295dd7e4e5fe58f89592cf9d81f4de6daf7bdf6ee2a32a8412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 42017,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 42017n,
},
],
outputs: [
{
- value: 2400,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '3b994d17cb7e7b0adcb4b680ec1197c7cafa659bb565db61ada359352a40bcdc',
outIdx: 2,
},
+ sats: 2400n,
},
{
- value: 39162,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'fec829a1ff34a9f84058cdd8bf795c114a8fcb3bcc6c3ca9ea8b9ae68420dd9a',
outIdx: 0,
},
+ sats: 39162n,
},
],
lockTime: 0,
@@ -5346,30 +5346,30 @@
},
inputScript:
'473044022036cd1605ab5122e9769549cf953d5638022c99dcb6c838c77eeaa958e14ba5180220466cced2c01885f83e38e26821238dd0b9697c5029e232cfe6cb5356742ebe58412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 44772,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 44772n,
},
],
outputs: [
{
- value: 2300,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '312553668f596bfd61287aec1b7f0f035afb5ddadf40b6f9d1ffcec5b7d4b684',
outIdx: 0,
},
+ sats: 2300n,
},
{
- value: 42017,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '66ce76f8ebcd0ac83702c4a71e259cee9fceedf9cfdb2b08e8ebe15483e50f56',
outIdx: 0,
},
+ sats: 42017n,
},
],
lockTime: 0,
@@ -5391,30 +5391,30 @@
},
inputScript:
'47304402206be85d81c79a53dc6a598e08091ad6aededdc4a710601c9fb477cff9dab24c7402200ec9bf7b1f0ce605916b8308ebea3d8024280659229db43d53be05ed5a0be5f0412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1825562,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1825562n,
},
],
outputs: [
{
- value: 2200,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'dacd4bacb46caa3af4a57ac0449b2cb82c8a32c64645cd6a64041287d1ced556',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 1822907,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '60c6ad832e8f44ea59bb15166959b45828d8aec5554a2f70491dddf82dcda837',
outIdx: 0,
},
+ sats: 1822907n,
},
],
lockTime: 0,
@@ -5436,30 +5436,30 @@
},
inputScript:
'483045022100b6a6027d41170d2bb917b632a4a30df60ef3b51e90a27eb701f18a63a99a4313022029ccbace732ee942f8ee5773bbc4a3e3dd046af7e9ccf5889d8c333d27e302d8412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1190050,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1190050n,
},
],
outputs: [
{
- value: 2100,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'd6e5e1511b25e984f2d0850ab47ff1e9fdf8cab546fbd5f5ae36299423a9dde3',
outIdx: 0,
},
+ sats: 2100n,
},
{
- value: 1187495,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '3b40671157eaa30e277819d6bc93acf76377616edbe818d475acbd2cc4b07479',
outIdx: 0,
},
+ sats: 1187495n,
},
],
lockTime: 0,
@@ -5481,10 +5481,10 @@
},
inputScript:
'48304502210092f2508a5f19b67be121dc5d8fd70569d9275a11f2c1724db8c714ad4d06b14e02206e8a3101f8ceecc19b5508455e1542c65847951456cf884444e951d6e0cfb5ef412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 46590,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 46590n,
},
{
prevOut: {
@@ -5493,7 +5493,6 @@
},
inputScript:
'47304402200e225ab4c7d20aef968d95fbf6f881f313c9b35aef891edd4192c5320f147f2502205794732b6242c3a445ee1340ca03950e2044321b9c99bf7d5805ea36cac756dc412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -5503,22 +5502,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8832',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8832n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f4808000000000000000508000000000000227b',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -5529,17 +5528,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5n,
},
spentBy: {
txid: 'dcb6f31598fc406a2c1c1aeee86e9e1ae4c98f7ad82c7ca1341a68e92c31816c',
outIdx: 8,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -5550,23 +5549,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8827',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8827n,
},
spentBy: {
txid: '328df7f6a976c67875035acb051747c443cdac55173aef11ab1c17184162e2e9',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 44772,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '842dd09e723d664d7647bc49f911c88b60f0450e646fedb461f319dadb867934',
outIdx: 0,
},
+ sats: 44772n,
},
],
lockTime: 0,
@@ -5586,9 +5586,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -5605,10 +5605,10 @@
},
inputScript:
'47304402206a807dad013e5bbb5a78bc12349c550f1867be0ec46ebe4a18ca0ffb45b84cf802206345b92bdec24663bc4fb168d6e1601781969393e93fbcad5279fa72bde08774412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1827380,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1827380n,
},
{
prevOut: {
@@ -5617,7 +5617,6 @@
},
inputScript:
'47304402200fdb134c8a13fbd1b95ef118c247a8a911e9d52ecaafc86ebb80cc179d69c1e002200bd4dc809c998a511e09f939a3270f7a2f9babae9d75919d2fef83ed66cf7dde412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -5627,22 +5626,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8836',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8836n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48080000000000000004080000000000002280',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -5653,17 +5652,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '4',
isMintBaton: false,
entryIdx: 0,
+ atoms: 4n,
},
spentBy: {
txid: 'dcb6f31598fc406a2c1c1aeee86e9e1ae4c98f7ad82c7ca1341a68e92c31816c',
outIdx: 7,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -5674,23 +5673,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8832',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8832n,
},
spentBy: {
txid: '6bfdfbb71b71d0b1c024c777e5cc6a6b81806dbb673d4f5e65ab30476035f269',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 1825562,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'eb79e90e3b5a0b6766cbfab3efd9c52f831bef62f9f27c2aa925ee81e43b843f',
outIdx: 0,
},
+ sats: 1825562n,
},
],
lockTime: 0,
@@ -5710,9 +5710,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -5729,10 +5729,10 @@
},
inputScript:
'483045022100860067702a7ec139379913db22f4aaaca611e1d5cfd89df1c335bc9b72ee36d0022063892a87d269db12a7be0b24e721900b1f287ce9d1fb18431b2cc508ecebfdf7412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 45507,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 45507n,
},
{
prevOut: {
@@ -5741,7 +5741,6 @@
},
inputScript:
'483045022100c96c70b94f5386efff2a8873d35d7b4c29fafe11555cf2a3daea8f905fb0f73502203751a29b351cca9c337345388237b98312873f44976f08667ae6540423a8d012412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -5751,22 +5750,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8839',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8839n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48080000000000000003080000000000002284',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -5777,17 +5776,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
entryIdx: 0,
+ atoms: 3n,
},
spentBy: {
txid: 'dcb6f31598fc406a2c1c1aeee86e9e1ae4c98f7ad82c7ca1341a68e92c31816c',
outIdx: 10,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -5798,23 +5797,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8836',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8836n,
},
spentBy: {
txid: '5944386e40a401ff31940f9d41e7983bec3b617d83efba0033eba28926a2fb9e',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 43689,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '7d1929454c7e83707006e9f70000b47fc68805c3e42de6545498f39c6f96d34e',
outIdx: 0,
},
+ sats: 43689n,
},
],
lockTime: 0,
@@ -5834,9 +5834,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -5853,10 +5853,10 @@
},
inputScript:
'4730440220219fdd01482905c336ef8345973339ebe6f540fb7ff7f04d808357fd73c137b302207cb8af146cdf3ec643d85f71c9b95bc6b4fa4e0c19d5f76baf0329f4e315ab4d412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 848,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 848n,
},
{
prevOut: {
@@ -5865,10 +5865,10 @@
},
inputScript:
'483045022100f8df9b24dc337b5c7b0b41f454fb535a181aa95814d01e3e2246908fda3a5d800220417d4bd3c10d59f9655ddae4229813222abd9a5b148db1a456fde4719ea8dc56412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 4800,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 4800n,
},
{
prevOut: {
@@ -5877,7 +5877,6 @@
},
inputScript:
'483045022100dcc45ddcb243a56ddee5d050dd961d553f4f93704378ce517ad47a161c6f768b022000ef68375269494caa36c9f063ecd6181dfb77b8c4e0e09fdb0433d5a484974e412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -5887,22 +5886,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8841',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8841n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48080000000000000002080000000000002287',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -5913,17 +5912,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
entryIdx: 0,
+ atoms: 2n,
},
spentBy: {
txid: 'dcb6f31598fc406a2c1c1aeee86e9e1ae4c98f7ad82c7ca1341a68e92c31816c',
outIdx: 9,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -5934,23 +5933,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8839',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8839n,
},
spentBy: {
txid: 'd1a286475ac63df6ae51ffe69be5324b848ddf4a0acf8510d9ec266cb4e10454',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 3503,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'b808f6a831dcdfda2bd4c5f857f94e1a746a4effeda6a5ad742be6137884a4fb',
outIdx: 0,
},
+ sats: 3503n,
},
],
lockTime: 0,
@@ -5970,9 +5970,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -5989,10 +5989,10 @@
},
inputScript:
'483045022100c1717019de60065cae38519a85a80723fc3ee73573739381ee02fcaaa34a15fd022063059a69397ad3108c2f955c92d195a90e8f1f616e23df132abb6675ac5800c2412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 992,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 992n,
},
{
prevOut: {
@@ -6001,10 +6001,10 @@
},
inputScript:
'4830450221009b897d907bda2da570c5c273ab277b73c60d8fd39ba605829d0ec4b796fb7c20022011cc67871bf5df4693904fcdee80ac1adba332b14a4cdc9113b15f28e288adad412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1191203,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1191203n,
},
{
prevOut: {
@@ -6013,7 +6013,6 @@
},
inputScript:
'483045022100be82f7c67c73ecf068905a44ca2147d89b8041e54a432386b25137f7bea0d0aa0220416607e30a8d8d8c08237032eeb7728f938650a70215f6615939cd2455569539412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -6023,22 +6022,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8842',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8842n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48080000000000000001080000000000002289',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -6049,17 +6048,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
spentBy: {
txid: 'dcb6f31598fc406a2c1c1aeee86e9e1ae4c98f7ad82c7ca1341a68e92c31816c',
outIdx: 6,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -6070,23 +6069,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8841',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8841n,
},
spentBy: {
txid: 'c638754cb7707edd4faad89bdfee899aa7acbbc61f66e21f8faf60bdbb34fd65',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 1190050,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'f051b152f13004c18b5aab3b615d88af8175fa5416426fb73e3731fa530f064d',
outIdx: 0,
},
+ sats: 1190050n,
},
],
lockTime: 0,
@@ -6106,9 +6106,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -6128,30 +6128,30 @@
},
inputScript:
'4730440220724f1f261ad1e2b6b21e065632c6da0ebe3701693205f5485b395d747645fdf502207062fda8367c20b3e090391994176bf5b40877c1b60e450d73a37255d6ee10dd412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 39162,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 39162n,
},
],
outputs: [
{
- value: 2500,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'b1e65a60daf031915bf3aebcf500e14a2d86f4e77c5fa043364f8a9e5698979c',
outIdx: 0,
},
+ sats: 2500n,
},
{
- value: 36207,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '66974f4a22ca1a4aa36c932b4effafcb9dd8a32b8766dfc7644ba5922252c4c6',
outIdx: 0,
},
+ sats: 36207n,
},
],
lockTime: 0,
@@ -6173,30 +6173,30 @@
},
inputScript:
'48304502210084dcee7aefac851d47e1a8dbadc4a6263fe87a661ed37541d611c8765510501f022001e606d50a8c784b0295dd7e4e5fe58f89592cf9d81f4de6daf7bdf6ee2a32a8412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 42017,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 42017n,
},
],
outputs: [
{
- value: 2400,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '3b994d17cb7e7b0adcb4b680ec1197c7cafa659bb565db61ada359352a40bcdc',
outIdx: 2,
},
+ sats: 2400n,
},
{
- value: 39162,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'fec829a1ff34a9f84058cdd8bf795c114a8fcb3bcc6c3ca9ea8b9ae68420dd9a',
outIdx: 0,
},
+ sats: 39162n,
},
],
lockTime: 0,
@@ -6218,30 +6218,30 @@
},
inputScript:
'473044022036cd1605ab5122e9769549cf953d5638022c99dcb6c838c77eeaa958e14ba5180220466cced2c01885f83e38e26821238dd0b9697c5029e232cfe6cb5356742ebe58412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 44772,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 44772n,
},
],
outputs: [
{
- value: 2300,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '312553668f596bfd61287aec1b7f0f035afb5ddadf40b6f9d1ffcec5b7d4b684',
outIdx: 0,
},
+ sats: 2300n,
},
{
- value: 42017,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '66ce76f8ebcd0ac83702c4a71e259cee9fceedf9cfdb2b08e8ebe15483e50f56',
outIdx: 0,
},
+ sats: 42017n,
},
],
lockTime: 0,
@@ -6263,30 +6263,30 @@
},
inputScript:
'47304402206be85d81c79a53dc6a598e08091ad6aededdc4a710601c9fb477cff9dab24c7402200ec9bf7b1f0ce605916b8308ebea3d8024280659229db43d53be05ed5a0be5f0412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1825562,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1825562n,
},
],
outputs: [
{
- value: 2200,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'dacd4bacb46caa3af4a57ac0449b2cb82c8a32c64645cd6a64041287d1ced556',
outIdx: 0,
},
+ sats: 2200n,
},
{
- value: 1822907,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '60c6ad832e8f44ea59bb15166959b45828d8aec5554a2f70491dddf82dcda837',
outIdx: 0,
},
+ sats: 1822907n,
},
],
lockTime: 0,
@@ -6308,30 +6308,30 @@
},
inputScript:
'483045022100b6a6027d41170d2bb917b632a4a30df60ef3b51e90a27eb701f18a63a99a4313022029ccbace732ee942f8ee5773bbc4a3e3dd046af7e9ccf5889d8c333d27e302d8412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1190050,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1190050n,
},
],
outputs: [
{
- value: 2100,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'd6e5e1511b25e984f2d0850ab47ff1e9fdf8cab546fbd5f5ae36299423a9dde3',
outIdx: 0,
},
+ sats: 2100n,
},
{
- value: 1187495,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '3b40671157eaa30e277819d6bc93acf76377616edbe818d475acbd2cc4b07479',
outIdx: 0,
},
+ sats: 1187495n,
},
],
lockTime: 0,
@@ -6353,10 +6353,10 @@
},
inputScript:
'48304502210092f2508a5f19b67be121dc5d8fd70569d9275a11f2c1724db8c714ad4d06b14e02206e8a3101f8ceecc19b5508455e1542c65847951456cf884444e951d6e0cfb5ef412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 46590,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 46590n,
},
{
prevOut: {
@@ -6365,7 +6365,6 @@
},
inputScript:
'47304402200e225ab4c7d20aef968d95fbf6f881f313c9b35aef891edd4192c5320f147f2502205794732b6242c3a445ee1340ca03950e2044321b9c99bf7d5805ea36cac756dc412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -6375,22 +6374,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8832',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8832n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f4808000000000000000508000000000000227b',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -6401,17 +6400,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5n,
},
spentBy: {
txid: 'dcb6f31598fc406a2c1c1aeee86e9e1ae4c98f7ad82c7ca1341a68e92c31816c',
outIdx: 8,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -6422,23 +6421,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8827',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8827n,
},
spentBy: {
txid: '328df7f6a976c67875035acb051747c443cdac55173aef11ab1c17184162e2e9',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 44772,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '842dd09e723d664d7647bc49f911c88b60f0450e646fedb461f319dadb867934',
outIdx: 0,
},
+ sats: 44772n,
},
],
lockTime: 0,
@@ -6458,9 +6458,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -6477,10 +6477,10 @@
},
inputScript:
'47304402206a807dad013e5bbb5a78bc12349c550f1867be0ec46ebe4a18ca0ffb45b84cf802206345b92bdec24663bc4fb168d6e1601781969393e93fbcad5279fa72bde08774412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1827380,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1827380n,
},
{
prevOut: {
@@ -6489,7 +6489,6 @@
},
inputScript:
'47304402200fdb134c8a13fbd1b95ef118c247a8a911e9d52ecaafc86ebb80cc179d69c1e002200bd4dc809c998a511e09f939a3270f7a2f9babae9d75919d2fef83ed66cf7dde412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -6499,22 +6498,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8836',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8836n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48080000000000000004080000000000002280',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -6525,17 +6524,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '4',
isMintBaton: false,
entryIdx: 0,
+ atoms: 4n,
},
spentBy: {
txid: 'dcb6f31598fc406a2c1c1aeee86e9e1ae4c98f7ad82c7ca1341a68e92c31816c',
outIdx: 7,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -6546,23 +6545,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8832',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8832n,
},
spentBy: {
txid: '6bfdfbb71b71d0b1c024c777e5cc6a6b81806dbb673d4f5e65ab30476035f269',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 1825562,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'eb79e90e3b5a0b6766cbfab3efd9c52f831bef62f9f27c2aa925ee81e43b843f',
outIdx: 0,
},
+ sats: 1825562n,
},
],
lockTime: 0,
@@ -6582,9 +6582,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -6601,10 +6601,10 @@
},
inputScript:
'483045022100860067702a7ec139379913db22f4aaaca611e1d5cfd89df1c335bc9b72ee36d0022063892a87d269db12a7be0b24e721900b1f287ce9d1fb18431b2cc508ecebfdf7412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 45507,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 45507n,
},
{
prevOut: {
@@ -6613,7 +6613,6 @@
},
inputScript:
'483045022100c96c70b94f5386efff2a8873d35d7b4c29fafe11555cf2a3daea8f905fb0f73502203751a29b351cca9c337345388237b98312873f44976f08667ae6540423a8d012412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -6623,22 +6622,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8839',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8839n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48080000000000000003080000000000002284',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -6649,17 +6648,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3',
isMintBaton: false,
entryIdx: 0,
+ atoms: 3n,
},
spentBy: {
txid: 'dcb6f31598fc406a2c1c1aeee86e9e1ae4c98f7ad82c7ca1341a68e92c31816c',
outIdx: 10,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -6670,23 +6669,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8836',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8836n,
},
spentBy: {
txid: '5944386e40a401ff31940f9d41e7983bec3b617d83efba0033eba28926a2fb9e',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 43689,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '7d1929454c7e83707006e9f70000b47fc68805c3e42de6545498f39c6f96d34e',
outIdx: 0,
},
+ sats: 43689n,
},
],
lockTime: 0,
@@ -6706,9 +6706,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -6725,10 +6725,10 @@
},
inputScript:
'4730440220219fdd01482905c336ef8345973339ebe6f540fb7ff7f04d808357fd73c137b302207cb8af146cdf3ec643d85f71c9b95bc6b4fa4e0c19d5f76baf0329f4e315ab4d412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 848,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 848n,
},
{
prevOut: {
@@ -6737,10 +6737,10 @@
},
inputScript:
'483045022100f8df9b24dc337b5c7b0b41f454fb535a181aa95814d01e3e2246908fda3a5d800220417d4bd3c10d59f9655ddae4229813222abd9a5b148db1a456fde4719ea8dc56412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 4800,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 4800n,
},
{
prevOut: {
@@ -6749,7 +6749,6 @@
},
inputScript:
'483045022100dcc45ddcb243a56ddee5d050dd961d553f4f93704378ce517ad47a161c6f768b022000ef68375269494caa36c9f063ecd6181dfb77b8c4e0e09fdb0433d5a484974e412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -6759,22 +6758,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8841',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8841n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48080000000000000002080000000000002287',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -6785,17 +6784,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
entryIdx: 0,
+ atoms: 2n,
},
spentBy: {
txid: 'dcb6f31598fc406a2c1c1aeee86e9e1ae4c98f7ad82c7ca1341a68e92c31816c',
outIdx: 9,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -6806,23 +6805,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8839',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8839n,
},
spentBy: {
txid: 'd1a286475ac63df6ae51ffe69be5324b848ddf4a0acf8510d9ec266cb4e10454',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 3503,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'b808f6a831dcdfda2bd4c5f857f94e1a746a4effeda6a5ad742be6137884a4fb',
outIdx: 0,
},
+ sats: 3503n,
},
],
lockTime: 0,
@@ -6842,9 +6842,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -6861,10 +6861,10 @@
},
inputScript:
'483045022100c1717019de60065cae38519a85a80723fc3ee73573739381ee02fcaaa34a15fd022063059a69397ad3108c2f955c92d195a90e8f1f616e23df132abb6675ac5800c2412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 992,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 992n,
},
{
prevOut: {
@@ -6873,10 +6873,10 @@
},
inputScript:
'4830450221009b897d907bda2da570c5c273ab277b73c60d8fd39ba605829d0ec4b796fb7c20022011cc67871bf5df4693904fcdee80ac1adba332b14a4cdc9113b15f28e288adad412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1191203,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1191203n,
},
{
prevOut: {
@@ -6885,7 +6885,6 @@
},
inputScript:
'483045022100be82f7c67c73ecf068905a44ca2147d89b8041e54a432386b25137f7bea0d0aa0220416607e30a8d8d8c08237032eeb7728f938650a70215f6615939cd2455569539412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -6895,22 +6894,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8842',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8842n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442098183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48080000000000000001080000000000002289',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -6921,17 +6920,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
spentBy: {
txid: 'dcb6f31598fc406a2c1c1aeee86e9e1ae4c98f7ad82c7ca1341a68e92c31816c',
outIdx: 6,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -6942,23 +6941,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8841',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8841n,
},
spentBy: {
txid: 'c638754cb7707edd4faad89bdfee899aa7acbbc61f66e21f8faf60bdbb34fd65',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 1190050,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'f051b152f13004c18b5aab3b615d88af8175fa5416426fb73e3731fa530f064d',
outIdx: 0,
},
+ sats: 1190050n,
},
],
lockTime: 0,
@@ -6978,9 +6978,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -7225,37 +7225,36 @@
},
inputScript:
'03f07d0c0439e5546508edc754ac9b2939000c736f6c6f706f6f6c2e6f7267',
- value: 0,
sequenceNo: 0,
+ sats: 0n,
},
],
outputs: [
{
- value: 362505204,
outputScript:
'76a914f4728f398bb962656803346fb4ac45d776041a2e88ac',
spentBy: {
txid: '6a26b853ba356cdc4a927c43afe33f03d30ef2367bd1f2c190a8c2e15f77fb6d',
outIdx: 1,
},
+ sats: 362505204n,
},
{
- value: 200002871,
outputScript: 'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
spentBy: {
txid: 'c5621e2312eaabcfa53af46b62384f1751c509b9ff50d1bf218f92723be01bc7',
outIdx: 2,
},
+ sats: 200002871n,
},
{
- value: 62500897,
outputScript:
- // Manually set for unit test
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '98e47dda8c20facafff11fec7c6453f9d8afdd24281eb6129b76bfef90dd6bab',
outIdx: 0,
},
+ sats: 62500897n,
},
],
lockTime: 0,
@@ -7296,30 +7295,30 @@
},
inputScript:
'48304502210094c497d6a0ce9ca6d79819467a1bb3953084b2e003ac7edac3b4f0634800baab02205729e229bd96d3a35cece712e3e9ec2d3f610a43d7712928f806983f209fbd72412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 517521,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 517521n,
},
],
outputs: [
{
- value: 4200,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '23b4ac14065f0b8bb594e35a366cb707b52c4630398439d79c4cd179d005a298',
outIdx: 2,
},
+ sats: 4200n,
},
{
- value: 512866,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '0f4e0e3ad405a5b40a3f0cef78d55093729aa6504e420dc5ceaf1445beecbded',
outIdx: 0,
},
+ sats: 512866n,
},
],
lockTime: 0,
@@ -7358,30 +7357,30 @@
},
inputScript:
'473044022054a6b2065a0b0bbe70048e782aa9be048cc8bee0a241d08d0b98fcd74505a90202201ed5224f34c9ff73dc0c581390247686af521476a977a58e55ed33c4afd177c2412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 4400000,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 4400000n,
},
],
outputs: [
{
- value: 22200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '692a900ae6607d2b798df2cc1e8856aa812b158880c99295041d8a8b70c88d01',
outIdx: 1,
},
+ sats: 22200n,
},
{
- value: 4377345,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '69b060294e7b49fdf45f0a6eb500a03a881a2f54c86238b54718880470629cee',
outIdx: 0,
},
+ sats: 4377345n,
},
],
lockTime: 0,
@@ -7419,34 +7418,34 @@
},
inputScript:
'48304502210087cd61371447a4e8426b86ea9c8643a94a378701c436e7d88b46eb64886a2c9d02201943c4b17eed65e37153659edff07aede69c1695254fe811180d616809daacf74121028bd858b877988795ed097c6e6230363450a3ceda58b15b0a76f0113d933c10a6',
- value: 20105,
sequenceNo: 4294967295,
outputScript:
'76a914dc1147663948f0dcfb00cc407eda41b121713ad388ac',
+ sats: 20105n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a042e7865630004627567321500dc1147663948f0dcfb00cc407eda41b121713ad3',
+ sats: 0n,
},
{
- value: 555,
outputScript: 'a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087',
spentBy: {
txid: 'fabf82bda2c0d460bade2bcd0d9845ecb12508f31074ddcc4db4928fda44f3ec',
outIdx: 154,
},
+ sats: 555n,
},
{
- value: 19095,
outputScript:
'76a914dc1147663948f0dcfb00cc407eda41b121713ad388ac',
spentBy: {
txid: '8684205e5bc1ae154886f1701d2a492b67ad0ffc5e372087fcc981d69a67d407',
outIdx: 0,
},
+ sats: 19095n,
},
],
lockTime: 0,
@@ -7486,6 +7485,7 @@
parsedTokenEntries: [],
},
};
+
export const invalidAliasRegistration = {
tx: {
...aliasRegistration.tx,
@@ -7525,10 +7525,10 @@
},
inputScript:
'473044022004db23a179194d5e2d8446159859a3e55521239c807f14d4666c772d1493a7d402206d6ea22a4fb8ef20cd6159d200a7292a3ff0181c8d596e7a3e1b9027e6912103412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3891539,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3891539n,
},
{
prevOut: {
@@ -7537,7 +7537,6 @@
},
inputScript:
'483045022100c45951e15402b907c419f8a80bd76d374521faf885327ba3e55021345c2eb41902204cdb84e0190a5f671dd049b6b656f6b9e8b57254ec0123308345d5a634802acd412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -7547,22 +7546,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '240',
isMintBaton: false,
entryIdx: 0,
+ atoms: 240n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c308000000000000000c0800000000000000e4',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -7573,17 +7572,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '12',
isMintBaton: false,
entryIdx: 0,
+ atoms: 12n,
},
spentBy: {
txid: '96ddf598c00edd493a020fea6ac382b708753cc8b7690f673685af64916089dd',
outIdx: 7,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -7594,23 +7593,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '228',
isMintBaton: false,
entryIdx: 0,
+ atoms: 228n,
},
spentBy: {
txid: 'cd4b0008e90b2a872dc92e19cdd87f52466b801f037641193196e75ff10f6990',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 3889721,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '648b9f3a7e9c52f7654b6bba0e00c73bcf58aeed2a9381c4ab45ee32d214284b',
outIdx: 0,
},
+ sats: 3889721n,
},
],
lockTime: 0,
@@ -7630,9 +7630,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -7681,10 +7681,10 @@
},
inputScript:
'473044022047077b516d8554aba4deb36c66b789b5136bf16657bf1675ae866fd8a62834f5022035a7bd45422e0d0c343ac832a5efb0c05269ebe591ea400a33c23849cfa7c3a0412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 450747149,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 450747149n,
},
{
prevOut: {
@@ -7693,7 +7693,6 @@
},
inputScript:
'47304402203ba0eff663f253805a4ae75fecf5886d7dbaf6369c9e6f0bbf5c114184223fa202207992c5f1a8cb69b552b1af54a75bbab341bfcf90591e535282bd9409981d8464412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -7703,22 +7702,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '69',
isMintBaton: false,
entryIdx: 0,
+ atoms: 69n,
},
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3080000000000000011080000000000000034',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -7729,17 +7728,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '17',
isMintBaton: false,
entryIdx: 0,
+ atoms: 17n,
},
spentBy: {
txid: 'fa2e8951ee2ba44bab33e38c5b903bf77657363cffe268e8ae9f4728e14b04d8',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -7750,23 +7749,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '52',
isMintBaton: false,
entryIdx: 0,
+ atoms: 52n,
},
spentBy: {
txid: 'fb12358a18b6d6e563b7790f8e08ca9c9260df747c5e9113901fed04094be03d',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 450745331,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '23b4ac14065f0b8bb594e35a366cb707b52c4630398439d79c4cd179d005a298',
outIdx: 3,
},
+ sats: 450745331n,
},
],
lockTime: 0,
@@ -7786,9 +7786,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -7836,20 +7836,19 @@
},
inputScript:
'483045022100ab2a1e04a156e9cc5204e11e77ba399347f3b7ea3e05d45897c7fb7c6854a7ff022065c7e096e0526a0af223ce32e5e162aa577c42f7da231c13e28ebc3532396f20412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1300,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1300n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953035544540a557064617465546573741468747470733a2f2f636173687461622e636f6d2f4c0001074c000800000001cf977871',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -7860,10 +7859,11 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '7777777777',
isMintBaton: false,
entryIdx: 0,
+ atoms: 7777777777n,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -7883,9 +7883,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -7937,10 +7937,10 @@
},
inputScript:
'4830450221009d649476ad963306a5210d9df2dfd7e2bb604be43d6cdfe359638d96239973eb02200ac6e71575f0f111dad2fbbeb2712490cc709ffe03eda7de33acc8614b2c0979412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 3503,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 3503n,
},
{
prevOut: {
@@ -7949,7 +7949,6 @@
},
inputScript:
'483045022100b7bec6d09e71bc4c124886e5953f6e7a7845c920f66feac2e9e5d16fc58a649a0220689d617c11ef0bd63dbb7ea0fa5c0d3419d6500535bda8f7a7fc3e27f27c3de6412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -7959,22 +7958,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9876543156',
isMintBaton: false,
entryIdx: 0,
+ atoms: 9876543156n,
},
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e4420acba1d7f354c6d4d001eb99d31de174e5cea8a31d692afd6e7eb8474ad541f550800000000075bcd1508000000024554499f',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -7985,13 +7984,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '123456789',
isMintBaton: false,
entryIdx: 0,
+ atoms: 123456789n,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -8002,19 +8001,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9753086367',
isMintBaton: false,
entryIdx: 0,
+ atoms: 9753086367n,
},
+ sats: 546n,
},
{
- value: 1685,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '04b16fa516fbdd64d51b8aa1a752855beb4250d99199322d89d9c4c6172a1b9f',
outIdx: 4,
},
+ sats: 1685n,
},
],
lockTime: 0,
@@ -8034,9 +8034,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -8085,10 +8085,10 @@
},
inputScript:
'47304402207acf2b13eb099b42edf2d985afc4da3123a76e3120a66cd2e915fdd93b9ce243022055529f4f4db28c2d3b3ce98fd55dd539c92f0790d36cf8a63a4fbb89eb602b2a412102f2d4a75908a466eec993f27fb985836490d9af52f110b15b60fe6cb17dbedf6d',
- value: 1595,
sequenceNo: 4294967295,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
+ sats: 1595n,
},
{
prevOut: {
@@ -8097,10 +8097,10 @@
},
inputScript:
'47304402205f670a5afb2b6cb10ae86818f50c0dd9a9bc639e979a3325ab8834c5631ac81b022078ce9092a5ded4afe261f1b311e5619f1f8673ace9de5dae3441f33834ecb33a412102f2d4a75908a466eec993f27fb985836490d9af52f110b15b60fe6cb17dbedf6d',
- value: 22600,
sequenceNo: 4294967295,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
+ sats: 22600n,
},
{
prevOut: {
@@ -8109,10 +8109,10 @@
},
inputScript:
'483045022100cca98ffbd5034f1f07c459a2f7b694d0bfc8cd9c0f33fe0b45d5914a10b034610220592d50dd5f1fea5c1d689909e61d1d1bfad21ea6a42a01ba7d4e9428baedca06412102f2d4a75908a466eec993f27fb985836490d9af52f110b15b60fe6cb17dbedf6d',
- value: 170214,
sequenceNo: 4294967295,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
+ sats: 170214n,
},
{
prevOut: {
@@ -8121,10 +8121,10 @@
},
inputScript:
'483045022100fefd74866d212ff97b54fb4d6e588754b13d073b06200f255d891195fc57cb0502201948da90078778ab195c8adec213cc09972a1c89f8a35d10294894bcbf313941412102f2d4a75908a466eec993f27fb985836490d9af52f110b15b60fe6cb17dbedf6d',
- value: 22583,
sequenceNo: 4294967295,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
+ sats: 22583n,
},
{
prevOut: {
@@ -8133,10 +8133,10 @@
},
inputScript:
'483045022100e4dde7a7d227f0631d042a1953e55400b00386050eff672832e557a4438f0f0b022060fd64cb142723578a4fd25c703d7afa0db045d981c75f770cb66b3b87ccc72a412102f2d4a75908a466eec993f27fb985836490d9af52f110b15b60fe6cb17dbedf6d',
- value: 16250,
sequenceNo: 4294967295,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
+ sats: 16250n,
},
{
prevOut: {
@@ -8145,436 +8145,436 @@
},
inputScript:
'483045022100f057b22cbc643d6aa839d64c96eede889782e4738104dde84c5980089c75c9e702200449b7ad1e88141def532e3cd2943dfa29a9ede8a6d0b3283531dee085b867b1412102f2d4a75908a466eec993f27fb985836490d9af52f110b15b60fe6cb17dbedf6d',
- value: 23567578,
sequenceNo: 4294967295,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
+ sats: 23567578n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a0464726f7020bdb3b4215ca0622e0c4c07655522c376eaa891838a82f0217fa453bb0595a37c04007461624565766320746f6b656e207365727669636520686f6c64657273206169722064726f70f09fa587f09f8c90f09fa587e29da4f09f918cf09f9bacf09f9bacf09f8d97f09fa4b4',
+ sats: 0n,
},
{
- value: 550,
outputScript:
'76a9140352e2c246fa38fe57f6504dcff628a2ab85c9a888ac',
+ sats: 550n,
},
{
- value: 550,
outputScript:
'76a9147d2acc561f417bf3265d465fbd76b7976cd35add88ac',
+ sats: 550n,
},
{
- value: 550,
outputScript:
'76a91478a291a19347161a532f31cae95d492cc57965e888ac',
spentBy: {
txid: 'dc5bbe05a2a0e22d4c7bd241498213208610cf56868d72268913491c3c099507',
outIdx: 47,
},
+ sats: 550n,
},
{
- value: 584,
outputScript:
'76a91478cc64d09c2c558e2c7f1baf463f4e2a6246559888ac',
+ sats: 584n,
},
{
- value: 10027,
outputScript:
'76a91471536340a5ad319f24ae433d7caa4475dd69faec88ac',
+ sats: 10027n,
},
{
- value: 10427,
outputScript:
'76a914649be1781f962c54f47273d58e31439fb452b92988ac',
+ sats: 10427n,
},
{
- value: 560,
outputScript:
'76a914be3ce499e31ebe80c7aabf673acd854c8969ddc488ac',
+ sats: 560n,
},
{
- value: 551,
outputScript:
'76a914e88f39383c4d264410f30d2b28cdae775c67ea8e88ac',
spentBy: {
txid: '739fda27cd573dcfe22086463263c96232990473fc017ce83da7c996058e63fb',
outIdx: 0,
},
+ sats: 551n,
},
{
- value: 557,
outputScript:
'76a9145fbce9959ce7b712393138aef20b013d5a2802e688ac',
+ sats: 557n,
},
{
- value: 550,
outputScript:
'76a91450f35e3861d60945efcd2b05f562eff14d28db1088ac',
spentBy: {
txid: '558a3526d3bbc29ba8a2eb5466a7b4d6d5d544e7e83c1c15346fa03bdec1c6c1',
outIdx: 0,
},
+ sats: 550n,
},
{
- value: 10027,
outputScript:
'76a914866ed8973e444d1f6533eb1858ca284ad589bc1988ac',
+ sats: 10027n,
},
{
- value: 555,
outputScript:
'76a9140848ee10a336bba27c7ee90dc4a1c2407178a5b788ac',
+ sats: 555n,
},
{
- value: 550,
outputScript:
'76a9149750cdddb976b8466668a73b58c0a1afbd6f4db888ac',
+ sats: 550n,
},
{
- value: 560,
outputScript:
'76a9148ee151bf0f1637cdd2e1b41ed2cd32b0df0a932588ac',
+ sats: 560n,
},
{
- value: 590,
outputScript:
'76a914be792ef52fb6bc5adcabeb8eb604fbbb3dc4693488ac',
+ sats: 590n,
},
{
- value: 551,
outputScript:
'76a9142ad96e467f9354f86e0c11acfde351194a183dc888ac',
spentBy: {
txid: 'a900d93eea490d121bb9cb11457ee0f86edb53d5b7a26984567b8cf1b282adbc',
outIdx: 10,
},
+ sats: 551n,
},
{
- value: 550,
outputScript:
'76a914afd2470f264252f1359d7b8093fff4fdd120c5f988ac',
+ sats: 550n,
},
{
- value: 584,
outputScript:
'76a9148a8e920239fb5cc647855c1d634b0bbe4c4b670188ac',
spentBy: {
txid: '9bd869aff043b96ea03274abf6183bcb521c1949177ed948792636c68050283c',
outIdx: 71,
},
+ sats: 584n,
},
{
- value: 569,
outputScript:
'76a91412f84f54fad4695321f61c313d2e32a0a8f8086488ac',
+ sats: 569n,
},
{
- value: 584,
outputScript:
'76a914842b152a0bbd4647afaeceec8a6afaa90668e7c788ac',
+ sats: 584n,
},
{
- value: 584,
outputScript:
'76a914fe971eb2960defce93503c5641d54eaad2ab6a0588ac',
+ sats: 584n,
},
{
- value: 584,
outputScript:
'76a914685e825961b67456f440caaaaab0f94cb3354b7288ac',
+ sats: 584n,
},
{
- value: 584,
outputScript:
'76a91476b4447a3617e918d03261353e179a583f85d2c688ac',
+ sats: 584n,
},
{
- value: 584,
outputScript: 'a91418bb4f7d8881c1d1457c33a6af8e5937f7f776a887',
+ sats: 584n,
},
{
- value: 584,
outputScript:
'76a914b366ef7c1ffd4ef452d72556634720cc8741e1dc88ac',
spentBy: {
txid: 'bf41ebe360b6990ca60ab9b5fa24d9acde29b07b924d885ccd8d71e9aa1e5dc9',
outIdx: 0,
},
+ sats: 584n,
},
{
- value: 553,
outputScript:
'76a914f5e82dc01170d99a16bf9610da873df47f82aa7a88ac',
+ sats: 553n,
},
{
- value: 569,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '04dfbdc61976ed57e65f2d02e2d55994ae6e963c9baea4f2c4b13c278b6fe981',
outIdx: 2,
},
+ sats: 569n,
},
{
- value: 553,
outputScript:
'76a9142ed681dc5421dd4a052f49bda55a9c345fb025e088ac',
+ sats: 553n,
},
{
- value: 584,
outputScript:
'76a914b87d445b2dbba65c5a5bb79959b44c24593518f888ac',
+ sats: 584n,
},
{
- value: 553,
outputScript: 'a9147d91dc783fb1c5b7f24befd92eedc8dabfa8ab7e87',
+ sats: 553n,
},
{
- value: 584,
outputScript: 'a914f722fc8e23c5c23663aa3273f445b784b223aab587',
+ sats: 584n,
},
{
- value: 584,
outputScript:
'76a914940840311cbe6013e59aff729ffc1d902fd74d1988ac',
+ sats: 584n,
},
{
- value: 584,
outputScript:
'76a914d394d084607bce97fa4e661b6f2c7d2f237c89ee88ac',
+ sats: 584n,
},
{
- value: 558,
outputScript:
'76a91470e1b34c51cd5319c5ca54da978a6422605e6b3e88ac',
+ sats: 558n,
},
{
- value: 556,
outputScript:
'76a91440eeb036d9d6bc71cd65b91eb5bbfa5d808805ca88ac',
spentBy: {
txid: '52fe7794f3aba1b6a7e50e8f65aa46c84b13d4c389e1beaba97fc49d096fe678',
outIdx: 4,
},
+ sats: 556n,
},
{
- value: 584,
outputScript:
'76a9144d55f769ce14fd44e2b63500d95016838a5d130d88ac',
+ sats: 584n,
},
{
- value: 584,
outputScript:
'76a914a17ee8562ede98dfe9cd00f7f84d74c4c9c58ee788ac',
spentBy: {
txid: '12de87fc94b76324b2ef4f8f8cbf22318146097b330904097131b56d386eee22',
outIdx: 11,
},
+ sats: 584n,
},
{
- value: 584,
outputScript:
'76a914a13fc3642d1e7293eb4b9f17ec1b6f6d7ea4aaeb88ac',
spentBy: {
txid: '68ff340f746736b20d0015d3a63140bbd53dc982ce592e2bd503a7c3c32f88b9',
outIdx: 10,
},
+ sats: 584n,
},
{
- value: 576,
outputScript:
'76a91462e907b15cbf27d5425399ebf6f0fb50ebb88f1888ac',
+ sats: 576n,
},
{
- value: 10427,
outputScript:
'76a91486a911e65753b379774448230e7e8f7aeab8fa5e88ac',
+ sats: 10427n,
},
{
- value: 552,
outputScript:
'76a914e9364c577078f16ee2b27f2c570a4e450dd52e7a88ac',
+ sats: 552n,
},
{
- value: 1428,
outputScript:
'76a914ed917afa96833c1fea678e23374c557ed83ff6ff88ac',
+ sats: 1428n,
},
{
- value: 1427,
outputScript:
'76a91482cf48aefcd80072ef21e4a61dee8c2d70d0bcb388ac',
+ sats: 1427n,
},
{
- value: 9135,
outputScript:
'76a91444e8388bdd64c1f67905279066f044638d0e166988ac',
+ sats: 9135n,
},
{
- value: 1427,
outputScript:
'76a914d62e68453b75938616b75309c3381d14d61cb9a488ac',
+ sats: 1427n,
},
{
- value: 1427,
outputScript:
'76a91425b1d2b4610b6deed8e3d2ac76f4f112883126e488ac',
+ sats: 1427n,
},
{
- value: 921,
outputScript:
'76a91456423795dc2fa85fa3931cdf9e58f4f8661c2b2488ac',
+ sats: 921n,
},
{
- value: 1843,
outputScript:
'76a914e03d94e59bb300b965ac234a274b1cf41c3cadd788ac',
+ sats: 1843n,
},
{
- value: 1584,
outputScript:
'76a9141e0d6a8ef2c8a0f6ceace8656059ea9dbeb11bda88ac',
+ sats: 1584n,
},
{
- value: 1843,
outputScript:
'76a914f6cd6ef1bd7add314fd9b115c3ad0dce7844930c88ac',
+ sats: 1843n,
},
{
- value: 560,
outputScript:
'76a91488fb294f87b0f05bf6eddc1d6bfde2ba3a87bcdd88ac',
+ sats: 560n,
},
{
- value: 560,
outputScript:
'76a914a154f00227476ec9741a416e96b69677fddf4b1d88ac',
+ sats: 560n,
},
{
- value: 1427,
outputScript:
'76a914362a3773f5685c89e4b800e4c4f9925db2ec1b5c88ac',
+ sats: 1427n,
},
{
- value: 584,
outputScript:
'76a9146770958588049a3f39828e1ddc57f3dd77227a1188ac',
+ sats: 584n,
},
{
- value: 1708,
outputScript:
'76a914b0313745d5f7c850c9682c2711b6a14f2db9276b88ac',
+ sats: 1708n,
},
{
- value: 679,
outputScript:
'76a914fe729aa40779f822a8c4988f49a115c8aabc0cc788ac',
+ sats: 679n,
},
{
- value: 1511,
outputScript:
'76a914ecef001f3c137c880f828d843f754a082eb5396b88ac',
spentBy: {
txid: 'e3ac978ea422497972c1583687806c17c686c2be1986605b36839277d7b36cb8',
outIdx: 1,
},
+ sats: 1511n,
},
{
- value: 560,
outputScript:
'76a91463e79addfc3ad33d04ce064ade02d3c8caca8afd88ac',
spentBy: {
txid: '2ba8a04167ea13f80aba2b232cdf899fd218c978b54264e5a829f96a3ce1e912',
outIdx: 0,
},
+ sats: 560n,
},
{
- value: 552,
outputScript:
'76a91489a6da1ed86c8967f03691ad9af8d93c6259137388ac',
+ sats: 552n,
},
{
- value: 919,
outputScript:
'76a9149fa178360cab170f9423223a5b166171f54d5bc188ac',
+ sats: 919n,
},
{
- value: 15000,
outputScript:
'76a914bc37eb24817a8442b23ae9a06cc405c8fdf1e7c488ac',
+ sats: 15000n,
},
{
- value: 560,
outputScript:
'76a914e78d304632489ba240b29986fe6afd32c77aa16388ac',
+ sats: 560n,
},
{
- value: 570,
outputScript:
'76a914993e6beef74f4ed0c3fe51af895e476ce37c362b88ac',
spentBy: {
txid: '57fcd13171861f19e68068aa6deb759126bef68a6dc0c4969870e54546931999',
outIdx: 1,
},
+ sats: 570n,
},
{
- value: 921329,
outputScript:
'76a914b8820ca6b9ceb0f546e142ddd857a4974483719a88ac',
spentBy: {
txid: '0acb7723b751727996b03323841c37dd03ceb2aba83e75b39af98d0cc6eb9086',
outIdx: 1,
},
+ sats: 921329n,
},
{
- value: 5100,
outputScript:
'76a914ca989ff4d3df17fe4dc6eb330b469bd6d5d4814e88ac',
+ sats: 5100n,
},
{
- value: 5200,
outputScript:
'76a914ad29cdce2237f71e95fee551f04425f70b7e4c9d88ac',
spentBy: {
txid: '636e0a8685063d5fdb3b9fe9c9795c5ceb25fdbb237aedab4bf346dd8520a2b9',
outIdx: 0,
},
+ sats: 5200n,
},
{
- value: 584,
outputScript:
'76a9140f57872e06e15593c8a288fcb761b13ca571d78888ac',
spentBy: {
txid: 'dd02287fdadaf1b7377ec0121c00bc44563683c26eed49d31ade52a1abb63bc0',
outIdx: 0,
},
+ sats: 584n,
},
{
- value: 10266,
outputScript:
'76a9142a96944d06700882bbd984761d9c9e4215f2d78e88ac',
spentBy: {
txid: '978538d26607b5b6371038006c9ad8e2862d935a8375f3a8a68108e8270f7335',
outIdx: 2,
},
+ sats: 10266n,
},
{
- value: 580,
outputScript:
'76a9141e37634e6693e228801c194c45701d49a1d12e2c88ac',
+ sats: 580n,
},
{
- value: 22743016,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
spentBy: {
txid: '7242d84b3db853262c53f4b068c57e5a52b67a8b6fea313e0a6f7f58df16e413',
outIdx: 0,
},
+ sats: 22743016n,
},
],
lockTime: 0,
@@ -8699,577 +8699,577 @@
},
inputScript:
'483045022100a6886a347a977b31fb3cf4a0b0ef85e58bd60d7af9db27d4d260f71c9b5f22c30220436ceaca789bc8ab631633434eb0b64b93ae6ebeac94d3ddbd12d3916a57fc8441210343b0a63fb80795016f064481f0380836adf7cde6ad32a662ddf551876b303a93',
- value: 16194930,
sequenceNo: 4294967295,
outputScript:
'76a9142a96944d06700882bbd984761d9c9e4215f2d78e88ac',
+ sats: 16194930n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a0464726f7020fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa4cad415454454e54494f4e204752554d50592050454f504c452120f09f98be20596f752063616e206e6f77206465706f736974202447525020746f207468652065546f6b656e20626f7420617420742e6d652f6543617368506c617920746f20746f7020757020796f757220436173696e6f20437265646974732120316d2024475250203d2031204372656469742e20506c617920436173696e6f2067616d657320616e642077696e205845432120',
+ sats: 0n,
},
{
- value: 2105,
outputScript:
'76a9145561e7d054bb4d81d862fdc674525c2dc337ac6d88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91417b83cbad4814a5c6400e418ec69f29963a2805888ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9142e153c4fc63dcabf0e8949b20ddab2c3df7704ed88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9149966d31280b53f1c2b85f975918eb3023b281f8688ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914bfd3a8b912a7988809090de56651d47451528ba188ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9147ff46e0807b0d3a5797dd65beae6cfcc2d01e56e88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914585ecb807269977bc21a1a2cd5d7c4ff1150e94988ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9140db07d6b795f5fe5f47e53aab25aac078d229f8188ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9143f23e265a57078ac8e675f78bd552a95943ca7e888ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914a33b3460d43b9e27a165185b2863b1f64d418d8288ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914e006de0508dcbf24ae0455ca3b5665ed0545553c88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9145f1ec6dd2d02c1fa32b184818be5611ae674df0388ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914445c0c740419357dd03c93a351c69eedf433be4688ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914eafcfdecd98cde993e3be01a9ad1158fd3eb773988ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914023a7087ee9bfabc77548fc5f0a359ae9bacf7bc88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914eded3588169234400f7556a40baf808e1ec8ebf588ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9141a33684209d978e8bc143c6fcdb7f56e3243dcee88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914486cbf0bfba3b7d0aae10bec7f0d4226e6e10f9688ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91480c72defab2c99cf19341cc0e2992c659d42198788ac',
spentBy: {
txid: '46eed31f3d61c5a0a7023c4626c061afc158de9d3855ab304abefd7bb4f7de0d',
outIdx: 109,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914a15db8a24f9b3740383927a1d787ba77b34b63a888ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91423a1340dbbe6dedf1cd31cdf11f85b3442cfd82888ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9141e464c8d283976ddc13fa6756736f8f3a0069f7888ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914f2d85c4f3fb78c1d9727dea73690c72815756e2b88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914d8723ad3becc44356267e8d0313692c493fe2bdf88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914161cae938ec121bd9970304766865991fe80a63088ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91490ec469ca54ce9616282dea980a39f0e4b9a6ab988ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914b386b1f59b5f03b45471df214d47f7ab5d48003088ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914d2ea9ba1a091c2adf0116da4d2c3ddc3cf7124a988ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9149846b6b38ff713334ac19fe3cf851a1f98c07b0088ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91451379ab611287658c9e1c0f98f0929addd5a2f1d88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91432fc3341b83f902a360cbbf91a08ea99c293733d88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91459f93839ba24abd6996b75a39486691dd40660be88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91473ef17c5b9f551eae3f3b4fadf61f93cae5e6aea88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91469003998c2c32ac81951b88416a9a15df3a1992988ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9145dd0411fa601ab82fcd68894c95934619a49920688ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914534c4407eeea7e4b8c3ed7dae5cb4a2539beed9988ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91447f86f44721c8d0bac263602717fc10b0da49b9f88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91485149cd55457401ad4645c54b86caa0ce0d4f05f88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914f0af3a1411ed4989bf5c44641c3a86d473afe45188ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914973d953e15d62383b24ebe3d73d01e7b83bd989788ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914dadf34cde9c774fdd6340cd2916a9b9c5d57cf4388ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9144de2fb39f09d14492f4d40e0fb670a42af505c6b88ac',
spentBy: {
txid: '11a58a92afc39a6d7bd413a11864d0d34f21ab72b63028293d1004ff76e74950',
outIdx: 0,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914fd7f54f496cadb0b6d3cc206ee098bab29bd5bbf88ac',
spentBy: {
txid: '51518eb20ca45eaa07925e6d502da8b5be5ad411272863be9a2280e46d6505f7',
outIdx: 11,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914b55d27e509500af85243622343ca9e3d54a0438a88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914547abbaaa1c5e92ecde551c1bfdb9a2e5454b83088ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9140f69a9314698156aee8bdb96a36f1e08f1ba168d88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91468506abb4ce69c0e596c80bebe456f3be7f904fd88ac',
spentBy: {
txid: '39ef9f76d052d4b3fa5f4aa19b5597b1b55ab71e361c665eef371a501a1282be',
outIdx: 9,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91447ab6772a47d55b7649b83f105fd5cdc3eaa22a988ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914b74cc1418fad22fe0eb0bef57082d9836a29340c88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914e33f7fa6b1c03d68a28758c1ef3a5fa7322cafbb88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914a30153ad73ba57b6f37c210435e407bb7a368a5d88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9141404dc7b54ab7768837729e2efe052105a4c405988ac',
spentBy: {
txid: '6ab45eb0770ca387bcd76e3ffc0439958dc2bb7b87437234c722a3c615ca2071',
outIdx: 0,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91496cdae0c820426ae831216d629383dda7ee5adab88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91412c4c82aac6896d96ede38eb916b5819a46c803a88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9147bdf4e819215ccfe937a633ae28ae2e9d3aadc0688ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9146e2b68c87b86ed79b86a09c62c4762d7e431bcca88ac',
spentBy: {
txid: 'c95c7f6f4baa7d91fd3aa24f9b73b4e04ef840ac970ae82e2d386f81eeec2cf0',
outIdx: 22,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914e7a5f062e50a35d639fc1773738839119e61475d88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914a34960963da7e02e1f0357325985475bda969def88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9149d8689dc0813da4f520225eebb8b80c8352ec4a588ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914bd4cdb9bc9dbe21e2b9bdd3395be350d8abbe16d88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9142d755595516b0f625c51d223bc84a5adfc77b20688ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914dd01dbc55b0fe9e33ceb700b4c4452010bdb5a1688ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9140839c285a8d5b52934c28d4a45a1835dd45f0a5388ac',
spentBy: {
txid: 'cd68979654b1ecee37a33c321b6cb7f2966be6af02232855f46c2aef231463cb',
outIdx: 1,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9143dd8ebcdf0e4d65712a723f2235675316687716388ac',
spentBy: {
txid: 'f8123bf1175047b9d5ebd5d7cacbb378aaa8f58a55ed400893f192f28606a0d3',
outIdx: 3,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914974a7bb26ac2f62bf60a675f5f0024a689c03d7d88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
spentBy: {
txid: '27f2d0454f78b90be92eea7d557486ebc07d7ea1004fa7dbc0e7f89e835a4c6e',
outIdx: 3,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914dceb306a73582e52c43025f7eed5827a6d9e92e088ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914f93029e7593327c5b864ea6896ecfda4fffb6ab888ac',
spentBy: {
txid: 'c62c16c68df7d69d5d1524ac250e30473dacdbf13c131fb1978911674f045665',
outIdx: 17,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9140620a7df2e0637bc8d3dfa663c979c15a671dfe488ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9147847fe7070bec8567b3e810f543f2f80cc3e03be88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914837604effd470faaba3e044e0a7c4e6a8a7ee8c688ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9142def2114338f0be9a26956378efce60e17b580b388ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91482b15f681a94fe9f6ac29ddee214d3dd88f55bfc88ac',
spentBy: {
txid: '920853c238299614bc03270839f1b815c9763385485e04be18a861039c07b606',
outIdx: 14,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91478f43ee6b1e577329c0fc9cb47f7435954eae81f88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914c1a7d12dddc6a3072df09cf5e0a00ece198cc8c188ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914bccecb7e3e5d3fccbee3211494ad3214f91cc74f88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914fbc9461beec0d783052c20c994ffb44e46041d5188ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914a94b8176d28cb5b5c301f10bb45bdb3d6e0c277d88ac',
spentBy: {
txid: 'b2c0183a724aa141568e9c116b684eb94e8be326c92cf588d83296916974017f',
outIdx: 1,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914993e6beef74f4ed0c3fe51af895e476ce37c362b88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9142ec5281864fc989dab543b054631c9703809689e88ac',
spentBy: {
txid: '962f5149fbca6c739886cb839901b0de5926119430ce268b7aa1be0c073ad84c',
outIdx: 6,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914581bd5bc835cc788bd90a4f6f0c9c21eb173572e88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91428cabb69be3e20707574d7a0ddc65a801b6ae59988ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914b8b3c22d82784c27e0224fd8a8ff549a67e955a388ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914b8af3f36894ee7e6563c672714f9eb47cc83a9e188ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914fa49f98fb25e8b84ce210d06f052aed88c2c4f9888ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9146134463df4436bf8c662b64917610f63fa5d89ef88ac',
spentBy: {
txid: 'd8a9729473589d3c30d26e672c2c49e1a58fc380765ddbcde8628ab93293af11',
outIdx: 3,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '3c844ed9f76207027a47dd2170a590a1f8d8a8ff9b797da4f050ad6394adf52a',
outIdx: 1,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914b3f80c88220f138201702a4d0c033b248059fcdc88ac',
spentBy: {
txid: '7d5cf7814e3225587e522e03da0589b806de0498a779e8b0d1cb273c9f257b87',
outIdx: 0,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914ad7eb2c8b88fa2e3f5158b398a49bf277401984e88ac',
spentBy: {
txid: '50974e99e87dec3b575497b9592a89d9ae0f2dc129f26d567582e4d0aaf27741',
outIdx: 0,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9146b475c3b68ff8411e5c43271edc4e4f26dfc802a88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a914ee8cbaa5642d1c5d1af1503edda6a55044e8106e88ac',
spentBy: {
txid: 'ca0229e4287f534526e811545e43c01bc011d2451acebd18aacbb74fe8d055ea',
outIdx: 2,
},
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9147e3f074aae3cc99a6f48b928008eb9458615b6a988ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a9140816fa82ce5021871afb6fbdc9470714fbf7c7ed88ac',
+ sats: 2105n,
},
{
- value: 2105,
outputScript:
'76a91412e01685eea02225ae3d3d528b184ae0db52314388ac',
spentBy: {
txid: 'fc4013c0a37cde3de2238f61c5212a7d115382aae5e0cb28b80c1d935e9233f5',
outIdx: 0,
},
+ sats: 2105n,
},
{
- value: 15987628,
outputScript:
'76a9142a96944d06700882bbd984761d9c9e4215f2d78e88ac',
spentBy: {
txid: '96f072b8db666b8eb59c0f43373b65c50fd5ac5042ea1e7d822161b45c2219a1',
outIdx: 0,
},
+ sats: 15987628n,
},
],
lockTime: 0,
@@ -9547,35 +9547,35 @@
},
inputScript:
'483045022100d4a93c615a7af48f422c273a530ac7f2b78d31a2d4515f11b2f416fce4f4f380022075c22c73190a7de805f219ca8d294777440b558551fea6b59c6c84ec529b16f94121038c4c26730d97cdeb18e69dff6c47cebb23e6f305c950923cd6110f35ab9006d0',
- value: 48445,
sequenceNo: 4294967295,
outputScript:
'76a914ee6dc9d40f95d8e106a63385c6fa882991b9e84e88ac',
+ sats: 48445n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624ca1040f3cc3bc507126c239cde840befd974bdac054f9b9f2bfd4ff32b5f59ca554c4f3fb2d11d30eae3e5d3f61625ff7812ba14f8c901c30ee7e03dea57681a8f7ab8c64d42ce505921b4d67507452537cbe7525281714857c75d7a441b65030b7ea646b59ed0c34adc9f739661620cf7678963db3cac78afd7f49ad0d63aad404b07730255ded82ea3a939c63ee040ae9fac9336bb8d84d7b3380665ffa514a45f4',
+ sats: 0n,
},
{
- value: 1200,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'aca8ec27a6fc4dc45b1c2e2a6175e84d81ffdd54c7f97711654a100ade4e80bc',
outIdx: 0,
},
+ sats: 1200n,
},
{
- value: 46790,
outputScript:
'76a914ee6dc9d40f95d8e106a63385c6fa882991b9e84e88ac',
spentBy: {
txid: '610f8a6f8e7266af18feda7a5672d379314eb05cb7ce6690a1f1d5bff1051dad',
outIdx: 1,
},
+ sats: 46790n,
},
],
lockTime: 0,
@@ -9618,35 +9618,35 @@
},
inputScript:
'483045022100e9fce8984a9f0cb76642c6df63a83150aa31d1071b62debe89ecadd4d45e727e02205a87fcaad0dd188860db8053caf7d6a21ed7807dbcd1560c251f9a91a4f36815412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 36207,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 36207n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04657461624c9104eaa5cbe6e13db7d91f35dca5d270c944a9a3e8c7738c56d12069312f589c7f193e67ea3d2f6d1f300f404c33c19e48dc3ac35145c8152624b7a8e22278e9133862425da2cc44f7297c8618ffa78dd09054a4a5490afd2b62139f19fa7b8516cbae692488fa50e79101d55e7582b3a662c3a5cc737044ef392f8c1fde63b8385886aed37d1b68e887284262f298fe74c0',
+ sats: 0n,
},
{
- value: 1100,
outputScript:
'76a914ee6dc9d40f95d8e106a63385c6fa882991b9e84e88ac',
spentBy: {
txid: '610f8a6f8e7266af18feda7a5672d379314eb05cb7ce6690a1f1d5bff1051dad',
outIdx: 0,
},
+ sats: 1100n,
},
{
- value: 34652,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: '3efa1835682ecc60d2476f1c608eb6f5ae9040610193111a2c312453cd7db4ef',
outIdx: 0,
},
+ sats: 34652n,
},
],
lockTime: 0,
@@ -9690,10 +9690,10 @@
},
inputScript:
'473044022025c68cf0ab9c1a4d6b35b2b58f7e397722f469412841eb09d38d1973dc5ef7120220712e1f3c8740fff2af75c1062a773eef167550ee008deaef9089537cd17c35f0412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 2300,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 2300n,
},
{
prevOut: {
@@ -9702,7 +9702,6 @@
},
inputScript:
'47304402206a2f53497eb734ea94ca158951aa005f6569c184675a497d33d061b78c66c25b02201f826fa71be5943ce63740d92a278123974e44846c3766c5cb58ef5ad307ba36412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -9712,12 +9711,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2',
isMintBaton: false,
entryIdx: 0,
+ atoms: 2n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -9726,7 +9726,6 @@
},
inputScript:
'483045022100efa3c767b749abb2dc958932348e2b19b845964e581c9f6de706cd43dac3f087022059afad6ff3c1e49cc0320499381e78eab922f18b00e0409228ad417e0220bf5d412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -9736,22 +9735,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999875',
isMintBaton: false,
entryIdx: 0,
+ atoms: 999875n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44204db25a4b2f0b57415ce25fab6d9cb3ac2bbb444ff493dc16d0615a11ad06c8750800000000000f41b9',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -9762,14 +9761,15 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999865',
isMintBaton: false,
entryIdx: 0,
+ atoms: 999865n,
},
spentBy: {
txid: '657646f7a4e7237fca4ed8231c27d95afc8086f678244d5560be2230d920ff70',
outIdx: 1,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -9789,9 +9789,9 @@
isInvalid: false,
burnSummary: 'Unexpected burn: Burns 12 base tokens',
failedColorings: [],
- actualBurnAmount: '12',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 12n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -9838,10 +9838,10 @@
},
inputScript:
'47304402207122751937862fad68c3e293982cf7afb91967d20da63a0c23bf0565b625b775022054f39f41a43438a0df7fbe6a78521f572613bc08d6a43b6d248bcb6a434e2b52412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 2200n,
},
{
prevOut: {
@@ -9850,7 +9850,6 @@
},
inputScript:
'483045022100dce5b3b516bfebd40bd8d4b4ff9c43c685d3c9dde1def0cc0667389ac522cf2502202651f95638e48c210a04082e6053457a539aef0f65a2e9c2f61e3faf96c1dfd8412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -9860,22 +9859,22 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5235120760000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5235120760000000n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44207443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d0800129950892eb779',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -9886,14 +9885,15 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5235120758765433',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5235120758765433n,
},
spentBy: {
txid: '9c0c01c1e8cc3c6d816a3b41d09d65fda69de082b74b6ede7832ed05527ec744',
outIdx: 1,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -9913,9 +9913,9 @@
isInvalid: false,
burnSummary: 'Unexpected burn: Burns 1234567 base tokens',
failedColorings: [],
- actualBurnAmount: '1234567',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 1234567n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -9962,10 +9962,10 @@
},
inputScript:
'41256f3c091df7dea2bb9d74241b47116364d7b0035dfe1c5d1d398d8e92e99f4d5f3dd747f8e81ca99ddaf5630399ef18e26b6a3bf9b763cdd25225e68f7bbd2d41210304222c88e9936a195762fc4ee41a082e906a0e8434df43a03bfcdf1f9d2c1b8d',
- value: 546,
sequenceNo: 4294967295,
outputScript:
'76a91493472d56ba91581ed473225a765dd14a2db5d9d888ac',
+ sats: 546n,
},
{
prevOut: {
@@ -9974,26 +9974,26 @@
},
inputScript:
'418ab02f08273afd67c4db840f09429d7c76c0a71b28dbaef5c63f277944a168819d72bedd14e78b327a237f6070b0519ef8456efbfe206bae0c60d3b5f328faea412103df543832906a1f5fc8f201bb99454f350b1906375d522f735bd357cbda11ab5b',
- value: 2565,
sequenceNo: 4294967295,
outputScript:
'76a9149ea00e6c2ef24026719421e4790e1a694c94381b88ac',
+ sats: 2565n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a045357500001010101209e0a9d4720782cf661beaea6c5513f1972e0f3b1541ba4c83f4c87ef65f843dc0453454c4c0631323831323301002039c6db26912f34352d50fdfd8d75d1c16cb8a669f3ae05000a6c8c74d14839a50101063132383132330437383035',
+ sats: 0n,
},
{
- value: 2656,
outputScript:
'76a91493472d56ba91581ed473225a765dd14a2db5d9d888ac',
spentBy: {
txid: '47f7a2189eb65e9a2288f81640351cc80ada49288b09973bcaa7aef1e423faa8',
outIdx: 1,
},
+ sats: 2656n,
},
],
lockTime: 0,
@@ -10044,30 +10044,30 @@
},
inputScript:
'411b57cfa0bcc8e1f1c02f0dfed248688bf1e337e75d9c2775324e55b5d6d2085260303c3f77437d7bc0f1533ea816e7c8e4b77175ff3c9e61ce2e21b5e1dc95014121027a70b0f8b59cbb83a64cacbf4fca79e5c9a4f655f325d0936ed4eebced3cb8aa',
- value: 7146,
sequenceNo: 4294967294,
outputScript:
'76a91403c63d3a52cde136da8858e9d0ffaa810cb6639288ac',
+ sats: 7146n,
},
],
outputs: [
{
- value: 0,
outputScript: '6a0450415900000008d980190d13019567',
+ sats: 0n,
},
{
- value: 1800,
outputScript:
'76a914f66d2760b20dc7a47d9cf1a2b2f49749bf7093f688ac',
+ sats: 1800n,
},
{
- value: 3876,
outputScript:
'76a91401bfce4ff373b108bd65b4da08de621ade85adb588ac',
spentBy: {
txid: '566a7c12364e3f362fbc738bf209527d3074ce0a2d19b797d3ca34a3482e3386',
outIdx: 0,
},
+ sats: 3876n,
},
],
lockTime: 0,
@@ -10113,35 +10113,35 @@
},
inputScript:
'41fc1401150778a0d47d5279ccdaa13298cfa43e25d8d37d37570291207a92098beefa8fb25b8fb9cb2c4d7b5f98b7ff377c54932e0e67f4db2fc127ed86e01b1a4121024b60abfca9302b9bf5731faca03fd4f0b06391621a4cd1d57fffd6f1179bb9ba',
- value: 3403110,
sequenceNo: 4294967294,
outputScript:
'76a914e628f12f1e911c9f20ec2eeb1847e3a2ffad5fcc88ac',
+ sats: 3403110n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04504159000008f09f9882f09f918d0869860643e4dc4c88',
+ sats: 0n,
},
{
- value: 3392102,
outputScript:
'76a914e573dd89a61f8daeb56bf5b5fb5d7cd86e31ab2e88ac',
spentBy: {
txid: '8b2a86aabae90c0f9e8a111e220c85b52fc54b15c6d46cbbbca89020318714a4',
outIdx: 0,
},
+ sats: 3392102n,
},
{
- value: 9490,
outputScript:
'76a914697ae72b062557fa69f9d4d09182529da368ab6988ac',
spentBy: {
txid: '1b3165e7edef19369880f032d8f4d19cc41e9ebf2bfb657518ae99075aa2b471',
outIdx: 0,
},
+ sats: 9490n,
},
],
lockTime: 0,
@@ -10181,9 +10181,7 @@
};
// No data no payment id
-const PayButtonEmptyTx = JSON.parse(
- JSON.stringify(PayButtonYesDataYesNonce.tx),
-);
+const PayButtonEmptyTx = structuredClone(PayButtonYesDataYesNonce.tx);
// Create a tx with 00 in paymentId and nonce spaces
PayButtonEmptyTx.outputs[0].outputScript = '6a0450415900000000';
export const PayButtonEmpty = {
@@ -10211,9 +10209,7 @@
},
};
// data and no payment id
-const PayButtonYesDataNoNonceTx = JSON.parse(
- JSON.stringify(PayButtonYesDataYesNonce.tx),
-);
+const PayButtonYesDataNoNonceTx = structuredClone(PayButtonYesDataYesNonce.tx);
// Create a tx with 00 in paymentId and nonce spaces
PayButtonYesDataNoNonceTx.outputs[0].outputScript =
'6a0450415900000e6f6e6c792064617461206865726500';
@@ -10243,9 +10239,7 @@
};
// Off spec paybutton tx
-const PayButtonOffSpecTx = JSON.parse(
- JSON.stringify(PayButtonYesDataYesNonce.tx),
-);
+const PayButtonOffSpecTx = structuredClone(PayButtonYesDataYesNonce.tx);
// Create a tx with 3 pushes instead of expected 4
PayButtonOffSpecTx.outputs[0].outputScript = '6a04504159000008f09f9882f09f918d';
export const PayButtonOffSpec = {
@@ -10270,9 +10264,7 @@
};
// Unsupported version paybutton tx
-const PayButtonBadVersionTx = JSON.parse(
- JSON.stringify(PayButtonYesDataYesNonce.tx),
-);
+const PayButtonBadVersionTx = structuredClone(PayButtonYesDataYesNonce.tx);
// Force a version 1 tx
PayButtonBadVersionTx.outputs[0].outputScript =
'6a0450415900010108f09f9882f09f918d0869860643e4dc4c88';
@@ -10309,35 +10301,35 @@
},
inputScript:
'416d2f67c38b81b6fdd13f4cb2c2d0a9194800e98b80a1054ca83b1ea3d739e70f9c4e2c8a61050b40161a0d741db9a6e71d155cf61623b9279739b50446d3ec6a4121026769c23182aaa572c16c82121caff660a7c13befd0d20c263e577ca01c4f029e',
- value: 81319,
sequenceNo: 4294967294,
outputScript:
'76a914eff9a0ba847ae97697a9f97c05887aba2b41060e88ac',
+ sats: 81319n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a1774657374696e672061206d736720666f72206572726f72',
+ sats: 0n,
},
{
- value: 80213,
outputScript:
'76a914731fbd873b3603e8dafd62923b954d38571e10fc88ac',
spentBy: {
txid: 'b817870c8ae5ec94d639089e37763daee271f412ab478705a29b036ba0b00f3d',
outIdx: 55,
},
+ sats: 80213n,
},
{
- value: 600,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
spentBy: {
txid: 'dc06ab36c9a7e365f319c0e918324af9778cb29b82c07ff87e2ec80eb6e4e6fe',
outIdx: 9,
},
+ sats: 600n,
},
],
lockTime: 0,
@@ -10385,26 +10377,26 @@
},
inputScript:
'483045022100b50fac4b810ac6b10ce35f25fcc1a6b1f87b1209e8ee5973732d983395199de102204f860238b12ba3e7adfc432e331405f751fef1aa494c2d0122b7aaa522158933412102188904278ebf33059093f596a2697cf3668b3bec9a3a0c6408a455147ab3db93',
- value: 3725,
sequenceNo: 4294967295,
outputScript:
'76a914d18b7b500f17c5db64303fec630f9dbb85aa959688ac',
+ sats: 3725n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a4cd43336616533642d4d45524f4e2d57494e227d2c7b226e616d65223a2277616c61222c226d657373616765223a223635396661313133373065333136663265613336616533642d57414c412d57494e227d5d2c227465726d73223a5b7b226e616d65223a22726566657265655075624b6579222c2274797065223a226279746573222c2276616c7565223a22303231383839303432373865626633333035393039336635393661323639376366333636386233626563396133613063363430386134353531343761623364623933227d5d7d7d7d7d',
+ sats: 0n,
},
{
- value: 3308,
outputScript:
'76a914d18b7b500f17c5db64303fec630f9dbb85aa959688ac',
spentBy: {
txid: 'e5b4912fa19d93db9b6b9586ad9ab3a7f9bc3514325c71e36816e4b047a9f6b8',
outIdx: 0,
},
+ sats: 3308n,
},
],
lockTime: 0,
@@ -10454,7 +10446,6 @@
},
inputScript:
'41482340e636feab0d15efb309e72eac0f559d0b85eb1799e0a1419430e95448a6a5c1e3961c92861e653dde4428e6e3a79c90d10911b045e7469f7beeae62fc56c1210378d370d2cd269a77ac2f37c28d98b392e5b9892f3b3406bfec8794c82244b039',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -10464,12 +10455,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '49756',
isMintBaton: false,
entryIdx: 0,
+ atoms: 49756n,
},
outputScript:
'76a914575116c8adf5817c99fc5bdac8db18d10c25703d88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -10478,10 +10470,10 @@
},
inputScript:
'4152ed9a66a0c40759e400a1484df1a1d2b152c9d6917abf3beaf974f21a935d60853490ae5a07c237531016ceae6c1f01cce9cf2a1417b2b2bcbbc4737ea2fe35412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
+ sats: 1000n,
},
{
prevOut: {
@@ -10490,10 +10482,10 @@
},
inputScript:
'412a65517b4df68bb03ba2b7cd85e70af662503bbc8be209e7fbf18bb0950ff7e0d589f0b3e8119b5e67314fbedd856968890556593d97db58c78e86d2417f27d7412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
+ sats: 1000n,
},
{
prevOut: {
@@ -10502,10 +10494,10 @@
},
inputScript:
'412c9a66d04d341b1f0c3a15689265729a18f5605269909ad9f7b842ea03d96f8540e1b5b272ddc9db5f2d392a8e0569428a7ba4b5d99bbc707168898399f00da7412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
+ sats: 1000n,
},
{
prevOut: {
@@ -10514,20 +10506,19 @@
},
inputScript:
'41f2ffdbd5f3694669d448899d3f6d939a8165d70cba6be2eaa8416847d56d4630a7b3ac8a35641705e4eb583b391a46c204920641dd85e2b7e04dd18553422651412102f49a7fd4e0c6cea6401aed57b76b2fb358e1ebbb65fc5782e3c2165c9e850b31',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a9148b9b3ba9199d98e131b762081c0c31754fb904c288ac',
+ sats: 1000n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a503d534c5032000453454e4445e1f25de444e399b6d46fa66e3424c04549a85a14b12bc9a4ddc9cdcdcdcdcd038a02000000003e3000000000948f00000000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914dee50f576362377dd2f031453c0bb09009acaf8188ac',
token: {
@@ -10538,13 +10529,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '650',
isMintBaton: false,
entryIdx: 0,
+ atoms: 650n,
},
+ sats: 546n,
},
{
- value: 1960,
outputScript: 'a914b0bfb87508e5203803490c2f3891d040f772ba0f87',
token: {
tokenId:
@@ -10554,13 +10545,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '12350',
isMintBaton: false,
entryIdx: 0,
+ atoms: 12350n,
},
+ sats: 1960n,
},
{
- value: 546,
outputScript:
'76a914575116c8adf5817c99fc5bdac8db18d10c25703d88ac',
token: {
@@ -10571,10 +10562,11 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '36756',
isMintBaton: false,
entryIdx: 0,
+ atoms: 36756n,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -10594,9 +10586,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -10644,7 +10636,6 @@
},
inputScript:
'483045022100a5e4824f76bad8f224412fca2442c11598d6dd29848b67ae0e8c6f74a5a80b2c022049ee636ac6b951eba8273f300bcab8ffc31525f4d96ca738cfbb62e73769bf3a412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -10654,12 +10645,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '4',
isMintBaton: false,
entryIdx: 0,
+ atoms: 4n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -10668,20 +10660,19 @@
},
inputScript:
'483045022100dfe70b028211bf747a9d634f03f6f024264f75ef37f9dd4b40c8d8dfddfeff9702205ccb832e674c5c865353707fc46c5b4206dd807797d6b64f146441fa2d85bf94412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 32771801,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 32771801n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001810453454e442012a049d0da64652b4e8db68b6052ad0cda43cf0269190fe81040bed65ca926a3080000000000000001080000000000000001080000000000000001080000000000000001',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -10692,17 +10683,17 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
spentBy: {
txid: 'fcab9a929a15ef91b5c5ca38b638e4d3f5fc49deb36fbc5c63de1fa900c8bcda',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -10713,13 +10704,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -10730,13 +10721,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -10747,19 +10738,20 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
+ sats: 546n,
},
{
- value: 32769023,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'fcab9a929a15ef91b5c5ca38b638e4d3f5fc49deb36fbc5c63de1fa900c8bcda',
outIdx: 1,
},
+ sats: 32769023n,
},
],
lockTime: 0,
@@ -10779,9 +10771,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -10863,7 +10855,6 @@
},
inputScript:
'483045022100939d517c889174bdcaf9755390165ce1e2ba7f47d1490dbf48bbf2f4146c84360220172aeb2fe8eca8a0c59e68ca6b2ab1a8fd0bdded8410212c5d34d936cadcf734412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -10873,12 +10864,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
isMintBaton: false,
entryIdx: 1,
+ atoms: 1n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -10887,20 +10879,19 @@
},
inputScript:
'483045022100da6101ab8d02141d6745b3985d4c1ba5481cb2c470acff8d40e66fa654e3f14402200906d6a511dda0c5bc243f82217a03fe40c3cfc0a407b2d1e6f971de1ae70316412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 32769023,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 32769023n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001410747454e45534953035746430c57752046616e672043686f690b636173687461622e636f6d20ec7ed5da3ed751a80a3ab857c50dce405f8e8f7a083fafea158a3a297308385501004c00080000000000000001',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -10911,15 +10902,16 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
+ sats: 546n,
},
{
- value: 32768070,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 32768070n,
},
],
lockTime: 0,
@@ -10939,11 +10931,11 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
groupTokenId:
'12a049d0da64652b4e8db68b6052ad0cda43cf0269190fe81040bed65ca926a3',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
{
tokenId:
@@ -10957,9 +10949,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -11044,20 +11036,19 @@
},
inputScript:
'483045022100eb2e68c7d02eda2dd64c22a079d832c5c85f34f1ced264cd3b37658d4cd0b89e02203e204cd625a05c8ba59291567bc14d0bfa193a9a37cbc00aec804a224dc910d1412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 32766028,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 32766028n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001810747454e455349530348534d0b54686520486569736d616e2c68747470733a2f2f656e2e77696b6970656469612e6f72672f77696b692f486569736d616e5f54726f7068792073229094743335d380cd7ce479fb38c9dfe77cdd97668aa0c4d9183855fcb97601004c00080000000000000059',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -11068,23 +11059,24 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '89',
isMintBaton: false,
entryIdx: 0,
+ atoms: 89n,
},
spentBy: {
txid: '1f2f9a37767586320a8af6afadda56bdf5446034910e27d537f26777ad95e0d5',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 32764762,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '1f2f9a37767586320a8af6afadda56bdf5446034910e27d537f26777ad95e0d5',
outIdx: 1,
},
+ sats: 32764762n,
},
],
lockTime: 0,
@@ -11104,9 +11096,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -11188,10 +11180,10 @@
},
inputScript:
'41246058dcfab4114536db638d064612e12e0cfff613b568535c278e544ec68ec3e02ffc94d09a0ffe0f4e6fd9ff9608b01aad46cad3765059c3fe45ea09898abe4121029bd5d9d9565b734188493dfd3b0fe985ccd55bb6bc1544cf6ed25a46076f045f',
- value: 45553900000,
sequenceNo: 4294967294,
outputScript:
'76a914bb3f3669824acaf67902cbc8477f75ae5b139a0f88ac',
+ sats: 45553900000n,
},
{
prevOut: {
@@ -11200,21 +11192,21 @@
},
inputScript:
'415d1ee0074f11a0adf5c35039167a731d008656eb0a33b5eec9144dd8614419e88866779cce3da0de8c9f839ddbb8d8ee8d24c82526a8900730ea8af8ef102c6d4121020b5c467c0276678df5f50cc932e81abf259f40477f815ed11f4d0fecab39f2d6',
- value: 100000000,
sequenceNo: 4294967294,
outputScript:
'76a91409c388abff6922c7e97ef8ea58e9697b6637910c88ac',
+ sats: 100000000n,
},
],
outputs: [
{
- value: 45653899320,
outputScript:
'76a914601efc2aa406fe9eaedd41d2b5d95d1f4db9041d88ac',
spentBy: {
txid: 'b9aab1e26381457b390ad689c7577962cef1ec48de3a83d87db68968afb7e4cf',
outIdx: 54,
},
+ sats: 45653899320n,
},
],
lockTime: 0,
@@ -11253,27 +11245,27 @@
},
inputScript:
'413fb023c886471d0f7eefcd3e5bf2cdbc0f537edd20b9f515d32da7c80b519b7cdc2da3e6696220addd232ebd8c10d53c092965d6bcce262b1a8745a61a18f3a54121030a06dd7429d8fce700b702a55a012a1f9d1eaa46825bde2d31252ee9cb30e536',
- value: 3377,
sequenceNo: 4294967295,
outputScript:
'76a91414582d09f61c6580b8a2b6c8af8d6a13c9128b6f88ac',
+ sats: 3377n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a0461757468140644ad85a538657c033e36ce5a3c8cf26076591f',
+ sats: 0n,
},
{
- value: 550,
outputScript:
'76a914b20298c1b5d6a82a61f6c8cd708fa87a1ce1a97a88ac',
+ sats: 550n,
},
{
- value: 2314,
outputScript:
'76a91414582d09f61c6580b8a2b6c8af8d6a13c9128b6f88ac',
+ sats: 2314n,
},
],
lockTime: 0,
@@ -11321,27 +11313,27 @@
},
inputScript:
'483045022100b7af7b05bb2fd4c743724175ddb4ed00030954f35adabe5e4dd77c1cb3125a7e02204186b77fcb0ce296a2ece2a0aa942933401bc269ea19f85434cdffe21bfea85d412103def4b1f77431c9825632ac5da7433b6eaa5281a90aabd9b597af4f16f6cccf51',
- value: 3000,
sequenceNo: 4294967295,
outputScript:
'76a9140536f99c447acb2ab26b91db741975b6e0bd981788ac',
+ sats: 3000n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04636861741a68656c6c6f2066726f6d206543617368204368617420f09f918d',
+ sats: 0n,
},
{
- value: 1000,
outputScript:
'76a9140b7d35fda03544a08e65464d54cfae4257eb6db788ac',
+ sats: 1000n,
},
{
- value: 1461,
outputScript:
'76a9140536f99c447acb2ab26b91db741975b6e0bd981788ac',
+ sats: 1461n,
},
],
lockTime: 0,
@@ -11408,7 +11400,6 @@
},
inputScript:
'473044022038242777df76cf81fea627fad7c8a4f67ddb2dd68defcdb8d45dbc7e0f90c62102206f5c9a5b79f10cb6ac93d46a084666b810d12871c02182f9097b1ac72643dab6412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -11418,12 +11409,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -11432,20 +11424,19 @@
},
inputScript:
'47304402206d2c4bada7e705e12f7e8e21b2bfb7a6cf0b02dcb7ffc6b21f1a866dc0e7c7a10220667c1d970506cdae180a78888cf10cf9ada6800b4db22f06a8f4ae5c40aeea16412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 3300n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c50000101044d494e5420aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb10102080000000000000064',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -11456,13 +11447,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100n,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -11473,19 +11464,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
spentBy: {
txid: 'dd9018d0037fee4094c2445b23ed9eef65d456db3f2b9c053ad39ee6505fca44',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 2280,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 2280n,
},
],
lockTime: 0,
@@ -11505,9 +11497,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -11555,7 +11547,6 @@
},
inputScript:
'419d3ac0b32abebc181c55e5a45c25d5050f73ba1269348829f4d5677131e3c627f73a552bf003de5d86423ce3f47fd4fd116eba837be72a3cef6f002158b0482a412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -11565,12 +11556,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -11579,20 +11571,19 @@
},
inputScript:
'41f444904158cb70106321dc09161d7bf3dde584e541c73d21f46a19c176c10e1c3ea79252e52878a0f11f5c6b896d8adc5c75d1c6039e750c31ab07114d2f3bca412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1748,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1748n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001410453454e4420f09ec0e8e5f37ab8aebe8e701a476b6f2085f8d9ea10ddc8ef8d64e7ad377df3080000000000000001',
+ sats: 0n,
},
{
- value: 860,
outputScript: 'a91463b7313157fb1d054919364c837d8af927fa569987',
token: {
tokenId:
@@ -11602,19 +11593,20 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
spentBy: {
txid: 'c7fe7ac1f29c34e0795786b609622f6439cfde52246f31cba89aa0b28c8542ee',
outIdx: 0,
},
+ sats: 860n,
},
{
- value: 1012,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1012n,
},
],
lockTime: 0,
@@ -11634,11 +11626,11 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
groupTokenId:
'd2bfffd48c289cd5d43920f4f95a88ac4b9572d39d54d874394682608f56bf4a',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -11719,7 +11711,6 @@
},
inputScript:
'2102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd879540c4da30dce1304b58ad7e2b8f87729d2b7c5f7c2390e8bbc33bebcc7c80503c992801df01dad963adb737892e0d3499875b99477f65786c45e9146610a219fe104c5aee42858cb2a09aa8cb316f2452decf39642f6209b6865779e0349cf2c17afec70100000001ac2202000000000000ffffffffc996989ea840ccd9e2f0324dc0accbe26a32c3c8bd5d710ce18f68acaafdb3d300000000c10000004422020000000000001976a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac7a3d160c000000001976a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac514cb0634c6b0000000000000000406a04534c500001410453454e4420f09ec0e8e5f37ab8aebe8e701a476b6f2085f8d9ea10ddc8ef8d64e7ad377df30800000000000000000800000000000000013ea74b04000000001976a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac7c7eaa7801327f7701207f7588520144807c7ea86f7bbb7501c17e7c672103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba668abac',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -11729,11 +11720,12 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
outputScript: 'a914dec4855b83573e56312d9f3852697a48c09ee6b087',
+ sats: 546n,
},
{
prevOut: {
@@ -11742,10 +11734,10 @@
},
inputScript:
'414964793d1de39477192d9ee1491c49973303b18b594b249cfb0b9b752826f0ccc9da5ebf1dde9de63f5e5825b3e7257f48e1310920e30e28e83beada1f21be58412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 19360,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 19360n,
},
{
prevOut: {
@@ -11754,10 +11746,10 @@
},
inputScript:
'41c60f1f0f70dd45780f5b5a48e7e8e823ab04ae5f2b652c68d36856d7999e65423c88f4315bde6eeebe1c263e27b5275453a52c33962eddd704ec63330482cbde412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 11007,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 11007n,
},
{
prevOut: {
@@ -11766,10 +11758,10 @@
},
inputScript:
'418a65da44dc054c90c718cafe5a8eb1a58a40f1c2864a356152eadb6ad439f66f7e457f09821fb53b07bd50d68baa64abed6134f98d18c2da4050496c54341a4c412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 5235,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 5235n,
},
{
prevOut: {
@@ -11778,10 +11770,10 @@
},
inputScript:
'41db37e18dda29041f7f931bb895777ec8bea1f6341dc48a144a2deac2545519892c19c050bfe8eb32143a5860ef4343079cb0b6705f2b72e8555f3b96badd3e82412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 4201,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 4201n,
},
{
prevOut: {
@@ -11790,10 +11782,10 @@
},
inputScript:
'41f5ad3937e27b09550dfac33838bb0acfe61bf69378c3fbd6fb145ce48cf0cd9fc7e2b4abfcb17616dedecd33e84a860c5f2ceea50ea0e59a59e7fa4e87b478ce412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 19901,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 19901n,
},
{
prevOut: {
@@ -11802,10 +11794,10 @@
},
inputScript:
'41346e924f1a559129de3bb6f8bfb9358aae0401ab6dcc49c9e974bed7b94b246f001ec19ed7c682d945426882abce9f5bebdd984845b2c127c0f2549fcee5aec9412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 12964,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 12964n,
},
{
prevOut: {
@@ -11814,25 +11806,24 @@
},
inputScript:
'41f5295566cdf6a64102474a4cf1a90c0be1f734a01a7c553d28d79543de93991633b67473c7cd859f14f4682942ea08b8f399abc3d9aba4d3017931ae61f677d4412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 274781657,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 274781657n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001410453454e4420f09ec0e8e5f37ab8aebe8e701a476b6f2085f8d9ea10ddc8ef8d64e7ad377df3080000000000000000080000000000000001',
+ sats: 0n,
},
{
- value: 72066878,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 72066878n,
},
{
- value: 546,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -11843,15 +11834,16 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
+ sats: 546n,
},
{
- value: 202784122,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 202784122n,
},
],
lockTime: 0,
@@ -11871,11 +11863,11 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
groupTokenId:
'd2bfffd48c289cd5d43920f4f95a88ac4b9572d39d54d874394682608f56bf4a',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -11950,12 +11942,11 @@
},
inputScript:
'41fd18138ab17386e9599e54d9d5f1994d1c4add3af860b1ece44b71d04bc7e7cd799e1234e2959236cd38558713d7fdb797a894c527906b0235a38519ad63fbea4121024f624d04900c2e3b7ea6014cb257f525b6d229db274bceeadbb1f06c07776e82',
- value: 975251,
sequenceNo: 4294967295,
outputScript:
'76a9147847fe7070bec8567b3e810f543f2f80cc3e03be88ac',
+ sats: 975251n,
},
- // Note that the p2sh is not necessarily input 0 for an agora partial cancel tx
{
prevOut: {
txid: '0c580a7dbfb7f160f0e4623faa24eb0475b2220704c8c46f279a479a477433f8',
@@ -11963,7 +11954,6 @@
},
inputScript:
'0441475230075041525449414c4113bb98283dc7a2f69957940bb3a45f4ec6050b61bcc1b1134d786727e379c8793107bf0d0b0e051665ab3eed2cca34901646cf564a1ab52cb32668da229eef0b41004d5f014c766a04534c500001010453454e442020a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f8080000000000000000030276a4000000000000e815000000000000a24a2600000000004b4a343a024f624d04900c2e3b7ea6014cb257f525b6d229db274bceeadbb1f06c07776e8208948eff7f00000000ab7b63817b6ea2697603a24a26a269760376a4009700887d94527901377f75789263587e780376a400965580bc030000007e7e68587e52790376a400965580bc030000007e7e825980bc7c7e0200007e7b02e7159302e8159656807e041976a914707501557f77a97e0288ac7e7e6b7d02220258800317a9147e024c7672587d807e7e7e01ab7e537901257f7702dd007f5c7f7701207f547f75044b4a343a886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501557f7768ad075041525449414c88044147523087',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -11973,21 +11963,21 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '855738679296',
isMintBaton: false,
entryIdx: 0,
+ atoms: 855738679296n,
},
outputScript: 'a914cb61d733f8e99b1b40d40a53a59aca8a08368a6f87',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442020a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f808000000c73e000000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a9147847fe7070bec8567b3e810f543f2f80cc3e03be88ac',
token: {
@@ -11998,15 +11988,16 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '855738679296',
isMintBaton: false,
entryIdx: 0,
+ atoms: 855738679296n,
},
+ sats: 546n,
},
{
- value: 973723,
outputScript:
'76a9147847fe7070bec8567b3e810f543f2f80cc3e03be88ac',
+ sats: 973723n,
},
],
lockTime: 0,
@@ -12026,9 +12017,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -12106,7 +12097,6 @@
},
inputScript:
'0441475230075041525449414c21023c72addb4fdf09af94f0c94d7fe92a386a7e70cf8a1d85916386bb2535c7b1b1404799ed59b763768b8e7385a35c0a357e624e1725154d4c3240f38edc021527b267881f2078be11f89221f6c8036c156274742dae00ce8a88bb6ee527bc18dc744422020000000000001976a9142aba37d6365d3e570cadf3ed65e58ae4ad751a3088ac4d420100000000001976a9142aba37d6365d3e570cadf3ed65e58ae4ad751a3088ac4d32018cb148920f4d8ce041b784ad0a6c542f3f66d67306ad99ea0f6e5016439a462001000000d97b63817b6ea26976046de4ff17a26976033b62109700887d94527901377f75789263587e78033b6210965880bc007e7e68587e5279033b6210965880bc007e7e825980bc7c7e01007e7b03288f009303298f009657807e041976a914707501557f77a97e0288ac7e7e6b7d02220258800317a9147e024c7672587d807e7e7e01ab7e537901257f7702d9007f5c7f7701207f547f7504f3282c4e886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501557f7768ad075041525449414c880441475230872202000000000000ffffffffca3033eea929796cc020b87c909e38d37943502aa69486f2d97d56daa454e28df3282c4ec1000000046de4ff17514d5b014c766a04534c500001010453454e442001d63c4f4cb496829a6743f7b1805d086ea3877a1dd34b3f92ffba2c9c99f89608000000000000000000013b62100000000000298f0000000000006de4ff1700000000f3282c4e03771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba608f06cff7f00000000ab7b63817b6ea26976046de4ff17a26976033b62109700887d94527901377f75789263587e78033b6210965880bc007e7e68587e5279033b6210965880bc007e7e825980bc7c7e01007e7b03288f009303298f009657807e041976a914707501557f77a97e0288ac7e7e6b7d02220258800317a9147e024c7672587d807e7e7e01ab7e537901257f7702d9007f5c7f7701207f547f7504f3282c4e886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501557f7768ad075041525449414c88044147523087',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -12116,9 +12106,9 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 2000n,
},
plugins: {
agora: {
@@ -12139,6 +12129,7 @@
},
},
outputScript: 'a914563178ea073228709397a2c98baf10677e683e6687',
+ sats: 546n,
},
{
prevOut: {
@@ -12147,29 +12138,28 @@
},
inputScript:
'41866f21d34e5b061cf7cb9ce4a6ce4df037628b72765db893675eae909ddad9d7ea7593d1a510fee1d80887699410b4330e9214efd5668dd51644d7ffce498ac94121039f0061726e4fed07061f705d34707b7f9c2f175bfa2ca7fe7df0a81e9efe1e8b',
- value: 2898252,
sequenceNo: 4294967295,
outputScript:
'76a9142aba37d6365d3e570cadf3ed65e58ae4ad751a3088ac',
+ sats: 2898252n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442001d63c4f4cb496829a6743f7b1805d086ea3877a1dd34b3f92ffba2c9c99f896080000000000000000080000000000000659080000000000000177',
+ sats: 0n,
},
{
- value: 2812672,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '5d934ade992707fe126bcd393ad4358b2c10118b635df4b97e3e3f30ca7cc781',
outIdx: 1,
},
+ sats: 2812672n,
},
{
- value: 546,
outputScript: 'a91451d609999740085f16cfbee2f9791d6ae6ac678d87',
plugins: {
agora: {
@@ -12197,13 +12187,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1625',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1625n,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9142aba37d6365d3e570cadf3ed65e58ae4ad751a3088ac',
token: {
@@ -12214,23 +12204,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '375',
isMintBaton: false,
entryIdx: 0,
+ atoms: 375n,
},
spentBy: {
txid: 'f0e450b41d1c15b32478efb668bc562fa341a40fa799db7747228350295f84d4',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 82509,
outputScript:
'76a9142aba37d6365d3e570cadf3ed65e58ae4ad751a3088ac',
spentBy: {
txid: '3a7a8971392e74fd542498c055509ace4f4853b981d87d73ba045f77100dad1e',
outIdx: 1,
},
+ sats: 82509n,
},
],
lockTime: 1311516915,
@@ -12250,9 +12241,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -12370,10 +12361,10 @@
},
inputScript:
'415ece5326f001de92ce37d34b6ada073c3f60b52231b8291e1d4900c4813b93379dfc3e11ed417c58fce9fc1ead27b5754d4d2c8ff3d6949e694a9529afea0f4c412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 661543961,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 661543961n,
},
{
prevOut: {
@@ -12382,7 +12373,6 @@
},
inputScript:
'0441475230075041525449414c4195484212249b53096fa43b1dc39559f9671cd305b4715c063c486b2fc30eec194685f027c560742da8746b61aacfb05dd039d8e519fa7ca065d7fe3188fa63df41004d5a014c766a04534c500001010453454e4420b8f2a9e767a0be7b80c7e414ef2534586d4da72efddb39a4e70e501ab73375cc0800000000000000000001f588410000000000f980000000000000f588410000000000bbbcb84f03771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba608bbd1b77e00000000ab7b63817b6ea2697603f58841a2697603f588419700887d94527901377f75789263587e7803f58841965880bc007e7e68587e527903f58841965880bc007e7e825980bc7c7e01007e7b03f880009303f980009657807e041976a914707501557f77a97e0288ac7e7e6b7d02220258800317a9147e024c7672587d807e7e7e01ab7e537901257f7702d8007f5c7f7701207f547f7504bbbcb84f886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501557f7768ad075041525449414c88044147523087',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -12392,21 +12382,21 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '495',
isMintBaton: false,
entryIdx: 0,
+ atoms: 495n,
},
outputScript: 'a914b069fa99f084a259a6a31cc8cf33edb8a853fbb587',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e4420b8f2a9e767a0be7b80c7e414ef2534586d4da72efddb39a4e70e501ab73375cc0800000000000001ef',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -12417,15 +12407,16 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '495',
isMintBaton: false,
entryIdx: 0,
+ atoms: 495n,
},
+ sats: 546n,
},
{
- value: 661543206,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 661543206n,
},
],
lockTime: 0,
@@ -12445,9 +12436,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -12523,7 +12514,6 @@
},
inputScript:
'419b8ec92ca5701691d9f5e75d525532cbec6ed9d9ed81f8f982b5af76090289d001ce2022ec82ba096c99beb00b0d9b0a92f2ef8da269a7967e6856170796beac41004cb0634c6b0000000000000000406a04534c500001410453454e4420f09ec0e8e5f37ab8aebe8e701a476b6f2085f8d9ea10ddc8ef8d64e7ad377df308000000000000000008000000000000000164594e05000000001976a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac7c7eaa7801327f7701207f7588520144807c7ea86f7bbb7501c17e7c672102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd879568abac',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -12533,11 +12523,12 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
outputScript: 'a91451a5d608ff31c1585d7aba3a2afcd2ae02898abd87',
+ sats: 546n,
},
{
prevOut: {
@@ -12546,20 +12537,19 @@
},
inputScript:
'41ccbca2638a68145ecc38c8a96c058dff2619b8d495360e0b5866de555f1c6b621ef147df1a9e0f5bee006d1db94e1e2670915265d38f3ba801114037ed0d441d412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 1153,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 1153n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001410453454e4420f09ec0e8e5f37ab8aebe8e701a476b6f2085f8d9ea10ddc8ef8d64e7ad377df3080000000000000001',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -12570,10 +12560,11 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -12593,11 +12584,11 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
groupTokenId:
'd2bfffd48c289cd5d43920f4f95a88ac4b9572d39d54d874394682608f56bf4a',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -12642,7 +12633,6 @@
},
inputScript:
'0441475230075041525449414c21023c72addb4fdf09af94f0c94d7fe92a386a7e70cf8a1d85916386bb2535c7b1b1400c2c91f9168505022957e651ce0d876ec90a483dec8eb83f9a2897cd0b1640962dcab03e0df52f086db75351d10c01386ff2dcf4e774ee09b5dcf6b96ced6b254422020000000000001976a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688acc5728209000000001976a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac4d280117240f7baf3a635f82d991d68de9922c31a6a1ab98fcf153727f2dfb69ae96f601000000cf7b63817b6ea269760460368f02a2697602c6109700887d94527901377f75789263587e7802c610965880bc007e7e68587e527902c610965880bc007e7e825980bc7c7e007e7b5d935e9658807e041976a914707501557f77a97e0288ac7e7e6b7d02220258800317a9147e024c7672587d807e7e7e01ab7e537901257f7702cf007f5c7f7701207f547f750443840647886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501557f7768ad075041525449414c880441475230872202000000000000ffffffffb0f7a847759b44cb4dd22554924cf5dae4d946b5aa04372b20eb218d43210b4243840647c10000000422ad0024514d51014c766a04534c500001010453454e44207e7dacd72dcdb14e00a03dd3aff47f019ed51a6f1f4e4f532ae50692f62bc4e50800000000000000000000c6100000000000000e0000000000000060368f020000000043840647037f1729ee682b22da2b5dd8a11779ec7b80739c4b5d4b48f83c35d83fbb40a21208c09ef87f00000000ab7b63817b6ea269760460368f02a2697602c6109700887d94527901377f75789263587e7802c610965880bc007e7e68587e527902c610965880bc007e7e825980bc7c7e007e7b5d935e9658807e041976a914707501557f77a97e0288ac7e7e6b7d02220258800317a9147e024c7672587d807e7e7e01ab7e537901257f7702cf007f5c7f7701207f547f750443840647886b7ea97e01877e7c92647500687b8292697e6c6c7b7eaa88520144807c7ea86f7bbb7501c17e7c677501557f7768ad075041525449414c88044147523087',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -12652,11 +12642,12 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '500000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 500000n,
},
outputScript: 'a9149c2c40a0a571b35e2e6cca5c224d0c948096a36b87',
+ sats: 546n,
},
{
prevOut: {
@@ -12665,10 +12656,10 @@
},
inputScript:
'41fb428d1c14340d4ef10c55202db803232018f0ae41777503c4a9cb78b4659fad4540f27314c74b9247a1c88937c5594ef908f5e916dddd5b054f290c5a8807a4412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 32055,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 32055n,
},
{
prevOut: {
@@ -12677,10 +12668,10 @@
},
inputScript:
'4102e2c50dc6e3c3d8151c950075bc997dbe4762b1c59bcbe3cdd124566d1925bcecb466d21d32133b68fb8579b79e538f4b8dd61832374f2f713f328c3fc850ab412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 3300,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 3300n,
},
{
prevOut: {
@@ -12689,25 +12680,24 @@
},
inputScript:
'412f68bc4b72f9df1435d4046719b793556295fbe02d80c8752acf587afac49d09f160ba04f2dfd5c1fa9ae5e294e31d5b8efc331074cefa08bfe7e2106e46b34a412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 202656827,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 202656827n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44207e7dacd72dcdb14e00a03dd3aff47f019ed51a6f1f4e4f532ae50692f62bc4e5080000000000000000080000000000057ba508000000000002257b',
+ sats: 0n,
},
{
- value: 43144579,
outputScript:
'76a914dee50f576362377dd2f031453c0bb09009acaf8188ac',
+ sats: 43144579n,
},
{
- value: 546,
outputScript: 'a914502ed21ca74bde03d7fb672ed9c996eab92e72fd87',
token: {
tokenId:
@@ -12717,13 +12707,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '359333',
isMintBaton: false,
entryIdx: 0,
+ atoms: 359333n,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -12734,19 +12724,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '140667',
isMintBaton: false,
entryIdx: 0,
+ atoms: 140667n,
},
+ sats: 546n,
},
{
- value: 159544005,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '40c5a257a9797bf9cb44f0f1fe7ee08d732a151c70f1a038487bac4a431b7787',
outIdx: 1,
},
+ sats: 159544005n,
},
],
lockTime: 1191609411,
@@ -12766,9 +12757,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -12885,7 +12876,6 @@
},
inputScript:
'413bcbae418f71ecbc9b5a2ecbe9d7d7bd61a7473399ccfe4176e62fe51fe4cdba2dc8cb42088207ee4daf8c4a618e7e4a9773f969e681c8e2b552b13fc8ddc8e8412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -12895,12 +12885,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -12909,20 +12900,19 @@
},
inputScript:
'41f5fe8b075e9f9ab3b3c69b8e5621c9de49c4daffb698097149bdb57f4d472e0d1a9692df4d07ec64d4102c10a76bdc6bc6ef9df630061b34a1d19f50f1e97ef4412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 71580707,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 71580707n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c50000181044d494e54205a9d91ae2730dffbd0795dd2f8bfda5a6ad905f374158c8df303ca5cc82f86200102080000000000000001',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -12933,13 +12923,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -12950,19 +12940,20 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
spentBy: {
txid: '5d934ade992707fe126bcd393ad4358b2c10118b635df4b97e3e3f30ca7cc781',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 71579701,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 71579701n,
},
],
lockTime: 0,
@@ -12982,9 +12973,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -13064,7 +13055,6 @@
},
inputScript:
'41eed3688821e81f77edcf70e877d6b270acbd1714b82ea9b58fe0239e3dfccd73da5a1dd5d2906a40624d172e1a4273eda5e2feb902d74b73e264f9ef469c0a99412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -13074,12 +13064,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '99999',
isMintBaton: false,
entryIdx: 0,
+ atoms: 99999n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -13088,20 +13079,19 @@
},
inputScript:
'41bfbaae1e96b3a3d7fbbe24c2cd9ac07e48b7340e24635a8005be1b94563bc0e020d073d8a88e9af4a5a067ff9dcd6601f35611399d70f2958ff7ce22770792a7412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 2812672,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 2812672n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a5030534c503200044255524e3f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e1101000000000031534c5032000453454e443f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e11019e8601000000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -13112,15 +13102,16 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '99998',
isMintBaton: false,
entryIdx: 0,
+ atoms: 99998n,
},
+ sats: 546n,
},
{
- value: 2812202,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 2812202n,
},
],
lockTime: 0,
@@ -13140,9 +13131,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '1',
- intentionalBurn: '1',
burnsMintBatons: false,
+ actualBurnAtoms: 1n,
+ intentionalBurnAtoms: 1n,
},
],
tokenFailedParsings: [],
@@ -13220,7 +13211,6 @@
},
inputScript:
'41063618b40515cc62f4c2802f4f76ae729cfe31351f419634560bff37fbb8fa3dce1efb084e12a5e983beb893e945854470f409c1ec1c8c48b2baf7f5d80cb5e1412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -13230,12 +13220,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '98082',
isMintBaton: false,
entryIdx: 0,
+ atoms: 98082n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -13244,7 +13235,6 @@
},
inputScript:
'41c143430106e44093436317fb23c3eb96e453ea500e47ea4d1952fdb917c4423abc52a51f0163e193704c6879fd0ff005423ae60ff4f75c7ff234cb6d45ef0391412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -13254,22 +13244,22 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '1024',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1024n,
},
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a504b41475230075041525449414c0001a4540000000000009006000000000000a4540000000000006f67825703771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba631534c5032000453454e443f93ce4cbff80c9cfc7647fe0c6d99b61248dce720a27f3723cd4737d35b6e1101228301000000',
+ sats: 0n,
},
{
- value: 546,
outputScript: 'a91410596364db3336ec723ce7eaa296e7fa7dbe070687',
plugins: {
agora: {
@@ -13297,14 +13287,15 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '99106',
isMintBaton: false,
entryIdx: 0,
+ atoms: 99106n,
},
spentBy: {
txid: 'a6d65d619bbb03c4490498f7fe1d5413e92df064915a3533a09e8a4ba1762255',
outIdx: 1,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -13324,9 +13315,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -13404,10 +13395,10 @@
},
inputScript:
'483045022100a58e1087f128d676d4b5839c795df15b88b87b47b0c8f382d39811ee5df21cf6022022727ede00178347e0ab0dd3df91959378c25a29f902a4f8b4f1c79ddd7cf15241210216794b896521c52b0b156d886652859d1e4e03a9cd8f3894f4b1e1853092a3c7',
- value: 550,
sequenceNo: 4294967295,
outputScript:
'76a91406e6281dfcffdd9db8304e81dcfa3820ab349ae488ac',
+ sats: 550n,
},
{
prevOut: {
@@ -13416,31 +13407,31 @@
},
inputScript:
'483045022100856c2d015d7384a094d0c17dde0ec29ee37ddf64c914a6c1d12c9bd92724bc52022027d9f6525c49786e5454615e605d1af0aa4fa0860eea39e927316042ba3557f141210216794b896521c52b0b156d886652859d1e4e03a9cd8f3894f4b1e1853092a3c7',
- value: 27419,
sequenceNo: 4294967295,
outputScript:
'76a91406e6281dfcffdd9db8304e81dcfa3820ab349ae488ac',
+ sats: 27419n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a0470617977204d7a62ebb7f06fd7a86f861280853e6fce3c117c73598fe284190260abd5ddc4',
+ sats: 0n,
},
{
- value: 15000,
outputScript:
'76a91406e6281dfcffdd9db8304e81dcfa3820ab349ae488ac',
spentBy: {
txid: '84d75fe93ab918e74e58c1a12a982d0cc8d1db1bb102f02068772723891711b3',
outIdx: 0,
},
+ sats: 15000n,
},
{
- value: 12056,
outputScript:
'76a91406e6281dfcffdd9db8304e81dcfa3820ab349ae488ac',
+ sats: 12056n,
},
],
lockTime: 0,
@@ -13535,15 +13526,15 @@
},
blockHeight: 680782,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'bf24d955f59351e738ecd905966606a6837e478e1982943d724eab10caad82fd',
- tokenType: [Object],
- amount: '1',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13552,15 +13543,15 @@
},
blockHeight: 681191,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'dd84ca78db4d617221b58eabc6667af8fe2f7eadbfcc213d35be9f1b419beb8d',
- tokenType: [Object],
- amount: '1',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13569,15 +13560,15 @@
},
blockHeight: 685181,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'50d8292c6255cda7afc6c8566fed3cf42a2794e9619740fe8f4c95431271410e',
- tokenType: [Object],
- amount: '1',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13586,15 +13577,15 @@
},
blockHeight: 709251,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'f36e1b3d9a2aaf74f132fef3834e9743b945a667a4204e761b85f2e7b65fd41a',
- tokenType: [Object],
- amount: '1000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13603,15 +13594,15 @@
},
blockHeight: 717055,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'e859eeb52e7afca6217fb36784b3b6d3c7386a52f391dd0d00f2ec03a5e8e77b',
- tokenType: [Object],
- amount: '10',
+ tokenType: [],
isMintBaton: false,
+ atoms: 10n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13620,15 +13611,15 @@
},
blockHeight: 726826,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'44929ff3b1fc634f982fede112cf12b21199a2ebbcf718412a38de9177d77168',
- tokenType: [Object],
- amount: '2',
+ tokenType: [],
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13637,15 +13628,15 @@
},
blockHeight: 727176,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'b40d1f6acdb6ee68d7eca0167fe2753c076bc309b2e3b1af8bff70ca34b945b0',
- tokenType: [Object],
- amount: '5000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 5000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13654,15 +13645,15 @@
},
blockHeight: 741200,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'8ead21ce4b3b9e7b57607b97b65b5013496dc6e3dfdea162c08ce7265a66ebc8',
- tokenType: [Object],
- amount: '100000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 100000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13671,15 +13662,15 @@
},
blockHeight: 757311,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'77ec4036ef8546ac46df6d3a5374e961216f92624627eaeef5d2e1a253df9fc6',
- tokenType: [Object],
- amount: '116',
+ tokenType: [],
isMintBaton: false,
+ atoms: 116n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13688,15 +13679,15 @@
},
blockHeight: 758209,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'da9460ce4b1c92b4f6ef4e4a6bc2d05539f49d02b17681389d9ce22b8dca50f0',
- tokenType: [Object],
- amount: '311',
+ tokenType: [],
isMintBaton: false,
+ atoms: 311n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13705,15 +13696,15 @@
},
blockHeight: 758645,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'54dc2ecd5251f8dfda4c4f15ce05272116b01326076240e2b9cc0104d33b1484',
- tokenType: [Object],
- amount: '4588000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 4588000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13722,15 +13713,15 @@
},
blockHeight: 758887,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'54dc2ecd5251f8dfda4c4f15ce05272116b01326076240e2b9cc0104d33b1484',
- tokenType: [Object],
- amount: '229400000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 229400000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13739,15 +13730,15 @@
},
blockHeight: 759037,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'cf601c56b58bc05a39a95374a4a865f0a8b56544ea937b30fb46315441717c50',
- tokenType: [Object],
- amount: '7777777777',
+ tokenType: [],
isMintBaton: false,
+ atoms: 7777777777n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13756,15 +13747,15 @@
},
blockHeight: 759839,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'54dc2ecd5251f8dfda4c4f15ce05272116b01326076240e2b9cc0104d33b1484',
- tokenType: [Object],
- amount: '229400000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 229400000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13773,15 +13764,15 @@
},
blockHeight: 760076,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'acba1d7f354c6d4d001eb99d31de174e5cea8a31d692afd6e7eb8474ad541f55',
- tokenType: [Object],
- amount: '123456789',
+ tokenType: [],
isMintBaton: false,
+ atoms: 123456789n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13790,15 +13781,15 @@
},
blockHeight: 764737,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'0916e71779c9de7ee125741d3f5ab01f556356dbc86fd327a24f1e9e22ebc917',
- tokenType: [Object],
- amount: '1699',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1699n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13807,15 +13798,15 @@
},
blockHeight: 767640,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'df808a41672a0a0ae6475b44f272a107bc9961b90f29dc918d71301f24fe92fb',
- tokenType: [Object],
- amount: '99999998',
+ tokenType: [],
isMintBaton: false,
+ atoms: 99999998n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13824,15 +13815,15 @@
},
blockHeight: 767649,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'ccf5fe5a387559c8ab9efdeb0c0ef1b444e677298cfddf07671245ce3cb3c79f',
- tokenType: [Object],
- amount: '100000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 100000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13841,15 +13832,15 @@
},
blockHeight: 768787,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'7f8889682d57369ed0e32336f8b7e0ffec625a35cca183f4e81fde4e71a538a1',
- tokenType: [Object],
- amount: '1',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13858,15 +13849,15 @@
},
blockHeight: 769675,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'f36e1b3d9a2aaf74f132fef3834e9743b945a667a4204e761b85f2e7b65fd41a',
- tokenType: [Object],
- amount: '200',
+ tokenType: [],
isMintBaton: false,
+ atoms: 200n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13875,15 +13866,15 @@
},
blockHeight: 770363,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'bdb3b4215ca0622e0c4c07655522c376eaa891838a82f0217fa453bb0595a37c',
- tokenType: [Object],
- amount: '9900',
+ tokenType: [],
isMintBaton: false,
+ atoms: 9900n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13892,15 +13883,15 @@
},
blockHeight: 770363,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'157e0cdef5d5c51bdea00eac9ab821d809bb9d03cf98da85833614bedb129be6',
- tokenType: [Object],
- amount: '82',
+ tokenType: [],
isMintBaton: false,
+ atoms: 82n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13909,15 +13900,15 @@
},
blockHeight: 770387,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'bdb3b4215ca0622e0c4c07655522c376eaa891838a82f0217fa453bb0595a37c',
- tokenType: [Object],
- amount: '9989',
+ tokenType: [],
isMintBaton: false,
+ atoms: 9989n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13926,15 +13917,15 @@
},
blockHeight: 772042,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'ccf5fe5a387559c8ab9efdeb0c0ef1b444e677298cfddf07671245ce3cb3c79f',
- tokenType: [Object],
- amount: '42300000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 42300000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13943,15 +13934,15 @@
},
blockHeight: 774343,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a',
- tokenType: [Object],
- amount: '999882000000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 999882000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13960,15 +13951,15 @@
},
blockHeight: 776118,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'6e24e89b6d5284138c69777527760500b99614631bca7f2a5c38f4648dae9524',
- tokenType: [Object],
- amount: '999999878',
+ tokenType: [],
isMintBaton: false,
+ atoms: 999999878n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13977,15 +13968,15 @@
},
blockHeight: 780736,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3',
- tokenType: [Object],
- amount: '2',
+ tokenType: [],
isMintBaton: false,
+ atoms: 2n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -13994,15 +13985,15 @@
},
blockHeight: 780736,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3',
- tokenType: [Object],
- amount: '23',
+ tokenType: [],
isMintBaton: false,
+ atoms: 23n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14011,15 +14002,15 @@
},
blockHeight: 780736,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3',
- tokenType: [Object],
- amount: '65',
+ tokenType: [],
isMintBaton: false,
+ atoms: 65n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14028,15 +14019,15 @@
},
blockHeight: 782774,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'b9877d8f8d2364b983707df905d592f534a3ada18e52aa529a0f72fcc535abf7',
- tokenType: [Object],
- amount: '3',
+ tokenType: [],
isMintBaton: false,
+ atoms: 3n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14045,15 +14036,15 @@
},
blockHeight: 783389,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'acba1d7f354c6d4d001eb99d31de174e5cea8a31d692afd6e7eb8474ad541f55',
- tokenType: [Object],
- amount: '123456844',
+ tokenType: [],
isMintBaton: false,
+ atoms: 123456844n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14062,15 +14053,15 @@
},
blockHeight: 783638,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'b8f2a9e767a0be7b80c7e414ef2534586d4da72efddb39a4e70e501ab73375cc',
- tokenType: [Object],
- amount: '8988',
+ tokenType: [],
isMintBaton: false,
+ atoms: 8988n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14079,15 +14070,15 @@
},
blockHeight: 783638,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3',
- tokenType: [Object],
- amount: '995921',
+ tokenType: [],
isMintBaton: false,
+ atoms: 995921n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14096,15 +14087,15 @@
},
blockHeight: 783693,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'70ead4d94c43fe8c5576bb2528fd54380d8356f632ac962b1e03fb287607dfd4',
- tokenType: [Object],
- amount: '100',
+ tokenType: [],
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14113,15 +14104,15 @@
},
blockHeight: 783694,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'ff9aa6eebcd1331f8684d53b441cfa3060a4ffc403b417d5728de8ab231f5516',
- tokenType: [Object],
- amount: '100',
+ tokenType: [],
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14130,15 +14121,15 @@
},
blockHeight: 783695,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'f077f207fc8a8557e5f0ffc6021685ab4b357e9b92d2b5c4192dcb7760ee6e29',
- tokenType: [Object],
- amount: '100',
+ tokenType: [],
isMintBaton: false,
+ atoms: 100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14147,15 +14138,15 @@
},
blockHeight: 784246,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'3adbf501e21c711d20118e003711168eb39f560c01f4c6d6736fa3f3fceaa577',
- tokenType: [Object],
- amount: '999998999',
+ tokenType: [],
isMintBaton: false,
+ atoms: 999998999n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14164,15 +14155,15 @@
},
blockHeight: 784262,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3',
- tokenType: [Object],
- amount: '1',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14181,15 +14172,15 @@
},
blockHeight: 784460,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'3de671a7107d3803d78f7f4a4e5c794d0903a8d28d16076445c084943c1e2db8',
- tokenType: [Object],
- amount: '2100',
+ tokenType: [],
isMintBaton: false,
+ atoms: 2100n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14198,15 +14189,15 @@
},
blockHeight: 787547,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'20a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f8',
- tokenType: [Object],
- amount: '2998978719999999999',
+ tokenType: [],
isMintBaton: false,
+ atoms: 2998978719999999999n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14215,15 +14206,15 @@
},
blockHeight: 792712,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'4db25a4b2f0b57415ce25fab6d9cb3ac2bbb444ff493dc16d0615a11ad06c875',
- tokenType: [Object],
- amount: '999824',
+ tokenType: [],
isMintBaton: false,
+ atoms: 999824n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14232,15 +14223,15 @@
},
blockHeight: 800716,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'98183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48',
- tokenType: [Object],
- amount: '999977636',
+ tokenType: [],
isMintBaton: false,
+ atoms: 999977636n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14249,15 +14240,15 @@
},
blockHeight: 800716,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d',
- tokenType: [Object],
- amount: '5235120528888890',
+ tokenType: [],
isMintBaton: false,
+ atoms: 5235120528888890n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14266,15 +14257,15 @@
},
blockHeight: 802851,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'b977630ae1b4a0fe3ab12385fdaaffd974e5bd352f2a817ce135c1ee6005a35d',
- tokenType: [Object],
- amount: '75',
+ tokenType: [],
isMintBaton: false,
+ atoms: 75n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14283,15 +14274,15 @@
},
blockHeight: 802851,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'b977630ae1b4a0fe3ab12385fdaaffd974e5bd352f2a817ce135c1ee6005a35d',
- tokenType: [Object],
- amount: '652',
+ tokenType: [],
isMintBaton: false,
+ atoms: 652n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14300,15 +14291,15 @@
},
blockHeight: 803616,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'6376cae692cf0302ecdd63234c14cbb2b21cec75ab538335f90254cfb3ed44cc',
- tokenType: [Object],
- amount: '78',
+ tokenType: [],
isMintBaton: false,
+ atoms: 78n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14317,15 +14308,15 @@
},
blockHeight: 803741,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'6376cae692cf0302ecdd63234c14cbb2b21cec75ab538335f90254cfb3ed44cc',
- tokenType: [Object],
- amount: '43',
+ tokenType: [],
isMintBaton: false,
+ atoms: 43n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14334,15 +14325,15 @@
},
blockHeight: 824524,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d',
- tokenType: [Object],
- amount: '330000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 330000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14351,15 +14342,15 @@
},
blockHeight: 824524,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'bd1acc4c986de57af8d6d2a64aecad8c30ee80f37ae9d066d758923732ddc9ba',
- tokenType: [Object],
- amount: '24999698951',
+ tokenType: [],
isMintBaton: false,
+ atoms: 24999698951n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14368,15 +14359,15 @@
},
blockHeight: 825739,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'639a8dba34788ff3ebd3977d4ac045825394285ee648bb1d159e1c12b787ff25',
- tokenType: [Object],
- amount: '1000000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14385,15 +14376,15 @@
},
blockHeight: 825842,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'45f0ff5cae7e89da6b96c26c8c48a959214c5f0e983e78d0925f8956ca8848c6',
- tokenType: [Object],
- amount: '5344445',
+ tokenType: [],
isMintBaton: false,
+ atoms: 5344445n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14402,15 +14393,15 @@
},
blockHeight: 832625,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'a6050bea718f77e7964d140c4bb89cd88a1816eed1633f19d097835d5fa48df5',
- tokenType: [Object],
- amount: '1000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14419,15 +14410,15 @@
},
blockHeight: 832788,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'b19b4c83056f6e3dace0e786446a8ccd73f22cfc42c3013808c532ab43490a14',
- tokenType: [Object],
- amount: '10000000000000000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 10000000000000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14436,15 +14427,15 @@
},
blockHeight: 833612,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa',
- tokenType: [Object],
- amount: '10000000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 10000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14453,15 +14444,15 @@
},
blockHeight: 834541,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'79c5a1cec698350dd93f645fcae8d6ff3902b7cdc582839dfface3cb0c83d823',
- tokenType: [Object],
- amount: '9899',
+ tokenType: [],
isMintBaton: false,
+ atoms: 9899n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14470,15 +14461,15 @@
},
blockHeight: 835070,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'3fee3384150b030490b7bee095a63900f66a45f2d8e3002ae2cf17ce3ef4d109',
- tokenType: [Object],
- amount: '3325',
+ tokenType: [],
isMintBaton: false,
+ atoms: 3325n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14487,15 +14478,15 @@
},
blockHeight: 835482,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'01d63c4f4cb496829a6743f7b1805d086ea3877a1dd34b3f92ffba2c9c99f896',
- tokenType: [Object],
- amount: '21000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 21000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14504,15 +14495,15 @@
},
blockHeight: 835635,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'3fee3384150b030490b7bee095a63900f66a45f2d8e3002ae2cf17ce3ef4d109',
- tokenType: [Object],
- amount: '39',
+ tokenType: [],
isMintBaton: false,
+ atoms: 39n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14521,15 +14512,15 @@
},
blockHeight: 836041,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'666c4318d1f7fef5f2c698262492c519018d4e9130f95d05f6be9f0fb7149e96',
- tokenType: [Object],
- amount: '94',
+ tokenType: [],
isMintBaton: false,
+ atoms: 94n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14538,15 +14529,15 @@
},
blockHeight: 836041,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'b132878bfa81cf1b9e19192045ed4c797b10944cc17ae07da06aed3d7b566cb7',
- tokenType: [Object],
- amount: '4',
+ tokenType: [],
isMintBaton: false,
+ atoms: 4n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14555,15 +14546,15 @@
},
blockHeight: 836444,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'3fee3384150b030490b7bee095a63900f66a45f2d8e3002ae2cf17ce3ef4d109',
- tokenType: [Object],
- amount: '22',
+ tokenType: [],
isMintBaton: false,
+ atoms: 22n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14572,15 +14563,15 @@
},
blockHeight: 836456,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'b132878bfa81cf1b9e19192045ed4c797b10944cc17ae07da06aed3d7b566cb7',
- tokenType: [Object],
- amount: '1',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14589,15 +14580,15 @@
},
blockHeight: 836457,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'3fee3384150b030490b7bee095a63900f66a45f2d8e3002ae2cf17ce3ef4d109',
- tokenType: [Object],
- amount: '11',
+ tokenType: [],
isMintBaton: false,
+ atoms: 11n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14606,15 +14597,15 @@
},
blockHeight: 836458,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'3fee3384150b030490b7bee095a63900f66a45f2d8e3002ae2cf17ce3ef4d109',
- tokenType: [Object],
- amount: '1',
+ tokenType: [],
isMintBaton: false,
+ atoms: 1n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14623,15 +14614,15 @@
},
blockHeight: 836820,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'9404761d1a01cca11c29eb8ed9ddc63966526d0eaa54f148e8862ab3e884132f',
- tokenType: [Object],
- amount: '55000000000',
+ tokenType: [],
isMintBaton: false,
+ atoms: 55000000000n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14640,15 +14631,15 @@
},
blockHeight: 837493,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'16b12bbacdbb8c8a799adbfd782bfff9843c1f9b0be148eaae02a1a7f74f95c4',
- tokenType: [Object],
- amount: '844601876543211',
+ tokenType: [],
isMintBaton: false,
+ atoms: 844601876543211n,
},
+ sats: 546n,
},
{
outpoint: {
@@ -14657,15 +14648,15 @@
},
blockHeight: 837494,
isCoinbase: false,
- value: 546,
isFinal: true,
token: {
tokenId:
'3fee3384150b030490b7bee095a63900f66a45f2d8e3002ae2cf17ce3ef4d109',
- tokenType: [Object],
- amount: '885',
+ tokenType: [],
isMintBaton: false,
+ atoms: 885n,
},
+ sats: 546n,
},
];
export const chronikTokenMocks = {
@@ -14703,20 +14694,19 @@
},
inputScript:
'483045022100da06aaec82dccaea628d08909b01820382f6d746970e31716c9cd14d191dd54902204ad630ec7727d6b2ad183dfa6585baa1fd2fe6fed642d8adabfa3eda495969cc412103317bf85b65f7443e4c0308064a2104a617bfe0467b4e8b6f3b01a8f4e78aaa7d',
- value: 7055848,
sequenceNo: 4294967295,
outputScript:
'76a91459b025ac71f8d6efc7e08fcad47cfab7c063c23a88ac',
+ sats: 7055848n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495302535402535415646576656c6f7065722e626974636f696e2e636f6d4c000100010208000000000000018f',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a9142ba1f72161a53720df933ea9b2116351c4162abd88ac',
token: {
@@ -14727,17 +14717,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '399',
isMintBaton: false,
entryIdx: 0,
+ atoms: 399n,
},
spentBy: {
txid: '634ddf7468ff8fb493dcd1324f47452c0f668507863058182f861dce85a0dd1a',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9142ba1f72161a53720df933ea9b2116351c4162abd88ac',
token: {
@@ -14748,23 +14738,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
spentBy: {
txid: '691b1af9b93a91f6c1974269d3167bfe440f304c610e099ca5ce4d24da60afa1',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 7054427,
outputScript:
'76a91459b025ac71f8d6efc7e08fcad47cfab7c063c23a88ac',
spentBy: {
txid: '634ddf7468ff8fb493dcd1324f47452c0f668507863058182f861dce85a0dd1a',
outIdx: 0,
},
+ sats: 7054427n,
},
],
lockTime: 0,
@@ -14784,9 +14775,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -14839,20 +14830,19 @@
},
inputScript:
'4730440220790564ba25ea20d058d7175b36659d8635fd9df0e6b025cabebbe63a6b1ff93102200e31ed7c18b594cd4a141b7e44bca5374eb1d357139aebeeccc1317c2666f8e3412102975d8bd9f427a3af5391d701e7eeb39087e9b2be70c166c84864b3ac5bc72ab4',
- value: 314238,
sequenceNo: 4294967294,
outputScript:
'76a9148b416c67003eb796880cbc0ad08d5130774974bc88ac',
+ sats: 314238n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953035441501454686f756768747320616e6420507261796572734c004c00010001020800000000000f4240',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914458ea8631f32b296df9ab677b6e8a7e422e7161e88ac',
token: {
@@ -14863,17 +14853,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000000n,
},
spentBy: {
txid: '29f125b70e67a336078e1e5ed87934da07d92a15e3a5884bc3efdee861327dc9',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a914458ea8631f32b296df9ab677b6e8a7e422e7161e88ac',
token: {
@@ -14884,19 +14874,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
+ sats: 546n,
},
{
- value: 312819,
outputScript:
'76a914d74575d2af329d25f44863d6c50675d26ad440ac88ac',
spentBy: {
txid: '29f125b70e67a336078e1e5ed87934da07d92a15e3a5884bc3efdee861327dc9',
outIdx: 0,
},
+ sats: 312819n,
},
],
lockTime: 580702,
@@ -14916,9 +14907,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -14971,20 +14962,19 @@
},
inputScript:
'483045022100e28006843eb071ec6d8dd105284f2ca625a28f4dc85418910b59a5ab13fc6c2002205921fb12b541d1cd1a63e7e012aca5735df3398525f64bac04337d21029413614121034509251caa5f01e2787c436949eb94d71dcc451bcde5791ae5b7109255f5f0a3',
- value: 91048,
sequenceNo: 4294967295,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
+ sats: 91048n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e455349530354424307746162636173681768747470733a2f2f636173687461626170702e636f6d2f4c0001000102080000000000000064',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -14995,17 +14985,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100n,
},
spentBy: {
txid: '618d0dd8c0c5fa5a34c6515c865dd72bb76f8311cd6ee9aef153bab20dabc0e6',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -15016,19 +15006,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
+ sats: 546n,
},
{
- value: 89406,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
spentBy: {
txid: '618d0dd8c0c5fa5a34c6515c865dd72bb76f8311cd6ee9aef153bab20dabc0e6',
outIdx: 0,
},
+ sats: 89406n,
},
],
lockTime: 0,
@@ -15048,9 +15039,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -15103,20 +15094,19 @@
},
inputScript:
'483045022100dad1d237b541b4a4d29197dbb01fa9755c2e17bbafb42855f38442b428f0df6b02205772d3fb00b7a053b07169e1534770c091fce42b9e1d63199f46ff89856b3fc6412102ceb4a6eca1eec20ff8e7780326932e8d8295489628c7f2ec9acf8f37f639235e',
- value: 49998867,
sequenceNo: 4294967295,
outputScript:
'76a91485bab3680833cd9b3cc60953344fa740a2235bbd88ac',
+ sats: 49998867n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303504f571850726f6f666f6657726974696e672e636f6d20546f6b656e2168747470733a2f2f7777772e70726f6f666f6677726974696e672e636f6d2f32364c0001004c000800000000000f4240',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91485bab3680833cd9b3cc60953344fa740a2235bbd88ac',
token: {
@@ -15127,23 +15117,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000000n,
},
spentBy: {
txid: '69238630eb9e6a9864bf6970ff5d326800cea41a819feebecfe1a6f0ed651f5c',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 49997563,
outputScript:
'76a91485bab3680833cd9b3cc60953344fa740a2235bbd88ac',
spentBy: {
txid: '3c665488929f852d93a5dfb6e4b4df7bc8f7a25fb4a2480d39e3de7a30437f69',
outIdx: 0,
},
+ sats: 49997563n,
},
],
lockTime: 0,
@@ -15163,9 +15154,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -15218,20 +15209,19 @@
},
inputScript:
'4730440220633ab93a41745a538c85f71adf934f32b5db2304df9b29af72808ac4f4951b7b022003dc12649727b2c9897c32eadc25255ca9aad1035a24156ae13834dd8c8c557a4121034cdb43b7a1277c4d818dc177aaea4e0bed5d464d240839d5488a278b716facd5',
- value: 998991395,
sequenceNo: 4294967295,
outputScript:
'76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
+ sats: 998991395n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953047465737404746573741468747470733a2f2f636173687461622e636f6d2f4c0001014c0008000000000000000a',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
token: {
@@ -15242,23 +15232,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10',
isMintBaton: false,
entryIdx: 0,
+ atoms: 10n,
},
spentBy: {
txid: '01e95bbde7013640637b4862812fece434bcfd7a97de852f30ef545add22498b',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 998990326,
outputScript:
'76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
spentBy: {
txid: '0cfd62634b11ef341fc760bd9ede68f51ed4dfeef5b4b6a42a70620104d5bdaf',
outIdx: 0,
},
+ sats: 998990326n,
},
],
lockTime: 0,
@@ -15278,9 +15269,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -15333,20 +15324,19 @@
},
inputScript:
'47304402206eaea3002652d5aabec115ed05277034afb2f145e290edaba04ea21f08decc5402205ffcf324eb8d224db589609f51223f426c67e469687fb569dac8e16a0fd2b6c541210235fc1c027cad5ad3972fe9f23b1cc6fb35e68155a9b4eacb0da7ccce7abb8231',
- value: 9622,
sequenceNo: 4294967295,
outputScript:
'76a914a76859a9ce3fdbe80cdc306f71074f08d9e4822f88ac',
+ sats: 9622n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495304636f696e086a6f686e636f696e1468747470733a2f2f636173687461622e636f6d2f4c0001004c000800000000000000c3',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914c1aadc99f96fcfcfe5642ca29a53e701f0b801c388ac',
token: {
@@ -15357,19 +15347,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '195',
isMintBaton: false,
entryIdx: 0,
+ atoms: 195n,
},
spentBy: {
txid: '0bd0c49135b94b99989ec3b0396020a96fcbe2925bb25c40120dc047c0a097ec',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 8553,
outputScript:
'76a914c1aadc99f96fcfcfe5642ca29a53e701f0b801c388ac',
+ sats: 8553n,
},
],
lockTime: 0,
@@ -15389,9 +15380,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -15444,20 +15435,19 @@
},
inputScript:
'473044022020a2a23fd89f4b4d5e4869cb46a760cb577f61d18f895318f2f125bcdc550d1202203bbe0471194c64d33964eddf601fcfbb58b1c5553b2acbade9dc08394c4ad5b841210303329ad4e5b324a95fb05f4e4d6dbcb36b90ef87dc958bd3af49de1b016ed9da',
- value: 110000,
sequenceNo: 4294967295,
outputScript:
'76a914a528a001f9f027aae05085928d0b23172fd4b5a188ac',
+ sats: 110000n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953034b4154074b415f546573741468747470733a2f2f636173687461622e636f6d2f4c0001004c00080000000005f5e100',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914a528a001f9f027aae05085928d0b23172fd4b5a188ac',
token: {
@@ -15468,23 +15458,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100000000n,
},
spentBy: {
txid: '8f645ce7b231a3ea81168229c1b6a1157e8a58fb8a8a127a80efc2ed39c4f72e',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 108931,
outputScript:
'76a914a528a001f9f027aae05085928d0b23172fd4b5a188ac',
spentBy: {
txid: '8f645ce7b231a3ea81168229c1b6a1157e8a58fb8a8a127a80efc2ed39c4f72e',
outIdx: 0,
},
+ sats: 108931n,
},
],
lockTime: 0,
@@ -15504,9 +15495,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -15559,20 +15550,19 @@
},
inputScript:
'48304502210083c37da94557747a11ff069a68cde4b3859fc22ab56dbfef0dbf28a6af805999022063e8041b9a42bd8f68b474d124f797e879855282347ed13e04f3ad18129ce33f412102bfc0d9d71891a7bd89b4a89f4675fd341a054561438f186e6bfd1007d818666a',
- value: 551610,
sequenceNo: 4294967295,
outputScript:
'76a91462e332f00918c58c3d8e9c66e6d47b33c549203f88ac',
+ sats: 551610n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e455349530349465025496e6672617374727563747572652046756e64696e672050726f706f73616c20546f6b656e086966702e6361736820b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f55301084c0008000775f05a074000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a9146e68110cc00a5d5f1c6c796c1a54f26b364cf06988ac',
token: {
@@ -15583,23 +15573,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2100000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 2100000000000000n,
},
spentBy: {
txid: 'a00c5a27f07ed26b116f219d6e666ad171e1420d27f108417a51ac6fa9b03c03',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 550715,
outputScript:
'76a91462e332f00918c58c3d8e9c66e6d47b33c549203f88ac',
spentBy: {
txid: 'fadf79b051e33dcfeea92f497a60c6ce36cd2a8ad230f879fb135eae08c1a0c4',
outIdx: 15,
},
+ sats: 550715n,
},
],
lockTime: 0,
@@ -15619,9 +15610,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -15674,20 +15665,19 @@
},
inputScript:
'483045022100888814e0ea95c9513fe58293b8e71ee34bb321b8502075168428d7aa1ec5c4b80220200da569892cd8514c2c20d0d914cb24fd09ea23fe186d56c691aa5e1ad3800f412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1497154381,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1497154381n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e455349530543544c7633244361736874616220546f6b656e204c61756e6368204c61756e636820546f6b656e2076330a636f696e65782e636f6d4c0001004c0008000000000000014d',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -15698,23 +15688,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '333',
isMintBaton: false,
entryIdx: 0,
+ atoms: 333n,
},
spentBy: {
txid: '34caddbb70b152f555366d6719d7fcc7c263a2c77b8981819c1a0bfd7cce8e98',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 1497153077,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'e0d6d7d46d5fc6aaa4512a7aca9223c6d7ca30b8253dee1b40b8978fe7dc501e',
outIdx: 1,
},
+ sats: 1497153077n,
},
],
lockTime: 0,
@@ -15734,9 +15725,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -15789,20 +15780,19 @@
},
inputScript:
'483045022100d1f85f02b397b6b5646449d797da19506d49cb6e80670e01ad82a213db97464402204a5b5d5e422f63a967959913417b996839b5ff6c56a7ced882cb10fb16e1ff1f412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 3491579877,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 3491579877n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e455349530253410d5370696e6e657220416c7068611768747470733a2f2f636173687461626170702e636f6d2f4c0001004c0008000000000000014d',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -15813,23 +15803,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '333',
isMintBaton: false,
entryIdx: 0,
+ atoms: 333n,
},
spentBy: {
txid: '696265ced15b8fdbacfa1a4f5e779575ff5faaf3ff4ad09e5691b2ed4cf50a84',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 3491578808,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '562d7f91e21f124c3aaa826e08f6a59f49343a7c0411ff077f5aacfd858f0ec4',
outIdx: 0,
},
+ sats: 3491578808n,
},
],
lockTime: 0,
@@ -15849,9 +15840,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -15904,10 +15895,10 @@
},
inputScript:
'473044022075166617aa473e86c72f34a5576029eb8766a035b481864ebc75759155efcce00220147e2d7e662123bd728fac700f109a245a0278959f65fc402a1e912e0a5732004121034cdb43b7a1277c4d818dc177aaea4e0bed5d464d240839d5488a278b716facd5',
- value: 1000,
sequenceNo: 4294967295,
outputScript:
'76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
+ sats: 1000n,
},
{
prevOut: {
@@ -15916,20 +15907,19 @@
},
inputScript:
'4830450221009e98db4b91441190bb7e4745b9f249201d0b54c81c0a816af5f3491ffb21a7e902205a4d1347a5a9133c14e4f55319af00f1df836eba6552f30b44640e9373f4cabf4121034cdb43b7a1277c4d818dc177aaea4e0bed5d464d240839d5488a278b716facd5',
- value: 750918004,
sequenceNo: 4294967295,
outputScript:
'76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
+ sats: 750918004n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495305416c69746105416c6974610a616c6974612e636173684c0001044c00080000befe6f672000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
token: {
@@ -15940,23 +15930,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '210000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 210000000000000n,
},
spentBy: {
txid: '2c336374c05f1c8f278d2a1d5f3195a17fe1bc50189ff67c9769a6afcd908ea9',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 750917637,
outputScript:
'76a914f5f740bc76e56b77bcab8b4d7f888167f416fc6888ac',
spentBy: {
txid: 'ca70157d5cf6275e0a36adbc3fabf671e3987f343cb35ec4ee7ed5c8d37b3233',
outIdx: 0,
},
+ sats: 750917637n,
},
],
lockTime: 0,
@@ -15976,9 +15967,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -16031,20 +16022,19 @@
},
inputScript:
'483045022100ab2a1e04a156e9cc5204e11e77ba399347f3b7ea3e05d45897c7fb7c6854a7ff022065c7e096e0526a0af223ce32e5e162aa577c42f7da231c13e28ebc3532396f20412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1300,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1300n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953035544540a557064617465546573741468747470733a2f2f636173687461622e636f6d2f4c0001074c000800000001cf977871',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -16055,10 +16045,11 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '7777777777',
isMintBaton: false,
entryIdx: 0,
+ atoms: 7777777777n,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -16078,9 +16069,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -16133,20 +16124,19 @@
},
inputScript:
'47304402203eb4229f825fc4ff6cebe4768821cb8b65c55a39577ed17438f29207785dcbc4022075793f39aa7448c5a56ab5d1317fa822ccac1b010bb0a63c7adbad025d53a43c4121034509251caa5f01e2787c436949eb94d71dcc451bcde5791ae5b7109255f5f0a3',
- value: 100000,
sequenceNo: 4294967295,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
+ sats: 100000n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953034354420b43617368546162426974731768747470733a2f2f636173687461626170702e636f6d2f4c0001090102088ac7230489e80000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -16157,17 +16147,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000000000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 10000000000000000000n,
},
spentBy: {
txid: 'f517a560df3b7939bce51faddff4c3bac25fff3e94edbf93546cbeda738bf8f3',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -16178,19 +16168,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
+ sats: 546n,
},
{
- value: 98358,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
spentBy: {
txid: '6a4c8bfa2e3ca345795dc3bde84d647390e9e1f2ff96e535cd2754d8ea5a3539',
outIdx: 0,
},
+ sats: 98358n,
},
],
lockTime: 0,
@@ -16210,9 +16201,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -16265,20 +16256,19 @@
},
inputScript:
'4730440220058d0e566c59804ac96c4a05dc7ab49f387b6046175c97a8c829994d280428050220220159d839b46539ce8b8d08577f970169032f59a993437719f491f945a45b13412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1497155685,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1497155685n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e455349530443544c32244361736874616220546f6b656e204c61756e6368204c61756e636820546f6b656e2076321074686563727970746f6775792e636f6d4c0001004c000800000000000007d0',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -16289,23 +16279,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 2000n,
},
spentBy: {
txid: '9f4c66b82f5b41f474f9670311e834667c0207a81f9e31a65731a7731e86c3ee',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 1497154381,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '77ec4036ef8546ac46df6d3a5374e961216f92624627eaeef5d2e1a253df9fc6',
outIdx: 0,
},
+ sats: 1497154381n,
},
],
lockTime: 0,
@@ -16325,9 +16316,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -16380,10 +16371,10 @@
},
inputScript:
'47304402202fff3979f9cf0a5052655c8699081a77a653903de41547928db0b94601aa082502207cdb909e3a7b2b7f8a3eb80243a1bd2fd8ad9449a0ec30242ae4b187436d11a0412103b30e7096c6e3a3b45e5aba4ad8fe48a1fdd7c04de0de55a43095e7560b52e19d',
- value: 546,
sequenceNo: 4294967294,
outputScript:
'76a91433c0448680ca324225eeca7a230cf191ab88400288ac',
+ sats: 546n,
},
{
prevOut: {
@@ -16392,20 +16383,19 @@
},
inputScript:
'473044022011a39acbbb80c4723822d434445fc4b3d72ad0212902fdb183a5408af00e158c02200eb3778b1af9f3a8fe28b6670f5fe543fb4c190f79f349273860125be05269b2412103b30e7096c6e3a3b45e5aba4ad8fe48a1fdd7c04de0de55a43095e7560b52e19d',
- value: 65084,
sequenceNo: 4294967294,
outputScript:
'76a91433c0448680ca324225eeca7a230cf191ab88400288ac',
+ sats: 65084n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953084e414b414d4f544f084e414b414d4f544f4c004c0001084c0008000775f05a074000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91433c0448680ca324225eeca7a230cf191ab88400288ac',
token: {
@@ -16416,23 +16406,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2100000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 2100000000000000n,
},
spentBy: {
txid: '5f4c275fe00896031757fb8f771cf9ff64ef90112ff2d8cd75c3d792338f7767',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 64650,
outputScript:
'76a91433c0448680ca324225eeca7a230cf191ab88400288ac',
spentBy: {
txid: '4bc56e2c0358dbfa169e0feadf8edade0b76773f3bfad3f44b042e9bc5cd5d7f',
outIdx: 0,
},
+ sats: 64650n,
},
],
lockTime: 555670,
@@ -16452,9 +16443,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -16507,20 +16498,19 @@
},
inputScript:
'4730440220288fe3c2dda913b7f9c002f944bd946e4a9c98bd5f94d7295fdc1e5bad64cca202200f80b8c84ac71105c01b94c88aec7a8327afed540333a7108dc07346d3b19e3c41210302850962f13b498608a38f82ce5a037da70d659bec50af746816d44e9e732e02',
- value: 995151,
sequenceNo: 4294967295,
outputScript:
'76a914d4fa9121bcd065dd93e58831569cf51ef5a74f6188ac',
+ sats: 995151n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953035847420b4761726d6f6e626f7a69612d68747470733a2f2f7477696e7065616b732e66616e646f6d2e636f6d2f77696b692f4761726d6f6e626f7a69614c0001084c0008000000174876e800',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914d4fa9121bcd065dd93e58831569cf51ef5a74f6188ac',
token: {
@@ -16531,23 +16521,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100000000000n,
},
spentBy: {
txid: 'f2d492da069429866c8ed59fd0d5283b8a8da881414633ac35979a2891030c57',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 993847,
outputScript:
'76a914d4fa9121bcd065dd93e58831569cf51ef5a74f6188ac',
spentBy: {
txid: '8c31247864b54642d8f6ef2a9e6a444a828beaa51e9afb3cdbc6e4cac9b39a89',
outIdx: 1,
},
+ sats: 993847n,
},
],
lockTime: 0,
@@ -16567,9 +16558,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -16622,20 +16613,19 @@
},
inputScript:
'473044022045cd384954a2e3f0446e72345b87e117b1e553970a33c3ad135f5f2911bf804502205f07693f399b7922bd16f3318c392887234c89aff8b76ecb3fed0d18f6abfdd9412102fde03670ccc6950b76029ef131280b604df9b44d4520cd9df9023aade2082b07',
- value: 99141,
sequenceNo: 4294967294,
outputScript:
'76a914726e13d2a9f4de19146a69d8a464d96674bc4ec288ac',
+ sats: 99141n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495304484f4e4b09484f4e4b20484f4e4b17544845205245414c20484f4e4b20534c5020544f4b454e4c0001004c0008000000174876e800',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91453c0098567382f003437a016edcc47de1436746988ac',
token: {
@@ -16646,23 +16636,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100000000000n,
},
spentBy: {
txid: 'd9f1c4833aa9b6e91d589c46783ec4c7e6225b754d1c0d8cd06a7d65bc71e696',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 98290,
outputScript:
'76a9145afb7e1a1216788d7c69c509269d75b8750e750688ac',
spentBy: {
txid: '5691fa7fbf62db3964d9bc01ef27cdb392a5051b2c225054dc502b4bfadd377e',
outIdx: 1,
},
+ sats: 98290n,
},
],
lockTime: 576632,
@@ -16682,9 +16673,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -16737,20 +16728,19 @@
},
inputScript:
'483045022100d09d803b134f5e320a1487817342b56a017e11a69c2fa106814e3107d8c47fd30220300af9b456fa43049c41dca21d564c434504864c6fc4a3a36941ddaaddcba5b0412102f2d4a75908a466eec993f27fb985836490d9af52f110b15b60fe6cb17dbedf6d',
- value: 97862,
sequenceNo: 4294967295,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
+ sats: 97862n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495307536572766963650945766320746f6b656e1368747470733a2f2f636173687461622e636f6d4c0001004c0008000000161e70f600',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
token: {
@@ -16761,23 +16751,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '95000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 95000000000n,
},
spentBy: {
txid: '46da16acb51c912164e7bed0cc515ab6d8898e6d4d3e821d4ee7442587a9a50e',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 96793,
outputScript:
'76a91463a17ac732fd6afe8699b240a29b483246308de788ac',
spentBy: {
txid: 'd21ae699093349473539b13808618561a350d0c39acc00f3704ba474ad851370',
outIdx: 0,
},
+ sats: 96793n,
},
],
lockTime: 0,
@@ -16797,9 +16788,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -16852,20 +16843,19 @@
},
inputScript:
'4730440220608c220025c34683b650ad8b33c3ee891f677f4b3162cec94c865e1e766094340220789e91fffcf5ffb15508429befd5c299f9e86cd49cf203649cbbe384a9998586412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1496725917,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1496725917n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495305434c4e53501a436f6d706f6e656e744c6f6e674e616d6553706565644c6f61641768747470733a2f2f636173687461626170702e636f6d2f4c0001004c00080000000000000064',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -16876,23 +16866,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100n,
},
spentBy: {
txid: '979f7741bb99ef43d7cf55ac5f070408fcb95dfce5818eb44f49e5b759a36d11',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 1496724613,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '28669d88822a1e0c202fb68d6abc36c3b5acc9f1df3c6990d045b119e4b7cc4d',
outIdx: 0,
},
+ sats: 1496724613n,
},
],
lockTime: 0,
@@ -16912,9 +16903,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -16967,20 +16958,19 @@
},
inputScript:
'473044022062337ef2c17772572dc32f5ba7fb2a272c49009bc947edf8caeacb142ae74999022068752a66f9f653251355231bf9134a9c2309ffbb2070fdcbbf5f16270b45b48b4121034509251caa5f01e2787c436949eb94d71dcc451bcde5791ae5b7109255f5f0a3',
- value: 83438,
sequenceNo: 4294967295,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
+ sats: 83438n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495304584249540565426974731868747470733a2f2f626f6f6d657274616b65732e636f6d2f4c00010901020800038d7ea4c68000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -16991,17 +16981,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000000000000000n,
},
spentBy: {
txid: 'ffb660d9ef11879a5c8fce3b11e56819289caf0db49b36b5bb9f90d535ebbc6f',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -17012,19 +17002,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
+ sats: 546n,
},
{
- value: 81796,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
spentBy: {
txid: 'ffb660d9ef11879a5c8fce3b11e56819289caf0db49b36b5bb9f90d535ebbc6f',
outIdx: 0,
},
+ sats: 81796n,
},
],
lockTime: 0,
@@ -17044,9 +17035,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -17099,20 +17090,19 @@
},
inputScript:
'4730440220478f8eb48e1ff3dd410a97d4033afd23d7ee39ec0ac0450dc6b9160ffe67c84102201b49185a7deb2701956d13601b67802c897a0bf5f0c261f8d259fdafc711ddf3412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 140758876,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 140758876n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953034342421143617368746162204265746120426974731768747470733a2f2f636173687461626170702e636f6d2f4c0001004c0008000000003b9aca00',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -17123,23 +17113,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000000000n,
},
spentBy: {
txid: '8ccb8b0eb8f93fcfa4978c60f8aee14bc7e6b4d965d8cb55093f9604f3242d57',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 140757807,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'c6457243bc0ff473b1a442b2f75155fcc020575bad69c45cd8edffa05cb6710a',
outIdx: 0,
},
+ sats: 140757807n,
},
],
lockTime: 0,
@@ -17159,9 +17150,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -17214,20 +17205,19 @@
},
inputScript:
'48304502210089d46c2873cc9d92927e7043e803c9ac1a705508e89de49af25869d7d12879d90220364ee750ac252487dae7bfb71e8de89085f486290654c3acc2efe4f1a08e99654121034509251caa5f01e2787c436949eb94d71dcc451bcde5791ae5b7109255f5f0a3',
- value: 86422,
sequenceNo: 4294967295,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
+ sats: 86422n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953074e4f434f56494419436f7669643139204c69666574696d6520496d6d756e6974794c5168747470733a2f2f7777772e77686f2e696e742f656d657267656e636965732f64697365617365732f6e6f76656c2d636f726f6e6176697275732d323031392f636f7669642d31392d76616363696e65734c00010001020800000000000f4240',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -17238,17 +17228,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000000n,
},
spentBy: {
txid: 'cac6ff7ff285f4ae709ca58aad490f51f079c043dfa7f7ecf32086d756fc18a7',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -17259,19 +17249,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
+ sats: 546n,
},
{
- value: 84780,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
spentBy: {
txid: 'cac6ff7ff285f4ae709ca58aad490f51f079c043dfa7f7ecf32086d756fc18a7',
outIdx: 0,
},
+ sats: 84780n,
},
],
lockTime: 0,
@@ -17291,9 +17282,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -17346,20 +17337,19 @@
},
inputScript:
'473044022052d51327fd080fb9c8a55b853a6ebc7528b5ad769291405996e5a57bf9e2bfba02201c0855b2544e9689ecc0e154aae6dc451c7a3b5ddf92847905436213cd87dbc8412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 5828,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 5828n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e455349530353524d1653657276657220526564756e64616e6379204d696e741468747470733a2f2f636173687461622e636f6d2f4c0001004c00080000000000000005',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -17370,23 +17360,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5n,
},
spentBy: {
txid: 'c04ae7f139eb16023a70d1bb39b1ae8745667edb09833e994a5b4d48976a111d',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 4759,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'e5aa45cea8268f873b00134a1981e92e5022e5c15e3ef273be8552b349e01651',
outIdx: 0,
},
+ sats: 4759n,
},
],
lockTime: 0,
@@ -17406,9 +17397,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -17461,20 +17452,19 @@
},
inputScript:
'483045022100ed92efcd0c3fd8e241888d85751dc09856a2dbb73038ef6097a1cce91302741e022036c2941b90fbf4607b5a00c872a109630d26beda74763ca9c33f9e7703350053412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 10000,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 10000n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953034354440c43617368746162204461726b1468747470733a2f2f636173687461622e636f6d2f4c0001004c00080000000000002710',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -17485,23 +17475,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 10000n,
},
spentBy: {
txid: '0283492a729cfb7999684e733f2ee76bc4f652b9047ff47dbe3534b8f5960697',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 8931,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '28e406370381e1ef6764bbbb21cf7974e95b84b2c49d204ab9f471d88334af90',
outIdx: 5,
},
+ sats: 8931n,
},
],
lockTime: 0,
@@ -17521,9 +17512,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -17576,20 +17567,19 @@
},
inputScript:
'483045022100beb34be709c4060a4c343e899ec8ae5840954c41a0cefc1cfb31d212671f102f022044b1abde3005393e3247ee903646e9c1ecfe2a79b30768f2fde3abe4db485173412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 6212297,
sequenceNo: 4294967294,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 6212297n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953044e4342540e6e657743686174426f745465737412616c6961732e65746f6b656e732e636173684c0001004c00080000000000000064',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -17600,19 +17590,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100n,
},
+ sats: 546n,
},
{
- value: 6211296,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'c2c6b5a7b37e983c4e193900fcde2b8139ef4c3db2fd9689c354f6ea65354f15',
outIdx: 0,
},
+ sats: 6211296n,
},
],
lockTime: 0,
@@ -17632,9 +17623,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -17687,20 +17678,19 @@
},
inputScript:
'473044022006360a62732061dc50a6ccee96ff432f8306482eccdfa04a381d69e92ec9ba090220754d5cdc43e321e4ab4875f9df6759b7c6202c90f8ca56b38186f8a5e7104c66412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 9030220,
sequenceNo: 4294967294,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 9030220n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953044e4342540e6e657743686174426f745465737412616c6961732e65746f6b656e732e636173684c0001004c00080000000000000064',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -17711,19 +17701,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100n,
},
+ sats: 546n,
},
{
- value: 9029219,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '19cc36305423ddf2fefd400663a9938b5cb342a82ebd00f6251ee8bb5c58c855',
outIdx: 0,
},
+ sats: 9029219n,
},
],
lockTime: 0,
@@ -17743,9 +17734,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -17798,20 +17789,19 @@
},
inputScript:
'47304402202425b99ebe499a5e8cada7375526251409d7800bf4bd128ca6494e7fa2ee6709022064c3b22d0611d7585c56cd8e8e655b74ed9bbbc8ab9a2277524dacc7a6939726412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 15250788,
sequenceNo: 4294967294,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 15250788n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953044e4342540e6e657743686174426f745465737412616c6961732e65746f6b656e732e636173684c0001004c00080000000000000064',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -17822,19 +17812,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100n,
},
+ sats: 546n,
},
{
- value: 15249787,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '03d227c6ae528bd6644487f394f5ddb065eea5c2ff97cae9b032d6efc46edea8',
outIdx: 0,
},
+ sats: 15249787n,
},
],
lockTime: 0,
@@ -17854,9 +17845,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -17909,20 +17900,19 @@
},
inputScript:
'47304402203d613e2f0c10a37c9305130b896d9b00755c24b21c91d3115ed6f240fde78de102202c730ebfb3d109cd6c3f8fe89941c40a88e890a99d932a261eb71c144683d30e412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 206527138,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 206527138n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953034f4d49074f6d6963726f6e076364632e676f764c0001004c0008000000003b9aca00',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -17933,23 +17923,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000000000n,
},
spentBy: {
txid: '702e1b64aed21bc764c83f638407f7f73245604d8d9c36f03e048a8005b8ccfd',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 206526069,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'f83ed4755d3356181a3a0f2a1b8181f7616d76149ce8bcccc751eb4a8c3b91f2',
outIdx: 1,
},
+ sats: 206526069n,
},
],
lockTime: 0,
@@ -17969,9 +17960,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -18024,20 +18015,19 @@
},
inputScript:
'47304402202215015f8d4ff32bf16d579c3db882c6d33ad32cddd05c846f13a1c89e04ec8e02203581865f2d9a0c5107467dcdc38b831156b831ab2d259cc6f234828f78151921412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 29074919,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 29074919n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303434c421243617368746162204c6f63616c20426574610f626f6f6d657274616b65732e636f6d4c0001024c000800000000000008ae',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -18048,23 +18038,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '2222',
isMintBaton: false,
entryIdx: 0,
+ atoms: 2222n,
},
spentBy: {
txid: '123a31b903c9a7de544a443a02f73e0cbee6304931704e55d0583a8aca8df48e',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 29073850,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'd83677da1b3ade24e9fdcc2a47e3ba87e1fbe1de9e13075d79d16819952a8789',
outIdx: 2,
},
+ sats: 29073850n,
},
],
lockTime: 0,
@@ -18084,9 +18075,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -18139,20 +18130,19 @@
},
inputScript:
'46304302200db47adc26bbb4ae4584ae455c5f078a4d2f624e898fab3159c74473677bc8b2021f371ea6c9acd051c96eaba2b229d06a0247dad2acf6cf0694792d22280dfe8e412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1253,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1253n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953035653500b56657370656e65204761733468747470733a2f2f73696d706c652e77696b6970656469612e6f72672f77696b692f5374617243726166742347616d65706c61794c0001094c000829a2241af62c0000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -18163,14 +18153,15 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3000000000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 3000000000000000000n,
},
spentBy: {
txid: 'fc1ada187e9f5da7616f481c79cd0fa3aafa3d4094288db6806e7508f76b5fcd',
outIdx: 1,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -18190,9 +18181,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -18245,20 +18236,19 @@
},
inputScript:
'4830450221008100fd6256019f3c8709ffe685fedec9dbf452951a44dcd1b928d0c9095b3d1b02204a756b30558ae60a673c28163e3c10bd1152d41be093aa7ad1d32f5886bc66e6412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 138443635,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 138443635n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953034c5656174c616d6264612056617269616e742056617269616e74731768747470733a2f2f636173687461626170702e636f6d2f4c0001004c000800000000000f4240',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -18269,23 +18259,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000000n,
},
spentBy: {
txid: 'ef80e1ceeada69a9639c320c1fba47ea4417cd3aad1be1635c3472ce28aaef33',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 138442566,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '87faad4f282002da1a9d74059dbebfa41aff3df27a66b5fd01184c5f8afdf283',
outIdx: 0,
},
+ sats: 138442566n,
},
],
lockTime: 0,
@@ -18305,9 +18296,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -18360,20 +18351,19 @@
},
inputScript:
'483045022100b0469fe06b1f961932edb02186baa703c65b796ffdc44ee8a81eb5d2ea532b44022075f34517bbbc68200e4d7fc7a5f2fbcebb8cc101044bda8b49ed47d9355e4a03412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1121620547,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1121620547n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953034456561644656c74612056617269616e742056617269616e74731768747470733a2f2f636173687461626170702e636f6d2f4c0001004c0008000000003b9ac9ff',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -18384,23 +18374,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999999999',
isMintBaton: false,
entryIdx: 0,
+ atoms: 999999999n,
},
spentBy: {
txid: 'e9675fb89a91fd2644e098d5865dcd8de1549d18577247d55813a9f8b383eb12',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 1121619478,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '9eb3f392e7efd073cbe58e4d57d4c4cf755527074f935238493b0d357cc70b8d',
outIdx: 0,
},
+ sats: 1121619478n,
},
],
lockTime: 0,
@@ -18420,9 +18411,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -18476,10 +18467,10 @@
},
inputScript:
'47304402202cf16a38ccb1df93e60bc23b3113c05086f1a52522a98f4dcb38c3c48d7f734d02207f42466cbf73c3885b24536253f1e8262804b7774c5d867738a5c71e4464722741210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 46641,
sequenceNo: 4294967295,
outputScript:
'76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
+ sats: 46641n,
},
{
prevOut: {
@@ -18488,10 +18479,10 @@
},
inputScript:
'47304402205278c22d848b7368365cfd08e64a6060e061fa9995161fef50086ad81cb2367502205f0af031e2f1bfcffd47348832e2127428abdea4f9dc0440b1dd387d84e74e8741210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 313547,
sequenceNo: 4294967295,
outputScript:
'76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
+ sats: 313547n,
},
{
prevOut: {
@@ -18500,20 +18491,19 @@
},
inputScript:
'4730440220603fd0df5350ab5213384b57abe575ecad1627470b95a14a61c1d6d6a346056c02205505e66fee9be7ac73a8d1c8d08212dc4ac44e2e7ffd909e6790a7cd26fd68e941210361c15c24d617d75b51bd057e418020b3e7a07d91a41ddd0365bf168b418f79f6',
- value: 31355,
sequenceNo: 4294967295,
outputScript:
'76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
+ sats: 31355n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303574454435465737420546f6b656e205769746820457863657074696f6e616c6c79204c6f6e67204e616d6520466f722043535320416e64205374796c65205265766973696f6e734068747470733a2f2f7777772e496d706f737369626c794c6f6e6757656273697465446964596f755468696e6b576562446576576f756c64426546756e2e6f72672085b591c15c9f49531e39fcfeb2a5a26b2bd0f7c018fb9cd71b5d92dfb732d5cc0107010208000000e8d4a51000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91419884c453167cf3011a3363b4b1ebd926bde059f88ac',
token: {
@@ -18524,17 +18514,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000000000000n,
},
spentBy: {
txid: 'ed7a0eb9f80ffcad92a20a9b8eb673561bde8ce143cec05fe4635020842a4c54',
outIdx: 56,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a91419884c453167cf3011a3363b4b1ebd926bde059f88ac',
token: {
@@ -18545,23 +18535,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
spentBy: {
txid: '67605f3d18135b52d95a4877a427d100c14f2610c63ee84eaf4856f883a0b70e',
outIdx: 2,
},
+ sats: 546n,
},
{
- value: 389686,
outputScript:
'76a914f1f529e136738f1d93c5dc4be9306913a7f1855e88ac',
spentBy: {
txid: 'ed7a0eb9f80ffcad92a20a9b8eb673561bde8ce143cec05fe4635020842a4c54',
outIdx: 55,
},
+ sats: 389686n,
},
],
lockTime: 0,
@@ -18581,9 +18572,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -18636,20 +18627,19 @@
},
inputScript:
'47304402202fcd960b6e450dedc8c7863cf43921edab63559ef07b855388ffe8a7dc926e3302203c738c9737cfd5fa6f9df69c341e6007c09a49cabfce8db34606d5b4530ce6c1412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 2981229,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 2981229n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303444e520844656e61726975731468747470733a2f2f636173687461622e636f6d2f4c0001004c000800000000000002f1',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -18660,23 +18650,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '753',
isMintBaton: false,
entryIdx: 0,
+ atoms: 753n,
},
spentBy: {
txid: '5f06207dea4762524dbe2d84900cc78711d079f2b2e909867ec5e9abdeb850aa',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 2980228,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'fa373dbcbac25cfc409b062d9974425a82621c05cecaeaebfd7e0a5a2dc23317',
outIdx: 0,
},
+ sats: 2980228n,
},
],
lockTime: 0,
@@ -18696,9 +18687,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -18751,20 +18742,19 @@
},
inputScript:
'483045022100df3fe6fcf7b2afa0d5650e4c526f122e4ed032c3f8dff2b62b950f597c7def0b02201b0ce1ae4a4abe460ccf4801986eee825ea9d2bcff91e95f3d4f66e8a0c06837412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6',
- value: 1350,
sequenceNo: 4294967295,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
+ sats: 1350n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303434c541343617368746162204c6f63616c2054657374731468747470733a2f2f636173687461622e636f6d2f4c0001004c0008000000000000c350',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a9144e532257c01b310b3b5c1fd947c79a72addf852388ac',
token: {
@@ -18775,14 +18765,15 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '50000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 50000n,
},
spentBy: {
txid: '9c6363fb537d529f512a12d292ea9682fe7159e6bf5ebfec5b7067b401d2dba4',
outIdx: 1,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -18802,9 +18793,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -18857,20 +18848,19 @@
},
inputScript:
'4730440220033fd897a0c6ae88eac326562de260264e3197b336508b584d81f244e5a47b7a022013f78b1f954eab4027e377745315f9c35811ec2802fc4d7c4280312aa9e7eee94121034509251caa5f01e2787c436949eb94d71dcc451bcde5791ae5b7109255f5f0a3',
- value: 94032,
sequenceNo: 4294967295,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
+ sats: 94032n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953035442530854657374426974731968747470733a2f2f74686563727970746f6775792e636f6d2f4c0001090102088ac7230489e80000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -18881,17 +18871,17 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000000000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 10000000000000000000n,
},
spentBy: {
txid: 'be38b0488679e25823b7a72b925ac695a7b486e7f78122994b913f3079b0b939',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -18902,19 +18892,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
+ sats: 546n,
},
{
- value: 92390,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
spentBy: {
txid: 'be38b0488679e25823b7a72b925ac695a7b486e7f78122994b913f3079b0b939',
outIdx: 0,
},
+ sats: 92390n,
},
],
lockTime: 0,
@@ -18934,9 +18925,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -18989,20 +18980,19 @@
},
inputScript:
'4730440220365f13f47afacb3329e4dc0dbc2e68a2accb94fc08475828e4f320b93e08a36702201d3ffdb7fcd3c3240f8c0d609bcb36b446e4b4253fa7284d14eac1c3b5139844412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 9095,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 9095n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e455349530343464c104361736874616220466163656c6966741468747470733a2f2f636173687461622e636f6d2f4c0001094c0008000009184e72a000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -19013,23 +19003,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 10000000000000n,
},
spentBy: {
txid: 'fefacb25eccd9c1c575da278b265c444f840e9261b041898fbf7f5cd85fb40a4',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 8026,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'f78ee9844a4584d6f13efbf2e40f0e488f25089aa047e61f54063894d01a3a17',
outIdx: 0,
},
+ sats: 8026n,
},
],
lockTime: 0,
@@ -19049,9 +19040,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -19104,20 +19095,19 @@
},
inputScript:
'47304402201c12e609e94a9d852d553a58c5685a0398713757f274cb72f0bcb3c49abbd369022072c33f3237859575b4d616a3857704285c1027fb8cdb0d55c0580a4be60474ad412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 994663,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 994663n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303434d4110436173687461624d696e74416c7068611768747470733a2f2f636173687461626170702e636f6d2f4c0001054c0008000000000054c563',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -19128,23 +19118,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '5555555',
isMintBaton: false,
entryIdx: 0,
+ atoms: 5555555n,
},
spentBy: {
txid: '9989f6f4941d7cf3206b327d957b022b41bf7e449a11fd5dd5cf1e9bc93f1ecf',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 993359,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '92566b9ae391bf2de6c99457fa56ab5f93af66634af563dbe0e1022ebc05ecd4',
outIdx: 0,
},
+ sats: 993359n,
},
],
lockTime: 0,
@@ -19164,9 +19155,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -19219,20 +19210,19 @@
},
inputScript:
'4830450221009fe4253fe41a5badda24212d6af2120a52cae193629d216cbf830f693f2f57050220359de2e48f8506b7633341c52228c4249d00ec4e3504ee283827cee869fbc309412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 3317,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 3317n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953034957460d496e73616e69747920576f6c661468747470733a2f2f636173687461622e636f6d2f4c0001004c000800000000000003e8',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -19243,19 +19233,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000n,
},
+ sats: 546n,
},
{
- value: 2157,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'd8c694714c2d39a22b8d867530f37e796937ac4b9bc7c9528926649788d15f43',
outIdx: 0,
},
+ sats: 2157n,
},
],
lockTime: 0,
@@ -19275,9 +19266,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -19330,20 +19321,19 @@
},
inputScript:
'473044022002d7028ecd2a1ece84ce03160fdb5e93784b954c31382ffd3e78c75aca4ef16302205f81fdb6993f63b963f1a0590d4e32e51b5ad8383ad09ee4182ffd2966673a7a412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 998111,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 998111n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953034759500647797073756d1468747470733a2f2f636173687461622e636f6d2f4c0001094c00088ac7230489e80000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -19354,23 +19344,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000000000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 10000000000000000000n,
},
spentBy: {
txid: '56cc72b07a374990d767a569120308812d0da4ef0c0d669a1966a648e759669a',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 996966,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '51bc5da566c85b486b37f1c4d3c0220b7bc11ad992c1b92f99233cf35a8794c1',
outIdx: 0,
},
+ sats: 996966n,
},
],
lockTime: 0,
@@ -19390,9 +19381,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -19445,20 +19436,19 @@
},
inputScript:
'47304402204db8555a3141e86b979257feadc41e903a779a61971e2e63a386f1084c52ff2a022010d7f7f9d41b474ff5c4bd979916e2cd29627a2d6194fcc6af6485a979091cbe412103632f603f43ae61afece65288d7d92e55188783edb74e205be974b8cd1cd36a1e',
- value: 50000,
sequenceNo: 4294967295,
outputScript:
'76a9141c13ddb8dd422bbe02dc2ae8798b4549a67a3c1d88ac',
+ sats: 50000n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303475250064752554d50591868747470733a2f2f6269742e6c792f4772756d7079446f634c0001024c0008000000e8d4a51000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a9141c13ddb8dd422bbe02dc2ae8798b4549a67a3c1d88ac',
token: {
@@ -19469,23 +19459,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000000000000n,
},
spentBy: {
txid: '94cc23c0a01ee35b8b9380b739f1f8d8f6d0e2c09a7785f3d63b928afd23357f',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 48931,
outputScript:
'76a9141c13ddb8dd422bbe02dc2ae8798b4549a67a3c1d88ac',
spentBy: {
txid: '94cc23c0a01ee35b8b9380b739f1f8d8f6d0e2c09a7785f3d63b928afd23357f',
outIdx: 0,
},
+ sats: 48931n,
},
],
lockTime: 0,
@@ -19505,9 +19496,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -19560,20 +19551,19 @@
},
inputScript:
'47304402204297897dbf74589a2e4872c488144d98a03f446878f7e4d22833bf221faf127002201c33519f5e3f662ac3e0da53ff35ef40057d482bfb75310c0c05d402b208dfdf412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 9039904,
sequenceNo: 4294967294,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 9039904n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495304545249420c654361736820486572616c641468747470733a2f2f636173687461622e636f6d2f4c0001004c00080000000000002710',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -19584,23 +19574,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 10000n,
},
spentBy: {
txid: '27a2471afab33d82b9404df12e1fa242488a9439a68e540dcf8f811ef39c11cf',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 9038903,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: 'ff2d098a14929713f392d46963c5b09c2fa5f38f84793f04e55e94f3bc7eac23',
outIdx: 0,
},
+ sats: 9038903n,
},
],
lockTime: 0,
@@ -19620,9 +19611,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -19675,20 +19666,19 @@
},
inputScript:
'473044022055444db90f98b462ca29a6f51981da4015623ddc34dc1f575852426ccb785f0402206e786d4056be781ca1720a0a915b040e0a9e8716b8e4d30b0779852c191fdeb3412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 6231556,
sequenceNo: 4294967294,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 6231556n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953044245415207426561724e69701468747470733a2f2f636173687461622e636f6d2f4c0001004c0008000000000000115c',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -19699,23 +19689,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '4444',
isMintBaton: false,
entryIdx: 0,
+ atoms: 4444n,
},
spentBy: {
txid: '9e7f91826cfd3adf9867c1b3d102594eff4743825fad9883c35d26fb3bdc1693',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 6230555,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '27a2471afab33d82b9404df12e1fa242488a9439a68e540dcf8f811ef39c11cf',
outIdx: 0,
},
+ sats: 6230555n,
},
],
lockTime: 0,
@@ -19735,9 +19726,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -19790,20 +19781,19 @@
},
inputScript:
'47304402207801a307548c5ecccd6e37043bda5e96cb9d27c93e4e60deaff4344605f138b202201a7fd155a42171c4b3331425b3e708df4e9606edfd221b2e500e3fb6bb541f2b412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 981921,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 981921n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e455349530442554c4c0442756c6c1468747470733a2f2f636173687461622e636f6d2f4c0001004c00080000000001406f40',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -19814,19 +19804,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '21000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 21000000n,
},
+ sats: 546n,
},
{
- value: 981078,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '4d8c8d06b724493f5ab172a18d9bf9f4d8419c09bc5a93fe780902b21dab75ba',
outIdx: 0,
},
+ sats: 981078n,
},
],
lockTime: 0,
@@ -19846,9 +19837,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -19901,20 +19892,19 @@
},
inputScript:
'473044022026270f7aea8af1edf82758749f1e1c68accbb3a2719e9c37a49b55f098a4c22302206f5be10f536837f0001f555e968a7a977186d5acfa405e0e47b9df033815ccee412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 26811307,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 26811307n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e455349530343504712436173687461622050726f642047616d6d611074686563727970746f6775792e636f6d4c0001004c00080000000000000064',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -19925,23 +19915,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
isMintBaton: false,
entryIdx: 0,
+ atoms: 100n,
},
spentBy: {
txid: 'fb50eac73a4fd5e2a701e0dbf4e575cea9c083e061b1db722e057164c7317e5b',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 26810238,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '5f0ab0ecfb8807dfdbc97eb421b940cef3c1c70a4c99fd96c39414de42f32338',
outIdx: 0,
},
+ sats: 26810238n,
},
],
lockTime: 0,
@@ -19961,9 +19952,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -20016,20 +20007,19 @@
},
inputScript:
'483045022100fb14b5f82605972478186c91ff6fab2051b46abd2a8aa9774b3e9276715daf39022046a62933cc3acf59129fbf373ef05480342312bc33aaa8bf7fb5a0495b5dc80e412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1617,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1617n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495303414243034142431468747470733a2f2f636173687461622e636f6d2f4c0001004c0008000000000000000c',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -20040,14 +20030,15 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '12',
isMintBaton: false,
entryIdx: 0,
+ atoms: 12n,
},
spentBy: {
txid: '41fd4cb3ce0162e44cfd5a446b389afa6b35461d466d55321be412a518c56d63',
outIdx: 0,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -20067,9 +20058,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -20122,20 +20113,19 @@
},
inputScript:
'473044022018a26c1aaade553fd448ef86c8511bc8e603b755267588ed2406789c5e5fbc69022011a48bcb93c1ec7384b23c4a9b5b3c8a059bf3cb427a02935bc6e4ab77c810df412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 2214,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 2214n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953044341464606436f666665651468747470733a2f2f636173687461622e636f6d2f4c0001094c00080000000cce416600',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -20146,15 +20136,16 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '55000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 55000000000n,
},
+ sats: 546n,
},
{
- value: 1369,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1369n,
},
],
lockTime: 0,
@@ -20174,9 +20165,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -20229,20 +20220,19 @@
},
inputScript:
'473044022009777275694aab45f8c5589308b8f525c4b9b7f0b0a4b80b01531988313e92fc02206e7f0afa725f407f59f85482f26ea20a70c5fe533c0592c95733a4418054c025412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1497156989,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1497156989n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953044347454e0f436173687461622047656e657369731868747470733a2f2f626f6f6d657274616b65732e636f6d2f4c0001094c000800038d7ea4c68000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -20253,23 +20243,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1000000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1000000000000000n,
},
spentBy: {
txid: '4f5af8d3dc9d1fb3dc803a80589cab62c78235264aa90e4f8066b7960804cd74',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 1497155685,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '0916e71779c9de7ee125741d3f5ab01f556356dbc86fd327a24f1e9e22ebc917',
outIdx: 0,
},
+ sats: 1497155685n,
},
],
lockTime: 0,
@@ -20289,9 +20280,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -20512,20 +20503,19 @@
},
inputScript:
'4830450221009bb1fb7d49d9ac64b79ea041be2e2efa5a8709a470930b04c27c9fc46ed1906302206a0a9daf5e64e934a3467951dd2da37405969d4434d4006ddfea3ed39ff4e0ae412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 2200,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 2200n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e4553495306434143484554064361636865741468747470733a2f2f636173687461622e636f6d2f4c0001020102080000000000989680',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -20536,13 +20526,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 10000000n,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -20553,23 +20543,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
spentBy: {
txid: '4b5b2a0f8bcacf6bccc7ef49e7f82a894c9c599589450eaeaf423e0f5926c38e',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 773,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '343356b9d4acd59065f90b1ace647c1f714f1fd4c411e2cf77081a0246c7416d',
outIdx: 3,
},
+ sats: 773n,
},
],
lockTime: 0,
@@ -20589,9 +20580,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -20646,20 +20637,19 @@
},
inputScript:
'4130ef71df9d2daacf48d05a0361e103e087b636f4d68af8decd769227caf198003991629bf7057fa1572fc0dd3581115a1b06b5c0eafc88555e58521956fe5cbc410768999600fc71a024752102d8cb55aaf01f84335130bf7b3751267e5cf3398a60e5162ff93ec8d77f14850fac',
- value: 4000,
sequenceNo: 4294967295,
outputScript:
'a91464275fca443d169d23d077c85ad1bb7a31b6e05987',
+ sats: 4000n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a504c63534c5032000747454e455349530343524411437265646f20496e20556e756d2044656f1968747470733a2f2f6372642e6e6574776f726b2f746f6b656e00210334b744e6338ad438c92900c0ed1869c3fd2c0f35a4a9b97a88447b6e2b145f10040001',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a914bbb6c4fecc56ecce35958f87c2367cd3f5e88c2788ac',
token: {
@@ -20670,14 +20660,15 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '0',
isMintBaton: true,
entryIdx: 0,
+ atoms: 0n,
},
spentBy: {
txid: 'ff06c312bef229f6f27989326d9be7e0e142aaa84538967b104b262af69f7f00',
outIdx: 0,
},
+ sats: 546n,
},
],
lockTime: 777777,
@@ -20697,9 +20688,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -20777,26 +20768,26 @@
},
inputScript:
'483045022100fbe76f31450482a18941ed90fee302662e5e6184d9d84fda6f2a4df9b1d1697a022041432311f5563007d46ade3536fb5988b9c97e2e8aeeec59c15c3efb5c4d0f70412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1676077,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1676077n,
},
],
outputs: [
{
- value: 1100,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '24eae444d765406d8362da437d66a7cf50b95685198692bd2253bafd4bd003a0',
outIdx: 2,
},
+ sats: 1100n,
},
{
- value: 1674751,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1674751n,
},
],
lockTime: 0,
@@ -20823,26 +20814,26 @@
},
inputScript:
'473044022066325bcd7ba631d13d08f202714626fa7ec353febc985051d56a68edc19b0f900220016d4cb2308fa378ee04b101411cbfba88d99fd5e6d8b12170e17bca3d671c79412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 442567277,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 442567277n,
},
],
outputs: [
{
- value: 3300,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 3300n,
},
{
- value: 442563522,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '08fa8a346851d44fd4b6765c65008670ccadf8dabcae59686814279a449ada06',
outIdx: 2,
},
+ sats: 442563522n,
},
],
lockTime: 0,
@@ -20869,26 +20860,26 @@
},
inputScript:
'483045022100dba6667c91a695a7b1b509c901a7ce1fc7c859f2ad4e636729efc697e09177b802206fd4a2d53eaf96e010abdc562d2cc3a19f5ee5427a868105b9814f17eb6a6d72412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 988104,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 988104n,
},
],
outputs: [
{
- value: 1100,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '24eae444d765406d8362da437d66a7cf50b95685198692bd2253bafd4bd003a0',
outIdx: 1,
},
+ sats: 1100n,
},
{
- value: 986778,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 986778n,
},
],
lockTime: 0,
@@ -20915,26 +20906,26 @@
},
inputScript:
'47304402202f1e5ef2f5f17d3c9f7b65094e903c39db01533ae24898492d30b329b98b3b4a022066cf37253c016fde0ce3b57c5a645605cfdbc10623970e97f68e66592275dc88412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 440000,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 440000n,
},
],
outputs: [
{
- value: 1100,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1100n,
},
{
- value: 438445,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '49e2dd75d2309fee1a8c69d31090ad0f5bdd60eaf32bf1eea1ed276dab33e26f',
outIdx: 0,
},
+ sats: 438445n,
},
],
lockTime: 0,
@@ -20961,7 +20952,6 @@
},
inputScript:
'4730440220268dcf8d1be3fb33cdcd79b644acb12cdbf100040a51abf828a02fe17c34a03a0220141dce2d7292a49d82f13642e854f27326607dd8e3c13f7905632d373a56c70a412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -20971,12 +20961,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9',
isMintBaton: false,
entryIdx: 0,
+ atoms: 9n,
},
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 546n,
},
{
prevOut: {
@@ -20985,10 +20976,10 @@
},
inputScript:
'483045022100c7106fb50492ac6726a6cae234ac7424842daee2285fb5a3c8005262a9fdbb06022061c24760989da27c0e3f372646243334d6048894a49aae3459a3f9ebabdc41d0412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 1100,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 1100n,
},
{
prevOut: {
@@ -20997,20 +20988,19 @@
},
inputScript:
'483045022100c1eca663e5c9f06db6f3844254ff197bbbd106897ffef37300d9ce65b17f4ece02203f80564ba7e4d833db4ef6097c69dcb9ae9abce3cc2ab2c75f17a4c23059abfa412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 3181522,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 3181522n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e44203fee3384150b030490b7bee095a63900f66a45f2d8e3002ae2cf17ce3ef4d109080000000000000001080000000000000008',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -21021,13 +21011,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -21038,23 +21028,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8',
isMintBaton: false,
entryIdx: 0,
+ atoms: 8n,
},
spentBy: {
txid: '94bf7fb1b2d37fed71085f9f32415f7426ed7cde692b9a9320ff6c811aa2db74',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 3180811,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
txid: '20c513c9ae5f3966f8dae10c7e0681505756a5a0b4e4f707b366cdf51663c386',
outIdx: 0,
},
+ sats: 3180811n,
},
],
lockTime: 0,
@@ -21074,9 +21065,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -21100,7 +21091,6 @@
},
inputScript:
'4830450221008a6bb3c19db22b601ca5110415e0be8c56877b58741f7d6f50c57a8bd96f988d0220507a171d02a4fa7facc463bf62ce673a69d0d28fe3b6728a683c2ffc7a93418d4121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -21110,12 +21100,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999900000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 999900000000000n,
},
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -21124,20 +21115,19 @@
},
inputScript:
'48304502210096482807afee1009914e934326930379ea308402643e786a1ac35786160cca37022070fe57cff80dba8475598c30b9515afa5e14caebf1ba1c7599554b9f9f7c89354121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 44907604,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
+ sats: 44907604n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010453454e442020a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f80800000007aef40a000800038d5fad5b8e00',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a9146ffbe7c7d7bd01295eb1e371de9550339bdcf9fd88ac',
token: {
@@ -21148,13 +21138,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '33000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 33000000000n,
},
+ sats: 546n,
},
{
- value: 546,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
token: {
@@ -21165,19 +21155,20 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999867000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 999867000000000n,
},
+ sats: 546n,
},
{
- value: 44906091,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
txid: 'd711c97ff4fe19df3419c570b082bfefc99e5b3d093c0ca8e8397404573c98f3',
outIdx: 0,
},
+ sats: 44906091n,
},
],
lockTime: 0,
@@ -21197,9 +21188,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -21221,26 +21212,26 @@
},
inputScript:
'483045022100c2bc2700a443a772b07794660142c1eec7965c8f52e41c549ebba5dfeb2bc509022076884bfa70da9479414e572c450a8b6c667cf499f3367d4ed2ad786a5be2fbc54121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 45114487,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
+ sats: 45114487n,
},
],
outputs: [
{
- value: 100383,
outputScript:
'76a914f5b3312155fe3781140dee0e84023f64cf73a6b588ac',
+ sats: 100383n,
},
{
- value: 45013649,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
txid: 'fa984e50466e064068368e0d456e5a8a774adc6005ece87a32337b779eb4c422',
outIdx: 0,
},
+ sats: 45013649n,
},
],
lockTime: 0,
@@ -21267,26 +21258,26 @@
},
inputScript:
'4830450221008a4a4be8d5ee42c42af259946c4124827e04b3f01b5ea3947089b61108b2ce8c022002d9b52778dc30fd69b9ca11c527ea9fbdce649c654c5a169b8b5c25060e52c74121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 45419254,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
+ sats: 45419254n,
},
],
outputs: [
{
- value: 101053,
outputScript:
'76a91443a15be66386024ed7f87d404048c39fb6f0fce788ac',
+ sats: 101053n,
},
{
- value: 45317746,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
txid: '6d182b409b9969ba0a15e65a63ee0162f9003850bdc8ad99b88fc6e855ef3c76',
outIdx: 0,
},
+ sats: 45317746n,
},
],
lockTime: 0,
@@ -21313,26 +21304,26 @@
},
inputScript:
'483045022100a9f318a6516e98c7eef150c697cfd227e6387a36727351a5448ab597819647db022003ee62af32cd383c6df39cc29a7c79b73e7a3734eae9252aaafbe02fe2c648ea4121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 45520841,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
+ sats: 45520841n,
},
],
outputs: [
{
- value: 101132,
outputScript:
'76a91443a15be66386024ed7f87d404048c39fb6f0fce788ac',
+ sats: 101132n,
},
{
- value: 45419254,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
txid: 'c28d33a9865ca5e063f457b626754a4cb65966b6b0c9e81b77ceef4b24b47c86',
outIdx: 0,
},
+ sats: 45419254n,
},
],
lockTime: 0,
@@ -21359,26 +21350,26 @@
},
inputScript:
'47304402203b88cbdb66bcf921259eb1a9c33345048de4aaab35b8e51d80067812232c791e02207f30aaaf1e4548f97a168a6f210f085e8521982cdfd9055a6fe6c7769b29d7484121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 45216157,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
+ sats: 45216157n,
},
],
outputs: [
{
- value: 101215,
outputScript:
'76a91443a15be66386024ed7f87d404048c39fb6f0fce788ac',
+ sats: 101215n,
},
{
- value: 45114487,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
txid: '8bf2566feb21f4681fbf97155d78b388b9fc1fd6a6e4bc0e21324db5a9e7a7ac',
outIdx: 0,
},
+ sats: 45114487n,
},
],
lockTime: 0,
@@ -21430,20 +21421,19 @@
},
inputScript:
'46304302200db47adc26bbb4ae4584ae455c5f078a4d2f624e898fab3159c74473677bc8b2021f371ea6c9acd051c96eaba2b229d06a0247dad2acf6cf0694792d22280dfe8e412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1253,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1253n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953035653500b56657370656e65204761733468747470733a2f2f73696d706c652e77696b6970656469612e6f72672f77696b692f5374617243726166742347616d65706c61794c0001094c000829a2241af62c0000',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -21454,14 +21444,15 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3000000000000000000',
isMintBaton: false,
entryIdx: 0,
+ atoms: 3000000000000000000n,
},
spentBy: {
txid: 'fc1ada187e9f5da7616f481c79cd0fa3aafa3d4094288db6806e7508f76b5fcd',
outIdx: 1,
},
+ sats: 546n,
},
],
lockTime: 0,
@@ -21481,9 +21472,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -21536,20 +21527,19 @@
},
inputScript:
'473044022055444db90f98b462ca29a6f51981da4015623ddc34dc1f575852426ccb785f0402206e786d4056be781ca1720a0a915b040e0a9e8716b8e4d30b0779852c191fdeb3412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 6231556,
sequenceNo: 4294967294,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 6231556n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001010747454e45534953044245415207426561724e69701468747470733a2f2f636173687461622e636f6d2f4c0001004c0008000000000000115c',
+ sats: 0n,
},
{
- value: 546,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -21560,23 +21550,24 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '4444',
isMintBaton: false,
entryIdx: 0,
+ atoms: 4444n,
},
spentBy: {
txid: '9e7f91826cfd3adf9867c1b3d102594eff4743825fad9883c35d26fb3bdc1693',
outIdx: 1,
},
+ sats: 546n,
},
{
- value: 6230555,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '27a2471afab33d82b9404df12e1fa242488a9439a68e540dcf8f811ef39c11cf',
outIdx: 0,
},
+ sats: 6230555n,
},
],
lockTime: 0,
@@ -21596,9 +21587,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -21773,7 +21764,7 @@
},
inputScript:
'483045022100fbe76f31450482a18941ed90fee302662e5e6184d9d84fda6f2a4df9b1d1697a022041432311f5563007d46ade3536fb5988b9c97e2e8aeeec59c15c3efb5c4d0f70412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1676077,
+ sats: 1676077n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -21781,7 +21772,7 @@
],
outputs: [
{
- value: 1100,
+ sats: 1100n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
@@ -21790,7 +21781,7 @@
},
},
{
- value: 1674751,
+ sats: 1674751n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
@@ -21827,7 +21818,7 @@
},
inputScript:
'473044022066325bcd7ba631d13d08f202714626fa7ec353febc985051d56a68edc19b0f900220016d4cb2308fa378ee04b101411cbfba88d99fd5e6d8b12170e17bca3d671c79412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 442567277,
+ sats: 442567277n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -21835,12 +21826,12 @@
],
outputs: [
{
- value: 3300,
+ sats: 3300n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
{
- value: 442563522,
+ sats: 442563522n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
@@ -21882,7 +21873,7 @@
},
inputScript:
'483045022100dba6667c91a695a7b1b509c901a7ce1fc7c859f2ad4e636729efc697e09177b802206fd4a2d53eaf96e010abdc562d2cc3a19f5ee5427a868105b9814f17eb6a6d72412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 988104,
+ sats: 988104n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -21890,7 +21881,7 @@
],
outputs: [
{
- value: 1100,
+ sats: 1100n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
@@ -21899,7 +21890,7 @@
},
},
{
- value: 986778,
+ sats: 986778n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
@@ -21936,7 +21927,7 @@
},
inputScript:
'47304402202f1e5ef2f5f17d3c9f7b65094e903c39db01533ae24898492d30b329b98b3b4a022066cf37253c016fde0ce3b57c5a645605cfdbc10623970e97f68e66592275dc88412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 440000,
+ sats: 440000n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -21944,12 +21935,12 @@
],
outputs: [
{
- value: 1100,
+ sats: 1100n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
{
- value: 438445,
+ sats: 438445n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
@@ -21991,7 +21982,7 @@
},
inputScript:
'4730440220268dcf8d1be3fb33cdcd79b644acb12cdbf100040a51abf828a02fe17c34a03a0220141dce2d7292a49d82f13642e854f27326607dd8e3c13f7905632d373a56c70a412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -22001,7 +21992,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '9',
+ atoms: 9n,
isMintBaton: false,
entryIdx: 0,
},
@@ -22015,7 +22006,7 @@
},
inputScript:
'483045022100c7106fb50492ac6726a6cae234ac7424842daee2285fb5a3c8005262a9fdbb06022061c24760989da27c0e3f372646243334d6048894a49aae3459a3f9ebabdc41d0412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 1100,
+ sats: 1100n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -22027,7 +22018,7 @@
},
inputScript:
'483045022100c1eca663e5c9f06db6f3844254ff197bbbd106897ffef37300d9ce65b17f4ece02203f80564ba7e4d833db4ef6097c69dcb9ae9abce3cc2ab2c75f17a4c23059abfa412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 3181522,
+ sats: 3181522n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -22035,12 +22026,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e44203fee3384150b030490b7bee095a63900f66a45f2d8e3002ae2cf17ce3ef4d109080000000000000001080000000000000008',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -22051,13 +22042,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -22068,7 +22059,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '8',
+ atoms: 8n,
isMintBaton: false,
entryIdx: 0,
},
@@ -22078,7 +22069,7 @@
},
},
{
- value: 3180811,
+ sats: 3180811n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
@@ -22104,8 +22095,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -22152,7 +22143,7 @@
},
inputScript:
'4830450221008a6bb3c19db22b601ca5110415e0be8c56877b58741f7d6f50c57a8bd96f988d0220507a171d02a4fa7facc463bf62ce673a69d0d28fe3b6728a683c2ffc7a93418d4121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -22162,7 +22153,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999900000000000',
+ atoms: 999900000000000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -22176,7 +22167,7 @@
},
inputScript:
'48304502210096482807afee1009914e934326930379ea308402643e786a1ac35786160cca37022070fe57cff80dba8475598c30b9515afa5e14caebf1ba1c7599554b9f9f7c89354121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 44907604,
+ sats: 44907604n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -22184,12 +22175,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e442020a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f80800000007aef40a000800038d5fad5b8e00',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9146ffbe7c7d7bd01295eb1e371de9550339bdcf9fd88ac',
token: {
@@ -22200,13 +22191,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '33000000000',
+ atoms: 33000000000n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
token: {
@@ -22217,13 +22208,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '999867000000000',
+ atoms: 999867000000000n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 44906091,
+ sats: 44906091n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
@@ -22249,8 +22240,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -22296,7 +22287,7 @@
},
inputScript:
'483045022100c2bc2700a443a772b07794660142c1eec7965c8f52e41c549ebba5dfeb2bc509022076884bfa70da9479414e572c450a8b6c667cf499f3367d4ed2ad786a5be2fbc54121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 45114487,
+ sats: 45114487n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -22304,12 +22295,12 @@
],
outputs: [
{
- value: 100383,
+ sats: 100383n,
outputScript:
'76a914f5b3312155fe3781140dee0e84023f64cf73a6b588ac',
},
{
- value: 45013649,
+ sats: 45013649n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
@@ -22350,7 +22341,7 @@
},
inputScript:
'4830450221008a4a4be8d5ee42c42af259946c4124827e04b3f01b5ea3947089b61108b2ce8c022002d9b52778dc30fd69b9ca11c527ea9fbdce649c654c5a169b8b5c25060e52c74121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 45419254,
+ sats: 45419254n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -22358,12 +22349,12 @@
],
outputs: [
{
- value: 101053,
+ sats: 101053n,
outputScript:
'76a91443a15be66386024ed7f87d404048c39fb6f0fce788ac',
},
{
- value: 45317746,
+ sats: 45317746n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
@@ -22404,7 +22395,7 @@
},
inputScript:
'483045022100a9f318a6516e98c7eef150c697cfd227e6387a36727351a5448ab597819647db022003ee62af32cd383c6df39cc29a7c79b73e7a3734eae9252aaafbe02fe2c648ea4121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 45520841,
+ sats: 45520841n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -22412,12 +22403,12 @@
],
outputs: [
{
- value: 101132,
+ sats: 101132n,
outputScript:
'76a91443a15be66386024ed7f87d404048c39fb6f0fce788ac',
},
{
- value: 45419254,
+ sats: 45419254n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
@@ -22458,7 +22449,7 @@
},
inputScript:
'47304402203b88cbdb66bcf921259eb1a9c33345048de4aaab35b8e51d80067812232c791e02207f30aaaf1e4548f97a168a6f210f085e8521982cdfd9055a6fe6c7769b29d7484121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 45216157,
+ sats: 45216157n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -22466,12 +22457,12 @@
],
outputs: [
{
- value: 101215,
+ sats: 101215n,
outputScript:
'76a91443a15be66386024ed7f87d404048c39fb6f0fce788ac',
},
{
- value: 45114487,
+ sats: 45114487n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
@@ -22503,9 +22494,7 @@
},
];
-const tokenInfoErrorParsedTxHistory = JSON.parse(
- JSON.stringify(expectedParsedTxHistory),
-);
+const tokenInfoErrorParsedTxHistory = [...expectedParsedTxHistory];
export const noCachedInfoParsedTxHistory = tokenInfoErrorParsedTxHistory;
@@ -22520,19 +22509,18 @@
},
inputScript:
'483045022100b8fdd47dd19070801a6e5ef306463fa0b21e88405fcb381a7983f13b268128f102202434a3ca71f00b9d8a98c170679cd90cf0b81c9c416c8b24e957adfb9c6e3ec3412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 32773546,
sequenceNo: 4294967295,
outputScript: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 32773546n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001810747454e45534953033448431e54686520466f75722048616c662d436f696e73206f66204a696e2d71756125656e2e77696b6970656469612e6f72672f77696b692f5461692d50616e5f286e6f76656c29202a6585a404fae1c33a43322b723b9dbd926cb07244ae9bea888add8f471511e001004c00080000000000000004',
+ sats: 0n,
},
{
- value: 546,
outputScript: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
tokenId:
@@ -22542,22 +22530,23 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '4',
isMintBaton: false,
entryIdx: 0,
+ atoms: 4n,
},
spentBy: {
txid: 'faaba128601942a858abcce56d0da002c1f1d95e8c49ba4105c3d08aa76959d8',
outIdx: 0,
},
+ sats: 546n,
},
{
- value: 32772256,
outputScript: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
txid: '6ee862c41f8cf37bfd30b7a2e5ddf6bbad60b87753c6b810dd76527d97c10de4',
outIdx: 1,
},
+ sats: 32772256n,
},
],
lockTime: 0,
@@ -22577,9 +22566,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -22601,7 +22590,6 @@
},
inputScript:
'483045022100939d517c889174bdcaf9755390165ce1e2ba7f47d1490dbf48bbf2f4146c84360220172aeb2fe8eca8a0c59e68ca6b2ab1a8fd0bdded8410212c5d34d936cadcf734412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -22611,11 +22599,12 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
isMintBaton: false,
entryIdx: 1,
+ atoms: 1n,
},
outputScript: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 546n,
},
{
prevOut: {
@@ -22624,19 +22613,18 @@
},
inputScript:
'483045022100da6101ab8d02141d6745b3985d4c1ba5481cb2c470acff8d40e66fa654e3f14402200906d6a511dda0c5bc243f82217a03fe40c3cfc0a407b2d1e6f971de1ae70316412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 32769023,
sequenceNo: 4294967295,
outputScript: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 32769023n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04534c500001410747454e45534953035746430c57752046616e672043686f690b636173687461622e636f6d20ec7ed5da3ed751a80a3ab857c50dce405f8e8f7a083fafea158a3a297308385501004c00080000000000000001',
+ sats: 0n,
},
{
- value: 546,
outputScript: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
tokenId:
@@ -22646,14 +22634,15 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
isMintBaton: false,
entryIdx: 0,
+ atoms: 1n,
},
+ sats: 546n,
},
{
- value: 32768070,
outputScript: '76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 32768070n,
},
],
lockTime: 0,
@@ -22673,11 +22662,11 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
groupTokenId:
'12a049d0da64652b4e8db68b6052ad0cda43cf0269190fe81040bed65ca926a3',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
{
tokenId:
@@ -22691,9 +22680,9 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
burnsMintBatons: false,
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
},
],
tokenFailedParsings: [],
@@ -22716,10 +22705,10 @@
},
inputScript:
'4145602aed278898b9892332953d7eb9212b8f4f842a3e761139baa5ec95d353d94ab3abcb7d62b79e190c6aca93e304555a87398fabda5b9141faec1596b9bcc84121030a06dd7429d8fce700b702a55a012a1f9d1eaa46825bde2d31252ee9cb30e536',
- value: 600,
sequenceNo: 4294967295,
outputScript:
'76a91414582d09f61c6580b8a2b6c8af8d6a13c9128b6f88ac',
+ sats: 600n,
},
{
prevOut: {
@@ -22728,10 +22717,10 @@
},
inputScript:
'41ec6df6abd70cdb718c19623173901a9471e9f52a5a4cd99d8093c4d5371bc2b0ce107866f1825a04646e6f7b51c883236eaefea50366e7c7074c140695f580014121030a06dd7429d8fce700b702a55a012a1f9d1eaa46825bde2d31252ee9cb30e536',
- value: 600,
sequenceNo: 4294967295,
outputScript:
'76a91414582d09f61c6580b8a2b6c8af8d6a13c9128b6f88ac',
+ sats: 600n,
},
{
prevOut: {
@@ -22740,35 +22729,35 @@
},
inputScript:
'4131c3b37d72362a79618771e7ad737e462c0804367809fb79d2bac39b116663297a559327e747be37e70979ba2f2e6ea184bf616e1b11df72a27f8eaafabbc9c24121030a06dd7429d8fce700b702a55a012a1f9d1eaa46825bde2d31252ee9cb30e536',
- value: 508087,
sequenceNo: 4294967295,
outputScript:
'76a91414582d09f61c6580b8a2b6c8af8d6a13c9128b6f88ac',
+ sats: 508087n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04626c6f6704726c6f6720fc1bec473c0c8de408b8587ead6d31ad1d8854835c19947488fa7b30b79922674c70697320796f7572207769666520746865206769726c667269656e642066726f6d207061727420313f20496620736f207468656e20736865277320796f757220736f756c6d6174652c206265747465722068616e67206f6e746f20686572206c696b6520796f7572205845432062616773',
+ sats: 0n,
},
{
- value: 550,
outputScript:
'76a91414582d09f61c6580b8a2b6c8af8d6a13c9128b6f88ac',
spentBy: {
txid: '29810f319e19c552a6646d96eb1de5f7587c9adc6bed80ea756fe5b8db1f3f34',
outIdx: 0,
},
+ sats: 550n,
},
{
- value: 507394,
outputScript:
'76a91414582d09f61c6580b8a2b6c8af8d6a13c9128b6f88ac',
spentBy: {
txid: '29810f319e19c552a6646d96eb1de5f7587c9adc6bed80ea756fe5b8db1f3f34',
outIdx: 1,
},
+ sats: 507394n,
},
],
lockTime: 0,
@@ -22860,35 +22849,35 @@
},
inputScript:
'41f6b48f09d3d69002cb49049269d2e16c752b59357bf08c9a4a8513a69d6c87636db7acf09a6714663276d543584045b0796e76bfa3d67bd21a2fa680a89a375d412102f9e8383fe6fc81852f60909f5feb8a314949c3d2c9013c5e67563e3ba03e60ad',
- value: 133153,
sequenceNo: 4294967295,
outputScript:
'76a914396addff64044d33431e0106b41c6903c7d0d28988ac',
+ sats: 133153n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04626c6f672863666338633134326661323336303566366336343765333437636262613261356633363064383937',
+ sats: 0n,
},
{
- value: 550,
outputScript:
'76a914396addff64044d33431e0106b41c6903c7d0d28988ac',
spentBy: {
txid: '9da106f4f05ba358b91486c5a233db096a57f40fa8134fddcc3ad2121857e47a',
outIdx: 0,
},
+ sats: 550n,
},
{
- value: 132050,
outputScript:
'76a914396addff64044d33431e0106b41c6903c7d0d28988ac',
spentBy: {
txid: '9da106f4f05ba358b91486c5a233db096a57f40fa8134fddcc3ad2121857e47a',
outIdx: 1,
},
+ sats: 132050n,
},
],
lockTime: 0,
@@ -22951,6 +22940,7 @@
xecTxType: 'Received',
},
};
+
export const CashtabMsg = {
tx: {
txid: '1ce6c307b4083fcfc065287a00f0a582cf88bf33de34845db4c49387d4532b8a',
@@ -22963,27 +22953,27 @@
},
inputScript:
'483045022100eccfc2e23d49fb7e72a35123c807f4feef2f379313673295f36611d725e877b002207b1df4c142c590a54d371fe2f04c05769ecf778e0d28fc50a671e5c5d8b277854121028c1fc90b3fa6e5be985032b061b5ca6db41a6878a9c8b442747b820ca74010db',
- value: 3001592,
sequenceNo: 4294967295,
outputScript:
'76a914e6309418b6e60b8119928ec45b8ba87de8e735f788ac',
+ sats: 3001592n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a04007461624cbe4d6572636920706f7572206c65207072697820657420626f6e6e6520636f6e74696e756174696f6e2064616e7320766f732070726f6a6574732064652064c3a976656c6f70706575722e2e2e204a27616920c3a974c3a92063656e737572c3a92073c3bb722074c3a96cc3a96772616d6d65206a7573717527617520313520417672696c20323032342e2052c3a97061726572206c6520627567206f6273657276c3a920737572206c6120706167652065546f6b656e204661756365743f',
+ sats: 0n,
},
{
- value: 550,
outputScript:
'76a9143c28745097b1e32b343c50a8d4a7697fe7ad8aff88ac',
+ sats: 550n,
},
{
- value: 3000609,
outputScript:
'76a914e6309418b6e60b8119928ec45b8ba87de8e735f788ac',
+ sats: 3000609n,
},
],
lockTime: 0,
@@ -23059,10 +23049,10 @@
},
inputScript:
'41287a47a0238eb4e55b92061f3205e5c067f00e6a88df11e60ceb55aa6efa5da97d9418e2e52a0c1b69eba5983a8ad837b0cbe05aefe51d5237bdf3a11e72a2e0412102a36a18cea3d7cfd980e0aa30dd5371fcee3c7e993e13c62942d6f36d2a203308',
- value: 31250500,
sequenceNo: 4294967295,
outputScript:
'76a914122fc1f3bc93ee590186d7ff915053799052b8a788ac',
+ sats: 31250500n,
},
{
prevOut: {
@@ -23071,10 +23061,10 @@
},
inputScript:
'415b4594a93e4ea80231f25da079f27f6928264a5c37f281a2b59f7850c0d3a0a7ba9c856791dadc6b0e73aa22430581821b69caace9661c54dd45d7687fad1ef3412102a36a18cea3d7cfd980e0aa30dd5371fcee3c7e993e13c62942d6f36d2a203308',
- value: 31250355,
sequenceNo: 4294967295,
outputScript:
'76a914122fc1f3bc93ee590186d7ff915053799052b8a788ac',
+ sats: 31250355n,
},
{
prevOut: {
@@ -23083,10 +23073,10 @@
},
inputScript:
'41e4c223342bb6987464f4702aafff4dfd1421edddfbb9ab57a7a98339d93191dad2549db9f715260279786eebf48431fd120d18e1c8baa977de11efb7fe1f7b01412102a36a18cea3d7cfd980e0aa30dd5371fcee3c7e993e13c62942d6f36d2a203308',
- value: 31250022,
sequenceNo: 4294967295,
outputScript:
'76a914122fc1f3bc93ee590186d7ff915053799052b8a788ac',
+ sats: 31250022n,
},
{
prevOut: {
@@ -23095,10 +23085,10 @@
},
inputScript:
'41faf5ed17630b62563d8d4e1f342a51c1715deba8cd69bb755056b345e3448ae70fac12b8740c53d17e8e8e9211c6d406026a5512e658da30260ebc207fe7f976412102a36a18cea3d7cfd980e0aa30dd5371fcee3c7e993e13c62942d6f36d2a203308',
- value: 31250542,
sequenceNo: 4294967295,
outputScript:
'76a914122fc1f3bc93ee590186d7ff915053799052b8a788ac',
+ sats: 31250542n,
},
{
prevOut: {
@@ -23107,10 +23097,10 @@
},
inputScript:
'412546d55291fd069a4c12249cb06c011e16b890844824f279159122cbf8657868e7aaf6dc2239c17874cd50bb50fdc306c4224e5e2651ebaa0a831ee3a86a1285412102a36a18cea3d7cfd980e0aa30dd5371fcee3c7e993e13c62942d6f36d2a203308',
- value: 31251452,
sequenceNo: 4294967295,
outputScript:
'76a914122fc1f3bc93ee590186d7ff915053799052b8a788ac',
+ sats: 31251452n,
},
{
prevOut: {
@@ -23119,10 +23109,10 @@
},
inputScript:
'41d8b94143ad17fae0cd9eb5b57c197fd62d750a8d83627bf9d021c800608bca6771844298cccfc4d94da7b592c44ff8a653f2ff238fc1ea17828eac56d05ce309412102a36a18cea3d7cfd980e0aa30dd5371fcee3c7e993e13c62942d6f36d2a203308',
- value: 31251576,
sequenceNo: 4294967295,
outputScript:
'76a914122fc1f3bc93ee590186d7ff915053799052b8a788ac',
+ sats: 31251576n,
},
{
prevOut: {
@@ -23131,10 +23121,10 @@
},
inputScript:
'4148447f966b2000c31d5cfc31c6382cb116b891f643f03b8d9fd7eb25d8a827d01d0ca8129d3b7412255901214ec6fb6fbeca178aedc293797e8d03eabd4d6829412102a36a18cea3d7cfd980e0aa30dd5371fcee3c7e993e13c62942d6f36d2a203308',
- value: 31258084,
sequenceNo: 4294967295,
outputScript:
'76a914122fc1f3bc93ee590186d7ff915053799052b8a788ac',
+ sats: 31258084n,
},
{
prevOut: {
@@ -23143,10 +23133,10 @@
},
inputScript:
'417f7cc74f9421db8a11196faadc29bdca794efd2bc016f9fb46ba5340877c74c46c4d46efa9cb7115256d16fc1e6af1a5265d0b064fb70ec7a74128bb68b7b630412102a36a18cea3d7cfd980e0aa30dd5371fcee3c7e993e13c62942d6f36d2a203308',
- value: 31250892,
sequenceNo: 4294967295,
outputScript:
'76a914122fc1f3bc93ee590186d7ff915053799052b8a788ac',
+ sats: 31250892n,
},
{
prevOut: {
@@ -23155,10 +23145,10 @@
},
inputScript:
'41f07a227801c780217f0bc3f68e9927c0f278182ffc754ca6b167b0413a1cf98cf4d1838a40668482e1dfb7761ccf0ddc7e5a05ac2f55002a075f79e7dc147914412102a36a18cea3d7cfd980e0aa30dd5371fcee3c7e993e13c62942d6f36d2a203308',
- value: 31256658,
sequenceNo: 4294967295,
outputScript:
'76a914122fc1f3bc93ee590186d7ff915053799052b8a788ac',
+ sats: 31256658n,
},
{
prevOut: {
@@ -23167,76 +23157,76 @@
},
inputScript:
'413ab633abeacde057b424a607fbbc477f29d8bea944d23d944889e808d8388cb43386c0b62edc8b278e6daa45f0446e90f8f9c750a975a934d911ec0a752b4fbe412102a36a18cea3d7cfd980e0aa30dd5371fcee3c7e993e13c62942d6f36d2a203308',
- value: 31252018,
sequenceNo: 4294967295,
outputScript:
'76a914122fc1f3bc93ee590186d7ff915053799052b8a788ac',
+ sats: 31252018n,
},
],
outputs: [
{
- value: 0,
outputScript:
'6a501f584543580008c43400000000000e21fdc39e01000000000000000000000000',
+ sats: 0n,
},
{
- value: 31250371,
outputScript:
'76a914bf9db3e9b4e447d04cc7dbad89cf50d0fa74388c88ac',
+ sats: 31250371n,
},
{
- value: 279681010,
outputScript:
'76a9149b487946ba24c1d61248ba992e3d533105cea14b88ac',
+ sats: 279681010n,
},
{
- value: 1578922,
outputScript:
'76a914bf095d9afbda5245d5f1e27e7b360ec22357d6f088ac',
+ sats: 1578922n,
},
{
- value: 2038,
outputScript:
'76a914da3621d8d4a1c462b9f5cd2c9cb10850edbd3e4788ac',
spentBy: {
txid: '084d313be0c552839dbac91b47ceb792fec42ec5c121946366e0f352df16644f',
outIdx: 1,
},
+ sats: 2038n,
},
{
- value: 1585,
outputScript:
'76a9142a96944d06700882bbd984761d9c9e4215f2d78e88ac',
+ sats: 1585n,
},
{
- value: 1516,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
+ sats: 1516n,
},
{
- value: 1516,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
+ sats: 1516n,
},
{
- value: 1280,
outputScript:
'76a91469535ed57a629cb83609de1e958a3c87a2d5e9db88ac',
+ sats: 1280n,
},
{
- value: 791,
outputScript:
'76a91428ef733a0427f54c95cc5efea72d95f99db8e48d88ac',
+ sats: 791n,
},
{
- value: 632,
outputScript:
'76a9149f88249247eba350d3b5ea61187fa1693e15524e88ac',
+ sats: 632n,
},
{
- value: 601,
outputScript:
'76a91451691a770b8f2ab95590fbf89d22a290c57a4bd988ac',
+ sats: 601n,
},
],
lockTime: 0,
@@ -23296,7 +23286,7 @@
...xecxTx.tx,
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a501f584543580108c43400000000000e21fdc39e01000000000000000000000000',
},
diff --git a/cashtab/src/chronik/fixtures/vectors.js b/cashtab/src/chronik/fixtures/vectors.js
--- a/cashtab/src/chronik/fixtures/vectors.js
+++ b/cashtab/src/chronik/fixtures/vectors.js
@@ -905,10 +905,10 @@
},
{
description: 'Splits token utxos and non-token utxos',
- chronikUtxos: [{ token: 'true' }, { amount: 500 }],
+ chronikUtxos: [{ token: 'true' }, { atoms: 500 }],
returned: {
slpUtxos: [{ token: 'true' }],
- nonSlpUtxos: [{ amount: 500 }],
+ nonSlpUtxos: [{ atoms: 500 }],
},
},
{
@@ -923,10 +923,10 @@
{
description:
'Returns empty array for preliminarySlpUtxos if no token utxos found',
- chronikUtxos: [{ amount: 500 }, { amount: 500 }],
+ chronikUtxos: [{ atoms: 500 }, { atoms: 500 }],
returned: {
slpUtxos: [],
- nonSlpUtxos: [{ amount: 500 }, { amount: 500 }],
+ nonSlpUtxos: [{ atoms: 500 }, { atoms: 500 }],
},
},
],
@@ -970,7 +970,7 @@
},
inputScript:
'483045022100fb14b5f82605972478186c91ff6fab2051b46abd2a8aa9774b3e9276715daf39022046a62933cc3acf59129fbf373ef05480342312bc33aaa8bf7fb5a0495b5dc80e412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1617,
+ sats: 1617n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -978,12 +978,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e4553495303414243034142431468747470733a2f2f636173687461622e636f6d2f4c0001004c0008000000000000000c',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -994,7 +994,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '12',
+ atoms: 12n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1021,8 +1021,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1093,7 +1093,7 @@
},
inputScript:
'483045022100fb14b5f82605972478186c91ff6fab2051b46abd2a8aa9774b3e9276715daf39022046a62933cc3acf59129fbf373ef05480342312bc33aaa8bf7fb5a0495b5dc80e412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 1617,
+ sats: 1617n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1101,12 +1101,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e4553495303414243034142431468747470733a2f2f636173687461622e636f6d2f4c0001004c0008000000000000000c',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -1117,7 +1117,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '12',
+ atoms: 12n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1144,8 +1144,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1210,7 +1210,7 @@
},
inputScript:
'483045022100e28006843eb071ec6d8dd105284f2ca625a28f4dc85418910b59a5ab13fc6c2002205921fb12b541d1cd1a63e7e012aca5735df3398525f64bac04337d21029413614121034509251caa5f01e2787c436949eb94d71dcc451bcde5791ae5b7109255f5f0a3',
- value: 91048,
+ sats: 91048n,
sequenceNo: 4294967295,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
@@ -1218,12 +1218,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e455349530354424307746162636173681768747470733a2f2f636173687461626170702e636f6d2f4c0001000102080000000000000064',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -1234,7 +1234,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100',
+ atoms: 100n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1244,7 +1244,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
token: {
@@ -1255,13 +1255,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
},
{
- value: 89406,
+ sats: 89406n,
outputScript:
'76a914b8d9512d2adf8b4e70c45c26b6b00d75c28eaa9688ac',
spentBy: {
@@ -1287,8 +1287,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1365,7 +1365,7 @@
},
inputScript:
'4130ef71df9d2daacf48d05a0361e103e087b636f4d68af8decd769227caf198003991629bf7057fa1572fc0dd3581115a1b06b5c0eafc88555e58521956fe5cbc410768999600fc71a024752102d8cb55aaf01f84335130bf7b3751267e5cf3398a60e5162ff93ec8d77f14850fac',
- value: 4000,
+ sats: 4000n,
sequenceNo: 4294967295,
outputScript:
'a91464275fca443d169d23d077c85ad1bb7a31b6e05987',
@@ -1373,12 +1373,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a504c63534c5032000747454e455349530343524411437265646f20496e20556e756d2044656f1968747470733a2f2f6372642e6e6574776f726b2f746f6b656e00210334b744e6338ad438c92900c0ed1869c3fd2c0f35a4a9b97a88447b6e2b145f10040001',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914bbb6c4fecc56ecce35958f87c2367cd3f5e88c2788ac',
token: {
@@ -1389,7 +1389,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
@@ -1416,8 +1416,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1494,7 +1494,7 @@
},
inputScript:
'41614bc7f35d66b30c017e111c98ad22086730435bea6cf0ec54188ca425863f2a60ee808a11564258d0defc2bfa1505953e18a8108409fb048cfa39bdacc82fce4121027e6cf8229495afadcb5a7e40365bbc82afcf145eacca3193151e68a61fc81743',
- value: 3200,
+ sats: 3200n,
sequenceNo: 4294967295,
outputScript:
'76a914502ee2f475081f2031861f3a275c52722199280e88ac',
@@ -1502,12 +1502,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e45534953034255581642616467657220556e6976657273616c20546f6b656e1368747470733a2f2f6275782e6469676974616c4c0001040102080000000000000000',
},
{
- value: 2300,
+ sats: 2300n,
outputScript:
'a9144d80de3cda49fd1bd98eb535da0f2e4880935ea987',
spentBy: {
@@ -1516,7 +1516,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'a91420d151c5ab4ca4154407626069eaafd8ce6306fc87',
token: {
@@ -1527,7 +1527,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
@@ -1554,8 +1554,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1632,7 +1632,7 @@
},
inputScript:
'473044022040b7bb9093b092003b5c41090f4b7560a7bcfed35278fd05d2f1083653529ea902205a11af8aea5d16a01dc7648397eb6b04369dda9e3e9ecc4a9efe3f5b4a41a1dd412102fafcdb1f5f0d2e49909fbafc18f339bcfc2b765b3def934d501eb798e626c7b3',
- value: 3851630,
+ sats: 3851630n,
sequenceNo: 4294967294,
outputScript:
'76a91452558a0640aae72592c3b336a3a4959ce97906b488ac',
@@ -1640,17 +1640,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001020747454e45534953034255581642616467657220556e6976657273616c20546f6b656e1368747470733a2f2f6275782e6469676974616c4c0001041408d6edf91c7b93d18306d3b8244587e43f11df4b080000000000000000',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91452558a0640aae72592c3b336a3a4959ce97906b488ac',
},
{
- value: 3850752,
+ sats: 3850752n,
outputScript:
'76a914f4592a09e8da1a2157916963bc0fb7fe682df73e88ac',
},
@@ -1672,8 +1672,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1748,7 +1748,7 @@
},
inputScript:
'483045022100e394332d19812c6b78ac39484dd755473348cc11920ceaea00c9185dc36cac9302203f04fbb661cd9137d5536667f03f89f2096b487a95b7a9eddbf2a33c7fb12d93412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1758,7 +1758,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 1,
},
@@ -1772,7 +1772,7 @@
},
inputScript:
'47304402200dd2615f8545e57157d0cba016db42d4e25688a265155c7c332cf049eec4300202206cc96ee2f25141302f5e2aaade959ef9d972739f054585cf5dedb6bfec2f5928412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 32767046,
+ sats: 32767046n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1780,12 +1780,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001410747454e455349530247430b476f72646f6e204368656e2d68747470733a2f2f656e2e77696b6970656469612e6f72672f77696b692f5461692d50616e5f286e6f76656c29208247001da3bf5680011e26628228761b994a9e0a4ba3f1fdd826ddbf044e5d7201004c00080000000000000001',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -1796,13 +1796,13 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 32766028,
+ sats: 32766028n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
},
@@ -1824,8 +1824,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
groupTokenId:
'12a049d0da64652b4e8db68b6052ad0cda43cf0269190fe81040bed65ca926a3',
@@ -1842,8 +1842,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
diff --git a/cashtab/src/chronik/index.ts b/cashtab/src/chronik/index.ts
--- a/cashtab/src/chronik/index.ts
+++ b/cashtab/src/chronik/index.ts
@@ -447,14 +447,14 @@
}
// Parse outputs
- let change = 0;
- let outputSatoshis = 0;
- let receivedSatoshis = 0;
+ let change = 0n;
+ let outputSatoshis = 0n;
+ let receivedSatoshis = 0n;
let selfSendTx = true;
for (const output of outputs) {
- const { outputScript, value } = output;
- outputSatoshis += value;
+ const { outputScript, sats } = output;
+ outputSatoshis += sats;
if (outputScript.startsWith(opreturnConfig.opReturnPrefixHex)) {
stackArray = getStackArray(outputScript);
continue;
@@ -463,8 +463,8 @@
for (const hash of hashes) {
if (outputScript.includes(hash)) {
walletIncludesThisOutputScript = true;
- change += value;
- receivedSatoshis += value;
+ change += sats;
+ receivedSatoshis += sats;
}
}
if (!walletIncludesThisOutputScript) {
@@ -846,12 +846,12 @@
satoshisSent >=
Math.floor(
(STAKING_REWARDS_FACTOR - STAKING_REWARDS_PADDING) *
- outputSatoshis,
+ Number(outputSatoshis),
) &&
satoshisSent <=
Math.floor(
(STAKING_REWARDS_FACTOR + STAKING_REWARDS_PADDING) *
- outputSatoshis,
+ Number(outputSatoshis),
)
) {
xecTxType = XecTxType.Staking;
@@ -867,8 +867,8 @@
tokenType,
txType,
burnSummary,
- actualBurnAmount,
- intentionalBurn,
+ actualBurnAtoms,
+ intentionalBurnAtoms,
} = entry;
const renderedTokenType = getRenderedTokenType(tokenType);
@@ -901,8 +901,8 @@
}
const isUnintentionalBurn =
- burnSummary !== '' && actualBurnAmount !== '0';
- const isIntentionalBurn = intentionalBurn !== '0';
+ burnSummary !== '' && actualBurnAtoms !== 0n;
+ const isIntentionalBurn = intentionalBurnAtoms !== 0n;
let agoraSaleTokenSatoshis = 0n;
let tokenSatoshisTotal = 0n;
@@ -914,7 +914,7 @@
// Get the amount associated with this token entry
// Per ChronikClient, we will always have amount as a string in
// the token key of an output, see type Token
- tokenSatoshisTotal += BigInt(output.token.amount);
+ tokenSatoshisTotal += output.token.atoms;
// For sales of agora partial txs, we assume the amount sold
// goes to a p2pkh address
@@ -923,14 +923,14 @@
output.outputScript,
);
if (type === 'p2pkh') {
- agoraSaleTokenSatoshis += BigInt(output.token.amount);
+ agoraSaleTokenSatoshis += output.token.atoms;
}
}
for (const hash of hashes) {
if (output.outputScript.includes(hash)) {
- tokenSatoshisReceived += BigInt(output.token.amount);
+ tokenSatoshisReceived += output.token.atoms;
- if (output.token.amount === '1') {
+ if (output.token.atoms === 1n) {
// Note that we increment this for all qty 1 outputs we see
// But only tx of type fan input will use this var
nftFanInputsCreated += 1;
@@ -968,7 +968,7 @@
break;
}
case 'BURN': {
- tokenSatoshis = BigInt(actualBurnAmount);
+ tokenSatoshis = actualBurnAtoms;
}
}
}
@@ -978,7 +978,7 @@
renderedTxType = 'BURN';
// Maybe this is a SEND tx, but if it burns unintentionally,
// that is the more important info
- tokenSatoshis = BigInt(actualBurnAmount);
+ tokenSatoshis = actualBurnAtoms;
}
const parsedTokenEntry: ParsedTokenEntry = {
tokenId,
@@ -1003,7 +1003,7 @@
const parsedTx: ParsedTx = {
recipients: Array.from(destinationAddresses),
- satoshisSent,
+ satoshisSent: Number(satoshisSent),
stackArray,
xecTxType,
appActions,
@@ -1406,7 +1406,8 @@
// Add its outputScript to genesisOutputScripts
genesisOutputScripts.add(outputScript);
- const { isMintBaton, amount } = token;
+ const { isMintBaton, atoms } = token;
+
if (isMintBaton) {
// If it is a mintBaton, increment genesisMintBatons
genesisMintBatons += 1;
@@ -1423,7 +1424,7 @@
genesisSupply,
decimals as SlpDecimals,
),
- ) + BigInt(amount)
+ ) + atoms
).toString(),
decimals as SlpDecimals,
);
@@ -1479,7 +1480,7 @@
for (const utxo of slpUtxos) {
// Every utxo in slpUtxos will have a tokenId
const { token } = utxo;
- const { tokenId, amount } = token;
+ const { tokenId, atoms } = token;
// Is this token cached?
let cachedTokenInfo = tokenCache.get(tokenId);
if (typeof cachedTokenInfo === 'undefined') {
@@ -1496,7 +1497,10 @@
walletStateTokens.set(
tokenId,
typeof tokenBalanceInMap === 'undefined'
- ? decimalizeTokenAmount(amount, decimals as SlpDecimals)
+ ? decimalizeTokenAmount(
+ atoms.toString(),
+ decimals as SlpDecimals,
+ )
: decimalizeTokenAmount(
(
BigInt(
@@ -1504,7 +1508,7 @@
tokenBalanceInMap,
decimals as SlpDecimals,
),
- ) + BigInt(amount)
+ ) + atoms
).toString(),
decimals as SlpDecimals,
),
diff --git a/cashtab/src/components/Agora/fixtures/mocks.ts b/cashtab/src/components/Agora/fixtures/mocks.ts
--- a/cashtab/src/components/Agora/fixtures/mocks.ts
+++ b/cashtab/src/components/Agora/fixtures/mocks.ts
@@ -29,7 +29,7 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 546,
+ sats: 546n,
isFinal: false,
token: {
tokenId:
@@ -39,7 +39,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100000',
+ atoms: 100000n,
isMintBaton: false,
},
path: 1899,
@@ -51,7 +51,7 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 546,
+ sats: 546n,
isFinal: false,
token: {
tokenId:
@@ -61,7 +61,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3000',
+ atoms: 3000n,
isMintBaton: false,
},
path: 1899,
@@ -75,7 +75,7 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 420000,
+ sats: 420000n,
isFinal: false,
path: 1899,
},
@@ -102,7 +102,7 @@
},
inputScript:
'4175beba74315f8f184c629a6c59a645789c7711bd36536234f226aea983df3528b4d9bb38929c94d177d156c193600ed0f591d662d0254ed9c14cb145e5fb8bab412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -112,7 +112,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '20989999',
+ atoms: 20989999n,
isMintBaton: false,
entryIdx: 0,
},
@@ -126,7 +126,7 @@
},
inputScript:
'411507c71cf5785a081b31e872cc33958072e00261791541bb5b322ce239b8a4c1559e9fc0d812ba977bb72c0a3fac6490368dba7c2690ccefe6879bf43f10602a412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 11028,
+ sats: 11028n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -134,12 +134,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e442001d63c4f4cb496829a6743f7b1805d086ea3877a1dd34b3f92ffba2c9c99f896080000000000000bb8080000000001403c77',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91403b830e4b9dce347f3495431e1f9d1005f4b420488ac',
token: {
@@ -150,7 +150,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '3000',
+ atoms: 3000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -160,7 +160,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -171,13 +171,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '20986999',
+ atoms: 20986999n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 10015,
+ sats: 10015n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
@@ -203,8 +203,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -256,7 +256,7 @@
},
inputScript:
'41ceb2cdb712138d3ee6b14304d33658388ad474e049bed0d62a9d581685b8dbcaa044e043ee43cc38244e85f9f1b150779285bbfba3dd715a35ffe5a93c395f50412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -266,7 +266,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '4621',
+ atoms: 4621n,
isMintBaton: false,
entryIdx: 0,
},
@@ -280,7 +280,7 @@
},
inputScript:
'41cc1b1fb6a49b0ecb793887832a4ed51f465f0e2b802e9cf96915cc4bff0aa2bc3cff78e7bdc8004cb9b3ac2e3c73a42fd320cda51ded9f73fb4cfb987a9b89ac412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -290,7 +290,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '26101',
+ atoms: 26101n,
isMintBaton: false,
entryIdx: 0,
},
@@ -304,7 +304,7 @@
},
inputScript:
'41ddb9e54a08bb9e498db59d744a90ab5825b60a7d9ed755ea6f9ebe9474fe8f05bf95683bf90d0181138b0f7b090d48b4f119319821e6946abca1e1105a0c24f8412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -314,7 +314,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '18850',
+ atoms: 18850n,
isMintBaton: false,
entryIdx: 0,
},
@@ -328,7 +328,7 @@
},
inputScript:
'41ae70070af786bebf975fcf867b1c62817654301391748998289814172472f92a9ef1ade2c141aad9a32f00a428cad8784ee5c684ee7506a6c71d7a2ce1b19c3e412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -338,7 +338,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '22508',
+ atoms: 22508n,
isMintBaton: false,
entryIdx: 0,
},
@@ -352,7 +352,7 @@
},
inputScript:
'4184f1c491fd4f4a166b785c405cd5a4506fbcd59d1cd215e0eaf90b75f9aa36af18fc89d74a3706c17417a12dac2fc3b374e2acace4c26bd8ee4dadcecd133243412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -362,7 +362,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '17631',
+ atoms: 17631n,
isMintBaton: false,
entryIdx: 0,
},
@@ -376,7 +376,7 @@
},
inputScript:
'412779265c3bba36e1d9121c0c4310039c8ff2857442c9f9340899be900e6e49339ead33e591ba2ad799beaf81ed510d2f8c54146b1b4f96a68bb26bdde474de8a412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -386,7 +386,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '31763',
+ atoms: 31763n,
isMintBaton: false,
entryIdx: 0,
},
@@ -396,12 +396,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e4420aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb10800000000000186a00800000000000053e2',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91403b830e4b9dce347f3495431e1f9d1005f4b420488ac',
token: {
@@ -412,7 +412,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '100000',
+ atoms: 100000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -422,7 +422,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
token: {
@@ -433,7 +433,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '21474',
+ atoms: 21474n,
isMintBaton: false,
entryIdx: 0,
},
@@ -443,7 +443,7 @@
},
},
{
- value: 1153,
+ sats: 1153n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
@@ -469,8 +469,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -521,7 +521,7 @@
},
inputScript:
'416dc42feba5d75bba26f448afb3ae7d2d7b49cb6823397bf1c4bf00808a8716102838ec0631c8f941a439e8e6fd5aee62d695a21e3937899c5cf4e3d06fabcf4d412102c237f49dd4c812f27b09d69d4c8a4da12744fda8ad63ce151fed2a3f41fd8795',
- value: 274786076,
+ sats: 274786076n,
sequenceNo: 4294967295,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
@@ -529,7 +529,7 @@
],
outputs: [
{
- value: 4200,
+ sats: 4200n,
outputScript:
'76a91403b830e4b9dce347f3495431e1f9d1005f4b420488ac',
spentBy: {
@@ -538,7 +538,7 @@
},
},
{
- value: 274781657,
+ sats: 274781657n,
outputScript:
'76a91476458db0ed96fe9863fc1ccec9fa2cfab884b0f688ac',
spentBy: {
@@ -608,7 +608,7 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 546,
+ sats: 546n,
isFinal: false,
token: {
tokenId:
@@ -618,7 +618,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '30000',
+ atoms: 30000n,
isMintBaton: false,
},
path: 1899,
@@ -633,7 +633,7 @@
blockHeight: -1,
isCoinbase: false,
// Enough sats for the min buy in orderbook buy test
- value: 39016,
+ sats: 39016n,
isFinal: false,
path: 1899,
},
@@ -656,7 +656,7 @@
},
inputScript:
'416cf72fa0fa46369307d5a5320908c93283ba825384b12692f15968d840f82ff12c6a0a7e2983ff1d3a2273d075f1ca774d17dfe6af67b7e7ca77591401741a9941210233f09cd4dc3381162f09975f90866f085350a5ec890d7fba5f6739c9c0ac2afd',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -666,7 +666,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '70000',
+ atoms: 70000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -680,7 +680,7 @@
},
inputScript:
'413e9ebd5dcf4d0ee6faa85dd6250e12ce2c8c436122dcd3bcfa3570de219b1b54fec51a926f729c0ef651ee3e556252aea6ba2a0053eb1d10aba32c6ec3e7405341210233f09cd4dc3381162f09975f90866f085350a5ec890d7fba5f6739c9c0ac2afd',
- value: 8095,
+ sats: 8095n,
sequenceNo: 4294967295,
outputScript:
'76a91403b830e4b9dce347f3495431e1f9d1005f4b420488ac',
@@ -688,12 +688,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e4420aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1080000000000007530080000000000009c40',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914f208ef75eb0dd778ea4540cbd966a830c7b94bb088ac',
token: {
@@ -704,7 +704,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '30000',
+ atoms: 30000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -714,7 +714,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91403b830e4b9dce347f3495431e1f9d1005f4b420488ac',
token: {
@@ -725,13 +725,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '40000',
+ atoms: 40000n,
isMintBaton: false,
entryIdx: 0,
},
},
{
- value: 6610,
+ sats: 6610n,
outputScript:
'76a91403b830e4b9dce347f3495431e1f9d1005f4b420488ac',
spentBy: {
@@ -757,8 +757,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -809,7 +809,7 @@
},
inputScript:
'415a784d081e335d3289e85feaac7d2caff51a016071aa5112dc987269bc6376efb67e60932d9cb3e1713a3ed35caa1a516cfadac5947066bcc7a86d31af19df7e4121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 3170,
+ sats: 3170n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -821,7 +821,7 @@
},
inputScript:
'413795c48264e243bf51371dde61d377ff5682edd51fff810a4d17a37d7cc0a8214413e15964d0c10ca79c37061ef89dee5b8b95ac2ce047a99db270ab70393ee94121021d7fd45a888292cf3a022a95acdbcf82f9f2d5bbbfbdbc740acd558a9f25b5d0',
- value: 4246,
+ sats: 4246n,
sequenceNo: 4294967295,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
@@ -829,7 +829,7 @@
],
outputs: [
{
- value: 4200,
+ sats: 4200n,
outputScript:
'76a914f208ef75eb0dd778ea4540cbd966a830c7b94bb088ac',
spentBy: {
@@ -838,7 +838,7 @@
},
},
{
- value: 2492,
+ sats: 2492n,
outputScript:
'76a9140d94ba179ec21c42417a71a77873b3619363d8ea88ac',
spentBy: {
@@ -925,7 +925,7 @@
// CACHET candle created by Agora Partial Alpha
// Created by approx params offering 100, min 0.1, 10,000 XEC per CACHET
const agoraPartialCachetAlphaOne = new AgoraPartial({
- dustAmount: 546,
+ dustAmount: 546n,
enforcedLockTime: 1040365320,
minAcceptedScaledTruncTokens: 2147470n,
numSatsTruncBytes: 1,
@@ -946,7 +946,7 @@
},
status: 'OPEN',
token: {
- amount: '10000',
+ atoms: 10000n,
isMintBaton: false,
tokenId:
'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
@@ -963,7 +963,7 @@
},
signData: {
redeemScript: agoraPartialCachetAlphaOne.script(),
- value: 546,
+ sats: 546n,
},
},
variant: {
@@ -975,7 +975,7 @@
// CACHET candle created by Agora Partial Alpha
// Created by approx params offering 200, min 0.2, 1200 XEC per CACHET
const agoraPartialCachetAlphaTwo = new AgoraPartial({
- dustAmount: 546,
+ dustAmount: 546n,
enforcedLockTime: 1653017945,
minAcceptedScaledTruncTokens: 2147460n,
numSatsTruncBytes: 1,
@@ -996,7 +996,7 @@
},
status: 'OPEN',
token: {
- amount: '20000',
+ atoms: 20000n,
isMintBaton: false,
tokenId:
'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
@@ -1013,7 +1013,7 @@
},
signData: {
redeemScript: agoraPartialCachetAlphaTwo.script(),
- value: 546,
+ sats: 546n,
},
},
variant: {
@@ -1025,7 +1025,7 @@
// BULL candle created by Agora Partial Alpha
// Created by approx params offering 888, min 8, 50,000 XEC per BULL
const agoraPartialBullAlphaOne = new AgoraPartial({
- dustAmount: 546,
+ dustAmount: 546n,
enforcedLockTime: 1350463393,
minAcceptedScaledTruncTokens: 19346408n,
numSatsTruncBytes: 2,
@@ -1046,7 +1046,7 @@
},
status: 'OPEN',
token: {
- amount: '888',
+ atoms: 888n,
isMintBaton: false,
tokenId:
'01d63c4f4cb496829a6743f7b1805d086ea3877a1dd34b3f92ffba2c9c99f896',
@@ -1063,7 +1063,7 @@
},
signData: {
redeemScript: agoraPartialBullAlphaOne.script(),
- value: 546,
+ sats: 546n,
},
},
variant: {
@@ -1075,7 +1075,7 @@
// CACHET candle created by Agora Partial Beta
// Created by approx params offering 300, min 0.3, 12,000 XEC per CACHET
const agoraPartialCachetBetaOne = new AgoraPartial({
- dustAmount: 546,
+ dustAmount: 546n,
enforcedLockTime: 1075803086,
minAcceptedScaledTruncTokens: 2147460n,
numSatsTruncBytes: 1,
@@ -1096,7 +1096,7 @@
},
status: 'OPEN',
token: {
- amount: '30000',
+ atoms: 30000n,
isMintBaton: false,
tokenId:
'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
@@ -1114,7 +1114,7 @@
signData: {
// "redeemScript" key is calculated from the built AgoraPartial
redeemScript: agoraPartialCachetBetaOne.script(),
- value: 546,
+ sats: 546n,
},
},
variant: {
@@ -1127,7 +1127,7 @@
// CACHET candle created by Agora Partial Alpha
// Created by approx params offering 100, min 0.1, 10,000 XEC per CACHET
const agoraPartialCachetAlphaUnacceptable = new AgoraPartial({
- dustAmount: 546,
+ dustAmount: 546n,
enforcedLockTime: 1022658985,
minAcceptedScaledTruncTokens: 2225600000n,
numSatsTruncBytes: 0,
@@ -1148,7 +1148,7 @@
},
status: 'OPEN',
token: {
- amount: '10000000',
+ atoms: 10000000n,
isMintBaton: false,
tokenId:
'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
@@ -1165,7 +1165,7 @@
},
signData: {
redeemScript: agoraPartialCachetAlphaUnacceptable.script(),
- value: 546,
+ sats: 546n,
},
},
variant: {
@@ -1177,7 +1177,7 @@
// XECX candle created by Agora Partial Alpha
// Copied from real offer, min accept 96k XECX, lots of partial accepts already in
const agoraPartialXecxAlphaOne = new AgoraPartial({
- dustAmount: 546,
+ dustAmount: 546n,
enforcedLockTime: 1385162239,
minAcceptedScaledTruncTokens: 1875000n,
numSatsTruncBytes: 1,
@@ -1198,7 +1198,7 @@
},
status: 'OPEN',
token: {
- amount: '44873988352',
+ atoms: 44873988352n,
isMintBaton: false,
tokenId:
'c67bf5c2b6d91cfb46a5c1772582eff80d88686887be10aa63b0945479cf4ed4',
@@ -1215,7 +1215,7 @@
},
signData: {
redeemScript: agoraPartialXecxAlphaOne.script(),
- value: 546,
+ sats: 546n,
},
},
variant: {
@@ -1225,7 +1225,7 @@
});
export const scamAgoraPartial = new AgoraPartial({
- dustAmount: 546,
+ dustAmount: 546n,
enforcedLockTime: 1174486988,
minAcceptedScaledTruncTokens: 260100n,
numSatsTruncBytes: 1,
@@ -1247,7 +1247,7 @@
},
status: 'OPEN',
token: {
- amount: '825472',
+ atoms: 825472n,
isMintBaton: false,
tokenId:
'9c662233f8553e72ab3848a37d72fbc3f894611aae43033cde707213a537bba0',
@@ -1265,7 +1265,7 @@
signData: {
// "redeemScript" key is calculated from the built AgoraPartial
redeemScript: scamAgoraPartial.script(),
- value: 546,
+ sats: 546n,
},
},
variant: {
@@ -1308,7 +1308,7 @@
},
inputScript:
'4830450221009bb1fb7d49d9ac64b79ea041be2e2efa5a8709a470930b04c27c9fc46ed1906302206a0a9daf5e64e934a3467951dd2da37405969d4434d4006ddfea3ed39ff4e0ae412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 2200,
+ sats: 2200n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1316,12 +1316,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e4553495306434143484554064361636865741468747470733a2f2f636173687461622e636f6d2f4c0001020102080000000000989680',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -1332,7 +1332,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000000',
+ atoms: 10000000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1342,7 +1342,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -1353,7 +1353,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
@@ -1363,7 +1363,7 @@
},
},
{
- value: 773,
+ sats: 773n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
@@ -1389,8 +1389,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1437,7 +1437,7 @@
},
inputScript:
'47304402207801a307548c5ecccd6e37043bda5e96cb9d27c93e4e60deaff4344605f138b202201a7fd155a42171c4b3331425b3e708df4e9606edfd221b2e500e3fb6bb541f2b412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 981921,
+ sats: 981921n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1445,12 +1445,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e455349530442554c4c0442756c6c1468747470733a2f2f636173687461622e636f6d2f4c0001004c00080000000001406f40',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -1461,7 +1461,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '21000000',
+ atoms: 21000000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1471,7 +1471,7 @@
},
},
{
- value: 981078,
+ sats: 981078n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
@@ -1497,8 +1497,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1545,7 +1545,7 @@
},
inputScript:
'41c49a217049062d517dbf6884fc4d34c1e29b39e387782de7be7214fb3aefdea3f875e70cab2aacf570084a8332c89cf3c2fe01b43007cd35991a4d4f0dd403f9412103e8f234ebcc6d04a7046f53b2fae4c2dd2904de5da609632f50277b90af57a9d5',
- value: 4200,
+ sats: 4200n,
sequenceNo: 4294967295,
outputScript:
'76a914a774587b6a06e40bfe1731f1aa85f8e1f6771a1188ac',
@@ -1553,12 +1553,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e45534953034255581642616467657220556e6976657273616c20546f6b656e1368747470733a2f2f6275782e6469676974616c4c0001020102080000000000989680',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914a774587b6a06e40bfe1731f1aa85f8e1f6771a1188ac',
token: {
@@ -1569,7 +1569,7 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '10000000',
+ atoms: 10000000n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1579,7 +1579,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a914a774587b6a06e40bfe1731f1aa85f8e1f6771a1188ac',
token: {
@@ -1590,13 +1590,13 @@
type: 'SLP_TOKEN_TYPE_FUNGIBLE',
number: 1,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
},
{
- value: 2424,
+ sats: 2424n,
outputScript:
'76a914a774587b6a06e40bfe1731f1aa85f8e1f6771a1188ac',
spentBy: {
@@ -1622,8 +1622,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1672,7 +1672,7 @@
},
inputScript:
'417c385fcf803ce611628beaf13449e1781116dff0a822d7798fe63ead1c15076d9557e3ff45eee3861e0d7569430a5a12a0a1002ee41860572ade51e078139c4c412103e4d137b0fd6d8cfbb6aeb1d83c6cb33b19143e7faeacc1d79cf6f052dc56f650',
- value: 12544610190,
+ sats: 12544610190n,
sequenceNo: 4294967295,
outputScript:
'76a9149b487946ba24c1d61248ba992e3d533105cea14b88ac',
@@ -1680,12 +1680,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a504c57534c5032000747454e4553495304584543580a5374616b6564205845430d7374616b65645865632e636f6d002103e4d137b0fd6d8cfbb6aeb1d83c6cb33b19143e7faeacc1d79cf6f052dc56f65002010e21fdc39e0101',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9149b487946ba24c1d61248ba992e3d533105cea14b88ac',
token: {
@@ -1696,7 +1696,7 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '1781404606734',
+ atoms: 1781404606734n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1706,7 +1706,7 @@
},
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a9149b487946ba24c1d61248ba992e3d533105cea14b88ac',
token: {
@@ -1717,13 +1717,13 @@
type: 'ALP_TOKEN_TYPE_STANDARD',
number: 0,
},
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
entryIdx: 0,
},
},
{
- value: 12544608388,
+ sats: 12544608388n,
outputScript:
'76a9149b487946ba24c1d61248ba992e3d533105cea14b88ac',
spentBy: {
@@ -1749,8 +1749,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -1858,7 +1858,7 @@
const heismanNftOne = new AgoraOneshot({
enforcedOutputs: [
{
- value: 0n,
+ sats: 0n,
script: new Script(
fromHex(
'6a04534c500001410453454e4420be095430a16a024134bea079f235bcd2f79425c42659f9346416f626671f371c080000000000000000080000000000000001',
@@ -1866,7 +1866,7 @@
),
},
{
- value: 5000000000n,
+ sats: 5000000000n,
script: new Script(
fromHex('76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac'),
),
@@ -1887,10 +1887,10 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
} as TokenType,
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
- value: 546,
+ sats: 546n,
};
export const heismanNftOneOffer = new AgoraOffer({
variant: {
@@ -1902,7 +1902,7 @@
txBuilderInput: {
prevOut: heismanNftOneUtxo.outpoint,
signData: {
- value: heismanNftOneUtxo.value,
+ sats: heismanNftOneUtxo.sats,
redeemScript: heismanNftOne.script(),
},
},
@@ -1921,7 +1921,7 @@
},
inputScript:
'483045022100b485b532b1d5532791292d8168cba3549cf3f32df32436f0131d550c1187a77b02206898f4e113acbbdbab5ff3045b2e62624f5f66017caecb472c01b8fa83c35bcb412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -1931,7 +1931,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 1,
},
@@ -1945,7 +1945,7 @@
},
inputScript:
'47304402203be48792b013d852678f15c2e2980cca23345a99c5681b976a070cc9d3be1964022030f3f3ddc7bf3034cacb32925787fd925b1c978252db009cb74d03ac201bd404412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 32751479,
+ sats: 32751479n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -1953,12 +1953,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001410747454e45534953024c4b0c4c61727279204b656c6c65792a68747470733a2f2f656e2e77696b6970656469612e6f72672f77696b692f4c617272795f4b656c6c657920b90001b24f54d893a15d61e84eacaec86a025abf4da6b7f02f60a439a013dc2401004c00080000000000000001',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -1969,7 +1969,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
@@ -1979,7 +1979,7 @@
},
},
{
- value: 32750465,
+ sats: 32750465n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
@@ -2005,8 +2005,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
groupTokenId:
'd2bfffd48c289cd5d43920f4f95a88ac4b9572d39d54d874394682608f56bf4a',
@@ -2023,8 +2023,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -2108,7 +2108,7 @@
},
inputScript:
'483045022100eb2e68c7d02eda2dd64c22a079d832c5c85f34f1ced264cd3b37658d4cd0b89e02203e204cd625a05c8ba59291567bc14d0bfa193a9a37cbc00aec804a224dc910d1412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 32766028,
+ sats: 32766028n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -2116,12 +2116,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001810747454e455349530348534d0b54686520486569736d616e2c68747470733a2f2f656e2e77696b6970656469612e6f72672f77696b692f486569736d616e5f54726f7068792073229094743335d380cd7ce479fb38c9dfe77cdd97668aa0c4d9183855fcb97601004c00080000000000000059',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2132,7 +2132,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '89',
+ atoms: 89n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2142,7 +2142,7 @@
},
},
{
- value: 32764762,
+ sats: 32764762n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
@@ -2168,8 +2168,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
@@ -2217,7 +2217,7 @@
},
inputScript:
'483045022100b485b532b1d5532791292d8168cba3549cf3f32df32436f0131d550c1187a77b02206898f4e113acbbdbab5ff3045b2e62624f5f66017caecb472c01b8fa83c35bcb412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 546,
+ sats: 546n,
sequenceNo: 4294967295,
token: {
tokenId:
@@ -2227,7 +2227,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_GROUP',
number: 129,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 1,
},
@@ -2241,7 +2241,7 @@
},
inputScript:
'47304402203be48792b013d852678f15c2e2980cca23345a99c5681b976a070cc9d3be1964022030f3f3ddc7bf3034cacb32925787fd925b1c978252db009cb74d03ac201bd404412103771805b54969a9bea4e3eb14a82851c67592156ddb5e52d3d53677d14a40fba6',
- value: 32751479,
+ sats: 32751479n,
sequenceNo: 4294967295,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
@@ -2249,12 +2249,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001410747454e45534953024c4b0c4c61727279204b656c6c65792a68747470733a2f2f656e2e77696b6970656469612e6f72672f77696b692f4c617272795f4b656c6c657920b90001b24f54d893a15d61e84eacaec86a025abf4da6b7f02f60a439a013dc2401004c00080000000000000001',
},
{
- value: 546,
+ sats: 546n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
token: {
@@ -2265,7 +2265,7 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
entryIdx: 0,
},
@@ -2275,7 +2275,7 @@
},
},
{
- value: 32750465,
+ sats: 32750465n,
outputScript:
'76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac',
spentBy: {
@@ -2301,8 +2301,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
groupTokenId:
'd2bfffd48c289cd5d43920f4f95a88ac4b9572d39d54d874394682608f56bf4a',
@@ -2319,8 +2319,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
},
],
diff --git a/cashtab/src/components/Airdrop/__tests__/Airdrop.test.js b/cashtab/src/components/Airdrop/__tests__/Airdrop.test.js
--- a/cashtab/src/components/Airdrop/__tests__/Airdrop.test.js
+++ b/cashtab/src/components/Airdrop/__tests__/Airdrop.test.js
@@ -114,6 +114,8 @@
screen.getByRole('button', { name: /Calculate Airdrop/ }),
);
+ screen.debug(null, Infinity);
+
expect(
await screen.findByText('One to Many Airdrop Payment Outputs'),
).toBeInTheDocument();
@@ -194,7 +196,7 @@
].join('\n'),
);
});
- it('We can ignore addresses with less than a token balance for a token with decimals', async () => {
+ it.only('We can ignore addresses with less than a token balance for a token with decimals', async () => {
// Mock the app with context at the Send screen
const mockedChronik = await initializeCashtabStateForTests(
walletWithXecAndTokens,
@@ -350,7 +352,7 @@
const mockToken = {
tokenId: airdropTokenId,
tokenType: mockTokenType,
- amount: '100',
+ atoms: 100n,
isMintBaton: false,
};
// Mock p2pkh holder
@@ -359,7 +361,7 @@
blockHeight: 800000,
isCoinbase: false,
script: '76a91400cd590bfb90b6dc1725530d6c36c78b88ddb60888ac',
- value: 546,
+ sats: 546n,
isFinal: true,
token: mockToken,
};
diff --git a/chronik/bitcoinsuite-core/src/tx/tx.rs b/chronik/bitcoinsuite-core/src/tx/tx.rs
--- a/chronik/bitcoinsuite-core/src/tx/tx.rs
+++ b/chronik/bitcoinsuite-core/src/tx/tx.rs
@@ -95,7 +95,7 @@
#[derive(Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct TxOutput {
/// Value of the output.
- pub value: i64,
+ pub sats: i64,
/// Script locking the output.
pub script: Script,
}
@@ -238,13 +238,13 @@
impl BitcoinSer for TxOutput {
fn ser_to<S: BitcoinSerializer>(&self, bytes: &mut S) {
- self.value.ser_to(bytes);
+ self.sats.ser_to(bytes);
self.script.ser_to(bytes);
}
fn deser(data: &mut bytes::Bytes) -> Result<Self, DataError> {
Ok(TxOutput {
- value: BitcoinSer::deser(data)?,
+ sats: BitcoinSer::deser(data)?,
script: BitcoinSer::deser(data)?,
})
}
@@ -304,7 +304,7 @@
coin: None,
}],
outputs: vec![TxOutput {
- value: 5000000000,
+ sats: 5000000000,
script: Script::new(
hex::decode(
"4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a679\
diff --git a/chronik/bitcoinsuite-slp/src/alp/build.rs b/chronik/bitcoinsuite-slp/src/alp/build.rs
--- a/chronik/bitcoinsuite-slp/src/alp/build.rs
+++ b/chronik/bitcoinsuite-slp/src/alp/build.rs
@@ -11,7 +11,7 @@
alp::consts::ALP_LOKAD_ID,
consts::{BURN, GENESIS, MINT, SEND},
parsed::ParsedMintData,
- structs::{Amount, GenesisInfo},
+ structs::{Atoms, GenesisInfo},
token_id::TokenId,
token_type::AlpTokenType,
};
@@ -81,7 +81,7 @@
pub fn burn_section(
token_id: &TokenId,
token_type: AlpTokenType,
- amount: Amount,
+ atoms: Atoms,
) -> Bytes {
let mut section = BytesMut::new();
section.put_slice(&ALP_LOKAD_ID);
@@ -89,15 +89,15 @@
section.put_slice(&[BURN.len() as u8]);
section.put_slice(BURN);
section.put_slice(token_id.txid().hash().as_le_bytes());
- put_amount(&mut section, amount);
+ put_atoms(&mut section, atoms);
section.freeze()
}
/// Build an ALP SEND pushdata section
-pub fn send_section<I: ExactSizeIterator<Item = Amount>>(
+pub fn send_section<I: ExactSizeIterator<Item = Atoms>>(
token_id: &TokenId,
token_type: AlpTokenType,
- send_amounts: impl IntoIterator<Item = Amount, IntoIter = I>,
+ send_amounts: impl IntoIterator<Item = Atoms, IntoIter = I>,
) -> Bytes {
let mut section = BytesMut::new();
section.put_slice(&ALP_LOKAD_ID);
@@ -109,19 +109,19 @@
let send_amounts = send_amounts.into_iter();
section.put_slice(&[send_amounts.len() as u8]);
for send_amount in send_amounts {
- put_amount(&mut section, send_amount);
+ put_atoms(&mut section, send_amount);
}
section.freeze()
}
fn put_mint_data(section: &mut BytesMut, mint_data: &ParsedMintData) {
section.put_slice(&[mint_data.amounts.len() as u8]);
- for &amount in &mint_data.amounts {
- put_amount(section, amount);
+ for &atoms in &mint_data.amounts {
+ put_atoms(section, atoms);
}
section.put_slice(&[mint_data.num_batons as u8]);
}
-fn put_amount(section: &mut BytesMut, amount: Amount) {
- section.put_slice(&amount.to_le_bytes()[..6]);
+fn put_atoms(section: &mut BytesMut, atoms: Atoms) {
+ section.put_slice(&atoms.to_le_bytes()[..6]);
}
diff --git a/chronik/bitcoinsuite-slp/src/alp/parse.rs b/chronik/bitcoinsuite-slp/src/alp/parse.rs
--- a/chronik/bitcoinsuite-slp/src/alp/parse.rs
+++ b/chronik/bitcoinsuite-slp/src/alp/parse.rs
@@ -19,7 +19,7 @@
lokad_id::LokadId,
parsed::{ParsedData, ParsedGenesis, ParsedMintData, ParsedTxType},
slp::consts::SLP_LOKAD_ID,
- structs::{Amount, GenesisInfo, TokenMeta},
+ structs::{Atoms, GenesisInfo, TokenMeta},
token_id::TokenId,
token_type::{AlpTokenType, TokenType},
};
@@ -283,14 +283,14 @@
Ok(size.into())
}
-fn read_amount(pushdata: &mut Bytes) -> Result<Amount, ParseError> {
+fn read_amount(pushdata: &mut Bytes) -> Result<Atoms, ParseError> {
let amount6: [u8; 6] = read_array(pushdata)?;
let mut amount = [0u8; 8];
amount[..6].copy_from_slice(&amount6);
- Ok(Amount::from_le_bytes(amount))
+ Ok(Atoms::from_le_bytes(amount))
}
-fn read_amounts(pushdata: &mut Bytes) -> Result<Vec<Amount>, ParseError> {
+fn read_amounts(pushdata: &mut Bytes) -> Result<Vec<Atoms>, ParseError> {
let size = read_size(pushdata)?;
let mut amounts = Vec::with_capacity(size);
for _ in 0..size {
diff --git a/chronik/bitcoinsuite-slp/src/burn_summary.rs b/chronik/bitcoinsuite-slp/src/burn_summary.rs
--- a/chronik/bitcoinsuite-slp/src/burn_summary.rs
+++ b/chronik/bitcoinsuite-slp/src/burn_summary.rs
@@ -13,10 +13,10 @@
// Burning MINT batons can never be intentional
return true;
}
- if let Some(intentional_burn_amount) = self.intentional_burn_amount {
- intentional_burn_amount as u128 != self.actual_burn_amount
+ if let Some(intentional_burn_atoms) = self.intentional_burn_atoms {
+ intentional_burn_atoms as u128 != self.actual_burn_atoms
} else {
- self.actual_burn_amount > 0
+ self.actual_burn_atoms > 0
}
}
@@ -35,16 +35,14 @@
/// Create a human-readable summary of the burns of this entry.
pub fn burn_summary(&self) -> String {
if self.is_normal() {
- if let Some(burn_amount) = self.intentional_burn_amount {
- return format!(
- "OK: Intentional burn of {burn_amount} base tokens"
- );
+ if let Some(burn_atoms) = self.intentional_burn_atoms {
+ return format!("OK: Intentional burn of {burn_atoms} atoms");
} else {
return "OK: No burn".to_string();
}
}
let any_actual_burn =
- self.burns_mint_batons || self.actual_burn_amount != 0;
+ self.burns_mint_batons || self.actual_burn_atoms != 0;
if !any_actual_burn
&& (self.burn_error.is_some() || !self.failed_colorings.is_empty())
{
@@ -67,44 +65,38 @@
let mut s = "Unexpected burn: ".to_string();
if self.burns_mint_batons {
s.push_str("Burns mint baton(s)");
- if self.actual_burn_amount > 0 {
- s.push_str(&format!(
- " and {} base tokens",
- self.actual_burn_amount,
- ));
+ if self.actual_burn_atoms > 0 {
+ s.push_str(&format!(" and {} atoms", self.actual_burn_atoms,));
}
- } else if self.actual_burn_amount > 0 {
- s.push_str(&format!(
- "Burns {} base tokens",
- self.actual_burn_amount,
- ));
+ } else if self.actual_burn_atoms > 0 {
+ s.push_str(&format!("Burns {} atoms", self.actual_burn_atoms,));
}
- if let Some(intentional_burn_amount) = self.intentional_burn_amount {
- if self.actual_burn_amount > 0 {
+ if let Some(intentional_burn_atoms) = self.intentional_burn_atoms {
+ if self.actual_burn_atoms > 0 {
s.push_str(&format!(
- ", but intended to burn {intentional_burn_amount}"
+ ", but intended to burn {intentional_burn_atoms}"
));
- let intentional_burn_amount = intentional_burn_amount as u128;
- if intentional_burn_amount > self.actual_burn_amount {
+ let intentional_burn_atoms = intentional_burn_atoms as u128;
+ if intentional_burn_atoms > self.actual_burn_atoms {
s.push_str(&format!(
"; burned {} too few",
- intentional_burn_amount - self.actual_burn_amount
+ intentional_burn_atoms - self.actual_burn_atoms
));
} else {
s.push_str(&format!(
"; burned {} too many",
- self.actual_burn_amount - intentional_burn_amount
+ self.actual_burn_atoms - intentional_burn_atoms
));
}
} else if self.burns_mint_batons {
s.push_str(&format!(
- "; expected {intentional_burn_amount} base tokens to be \
- burned instead"
+ "; expected {intentional_burn_atoms} atoms to be burned \
+ instead"
));
} else {
s.push_str(&format!(
- "Expected {intentional_burn_amount} base tokens to be \
- burned, but none found"
+ "Expected {intentional_burn_atoms} atoms to be burned, \
+ but none found"
));
}
}
@@ -133,7 +125,7 @@
use crate::{
alp::{burn_section, sections_opreturn, send_section},
test_helpers::{
- empty_entry, meta_alp, spent_amount, spent_baton, verify, TOKEN_ID1,
+ empty_entry, meta_alp, spent_atoms, spent_baton, verify, TOKEN_ID1,
},
token_tx::TokenTxEntry,
token_type::AlpTokenType::*,
@@ -144,12 +136,12 @@
assert_str_eq!(empty_entry().burn_summary(), "OK: No burn");
assert_str_eq!(
TokenTxEntry {
- actual_burn_amount: 1234,
- intentional_burn_amount: Some(1234),
+ actual_burn_atoms: 1234,
+ intentional_burn_atoms: Some(1234),
..empty_entry()
}
.burn_summary(),
- "OK: Intentional burn of 1234 base tokens",
+ "OK: Intentional burn of 1234 atoms",
);
}
@@ -185,12 +177,12 @@
);
assert_str_eq!(
TokenTxEntry {
- actual_burn_amount: 1234,
+ actual_burn_atoms: 1234,
burns_mint_batons: true,
..empty_entry()
}
.burn_summary(),
- "Unexpected burn: Burns mint baton(s) and 1234 base tokens",
+ "Unexpected burn: Burns mint baton(s) and 1234 atoms",
);
}
@@ -198,11 +190,11 @@
fn test_burn_summary_burns_tokens() {
assert_str_eq!(
TokenTxEntry {
- actual_burn_amount: 1234,
+ actual_burn_atoms: 1234,
..empty_entry()
}
.burn_summary(),
- "Unexpected burn: Burns 1234 base tokens",
+ "Unexpected burn: Burns 1234 atoms",
);
}
@@ -210,52 +202,51 @@
fn test_burn_summary_wrong_intentional_burn() {
assert_str_eq!(
TokenTxEntry {
- actual_burn_amount: 1000,
- intentional_burn_amount: Some(3000),
+ actual_burn_atoms: 1000,
+ intentional_burn_atoms: Some(3000),
..empty_entry()
}
.burn_summary(),
- "Unexpected burn: Burns 1000 base tokens, but intended to burn \
- 3000; burned 2000 too few",
+ "Unexpected burn: Burns 1000 atoms, but intended to burn 3000; \
+ burned 2000 too few",
);
assert_str_eq!(
TokenTxEntry {
- actual_burn_amount: 3000,
- intentional_burn_amount: Some(1000),
+ actual_burn_atoms: 3000,
+ intentional_burn_atoms: Some(1000),
..empty_entry()
}
.burn_summary(),
- "Unexpected burn: Burns 3000 base tokens, but intended to burn \
- 1000; burned 2000 too many",
+ "Unexpected burn: Burns 3000 atoms, but intended to burn 1000; \
+ burned 2000 too many",
);
assert_str_eq!(
TokenTxEntry {
- intentional_burn_amount: Some(1000),
+ intentional_burn_atoms: Some(1000),
..empty_entry()
}
.burn_summary(),
- "Unexpected burn: Expected 1000 base tokens to be burned, but \
- none found",
+ "Unexpected burn: Expected 1000 atoms to be burned, but none found",
);
assert_str_eq!(
TokenTxEntry {
- intentional_burn_amount: Some(1000),
+ intentional_burn_atoms: Some(1000),
burns_mint_batons: true,
..empty_entry()
}
.burn_summary(),
- "Unexpected burn: Burns mint baton(s); expected 1000 base tokens \
- to be burned instead",
+ "Unexpected burn: Burns mint baton(s); expected 1000 atoms to be \
+ burned instead",
);
assert_str_eq!(
TokenTxEntry {
- actual_burn_amount: 3000,
- intentional_burn_amount: Some(1000),
+ actual_burn_atoms: 3000,
+ intentional_burn_atoms: Some(1000),
burns_mint_batons: true,
..empty_entry()
}
.burn_summary(),
- "Unexpected burn: Burns mint baton(s) and 3000 base tokens, but \
+ "Unexpected burn: Burns mint baton(s) and 3000 atoms, but \
intended to burn 1000; burned 2000 too many",
);
}
@@ -269,14 +260,14 @@
send_section(&TOKEN_ID1, Standard, [1, 2, 3, 4, 5]),
send_section(&TOKEN_ID1, Standard, [1, 2]),
]),
- &[spent_amount(meta_alp(TOKEN_ID1), 2)],
+ &[spent_atoms(meta_alp(TOKEN_ID1), 2)],
)
.entries[0]
.burn_summary(),
- "Unexpected burn: Burns 2 base tokens. Reason(s): Invalid \
- coloring at pushdata idx 0: Too few outputs, expected 4 but got \
- 3. Invalid coloring at pushdata idx 1: Too few outputs, expected \
- 6 but got 3. Insufficient token input output sum: 2 < 3",
+ "Unexpected burn: Burns 2 atoms. Reason(s): Invalid coloring at \
+ pushdata idx 0: Too few outputs, expected 4 but got 3. Invalid \
+ coloring at pushdata idx 1: Too few outputs, expected 6 but got \
+ 3. Insufficient token input output sum: 2 < 3",
);
assert_str_eq!(
verify::<2>(
@@ -286,16 +277,16 @@
burn_section(&TOKEN_ID1, Standard, 5),
]),
&[
- spent_amount(meta_alp(TOKEN_ID1), 2),
+ spent_atoms(meta_alp(TOKEN_ID1), 2),
spent_baton(meta_alp(TOKEN_ID1)),
],
)
.entries[0]
.burn_summary(),
- "Unexpected burn: Burns mint baton(s) and 2 base tokens, but \
- intended to burn 5; burned 3 too few. Reason(s): Invalid \
- coloring at pushdata idx 0: Too few outputs, expected 4 but got \
- 3. Insufficient token input output sum: 2 < 3",
+ "Unexpected burn: Burns mint baton(s) and 2 atoms, but intended \
+ to burn 5; burned 3 too few. Reason(s): Invalid coloring at \
+ pushdata idx 0: Too few outputs, expected 4 but got 3. \
+ Insufficient token input output sum: 2 < 3",
);
}
}
diff --git a/chronik/bitcoinsuite-slp/src/color.rs b/chronik/bitcoinsuite-slp/src/color.rs
--- a/chronik/bitcoinsuite-slp/src/color.rs
+++ b/chronik/bitcoinsuite-slp/src/color.rs
@@ -15,8 +15,7 @@
parsed::{ParsedData, ParsedGenesis, ParsedMintData, ParsedTxType},
slp,
structs::{
- Amount, GenesisInfo, Token, TokenMeta, TokenOutput, TokenVariant,
- TxType,
+ Atoms, GenesisInfo, Token, TokenMeta, TokenOutput, TokenVariant, TxType,
},
token_id::TokenId,
token_type::{SlpTokenType, TokenType},
@@ -103,7 +102,7 @@
/// Which token meta should be burned
pub meta: TokenMeta,
/// How many tokens should be burned
- pub amount: Amount,
+ pub atoms: Atoms,
}
/// Error when trying to color a parsed section.
@@ -164,16 +163,16 @@
/// Outputs cannot be colored twice by different sections
#[error(
- "Overlapping amount when trying to color {amount} at index \
+ "Overlapping atoms when trying to color {atoms} at index \
{output_idx}, output is already colored with {prev_token}"
)]
- OverlappingAmount {
+ OverlappingAtoms {
/// Previous token the output is already colored with
prev_token: Token,
/// Index of the output that we tried to color twice
output_idx: usize,
/// Amount that tried to color an output twice
- amount: Amount,
+ atoms: Atoms,
},
/// Outputs cannot be colored twice by different sections
@@ -328,7 +327,7 @@
}
ParsedTxType::Mint(mint) => self.color_mint(meta, mint),
ParsedTxType::Send(send) => self.color_send(meta, send),
- ParsedTxType::Burn(amount) => self.color_burn(meta, amount),
+ ParsedTxType::Burn(burn) => self.color_burn(meta, burn),
ParsedTxType::Unknown => self.color_unknown(meta),
}
}
@@ -384,16 +383,16 @@
let mut out_of_range_idx = None;
// Verify no outputs have been colored already
- for (output_idx, &amount) in
+ for (output_idx, &atoms) in
mint_data.amounts_range().zip(&mint_data.amounts)
{
- if amount != 0 {
+ if atoms != 0 {
match self.outputs.get(output_idx) {
Some(Some(token)) => {
- return Err(OverlappingAmount {
+ return Err(OverlappingAtoms {
prev_token: self.token(token),
output_idx,
- amount,
+ atoms,
});
}
Some(None) => {}
@@ -425,16 +424,16 @@
}
// Now, color all outputs
- for (output_idx, &amount) in
+ for (output_idx, &atoms) in
mint_data.amounts_range().zip(&mint_data.amounts)
{
if output_idx >= self.outputs.len() {
break;
}
- if amount > 0 {
+ if atoms > 0 {
self.outputs[output_idx] = Some(TokenOutput {
token_idx,
- variant: TokenVariant::Amount(amount),
+ variant: TokenVariant::Atoms(atoms),
});
}
}
@@ -454,18 +453,18 @@
fn color_send(
&mut self,
meta: TokenMeta,
- amounts: Vec<Amount>,
+ atoms: Vec<Atoms>,
) -> Result<(), ColorError> {
// Verify no outputs have been colored already
let mut out_of_range_idx = None;
- for (idx, &amount) in amounts.iter().enumerate() {
- if amount != 0 {
+ for (idx, &atoms) in atoms.iter().enumerate() {
+ if atoms != 0 {
match self.outputs.get(idx + 1) {
Some(Some(token)) => {
- return Err(OverlappingAmount {
+ return Err(OverlappingAtoms {
prev_token: self.token(token),
output_idx: idx + 1,
- amount,
+ atoms,
})
}
Some(None) => {}
@@ -486,15 +485,15 @@
// Color outputs and also calculate the required input sum
let mut required_input_sum = 0u128;
- for (idx, &amount) in amounts.iter().enumerate() {
- if amount == 0 {
+ for (idx, &atoms) in atoms.iter().enumerate() {
+ if atoms == 0 {
continue;
}
- required_input_sum += u128::from(amount);
+ required_input_sum += u128::from(atoms);
if let Some(output) = self.outputs.get_mut(idx + 1) {
*output = Some(TokenOutput {
token_idx: self.sections.len(),
- variant: TokenVariant::Amount(amount),
+ variant: TokenVariant::Atoms(atoms),
});
}
}
@@ -512,7 +511,7 @@
fn color_burn(
&mut self,
meta: TokenMeta,
- amount: Amount,
+ atoms: Atoms,
) -> Result<(), ColorError> {
for (prev_burn_idx, prev_burn) in
self.intentional_burns.iter().enumerate()
@@ -525,8 +524,7 @@
});
}
}
- self.intentional_burns
- .push(IntentionalBurn { meta, amount });
+ self.intentional_burns.push(IntentionalBurn { meta, atoms });
Ok(())
}
diff --git a/chronik/bitcoinsuite-slp/src/lokad_id.rs b/chronik/bitcoinsuite-slp/src/lokad_id.rs
--- a/chronik/bitcoinsuite-slp/src/lokad_id.rs
+++ b/chronik/bitcoinsuite-slp/src/lokad_id.rs
@@ -256,12 +256,12 @@
outputs: vec![
TxOutput {
script: script(b"\x6a\x046789\x04yyyy"),
- value: 0,
+ sats: 0,
},
// Ignored: OP_RETURN must be first
TxOutput {
script: script(b"\x6a\x04zzzz"),
- value: 0,
+ sats: 0,
},
],
locktime: 0,
@@ -278,7 +278,7 @@
}],
outputs: vec![TxOutput {
script: script(b"\x6a\x50\x046789\x044321"),
- value: 0,
+ sats: 0,
}],
locktime: 0,
})
diff --git a/chronik/bitcoinsuite-slp/src/parsed.rs b/chronik/bitcoinsuite-slp/src/parsed.rs
--- a/chronik/bitcoinsuite-slp/src/parsed.rs
+++ b/chronik/bitcoinsuite-slp/src/parsed.rs
@@ -6,7 +6,7 @@
use std::ops::Range;
-use crate::structs::{Amount, GenesisInfo, TokenMeta, TxType};
+use crate::structs::{Atoms, GenesisInfo, TokenMeta, TxType};
/// Parsed data from SLP or ALP.
/// For SLP, this is from parsing an entire `OP_RETURN`.
@@ -28,9 +28,9 @@
/// Parsed MINT tx with mint data
Mint(ParsedMintData),
/// Parsed SEND tx with send amounts
- Send(Vec<Amount>),
+ Send(Vec<Atoms>),
/// Parsed BURN tx with the burned amount
- Burn(Amount),
+ Burn(Atoms),
/// Parsed unknown token type
Unknown,
}
@@ -47,9 +47,10 @@
/// Mint data of a GENESIS or MINT tx
#[derive(Clone, Debug, Default, Eq, Hash, PartialEq)]
pub struct ParsedMintData {
- /// List of amounts to be minted by this tx, each having their own tx
- /// output
- pub amounts: Vec<Amount>,
+ /// List of amounts (in atoms) to be minted by this tx, each having their
+ /// own tx output. NB this is useful to leave as "amounts" because
+ /// "atoms" is already plural.
+ pub amounts: Vec<Atoms>,
/// Number of mint batons to create, each having their own tx output
pub num_batons: usize,
}
diff --git a/chronik/bitcoinsuite-slp/src/slp/build.rs b/chronik/bitcoinsuite-slp/src/slp/build.rs
--- a/chronik/bitcoinsuite-slp/src/slp/build.rs
+++ b/chronik/bitcoinsuite-slp/src/slp/build.rs
@@ -13,7 +13,7 @@
SLP_LOKAD_ID, TOKEN_TYPE_V1, TOKEN_TYPE_V1_NFT1_CHILD,
TOKEN_TYPE_V1_NFT1_GROUP, TOKEN_TYPE_V2,
},
- structs::{Amount, GenesisInfo},
+ structs::{Atoms, GenesisInfo},
token_id::TokenId,
token_type::SlpTokenType,
};
@@ -35,7 +35,7 @@
genesis_info: &GenesisInfo,
token_type: SlpTokenType,
mint_baton_out_idx: Option<u8>,
- initial_quantity: Amount,
+ initial_quantity: Atoms,
) -> Script {
let mut script = ScriptMut::with_capacity(64);
script.put_opcodes([OP_RETURN]);
@@ -71,7 +71,7 @@
token_id: &TokenId,
token_type: SlpTokenType,
mint_baton_out_idx: Option<u8>,
- additional_quantity: Amount,
+ additional_quantity: Atoms,
) -> Script {
let mut script = ScriptMut::with_capacity(64);
script.put_opcodes([OP_RETURN]);
@@ -90,7 +90,7 @@
/// Build an SLP OP_RETURN MINT script for V2 MintVault
pub fn mint_vault_opreturn(
token_id: &TokenId,
- additional_quantites: impl IntoIterator<Item = Amount>,
+ additional_quantites: impl IntoIterator<Item = Atoms>,
) -> Script {
let mut script = ScriptMut::with_capacity(64);
script.put_opcodes([OP_RETURN]);
@@ -108,7 +108,7 @@
pub fn send_opreturn(
token_id: &TokenId,
token_type: SlpTokenType,
- send_amounts: &[Amount],
+ send_atoms: &[Atoms],
) -> Script {
let mut script = ScriptMut::with_capacity(64);
script.put_opcodes([OP_RETURN]);
@@ -116,8 +116,8 @@
script.put_slp_pushdata(token_type_bytes(token_type));
script.put_slp_pushdata(SEND);
script.put_slp_pushdata(&token_id.to_be_bytes());
- for &amount in send_amounts {
- script.put_slp_pushdata(&amount.to_be_bytes());
+ for &atoms in send_atoms {
+ script.put_slp_pushdata(&atoms.to_be_bytes());
}
script.freeze()
}
@@ -126,7 +126,7 @@
pub fn burn_opreturn(
token_id: &TokenId,
token_type: SlpTokenType,
- burn_amount: Amount,
+ burn_atoms: Atoms,
) -> Script {
let mut script = ScriptMut::with_capacity(1 + 5 + 2 + 5 + 33 + 9);
script.put_opcodes([OP_RETURN]);
@@ -134,6 +134,6 @@
script.put_slp_pushdata(token_type_bytes(token_type));
script.put_slp_pushdata(BURN);
script.put_slp_pushdata(&token_id.to_be_bytes());
- script.put_slp_pushdata(&burn_amount.to_be_bytes());
+ script.put_slp_pushdata(&burn_atoms.to_be_bytes());
script.freeze()
}
diff --git a/chronik/bitcoinsuite-slp/src/slp/burn.rs b/chronik/bitcoinsuite-slp/src/slp/burn.rs
--- a/chronik/bitcoinsuite-slp/src/slp/burn.rs
+++ b/chronik/bitcoinsuite-slp/src/slp/burn.rs
@@ -7,7 +7,7 @@
use crate::{
parsed::{ParsedData, ParsedTxType},
slp::{
- common::{parse_amount, parse_token_id},
+ common::{parse_atoms, parse_token_id},
ParseError,
},
structs::TokenMeta,
@@ -33,7 +33,7 @@
let token_burn_quantity = data_iter.next().unwrap();
let token_burn_quantity =
- parse_amount(&token_burn_quantity, "token_burn_quantity")?;
+ parse_atoms(&token_burn_quantity, "token_burn_quantity")?;
Ok(ParsedData {
meta: TokenMeta {
diff --git a/chronik/bitcoinsuite-slp/src/slp/common.rs b/chronik/bitcoinsuite-slp/src/slp/common.rs
--- a/chronik/bitcoinsuite-slp/src/slp/common.rs
+++ b/chronik/bitcoinsuite-slp/src/slp/common.rs
@@ -2,17 +2,17 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
-use crate::{slp::ParseError, structs::Amount, token_id::TokenId};
+use crate::{slp::ParseError, structs::Atoms, token_id::TokenId};
-pub(crate) fn parse_amount(
- amount_bytes: &[u8],
+pub(crate) fn parse_atoms(
+ atoms_bytes: &[u8],
field_name: &'static str,
-) -> Result<Amount, ParseError> {
- Ok(Amount::from_be_bytes(amount_bytes.try_into().map_err(
+) -> Result<Atoms, ParseError> {
+ Ok(Atoms::from_be_bytes(atoms_bytes.try_into().map_err(
|_| ParseError::InvalidFieldSize {
field_name,
expected: &[8],
- actual: amount_bytes.len(),
+ actual: atoms_bytes.len(),
},
)?))
}
diff --git a/chronik/bitcoinsuite-slp/src/slp/error.rs b/chronik/bitcoinsuite-slp/src/slp/error.rs
--- a/chronik/bitcoinsuite-slp/src/slp/error.rs
+++ b/chronik/bitcoinsuite-slp/src/slp/error.rs
@@ -6,7 +6,7 @@
use bytes::Bytes;
use thiserror::Error;
-use crate::structs::Amount;
+use crate::structs::Atoms;
/// Errors when parsing a SLP tx.
#[derive(Clone, Debug, Error, Eq, PartialEq)]
@@ -95,7 +95,7 @@
#[error(
"Invalid NFT1 Child GENESIS initial quantity, expected 1 but got {0}"
)]
- Nft1ChildInvalidInitialQuantity(Amount),
+ Nft1ChildInvalidInitialQuantity(Atoms),
/// NFT1 Child GENESIS must have 0 decimals
#[error("Invalid NFT1 Child GENESIS decimals, expected 0 but got {0}")]
diff --git a/chronik/bitcoinsuite-slp/src/slp/genesis.rs b/chronik/bitcoinsuite-slp/src/slp/genesis.rs
--- a/chronik/bitcoinsuite-slp/src/slp/genesis.rs
+++ b/chronik/bitcoinsuite-slp/src/slp/genesis.rs
@@ -10,7 +10,7 @@
use crate::{
parsed::{ParsedData, ParsedGenesis, ParsedMintData, ParsedTxType},
- slp::{common::parse_amount, ParseError},
+ slp::{common::parse_atoms, ParseError},
structs::{GenesisInfo, TokenMeta},
token_id::TokenId,
token_type::{SlpTokenType, TokenType},
@@ -60,7 +60,7 @@
});
}
let mint_field = parse_mint_field(token_type, &mint_field)?;
- let initial_quantity = parse_amount(&initial_quantity, "initial_quantity")?;
+ let initial_quantity = parse_atoms(&initial_quantity, "initial_quantity")?;
if decimals[0] > 9 {
return Err(ParseError::InvalidDecimals {
actual: decimals[0] as usize,
diff --git a/chronik/bitcoinsuite-slp/src/slp/mint.rs b/chronik/bitcoinsuite-slp/src/slp/mint.rs
--- a/chronik/bitcoinsuite-slp/src/slp/mint.rs
+++ b/chronik/bitcoinsuite-slp/src/slp/mint.rs
@@ -7,7 +7,7 @@
use crate::{
parsed::{ParsedData, ParsedMintData, ParsedTxType},
slp::{
- common::{parse_amount, parse_token_id},
+ common::{parse_atoms, parse_token_id},
ParseError,
},
structs::TokenMeta,
@@ -49,7 +49,7 @@
let additional_quantity = data_iter.next().unwrap();
assert!(data_iter.next().is_none());
let additional_quantity =
- parse_amount(&additional_quantity, "additional_quantity")?;
+ parse_atoms(&additional_quantity, "additional_quantity")?;
let mut amounts = vec![additional_quantity];
if let Some(mint_baton_out_idx) = mint_baton_out_idx {
diff --git a/chronik/bitcoinsuite-slp/src/slp/mint_vault.rs b/chronik/bitcoinsuite-slp/src/slp/mint_vault.rs
--- a/chronik/bitcoinsuite-slp/src/slp/mint_vault.rs
+++ b/chronik/bitcoinsuite-slp/src/slp/mint_vault.rs
@@ -9,7 +9,7 @@
use crate::{
parsed::{ParsedData, ParsedMintData, ParsedTxType},
slp::{
- common::{parse_amount, parse_token_id},
+ common::{parse_atoms, parse_token_id},
ParseError,
},
structs::TokenMeta,
@@ -65,7 +65,7 @@
let amounts = data_iter
.enumerate()
.map(|(idx, quantity)| {
- parse_amount(&quantity, ADDITIONAL_QUANTITY_FIELD_NAMES[idx])
+ parse_atoms(&quantity, ADDITIONAL_QUANTITY_FIELD_NAMES[idx])
})
.collect::<Result<Vec<_>, _>>()?;
diff --git a/chronik/bitcoinsuite-slp/src/slp/send.rs b/chronik/bitcoinsuite-slp/src/slp/send.rs
--- a/chronik/bitcoinsuite-slp/src/slp/send.rs
+++ b/chronik/bitcoinsuite-slp/src/slp/send.rs
@@ -9,7 +9,7 @@
use crate::{
parsed::{ParsedData, ParsedTxType},
slp::{
- common::{parse_amount, parse_token_id},
+ common::{parse_atoms, parse_token_id},
ParseError,
},
structs::TokenMeta,
@@ -66,7 +66,7 @@
let output_quantities = data_iter
.enumerate()
.map(|(idx, quantity)| {
- parse_amount(&quantity, TOKEN_OUTPUT_QUANTITY_FIELD_NAMES[idx])
+ parse_atoms(&quantity, TOKEN_OUTPUT_QUANTITY_FIELD_NAMES[idx])
})
.collect::<Result<Vec<_>, _>>()?;
diff --git a/chronik/bitcoinsuite-slp/src/structs.rs b/chronik/bitcoinsuite-slp/src/structs.rs
--- a/chronik/bitcoinsuite-slp/src/structs.rs
+++ b/chronik/bitcoinsuite-slp/src/structs.rs
@@ -10,8 +10,8 @@
use crate::{token_id::TokenId, token_type::TokenType};
-/// SLP or ALP amount
-pub type Amount = u64;
+/// SLP or ALP amount in atoms (base tokens)
+pub type Atoms = u64;
/// Common token info identifying tokens, which are essential for verification.
/// A token ID uniquely determines the protocol and token type, and bundling
@@ -50,11 +50,11 @@
UNKNOWN,
}
-/// "Taint" of a UTXO, e.g a token amount or mint baton
+/// "Taint" of a UTXO, e.g a token amount in atoms or mint baton
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
pub enum TokenVariant {
- /// UTXO has a token amount that can be transferred
- Amount(Amount),
+ /// UTXO has a token atoms that can be transferred
+ Atoms(Atoms),
/// UTXO can be used to mint new tokens
MintBaton,
/// UTXO has a new unknown token type.
@@ -70,7 +70,8 @@
pub struct TokenOutput {
/// Index of the token metadata in the tx.
pub token_idx: usize,
- /// Amount of the token, or whether it's a mint baton, or an unknown token.
+ /// Amount of the token in base tokens (aka atoms), or whether it's a mint
+ /// baton, or an unknown token.
pub variant: TokenVariant,
}
@@ -81,7 +82,8 @@
pub struct Token {
/// Which token ID etc. this token has.
pub meta: TokenMeta,
- /// Amount of the token, or whether it's a mint baton, or an unknown token.
+ /// Amount of the token in atoms aka base tokens, or whether it's a mint
+ /// baton, or an unknown token.
pub variant: TokenVariant,
}
@@ -117,9 +119,9 @@
impl TokenVariant {
/// Amount associated with the token variant.
- pub fn amount(&self) -> Amount {
+ pub fn atoms(&self) -> Atoms {
match self {
- &TokenVariant::Amount(amount) => amount,
+ &TokenVariant::Atoms(atoms) => atoms,
TokenVariant::MintBaton => 0,
TokenVariant::Unknown(_) => 0,
}
@@ -134,7 +136,7 @@
impl std::fmt::Display for Token {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self.variant {
- TokenVariant::Amount(amount) => write!(f, "{amount}")?,
+ TokenVariant::Atoms(atoms) => write!(f, "{atoms}")?,
TokenVariant::MintBaton => write!(f, "Mint baton")?,
TokenVariant::Unknown(_) => {
return write!(f, "{}", self.meta.token_type)
diff --git a/chronik/bitcoinsuite-slp/src/test_helpers.rs b/chronik/bitcoinsuite-slp/src/test_helpers.rs
--- a/chronik/bitcoinsuite-slp/src/test_helpers.rs
+++ b/chronik/bitcoinsuite-slp/src/test_helpers.rs
@@ -15,7 +15,7 @@
color::ColoredTx,
parsed::{ParsedData, ParsedMintData},
structs::{
- Amount, GenesisInfo, Token, TokenMeta, TokenOutput, TokenVariant,
+ Atoms, GenesisInfo, Token, TokenMeta, TokenOutput, TokenVariant,
},
token_id::TokenId,
token_tx::{TokenTx, TokenTxEntry},
@@ -74,27 +74,27 @@
}
}
-/// Shortcut for a SpentToken amount
-pub fn spent_amount(meta: TokenMeta, amount: u64) -> Option<SpentToken> {
+/// Shortcut for a SpentToken atoms
+pub fn spent_atoms(meta: TokenMeta, atoms: u64) -> Option<SpentToken> {
Some(SpentToken {
token: Token {
meta,
- variant: TokenVariant::Amount(amount),
+ variant: TokenVariant::Atoms(atoms),
},
group_token_meta: None,
})
}
-/// Shortcut for a SpentToken amount with a group
-pub fn spent_amount_group(
+/// Shortcut for a SpentToken atoms with a group
+pub fn spent_atoms_group(
meta: TokenMeta,
- amount: u64,
+ atoms: u64,
group_token_meta: TokenMeta,
) -> Option<SpentToken> {
Some(SpentToken {
token: Token {
meta,
- variant: TokenVariant::Amount(amount),
+ variant: TokenVariant::Atoms(atoms),
},
group_token_meta: Some(group_token_meta),
})
@@ -111,11 +111,11 @@
})
}
-/// Shortcut for a TokenOutput amount
-pub fn token_amount<const N: usize>(amount: u64) -> Option<TokenOutput> {
+/// Shortcut for a TokenOutput atoms
+pub fn token_atoms<const N: usize>(atoms: u64) -> Option<TokenOutput> {
Some(TokenOutput {
token_idx: N,
- variant: TokenVariant::Amount(amount),
+ variant: TokenVariant::Atoms(atoms),
})
}
@@ -147,8 +147,8 @@
tx_type: None,
genesis_info: None,
group_token_meta: None,
- intentional_burn_amount: None,
- actual_burn_amount: 0,
+ intentional_burn_atoms: None,
+ actual_burn_atoms: 0,
is_invalid: false,
burns_mint_batons: false,
burn_error: None,
@@ -160,14 +160,14 @@
/// Shortcut to make an ALP MINT section
pub fn alp_mint<const N: usize>(
token_id: &TokenId,
- amounts: [Amount; N],
+ atoms: [Atoms; N],
num_batons: usize,
) -> Bytes {
mint_section(
token_id,
AlpTokenType::Standard,
&ParsedMintData {
- amounts: amounts.into_iter().collect(),
+ amounts: atoms.into_iter().collect(),
num_batons,
},
)
@@ -182,7 +182,7 @@
TXID,
TxMut {
outputs: [
- [TxOutput { value: 0, script }].as_ref(),
+ [TxOutput { sats: 0, script }].as_ref(),
&vec![TxOutput::default(); N],
]
.concat(),
diff --git a/chronik/bitcoinsuite-slp/src/token_tx.rs b/chronik/bitcoinsuite-slp/src/token_tx.rs
--- a/chronik/bitcoinsuite-slp/src/token_tx.rs
+++ b/chronik/bitcoinsuite-slp/src/token_tx.rs
@@ -6,7 +6,7 @@
use crate::{
color::{FailedColoring, FailedParsing},
- structs::{Amount, GenesisInfo, Token, TokenMeta, TokenOutput, TxType},
+ structs::{Atoms, GenesisInfo, Token, TokenMeta, TokenOutput, TxType},
verify::{BurnError, SpentToken},
};
@@ -51,11 +51,12 @@
/// Whether all input tokens have been burned because of some rule
/// violation. This includes bare burns.
pub is_invalid: bool,
- /// How many tokens of this token were intentionally burned (using a BURN)
- pub intentional_burn_amount: Option<Amount>,
- /// How many tokens were actually burned, independent of the intentional
- /// amount.
- pub actual_burn_amount: u128,
+ /// How many atoms (aka base tokens) of this token were intentionally
+ /// burned (using a BURN)
+ pub intentional_burn_atoms: Option<Atoms>,
+ /// How many atoms (aka base tokens) were actually burned, independent of
+ /// the intentional amount.
+ pub actual_burn_atoms: u128,
/// Whether any mint batons have been burned of this token.
pub burns_mint_batons: bool,
/// Burn message that may have caused the tokens to be burned.
diff --git a/chronik/bitcoinsuite-slp/src/verify.rs b/chronik/bitcoinsuite-slp/src/verify.rs
--- a/chronik/bitcoinsuite-slp/src/verify.rs
+++ b/chronik/bitcoinsuite-slp/src/verify.rs
@@ -50,7 +50,7 @@
InsufficientInputSum {
/// Required minimum inputs as specified in the outputs
required: u128,
- /// Actual supplied token amount
+ /// Actual supplied token amount in atoms (aka base tokens)
actual: u128,
},
}
@@ -80,7 +80,7 @@
}
struct BareBurn {
- burn_amount: u128,
+ burn_atoms: u128,
burns_mint_batons: bool,
group_token_meta: Option<TokenMeta>,
is_invalid: bool,
@@ -107,8 +107,8 @@
genesis_info: None,
group_token_meta: None,
is_invalid: false,
- intentional_burn_amount: Some(intentional_burn.amount),
- actual_burn_amount: 0,
+ intentional_burn_atoms: Some(intentional_burn.atoms),
+ actual_burn_atoms: 0,
burns_mint_batons: false,
burn_error: None,
has_colored_out_of_range: false,
@@ -139,8 +139,8 @@
},
group_token_meta: None,
is_invalid: true,
- intentional_burn_amount: None,
- actual_burn_amount: 0,
+ intentional_burn_atoms: None,
+ actual_burn_atoms: 0,
burns_mint_batons: false,
burn_error: None,
has_colored_out_of_range: false,
@@ -156,7 +156,7 @@
if bare_burn.burns_mint_batons {
entry.is_invalid = true;
}
- entry.actual_burn_amount = bare_burn.burn_amount;
+ entry.actual_burn_atoms = bare_burn.burn_atoms;
entry.burns_mint_batons = bare_burn.burns_mint_batons;
entry.group_token_meta = bare_burn.group_token_meta;
continue;
@@ -167,8 +167,8 @@
genesis_info: None,
group_token_meta: bare_burn.group_token_meta,
is_invalid: bare_burn.is_invalid,
- intentional_burn_amount: None,
- actual_burn_amount: bare_burn.burn_amount,
+ intentional_burn_atoms: None,
+ actual_burn_atoms: bare_burn.burn_atoms,
burns_mint_batons: bare_burn.burns_mint_batons,
burn_error: None,
has_colored_out_of_range: false,
@@ -209,9 +209,9 @@
genesis_info: section.genesis_info.clone(),
group_token_meta: self.inherited_group_token_meta(&section.meta),
is_invalid: false,
- intentional_burn_amount: self
- .intentional_burn_amount(tx, &section.meta),
- actual_burn_amount: 0,
+ intentional_burn_atoms: self
+ .intentional_burn_atoms(tx, &section.meta),
+ actual_burn_atoms: 0,
burns_mint_batons: false,
burn_error: None,
has_colored_out_of_range: section.has_colored_out_of_range,
@@ -224,7 +224,7 @@
{
return TokenTxEntry {
is_invalid: true,
- actual_burn_amount: input_sum,
+ actual_burn_atoms: input_sum,
burns_mint_batons: self.has_mint_baton(&section.meta),
burn_error: Some(TooManyTxInputs(self.spent_tokens.len())),
..entry
@@ -241,7 +241,7 @@
Some(Some(spent_token))
if spent_token.token.meta.token_type
== TokenType::Slp(SlpTokenType::Nft1Group)
- && spent_token.token.variant.amount() > 0 =>
+ && spent_token.token.variant.atoms() > 0 =>
{
TokenTxEntry {
group_token_meta: Some(spent_token.token.meta),
@@ -263,13 +263,13 @@
TxType::MINT if section.is_mint_vault_mint() => {
if self.has_mint_vault() {
return TokenTxEntry {
- actual_burn_amount: input_sum,
+ actual_burn_atoms: input_sum,
..entry
};
}
TokenTxEntry {
is_invalid: true,
- actual_burn_amount: input_sum,
+ actual_burn_atoms: input_sum,
burn_error: Some(MissingMintVault),
..entry
}
@@ -279,13 +279,13 @@
TxType::MINT => {
if self.has_mint_baton(&section.meta) {
return TokenTxEntry {
- actual_burn_amount: input_sum,
+ actual_burn_atoms: input_sum,
..entry
};
}
TokenTxEntry {
is_invalid: true,
- actual_burn_amount: input_sum,
+ actual_burn_atoms: input_sum,
burn_error: Some(MissingMintBaton),
..entry
}
@@ -295,7 +295,7 @@
TxType::SEND if input_sum < section.required_input_sum => {
TokenTxEntry {
is_invalid: true,
- actual_burn_amount: input_sum,
+ actual_burn_atoms: input_sum,
burns_mint_batons: self.has_mint_baton(&section.meta),
burn_error: Some(InsufficientInputSum {
required: section.required_input_sum,
@@ -308,9 +308,9 @@
// Valid SEND
TxType::SEND => {
let output_sum = self.calc_output_sum(tx, &section.meta);
- let actual_burn_amount = input_sum - output_sum;
+ let actual_burn_atoms = input_sum - output_sum;
TokenTxEntry {
- actual_burn_amount,
+ actual_burn_atoms,
burns_mint_batons: self.has_mint_baton(&section.meta),
..entry
}
@@ -359,7 +359,7 @@
.iter()
.flatten()
.filter(|token| &token.token.meta == meta)
- .map(|token| token.token.variant.amount() as u128)
+ .map(|token| token.token.variant.atoms() as u128)
.sum()
}
@@ -368,7 +368,7 @@
.iter()
.flatten()
.filter(|token| &tx.sections[token.token_idx].meta == meta)
- .map(|token| token.variant.amount() as u128)
+ .map(|token| token.variant.atoms() as u128)
.sum()
}
@@ -383,7 +383,7 @@
.and_then(|token| token.group_token_meta)
}
- fn intentional_burn_amount(
+ fn intentional_burn_atoms(
&self,
tx: &ColoredTx,
meta: &TokenMeta,
@@ -391,7 +391,7 @@
tx.intentional_burns
.iter()
.find(|burn| &burn.meta == meta)
- .map(|burn| burn.amount)
+ .map(|burn| burn.atoms)
}
// Bare burns: spent tokens without a corresponding section
@@ -415,7 +415,7 @@
let bare_burn =
bare_burns.entry(&input.token.meta).or_insert(BareBurn {
- burn_amount: 0,
+ burn_atoms: 0,
burns_mint_batons: false,
group_token_meta: input.group_token_meta,
is_invalid: false,
@@ -442,8 +442,8 @@
// All other bare burns are invalid
bare_burn.is_invalid = true;
match input.token.variant {
- TokenVariant::Amount(amount) => {
- bare_burn.burn_amount += u128::from(amount)
+ TokenVariant::Atoms(atoms) => {
+ bare_burn.burn_atoms += u128::from(atoms)
}
TokenVariant::MintBaton => bare_burn.burns_mint_batons = true,
TokenVariant::Unknown(_) => {}
diff --git a/chronik/bitcoinsuite-slp/tests/test_color_alp_all_the_things.rs b/chronik/bitcoinsuite-slp/tests/test_color_alp_all_the_things.rs
--- a/chronik/bitcoinsuite-slp/tests/test_color_alp_all_the_things.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_color_alp_all_the_things.rs
@@ -17,8 +17,7 @@
},
parsed::{ParsedData, ParsedMintData},
structs::{
- Amount, GenesisInfo, Token, TokenMeta, TokenOutput, TokenVariant,
- TxType,
+ Atoms, GenesisInfo, Token, TokenMeta, TokenOutput, TokenVariant, TxType,
},
token_id::TokenId,
token_type::{AlpTokenType, TokenType},
@@ -39,14 +38,14 @@
const EMPTY_TOKEN_ID: TokenId = TokenId::new(EMPTY_TXID);
const STD: AlpTokenType = AlpTokenType::Standard;
-const MAX: Amount = 0xffff_ffff_ffff;
+const MAX: Atoms = 0xffff_ffff_ffff;
fn make_tx<const N: usize>(script: Script) -> Tx {
Tx::with_txid(
TXID,
TxMut {
outputs: [
- [TxOutput { value: 0, script }].as_ref(),
+ [TxOutput { sats: 0, script }].as_ref(),
&vec![TxOutput::default(); N],
]
.concat(),
@@ -69,7 +68,7 @@
fn amount<const TOKENIDX: usize>(amount: u64) -> Option<TokenOutput> {
Some(TokenOutput {
token_idx: TOKENIDX,
- variant: TokenVariant::Amount(amount),
+ variant: TokenVariant::Atoms(amount),
})
}
@@ -88,7 +87,7 @@
}
fn make_genesis<const N: usize>(
- amounts: [Amount; N],
+ amounts: [Atoms; N],
num_batons: usize,
) -> Bytes {
genesis_section(
@@ -103,7 +102,7 @@
fn make_mint<const N: usize>(
token_id: &TokenId,
- amounts: [Amount; N],
+ amounts: [Atoms; N],
num_batons: usize,
) -> Bytes {
mint_section(
@@ -116,14 +115,11 @@
)
}
-fn make_send<const N: usize>(
- token_id: &TokenId,
- amounts: [Amount; N],
-) -> Bytes {
+fn make_send<const N: usize>(token_id: &TokenId, amounts: [Atoms; N]) -> Bytes {
send_section(token_id, AlpTokenType::Standard, amounts)
}
-fn make_burn(token_id: &TokenId, amount: Amount) -> Bytes {
+fn make_burn(token_id: &TokenId, amount: Atoms) -> Bytes {
burn_section(token_id, AlpTokenType::Standard, amount)
}
@@ -219,7 +215,7 @@
],
intentional_burns: vec![IntentionalBurn {
meta: meta(TOKEN_ID2),
- amount: 2,
+ atoms: 2,
}],
outputs: vec![
None,
@@ -264,13 +260,13 @@
FailedColoring {
pushdata_idx: 3,
parsed: parse(make_mint(&TOKEN_ID2, [0, MAX], 0)),
- error: ColorError::OverlappingAmount {
+ error: ColorError::OverlappingAtoms {
prev_token: Token {
meta: meta(TOKEN_ID),
- variant: TokenVariant::Amount(7),
+ variant: TokenVariant::Atoms(7),
},
output_idx: 2,
- amount: MAX,
+ atoms: MAX,
},
},
// fail MINT: Overlapping batons
@@ -280,7 +276,7 @@
error: ColorError::OverlappingMintBaton {
prev_token: Token {
meta: meta(TOKEN_ID),
- variant: TokenVariant::Amount(7),
+ variant: TokenVariant::Atoms(7),
},
output_idx: 2,
},
diff --git a/chronik/bitcoinsuite-slp/tests/test_color_alp_burn.rs b/chronik/bitcoinsuite-slp/tests/test_color_alp_burn.rs
--- a/chronik/bitcoinsuite-slp/tests/test_color_alp_burn.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_color_alp_burn.rs
@@ -10,7 +10,7 @@
alp::{burn_section, parse_section, sections_opreturn},
color::{ColorError, ColoredTx, FailedColoring, IntentionalBurn},
parsed::ParsedData,
- structs::{Amount, TokenMeta},
+ structs::{Atoms, TokenMeta},
token_id::TokenId,
token_type::{AlpTokenType, TokenType},
};
@@ -24,14 +24,14 @@
const TOKEN_ID3: TokenId = TokenId::new(TXID3);
const STD: AlpTokenType = AlpTokenType::Standard;
-const MAX: Amount = 0xffff_ffff_ffff;
+const MAX: Atoms = 0xffff_ffff_ffff;
fn make_tx<const N: usize>(script: Script) -> Tx {
Tx::with_txid(
TXID,
TxMut {
outputs: [
- [TxOutput { value: 0, script }].as_ref(),
+ [TxOutput { sats: 0, script }].as_ref(),
&vec![TxOutput::default(); N],
]
.concat(),
@@ -51,8 +51,8 @@
parse_section(&TXID, pushdata).unwrap().unwrap()
}
-fn make_burn(token_id: &TokenId, amount: Amount) -> Bytes {
- burn_section(token_id, AlpTokenType::Standard, amount)
+fn make_burn(token_id: &TokenId, atoms: Atoms) -> Bytes {
+ burn_section(token_id, AlpTokenType::Standard, atoms)
}
#[test]
@@ -65,7 +65,7 @@
Some(ColoredTx {
intentional_burns: vec![IntentionalBurn {
meta: meta(TOKEN_ID2),
- amount: 3,
+ atoms: 3,
}],
outputs: vec![None],
failed_colorings: vec![FailedColoring {
@@ -91,7 +91,7 @@
Some(ColoredTx {
intentional_burns: vec![IntentionalBurn {
meta: meta(TOKEN_ID2),
- amount: 3,
+ atoms: 3,
}],
outputs: vec![None],
..Default::default()
@@ -110,11 +110,11 @@
intentional_burns: vec![
IntentionalBurn {
meta: meta(TOKEN_ID2),
- amount: 1,
+ atoms: 1,
},
IntentionalBurn {
meta: meta(TOKEN_ID3),
- amount: MAX,
+ atoms: MAX,
},
],
outputs: vec![None],
diff --git a/chronik/bitcoinsuite-slp/tests/test_color_alp_genesis.rs b/chronik/bitcoinsuite-slp/tests/test_color_alp_genesis.rs
--- a/chronik/bitcoinsuite-slp/tests/test_color_alp_genesis.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_color_alp_genesis.rs
@@ -14,7 +14,7 @@
color::{ColorError, ColoredTx, ColoredTxSection, FailedColoring},
parsed::{ParsedData, ParsedGenesis, ParsedMintData, ParsedTxType},
structs::{
- Amount, GenesisInfo, TokenMeta, TokenOutput, TokenVariant, TxType,
+ Atoms, GenesisInfo, TokenMeta, TokenOutput, TokenVariant, TxType,
},
token_id::TokenId,
token_type::{AlpTokenType, TokenType},
@@ -30,7 +30,7 @@
static INFO: GenesisInfo = GenesisInfo::empty_alp();
-const MAX: Amount = 0xffff_ffff_ffff;
+const MAX: Atoms = 0xffff_ffff_ffff;
const MINT_BATON: Option<TokenOutput> = Some(TokenOutput {
token_idx: 0,
@@ -42,7 +42,7 @@
TXID,
TxMut {
outputs: [
- [TxOutput { value: 0, script }].as_ref(),
+ [TxOutput { sats: 0, script }].as_ref(),
&vec![TxOutput::default(); N],
]
.concat(),
@@ -65,7 +65,7 @@
fn amount(amount: u64) -> Option<TokenOutput> {
Some(TokenOutput {
token_idx: 0,
- variant: TokenVariant::Amount(amount),
+ variant: TokenVariant::Atoms(amount),
})
}
diff --git a/chronik/bitcoinsuite-slp/tests/test_color_alp_mint.rs b/chronik/bitcoinsuite-slp/tests/test_color_alp_mint.rs
--- a/chronik/bitcoinsuite-slp/tests/test_color_alp_mint.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_color_alp_mint.rs
@@ -10,7 +10,7 @@
alp::{mint_section, parse_section, sections_opreturn},
color::{ColorError, ColoredTx, ColoredTxSection, FailedColoring},
parsed::{ParsedData, ParsedMintData},
- structs::{Amount, Token, TokenMeta, TokenOutput, TokenVariant, TxType},
+ structs::{Atoms, Token, TokenMeta, TokenOutput, TokenVariant, TxType},
token_id::TokenId,
token_type::{AlpTokenType, TokenType},
};
@@ -29,14 +29,14 @@
const EMPTY_TOKEN_ID: TokenId = TokenId::new(EMPTY_TXID);
const STD: AlpTokenType = AlpTokenType::Standard;
-const MAX: Amount = 0xffff_ffff_ffff;
+const MAX: Atoms = 0xffff_ffff_ffff;
fn make_tx<const N: usize>(script: Script) -> Tx {
Tx::with_txid(
TXID,
TxMut {
outputs: [
- [TxOutput { value: 0, script }].as_ref(),
+ [TxOutput { sats: 0, script }].as_ref(),
&vec![TxOutput::default(); N],
]
.concat(),
@@ -69,7 +69,7 @@
fn amount<const TOKENIDX: usize>(amount: u64) -> Option<TokenOutput> {
Some(TokenOutput {
token_idx: TOKENIDX,
- variant: TokenVariant::Amount(amount),
+ variant: TokenVariant::Atoms(amount),
})
}
@@ -89,7 +89,7 @@
fn make_mint<const N: usize>(
token_id: &TokenId,
- amounts: [Amount; N],
+ amounts: [Atoms; N],
num_batons: usize,
) -> Bytes {
mint_section(
@@ -240,13 +240,13 @@
failed_colorings: vec![FailedColoring {
pushdata_idx: 1,
parsed: parse(make_mint(&TOKEN_ID3, [0, 777, 1], 0)),
- error: ColorError::OverlappingAmount {
+ error: ColorError::OverlappingAtoms {
prev_token: Token {
meta: meta(TOKEN_ID2),
variant: TokenVariant::MintBaton,
},
output_idx: 2,
- amount: 777,
+ atoms: 777,
},
}],
..Default::default()
@@ -270,7 +270,7 @@
error: ColorError::OverlappingMintBaton {
prev_token: Token {
meta: meta(TOKEN_ID2),
- variant: TokenVariant::Amount(9),
+ variant: TokenVariant::Atoms(9),
},
output_idx: 3,
},
diff --git a/chronik/bitcoinsuite-slp/tests/test_color_alp_send.rs b/chronik/bitcoinsuite-slp/tests/test_color_alp_send.rs
--- a/chronik/bitcoinsuite-slp/tests/test_color_alp_send.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_color_alp_send.rs
@@ -10,7 +10,7 @@
alp::{parse_section, sections_opreturn, send_section},
color::{ColorError, ColoredTx, ColoredTxSection, FailedColoring},
parsed::ParsedData,
- structs::{Amount, Token, TokenMeta, TokenOutput, TokenVariant, TxType},
+ structs::{Atoms, Token, TokenMeta, TokenOutput, TokenVariant, TxType},
token_id::TokenId,
token_type::{AlpTokenType, TokenType},
};
@@ -27,14 +27,14 @@
const STD: AlpTokenType = AlpTokenType::Standard;
-const MAX: Amount = 0xffff_ffff_ffff;
+const MAX: Atoms = 0xffff_ffff_ffff;
fn make_tx<const N: usize>(script: Script) -> Tx {
Tx::with_txid(
TXID,
TxMut {
outputs: [
- [TxOutput { value: 0, script }].as_ref(),
+ [TxOutput { sats: 0, script }].as_ref(),
&vec![TxOutput::default(); N],
]
.concat(),
@@ -70,14 +70,11 @@
fn amount<const TOKENIDX: usize>(amount: u64) -> Option<TokenOutput> {
Some(TokenOutput {
token_idx: TOKENIDX,
- variant: TokenVariant::Amount(amount),
+ variant: TokenVariant::Atoms(amount),
})
}
-fn make_send<const N: usize>(
- token_id: &TokenId,
- amounts: [Amount; N],
-) -> Bytes {
+fn make_send<const N: usize>(token_id: &TokenId, amounts: [Atoms; N]) -> Bytes {
send_section(token_id, AlpTokenType::Standard, amounts)
}
@@ -140,13 +137,13 @@
failed_colorings: vec![FailedColoring {
pushdata_idx: 1,
parsed: parse(make_send(&TOKEN_ID3, [3, 7, MAX])),
- error: ColorError::OverlappingAmount {
+ error: ColorError::OverlappingAtoms {
prev_token: Token {
meta: meta(TOKEN_ID2),
- variant: TokenVariant::Amount(2),
+ variant: TokenVariant::Atoms(2),
},
output_idx: 2,
- amount: 7,
+ atoms: 7,
},
}],
..Default::default()
diff --git a/chronik/bitcoinsuite-slp/tests/test_color_common.rs b/chronik/bitcoinsuite-slp/tests/test_color_common.rs
--- a/chronik/bitcoinsuite-slp/tests/test_color_common.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_color_common.rs
@@ -21,7 +21,7 @@
Tx::with_txid(
TxId::new([4; 32]),
TxMut {
- outputs: vec![TxOutput { value: 0, script }],
+ outputs: vec![TxOutput { sats: 0, script }],
..Default::default()
},
)
diff --git a/chronik/bitcoinsuite-slp/tests/test_color_slp.rs b/chronik/bitcoinsuite-slp/tests/test_color_slp.rs
--- a/chronik/bitcoinsuite-slp/tests/test_color_slp.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_color_slp.rs
@@ -31,7 +31,7 @@
TXID,
TxMut {
outputs: [
- [TxOutput { value: 0, script }].as_ref(),
+ [TxOutput { sats: 0, script }].as_ref(),
&vec![TxOutput::default(); n_extra_outputs],
]
.concat(),
@@ -47,10 +47,10 @@
}
}
-fn amount(amount: u64) -> Option<TokenOutput> {
+fn atoms(atoms: u64) -> Option<TokenOutput> {
Some(TokenOutput {
token_idx: 0,
- variant: TokenVariant::Amount(amount),
+ variant: TokenVariant::Atoms(atoms),
})
}
@@ -112,7 +112,7 @@
4,
)),
Some(ColoredTx {
- outputs: vec![None, amount(amt), None, None, None],
+ outputs: vec![None, atoms(amt), None, None, None],
sections: vec![ColoredTxSection {
meta: meta(TOKEN_ID, token_type),
tx_type: TxType::GENESIS,
@@ -131,7 +131,7 @@
for token_type in [SlpTokenType::Fungible, SlpTokenType::Nft1Group] {
for out_idx in 2..=255 {
let mut outputs = vec![None; out_idx + 1];
- outputs[1] = amount(1234567);
+ outputs[1] = atoms(1234567);
outputs[out_idx] = MINT_BATON;
assert_eq!(
ColoredTx::color_tx(&make_tx(
@@ -211,7 +211,7 @@
1,
)),
Some(ColoredTx {
- outputs: vec![None, amount(7777)],
+ outputs: vec![None, atoms(7777)],
sections: vec![ColoredTxSection {
has_colored_out_of_range: true,
..section.clone()
@@ -236,7 +236,7 @@
4,
)),
Some(ColoredTx {
- outputs: vec![None, amount(amt), None, None, None],
+ outputs: vec![None, atoms(amt), None, None, None],
sections: vec![ColoredTxSection {
meta: meta(TOKEN_ID1, token_type),
tx_type: TxType::MINT,
@@ -257,7 +257,7 @@
// Zero amounts are colored as None
let outputs = [None, None]
.into_iter()
- .chain((1..num_amounts).map(amount))
+ .chain((1..num_amounts).map(atoms))
.collect::<Vec<_>>();
assert_eq!(
ColoredTx::color_tx(&make_tx(
@@ -331,7 +331,7 @@
1,
)),
Some(ColoredTx {
- outputs: vec![None, amount(7777)],
+ outputs: vec![None, atoms(7777)],
sections: vec![ColoredTxSection {
has_colored_out_of_range: true,
..section.clone()
@@ -402,7 +402,7 @@
2,
)),
Some(ColoredTx {
- outputs: vec![None, amount(4444), None],
+ outputs: vec![None, atoms(4444), None],
sections: vec![ColoredTxSection {
meta: meta(TOKEN_ID1, token_type),
tx_type: TxType::SEND,
@@ -421,7 +421,7 @@
// Zero amounts are colored as None
let outputs = [None, None]
.into_iter()
- .chain((1..num_amounts).map(amount))
+ .chain((1..num_amounts).map(atoms))
.collect::<Vec<_>>();
assert_eq!(
ColoredTx::color_tx(&make_tx(
@@ -517,7 +517,7 @@
sections: vec![],
intentional_burns: vec![IntentionalBurn {
meta: meta(TOKEN_ID1, token_type),
- amount: 3333,
+ atoms: 3333,
}],
..Default::default()
}),
diff --git a/chronik/bitcoinsuite-slp/tests/test_slp_parse_genesis.rs b/chronik/bitcoinsuite-slp/tests/test_slp_parse_genesis.rs
--- a/chronik/bitcoinsuite-slp/tests/test_slp_parse_genesis.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_slp_parse_genesis.rs
@@ -6,7 +6,7 @@
use bitcoinsuite_slp::{
parsed::{ParsedData, ParsedGenesis, ParsedMintData, ParsedTxType},
slp::{genesis_opreturn, parse, ParseError},
- structs::{Amount, GenesisInfo, TokenMeta},
+ structs::{Atoms, GenesisInfo, TokenMeta},
token_id::TokenId,
token_type::{SlpTokenType, TokenType},
};
@@ -353,11 +353,11 @@
mint_data: match token_type {
SlpTokenType::MintVault | SlpTokenType::Nft1Child =>
ParsedMintData {
- amounts: vec![qty as Amount],
+ amounts: vec![qty as Atoms],
num_batons: 0,
},
_ => ParsedMintData {
- amounts: vec![qty as Amount, 0, 0],
+ amounts: vec![qty as Atoms, 0, 0],
num_batons: 1,
},
},
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_alp_all_the_things.rs b/chronik/bitcoinsuite-slp/tests/test_verify_alp_all_the_things.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_alp_all_the_things.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_alp_all_the_things.rs
@@ -11,7 +11,7 @@
structs::{GenesisInfo, TxType},
test_helpers::{
alp_mint, empty_entry, meta_alp as meta, meta_alp_unknown, parse_alp,
- spent_amount, spent_baton, token_amount, token_baton, token_unknown,
+ spent_atoms, spent_baton, token_atoms, token_baton, token_unknown,
verify, EMPTY_TOKEN_ID, TOKEN_ID1, TOKEN_ID2, TOKEN_ID3, TOKEN_ID4,
},
token_tx::{TokenTx, TokenTxEntry},
@@ -71,8 +71,8 @@
&[
spent_baton(meta(TOKEN_ID3)),
spent_baton(meta(TOKEN_ID2)),
- spent_amount(meta(TOKEN_ID4), 0xffff_ffff_ffff - 2),
- spent_amount(meta(TOKEN_ID4), 7),
+ spent_atoms(meta(TOKEN_ID4), 0xffff_ffff_ffff - 2),
+ spent_atoms(meta(TOKEN_ID4), 7),
],
),
TokenTx {
@@ -100,7 +100,7 @@
TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::MINT),
- intentional_burn_amount: Some(2),
+ intentional_burn_atoms: Some(2),
failed_colorings: vec![
FailedColoring {
pushdata_idx: 2,
@@ -146,7 +146,7 @@
TokenTxEntry {
meta: meta(TOKEN_ID4),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 5,
+ actual_burn_atoms: 5,
failed_colorings: vec![FailedColoring {
pushdata_idx: 9,
parsed: parse_alp(alp_mint(&TOKEN_ID4, [], 0)),
@@ -170,16 +170,16 @@
],
outputs: vec![
None,
- token_amount::<1>(3),
- token_amount::<0>(7),
+ token_atoms::<1>(3),
+ token_atoms::<0>(7),
token_baton::<1>(),
- token_amount::<2>(2),
- token_amount::<0>(1),
+ token_atoms::<2>(2),
+ token_atoms::<0>(1),
token_baton::<0>(),
token_baton::<0>(),
token_baton::<2>(),
token_unknown::<4>(0x89),
- token_amount::<3>(0xffff_ffff_ffff),
+ token_atoms::<3>(0xffff_ffff_ffff),
],
failed_parsings: vec![FailedParsing {
pushdata_idx: Some(12),
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_alp_burn.rs b/chronik/bitcoinsuite-slp/tests/test_verify_alp_burn.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_alp_burn.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_alp_burn.rs
@@ -6,7 +6,7 @@
alp::{burn_section, sections_opreturn, send_section},
structs::TxType,
test_helpers::{
- empty_entry, meta_alp as meta, spent_amount, spent_baton, token_amount,
+ empty_entry, meta_alp as meta, spent_atoms, spent_baton, token_atoms,
verify, TOKEN_ID2, TOKEN_ID3, TOKEN_ID4, TOKEN_ID5,
},
token_tx::{TokenTx, TokenTxEntry},
@@ -26,7 +26,7 @@
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::BURN),
- intentional_burn_amount: Some(400),
+ intentional_burn_atoms: Some(400),
..empty_entry()
}],
outputs: vec![None],
@@ -49,7 +49,7 @@
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::SEND),
- intentional_burn_amount: Some(400),
+ intentional_burn_atoms: Some(400),
is_invalid: true,
burn_error: Some(BurnError::InsufficientInputSum {
required: 200,
@@ -77,7 +77,7 @@
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::SEND),
- intentional_burn_amount: Some(400),
+ intentional_burn_atoms: Some(400),
is_invalid: true,
burn_error: Some(BurnError::InsufficientInputSum {
required: 200,
@@ -99,17 +99,17 @@
send_section(&TOKEN_ID2, Standard, [80, 20]),
burn_section(&TOKEN_ID2, Standard, 400),
]),
- &[spent_amount(meta(TOKEN_ID2), 500)],
+ &[spent_atoms(meta(TOKEN_ID2), 500)],
),
TokenTx {
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 400,
- intentional_burn_amount: Some(400),
+ actual_burn_atoms: 400,
+ intentional_burn_atoms: Some(400),
..empty_entry()
}],
- outputs: vec![None, token_amount::<0>(80), token_amount::<0>(20)],
+ outputs: vec![None, token_atoms::<0>(80), token_atoms::<0>(20)],
failed_parsings: vec![],
},
);
@@ -127,11 +127,11 @@
burn_section(&TOKEN_ID4, Standard, 3000),
]),
&[
- spent_amount(meta(TOKEN_ID2), 500),
- spent_amount(meta(TOKEN_ID3), 7000),
- spent_amount(meta(TOKEN_ID4), 2000),
+ spent_atoms(meta(TOKEN_ID2), 500),
+ spent_atoms(meta(TOKEN_ID3), 7000),
+ spent_atoms(meta(TOKEN_ID4), 2000),
spent_baton(meta(TOKEN_ID4)),
- spent_amount(meta(TOKEN_ID5), 500),
+ spent_atoms(meta(TOKEN_ID5), 500),
],
),
TokenTx {
@@ -139,39 +139,39 @@
TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 400,
- intentional_burn_amount: Some(400),
+ actual_burn_atoms: 400,
+ intentional_burn_atoms: Some(400),
..empty_entry()
},
TokenTxEntry {
meta: meta(TOKEN_ID3),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 1000,
- intentional_burn_amount: Some(1000),
+ actual_burn_atoms: 1000,
+ intentional_burn_atoms: Some(1000),
..empty_entry()
},
TokenTxEntry {
meta: meta(TOKEN_ID4),
tx_type: Some(TxType::BURN),
- actual_burn_amount: 2000,
- intentional_burn_amount: Some(3000),
+ actual_burn_atoms: 2000,
+ intentional_burn_atoms: Some(3000),
is_invalid: true,
burns_mint_batons: true,
..empty_entry()
},
TokenTxEntry {
meta: meta(TOKEN_ID5),
- actual_burn_amount: 500,
+ actual_burn_atoms: 500,
is_invalid: true,
..empty_entry()
},
],
outputs: vec![
None,
- token_amount::<0>(80),
- token_amount::<0>(20),
- token_amount::<1>(5000),
- token_amount::<1>(1000),
+ token_atoms::<0>(80),
+ token_atoms::<0>(20),
+ token_atoms::<1>(5000),
+ token_atoms::<1>(1000),
],
failed_parsings: vec![],
},
@@ -188,9 +188,9 @@
send_section(&TOKEN_ID4, Standard, [0, 0, 0, 0, 500]),
]),
&[
- spent_amount(meta(TOKEN_ID2), 150),
- spent_amount(meta(TOKEN_ID3), 14000),
- spent_amount(meta(TOKEN_ID5), 700),
+ spent_atoms(meta(TOKEN_ID2), 150),
+ spent_atoms(meta(TOKEN_ID3), 14000),
+ spent_atoms(meta(TOKEN_ID5), 700),
],
),
TokenTx {
@@ -198,13 +198,13 @@
TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 50,
+ actual_burn_atoms: 50,
..empty_entry()
},
TokenTxEntry {
meta: meta(TOKEN_ID3),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 4000,
+ actual_burn_atoms: 4000,
..empty_entry()
},
TokenTxEntry {
@@ -220,16 +220,16 @@
TokenTxEntry {
meta: meta(TOKEN_ID5),
is_invalid: true,
- actual_burn_amount: 700,
+ actual_burn_atoms: 700,
..empty_entry()
},
],
outputs: vec![
None,
- token_amount::<0>(80),
- token_amount::<1>(8000),
- token_amount::<0>(20),
- token_amount::<1>(2000),
+ token_atoms::<0>(80),
+ token_atoms::<1>(8000),
+ token_atoms::<0>(20),
+ token_atoms::<1>(2000),
None,
],
failed_parsings: vec![],
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_alp_common.rs b/chronik/bitcoinsuite-slp/tests/test_verify_alp_common.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_alp_common.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_alp_common.rs
@@ -9,8 +9,8 @@
empp,
structs::TxType,
test_helpers::{
- alp_mint, empty_entry, meta_alp as meta, parse_alp, spent_amount,
- token_amount, verify, TOKEN_ID2,
+ alp_mint, empty_entry, meta_alp as meta, parse_alp, spent_atoms,
+ token_atoms, verify, TOKEN_ID2,
},
token_tx::{TokenTx, TokenTxEntry},
token_type::AlpTokenType::*,
@@ -84,7 +84,7 @@
fn test_verify_alp_more_than_32767_inputs_invalid() {
// More than 32767 inputs disallowed in ALP
let spent_tokens = vec![
- spent_amount(meta(TOKEN_ID2), 0xffff_ffff_ffff);
+ spent_atoms(meta(TOKEN_ID2), 0xffff_ffff_ffff);
alp::consts::MAX_TX_INPUTS + 1
];
assert_eq!(
@@ -100,7 +100,7 @@
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 32768 * 0xffff_ffff_ffff,
+ actual_burn_atoms: 32768 * 0xffff_ffff_ffff,
is_invalid: true,
burn_error: Some(BurnError::TooManyTxInputs(32768)),
..empty_entry()
@@ -115,7 +115,7 @@
fn test_verify_alp_32767_inputs_valid() {
// 32767 inputs allowed in ALP
let spent_tokens = vec![
- spent_amount(meta(TOKEN_ID2), 0xffff_ffff_ffff);
+ spent_atoms(meta(TOKEN_ID2), 0xffff_ffff_ffff);
alp::consts::MAX_TX_INPUTS
];
assert_eq!(
@@ -131,10 +131,10 @@
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 32766 * 0xffff_ffff_ffff,
+ actual_burn_atoms: 32766 * 0xffff_ffff_ffff,
..empty_entry()
}],
- outputs: vec![None, token_amount::<0>(0xffff_ffff_ffff)],
+ outputs: vec![None, token_atoms::<0>(0xffff_ffff_ffff)],
failed_parsings: vec![],
},
);
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_alp_genesis.rs b/chronik/bitcoinsuite-slp/tests/test_verify_alp_genesis.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_alp_genesis.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_alp_genesis.rs
@@ -7,7 +7,7 @@
parsed::ParsedMintData,
structs::{GenesisInfo, TxType},
test_helpers::{
- empty_entry, meta_alp as meta, spent_amount, token_amount, token_baton,
+ empty_entry, meta_alp as meta, spent_atoms, token_atoms, token_baton,
verify, TOKEN_ID1, TOKEN_ID2, TOKEN_ID3,
},
token_tx::{TokenTx, TokenTxEntry},
@@ -48,9 +48,9 @@
}],
outputs: vec![
None,
- token_amount::<0>(200),
+ token_atoms::<0>(200),
None,
- token_amount::<0>(300),
+ token_atoms::<0>(300),
token_baton::<0>(),
token_baton::<0>(),
],
@@ -72,8 +72,8 @@
},
)]),
&[
- spent_amount(meta(TOKEN_ID2), 100),
- spent_amount(meta(TOKEN_ID3), 2000),
+ spent_atoms(meta(TOKEN_ID2), 100),
+ spent_atoms(meta(TOKEN_ID3), 2000),
],
),
TokenTx {
@@ -87,21 +87,21 @@
TokenTxEntry {
meta: meta(TOKEN_ID2),
is_invalid: true,
- actual_burn_amount: 100,
+ actual_burn_atoms: 100,
..empty_entry()
},
TokenTxEntry {
meta: meta(TOKEN_ID3),
is_invalid: true,
- actual_burn_amount: 2000,
+ actual_burn_atoms: 2000,
..empty_entry()
},
],
outputs: vec![
None,
- token_amount::<0>(200),
+ token_atoms::<0>(200),
None,
- token_amount::<0>(300),
+ token_atoms::<0>(300),
token_baton::<0>(),
token_baton::<0>(),
],
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_alp_mint.rs b/chronik/bitcoinsuite-slp/tests/test_verify_alp_mint.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_alp_mint.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_alp_mint.rs
@@ -6,7 +6,7 @@
alp::sections_opreturn,
structs::TxType,
test_helpers::{
- alp_mint, empty_entry, meta_alp as meta, spent_baton, token_amount,
+ alp_mint, empty_entry, meta_alp as meta, spent_baton, token_atoms,
token_baton, verify, TOKEN_ID2, TOKEN_ID3, TOKEN_ID4, TOKEN_ID5,
},
token_tx::{TokenTx, TokenTxEntry},
@@ -78,7 +78,7 @@
tx_type: Some(TxType::MINT),
..empty_entry()
}],
- outputs: vec![None, token_amount::<0>(100), token_baton::<0>()],
+ outputs: vec![None, token_atoms::<0>(100), token_baton::<0>()],
failed_parsings: vec![],
},
);
@@ -128,8 +128,8 @@
],
outputs: vec![
None,
- token_amount::<0>(100),
- token_amount::<1>(15),
+ token_atoms::<0>(100),
+ token_atoms::<1>(15),
token_baton::<0>(),
token_baton::<1>(),
None,
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_alp_send.rs b/chronik/bitcoinsuite-slp/tests/test_verify_alp_send.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_alp_send.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_alp_send.rs
@@ -6,7 +6,7 @@
alp::{sections_opreturn, send_section},
structs::TxType,
test_helpers::{
- empty_entry, meta_alp as meta, spent_amount, token_amount, verify,
+ empty_entry, meta_alp as meta, spent_atoms, token_atoms, verify,
TOKEN_ID2, TOKEN_ID3, TOKEN_ID4, TOKEN_ID5,
},
token_tx::{TokenTx, TokenTxEntry},
@@ -52,13 +52,13 @@
Standard,
[80, 20],
)]),
- &[spent_amount(meta(TOKEN_ID2), 90)],
+ &[spent_atoms(meta(TOKEN_ID2), 90)],
),
TokenTx {
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 90,
+ actual_burn_atoms: 90,
is_invalid: true,
burn_error: Some(BurnError::InsufficientInputSum {
required: 100,
@@ -81,7 +81,7 @@
Standard,
[80, 20],
)]),
- &[spent_amount(meta(TOKEN_ID3), 100)],
+ &[spent_atoms(meta(TOKEN_ID3), 100)],
),
TokenTx {
entries: vec![
@@ -99,7 +99,7 @@
meta: meta(TOKEN_ID3),
tx_type: None,
is_invalid: true,
- actual_burn_amount: 100,
+ actual_burn_atoms: 100,
..empty_entry()
}
],
@@ -118,7 +118,7 @@
Standard,
[80, 20],
)]),
- &[spent_amount(meta(TOKEN_ID2), 100)],
+ &[spent_atoms(meta(TOKEN_ID2), 100)],
),
TokenTx {
entries: vec![TokenTxEntry {
@@ -126,7 +126,7 @@
tx_type: Some(TxType::SEND),
..empty_entry()
}],
- outputs: vec![None, token_amount::<0>(80), token_amount::<0>(20)],
+ outputs: vec![None, token_atoms::<0>(80), token_atoms::<0>(20)],
failed_parsings: vec![],
},
);
@@ -163,9 +163,9 @@
send_section(&TOKEN_ID4, Standard, [0, 0, 0, 0, 500]),
]),
&[
- spent_amount(meta(TOKEN_ID2), 150),
- spent_amount(meta(TOKEN_ID3), 14000),
- spent_amount(meta(TOKEN_ID5), 700),
+ spent_atoms(meta(TOKEN_ID2), 150),
+ spent_atoms(meta(TOKEN_ID3), 14000),
+ spent_atoms(meta(TOKEN_ID5), 700),
],
),
TokenTx {
@@ -173,13 +173,13 @@
TokenTxEntry {
meta: meta(TOKEN_ID2),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 50,
+ actual_burn_atoms: 50,
..empty_entry()
},
TokenTxEntry {
meta: meta(TOKEN_ID3),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 4000,
+ actual_burn_atoms: 4000,
..empty_entry()
},
TokenTxEntry {
@@ -195,16 +195,16 @@
TokenTxEntry {
meta: meta(TOKEN_ID5),
is_invalid: true,
- actual_burn_amount: 700,
+ actual_burn_atoms: 700,
..empty_entry()
},
],
outputs: vec![
None,
- token_amount::<0>(80),
- token_amount::<1>(8000),
- token_amount::<0>(20),
- token_amount::<1>(2000),
+ token_atoms::<0>(80),
+ token_atoms::<1>(8000),
+ token_atoms::<0>(20),
+ token_atoms::<1>(2000),
None,
],
failed_parsings: vec![],
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_slp_burn.rs b/chronik/bitcoinsuite-slp/tests/test_verify_slp_burn.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_slp_burn.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_slp_burn.rs
@@ -6,7 +6,7 @@
slp::burn_opreturn,
structs::TxType,
test_helpers::{
- empty_entry, meta_slp as meta, spent_amount, spent_baton, verify,
+ empty_entry, meta_slp as meta, spent_atoms, spent_baton, verify,
TOKEN_ID2, TOKEN_ID3,
},
token_tx::{TokenTx, TokenTxEntry},
@@ -20,20 +20,20 @@
assert_eq!(
verify::<1>(
burn_opreturn(&TOKEN_ID2, token_type, 10),
- &[spent_amount(meta(TOKEN_ID3, token_type), 10)],
+ &[spent_atoms(meta(TOKEN_ID3, token_type), 10)],
),
TokenTx {
entries: vec![
TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::BURN),
- intentional_burn_amount: Some(10),
+ intentional_burn_atoms: Some(10),
..empty_entry()
},
TokenTxEntry {
meta: meta(TOKEN_ID3, token_type),
is_invalid: true,
- actual_burn_amount: 10,
+ actual_burn_atoms: 10,
..empty_entry()
},
],
@@ -54,20 +54,20 @@
assert_eq!(
verify::<1>(
burn_opreturn(&TOKEN_ID2, wrong_token_type, 10),
- &[spent_amount(meta(TOKEN_ID3, token_type), 10)],
+ &[spent_atoms(meta(TOKEN_ID3, token_type), 10)],
),
TokenTx {
entries: vec![
TokenTxEntry {
meta: meta(TOKEN_ID2, wrong_token_type),
tx_type: Some(TxType::BURN),
- intentional_burn_amount: Some(10),
+ intentional_burn_atoms: Some(10),
..empty_entry()
},
TokenTxEntry {
meta: meta(TOKEN_ID3, token_type),
is_invalid: true,
- actual_burn_amount: 10,
+ actual_burn_atoms: 10,
..empty_entry()
},
],
@@ -91,7 +91,7 @@
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::BURN),
- intentional_burn_amount: Some(10),
+ intentional_burn_atoms: Some(10),
is_invalid: true,
burns_mint_batons: true,
..empty_entry()
@@ -109,14 +109,14 @@
assert_eq!(
verify::<1>(
burn_opreturn(&TOKEN_ID2, token_type, 10),
- &[spent_amount(meta(TOKEN_ID2, token_type), 9)],
+ &[spent_atoms(meta(TOKEN_ID2, token_type), 9)],
),
TokenTx {
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::BURN),
- intentional_burn_amount: Some(10),
- actual_burn_amount: 9,
+ intentional_burn_atoms: Some(10),
+ actual_burn_atoms: 9,
..empty_entry()
},],
outputs: vec![None, None],
@@ -132,14 +132,14 @@
assert_eq!(
verify::<1>(
burn_opreturn(&TOKEN_ID2, token_type, 10),
- &[spent_amount(meta(TOKEN_ID2, token_type), 10)],
+ &[spent_atoms(meta(TOKEN_ID2, token_type), 10)],
),
TokenTx {
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::BURN),
- intentional_burn_amount: Some(10),
- actual_burn_amount: 10,
+ intentional_burn_atoms: Some(10),
+ actual_burn_atoms: 10,
..empty_entry()
},],
outputs: vec![None, None],
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_slp_common.rs b/chronik/bitcoinsuite-slp/tests/test_verify_slp_common.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_slp_common.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_slp_common.rs
@@ -9,7 +9,7 @@
slp::{self, send_opreturn},
structs::TxType,
test_helpers::{
- empty_entry, meta_slp as meta, spent_amount, token_amount, verify,
+ empty_entry, meta_slp as meta, spent_atoms, token_atoms, verify,
TOKEN_ID2,
},
token_tx::{TokenTx, TokenTxEntry},
@@ -39,7 +39,7 @@
// More than 32767 inputs allowed in SLP
let spent_tokens =
vec![
- spent_amount(meta(TOKEN_ID2, token_type), u64::MAX);
+ spent_atoms(meta(TOKEN_ID2, token_type), u64::MAX);
alp::consts::MAX_TX_INPUTS + 1
];
assert_eq!(
@@ -51,10 +51,10 @@
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 32767 * u64::MAX as u128,
+ actual_burn_atoms: 32767 * u64::MAX as u128,
..empty_entry()
}],
- outputs: vec![None, token_amount::<0>(u64::MAX)],
+ outputs: vec![None, token_atoms::<0>(u64::MAX)],
failed_parsings: vec![],
},
);
@@ -67,17 +67,17 @@
assert_eq!(
verify::<1>(
send_opreturn(&TOKEN_ID2, token_type, &[100, 200, 300]),
- &[spent_amount(meta(TOKEN_ID2, token_type), 600)],
+ &[spent_atoms(meta(TOKEN_ID2, token_type), 600)],
),
TokenTx {
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 500,
+ actual_burn_atoms: 500,
has_colored_out_of_range: true,
..empty_entry()
}],
- outputs: vec![None, token_amount::<0>(100)],
+ outputs: vec![None, token_atoms::<0>(100)],
failed_parsings: vec![],
},
);
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_slp_genesis.rs b/chronik/bitcoinsuite-slp/tests/test_verify_slp_genesis.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_slp_genesis.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_slp_genesis.rs
@@ -7,7 +7,7 @@
slp::genesis_opreturn,
structs::{GenesisInfo, TxType},
test_helpers::{
- empty_entry, meta_alp, meta_slp as meta, spent_amount, token_amount,
+ empty_entry, meta_alp, meta_slp as meta, spent_atoms, token_atoms,
token_baton, verify, INFO_SLP as INFO, TOKEN_ID1, TOKEN_ID2, TOKEN_ID3,
},
token_tx::{TokenTx, TokenTxEntry},
@@ -42,7 +42,7 @@
assert_eq!(
verify::<1>(
genesis_opreturn(&INFO, Nft1Child, None, 1),
- &[spent_amount(meta(TOKEN_ID2, in_token_type), 1)],
+ &[spent_atoms(meta(TOKEN_ID2, in_token_type), 1)],
),
TokenTx {
entries: vec![
@@ -56,7 +56,7 @@
},
TokenTxEntry {
meta: meta(TOKEN_ID2, in_token_type),
- actual_burn_amount: 1,
+ actual_burn_atoms: 1,
is_invalid: true,
..empty_entry()
},
@@ -74,7 +74,7 @@
verify::<1>(
genesis_opreturn(&INFO, Nft1Child, None, 1),
// NFT1 Group must be at idx 0, is at idx 1
- &[None, spent_amount(meta(TOKEN_ID2, Nft1Group), 1)],
+ &[None, spent_atoms(meta(TOKEN_ID2, Nft1Group), 1)],
),
TokenTx {
entries: vec![
@@ -88,7 +88,7 @@
},
TokenTxEntry {
meta: meta(TOKEN_ID2, Nft1Group),
- actual_burn_amount: 1,
+ actual_burn_atoms: 1,
is_invalid: true,
..empty_entry()
},
@@ -104,7 +104,7 @@
assert_eq!(
verify::<1>(
genesis_opreturn(&INFO, Nft1Child, None, 1),
- &[spent_amount(meta(TOKEN_ID2, Nft1Group), 1)],
+ &[spent_atoms(meta(TOKEN_ID2, Nft1Group), 1)],
),
TokenTx {
entries: vec![
@@ -120,7 +120,7 @@
..empty_entry()
},
],
- outputs: vec![None, token_amount::<0>(1)],
+ outputs: vec![None, token_atoms::<0>(1)],
failed_parsings: vec![],
},
);
@@ -141,7 +141,7 @@
genesis_info: Some(INFO.clone()),
..empty_entry()
}],
- outputs: vec![None, token_amount::<0>(99), token_baton::<0>()],
+ outputs: vec![None, token_atoms::<0>(99), token_baton::<0>()],
failed_parsings: vec![],
},
);
@@ -163,8 +163,8 @@
verify::<3>(
genesis_opreturn(&genesis_info, out_token_type, Some(3), 55),
&[
- spent_amount(meta(TOKEN_ID2, Fungible), 77),
- spent_amount(meta_alp(TOKEN_ID3), 22),
+ spent_atoms(meta(TOKEN_ID2, Fungible), 77),
+ spent_atoms(meta_alp(TOKEN_ID3), 22),
],
),
TokenTx {
@@ -177,20 +177,20 @@
},
TokenTxEntry {
meta: meta(TOKEN_ID2, Fungible),
- actual_burn_amount: 77,
+ actual_burn_atoms: 77,
is_invalid: true,
..empty_entry()
},
TokenTxEntry {
meta: meta_alp(TOKEN_ID3),
- actual_burn_amount: 22,
+ actual_burn_atoms: 22,
is_invalid: true,
..empty_entry()
},
],
outputs: vec![
None,
- token_amount::<0>(55),
+ token_atoms::<0>(55),
None,
token_baton::<0>().filter(|_| out_token_type != MintVault),
],
@@ -206,9 +206,9 @@
verify::<1>(
genesis_opreturn(&INFO, Nft1Child, None, 1),
&[
- spent_amount(meta(TOKEN_ID2, Nft1Group), 77),
- spent_amount(meta(TOKEN_ID2, Nft1Group), 44),
- spent_amount(meta_alp(TOKEN_ID3), 22),
+ spent_atoms(meta(TOKEN_ID2, Nft1Group), 77),
+ spent_atoms(meta(TOKEN_ID2, Nft1Group), 44),
+ spent_atoms(meta_alp(TOKEN_ID3), 22),
],
),
TokenTx {
@@ -222,18 +222,18 @@
},
TokenTxEntry {
meta: meta(TOKEN_ID2, Nft1Group),
- actual_burn_amount: 44,
+ actual_burn_atoms: 44,
is_invalid: true,
..empty_entry()
},
TokenTxEntry {
meta: meta_alp(TOKEN_ID3),
- actual_burn_amount: 22,
+ actual_burn_atoms: 22,
is_invalid: true,
..empty_entry()
},
],
- outputs: vec![None, token_amount::<0>(1),],
+ outputs: vec![None, token_atoms::<0>(1),],
failed_parsings: vec![],
},
);
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_slp_mint.rs b/chronik/bitcoinsuite-slp/tests/test_verify_slp_mint.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_slp_mint.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_slp_mint.rs
@@ -6,8 +6,8 @@
slp::mint_opreturn,
structs::TxType,
test_helpers::{
- empty_entry, meta_alp, meta_slp as meta, spent_amount, spent_baton,
- token_amount, token_baton, verify, TOKEN_ID2, TOKEN_ID3, TOKEN_ID4,
+ empty_entry, meta_alp, meta_slp as meta, spent_atoms, spent_baton,
+ token_atoms, token_baton, verify, TOKEN_ID2, TOKEN_ID3, TOKEN_ID4,
},
token_tx::{TokenTx, TokenTxEntry},
token_type::SlpTokenType::*,
@@ -41,14 +41,14 @@
assert_eq!(
verify::<1>(
mint_opreturn(&TOKEN_ID2, token_type, None, 44),
- &[spent_amount(meta(TOKEN_ID2, token_type), 77)],
+ &[spent_atoms(meta(TOKEN_ID2, token_type), 77)],
),
TokenTx {
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::MINT),
is_invalid: true,
- actual_burn_amount: 77,
+ actual_burn_atoms: 77,
burn_error: Some(BurnError::MissingMintBaton),
..empty_entry()
}],
@@ -142,7 +142,7 @@
}],
outputs: vec![
None,
- token_amount::<0>(44),
+ token_atoms::<0>(44),
None,
token_baton::<0>(),
],
@@ -163,7 +163,7 @@
verify::<3>(
mint_opreturn(&TOKEN_ID2, token_type, Some(3), 44),
&[
- spent_amount(meta(TOKEN_ID2, token_type), 77),
+ spent_atoms(meta(TOKEN_ID2, token_type), 77),
spent_baton(meta(TOKEN_ID2, token_type)),
spent_baton(meta(TOKEN_ID2, wrong_token_type)),
spent_baton(meta(TOKEN_ID3, token_type)),
@@ -175,7 +175,7 @@
TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::MINT),
- actual_burn_amount: 77,
+ actual_burn_atoms: 77,
..empty_entry()
},
TokenTxEntry {
@@ -199,7 +199,7 @@
],
outputs: vec![
None,
- token_amount::<0>(44),
+ token_atoms::<0>(44),
None,
token_baton::<0>(),
],
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_slp_mint_vault.rs b/chronik/bitcoinsuite-slp/tests/test_verify_slp_mint_vault.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_slp_mint_vault.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_slp_mint_vault.rs
@@ -12,8 +12,8 @@
slp::mint_vault_opreturn,
structs::{GenesisInfo, TxType},
test_helpers::{
- empty_entry, meta_alp, meta_slp as meta, spent_amount, spent_baton,
- token_amount, TOKEN_ID2, TOKEN_ID3, TOKEN_ID4, TXID,
+ empty_entry, meta_alp, meta_slp as meta, spent_atoms, spent_baton,
+ token_atoms, TOKEN_ID2, TOKEN_ID3, TOKEN_ID4, TXID,
},
token_tx::{TokenTx, TokenTxEntry},
token_type::SlpTokenType::*,
@@ -31,7 +31,7 @@
TXID,
TxMut {
outputs: [
- [TxOutput { value: 0, script }].as_ref(),
+ [TxOutput { sats: 0, script }].as_ref(),
&vec![TxOutput::default(); N],
]
.concat(),
@@ -137,9 +137,9 @@
}],
outputs: vec![
None,
- token_amount::<0>(30),
+ token_atoms::<0>(30),
None,
- token_amount::<0>(50),
+ token_atoms::<0>(50),
],
failed_parsings: vec![],
},
@@ -167,9 +167,9 @@
}],
outputs: vec![
None,
- token_amount::<0>(30),
+ token_atoms::<0>(30),
None,
- token_amount::<0>(50),
+ token_atoms::<0>(50),
],
failed_parsings: vec![],
},
@@ -182,9 +182,9 @@
verify::<3>(
mint_vault_opreturn(&TOKEN_ID2, [10, 0, 20]),
&[
- spent_amount(meta(TOKEN_ID2, MintVault), 80),
+ spent_atoms(meta(TOKEN_ID2, MintVault), 80),
spent_baton(meta(TOKEN_ID3, Fungible)),
- spent_amount(meta(TOKEN_ID3, Fungible), 800),
+ spent_atoms(meta(TOKEN_ID3, Fungible), 800),
spent_baton(meta_alp(TOKEN_ID4)),
],
&[
@@ -199,14 +199,14 @@
TokenTxEntry {
meta: meta(TOKEN_ID2, MintVault),
tx_type: Some(TxType::MINT),
- actual_burn_amount: 80,
+ actual_burn_atoms: 80,
..empty_entry()
},
TokenTxEntry {
meta: meta(TOKEN_ID3, Fungible),
tx_type: None,
is_invalid: true,
- actual_burn_amount: 800,
+ actual_burn_atoms: 800,
burns_mint_batons: true,
..empty_entry()
},
@@ -220,9 +220,9 @@
],
outputs: vec![
None,
- token_amount::<0>(10),
+ token_atoms::<0>(10),
None,
- token_amount::<0>(20),
+ token_atoms::<0>(20),
],
failed_parsings: vec![],
},
diff --git a/chronik/bitcoinsuite-slp/tests/test_verify_slp_send.rs b/chronik/bitcoinsuite-slp/tests/test_verify_slp_send.rs
--- a/chronik/bitcoinsuite-slp/tests/test_verify_slp_send.rs
+++ b/chronik/bitcoinsuite-slp/tests/test_verify_slp_send.rs
@@ -6,8 +6,8 @@
slp::send_opreturn,
structs::TxType,
test_helpers::{
- empty_entry, meta_slp as meta, spent_amount, spent_amount_group,
- spent_baton, token_amount, verify, TOKEN_ID2, TOKEN_ID3, TOKEN_ID4,
+ empty_entry, meta_slp as meta, spent_atoms, spent_atoms_group,
+ spent_baton, token_atoms, verify, TOKEN_ID2, TOKEN_ID3, TOKEN_ID4,
},
token_tx::{TokenTx, TokenTxEntry},
token_type::SlpTokenType::*,
@@ -44,14 +44,14 @@
assert_eq!(
verify::<1>(
send_opreturn(&TOKEN_ID2, token_type, &[7]),
- &[spent_amount(meta(TOKEN_ID2, token_type), 5)],
+ &[spent_atoms(meta(TOKEN_ID2, token_type), 5)],
),
TokenTx {
entries: vec![TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::SEND),
is_invalid: true,
- actual_burn_amount: 5,
+ actual_burn_atoms: 5,
burn_error: Some(BurnError::InsufficientInputSum {
required: 7,
actual: 5,
@@ -71,7 +71,7 @@
assert_eq!(
verify::<1>(
send_opreturn(&TOKEN_ID2, token_type, &[7]),
- &[spent_amount(meta(TOKEN_ID3, token_type), 7)],
+ &[spent_atoms(meta(TOKEN_ID3, token_type), 7)],
),
TokenTx {
entries: vec![
@@ -87,7 +87,7 @@
},
TokenTxEntry {
meta: meta(TOKEN_ID3, token_type),
- actual_burn_amount: 7,
+ actual_burn_atoms: 7,
is_invalid: true,
..empty_entry()
},
@@ -109,7 +109,7 @@
assert_eq!(
verify::<1>(
send_opreturn(&TOKEN_ID2, wrong_token_type, &[7]),
- &[spent_amount(meta(TOKEN_ID2, token_type), 7)],
+ &[spent_atoms(meta(TOKEN_ID2, token_type), 7)],
),
TokenTx {
entries: vec![
@@ -125,7 +125,7 @@
},
TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
- actual_burn_amount: 7,
+ actual_burn_atoms: 7,
is_invalid: true,
..empty_entry()
},
@@ -149,11 +149,11 @@
&[1, 0xffff_ffff_ffff_0000, 0xffff_ffff_ffff_0001, 2],
),
&[
- spent_amount(
+ spent_atoms(
meta(TOKEN_ID2, token_type),
0xffff_ffff_ffff_0000,
),
- spent_amount(
+ spent_atoms(
meta(TOKEN_ID2, token_type),
0xffff_ffff_ffff_0003,
),
@@ -164,7 +164,7 @@
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::SEND),
is_invalid: true,
- actual_burn_amount: 0x1fffffffffffe0003,
+ actual_burn_atoms: 0x1fffffffffffe0003,
burn_error: Some(BurnError::InsufficientInputSum {
required: 0x1fffffffffffe0004,
actual: 0x1fffffffffffe0003,
@@ -202,7 +202,7 @@
assert_eq!(
verify::<4>(
send_opreturn(&TOKEN_ID2, token_type, &[1, 2, 0, 4]),
- &[spent_amount(meta(TOKEN_ID2, token_type), 7)],
+ &[spent_atoms(meta(TOKEN_ID2, token_type), 7)],
),
TokenTx {
entries: vec![TokenTxEntry {
@@ -212,10 +212,10 @@
}],
outputs: vec![
None,
- token_amount::<0>(1),
- token_amount::<0>(2),
+ token_atoms::<0>(1),
+ token_atoms::<0>(2),
None,
- token_amount::<0>(4),
+ token_atoms::<0>(4),
],
failed_parsings: vec![],
},
@@ -229,7 +229,7 @@
assert_eq!(
verify::<1>(
send_opreturn(&TOKEN_ID2, Nft1Child, &[1]),
- &[spent_amount_group(
+ &[spent_atoms_group(
meta(TOKEN_ID3, Nft1Child),
1,
meta(TOKEN_ID4, Nft1Group),
@@ -253,7 +253,7 @@
tx_type: None,
// group still carried over even when burned
group_token_meta: Some(meta(TOKEN_ID4, Nft1Group)),
- actual_burn_amount: 1,
+ actual_burn_atoms: 1,
is_invalid: true,
..empty_entry()
},
@@ -266,7 +266,7 @@
assert_eq!(
verify::<1>(
send_opreturn(&TOKEN_ID2, Fungible, &[1]),
- &[spent_amount_group(
+ &[spent_atoms_group(
meta(TOKEN_ID2, Nft1Child),
1,
meta(TOKEN_ID3, Nft1Group),
@@ -287,7 +287,7 @@
TokenTxEntry {
meta: meta(TOKEN_ID2, Nft1Child),
group_token_meta: Some(meta(TOKEN_ID3, Nft1Group)),
- actual_burn_amount: 1,
+ actual_burn_atoms: 1,
is_invalid: true,
..empty_entry()
},
@@ -304,7 +304,7 @@
assert_eq!(
verify::<4>(
send_opreturn(&TOKEN_ID2, Nft1Child, &[1, 2, 0, 4]),
- &[spent_amount_group(
+ &[spent_atoms_group(
meta(TOKEN_ID2, Nft1Child),
7,
meta(TOKEN_ID3, Nft1Group),
@@ -319,10 +319,10 @@
}],
outputs: vec![
None,
- token_amount::<0>(1),
- token_amount::<0>(2),
+ token_atoms::<0>(1),
+ token_atoms::<0>(2),
None,
- token_amount::<0>(4),
+ token_atoms::<0>(4),
],
failed_parsings: vec![],
},
@@ -334,7 +334,7 @@
assert_eq!(
verify::<4>(
send_opreturn(&TOKEN_ID2, Nft1Child, &[1, 2, 0, 4]),
- &[spent_amount_group(
+ &[spent_atoms_group(
meta(TOKEN_ID2, Nft1Child),
7,
meta(TOKEN_ID3, Nft1Group)
@@ -349,10 +349,10 @@
}],
outputs: vec![
None,
- token_amount::<0>(1),
- token_amount::<0>(2),
+ token_atoms::<0>(1),
+ token_atoms::<0>(2),
None,
- token_amount::<0>(4),
+ token_atoms::<0>(4),
],
failed_parsings: vec![],
},
@@ -370,11 +370,11 @@
&[1, 0xffff_ffff_ffff_0000, 0xffff_ffff_ffff_0001, 2],
),
&[
- spent_amount(
+ spent_atoms(
meta(TOKEN_ID2, token_type),
0xffff_ffff_ffff_0000,
),
- spent_amount(
+ spent_atoms(
meta(TOKEN_ID2, token_type),
0xffff_ffff_ffff_0004,
),
@@ -388,10 +388,10 @@
}],
outputs: vec![
None,
- token_amount::<0>(1),
- token_amount::<0>(0xffff_ffff_ffff_0000),
- token_amount::<0>(0xffff_ffff_ffff_0001),
- token_amount::<0>(2),
+ token_atoms::<0>(1),
+ token_atoms::<0>(0xffff_ffff_ffff_0000),
+ token_atoms::<0>(0xffff_ffff_ffff_0001),
+ token_atoms::<0>(2),
],
failed_parsings: vec![],
},
@@ -410,20 +410,20 @@
&[0xffff_ffff_ffff_0000, 0xffff_ffff_ffff_0002, 1],
),
&[
- spent_amount(
+ spent_atoms(
meta(TOKEN_ID2, token_type),
0xffff_ffff_ffff_0000,
),
- spent_amount(
+ spent_atoms(
meta(TOKEN_ID2, token_type),
0xefff_ffff_ffff_0000,
),
- spent_amount(
+ spent_atoms(
meta(TOKEN_ID2, token_type),
0x2fff_ffff_ffff_0000,
),
- spent_amount(meta(TOKEN_ID2, token_type), 10),
- spent_amount(meta(TOKEN_ID3, Nft1Child), 1),
+ spent_atoms(meta(TOKEN_ID2, token_type), 10),
+ spent_atoms(meta(TOKEN_ID3, Nft1Child), 1),
spent_baton(meta(TOKEN_ID4, Fungible)),
],
),
@@ -432,13 +432,13 @@
TokenTxEntry {
meta: meta(TOKEN_ID2, token_type),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 0x1fff_ffff_ffff_0007,
+ actual_burn_atoms: 0x1fff_ffff_ffff_0007,
..empty_entry()
},
TokenTxEntry {
meta: meta(TOKEN_ID3, Nft1Child),
tx_type: None,
- actual_burn_amount: 1,
+ actual_burn_atoms: 1,
is_invalid: true,
..empty_entry()
},
@@ -452,9 +452,9 @@
],
outputs: vec![
None,
- token_amount::<0>(0xffff_ffff_ffff_0000),
- token_amount::<0>(0xffff_ffff_ffff_0002),
- token_amount::<0>(1),
+ token_atoms::<0>(0xffff_ffff_ffff_0000),
+ token_atoms::<0>(0xffff_ffff_ffff_0002),
+ token_atoms::<0>(1),
],
failed_parsings: vec![],
},
diff --git a/chronik/chronik-bridge/src/ffi.rs b/chronik/chronik-bridge/src/ffi.rs
--- a/chronik/chronik-bridge/src/ffi.rs
+++ b/chronik/chronik-bridge/src/ffi.rs
@@ -110,7 +110,7 @@
#[derive(Clone, Debug, Default, Eq, PartialEq)]
pub struct TxOutput {
/// Value of the output.
- pub value: i64,
+ pub sats: i64,
/// Script locking the output.
pub script: Vec<u8>,
}
diff --git a/chronik/chronik-bridge/src/util.rs b/chronik/chronik-bridge/src/util.rs
--- a/chronik/chronik-bridge/src/util.rs
+++ b/chronik/chronik-bridge/src/util.rs
@@ -89,7 +89,7 @@
impl From<ffi::TxOutput> for TxOutput {
fn from(output: ffi::TxOutput) -> Self {
TxOutput {
- value: output.value,
+ sats: output.sats,
script: Script::new(output.script.into()),
}
}
@@ -98,7 +98,7 @@
impl From<TxOutput> for ffi::TxOutput {
fn from(output: TxOutput) -> Self {
ffi::TxOutput {
- value: output.value,
+ sats: output.sats,
script: output.script.to_vec(),
}
}
diff --git a/chronik/chronik-cpp/chronik_bridge.cpp b/chronik/chronik-cpp/chronik_bridge.cpp
--- a/chronik/chronik-cpp/chronik_bridge.cpp
+++ b/chronik/chronik-cpp/chronik_bridge.cpp
@@ -35,7 +35,7 @@
chronik_bridge::TxOutput BridgeTxOutput(const CTxOut &output) {
return {
- .value = output.nValue / Amount::satoshi(),
+ .sats = output.nValue / Amount::satoshi(),
.script = chronik::util::ToRustVec<uint8_t>(output.scriptPubKey),
};
}
diff --git a/chronik/chronik-db/src/group.rs b/chronik/chronik-db/src/group.rs
--- a/chronik/chronik-db/src/group.rs
+++ b/chronik/chronik-db/src/group.rs
@@ -133,24 +133,24 @@
fn from_output(output: &TxOutput) -> Self;
}
-/// [`UtxoData`] that only stores the output value but not the script.
+/// [`UtxoData`] that only stores the output sats but not the script.
/// This is useful where the member itself is the script so storing it would be
/// redundant.
pub type UtxoDataValue = i64;
impl UtxoData for UtxoDataValue {
fn from_output(output: &TxOutput) -> Self {
- output.value
+ output.sats
}
}
-/// [`UtxoData`] that stores the full output, including value and script.
+/// [`UtxoData`] that stores the full output, including sats and script.
/// This is useful where the member isn't the script, e.g. a token ID.
pub type UtxoDataOutput = (i64, Bytes);
impl UtxoData for UtxoDataOutput {
fn from_output(output: &TxOutput) -> Self {
- (output.value, output.script.bytecode().clone())
+ (output.sats, output.script.bytecode().clone())
}
}
diff --git a/chronik/chronik-db/src/io/block_stats.rs b/chronik/chronik-db/src/io/block_stats.rs
--- a/chronik/chronik-db/src/io/block_stats.rs
+++ b/chronik/chronik-db/src/io/block_stats.rs
@@ -86,18 +86,18 @@
for tx in txs {
for output in &tx.tx.outputs {
if output.script.is_opreturn() {
- sum_burned_sats += output.value;
+ sum_burned_sats += output.sats;
}
}
let tx_output_sats =
- tx.tx.outputs.iter().map(|output| output.value).sum::<i64>();
+ tx.tx.outputs.iter().map(|output| output.sats).sum::<i64>();
if tx.is_coinbase {
sum_coinbase_output_sats += tx_output_sats;
} else {
sum_normal_output_sats += tx_output_sats;
for input in &tx.tx.inputs {
if let Some(coin) = input.coin.as_ref() {
- sum_input_sats += coin.output.value;
+ sum_input_sats += coin.output.sats;
}
}
}
@@ -216,7 +216,7 @@
.inputs
.clone(),
outputs: vec![TxOutput {
- value: 60,
+ sats: 60,
script: {
let mut script = ScriptMut::default();
script.put_opcodes([OP_RETURN, OP_1]);
diff --git a/chronik/chronik-db/src/io/token/batch.rs b/chronik/chronik-db/src/io/token/batch.rs
--- a/chronik/chronik-db/src/io/token/batch.rs
+++ b/chronik/chronik-db/src/io/token/batch.rs
@@ -454,8 +454,8 @@
return DbToken::NoToken;
};
match token.variant {
- TokenVariant::Amount(amount) => {
- DbToken::Amount(meta_idx(&token.meta, metas), amount)
+ TokenVariant::Atoms(atoms) => {
+ DbToken::Atoms(meta_idx(&token.meta, metas), atoms)
}
TokenVariant::MintBaton => {
DbToken::MintBaton(meta_idx(&token.meta, metas))
diff --git a/chronik/chronik-db/src/io/token/data.rs b/chronik/chronik-db/src/io/token/data.rs
--- a/chronik/chronik-db/src/io/token/data.rs
+++ b/chronik/chronik-db/src/io/token/data.rs
@@ -7,7 +7,7 @@
use std::collections::BTreeMap;
use bitcoinsuite_slp::{
- structs::{Amount, Token, TokenMeta, TokenVariant},
+ structs::{Atoms, Token, TokenMeta, TokenVariant},
token_id::TokenId,
token_type::{AlpTokenType, SlpTokenType, TokenType},
verify::SpentToken,
@@ -49,8 +49,8 @@
pub enum DbToken {
/// No token value
NoToken,
- /// Token amount
- Amount(TokenIdx, Amount),
+ /// Token amount in atoms (base tokens)
+ Atoms(TokenIdx, Atoms),
/// Mint baton
MintBaton(TokenIdx),
/// Unknown SLP token
@@ -84,7 +84,7 @@
) -> Result<Option<SpentToken>, E> {
let (token_num_idx, variant) = match *db_token {
DbToken::NoToken => return Ok(None),
- DbToken::Amount(idx, amount) => (idx, TokenVariant::Amount(amount)),
+ DbToken::Atoms(idx, atoms) => (idx, TokenVariant::Atoms(atoms)),
DbToken::MintBaton(idx) => (idx, TokenVariant::MintBaton),
DbToken::UnknownSlp(byte) | DbToken::UnknownAlp(byte) => {
let token_type = match *db_token {
@@ -135,7 +135,7 @@
/// Create a new [`DbToken`] but with a different index.
pub fn with_idx(&self, idx: TokenIdx) -> Self {
match *self {
- DbToken::Amount(_, amount) => DbToken::Amount(idx, amount),
+ DbToken::Atoms(_, atoms) => DbToken::Atoms(idx, atoms),
DbToken::MintBaton(_) => DbToken::MintBaton(idx),
_ => *self,
}
@@ -146,7 +146,7 @@
pub fn token_num_idx(&self) -> Option<TokenIdx> {
match *self {
DbToken::NoToken => None,
- DbToken::Amount(idx, _) => Some(idx),
+ DbToken::Atoms(idx, _) => Some(idx),
DbToken::MintBaton(idx) => Some(idx),
DbToken::UnknownSlp(_) => None,
DbToken::UnknownAlp(_) => None,
diff --git a/chronik/chronik-db/src/io/token/tests/mock.rs b/chronik/chronik-db/src/io/token/tests/mock.rs
--- a/chronik/chronik-db/src/io/token/tests/mock.rs
+++ b/chronik/chronik-db/src/io/token/tests/mock.rs
@@ -7,7 +7,7 @@
script::Script,
tx::{Coin, OutPoint, Tx, TxId, TxInput, TxMut, TxOutput},
};
-use bitcoinsuite_slp::{structs::Amount, token_id::TokenId};
+use bitcoinsuite_slp::{structs::Atoms, token_id::TokenId};
use rocksdb::WriteBatch;
use crate::{
@@ -28,8 +28,8 @@
TokenId::new(TxId::new([num; 32]))
}
-pub(crate) fn db_amount<const N: u32>(amount: Amount) -> DbToken {
- DbToken::Amount(N, amount)
+pub(crate) fn db_atoms<const N: u32>(atoms: Atoms) -> DbToken {
+ DbToken::Atoms(N, atoms)
}
pub(crate) fn db_baton<const N: u32>() -> DbToken {
@@ -55,7 +55,7 @@
},
coin: Some(Coin {
output: TxOutput {
- value: 0,
+ sats: 0,
script: Script::EMPTY,
},
..Default::default()
@@ -64,7 +64,7 @@
})
.collect(),
outputs: [TxOutput {
- value: 0,
+ sats: 0,
script: op_return_script,
}]
.into_iter()
@@ -93,14 +93,14 @@
out_idx,
},
coin: Some(Coin {
- output: TxOutput { value: 0, script },
+ output: TxOutput { sats: 0, script },
..Default::default()
}),
..Default::default()
})
.collect(),
outputs: [TxOutput {
- value: 0,
+ sats: 0,
script: op_return_script,
}]
.into_iter()
diff --git a/chronik/chronik-db/src/io/token/tests/test_batch_alp.rs b/chronik/chronik-db/src/io/token/tests/test_batch_alp.rs
--- a/chronik/chronik-db/src/io/token/tests/test_batch_alp.rs
+++ b/chronik/chronik-db/src/io/token/tests/test_batch_alp.rs
@@ -14,7 +14,7 @@
use pretty_assertions::assert_eq;
use crate::io::token::{
- tests::mock::{db_amount, db_baton, make_tx, token_id, MockTokenDb},
+ tests::mock::{db_atoms, db_baton, make_tx, token_id, MockTokenDb},
DbToken::NoToken,
DbTokenTx, TokenReader,
};
@@ -86,9 +86,9 @@
inputs: vec![],
outputs: vec![
NoToken,
- db_amount::<0>(1),
+ db_atoms::<0>(1),
NoToken,
- db_amount::<0>(3),
+ db_atoms::<0>(3),
db_baton::<0>(),
db_baton::<0>(),
],
@@ -105,10 +105,10 @@
inputs: vec![db_baton::<0>()],
outputs: vec![
NoToken,
- db_amount::<0>(4),
+ db_atoms::<0>(4),
NoToken,
NoToken,
- db_amount::<0>(5),
+ db_atoms::<0>(5),
db_baton::<0>(),
],
..Default::default()
@@ -121,12 +121,12 @@
token_reader.token_tx(3)?,
Some(DbTokenTx {
token_tx_nums: vec![1],
- inputs: vec![db_amount::<0>(3), db_amount::<0>(4)],
+ inputs: vec![db_atoms::<0>(3), db_atoms::<0>(4)],
outputs: vec![
+ NoToken, // Add empty comment for linter
+ db_atoms::<0>(1),
NoToken,
- db_amount::<0>(1),
- NoToken,
- db_amount::<0>(6),
+ db_atoms::<0>(6),
],
..Default::default()
}),
@@ -166,12 +166,12 @@
token_reader.token_tx(5)?,
Some(DbTokenTx {
token_tx_nums: vec![5, 1],
- inputs: vec![db_baton::<1>(), db_amount::<1>(1)],
+ inputs: vec![db_baton::<1>(), db_atoms::<1>(1)],
outputs: vec![
NoToken,
- db_amount::<0>(100),
- db_amount::<1>(4),
- db_amount::<0>(200),
+ db_atoms::<0>(100),
+ db_atoms::<1>(4),
+ db_atoms::<0>(200),
db_baton::<0>(),
db_baton::<1>(),
],
diff --git a/chronik/chronik-db/src/io/token/tests/test_batch_burn.rs b/chronik/chronik-db/src/io/token/tests/test_batch_burn.rs
--- a/chronik/chronik-db/src/io/token/tests/test_batch_burn.rs
+++ b/chronik/chronik-db/src/io/token/tests/test_batch_burn.rs
@@ -14,7 +14,7 @@
use pretty_assertions::assert_eq;
use crate::io::token::{
- tests::mock::{db_amount, make_tx, token_id, MockTokenDb},
+ tests::mock::{db_atoms, make_tx, token_id, MockTokenDb},
DbToken::NoToken,
DbTokenTx, TokenReader,
};
@@ -78,7 +78,7 @@
token_reader.token_tx(5)?,
Some(DbTokenTx {
token_tx_nums: vec![3],
- inputs: vec![db_amount::<0>(1000)],
+ inputs: vec![db_atoms::<0>(1000)],
outputs: vec![NoToken],
..Default::default()
}),
@@ -88,7 +88,7 @@
token_reader.token_tx(6)?,
Some(DbTokenTx {
token_tx_nums: vec![4],
- inputs: vec![db_amount::<0>(1000)],
+ inputs: vec![db_atoms::<0>(1000)],
outputs: vec![NoToken],
..Default::default()
}),
diff --git a/chronik/chronik-db/src/io/token/tests/test_batch_common.rs b/chronik/chronik-db/src/io/token/tests/test_batch_common.rs
--- a/chronik/chronik-db/src/io/token/tests/test_batch_common.rs
+++ b/chronik/chronik-db/src/io/token/tests/test_batch_common.rs
@@ -15,7 +15,7 @@
use pretty_assertions::assert_eq;
use crate::io::token::{
- tests::mock::{db_amount, db_baton, make_tx, token_id, MockTokenDb},
+ tests::mock::{db_atoms, db_baton, make_tx, token_id, MockTokenDb},
BatchError,
DbToken::NoToken,
DbTokenTx, TokenReader,
@@ -165,7 +165,7 @@
Some(DbTokenTx {
token_tx_nums: vec![4],
inputs: vec![],
- outputs: vec![NoToken, db_amount::<0>(1000), db_baton::<0>()],
+ outputs: vec![NoToken, db_atoms::<0>(1000), db_baton::<0>()],
..Default::default()
}),
);
@@ -179,8 +179,8 @@
token_reader.token_tx(2)?,
Some(DbTokenTx {
token_tx_nums: vec![4],
- inputs: vec![db_amount::<0>(1000)],
- outputs: vec![NoToken, db_amount::<0>(400)],
+ inputs: vec![db_atoms::<0>(1000)],
+ outputs: vec![NoToken, db_atoms::<0>(400)],
..Default::default()
}),
);
@@ -191,8 +191,8 @@
token_reader.token_tx(3)?,
Some(DbTokenTx {
token_tx_nums: vec![4],
- inputs: vec![db_amount::<0>(400)],
- outputs: vec![NoToken, db_amount::<0>(300), db_amount::<0>(100),],
+ inputs: vec![db_atoms::<0>(400)],
+ outputs: vec![NoToken, db_atoms::<0>(300), db_atoms::<0>(100),],
..Default::default()
}),
);
@@ -203,7 +203,7 @@
token_reader.token_tx(1)?,
Some(DbTokenTx {
token_tx_nums: vec![4],
- inputs: vec![db_amount::<0>(300)],
+ inputs: vec![db_atoms::<0>(300)],
outputs: vec![NoToken, NoToken, NoToken],
..Default::default()
}),
diff --git a/chronik/chronik-db/src/io/token/tests/test_batch_genesis.rs b/chronik/chronik-db/src/io/token/tests/test_batch_genesis.rs
--- a/chronik/chronik-db/src/io/token/tests/test_batch_genesis.rs
+++ b/chronik/chronik-db/src/io/token/tests/test_batch_genesis.rs
@@ -15,7 +15,7 @@
use pretty_assertions::assert_eq;
use crate::io::token::{
- tests::mock::{db_amount, db_baton, make_tx, token_id, MockTokenDb},
+ tests::mock::{db_atoms, db_baton, make_tx, token_id, MockTokenDb},
DbToken::NoToken,
DbTokenTx, TokenReader,
};
@@ -53,7 +53,7 @@
inputs: vec![],
outputs: vec![
NoToken,
- db_amount::<0>(1000),
+ db_atoms::<0>(1000),
NoToken,
db_baton::<0>(),
],
@@ -109,9 +109,9 @@
inputs: vec![],
outputs: vec![
NoToken,
- db_amount::<0>(100),
+ db_atoms::<0>(100),
NoToken,
- db_amount::<0>(200),
+ db_atoms::<0>(200),
db_baton::<0>(),
db_baton::<0>(),
],
diff --git a/chronik/chronik-db/src/io/token/tests/test_batch_nft.rs b/chronik/chronik-db/src/io/token/tests/test_batch_nft.rs
--- a/chronik/chronik-db/src/io/token/tests/test_batch_nft.rs
+++ b/chronik/chronik-db/src/io/token/tests/test_batch_nft.rs
@@ -13,7 +13,7 @@
use pretty_assertions::assert_eq;
use crate::io::token::{
- tests::mock::{db_amount, db_baton, make_tx, token_id, MockTokenDb},
+ tests::mock::{db_atoms, db_baton, make_tx, token_id, MockTokenDb},
DbToken::NoToken,
DbTokenTx, TokenReader,
};
@@ -69,7 +69,7 @@
Some(DbTokenTx {
token_tx_nums: vec![1],
inputs: vec![],
- outputs: vec![NoToken, db_amount::<0>(1000), db_baton::<0>()],
+ outputs: vec![NoToken, db_atoms::<0>(1000), db_baton::<0>()],
..Default::default()
}),
);
@@ -83,14 +83,14 @@
token_reader.token_tx(2)?,
Some(DbTokenTx {
token_tx_nums: vec![1],
- inputs: vec![db_amount::<0>(1000)],
+ inputs: vec![db_atoms::<0>(1000)],
outputs: vec![
NoToken,
- db_amount::<0>(1),
- db_amount::<0>(1),
- db_amount::<0>(1),
- db_amount::<0>(1),
- db_amount::<0>(996),
+ db_atoms::<0>(1),
+ db_atoms::<0>(1),
+ db_atoms::<0>(1),
+ db_atoms::<0>(1),
+ db_atoms::<0>(996),
],
..Default::default()
}),
@@ -103,8 +103,8 @@
Some(DbTokenTx {
token_tx_nums: vec![3, 1],
group_token_indices: vec![(0, 1)].into_iter().collect(),
- inputs: vec![db_amount::<1>(1)],
- outputs: vec![NoToken, db_amount::<0>(1)],
+ inputs: vec![db_atoms::<1>(1)],
+ outputs: vec![NoToken, db_atoms::<0>(1)],
..Default::default()
}),
);
@@ -119,8 +119,8 @@
Some(DbTokenTx {
token_tx_nums: vec![4, 1],
group_token_indices: vec![(0, 1)].into_iter().collect(),
- inputs: vec![db_amount::<1>(1)],
- outputs: vec![NoToken, db_amount::<0>(1)],
+ inputs: vec![db_atoms::<1>(1)],
+ outputs: vec![NoToken, db_atoms::<0>(1)],
..Default::default()
}),
);
@@ -158,8 +158,8 @@
Some(DbTokenTx {
token_tx_nums: vec![7, 1],
group_token_indices: vec![(0, 1)].into_iter().collect(),
- inputs: vec![db_amount::<1>(1)],
- outputs: vec![NoToken, db_amount::<0>(1)],
+ inputs: vec![db_atoms::<1>(1)],
+ outputs: vec![NoToken, db_atoms::<0>(1)],
..Default::default()
}),
);
@@ -175,10 +175,10 @@
token_tx_nums: vec![1, 3, 7],
group_token_indices: vec![(1, 0), (2, 0)].into_iter().collect(),
inputs: vec![
- db_amount::<0>(1),
- db_amount::<1>(1),
+ db_atoms::<0>(1),
+ db_atoms::<1>(1),
NoToken,
- db_amount::<2>(1)
+ db_atoms::<2>(1)
],
outputs: vec![NoToken, NoToken],
..Default::default()
diff --git a/chronik/chronik-db/src/io/token/tests/test_batch_unknown.rs b/chronik/chronik-db/src/io/token/tests/test_batch_unknown.rs
--- a/chronik/chronik-db/src/io/token/tests/test_batch_unknown.rs
+++ b/chronik/chronik-db/src/io/token/tests/test_batch_unknown.rs
@@ -11,7 +11,7 @@
use pretty_assertions::assert_eq;
use crate::io::token::{
- tests::mock::{db_amount, make_tx, MockTokenDb},
+ tests::mock::{db_atoms, make_tx, MockTokenDb},
DbToken::{NoToken, UnknownAlp, UnknownSlp},
DbTokenTx, TokenReader,
};
@@ -58,7 +58,7 @@
token_reader.token_tx(3)?,
Some(DbTokenTx {
token_tx_nums: vec![1],
- inputs: vec![db_amount::<0>(1000)],
+ inputs: vec![db_atoms::<0>(1000)],
outputs: vec![NoToken, UnknownAlp(0x22), UnknownAlp(0x22)],
..Default::default()
}),
diff --git a/chronik/chronik-db/src/io/token/tests/test_batch_vault.rs b/chronik/chronik-db/src/io/token/tests/test_batch_vault.rs
--- a/chronik/chronik-db/src/io/token/tests/test_batch_vault.rs
+++ b/chronik/chronik-db/src/io/token/tests/test_batch_vault.rs
@@ -14,7 +14,7 @@
use crate::io::token::{
tests::mock::{
- db_amount, make_tx, make_tx_with_scripts, token_id, MockTokenDb,
+ db_atoms, make_tx, make_tx_with_scripts, token_id, MockTokenDb,
},
DbToken::NoToken,
DbTokenTx, TokenReader, FLAGS_HAS_MINT_VAULT,
@@ -68,7 +68,7 @@
Some(DbTokenTx {
token_tx_nums: vec![2],
inputs: vec![NoToken],
- outputs: vec![NoToken, db_amount::<0>(2000)],
+ outputs: vec![NoToken, db_atoms::<0>(2000)],
..Default::default()
}),
);
@@ -106,7 +106,7 @@
Some(DbTokenTx {
token_tx_nums: vec![2],
inputs: vec![NoToken],
- outputs: vec![NoToken, db_amount::<0>(3000), db_amount::<0>(4000)],
+ outputs: vec![NoToken, db_atoms::<0>(3000), db_atoms::<0>(4000)],
flags: FLAGS_HAS_MINT_VAULT,
..Default::default()
}),
@@ -116,8 +116,8 @@
token_reader.token_tx(7)?,
Some(DbTokenTx {
token_tx_nums: vec![2],
- inputs: vec![db_amount::<0>(2000), db_amount::<0>(3000)],
- outputs: vec![NoToken, db_amount::<0>(4500), db_amount::<0>(500)],
+ inputs: vec![db_atoms::<0>(2000), db_atoms::<0>(3000)],
+ outputs: vec![NoToken, db_atoms::<0>(4500), db_atoms::<0>(500)],
flags: 0,
..Default::default()
}),
diff --git a/chronik/chronik-db/src/mem/tokens.rs b/chronik/chronik-db/src/mem/tokens.rs
--- a/chronik/chronik-db/src/mem/tokens.rs
+++ b/chronik/chronik-db/src/mem/tokens.rs
@@ -337,9 +337,9 @@
},
structs::{GenesisInfo, TxType},
test_helpers::{
- empty_entry, meta_slp, spent_amount, spent_amount_group,
- spent_baton, token_amount, token_baton, TOKEN_ID1, TOKEN_ID3,
- TOKEN_ID4, TOKEN_ID5, TOKEN_ID8,
+ empty_entry, meta_slp, spent_atoms, spent_atoms_group, spent_baton,
+ token_atoms, token_baton, TOKEN_ID1, TOKEN_ID3, TOKEN_ID4,
+ TOKEN_ID5, TOKEN_ID8,
},
token_tx::{TokenTx, TokenTxEntry},
token_type::SlpTokenType::*,
@@ -433,7 +433,7 @@
entries: vec![TokenTxEntry {
meta: meta_slp(TOKEN_ID1, Fungible),
tx_type: Some(TxType::BURN),
- intentional_burn_amount: Some(1000),
+ intentional_burn_atoms: Some(1000),
..empty_entry()
}],
outputs: vec![None, None],
@@ -495,8 +495,8 @@
..empty_entry()
}],
outputs: vec![
- None,
- token_amount::<0>(1234),
+ None, // Add empty comment for linter
+ token_atoms::<0>(1234),
token_baton::<0>(),
],
failed_parsings: vec![],
@@ -505,7 +505,7 @@
assert_eq!(mem_tokens().tx_token_inputs(&txid(3)), None);
assert_eq!(
mem_tokens().spent_token(&outpoint(3, 1))?,
- spent_amount(meta_slp(TOKEN_ID3, Fungible), 1234),
+ spent_atoms(meta_slp(TOKEN_ID3, Fungible), 1234),
);
assert_eq!(
mem_tokens().spent_token(&outpoint(3, 2))?,
@@ -539,7 +539,7 @@
genesis_info: Some(genesis_info),
..empty_entry()
}],
- outputs: vec![None, token_amount::<0>(1000)],
+ outputs: vec![None, token_atoms::<0>(1000)],
failed_parsings: vec![],
}),
);
@@ -565,7 +565,7 @@
genesis_info: Some(GenesisInfo::empty_slp()),
..empty_entry()
}],
- outputs: vec![None, token_amount::<0>(10), token_baton::<0>()],
+ outputs: vec![None, token_atoms::<0>(10), token_baton::<0>()],
failed_parsings: vec![],
}),
);
@@ -612,17 +612,17 @@
}],
outputs: vec![
None,
- token_amount::<0>(1),
- token_amount::<0>(2),
- token_amount::<0>(3),
- token_amount::<0>(4),
+ token_atoms::<0>(1),
+ token_atoms::<0>(2),
+ token_atoms::<0>(3),
+ token_atoms::<0>(4),
],
failed_parsings: vec![],
}),
);
assert_eq!(
mem_tokens().tx_token_inputs(&txid(7)),
- Some([spent_amount(meta_slp(TOKEN_ID5, Nft1Group), 10)].as_ref()),
+ Some([spent_atoms(meta_slp(TOKEN_ID5, Nft1Group), 10)].as_ref()),
);
// Tx 8: Valid NFT1 CHILD GENESIS using mempool SEND output, also burn
@@ -651,7 +651,7 @@
TokenTxEntry {
meta: meta_slp(TOKEN_ID4, MintVault),
is_invalid: true,
- actual_burn_amount: 1000,
+ actual_burn_atoms: 1000,
..empty_entry()
},
TokenTxEntry {
@@ -659,7 +659,7 @@
..empty_entry()
},
],
- outputs: vec![None, token_amount::<0>(1)],
+ outputs: vec![None, token_atoms::<0>(1)],
failed_parsings: vec![],
}),
);
@@ -667,8 +667,8 @@
mem_tokens().tx_token_inputs(&txid(8)),
Some(
[
- spent_amount(meta_slp(TOKEN_ID5, Nft1Group), 1),
- spent_amount(meta_slp(TOKEN_ID4, MintVault), 1000),
+ spent_atoms(meta_slp(TOKEN_ID5, Nft1Group), 1),
+ spent_atoms(meta_slp(TOKEN_ID4, MintVault), 1000),
]
.as_ref()
),
@@ -716,7 +716,7 @@
tx_type: Some(TxType::MINT),
..empty_entry()
}],
- outputs: vec![None, token_amount::<0>(123)],
+ outputs: vec![None, token_atoms::<0>(123)],
failed_parsings: vec![],
}),
);
@@ -736,29 +736,29 @@
TokenTxEntry {
meta: meta_slp(TOKEN_ID3, Fungible),
tx_type: Some(TxType::SEND),
- actual_burn_amount: 234,
+ actual_burn_atoms: 234,
..empty_entry()
},
TokenTxEntry {
meta: meta_slp(TOKEN_ID4, MintVault),
is_invalid: true,
- actual_burn_amount: 123,
+ actual_burn_atoms: 123,
..empty_entry()
},
TokenTxEntry {
meta: meta_slp(TOKEN_ID8, Nft1Child),
group_token_meta: Some(meta_slp(TOKEN_ID5, Nft1Group)),
is_invalid: true,
- actual_burn_amount: 1,
+ actual_burn_atoms: 1,
..empty_entry()
},
],
outputs: vec![
None,
- token_amount::<0>(100),
- token_amount::<0>(200),
- token_amount::<0>(300),
- token_amount::<0>(400),
+ token_atoms::<0>(100),
+ token_atoms::<0>(200),
+ token_atoms::<0>(300),
+ token_atoms::<0>(400),
],
failed_parsings: vec![],
}),
@@ -767,13 +767,13 @@
mem_tokens().tx_token_inputs(&txid(11)),
Some(
[
- spent_amount(meta_slp(TOKEN_ID3, Fungible), 1234),
- spent_amount_group(
+ spent_atoms(meta_slp(TOKEN_ID3, Fungible), 1234),
+ spent_atoms_group(
meta_slp(TOKEN_ID8, Nft1Child),
1,
meta_slp(TOKEN_ID5, Nft1Group),
),
- spent_amount(meta_slp(TOKEN_ID4, MintVault), 123),
+ spent_atoms(meta_slp(TOKEN_ID4, MintVault), 123),
]
.as_ref()
),
@@ -788,7 +788,7 @@
meta: meta_slp(TOKEN_ID3, Fungible),
tx_type: None,
is_invalid: true,
- actual_burn_amount: 200,
+ actual_burn_atoms: 200,
..empty_entry()
}],
outputs: vec![None; 3],
@@ -797,7 +797,7 @@
);
assert_eq!(
mem_tokens().tx_token_inputs(&txid(12)),
- Some([spent_amount(meta_slp(TOKEN_ID3, Fungible), 200)].as_ref()),
+ Some([spent_atoms(meta_slp(TOKEN_ID3, Fungible), 200)].as_ref()),
);
// Test fetch_tx_spent_tokens
@@ -869,7 +869,7 @@
&db,
is_mempool_tx,
)?,
- Ok(vec![spent_amount_group(
+ Ok(vec![spent_atoms_group(
meta_slp(TOKEN_ID8, Nft1Child),
1,
meta_slp(TOKEN_ID5, Nft1Group),
diff --git a/chronik/chronik-db/src/plugins/io.rs b/chronik/chronik-db/src/plugins/io.rs
--- a/chronik/chronik-db/src/plugins/io.rs
+++ b/chronik/chronik-db/src/plugins/io.rs
@@ -482,7 +482,7 @@
use bitcoinsuite_core::{net::Net, script::Script, tx::Tx};
use bitcoinsuite_slp::{
test_helpers::{
- empty_entry, meta_alp, spent_amount, token_amount, TOKEN_ID1,
+ empty_entry, meta_alp, spent_atoms, token_atoms, TOKEN_ID1,
},
token_tx::{TokenTx, TokenTxEntry},
};
@@ -618,7 +618,7 @@
",
)?;
- // Plugin that sums up the input and output token amounts
+ // Plugin that sums up the input and output token atomss
File::create(tempdir.path().join("summer.py"))?.write_all(
b"
from chronik_plugin.plugin import Plugin, PluginOutput
@@ -628,8 +628,8 @@
def version(self):
return '0.0.0'
def run(self, tx):
- input_sum = sum(iput.output.token.amount for iput in tx.inputs)
- output_sum = sum(output.token.amount for output in tx.outputs[1:])
+ input_sum = sum(iput.output.token.atoms for iput in tx.inputs)
+ output_sum = sum(output.token.atoms for output in tx.outputs[1:])
return [PluginOutput(
idx=1,
data=[bytes([input_sum]), bytes([output_sum])],
@@ -852,8 +852,8 @@
}],
outputs: vec![
None,
- token_amount::<0>(50),
- token_amount::<0>(10),
+ token_atoms::<0>(50),
+ token_atoms::<0>(10),
],
..Default::default()
},
@@ -863,8 +863,8 @@
spent_tokens: vec![(
7,
vec![
- spent_amount(meta_alp(TOKEN_ID1), 20),
- spent_amount(meta_alp(TOKEN_ID1), 15),
+ spent_atoms(meta_alp(TOKEN_ID1), 20),
+ spent_atoms(meta_alp(TOKEN_ID1), 15),
],
)]
.into_iter()
diff --git a/chronik/chronik-db/src/test/value_group.rs b/chronik/chronik-db/src/test/value_group.rs
--- a/chronik/chronik-db/src/test/value_group.rs
+++ b/chronik/chronik-db/src/test/value_group.rs
@@ -11,7 +11,7 @@
io::{GroupHistoryConf, GroupUtxoConf},
};
-/// Index by output/input value. While useless in pactice, this makes
+/// Index by output/input sats. While useless in practice, this makes
/// writing tests very convenient and showcases how Group can be used.
#[derive(Debug, Default, Eq, PartialEq)]
pub(crate) struct ValueGroup;
@@ -34,7 +34,7 @@
if let Some(coin) = &input.coin {
inputs.push(MemberItem {
idx,
- member: coin.output.value,
+ member: coin.output.sats,
});
}
}
@@ -51,14 +51,14 @@
for (idx, output) in query.tx.outputs.iter().enumerate() {
outputs.push(MemberItem {
idx,
- member: output.value,
+ member: output.sats,
});
}
outputs
}
- fn ser_member(&self, value: &i64) -> Self::MemberSer {
- ser_value(*value)
+ fn ser_member(&self, sats: &i64) -> Self::MemberSer {
+ ser_value(*sats)
}
fn ser_hash_member(&self, _member: &Self::Member<'_>) -> [u8; 32] {
@@ -81,9 +81,9 @@
}
}
-/// Serialize the value as array
-pub(crate) fn ser_value(value: i64) -> [u8; 8] {
- value.to_be_bytes()
+/// Serialize the sats as array
+pub(crate) fn ser_value(sats: i64) -> [u8; 8] {
+ sats.to_be_bytes()
}
/// Make a tx with inputs and outputs having the given values.
@@ -96,7 +96,7 @@
) -> Tx {
make_inputs_tx(
txid_num,
- input_values.map(|value| (0, 0, value)),
+ input_values.map(|sats| (0, 0, sats)),
output_values,
)
}
@@ -112,14 +112,14 @@
version: 0,
inputs: input_values
.into_iter()
- .map(|(input_txid_num, out_idx, value)| TxInput {
+ .map(|(input_txid_num, out_idx, sats)| TxInput {
prev_out: OutPoint {
txid: TxId::from([input_txid_num; 32]),
out_idx,
},
coin: Some(Coin {
output: TxOutput {
- value,
+ sats,
..Default::default()
},
..Default::default()
@@ -129,8 +129,8 @@
.collect(),
outputs: output_values
.into_iter()
- .map(|value| TxOutput {
- value,
+ .map(|sats| TxOutput {
+ sats,
..Default::default()
})
.collect(),
diff --git a/chronik/chronik-http/src/ws.rs b/chronik/chronik-http/src/ws.rs
--- a/chronik/chronik-http/src/ws.rs
+++ b/chronik/chronik-http/src/ws.rs
@@ -345,7 +345,7 @@
.outputs
.iter()
.map(|output| proto::TxOutput {
- value: output.value,
+ sats: output.sats,
output_script: output.script.to_vec(),
..Default::default()
})
diff --git a/chronik/chronik-indexer/src/query/group_utxos.rs b/chronik/chronik-indexer/src/query/group_utxos.rs
--- a/chronik/chronik-indexer/src/query/group_utxos.rs
+++ b/chronik/chronik-indexer/src/query/group_utxos.rs
@@ -105,7 +105,7 @@
outpoint: Some(make_outpoint_proto(&extra.outpoint)),
block_height: extra.block_height,
is_coinbase: extra.is_coinbase,
- value: data,
+ sats: data,
is_final: extra.is_final,
token: extra
.token
@@ -129,7 +129,7 @@
outpoint: Some(make_outpoint_proto(&extra.outpoint)),
block_height: extra.block_height,
is_coinbase: extra.is_coinbase,
- value: data.0,
+ sats: data.0,
script: data.1.to_vec(),
is_final: extra.is_final,
token: extra
diff --git a/chronik/chronik-indexer/src/query/tx_token_data.rs b/chronik/chronik-indexer/src/query/tx_token_data.rs
--- a/chronik/chronik-indexer/src/query/tx_token_data.rs
+++ b/chronik/chronik-indexer/src/query/tx_token_data.rs
@@ -208,7 +208,7 @@
token_id: token.meta.token_id.to_string(),
token_type: Some(make_token_type_proto(token.meta.token_type)),
entry_idx,
- amount: token.variant.amount(),
+ atoms: token.variant.atoms(),
is_mint_baton: token.variant.is_mint_baton(),
})
}
@@ -225,7 +225,7 @@
token_id: token.meta.token_id.to_string(),
token_type: Some(make_token_type_proto(token.meta.token_type)),
entry_idx: token_output.token_idx as _,
- amount: token.variant.amount() as _,
+ atoms: token.variant.atoms() as _,
is_mint_baton: token.variant.is_mint_baton(),
})
}
@@ -264,9 +264,9 @@
error: failed_coloring.error.to_string(),
})
.collect(),
- actual_burn_amount: entry.actual_burn_amount.to_string(),
- intentional_burn: entry
- .intentional_burn_amount
+ actual_burn_atoms: entry.actual_burn_atoms.to_string(),
+ intentional_burn_atoms: entry
+ .intentional_burn_atoms
.unwrap_or_default(),
burns_mint_batons: entry.burns_mint_batons,
})
@@ -353,7 +353,7 @@
token_id: token.meta.token_id.to_string(),
token_type: Some(make_token_type_proto(token.meta.token_type)),
entry_idx: -1,
- amount: token.variant.amount(),
+ atoms: token.variant.atoms(),
is_mint_baton: token.variant.is_mint_baton(),
}
}
diff --git a/chronik/chronik-indexer/src/query/util.rs b/chronik/chronik-indexer/src/query/util.rs
--- a/chronik/chronik-indexer/src/query/util.rs
+++ b/chronik/chronik-indexer/src/query/util.rs
@@ -69,16 +69,14 @@
.enumerate()
.map(|(input_idx, input)| {
let coin = input.coin.as_ref();
- let (output_script, value) = coin
- .map(|coin| {
- (coin.output.script.to_vec(), coin.output.value)
- })
+ let (output_script, sats) = coin
+ .map(|coin| (coin.output.script.to_vec(), coin.output.sats))
.unwrap_or_default();
proto::TxInput {
prev_out: Some(make_outpoint_proto(&input.prev_out)),
input_script: input.script.to_vec(),
output_script,
- value,
+ sats,
sequence_no: input.sequence,
token: params
.token
@@ -101,7 +99,7 @@
.iter()
.enumerate()
.map(|(output_idx, output)| proto::TxOutput {
- value: output.value,
+ sats: output.sats,
output_script: output.script.to_vec(),
spent_by: params
.outputs_spent
diff --git a/chronik/chronik-plugin-impl/src/context.rs b/chronik/chronik-plugin-impl/src/context.rs
--- a/chronik/chronik-plugin-impl/src/context.rs
+++ b/chronik/chronik-plugin-impl/src/context.rs
@@ -585,7 +585,7 @@
TXID,
TxMut {
version,
- outputs: vec![TxOutput { value: 0, script }]
+ outputs: vec![TxOutput { sats: 0, script }]
.into_iter()
.chain(vec![TxOutput::default(); num_outputs])
.collect(),
diff --git a/chronik/chronik-plugin-impl/src/etoken.py b/chronik/chronik-plugin-impl/src/etoken.py
--- a/chronik/chronik-plugin-impl/src/etoken.py
+++ b/chronik/chronik-plugin-impl/src/etoken.py
@@ -32,7 +32,7 @@
auth_pubkey: Optional[bytes]
# How many decimal places to use when displaying the token.
- # Token amounts are stored in their "base" form, but should be displayed
+ # Token amounts are stored in their "base" form (atoms), but should be displayed
# as `base_amount * 10^-decimals`. E.g. a base amount of 12345 and
# decimals of 4 should be displayed as "1.2345".
decimals: int
@@ -60,10 +60,10 @@
is_invalid: bool = False
# Number of actually burned tokens
- actual_burn_amount: int = 0
+ actual_burn_atoms: int = 0
# Number of burned tokens the user explicitly opted into
- intentional_burn_amount: Optional[int] = None
+ intentional_burn_atoms: Optional[int] = None
# Whether any mint batons of this token are burned in this tx
burns_mint_batons: bool = False
@@ -86,8 +86,8 @@
# Index into `token_entries` of a `Tx` object
entry_idx: int
- # Base token amount of the input/output
- amount: int
+ # Base token amount (aka "atoms") of the input/output
+ atoms: int
# Whether the token is a mint baton
is_mint_baton: bool
diff --git a/chronik/chronik-plugin-impl/src/etoken.rs b/chronik/chronik-plugin-impl/src/etoken.rs
--- a/chronik/chronik-plugin-impl/src/etoken.rs
+++ b/chronik/chronik-plugin-impl/src/etoken.rs
@@ -100,11 +100,9 @@
entry.group_token_meta.map(|meta| meta.token_id.to_string()),
)?;
kwargs.set_item("is_invalid", entry.is_invalid)?;
- kwargs.set_item("actual_burn_amount", entry.actual_burn_amount)?;
- kwargs.set_item(
- "intentional_burn_amount",
- entry.intentional_burn_amount,
- )?;
+ kwargs.set_item("actual_burn_atoms", entry.actual_burn_atoms)?;
+ kwargs
+ .set_item("intentional_burn_atoms", entry.intentional_burn_atoms)?;
kwargs.set_item("burns_mint_batons", entry.burns_mint_batons)?;
kwargs.set_item(
"genesis_info",
@@ -133,7 +131,7 @@
.set_item("token_protocol", entry.getattr(py, "token_protocol")?)?;
kwargs.set_item("token_type", entry.getattr(py, "token_type")?)?;
kwargs.set_item("entry_idx", entry_idx)?;
- kwargs.set_item("amount", token_variant.amount())?;
+ kwargs.set_item("atoms", token_variant.atoms())?;
kwargs.set_item("is_mint_baton", token_variant.is_mint_baton())?;
self.cls_token.call(py, (), Some(&kwargs))
diff --git a/chronik/chronik-plugin-impl/src/tx.py b/chronik/chronik-plugin-impl/src/tx.py
--- a/chronik/chronik-plugin-impl/src/tx.py
+++ b/chronik/chronik-plugin-impl/src/tx.py
@@ -30,7 +30,7 @@
script: CScript
# value of the output, in satoshis
- value: int
+ sats: int
# ALP/SLP value attached to the output
token: Optional[Token]
diff --git a/chronik/chronik-plugin-impl/src/tx.rs b/chronik/chronik-plugin-impl/src/tx.rs
--- a/chronik/chronik-plugin-impl/src/tx.rs
+++ b/chronik/chronik-plugin-impl/src/tx.rs
@@ -151,7 +151,7 @@
) -> PyResult<PyObject> {
let kwargs = PyDict::new(py);
kwargs.set_item("script", self.bridge_script(py, &output.script)?)?;
- kwargs.set_item("value", output.value)?;
+ kwargs.set_item("sats", output.sats)?;
kwargs.set_item(
"token",
token_output
@@ -220,7 +220,7 @@
) -> PyResult<PyObject> {
let kwargs = PyDict::new(py);
kwargs.set_item("script", self.bridge_script(py, &output.script)?)?;
- kwargs.set_item("value", output.value)?;
+ kwargs.set_item("sats", output.sats)?;
kwargs.set_item(
"token",
spent_token
diff --git a/chronik/chronik-plugin-impl/tests/test_tx_to_py.py b/chronik/chronik-plugin-impl/tests/test_tx_to_py.py
--- a/chronik/chronik-plugin-impl/tests/test_tx_to_py.py
+++ b/chronik/chronik-plugin-impl/tests/test_tx_to_py.py
@@ -8,13 +8,13 @@
from test_framework.util import assert_equal
-def slp_amount(token_id: str, token_type: int, amount: int, entry_idx=0) -> Token:
+def slp_atoms(token_id: str, token_type: int, atoms: int, entry_idx=0) -> Token:
return Token(
token_id=token_id,
token_protocol="SLP",
token_type=token_type,
entry_idx=entry_idx,
- amount=amount,
+ atoms=atoms,
is_mint_baton=False,
)
@@ -25,18 +25,18 @@
token_protocol="SLP",
token_type=token_type,
entry_idx=entry_idx,
- amount=0,
+ atoms=0,
is_mint_baton=True,
)
-def alp_amount(token_id: str, token_type: int, amount: int, entry_idx=0) -> Token:
+def alp_atoms(token_id: str, token_type: int, atoms: int, entry_idx=0) -> Token:
return Token(
token_id=token_id,
token_protocol="ALP",
token_type=token_type,
entry_idx=entry_idx,
- amount=amount,
+ atoms=atoms,
is_mint_baton=False,
)
@@ -47,7 +47,7 @@
token_protocol="ALP",
token_type=token_type,
entry_idx=entry_idx,
- amount=0,
+ atoms=0,
is_mint_baton=True,
)
@@ -65,7 +65,7 @@
script=CScript(
bytes.fromhex("a914020202020202020202020202020202020202020287")
),
- value=50000,
+ sats=50000,
token=None,
),
sequence=0x12345678,
@@ -87,7 +87,7 @@
script=CScript(
bytes.fromhex("76a914060606060606060606060606060606060606060688ac")
),
- value=40000,
+ sats=40000,
token=None,
),
],
@@ -104,7 +104,7 @@
[output.token for output in tx.outputs],
[
None,
- slp_amount("02" * 32, 1, 1234),
+ slp_atoms("02" * 32, 1, 1234),
slp_baton("02" * 32, 1),
],
)
@@ -139,7 +139,7 @@
[output.token for output in tx.outputs],
[
None,
- slp_amount("02" * 32, 2, 1234),
+ slp_atoms("02" * 32, 2, 1234),
],
)
assert_equal(
@@ -171,14 +171,14 @@
assert_equal(
[inpt.output.token for inpt in tx.inputs],
[
- slp_amount("03" * 32, 0x81, 1, entry_idx=1),
+ slp_atoms("03" * 32, 0x81, 1, entry_idx=1),
],
)
assert_equal(
[output.token for output in tx.outputs],
[
None,
- slp_amount("02" * 32, 0x41, 1),
+ slp_atoms("02" * 32, 0x41, 1),
],
)
assert_equal(
@@ -222,7 +222,7 @@
[output.token for output in tx.outputs],
[
None,
- slp_amount("03" * 32, 1, 1234),
+ slp_atoms("03" * 32, 1, 1234),
slp_baton("03" * 32, 1),
],
)
@@ -244,16 +244,16 @@
assert_equal(
[inpt.output.token for inpt in tx.inputs],
[
- slp_amount("03" * 32, 1, 20),
+ slp_atoms("03" * 32, 1, 20),
],
)
assert_equal(
[output.token for output in tx.outputs],
[
None,
- slp_amount("03" * 32, 1, 5),
- slp_amount("03" * 32, 1, 6),
- slp_amount("03" * 32, 1, 7),
+ slp_atoms("03" * 32, 1, 5),
+ slp_atoms("03" * 32, 1, 6),
+ slp_atoms("03" * 32, 1, 7),
],
)
assert_equal(
@@ -264,7 +264,7 @@
token_protocol="SLP",
token_type=1,
tx_type="SEND",
- actual_burn_amount=2,
+ actual_burn_atoms=2,
),
],
)
@@ -275,7 +275,7 @@
assert_equal(
[inpt.output.token for inpt in tx.inputs],
[
- slp_amount("03" * 32, 1, 600),
+ slp_atoms("03" * 32, 1, 600),
],
)
assert_equal(
@@ -292,8 +292,8 @@
token_protocol="SLP",
token_type=1,
tx_type="BURN",
- actual_burn_amount=600,
- intentional_burn_amount=500,
+ actual_burn_atoms=600,
+ intentional_burn_atoms=500,
),
],
)
@@ -337,8 +337,8 @@
token_protocol="ALP",
token_type=0,
tx_type="SEND",
- actual_burn_amount=500,
- intentional_burn_amount=1000,
+ actual_burn_atoms=500,
+ intentional_burn_atoms=1000,
),
)
assert_equal(
@@ -385,7 +385,7 @@
token_protocol="SLP",
token_type=1,
is_invalid=True,
- actual_burn_amount=30,
+ actual_burn_atoms=30,
),
)
assert_equal(
@@ -395,7 +395,7 @@
token_protocol="SLP",
token_type=2,
is_invalid=True,
- actual_burn_amount=20,
+ actual_burn_atoms=20,
),
)
assert_equal(
@@ -405,7 +405,7 @@
token_protocol="SLP",
token_type=0x81,
is_invalid=True,
- actual_burn_amount=20,
+ actual_burn_atoms=20,
),
)
assert_equal(
@@ -416,7 +416,7 @@
token_type=0x41,
group_token_id="0606060606060606060606060606060606060606060606060606060606060606",
is_invalid=True,
- actual_burn_amount=1,
+ actual_burn_atoms=1,
),
)
assert_equal(
@@ -424,30 +424,30 @@
[
alp_baton("02" * 32, 0, entry_idx=1),
None,
- alp_amount("03" * 32, 0, 2000, entry_idx=2),
- alp_amount("03" * 32, 0, 5000, entry_idx=2),
- slp_amount("04" * 32, 1, 30, entry_idx=7),
- slp_amount("05" * 32, 2, 20, entry_idx=8),
- slp_amount("06" * 32, 0x81, 20, entry_idx=9),
- slp_amount("07" * 32, 0x41, 1, entry_idx=10),
- alp_amount("00" * 32, 3, 0, entry_idx=6),
- slp_amount("00" * 32, 3, 0, entry_idx=5),
+ alp_atoms("03" * 32, 0, 2000, entry_idx=2),
+ alp_atoms("03" * 32, 0, 5000, entry_idx=2),
+ slp_atoms("04" * 32, 1, 30, entry_idx=7),
+ slp_atoms("05" * 32, 2, 20, entry_idx=8),
+ slp_atoms("06" * 32, 0x81, 20, entry_idx=9),
+ slp_atoms("07" * 32, 0x41, 1, entry_idx=10),
+ alp_atoms("00" * 32, 3, 0, entry_idx=6),
+ slp_atoms("00" * 32, 3, 0, entry_idx=5),
],
)
assert_equal(
[output.token for output in tx.outputs],
[
None,
- alp_amount("02" * 32, 0, 1000, entry_idx=1),
- alp_amount("03" * 32, 0, 500, entry_idx=2),
- alp_amount("01" * 32, 0, 10, entry_idx=0),
+ alp_atoms("02" * 32, 0, 1000, entry_idx=1),
+ alp_atoms("03" * 32, 0, 500, entry_idx=2),
+ alp_atoms("01" * 32, 0, 10, entry_idx=0),
alp_baton("02" * 32, 0, entry_idx=1),
None,
alp_baton("01" * 32, 0, entry_idx=0),
alp_baton("01" * 32, 0, entry_idx=0),
- alp_amount("00" * 32, 2, 0, entry_idx=4),
- alp_amount("03" * 32, 0, 6000, entry_idx=2),
- alp_amount("00" * 32, 2, 0, entry_idx=4),
+ alp_atoms("00" * 32, 2, 0, entry_idx=4),
+ alp_atoms("03" * 32, 0, 6000, entry_idx=2),
+ alp_atoms("00" * 32, 2, 0, entry_idx=4),
],
)
@@ -461,13 +461,13 @@
token_protocol="ALP",
token_type=0,
is_invalid=True,
- actual_burn_amount=200,
+ actual_burn_atoms=200,
)
],
)
assert_equal(
[inpt.output.token for inpt in tx.inputs],
- [alp_amount("02" * 32, 0, 200)],
+ [alp_atoms("02" * 32, 0, 200)],
)
assert_equal(
[output.token for output in tx.outputs],
diff --git a/chronik/chronik-plugin-impl/tests/test_tx_to_py.rs b/chronik/chronik-plugin-impl/tests/test_tx_to_py.rs
--- a/chronik/chronik-plugin-impl/tests/test_tx_to_py.rs
+++ b/chronik/chronik-plugin-impl/tests/test_tx_to_py.rs
@@ -20,7 +20,7 @@
slp::{burn_opreturn, genesis_opreturn, mint_opreturn, send_opreturn},
structs::{GenesisInfo, Token, TokenVariant},
test_helpers::{
- meta_alp, meta_alp_unknown, meta_slp, spent_amount, spent_amount_group,
+ meta_alp, meta_alp_unknown, meta_slp, spent_atoms, spent_atoms_group,
spent_baton, EMPTY_TOKEN_ID, TOKEN_ID2, TOKEN_ID3, TOKEN_ID4,
TOKEN_ID5, TOKEN_ID6, TOKEN_ID7, TOKEN_ID8,
},
@@ -72,7 +72,7 @@
})
.collect(),
outputs: [TxOutput {
- value: 0,
+ sats: 0,
script: params.op_return_script.clone(),
}]
.into_iter()
@@ -131,7 +131,7 @@
coin: Some(Coin {
output: TxOutput {
script: Script::p2sh(&ShaRmd160([2; 20])),
- value: 50000,
+ sats: 50000,
},
height: 0,
is_coinbase: false,
@@ -146,7 +146,7 @@
},
],
outputs: vec![TxOutput {
- value: 40000,
+ sats: 40000,
script: Script::p2pkh(&ShaRmd160([6; 20])),
}],
locktime: 0x87654321,
@@ -253,7 +253,7 @@
None,
1,
),
- spent_tokens: &[spent_amount(
+ spent_tokens: &[spent_atoms(
meta_slp(TOKEN_ID3, SlpTokenType::Nft1Group),
1,
)],
@@ -300,7 +300,7 @@
SlpTokenType::Fungible,
&[5, 6, 7],
),
- spent_tokens: &[spent_amount(
+ spent_tokens: &[spent_atoms(
meta_slp(TOKEN_ID3, SlpTokenType::Fungible),
20,
)],
@@ -323,7 +323,7 @@
SlpTokenType::Fungible,
500,
),
- spent_tokens: &[spent_amount(
+ spent_tokens: &[spent_atoms(
meta_slp(TOKEN_ID3, SlpTokenType::Fungible),
600,
)],
@@ -383,21 +383,21 @@
spent_tokens: &[
spent_baton(meta_alp(TOKEN_ID2)),
None,
- spent_amount(meta_alp(TOKEN_ID3), 2000),
- spent_amount(meta_alp(TOKEN_ID3), 5000),
- spent_amount(
+ spent_atoms(meta_alp(TOKEN_ID3), 2000),
+ spent_atoms(meta_alp(TOKEN_ID3), 5000),
+ spent_atoms(
meta_slp(TOKEN_ID4, SlpTokenType::Fungible),
30,
),
- spent_amount(
+ spent_atoms(
meta_slp(TOKEN_ID5, SlpTokenType::MintVault),
20,
),
- spent_amount(
+ spent_atoms(
meta_slp(TOKEN_ID6, SlpTokenType::Nft1Group),
20,
),
- spent_amount_group(
+ spent_atoms_group(
meta_slp(TOKEN_ID7, SlpTokenType::Nft1Child),
1,
meta_slp(TOKEN_ID6, SlpTokenType::Nft1Group),
@@ -435,7 +435,7 @@
txid_num: 1,
num_outputs: 1,
op_return_script: Script::default(),
- spent_tokens: &[spent_amount(meta_alp(TOKEN_ID2), 200)],
+ spent_tokens: &[spent_atoms(meta_alp(TOKEN_ID2), 200)],
..Default::default()
},
)?;
diff --git a/chronik/chronik-proto/proto/chronik.proto b/chronik/chronik-proto/proto/chronik.proto
--- a/chronik/chronik-proto/proto/chronik.proto
+++ b/chronik/chronik-proto/proto/chronik.proto
@@ -120,7 +120,7 @@
// Whether the UTXO has been created in a coinbase tx.
bool is_coinbase = 3;
// Value of the output, in satoshis.
- int64 value = 5;
+ int64 sats = 5;
// Whether the UTXO has been finalized by Avalanche.
bool is_final = 10;
// Token value attached to this UTXO
@@ -138,7 +138,7 @@
// Whether the UTXO has been created in a coinbase tx.
bool is_coinbase = 3;
// Value of the output, in satoshis.
- int64 value = 4;
+ int64 sats = 4;
// Bytecode of the script of the output
bytes script = 5;
// Whether the UTXO has been finalized by Avalanche.
@@ -174,7 +174,7 @@
// scriptPubKey, script of the output locking the coin.
bytes output_script = 3;
// value of the output being spent, in satoshis.
- int64 value = 4;
+ int64 sats = 4;
// nSequence of the input.
uint32 sequence_no = 5;
// Token value attached to this input
@@ -186,7 +186,7 @@
// CTxOut, creates a new coin.
message TxOutput {
// Value of the coin, in satoshis.
- int64 value = 1;
+ int64 sats = 1;
// scriptPubKey, script locking the output.
bytes output_script = 2;
// Which tx and input spent this output, if any.
@@ -300,11 +300,11 @@
string burn_summary = 6;
// Human-readable error messages of why colorings failed
repeated TokenFailedColoring failed_colorings = 7;
- // Number of actually burned tokens (as decimal integer string, e.g. "2000").
+ // Number of actually burned tokens (as decimal integer string, e.g. "2000"; in atoms aka base tokens).
// This is because burns can exceed the 64-bit range of values and protobuf doesn't have a nice type to encode this.
- string actual_burn_amount = 8;
- // Burn amount the user explicitly opted into
- uint64 intentional_burn = 9;
+ string actual_burn_atoms = 8;
+ // Burn amount (in atoms aka base tokens) the user explicitly opted into
+ uint64 intentional_burn_atoms = 9;
// Whether any mint batons have been burned of this token
bool burns_mint_batons = 10;
}
@@ -338,7 +338,7 @@
// Index into `token_entries` for `Tx`. -1 for UTXOs
int32 entry_idx = 3;
// Base token amount of the input/output
- uint64 amount = 4;
+ uint64 atoms = 4;
// Whether the token is a mint baton
bool is_mint_baton = 5;
}
diff --git a/chronik/test/bridgeprimitives_tests.cpp b/chronik/test/bridgeprimitives_tests.cpp
--- a/chronik/test/bridgeprimitives_tests.cpp
+++ b/chronik/test/bridgeprimitives_tests.cpp
@@ -40,7 +40,7 @@
BOOST_CHECK_EQUAL(inLeft.prev_out.out_idx, inRight.prev_out.out_idx);
BOOST_CHECK_EQUAL(HexStr(inLeft.script), HexStr(inRight.script));
BOOST_CHECK_EQUAL(inLeft.sequence, inRight.sequence);
- BOOST_CHECK_EQUAL(inLeft.coin.output.value, inRight.coin.output.value);
+ BOOST_CHECK_EQUAL(inLeft.coin.output.sats, inRight.coin.output.sats);
BOOST_CHECK_EQUAL(HexStr(inLeft.coin.output.script),
HexStr(inRight.coin.output.script));
BOOST_CHECK_EQUAL(inLeft.coin.height, inRight.coin.height);
@@ -50,7 +50,7 @@
for (size_t outputIdx = 0; outputIdx < left.outputs.size(); ++outputIdx) {
const chronik_bridge::TxOutput &outLeft = left.outputs[outputIdx];
const chronik_bridge::TxOutput &outRight = right.outputs.at(outputIdx);
- BOOST_CHECK_EQUAL(outLeft.value, outRight.value);
+ BOOST_CHECK_EQUAL(outLeft.sats, outRight.sats);
BOOST_CHECK_EQUAL(HexStr(outLeft.script), HexStr(outRight.script));
}
}
@@ -100,7 +100,7 @@
const chronik_bridge::Coin &bridgeCoin =
blockTx.tx.inputs[inputIdx].coin;
BOOST_CHECK_EQUAL(coin.GetTxOut().nValue / SATOSHI,
- bridgeCoin.output.value);
+ bridgeCoin.output.sats);
BOOST_CHECK_EQUAL(HexStr(coin.GetTxOut().scriptPubKey),
HexStr(bridgeCoin.output.script));
BOOST_CHECK_EQUAL(coin.GetHeight(), bridgeCoin.height);
@@ -138,7 +138,7 @@
.coin = {}, // null coin
}},
.outputs = {{
- .value = 5000000000,
+ .sats = 5000000000,
.script =
ToRustVec<uint8_t>(genesisBlock.vtx[0]->vout[0].scriptPubKey),
}},
@@ -235,7 +235,7 @@
.coin = {}, // null coin
}},
.outputs = {{
- .value = 2500000000,
+ .sats = 2500000000,
.script = {0x52},
}},
.locktime = 0,
@@ -261,47 +261,52 @@
{0, ToRustVec<uint8_t>(scriptPad)}},
.locktime = 123,
};
- chronik_bridge::Tx expectedTestTx2 = {
- .txid = HashToArray(tx2.GetId()),
- .version = 1,
- .inputs = {chronik_bridge::TxInput({
- .prev_out = chronik_bridge::OutPoint({
- .txid = HashToArray(tx1.GetId()),
- .out_idx = 0,
- }),
- .script = {},
- .sequence = 0xffff'ffff,
- .coin =
- {
- .output = {4999990000, {0x53}},
- .height = 202,
- .is_coinbase = false,
- },
- }),
- chronik_bridge::TxInput({
- .prev_out = chronik_bridge::OutPoint({
- .txid = HashToArray(tx1.GetId()),
- .out_idx = 1,
- }),
- .script = {},
- .sequence = 0xffff'ffff,
- .coin =
- {
- .output = {1000, {0x54}},
- .height = 202,
- .is_coinbase = false,
- },
- })},
- .outputs = {{
- .value = 4999970000,
- .script = {0x55},
- },
- {
- .value = 0,
- .script = ToRustVec<uint8_t>(scriptPad),
- }},
- .locktime = 0,
- };
+ chronik_bridge::Tx
+ expectedTestTx2 =
+ {
+ .txid = HashToArray(tx2.GetId()),
+ .version = 1,
+ .inputs = {chronik_bridge::TxInput(
+ {
+ .prev_out = chronik_bridge::OutPoint({
+ .txid = HashToArray(tx1.GetId()),
+ .out_idx = 0,
+ }),
+ .script = {},
+ .sequence = 0xffff'ffff,
+ .coin =
+ {
+ .output = {4999990000, {0x53}},
+ .height = 202,
+ .is_coinbase = false,
+ },
+ }),
+ chronik_bridge::TxInput(
+ {
+ .prev_out = chronik_bridge::OutPoint(
+ {
+ .txid = HashToArray(tx1.GetId()),
+ .out_idx = 1,
+ }),
+ .script = {},
+ .sequence = 0xffff'ffff,
+ .coin =
+ {
+ .output = {1000, {0x54}},
+ .height = 202,
+ .is_coinbase = false,
+ },
+ })},
+ .outputs = {{
+ .sats = 4999970000,
+ .script = {0x55},
+ },
+ {
+ .sats = 0,
+ .script = ToRustVec<uint8_t>(scriptPad),
+ }},
+ .locktime = 0,
+ };
chronik_bridge::Block expectedBridgedTestBlock = {
.hash = HashToArray(testBlock.GetHash()),
.prev_hash = HashToArray(testBlock.hashPrevBlock),
diff --git a/chronik/test/chronikbridge_tests.cpp b/chronik/test/chronikbridge_tests.cpp
--- a/chronik/test/chronikbridge_tests.cpp
+++ b/chronik/test/chronikbridge_tests.cpp
@@ -154,10 +154,10 @@
// lookup_spent_coins mutates our query_tx to set the queried coins
const rust::Vec<uint8_t> &script0 = query_tx.inputs[0].coin.output.script;
const rust::Vec<uint8_t> &script1 = query_tx.inputs[1].coin.output.script;
- BOOST_CHECK_EQUAL(query_tx.inputs[0].coin.output.value, 1000);
+ BOOST_CHECK_EQUAL(query_tx.inputs[0].coin.output.sats, 1000);
BOOST_CHECK(CScript(script0.data(), script0.data() + script0.size()) ==
anyoneP2sh);
- BOOST_CHECK_EQUAL(query_tx.inputs[1].coin.output.value,
+ BOOST_CHECK_EQUAL(query_tx.inputs[1].coin.output.sats,
coinTx->vout[0].nValue / SATOSHI - 10000);
BOOST_CHECK(CScript(script1.data(), script1.data() + script1.size()) ==
anyoneP2sh);
diff --git a/modules/bitcoinsuite-chronik-client/tests/test_chronik_client.rs b/modules/bitcoinsuite-chronik-client/tests/test_chronik_client.rs
--- a/modules/bitcoinsuite-chronik-client/tests/test_chronik_client.rs
+++ b/modules/bitcoinsuite-chronik-client/tests/test_chronik_client.rs
@@ -198,14 +198,14 @@
a6909a5cb2e0eaddfb84ccf9744464f82e160bfa9b8b64f9d4c03f999b864\
3f656b412a3ac",
)?,
- value: 5_000_000_000,
+ sats: 5_000_000_000,
sequence_no: 0xffffffff,
token: None,
plugins: HashMap::new(),
}],
outputs: vec![
proto::TxOutput {
- value: 1_000_000_000,
+ sats: 1_000_000_000,
output_script: hex::decode(
"4104ae1a62fe09c5f51b13905f07f06b99a2f7159b2225f374cd378d7\
1302fa28414e7aab37397f554a7df5f142c21c1b7303b8a0626f1bade\
@@ -224,7 +224,7 @@
plugins: HashMap::new(),
},
proto::TxOutput {
- value: 4_000_000_000,
+ sats: 4_000_000_000,
output_script: hex::decode(
"410411db93e1dcdb8a016b49840f8c53bc1eb68a382e97b1482ecad7b\
148a6909a5cb2e0eaddfb84ccf9744464f82e160bfa9b8b64f9d4c03f\
diff --git a/modules/chronik-client/README.md b/modules/chronik-client/README.md
--- a/modules/chronik-client/README.md
+++ b/modules/chronik-client/README.md
@@ -117,3 +117,4 @@
- 2.0.0 - **(Breaking change)** Change `auth` in `GenesisInfo` to hex string instead of `Uint8Array`, maintaining consistency with other API behavior [D17194](https://reviews.bitcoinabc.org/D17194)
- 2.1.0 - Add support for `validateRawTx` endpoint [D15631](https://reviews.bitcoinabc.org/D15631)
- 2.1.1 - Upgrade to dependency-free `ecashaddrjs` [D17269](https://reviews.bitcoinabc.org/D17269)
+- 3.0.0 - Proto update; `atoms` instead of `amount` and `sats` instead of `value` [D17650](https://reviews.bitcoinabc.org/D17650)
diff --git a/modules/chronik-client/package-lock.json b/modules/chronik-client/package-lock.json
--- a/modules/chronik-client/package-lock.json
+++ b/modules/chronik-client/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "chronik-client",
- "version": "2.1.1",
+ "version": "3.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "chronik-client",
- "version": "2.1.1",
+ "version": "3.0.0",
"license": "MIT",
"dependencies": {
"@types/ws": "^8.2.1",
diff --git a/modules/chronik-client/package.json b/modules/chronik-client/package.json
--- a/modules/chronik-client/package.json
+++ b/modules/chronik-client/package.json
@@ -1,6 +1,6 @@
{
"name": "chronik-client",
- "version": "2.1.1",
+ "version": "3.0.0",
"description": "A client for accessing the Chronik Indexer API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
diff --git a/modules/chronik-client/proto/chronik.ts b/modules/chronik-client/proto/chronik.ts
--- a/modules/chronik-client/proto/chronik.ts
+++ b/modules/chronik-client/proto/chronik.ts
@@ -416,7 +416,7 @@
/** Whether the UTXO has been created in a coinbase tx. */
isCoinbase: boolean;
/** Value of the output, in satoshis. */
- value: string;
+ sats: string;
/** Whether the UTXO has been finalized by Avalanche. */
isFinal: boolean;
/** Token value attached to this UTXO */
@@ -439,7 +439,7 @@
/** Whether the UTXO has been created in a coinbase tx. */
isCoinbase: boolean;
/** Value of the output, in satoshis. */
- value: string;
+ sats: string;
/** Bytecode of the script of the output */
script: Uint8Array;
/** Whether the UTXO has been finalized by Avalanche. */
@@ -480,7 +480,7 @@
/** scriptPubKey, script of the output locking the coin. */
outputScript: Uint8Array;
/** value of the output being spent, in satoshis. */
- value: string;
+ sats: string;
/** nSequence of the input. */
sequenceNo: number;
/** Token value attached to this input */
@@ -497,7 +497,7 @@
/** CTxOut, creates a new coin. */
export interface TxOutput {
/** Value of the coin, in satoshis. */
- value: string;
+ sats: string;
/** scriptPubKey, script locking the output. */
outputScript: Uint8Array;
/** Which tx and input spent this output, if any. */
@@ -571,12 +571,12 @@
/** Human-readable error messages of why colorings failed */
failedColorings: TokenFailedColoring[];
/**
- * Number of actually burned tokens (as decimal integer string, e.g. "2000").
+ * Number of actually burned tokens (as decimal integer string, e.g. "2000"; in atoms aka base tokens).
* This is because burns can exceed the 64-bit range of values and protobuf doesn't have a nice type to encode this.
*/
- actualBurnAmount: string;
- /** Burn amount the user explicitly opted into */
- intentionalBurn: string;
+ actualBurnAtoms: string;
+ /** Burn amount (in atoms aka base tokens) the user explicitly opted into */
+ intentionalBurnAtoms: string;
/** Whether any mint batons have been burned of this token */
burnsMintBatons: boolean;
}
@@ -610,7 +610,7 @@
/** Index into `token_entries` for `Tx`. -1 for UTXOs */
entryIdx: number;
/** Base token amount of the input/output */
- amount: string;
+ atoms: string;
/** Whether the token is a mint baton */
isMintBaton: boolean;
}
@@ -1940,7 +1940,7 @@
outpoint: undefined,
blockHeight: 0,
isCoinbase: false,
- value: '0',
+ sats: '0',
isFinal: false,
token: undefined,
plugins: {},
@@ -1964,8 +1964,8 @@
if (message.isCoinbase === true) {
writer.uint32(24).bool(message.isCoinbase);
}
- if (message.value !== '0') {
- writer.uint32(40).int64(message.value);
+ if (message.sats !== '0') {
+ writer.uint32(40).int64(message.sats);
}
if (message.isFinal === true) {
writer.uint32(80).bool(message.isFinal);
@@ -2016,7 +2016,7 @@
break;
}
- message.value = longToString(reader.int64() as Long);
+ message.sats = longToString(reader.int64() as Long);
continue;
case 10:
if (tag !== 80) {
@@ -2065,7 +2065,7 @@
isCoinbase: isSet(object.isCoinbase)
? globalThis.Boolean(object.isCoinbase)
: false,
- value: isSet(object.value) ? globalThis.String(object.value) : '0',
+ sats: isSet(object.sats) ? globalThis.String(object.sats) : '0',
isFinal: isSet(object.isFinal)
? globalThis.Boolean(object.isFinal)
: false,
@@ -2094,8 +2094,8 @@
if (message.isCoinbase === true) {
obj.isCoinbase = message.isCoinbase;
}
- if (message.value !== '0') {
- obj.value = message.value;
+ if (message.sats !== '0') {
+ obj.sats = message.sats;
}
if (message.isFinal === true) {
obj.isFinal = message.isFinal;
@@ -2128,7 +2128,7 @@
: undefined;
message.blockHeight = object.blockHeight ?? 0;
message.isCoinbase = object.isCoinbase ?? false;
- message.value = object.value ?? '0';
+ message.sats = object.sats ?? '0';
message.isFinal = object.isFinal ?? false;
message.token =
object.token !== undefined && object.token !== null
@@ -2244,7 +2244,7 @@
outpoint: undefined,
blockHeight: 0,
isCoinbase: false,
- value: '0',
+ sats: '0',
script: new Uint8Array(0),
isFinal: false,
token: undefined,
@@ -2269,8 +2269,8 @@
if (message.isCoinbase === true) {
writer.uint32(24).bool(message.isCoinbase);
}
- if (message.value !== '0') {
- writer.uint32(32).int64(message.value);
+ if (message.sats !== '0') {
+ writer.uint32(32).int64(message.sats);
}
if (message.script.length !== 0) {
writer.uint32(42).bytes(message.script);
@@ -2324,7 +2324,7 @@
break;
}
- message.value = longToString(reader.int64() as Long);
+ message.sats = longToString(reader.int64() as Long);
continue;
case 5:
if (tag !== 42) {
@@ -2380,7 +2380,7 @@
isCoinbase: isSet(object.isCoinbase)
? globalThis.Boolean(object.isCoinbase)
: false,
- value: isSet(object.value) ? globalThis.String(object.value) : '0',
+ sats: isSet(object.sats) ? globalThis.String(object.sats) : '0',
script: isSet(object.script)
? bytesFromBase64(object.script)
: new Uint8Array(0),
@@ -2412,8 +2412,8 @@
if (message.isCoinbase === true) {
obj.isCoinbase = message.isCoinbase;
}
- if (message.value !== '0') {
- obj.value = message.value;
+ if (message.sats !== '0') {
+ obj.sats = message.sats;
}
if (message.script.length !== 0) {
obj.script = base64FromBytes(message.script);
@@ -2447,7 +2447,7 @@
: undefined;
message.blockHeight = object.blockHeight ?? 0;
message.isCoinbase = object.isCoinbase ?? false;
- message.value = object.value ?? '0';
+ message.sats = object.sats ?? '0';
message.script = object.script ?? new Uint8Array(0);
message.isFinal = object.isFinal ?? false;
message.token =
@@ -2725,7 +2725,7 @@
prevOut: undefined,
inputScript: new Uint8Array(0),
outputScript: new Uint8Array(0),
- value: '0',
+ sats: '0',
sequenceNo: 0,
token: undefined,
plugins: {},
@@ -2746,8 +2746,8 @@
if (message.outputScript.length !== 0) {
writer.uint32(26).bytes(message.outputScript);
}
- if (message.value !== '0') {
- writer.uint32(32).int64(message.value);
+ if (message.sats !== '0') {
+ writer.uint32(32).int64(message.sats);
}
if (message.sequenceNo !== 0) {
writer.uint32(40).uint32(message.sequenceNo);
@@ -2798,7 +2798,7 @@
break;
}
- message.value = longToString(reader.int64() as Long);
+ message.sats = longToString(reader.int64() as Long);
continue;
case 5:
if (tag !== 40) {
@@ -2847,7 +2847,7 @@
outputScript: isSet(object.outputScript)
? bytesFromBase64(object.outputScript)
: new Uint8Array(0),
- value: isSet(object.value) ? globalThis.String(object.value) : '0',
+ sats: isSet(object.sats) ? globalThis.String(object.sats) : '0',
sequenceNo: isSet(object.sequenceNo)
? globalThis.Number(object.sequenceNo)
: 0,
@@ -2876,8 +2876,8 @@
if (message.outputScript.length !== 0) {
obj.outputScript = base64FromBytes(message.outputScript);
}
- if (message.value !== '0') {
- obj.value = message.value;
+ if (message.sats !== '0') {
+ obj.sats = message.sats;
}
if (message.sequenceNo !== 0) {
obj.sequenceNo = Math.round(message.sequenceNo);
@@ -2908,7 +2908,7 @@
: undefined;
message.inputScript = object.inputScript ?? new Uint8Array(0);
message.outputScript = object.outputScript ?? new Uint8Array(0);
- message.value = object.value ?? '0';
+ message.sats = object.sats ?? '0';
message.sequenceNo = object.sequenceNo ?? 0;
message.token =
object.token !== undefined && object.token !== null
@@ -3021,7 +3021,7 @@
function createBaseTxOutput(): TxOutput {
return {
- value: '0',
+ sats: '0',
outputScript: new Uint8Array(0),
spentBy: undefined,
token: undefined,
@@ -3034,8 +3034,8 @@
message: TxOutput,
writer: _m0.Writer = _m0.Writer.create(),
): _m0.Writer {
- if (message.value !== '0') {
- writer.uint32(8).int64(message.value);
+ if (message.sats !== '0') {
+ writer.uint32(8).int64(message.sats);
}
if (message.outputScript.length !== 0) {
writer.uint32(18).bytes(message.outputScript);
@@ -3068,7 +3068,7 @@
break;
}
- message.value = longToString(reader.int64() as Long);
+ message.sats = longToString(reader.int64() as Long);
continue;
case 2:
if (tag !== 18) {
@@ -3115,7 +3115,7 @@
fromJSON(object: any): TxOutput {
return {
- value: isSet(object.value) ? globalThis.String(object.value) : '0',
+ sats: isSet(object.sats) ? globalThis.String(object.sats) : '0',
outputScript: isSet(object.outputScript)
? bytesFromBase64(object.outputScript)
: new Uint8Array(0),
@@ -3138,8 +3138,8 @@
toJSON(message: TxOutput): unknown {
const obj: any = {};
- if (message.value !== '0') {
- obj.value = message.value;
+ if (message.sats !== '0') {
+ obj.sats = message.sats;
}
if (message.outputScript.length !== 0) {
obj.outputScript = base64FromBytes(message.outputScript);
@@ -3169,7 +3169,7 @@
object: I,
): TxOutput {
const message = createBaseTxOutput();
- message.value = object.value ?? '0';
+ message.sats = object.sats ?? '0';
message.outputScript = object.outputScript ?? new Uint8Array(0);
message.spentBy =
object.spentBy !== undefined && object.spentBy !== null
@@ -3670,8 +3670,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '',
- intentionalBurn: '0',
+ actualBurnAtoms: '',
+ intentionalBurnAtoms: '0',
burnsMintBatons: false,
};
}
@@ -3705,11 +3705,11 @@
for (const v of message.failedColorings) {
TokenFailedColoring.encode(v!, writer.uint32(58).fork()).ldelim();
}
- if (message.actualBurnAmount !== '') {
- writer.uint32(66).string(message.actualBurnAmount);
+ if (message.actualBurnAtoms !== '') {
+ writer.uint32(66).string(message.actualBurnAtoms);
}
- if (message.intentionalBurn !== '0') {
- writer.uint32(72).uint64(message.intentionalBurn);
+ if (message.intentionalBurnAtoms !== '0') {
+ writer.uint32(72).uint64(message.intentionalBurnAtoms);
}
if (message.burnsMintBatons === true) {
writer.uint32(80).bool(message.burnsMintBatons);
@@ -3784,14 +3784,14 @@
break;
}
- message.actualBurnAmount = reader.string();
+ message.actualBurnAtoms = reader.string();
continue;
case 9:
if (tag !== 72) {
break;
}
- message.intentionalBurn = longToString(
+ message.intentionalBurnAtoms = longToString(
reader.uint64() as Long,
);
continue;
@@ -3836,11 +3836,11 @@
TokenFailedColoring.fromJSON(e),
)
: [],
- actualBurnAmount: isSet(object.actualBurnAmount)
- ? globalThis.String(object.actualBurnAmount)
+ actualBurnAtoms: isSet(object.actualBurnAtoms)
+ ? globalThis.String(object.actualBurnAtoms)
: '',
- intentionalBurn: isSet(object.intentionalBurn)
- ? globalThis.String(object.intentionalBurn)
+ intentionalBurnAtoms: isSet(object.intentionalBurnAtoms)
+ ? globalThis.String(object.intentionalBurnAtoms)
: '0',
burnsMintBatons: isSet(object.burnsMintBatons)
? globalThis.Boolean(object.burnsMintBatons)
@@ -3873,11 +3873,11 @@
TokenFailedColoring.toJSON(e),
);
}
- if (message.actualBurnAmount !== '') {
- obj.actualBurnAmount = message.actualBurnAmount;
+ if (message.actualBurnAtoms !== '') {
+ obj.actualBurnAtoms = message.actualBurnAtoms;
}
- if (message.intentionalBurn !== '0') {
- obj.intentionalBurn = message.intentionalBurn;
+ if (message.intentionalBurnAtoms !== '0') {
+ obj.intentionalBurnAtoms = message.intentionalBurnAtoms;
}
if (message.burnsMintBatons === true) {
obj.burnsMintBatons = message.burnsMintBatons;
@@ -3905,8 +3905,8 @@
object.failedColorings?.map(e =>
TokenFailedColoring.fromPartial(e),
) || [];
- message.actualBurnAmount = object.actualBurnAmount ?? '';
- message.intentionalBurn = object.intentionalBurn ?? '0';
+ message.actualBurnAtoms = object.actualBurnAtoms ?? '';
+ message.intentionalBurnAtoms = object.intentionalBurnAtoms ?? '0';
message.burnsMintBatons = object.burnsMintBatons ?? false;
return message;
},
@@ -4117,7 +4117,7 @@
tokenId: '',
tokenType: undefined,
entryIdx: 0,
- amount: '0',
+ atoms: '0',
isMintBaton: false,
};
}
@@ -4139,8 +4139,8 @@
if (message.entryIdx !== 0) {
writer.uint32(24).int32(message.entryIdx);
}
- if (message.amount !== '0') {
- writer.uint32(32).uint64(message.amount);
+ if (message.atoms !== '0') {
+ writer.uint32(32).uint64(message.atoms);
}
if (message.isMintBaton === true) {
writer.uint32(40).bool(message.isMintBaton);
@@ -4185,7 +4185,7 @@
break;
}
- message.amount = longToString(reader.uint64() as Long);
+ message.atoms = longToString(reader.uint64() as Long);
continue;
case 5:
if (tag !== 40) {
@@ -4214,9 +4214,7 @@
entryIdx: isSet(object.entryIdx)
? globalThis.Number(object.entryIdx)
: 0,
- amount: isSet(object.amount)
- ? globalThis.String(object.amount)
- : '0',
+ atoms: isSet(object.atoms) ? globalThis.String(object.atoms) : '0',
isMintBaton: isSet(object.isMintBaton)
? globalThis.Boolean(object.isMintBaton)
: false,
@@ -4234,8 +4232,8 @@
if (message.entryIdx !== 0) {
obj.entryIdx = Math.round(message.entryIdx);
}
- if (message.amount !== '0') {
- obj.amount = message.amount;
+ if (message.atoms !== '0') {
+ obj.atoms = message.atoms;
}
if (message.isMintBaton === true) {
obj.isMintBaton = message.isMintBaton;
@@ -4254,7 +4252,7 @@
? TokenType.fromPartial(object.tokenType)
: undefined;
message.entryIdx = object.entryIdx ?? 0;
- message.amount = object.amount ?? '0';
+ message.atoms = object.atoms ?? '0';
message.isMintBaton = object.isMintBaton ?? false;
return message;
},
diff --git a/modules/chronik-client/src/ChronikClient.ts b/modules/chronik-client/src/ChronikClient.ts
--- a/modules/chronik-client/src/ChronikClient.ts
+++ b/modules/chronik-client/src/ChronikClient.ts
@@ -1090,7 +1090,7 @@
outIdx: input.prevOut.outIdx,
},
inputScript: toHex(input.inputScript),
- value: parseInt(input.value),
+ sats: BigInt(input.sats),
sequenceNo: input.sequenceNo,
};
if (typeof input.token !== 'undefined') {
@@ -1113,7 +1113,7 @@
function convertToTxOutput(output: proto.TxOutput): TxOutput {
const txOutput: TxOutput = {
- value: parseInt(output.value),
+ sats: BigInt(output.sats),
outputScript: toHex(output.outputScript),
};
if (Object.keys(output.plugins).length > 0) {
@@ -1188,7 +1188,7 @@
},
blockHeight: utxo.blockHeight,
isCoinbase: utxo.isCoinbase,
- value: parseInt(utxo.value),
+ sats: BigInt(utxo.sats),
isFinal: utxo.isFinal,
};
if (typeof utxo.token !== 'undefined') {
@@ -1214,7 +1214,7 @@
blockHeight: utxo.blockHeight,
isCoinbase: utxo.isCoinbase,
script: toHex(utxo.script),
- value: parseInt(utxo.value),
+ sats: BigInt(utxo.sats),
isFinal: utxo.isFinal,
};
if (typeof utxo.token !== 'undefined') {
@@ -1242,8 +1242,8 @@
isInvalid: tokenEntry.isInvalid,
burnSummary: tokenEntry.burnSummary,
failedColorings: tokenEntry.failedColorings,
- actualBurnAmount: tokenEntry.actualBurnAmount,
- intentionalBurn: tokenEntry.intentionalBurn,
+ actualBurnAtoms: BigInt(tokenEntry.actualBurnAtoms),
+ intentionalBurnAtoms: BigInt(tokenEntry.intentionalBurnAtoms),
burnsMintBatons: tokenEntry.burnsMintBatons,
};
if (tokenEntry.groupTokenId !== '') {
@@ -1341,7 +1341,7 @@
const convertedToken: Token = {
tokenId: token.tokenId,
tokenType: convertToTokenType(token.tokenType),
- amount: token.amount,
+ atoms: BigInt(token.atoms),
isMintBaton: token.isMintBaton,
};
@@ -1586,7 +1586,7 @@
*/
outputScript?: string;
/** Value of the output spent by this input, in satoshis. */
- value: number;
+ sats: bigint;
/** `sequence` field of the input; can be used for relative time locking. */
sequenceNo: number;
/** Token value attached to this input */
@@ -1598,7 +1598,7 @@
/** Output of a tx, creates new UTXOs. */
export interface TxOutput {
/** Value of the output, in satoshis. */
- value: number;
+ sats: bigint;
/**
* Script of this output, locking the coins.
* Aka. `scriptPubKey` in bitcoind parlance.
@@ -1651,13 +1651,10 @@
burnSummary: string;
/** Human-readable error messages of why colorings failed */
failedColorings: TokenFailedColoring[];
- /**
- * Number of actually burned tokens (as decimal integer string, e.g. "2000").
- * This is because burns can exceed the 64-bit range of values and protobuf doesn't have a nice type to encode this.
- */
- actualBurnAmount: string;
- /** Burn amount the user explicitly opted into (as decimal integer string) */
- intentionalBurn: string;
+ /** Number of actually burned tokens (in atoms, aka base tokens). */
+ actualBurnAtoms: bigint;
+ /** Burn amount the user explicitly opted into (in atoms, aka base tokens) */
+ intentionalBurnAtoms: bigint;
/** Whether any mint batons have been burned of this token */
burnsMintBatons: boolean;
}
@@ -1806,7 +1803,7 @@
* (make sure it's buried 100 blocks before spending!) */
isCoinbase: boolean;
/** Value of the UTXO in satoshis. */
- value: number;
+ sats: bigint;
/** Is this utxo avalanche finalized */
isFinal: boolean;
/** Token value attached to this utxo */
@@ -1828,7 +1825,7 @@
* (make sure it's buried 100 blocks before spending!) */
isCoinbase: boolean;
/** Value of the UTXO in satoshis. */
- value: number;
+ sats: bigint;
/** Bytecode of the script of the output */
script: string;
/** Is this utxo avalanche finalized */
@@ -1851,8 +1848,8 @@
* passes no entryIdx key for UTXOS
*/
entryIdx?: number;
- /** Base token amount of the input/output */
- amount: string;
+ /** Amount in atoms (aka base tokens) of the input/output */
+ atoms: bigint;
/** Whether the token is a mint baton */
isMintBaton: boolean;
}
diff --git a/modules/chronik-client/test/integration/broadcast_txs_and_validate_rawtx.ts b/modules/chronik-client/test/integration/broadcast_txs_and_validate_rawtx.ts
--- a/modules/chronik-client/test/integration/broadcast_txs_and_validate_rawtx.ts
+++ b/modules/chronik-client/test/integration/broadcast_txs_and_validate_rawtx.ts
@@ -171,15 +171,15 @@
const sameInvalidTx = await chronik.validateRawTx(fromHex(BAD_RAW_TX));
expect(sameInvalidTx.txid).to.eql(invalidTx.txid);
const invalidTxSumInputs = invalidTx.inputs
- .map(input => input.value)
- .reduce((prev, curr) => prev + curr, 0);
+ .map(input => input.sats)
+ .reduce((prev, curr) => prev + curr, 0n);
const invalidTxSumOutputs = invalidTx.outputs
- .map(output => output.value)
- .reduce((prev, curr) => prev + curr, 0);
+ .map(output => output.sats)
+ .reduce((prev, curr) => prev + curr, 0n);
// Indeed, the outputs are greater than the inputs, and such that the tx is invalid
- expect(invalidTxSumInputs).to.eql(BAD_VALUE_IN_SATS);
- expect(invalidTxSumOutputs).to.eql(BAD_VALUE_OUT_SATS);
+ expect(invalidTxSumInputs).to.eql(BigInt(BAD_VALUE_IN_SATS));
+ expect(invalidTxSumOutputs).to.eql(BigInt(BAD_VALUE_OUT_SATS));
// We cannot call validateRawTx to get a tx from a rawtx of a normal token send tx if its inputs are not in the mempool or db
// txid in blockchain but not regtest, 423e24bf0715cfb80727e5e7a6ff7b9e37cb2f555c537ab06fdc7fd9b3a0ba3a
@@ -213,7 +213,7 @@
// We can't broadcast an ALP burn tx without setting skipTokenChecks
await expect(chronik.broadcastTx(alpBurnRawTx)).to.be.rejectedWith(
Error,
- `Failed getting /broadcast-tx: 400: Tx ${alpBurnTxid} failed token checks: Unexpected burn: Burns 1 base tokens.`,
+ `Failed getting /broadcast-tx: 400: Tx ${alpBurnTxid} failed token checks: Unexpected burn: Burns 1 atoms.`,
);
// We also can't broadcast an array of txs if one tx is a burn
@@ -224,7 +224,7 @@
chronik.broadcastTxs([okRawTx, alpBurnRawTx]),
).to.be.rejectedWith(
Error,
- `Failed getting /broadcast-txs: 400: Tx ${alpBurnTxid} failed token checks: Unexpected burn: Burns 1 base tokens.`,
+ `Failed getting /broadcast-txs: 400: Tx ${alpBurnTxid} failed token checks: Unexpected burn: Burns 1 atoms.`,
);
// We can't broadcast an array of txs if one tx is invalid
@@ -346,7 +346,7 @@
{
...alpGenesisAfterMined.inputs[0],
outputScript: alpGenesisPreview.inputs[0].outputScript,
- value: alpGenesisPreview.inputs[0].value,
+ sats: alpGenesisPreview.inputs[0].sats,
},
],
});
diff --git a/modules/chronik-client/test/integration/plugins.ts b/modules/chronik-client/test/integration/plugins.ts
--- a/modules/chronik-client/test/integration/plugins.ts
+++ b/modules/chronik-client/test/integration/plugins.ts
@@ -7,12 +7,12 @@
import { ChildProcess } from 'node:child_process';
import { EventEmitter, once } from 'node:events';
import path from 'path';
-import { ChronikClient, WsMsgClient, WsEndpoint, Tx } from '../../index';
+import { ChronikClient, WsEndpoint, WsMsgClient } from '../../index';
import initializeTestRunner, {
cleanupMochaRegtest,
+ expectWsMsgs,
setMochaTimeout,
TestInfo,
- expectWsMsgs,
} from '../setup/testRunner';
const expect = chai.expect;
@@ -132,7 +132,7 @@
isFinal: false,
outpoint: BASE_OUTPOINT,
script: TEST_UTXO_OUTPUTSCRIPT,
- value: 1000,
+ sats: 1000n,
};
const FIRST_PLUGIN_OPRETURN = '6a0454455354046172676f04616c656603616263';
@@ -309,7 +309,7 @@
// We get plugin info in expected shape for outputs
expect(outputs[0]).to.deep.equal({
- value: 0,
+ sats: 0n,
outputScript: FIRST_PLUGIN_OPRETURN,
// No plugins key here as no associated plugin data for this output
});
@@ -368,7 +368,7 @@
groups: [BYTES_a],
},
},
- value: 4999990000,
+ sats: 4999990000n,
},
],
});
@@ -449,7 +449,7 @@
// We get plugin info in expected shape for outputs
expect(outputs[0]).to.deep.equal({
- value: 0,
+ sats: 0n,
outputScript: SECOND_PLUGIN_OPRETURN,
// No plugins key here as no associated plugin data for this output
});
@@ -509,7 +509,7 @@
groups: [BYTES_b],
},
},
- value: 4999980000,
+ sats: 4999980000n,
},
],
});
@@ -589,7 +589,7 @@
// We get plugin info in expected shape for outputs
expect(outputs[0]).to.deep.equal({
- value: 0,
+ sats: 0n,
outputScript: FIRST_PLUGIN_OPRETURN,
// No plugins key here as no associated plugin data for this output
});
@@ -705,7 +705,7 @@
// We get plugin info in expected shape for outputs
expect(outputs[0]).to.deep.equal({
- value: 0,
+ sats: 0n,
outputScript: THIRD_PLUGIN_OPRETURN,
// No plugins key here as no associated plugin data for this output
});
@@ -730,7 +730,7 @@
data: [BYTES_carp, BYTES_blub, BYTES_abc],
},
},
- value: 4999970000,
+ sats: 4999970000n,
};
expect(thesePluginUtxos).to.deep.equal({
groupHex: BYTES_c,
@@ -891,7 +891,7 @@
// We get plugin info in expected shape for outputs
expect(outputs[0]).to.deep.equal({
- value: 0,
+ sats: 0n,
outputScript: SECOND_PLUGIN_OPRETURN,
// No plugins key here as no associated plugin data for this output
});
diff --git a/modules/chronik-client/test/integration/script_endpoints.ts b/modules/chronik-client/test/integration/script_endpoints.ts
--- a/modules/chronik-client/test/integration/script_endpoints.ts
+++ b/modules/chronik-client/test/integration/script_endpoints.ts
@@ -404,7 +404,7 @@
// within history txs, confirmed txs are sorted in block order, unconfirmed txs are sorted by timeFirstSeen
// i.e., history.txs[0] will have the highest timeFirstSeen
// For txs with the same timeFirstSeen, the alphabetically-last txs appears first
- const historyClone: Tx[] = JSON.parse(JSON.stringify(history.txs));
+ const historyClone: Tx[] = [...history.txs];
// Sort historyClone by timeFirstSeen and then by txid
historyClone.sort(
@@ -618,7 +618,7 @@
broadcastTxids.length,
);
// Clone history.txs to test sorting
- const historyClone: Tx[] = JSON.parse(JSON.stringify(history.txs));
+ const historyClone: Tx[] = [...history.txs];
// history txs within blocks sorting
// The history endpoint returns confirmed txs sorted by timeFirstSeen (high to low) and then by txid (alphabetical last to first)
diff --git a/modules/chronik-client/test/integration/token_alp.ts b/modules/chronik-client/test/integration/token_alp.ts
--- a/modules/chronik-client/test/integration/token_alp.ts
+++ b/modules/chronik-client/test/integration/token_alp.ts
@@ -148,11 +148,11 @@
const BASE_TX_INPUT = {
inputScript: '0151',
outputScript: 'a914da1745e9b549bd0bfa1a569971c77eba30cd5a4b87',
- value: 5000,
+ sats: 5000n,
sequenceNo: 0,
};
const BASE_TX_OUTPUT = {
- value: 546,
+ sats: 546n,
outputScript: 'a914da1745e9b549bd0bfa1a569971c77eba30cd5a4b87',
};
const BASE_TX_TOKEN_INFO_ALP = {
@@ -162,7 +162,7 @@
number: 0,
},
entryIdx: 0,
- amount: '0',
+ atoms: 0n,
isMintBaton: false,
};
const BASE_TOKEN_ENTRY = {
@@ -170,8 +170,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
};
let alpGenesisTxid = '';
@@ -283,7 +283,7 @@
txid: '3fa435fca55edf447ef7539ecba141a6585fa71ac4062cdcc61f1235c40f4613',
outIdx: 0,
},
- value: 5000000000,
+ sats: 5000000000n,
},
]);
@@ -291,17 +291,17 @@
const expectedOutputs = [
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a504c63534c5032000747454e4553495304544553540a5465737420546f6b656e12687474703a2f2f6578616d706c652e636f6d0a546f6b656e20446174610c546f6b656e205075626b657904040a00000000001400000000001e000000000000000000000002',
},
{
...BASE_TX_OUTPUT,
- value: 10000,
+ sats: 10000n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
- amount: '10',
+ atoms: 10n,
},
},
{
@@ -309,7 +309,7 @@
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
- amount: '20',
+ atoms: 20n,
},
},
{
@@ -317,16 +317,16 @@
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
- amount: '30',
+ atoms: 30n,
},
},
{
...BASE_TX_OUTPUT,
- value: 4999900000,
+ sats: 4999900000n,
},
{
...BASE_TX_OUTPUT,
- value: 5000,
+ sats: 5000n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
@@ -382,8 +382,8 @@
if ('token' in output) {
const { token } = output;
// Remove the entryIdx key from these outputs, as we do not expect to see it in tokenId.utxos() output
- delete (token as Token).entryIdx;
- utxoTokenKeysFromOutputs.push(output.token as Token);
+ delete (token as unknown as Token).entryIdx;
+ utxoTokenKeysFromOutputs.push(output.token as unknown as Token);
}
}
@@ -471,7 +471,7 @@
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
},
},
@@ -481,7 +481,7 @@
expect(alpMint.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a5038534c503200044d494e54e2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb0205000000000000000000000001',
},
@@ -490,7 +490,7 @@
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
- amount: '5',
+ atoms: 5n,
},
},
{
@@ -501,7 +501,7 @@
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
},
},
@@ -555,11 +555,11 @@
txid: alpGenesisTxid,
outIdx: 1,
},
- value: 10000,
+ sats: 10000n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
- amount: '10',
+ atoms: 10n,
},
},
{
@@ -568,11 +568,11 @@
txid: '0dab1008db30343a4f771983e9fd96cbc15f0c6efc73f5249c9bae311ef1e92f',
outIdx: 1,
},
- value: 546,
+ sats: 546n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
- amount: '5',
+ atoms: 5n,
},
},
]);
@@ -581,17 +581,17 @@
expect(alpSend.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a5037534c5032000453454e44e2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb020300000000000c0000000000',
},
{
...BASE_TX_OUTPUT,
- value: 5000,
+ sats: 5000n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
- amount: '3',
+ atoms: 3n,
},
},
{
@@ -599,7 +599,7 @@
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
- amount: '12',
+ atoms: 12n,
},
},
]);
@@ -643,7 +643,7 @@
txid: alpGenesisTxid,
outIdx: 4,
},
- value: 4999900000,
+ sats: 4999900000n,
},
]);
@@ -651,22 +651,22 @@
expect(alpNextGenesis.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a501b534c5032000747454e455349530000000000000164000000000002',
},
{
...BASE_TX_OUTPUT,
- value: 5000,
+ sats: 5000n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpNextGenesisTxid,
- amount: '100',
+ atoms: 100n,
},
},
{
...BASE_TX_OUTPUT,
- value: 5000,
+ sats: 5000n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpNextGenesisTxid,
@@ -675,7 +675,7 @@
},
{
...BASE_TX_OUTPUT,
- value: 5000,
+ sats: 5000n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpNextGenesisTxid,
@@ -684,7 +684,7 @@
},
{
...BASE_TX_OUTPUT,
- value: 4999800000,
+ sats: 4999800000n,
},
]);
@@ -734,7 +734,7 @@
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
entryIdx: 2,
- amount: '3',
+ atoms: 3n,
},
},
{
@@ -756,7 +756,7 @@
expect(alpMulti.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a5026534c5032000747454e45534953054d554c5449000000000002ffffffffffff0000000000000138534c503200044d494e542c787e508ba86115c7fb13cc582d97a6f3b7d60dad070dcf49e19d0aec12df72020000000000000500000000000030534c503200044255524ee2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb01000000000049534c5032000453454e44e2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb05000000000000000000000000000000000000000000000000020000000000',
},
@@ -765,7 +765,7 @@
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpMultiTxid,
- amount: '281474976710655',
+ atoms: 281474976710655n,
},
},
{
@@ -774,7 +774,7 @@
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpNextGenesisTxid,
entryIdx: 1,
- amount: '5',
+ atoms: 5n,
},
},
{
@@ -794,7 +794,7 @@
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
entryIdx: 2,
- amount: '2',
+ atoms: 2n,
},
},
{
@@ -829,8 +829,8 @@
...BASE_TOKEN_ENTRY,
tokenId: alpGenesisTxid,
txType: 'SEND',
- actualBurnAmount: '1',
- intentionalBurn: '1',
+ actualBurnAtoms: 1n,
+ intentionalBurnAtoms: 1n,
tokenType: {
number: 0,
protocol: 'ALP',
@@ -925,7 +925,7 @@
txid: alpGenesisTxid,
outIdx: 6,
},
- value: 546,
+ sats: 546n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
@@ -939,12 +939,12 @@
txid: alpMultiTxid,
outIdx: 1,
},
- value: 546,
+ sats: 546n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpMultiTxid,
entryIdx: 3,
- amount: '281474976710655',
+ atoms: 281474976710655n,
},
},
]);
@@ -953,7 +953,7 @@
expect(alpMega.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a5036534c5032000747454e4553495303414c4c0000000000050000000000000700000000000000000000000000000000000100000000000215534c5032000747454e4553495300000000000000004c56534c503200044d494e54e2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb070000000000000000000000000000000000000000000000000000000000000000000000000000000000006338534c503200044d494e54e2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb02000000000000ffffffffffff0032534c503200044d494e54e2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb010000000000000130534c503200044255524ee2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb02000000000038534c503200044d494e542c787e508ba86115c7fb13cc582d97a6f3b7d60dad070dcf49e19d0aec12df7202030000000000000000000000014c56534c503200044d494e54e2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb07000000000000000000000000000000000000020000000000000000000000000000000000000000000000012c534c503200044d494e54e2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb000030534c503200044255524ee2c68fa87324d048fbb0b72ca7d386ad757967f20244854f14920a6caa714dbb0000000000004c73534c5032000453454e44ba2ea53336d07ab7bab5eb95f53a6dd041acfca80f2af3a6b93abad7147fc4e30c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b00000000004c67534c5032000453454e44ba2ea53336d07ab7bab5eb95f53a6dd041acfca80f2af3a6b93abad7147fc4e30a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffff2c534c503200044d494e54ba2ea53336d07ab7bab5eb95f53a6dd041acfca80f2af3a6b93abad7147fc4e3000005534c50328930534c503200044255524eba2ea53336d07ab7bab5eb95f53a6dd041acfca80f2af3a6b93abad7147fc4e300000000000005534c50329a',
},
@@ -963,7 +963,7 @@
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpNextGenesisTxid,
entryIdx: 1,
- amount: '3',
+ atoms: 3n,
},
},
{
@@ -971,7 +971,7 @@
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpMegaTxid,
- amount: '7',
+ atoms: 7n,
},
},
{
@@ -985,12 +985,12 @@
},
{
...BASE_TX_OUTPUT,
- value: 1000,
+ sats: 1000n,
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpGenesisTxid,
entryIdx: 2,
- amount: '2',
+ atoms: 2n,
},
},
{
@@ -998,7 +998,7 @@
token: {
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpMegaTxid,
- amount: '1',
+ atoms: 1n,
},
},
{
@@ -1046,7 +1046,7 @@
...BASE_TX_TOKEN_INFO_ALP,
tokenId: alpMultiTxid,
entryIdx: 3,
- amount: '281474976710655',
+ atoms: 281474976710655n,
},
},
]);
@@ -1089,7 +1089,7 @@
'bb4d71aa6c0a92144f854402f2677975ad86d3a72cb7b0fb48d02473a88fc6e2',
txType: 'MINT',
burnSummary:
- 'Invalid coloring at pushdata idx 2: Too few outputs, expected 107 but got 11. Invalid coloring at pushdata idx 3: Overlapping amount when trying to color 281474976710655 at index 2, output is already colored with 7 of 72101f535470e0a6de7db9ba0ba115845566f738cc5124255b472347b5927565 (ALP STANDARD (V0)). Invalid coloring at pushdata idx 4: Overlapping mint baton when trying to color mint baton at index 2, output is already colored with 7 of 72101f535470e0a6de7db9ba0ba115845566f738cc5124255b472347b5927565 (ALP STANDARD (V0)). Invalid coloring at pushdata idx 8: Duplicate token_id bb4d71aa6c0a92144f854402f2677975ad86d3a72cb7b0fb48d02473a88fc6e2, found in section 2. Invalid coloring at pushdata idx 9: Duplicate intentional burn token_id bb4d71aa6c0a92144f854402f2677975ad86d3a72cb7b0fb48d02473a88fc6e2, found in burn #0 and #1',
+ 'Invalid coloring at pushdata idx 2: Too few outputs, expected 107 but got 11. Invalid coloring at pushdata idx 3: Overlapping atoms when trying to color 281474976710655 at index 2, output is already colored with 7 of 72101f535470e0a6de7db9ba0ba115845566f738cc5124255b472347b5927565 (ALP STANDARD (V0)). Invalid coloring at pushdata idx 4: Overlapping mint baton when trying to color mint baton at index 2, output is already colored with 7 of 72101f535470e0a6de7db9ba0ba115845566f738cc5124255b472347b5927565 (ALP STANDARD (V0)). Invalid coloring at pushdata idx 8: Duplicate token_id bb4d71aa6c0a92144f854402f2677975ad86d3a72cb7b0fb48d02473a88fc6e2, found in section 2. Invalid coloring at pushdata idx 9: Duplicate intentional burn token_id bb4d71aa6c0a92144f854402f2677975ad86d3a72cb7b0fb48d02473a88fc6e2, found in burn #0 and #1',
failedColorings: [
{
pushdataIdx: 2,
@@ -1097,7 +1097,7 @@
},
{
pushdataIdx: 3,
- error: 'Overlapping amount when trying to color 281474976710655 at index 2, output is already colored with 7 of 72101f535470e0a6de7db9ba0ba115845566f738cc5124255b472347b5927565 (ALP STANDARD (V0))',
+ error: 'Overlapping atoms when trying to color 281474976710655 at index 2, output is already colored with 7 of 72101f535470e0a6de7db9ba0ba115845566f738cc5124255b472347b5927565 (ALP STANDARD (V0))',
},
{
pushdataIdx: 4,
@@ -1112,7 +1112,7 @@
error: 'Duplicate intentional burn token_id bb4d71aa6c0a92144f854402f2677975ad86d3a72cb7b0fb48d02473a88fc6e2, found in burn #0 and #1',
},
],
- intentionalBurn: '2',
+ intentionalBurnAtoms: 2n,
tokenType: {
number: 0,
protocol: 'ALP',
@@ -1172,7 +1172,7 @@
const blockTxs = await chronik.blockTxs(CHAIN_INIT_HEIGHT + 2);
// Clone as we will use blockTxs.txs later
- const txsFromBlock = JSON.parse(JSON.stringify(blockTxs.txs));
+ const txsFromBlock = [...blockTxs.txs];
// The first tx is the coinbase tx, which is not a token
const coinbaseTx = txsFromBlock.shift()!;
diff --git a/modules/chronik-client/test/integration/token_slp_fungible.ts b/modules/chronik-client/test/integration/token_slp_fungible.ts
--- a/modules/chronik-client/test/integration/token_slp_fungible.ts
+++ b/modules/chronik-client/test/integration/token_slp_fungible.ts
@@ -112,11 +112,11 @@
const BASE_TX_INPUT = {
inputScript: '0151',
outputScript: 'a914da1745e9b549bd0bfa1a569971c77eba30cd5a4b87',
- value: 5000000000,
+ sats: 5000000000n,
sequenceNo: 0,
};
const BASE_TX_OUTPUT = {
- value: 2000,
+ sats: 2000n,
outputScript: 'a914da1745e9b549bd0bfa1a569971c77eba30cd5a4b87',
};
const BASE_TX_TOKEN_INFO_SLP_FUNGIBLE = {
@@ -126,7 +126,7 @@
number: 1,
},
entryIdx: 0,
- amount: '0',
+ atoms: 0n,
isMintBaton: false,
};
const BASE_TOKEN_ENTRY = {
@@ -134,8 +134,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
};
let slpGenesisTxid = '';
@@ -184,22 +184,22 @@
expect(slpGenesis.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e4553495307534c5054455354105465737420534c5020546f6b656e203312687474703a2f2f6578616d706c652f736c7020787878787878787878787878787878787878787878787878787878787878787801040102080000000000001388',
},
{
...BASE_TX_OUTPUT,
- value: 10000,
+ sats: 10000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_FUNGIBLE,
tokenId: slpGenesisTxid,
- amount: '5000',
+ atoms: 5000n,
},
},
{
...BASE_TX_OUTPUT,
- value: 10000,
+ sats: 10000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_FUNGIBLE,
tokenId: slpGenesisTxid,
@@ -208,7 +208,7 @@
},
{
...BASE_TX_OUTPUT,
- value: 4999600000,
+ sats: 4999600000n,
},
]);
@@ -289,7 +289,7 @@
txid: slpGenesisTxid,
outIdx: 2,
},
- value: 10000,
+ sats: 10000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_FUNGIBLE,
tokenId: slpGenesisTxid,
@@ -302,7 +302,7 @@
expect(slpMint.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c50000101044d494e5420cd295e7eb883b5826e2d8872b1626a4af4ce7ec81c468f1bfdad14632036d20a0103080000000000000014',
},
@@ -311,7 +311,7 @@
token: {
...BASE_TX_TOKEN_INFO_SLP_FUNGIBLE,
tokenId: slpGenesisTxid,
- amount: '20',
+ atoms: 20n,
},
},
{
@@ -369,11 +369,11 @@
txid: slpGenesisTxid,
outIdx: 1,
},
- value: 10000,
+ sats: 10000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_FUNGIBLE,
tokenId: slpGenesisTxid,
- amount: '5000',
+ atoms: 5000n,
},
},
]);
@@ -382,26 +382,26 @@
expect(slpSend.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010453454e4420cd295e7eb883b5826e2d8872b1626a4af4ce7ec81c468f1bfdad14632036d20a0800000000000003e8080000000000000fa0',
},
{
...BASE_TX_OUTPUT,
- value: 4000,
+ sats: 4000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_FUNGIBLE,
tokenId: slpGenesisTxid,
- amount: '1000',
+ atoms: 1000n,
},
},
{
...BASE_TX_OUTPUT,
- value: 4000,
+ sats: 4000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_FUNGIBLE,
tokenId: slpGenesisTxid,
- amount: '4000',
+ atoms: 4000n,
},
},
]);
@@ -445,7 +445,7 @@
txid: slpGenesisTxid,
outIdx: 3,
},
- value: 4999600000,
+ sats: 4999600000n,
},
]);
@@ -454,13 +454,13 @@
expect(slpEmptyGenesis.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001010747454e455349534c004c004c004c0001004c00080000000000000000',
},
{
...BASE_TX_OUTPUT,
- value: 4999500000,
+ sats: 4999500000n,
},
]);
@@ -496,7 +496,7 @@
const blockTxs = await chronik.blockTxs(CHAIN_INIT_HEIGHT + 2);
// Clone as we will use blockTxs.txs later
- const txsFromBlock = JSON.parse(JSON.stringify(blockTxs.txs));
+ const txsFromBlock = [...blockTxs.txs];
// The first tx is the coinbase tx, which is not a token
const coinbaseTx = txsFromBlock.shift()!;
diff --git a/modules/chronik-client/test/integration/token_slp_mint_vault.ts b/modules/chronik-client/test/integration/token_slp_mint_vault.ts
--- a/modules/chronik-client/test/integration/token_slp_mint_vault.ts
+++ b/modules/chronik-client/test/integration/token_slp_mint_vault.ts
@@ -115,11 +115,11 @@
},
inputScript: '0151',
outputScript: 'a914da1745e9b549bd0bfa1a569971c77eba30cd5a4b87',
- value: 100000,
+ sats: 100000n,
sequenceNo: 0,
};
const BASE_TX_OUTPUT = {
- value: 10000,
+ sats: 10000n,
outputScript: 'a914da1745e9b549bd0bfa1a569971c77eba30cd5a4b87',
};
const BASE_TX_TOKEN_INFO_SLP_V2 = {
@@ -129,7 +129,7 @@
number: 2,
},
entryIdx: 0,
- amount: '1000',
+ atoms: 1000n,
isMintBaton: false,
};
const BASE_TOKEN_ENTRY = {
@@ -137,8 +137,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
};
@@ -192,7 +192,7 @@
},
{
...BASE_TX_OUTPUT,
- value: 79000,
+ sats: 79000n,
outputScript: 'a91428e2146de5a061bf57845a04968d89cbdab733e387',
},
]);
@@ -261,13 +261,13 @@
expect(slpVaultGenesis.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001020747454e4553495308534c505641554c540130013020787878787878787878787878787878787878787878787878787878787878787801001428e2146de5a061bf57845a04968d89cbdab733e30800000000000003e8',
},
{
...BASE_TX_OUTPUT,
- value: 546,
+ sats: 546n,
token: {
...BASE_TX_TOKEN_INFO_SLP_V2,
tokenId: slpVaultGenesisTxid,
@@ -275,7 +275,7 @@
},
{
...BASE_TX_OUTPUT,
- value: 99000,
+ sats: 99000n,
},
]);
@@ -342,7 +342,7 @@
},
inputScript: '015c',
outputScript: 'a91428e2146de5a061bf57845a04968d89cbdab733e387',
- value: 10000,
+ sats: 10000n,
},
]);
@@ -350,13 +350,13 @@
expect(slpVaultMint.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c50000102044d494e5420768626ba27515513f148d714453bd2964f0de49c6686fa54da56ae4e19387c70080000000000000fa0',
},
{
...BASE_TX_OUTPUT,
- value: 9000,
+ sats: 9000n,
},
]);
diff --git a/modules/chronik-client/test/integration/token_slp_nft1.ts b/modules/chronik-client/test/integration/token_slp_nft1.ts
--- a/modules/chronik-client/test/integration/token_slp_nft1.ts
+++ b/modules/chronik-client/test/integration/token_slp_nft1.ts
@@ -116,11 +116,11 @@
},
inputScript: '0151',
outputScript: 'a914da1745e9b549bd0bfa1a569971c77eba30cd5a4b87',
- value: 5000000000,
+ sats: 5000000000n,
sequenceNo: 0,
};
const BASE_TX_OUTPUT = {
- value: 2000,
+ sats: 2000n,
outputScript: 'a914da1745e9b549bd0bfa1a569971c77eba30cd5a4b87',
};
const BASE_TX_TOKEN_INFO_SLP_NFT = {
@@ -130,7 +130,7 @@
number: 129,
},
entryIdx: 0,
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
};
const BASE_TOKEN_ENTRY = {
@@ -138,8 +138,8 @@
isInvalid: false,
burnSummary: '',
failedColorings: [],
- actualBurnAmount: '0',
- intentionalBurn: '0',
+ actualBurnAtoms: 0n,
+ intentionalBurnAtoms: 0n,
burnsMintBatons: false,
};
let slpGenesisTxid = '';
@@ -184,23 +184,23 @@
expect(slpGenesis.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001810747454e455349530d534c50204e46542047524f555013536c70204e46542047524f555020746f6b656e0e687474703a2f2f736c702e6e667420787878787878787878787878787878787878787878787878787878787878787801040102080000000000001388',
},
{
...BASE_TX_OUTPUT,
- value: 10000,
+ sats: 10000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpGenesisTxid,
- amount: '5000',
+ atoms: 5000n,
isMintBaton: false,
},
},
{
...BASE_TX_OUTPUT,
- value: 10000,
+ sats: 10000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpGenesisTxid,
@@ -208,7 +208,7 @@
},
{
...BASE_TX_OUTPUT,
- value: 4999600000,
+ sats: 4999600000n,
},
]);
@@ -285,7 +285,7 @@
txid: 'b5100125684e0a7ccb8a6a2a0272586e1275f438924464000df5c834ed64bccb',
outIdx: 2,
},
- value: 10000,
+ sats: 10000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpGenesisTxid,
@@ -297,7 +297,7 @@
expect(slpMint.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c50000181044d494e5420b5100125684e0a7ccb8a6a2a0272586e1275f438924464000df5c834ed64bccb0103080000000000000014',
},
@@ -306,7 +306,7 @@
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpGenesisTxid,
- amount: '20',
+ atoms: 20n,
isMintBaton: false,
},
},
@@ -364,11 +364,11 @@
txid: 'b5100125684e0a7ccb8a6a2a0272586e1275f438924464000df5c834ed64bccb',
outIdx: 1,
},
- value: 10000,
+ sats: 10000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpGenesisTxid,
- amount: '5000',
+ atoms: 5000n,
isMintBaton: false,
},
},
@@ -378,7 +378,7 @@
expect(slpSend.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001810453454e4420b5100125684e0a7ccb8a6a2a0272586e1275f438924464000df5c834ed64bccb080000000000000001080000000000000063080000000000000384080000000000000fa0',
},
@@ -387,7 +387,7 @@
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpGenesisTxid,
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
},
@@ -396,7 +396,7 @@
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpGenesisTxid,
- amount: '99',
+ atoms: 99n,
isMintBaton: false,
},
},
@@ -405,7 +405,7 @@
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpGenesisTxid,
- amount: '900',
+ atoms: 900n,
isMintBaton: false,
},
},
@@ -414,7 +414,7 @@
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpGenesisTxid,
- amount: '4000',
+ atoms: 4000n,
isMintBaton: false,
},
},
@@ -485,12 +485,12 @@
txid: '2c6258bee9033399108e845b3c69e60746b89624b3ec18c5d5cc4b2e88c6ccab',
outIdx: 1,
},
- value: 2000,
+ sats: 2000n,
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpGenesisTxid,
entryIdx: 1,
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
},
@@ -500,13 +500,13 @@
expect(slpChildGenesis.outputs).to.deep.equal([
{
...BASE_TX_OUTPUT,
- value: 0,
+ sats: 0n,
outputScript:
'6a04534c500001410747454e455349530d534c50204e4654204348494c4413536c70204e4654204348494c4420746f6b656e4c004c0001004c00080000000000000001',
},
{
...BASE_TX_OUTPUT,
- value: 1400,
+ sats: 1400n,
token: {
...BASE_TX_TOKEN_INFO_SLP_NFT,
tokenId: slpChildGenesisTxid,
@@ -515,7 +515,7 @@
protocol: 'SLP',
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
},
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
},
@@ -571,7 +571,7 @@
).to.eql(true);
// Clone as we will use blockTxs.txs later
- const txsFromBlock = JSON.parse(JSON.stringify(blockTxs.txs));
+ const txsFromBlock = [...blockTxs.txs];
// The first tx is the coinbase tx, which is not a token
const coinbaseTx = txsFromBlock.shift()!;
diff --git a/modules/chronik-client/test/integration/websocket.ts b/modules/chronik-client/test/integration/websocket.ts
--- a/modules/chronik-client/test/integration/websocket.ts
+++ b/modules/chronik-client/test/integration/websocket.ts
@@ -508,7 +508,7 @@
scriptsig: coinbaseScriptsig,
outputs: [
{
- value: coinbaseOutValue,
+ sats: BigInt(coinbaseOutValue),
outputScript: coinbaseOutScriptpubkey,
},
],
@@ -585,7 +585,7 @@
scriptsig: coinbaseScriptsig,
outputs: [
{
- value: coinbaseOutValue,
+ sats: BigInt(coinbaseOutValue),
outputScript: coinbaseOutScriptpubkey,
},
],
@@ -711,7 +711,7 @@
scriptsig: coinbaseScriptsig,
outputs: [
{
- value: coinbaseOutValue,
+ sats: BigInt(coinbaseOutValue),
outputScript: coinbaseOutScriptpubkey,
},
],
@@ -747,7 +747,7 @@
scriptsig: coinbaseScriptsig,
outputs: [
{
- value: coinbaseOutValue,
+ sats: BigInt(coinbaseOutValue),
outputScript: coinbaseOutScriptpubkey,
},
],
diff --git a/modules/chronik-client/tsconfig.json b/modules/chronik-client/tsconfig.json
--- a/modules/chronik-client/tsconfig.json
+++ b/modules/chronik-client/tsconfig.json
@@ -11,7 +11,7 @@
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
- "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
+ "target": "es2020" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
diff --git a/modules/ecash-agora/README.md b/modules/ecash-agora/README.md
--- a/modules/ecash-agora/README.md
+++ b/modules/ecash-agora/README.md
@@ -186,3 +186,8 @@
### 1.0.1
- Do not validate for unspendable offer creation when we calculate fee in `acceptFeeSats()` [D17648](https://reviews.bitcoinabc.org/D17648)
+
+### 2.0.0
+
+- Improve types and shapes in line with chronik proto updates [D17650](https://reviews.bitcoinabc.org/D17650)
+- Introduce 'atoms' as term for base unit of tokens. Implement in lib. The term "token" is ambiguous as it is not clear that we are talking about base tokens.
diff --git a/modules/ecash-agora/agora.py b/modules/ecash-agora/agora.py
--- a/modules/ecash-agora/agora.py
+++ b/modules/ecash-agora/agora.py
@@ -321,7 +321,7 @@
op_return_script = slp_send(
token_type=self.token.token_type,
token_id=self.token.token_id,
- amounts=[0, self.token.amount],
+ amounts=[0, self.token.atoms],
)
return (
bytes(8)
@@ -744,11 +744,11 @@
token_trunc_factor = 1 << (8 * num_token_trunc_bytes)
# Offers must have a losslessly truncatable token amount
- if token.amount % token_trunc_factor != 0:
+ if token.atoms % token_trunc_factor != 0:
return None
partial_alp = AgoraPartial(
- trunc_tokens=token.amount // token_trunc_factor,
+ trunc_tokens=token.atoms // token_trunc_factor,
num_token_trunc_bytes=num_token_trunc_bytes,
token_scale_factor=token_scale_factor,
scaled_trunc_tokens_per_trunc_sat=scaled_trunc_tokens_per_trunc_sat,
diff --git a/modules/ecash-agora/package-lock.json b/modules/ecash-agora/package-lock.json
--- a/modules/ecash-agora/package-lock.json
+++ b/modules/ecash-agora/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "ecash-agora",
- "version": "1.0.1",
+ "version": "2.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "ecash-agora",
- "version": "1.0.1",
+ "version": "2.0.0",
"license": "MIT",
"dependencies": {
"chronik-client": "file:../chronik-client",
diff --git a/modules/ecash-agora/package.json b/modules/ecash-agora/package.json
--- a/modules/ecash-agora/package.json
+++ b/modules/ecash-agora/package.json
@@ -1,6 +1,6 @@
{
"name": "ecash-agora",
- "version": "1.0.1",
+ "version": "2.0.0",
"description": "Library for interacting with the eCash Agora protocol",
"main": "./dist/index.js",
"scripts": {
diff --git a/modules/ecash-agora/src/ad.ts b/modules/ecash-agora/src/ad.ts
--- a/modules/ecash-agora/src/ad.ts
+++ b/modules/ecash-agora/src/ad.ts
@@ -51,7 +51,7 @@
opreturnScript = slpSend(
tokenEntry.tokenId,
tokenEntry.tokenType.number,
- [0, BigInt(offerOutput.token.amount)],
+ [0n, offerOutput.token.atoms],
);
break;
case 'ALP':
@@ -103,7 +103,7 @@
txBuilderInput: {
prevOut: outpoint,
signData: {
- value: offerOutput.value,
+ sats: offerOutput.sats,
redeemScript: expectedAgoraScript,
},
},
diff --git a/modules/ecash-agora/src/agora.ts b/modules/ecash-agora/src/agora.ts
--- a/modules/ecash-agora/src/agora.ts
+++ b/modules/ecash-agora/src/agora.ts
@@ -13,11 +13,10 @@
} from 'chronik-client';
import {
alpSend,
- Amount,
+ Atoms,
Bytes,
DEFAULT_DUST_LIMIT,
DEFAULT_FEE_PER_KB,
- Ecc,
EccDummy,
emppScript,
fromHex,
@@ -79,13 +78,11 @@
/** If an offer is TAKEN */
export interface TakenInfo {
/** satoshis paid in taking an offer */
- satoshisPaid: number;
+ sats: bigint;
/**
- * amount of token purchased in base tokens
- * (aka token satoshis, the token qty without
- * decimals applied)
+ * amount of token purchased in atoms aka base tokens
*/
- baseTokens: string;
+ atoms: bigint;
/** taker outputScript as a hex string*/
takerScriptHex: string;
}
@@ -151,10 +148,10 @@
fuelInputs: TxBuilderInput[];
/** Script to send the tokens and the leftover sats (if any) to. */
recipientScript: Script;
- /** For partial offers: Number of accepted tokens */
- acceptedTokens?: bigint;
+ /** For partial offers: Number of accepted atoms (base tokens) */
+ acceptedAtoms?: bigint;
/** Dust amount to use for the token output. */
- dustAmount?: number;
+ dustAmount?: bigint;
/** Fee per kB to use when building the tx. */
feePerKb?: number;
/** Allow accepting an offer such that the remaining quantity is unacceptable */
@@ -169,12 +166,12 @@
fuelInputs: params.fuelInputs,
extraOutputs: [
{
- value: dustAmount,
+ sats: dustAmount,
script: params.recipientScript,
},
params.recipientScript,
],
- acceptedTokens: params.acceptedTokens,
+ acceptedAtoms: params.acceptedAtoms,
allowUnspendable,
});
return txBuild.sign({ feePerKb, dustLimit: dustAmount });
@@ -193,7 +190,7 @@
extraInputs?: TxBuilderInput[];
/** Fee per kB to use when building the tx. */
feePerKb?: number;
- acceptedTokens?: bigint;
+ acceptedAtoms?: bigint;
}): bigint {
const feePerKb = params.feePerKb ?? DEFAULT_FEE_PER_KB;
const txBuild = this._acceptTxBuilder({
@@ -202,11 +199,11 @@
fuelInputs: params.extraInputs ?? [],
extraOutputs: [
{
- value: 0,
+ sats: 0n,
script: params.recipientScript,
},
],
- acceptedTokens: params.acceptedTokens,
+ acceptedAtoms: params.acceptedAtoms,
/** We do not need to validate for this condition when we get the fee */
allowUnspendable: true,
});
@@ -219,7 +216,7 @@
covenantPk: Uint8Array;
fuelInputs: TxBuilderInput[];
extraOutputs: TxBuilderOutput[];
- acceptedTokens?: bigint;
+ acceptedAtoms?: bigint;
allowUnspendable?: boolean;
}): TxBuilder {
switch (this.variant.type) {
@@ -242,18 +239,18 @@
],
});
case 'PARTIAL': {
- if (params.acceptedTokens === undefined) {
+ if (params.acceptedAtoms === undefined) {
throw new Error(
- 'Must set acceptedTokens for partial offers',
+ 'Must set acceptedAtoms for partial offers',
);
}
const txBuild = new TxBuilder();
const agoraPartial = this.variant.params;
const truncFactor =
- 1n << BigInt(8 * agoraPartial.numTokenTruncBytes);
- if (params.acceptedTokens % truncFactor != 0n) {
+ 1n << BigInt(8 * agoraPartial.numAtomsTruncBytes);
+ if (params.acceptedAtoms % truncFactor != 0n) {
throw new Error(
- `Must acceptedTokens must be a multiple of ${truncFactor}`,
+ `Must acceptedAtoms must be a multiple of ${truncFactor}`,
);
}
@@ -263,7 +260,7 @@
) {
// Prevent creation of unacceptable offer
agoraPartial.preventUnacceptableRemainder(
- params.acceptedTokens,
+ params.acceptedAtoms,
);
}
@@ -271,21 +268,21 @@
input: this.txBuilderInput,
signatory: AgoraPartialSignatory(
agoraPartial,
- params.acceptedTokens / truncFactor,
+ params.acceptedAtoms / truncFactor,
params.covenantSk,
params.covenantPk,
),
});
txBuild.inputs.push(...params.fuelInputs);
- const sendAmounts: Amount[] = [0];
- const offeredTokens = BigInt(this.token.amount);
- if (offeredTokens > params.acceptedTokens) {
- sendAmounts.push(offeredTokens - params.acceptedTokens);
+ const sendAmounts: Atoms[] = [0n];
+ const offeredAtoms = this.token.atoms;
+ if (offeredAtoms > params.acceptedAtoms) {
+ sendAmounts.push(offeredAtoms - params.acceptedAtoms);
}
- sendAmounts.push(params.acceptedTokens);
+ sendAmounts.push(params.acceptedAtoms);
if (agoraPartial.tokenProtocol === 'SLP') {
txBuild.outputs.push({
- value: 0,
+ sats: 0n,
script: slpSend(
this.token.tokenId,
this.token.tokenType.number,
@@ -294,7 +291,7 @@
});
} else if (agoraPartial.tokenProtocol === 'ALP') {
txBuild.outputs.push({
- value: 0,
+ sats: 0n,
script: emppScript([
agoraPartial.adPushdata(),
alpSend(
@@ -308,18 +305,17 @@
throw new Error('Not implemented');
}
txBuild.outputs.push({
- value: agoraPartial.askedSats(params.acceptedTokens),
+ sats: agoraPartial.askedSats(params.acceptedAtoms),
script: Script.p2pkh(shaRmd160(agoraPartial.makerPk)),
});
- if (offeredTokens > params.acceptedTokens) {
+ if (offeredAtoms > params.acceptedAtoms) {
const newAgoraPartial = new AgoraPartial({
...agoraPartial,
- truncTokens:
- (offeredTokens - params.acceptedTokens) /
- truncFactor,
+ truncAtoms:
+ (offeredAtoms - params.acceptedAtoms) / truncFactor,
});
txBuild.outputs.push({
- value: agoraPartial.dustAmount,
+ sats: agoraPartial.dustAmount,
script: Script.p2sh(
shaRmd160(newAgoraPartial.script().bytecode),
),
@@ -358,7 +354,7 @@
/** Script to send canceled tokens and the leftover sats (if any) to. */
recipientScript: Script;
/** Dust amount to use for the token output. */
- dustAmount?: number;
+ dustAmount?: bigint;
/** Fee per kB to use when building the tx. */
feePerKb?: number;
}): Tx {
@@ -369,7 +365,7 @@
fuelInputs: params.fuelInputs,
extraOutputs: [
{
- value: dustAmount,
+ sats: dustAmount,
script: params.recipientScript,
},
params.recipientScript,
@@ -403,7 +399,7 @@
fuelInputs: params.extraInputs ?? [],
extraOutputs: [
{
- value: 0,
+ sats: 0n,
script: params.recipientScript,
},
],
@@ -438,22 +434,22 @@
switch (tokenProtocol) {
case 'SLP':
outputs.push({
- value: 0,
+ sats: 0n,
script: slpSend(
this.token.tokenId,
this.token.tokenType.number,
- [BigInt(this.token.amount)],
+ [this.token.atoms],
),
});
break;
case 'ALP':
outputs.push({
- value: 0,
+ sats: 0n,
script: emppScript([
alpSend(
this.token.tokenId,
this.token.tokenType.number,
- [BigInt(this.token.amount)],
+ [this.token.atoms],
),
]),
});
@@ -476,17 +472,17 @@
* How many satoshis are asked to accept this offer, excluding tx fees.
* This is what should be displayed to the user as the price.
**/
- public askedSats(acceptedTokens?: bigint): bigint {
+ public askedSats(acceptedAtoms?: bigint): bigint {
switch (this.variant.type) {
case 'ONESHOT':
return this.variant.params.askedSats();
case 'PARTIAL':
- if (acceptedTokens === undefined) {
+ if (acceptedAtoms === undefined) {
throw new Error(
- 'Must provide acceptedTokens for PARTIAL offers',
+ 'Must provide acceptedAtoms for PARTIAL offers',
);
}
- return this.variant.params.askedSats(acceptedTokens);
+ return this.variant.params.askedSats(acceptedAtoms);
default:
throw new Error('Not implemented');
}
@@ -533,13 +529,13 @@
export class Agora {
private chronik: ChronikClient;
private plugin: PluginEndpoint;
- private dustAmount: number;
+ private dustAmount: bigint;
/**
* Create an Agora instance. The provided Chronik instance must have the
* "agora" plugin loaded.
**/
- public constructor(chronik: ChronikClient, dustAmount?: number) {
+ public constructor(chronik: ChronikClient, dustAmount?: bigint) {
this.chronik = chronik;
this.plugin = chronik.plugin(PLUGIN_NAME);
this.dustAmount = dustAmount ?? DEFAULT_DUST_LIMIT;
@@ -636,7 +632,7 @@
// isCanceled is always the last pushop (before redeemScript)
const opIsCanceled = ops[ops.length - 2];
const isCanceled = opIsCanceled === OP_0;
- // If isCanceled, then offer.token.amount is the canceled amount
+ // If isCanceled, then offer.token.atoms is the canceled amount
let takenInfo: undefined | TakenInfo;
if (!isCanceled) {
// If this tx is not canceling an agora offer
@@ -676,7 +672,7 @@
// The purchase price is satoshis that go to the offer creator
// Index 1 output
- const satoshisPaid = tx.outputs[1].value;
+ const sats = tx.outputs[1].sats;
// The taker receives the purchased tokens at a p2pkh address
// This is at index 2 for a buy of the full offer and index 3 for a partial buy
@@ -690,14 +686,14 @@
const takerScriptHex =
tx.outputs[takerBuyIndex].outputScript;
- const baseTokens = tx.outputs[takerBuyIndex].token?.amount;
- if (typeof baseTokens === 'string') {
+ const atoms = tx.outputs[takerBuyIndex].token?.atoms;
+ if (typeof atoms === 'bigint') {
// Should always be true but we may have different kinds of agora
// offers in the future
// So, we only set if we have the info we expect
takenInfo = {
- satoshisPaid,
- baseTokens,
+ sats,
+ atoms,
takerScriptHex,
};
}
@@ -708,7 +704,7 @@
outpoint: input.prevOut,
blockHeight: tx.block?.height ?? -1,
isCoinbase: tx.isCoinbase,
- value: input.value,
+ sats: input.sats,
script: input.outputScript!,
isFinal: false,
plugins: input.plugins,
@@ -864,11 +860,11 @@
const outputsSerBytes = new Bytes(fromHex(outputsSerHex));
const enforcedOutputs: TxOutput[] = [
{
- value: BigInt(0),
+ sats: 0n,
script: slpSend(
utxo.token.tokenId,
utxo.token.tokenType.number,
- [0, BigInt(utxo.token.amount)],
+ [0n, utxo.token.atoms],
),
},
];
@@ -897,7 +893,7 @@
txBuilderInput: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
redeemScript: agoraOneshot.script(),
},
},
@@ -918,11 +914,11 @@
// Plugin gives us the offer data in this form
const [
_,
- numTokenTruncBytesHex,
+ numAtomsTruncBytesHex,
numSatsTruncBytesHex,
- tokenScaleFactorHex,
- scaledTruncTokensPerTruncSatHex,
- minAcceptedScaledTruncTokensHex,
+ atomsScaleFactorHex,
+ scaledTruncAtomsPerTruncSatHex,
+ minAcceptedScaledTruncAtomsHex,
enforcedLockTimeHex,
] = plugin.data;
@@ -930,16 +926,16 @@
throw new Error('Outdated plugin');
}
- const numTokenTruncBytes = fromHex(numTokenTruncBytesHex)[0];
+ const numAtomsTruncBytes = fromHex(numAtomsTruncBytesHex)[0];
const numSatsTruncBytes = fromHex(numSatsTruncBytesHex)[0];
- const tokenScaleFactor = new Bytes(
- fromHex(tokenScaleFactorHex),
+ const atomsScaleFactor = new Bytes(
+ fromHex(atomsScaleFactorHex),
).readU64();
- const scaledTruncTokensPerTruncSat = new Bytes(
- fromHex(scaledTruncTokensPerTruncSatHex),
+ const scaledTruncAtomsPerTruncSat = new Bytes(
+ fromHex(scaledTruncAtomsPerTruncSatHex),
).readU64();
- const minAcceptedScaledTruncTokens = new Bytes(
- fromHex(minAcceptedScaledTruncTokensHex),
+ const minAcceptedScaledTruncAtoms = new Bytes(
+ fromHex(minAcceptedScaledTruncAtomsHex),
).readU64();
const enforcedLockTime = new Bytes(
fromHex(enforcedLockTimeHex),
@@ -956,14 +952,13 @@
);
const agoraPartial = new AgoraPartial({
- truncTokens:
- BigInt(utxo.token.amount) >> (8n * BigInt(numTokenTruncBytes)),
- numTokenTruncBytes,
- tokenScaleFactor,
- scaledTruncTokensPerTruncSat,
+ truncAtoms: utxo.token.atoms >> (8n * BigInt(numAtomsTruncBytes)),
+ numAtomsTruncBytes,
+ atomsScaleFactor,
+ scaledTruncAtomsPerTruncSat,
numSatsTruncBytes,
makerPk,
- minAcceptedScaledTruncTokens,
+ minAcceptedScaledTruncAtoms,
tokenId: utxo.token.tokenId,
tokenType: utxo.token.tokenType.number,
tokenProtocol: utxo.token.tokenType.protocol,
@@ -981,7 +976,7 @@
txBuilderInput: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
redeemScript: agoraPartial.script(),
},
},
diff --git a/modules/ecash-agora/src/inputs.test.ts b/modules/ecash-agora/src/inputs.test.ts
--- a/modules/ecash-agora/src/inputs.test.ts
+++ b/modules/ecash-agora/src/inputs.test.ts
@@ -22,18 +22,18 @@
// CACHET candle created by Agora Partial Alpha
// Created by approx params offering 100, min 0.1, 10,000 XEC per CACHET
const agoraPartialCachetAlphaOne = new AgoraPartial({
- dustAmount: 546,
+ dustAmount: 546n,
enforcedLockTime: 1040365320,
- minAcceptedScaledTruncTokens: 2147470n,
+ minAcceptedScaledTruncAtoms: 2147470n,
numSatsTruncBytes: 1,
- numTokenTruncBytes: 0,
- scaledTruncTokensPerTruncSat: 5497n,
+ numAtomsTruncBytes: 0,
+ scaledTruncAtomsPerTruncSat: 5497n,
scriptLen: 214,
tokenId: 'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
tokenProtocol: 'SLP',
- tokenScaleFactor: 214747n,
+ atomsScaleFactor: 214747n,
tokenType: 1,
- truncTokens: 10000n,
+ truncAtoms: 10000n,
makerPk: DUMMY_KEYPAIR.pk,
});
const agoraOfferCachetAlphaOne = new AgoraOffer({
@@ -43,7 +43,7 @@
},
status: 'OPEN',
token: {
- amount: '10000',
+ atoms: 10000n,
isMintBaton: false,
tokenId:
'aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1',
@@ -60,7 +60,7 @@
},
signData: {
redeemScript: agoraPartialCachetAlphaOne.script(),
- value: 546,
+ sats: 546n,
},
},
variant: {
@@ -73,7 +73,7 @@
const heismanNftOne = new AgoraOneshot({
enforcedOutputs: [
{
- value: 0n,
+ sats: 0n,
script: new Script(
fromHex(
'6a04534c500001410453454e4420be095430a16a024134bea079f235bcd2f79425c42659f9346416f626671f371c080000000000000000080000000000000001',
@@ -81,7 +81,7 @@
),
},
{
- value: 5000000000n,
+ sats: 5000000000n,
script: new Script(
fromHex('76a91495e79f51d4260bc0dc3ba7fb77c7be92d0fbdd1d88ac'),
),
@@ -102,10 +102,10 @@
type: 'SLP_TOKEN_TYPE_NFT1_CHILD',
number: 65,
} as TokenType,
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
- value: 546,
+ sats: 546n,
};
export const heismanNftOneOffer = new AgoraOffer({
variant: {
@@ -117,7 +117,7 @@
txBuilderInput: {
prevOut: heismanNftOneUtxo.outpoint,
signData: {
- value: heismanNftOneUtxo.value,
+ sats: heismanNftOneUtxo.sats,
redeemScript: heismanNftOne.script(),
},
},
@@ -128,7 +128,7 @@
description: string;
agoraOffer: AgoraOffer;
utxos: ScriptUtxo[];
- acceptedTokens: bigint;
+ acceptedAtoms: bigint;
feePerKb: number;
returned: ScriptUtxo[];
}
@@ -136,7 +136,7 @@
description: string;
agoraOffer: AgoraOffer;
utxos: ScriptUtxo[];
- acceptedTokens: bigint;
+ acceptedAtoms: bigint;
feePerKb: number;
error: string;
}
@@ -191,10 +191,10 @@
// acceptFeeSats 1182n
// askedSats 5460736n
// requiredSats 5461918n
- utxos: [{ value: 5461918 }] as unknown as ScriptUtxo[],
- acceptedTokens: 546n,
+ utxos: [{ sats: 5461918n }] as unknown as ScriptUtxo[],
+ acceptedAtoms: 546n,
feePerKb: 1000,
- returned: [{ value: 5461918 }] as unknown as ScriptUtxo[],
+ returned: [{ sats: 5461918n }] as unknown as ScriptUtxo[],
},
{
description:
@@ -203,10 +203,10 @@
// acceptFeeSats 2376n
// askedSats 5460736n
// requiredSats 5463112
- utxos: [{ value: 5463112 }] as unknown as ScriptUtxo[],
- acceptedTokens: 546n,
+ utxos: [{ sats: 5463112n }] as unknown as ScriptUtxo[],
+ acceptedAtoms: 546n,
feePerKb: 2010,
- returned: [{ value: 5463112 }] as unknown as ScriptUtxo[],
+ returned: [{ sats: 5463112n }] as unknown as ScriptUtxo[],
},
{
description: 'Two inputs exactly covering the price + fee',
@@ -215,14 +215,14 @@
// askedSats 5460736n
// requiredSats 5462059n
utxos: [
- { value: 5461917 },
- { value: 142 },
+ { sats: 5461917n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
- acceptedTokens: 546n,
+ acceptedAtoms: 546n,
feePerKb: 1000,
returned: [
- { value: 5461917 },
- { value: 142 },
+ { sats: 5461917n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
},
{
@@ -232,16 +232,16 @@
// askedSats 5460736n
// requiredSats 5462059n
utxos: [
- { value: 5461917 },
- { value: 141 },
- { value: 142 },
+ { sats: 5461917n },
+ { sats: 141n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
- acceptedTokens: 546n,
+ acceptedAtoms: 546n,
feePerKb: 1000,
returned: [
- { value: 5461917 },
- { value: 141 },
- { value: 142 },
+ { sats: 5461917n },
+ { sats: 141n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
},
],
@@ -250,8 +250,8 @@
description:
'We throw an error if available utxos can only cover 1 satoshi less than price + fee',
agoraOffer: agoraOfferCachetAlphaOne,
- utxos: [{ value: 5461917 }] as unknown as ScriptUtxo[],
- acceptedTokens: 546n,
+ utxos: [{ sats: 5461917n }] as unknown as ScriptUtxo[],
+ acceptedAtoms: 546n,
feePerKb: 1000,
error: 'Insufficient utxos to accept this offer',
},
@@ -266,9 +266,9 @@
// acceptFeeSats 740n
// askedSats 5000000000n
// requiredSats 5000000740n
- utxos: [{ value: 5000000740 }] as unknown as ScriptUtxo[],
+ utxos: [{ sats: 5000000740n }] as unknown as ScriptUtxo[],
feePerKb: 1000,
- returned: [{ value: 5000000740 }] as unknown as ScriptUtxo[],
+ returned: [{ sats: 5000000740n }] as unknown as ScriptUtxo[],
},
{
description:
@@ -277,9 +277,9 @@
// acceptFeeSats 1488n
// askedSats 5000000000n
// requiredSats 5000001488n
- utxos: [{ value: 5000001488 }] as unknown as ScriptUtxo[],
+ utxos: [{ sats: 5000001488n }] as unknown as ScriptUtxo[],
feePerKb: 2010,
- returned: [{ value: 5000001488 }] as unknown as ScriptUtxo[],
+ returned: [{ sats: 5000001488n }] as unknown as ScriptUtxo[],
},
{
description: 'Two inputs exactly covering the price + fee',
@@ -288,13 +288,13 @@
// askedSats 5000000000n
// requiredSats 5000000740n
utxos: [
- { value: 5000000739 },
- { value: 142 },
+ { sats: 5000000739n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
feePerKb: 1000,
returned: [
- { value: 5000000739 },
- { value: 142 },
+ { sats: 5000000739n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
},
{
@@ -304,15 +304,15 @@
// askedSats 5000000000n
// requiredSats 5000000881n
utxos: [
- { value: 5000000739 },
- { value: 141 },
- { value: 142 },
+ { sats: 5000000739n },
+ { sats: 141n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
feePerKb: 1000,
returned: [
- { value: 5000000739 },
- { value: 141 },
- { value: 142 },
+ { sats: 5000000739n },
+ { sats: 141n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
},
],
@@ -321,7 +321,7 @@
description:
'We throw an error if available utxos can only cover 1 satoshi less than price + fee',
oneshotOffer: heismanNftOneOffer,
- utxos: [{ value: 5000000739 }] as unknown as ScriptUtxo[],
+ utxos: [{ sats: 5000000739n }] as unknown as ScriptUtxo[],
feePerKb: 1000,
error: 'Insufficient utxos to accept this offer',
},
@@ -334,31 +334,31 @@
'We can get a single fuel input to cancel the offer, if the wallet has one exactly covering the fee',
agoraOffer: agoraOfferCachetAlphaOne,
// cancelFeeSats 719n
- utxos: [{ value: 719 }] as unknown as ScriptUtxo[],
+ utxos: [{ sats: 719n }] as unknown as ScriptUtxo[],
feePerKb: 1000,
- returned: [{ value: 719 }] as unknown as ScriptUtxo[],
+ returned: [{ sats: 719n }] as unknown as ScriptUtxo[],
},
{
description:
'We can get a single fuel input to cancel the offer, if the wallet has one exactly covering the fee, at a higher than min fee',
agoraOffer: agoraOfferCachetAlphaOne,
// cancelFeeSats 1446
- utxos: [{ value: 1446 }] as unknown as ScriptUtxo[],
+ utxos: [{ sats: 1446n }] as unknown as ScriptUtxo[],
feePerKb: 2010,
- returned: [{ value: 1446 }] as unknown as ScriptUtxo[],
+ returned: [{ sats: 1446n }] as unknown as ScriptUtxo[],
},
{
description: 'Two inputs exactly covering the fee',
agoraOffer: agoraOfferCachetAlphaOne,
// cancelFeeSats 860n
utxos: [
- { value: 718 },
- { value: 142 },
+ { sats: 718n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
feePerKb: 1000,
returned: [
- { value: 718 },
- { value: 142 },
+ { sats: 718n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
},
{
@@ -366,15 +366,15 @@
agoraOffer: agoraOfferCachetAlphaOne,
// cancelFeeSats 1001n
utxos: [
- { value: 718 },
- { value: 141 },
- { value: 142 },
+ { sats: 718n },
+ { sats: 141n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
feePerKb: 1000,
returned: [
- { value: 718 },
- { value: 141 },
- { value: 142 },
+ { sats: 718n },
+ { sats: 141n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
},
// ONESHOT cases
@@ -383,18 +383,18 @@
'ONESHOT: We can get a single fuel input to cancel the offer, if the wallet has one exactly covering the price + fee',
agoraOffer: heismanNftOneOffer,
// cancelFeeSats 535
- utxos: [{ value: 535 }] as unknown as ScriptUtxo[],
+ utxos: [{ sats: 535n }] as unknown as ScriptUtxo[],
feePerKb: 1000,
- returned: [{ value: 535 }] as unknown as ScriptUtxo[],
+ returned: [{ sats: 535n }] as unknown as ScriptUtxo[],
},
{
description:
'ONESHOT: We can get a single fuel input to cancel the offer, if the wallet has one exactly covering the price + fee, at a higher than min fee',
agoraOffer: heismanNftOneOffer,
// cancelFeeSats 1076
- utxos: [{ value: 1076 }] as unknown as ScriptUtxo[],
+ utxos: [{ sats: 1076n }] as unknown as ScriptUtxo[],
feePerKb: 2010,
- returned: [{ value: 1076 }] as unknown as ScriptUtxo[],
+ returned: [{ sats: 1076n }] as unknown as ScriptUtxo[],
},
{
description:
@@ -402,13 +402,13 @@
agoraOffer: heismanNftOneOffer,
// cancelFeeSats 676
utxos: [
- { value: 534 },
- { value: 142 },
+ { sats: 534n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
feePerKb: 1000,
returned: [
- { value: 534 },
- { value: 142 },
+ { sats: 534n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
},
{
@@ -417,15 +417,15 @@
agoraOffer: heismanNftOneOffer,
// cancelFeeSats 817
utxos: [
- { value: 534 },
- { value: 141 },
- { value: 142 },
+ { sats: 534n },
+ { sats: 141n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
feePerKb: 1000,
returned: [
- { value: 534 },
- { value: 141 },
- { value: 142 },
+ { sats: 534n },
+ { sats: 141n },
+ { sats: 142n },
] as unknown as ScriptUtxo[],
},
],
@@ -434,7 +434,7 @@
description:
'We throw an error if available utxos can only cover 1 satoshi less than fee',
agoraOffer: agoraOfferCachetAlphaOne,
- utxos: [{ value: 718 }] as unknown as ScriptUtxo[],
+ utxos: [{ sats: 718n }] as unknown as ScriptUtxo[],
feePerKb: 1000,
error: 'Insufficient utxos to cancel this offer',
},
@@ -444,7 +444,7 @@
agoraOffer: heismanNftOneOffer,
utxos: [
{
- value: 534,
+ sats: 534n,
},
] as unknown as ScriptUtxo[],
feePerKb: 1000,
@@ -460,18 +460,13 @@
vectors.getAgoraPartialAcceptFuelInputs;
for (const expectedReturn of expectedReturns) {
it(`Return: ${expectedReturn.description}`, () => {
- const {
- agoraOffer,
- utxos,
- acceptedTokens,
- feePerKb,
- returned,
- } = expectedReturn;
+ const { agoraOffer, utxos, acceptedAtoms, feePerKb, returned } =
+ expectedReturn;
expect(
getAgoraPartialAcceptFuelInputs(
agoraOffer,
utxos,
- acceptedTokens,
+ acceptedAtoms,
feePerKb,
),
).to.deep.equal(returned);
@@ -479,13 +474,13 @@
}
for (const expectedError of expectedErrors) {
it(`Error: ${expectedError.description}`, () => {
- const { agoraOffer, utxos, acceptedTokens, feePerKb, error } =
+ const { agoraOffer, utxos, acceptedAtoms, feePerKb, error } =
expectedError;
expect(() =>
getAgoraPartialAcceptFuelInputs(
agoraOffer,
utxos,
- acceptedTokens,
+ acceptedAtoms,
feePerKb,
),
).to.throw(error);
diff --git a/modules/ecash-agora/src/inputs.ts b/modules/ecash-agora/src/inputs.ts
--- a/modules/ecash-agora/src/inputs.ts
+++ b/modules/ecash-agora/src/inputs.ts
@@ -16,7 +16,7 @@
const DUMMY_TXID =
'1111111111111111111111111111111111111111111111111111111111111111';
const DUMMY_WALLET_HASH = fromHex('12'.repeat(20));
-const DUMMY_SUFFICIENT_CANCEL_VALUE = 10000;
+const DUMMY_SUFFICIENT_CANCEL_VALUE = 10000n;
const DUMMY_SCRIPT = Script.p2pkh(DUMMY_WALLET_HASH);
export const DUMMY_KEYPAIR = {
sk: fromHex('33'.repeat(32)),
@@ -33,7 +33,7 @@
outIdx: 1,
},
signData: {
- value: DUMMY_SUFFICIENT_CANCEL_VALUE,
+ sats: DUMMY_SUFFICIENT_CANCEL_VALUE,
outputScript: DUMMY_SCRIPT,
},
},
@@ -46,7 +46,7 @@
export const getAgoraPartialAcceptFuelInputs = (
agoraOffer: AgoraOffer,
utxos: ScriptUtxo[],
- acceptedTokens: bigint,
+ acceptedAtoms: bigint,
feePerKb = DEFAULT_FEE_PER_KB,
): ScriptUtxo[] => {
const fuelInputs = [];
@@ -57,15 +57,15 @@
fuelInputs.push(utxo);
// Match our fuelInput count with dummyInputs
dummyInputs.push(DUMMY_INPUT);
- inputSatoshis += BigInt(utxo.value);
+ inputSatoshis += utxo.sats;
- const askedSats = agoraOffer.askedSats(BigInt(acceptedTokens));
+ const askedSats = agoraOffer.askedSats(BigInt(acceptedAtoms));
// Get the tx fee for this tx
const acceptFeeSats = agoraOffer.acceptFeeSats({
recipientScript: DUMMY_SCRIPT,
extraInputs: dummyInputs,
- acceptedTokens,
+ acceptedAtoms,
feePerKb,
});
@@ -82,7 +82,7 @@
/**
* Determine input utxos to cover an Agora ONESHOT accept offer
* Note: we could refactor getAgoraPartialAcceptFuelInputs to work with ONESHOT offers
- * However there is some ambiguity involved with the acceptedTokens param
+ * However there is some ambiguity involved with the acceptedAtoms param
* Cleaner to keep distinct functions
*/
export const getAgoraOneshotAcceptFuelInputs = (
@@ -98,7 +98,7 @@
fuelInputs.push(utxo);
// Match our fuelInput count with dummyInputs
dummyInputs.push(DUMMY_INPUT);
- inputSatoshis += BigInt(utxo.value);
+ inputSatoshis += utxo.sats;
const askedSats = agoraOffer.askedSats();
@@ -135,7 +135,7 @@
fuelInputs.push(utxo);
// Match our fuelInput count with dummyInputs
dummyInputs.push(DUMMY_INPUT);
- inputSatoshis += BigInt(utxo.value);
+ inputSatoshis += utxo.sats;
// Get the tx fee for this tx
// In practice, this is always bigger than dust
diff --git a/modules/ecash-agora/src/oneshot.ts b/modules/ecash-agora/src/oneshot.ts
--- a/modules/ecash-agora/src/oneshot.ts
+++ b/modules/ecash-agora/src/oneshot.ts
@@ -181,7 +181,7 @@
const outputsSerBytes = new Bytes(outputsSerOp.data);
const enforcedOutputs: TxOutput[] = [
{
- value: BigInt(0),
+ sats: 0n,
script: opreturnScript,
},
];
@@ -220,7 +220,7 @@
public askedSats(): bigint {
return this.enforcedOutputs.reduce(
- (prev, output) => prev + BigInt(output.value),
+ (prev, output) => prev + output.sats,
0n,
);
}
diff --git a/modules/ecash-agora/src/partial.approx.test.ts b/modules/ecash-agora/src/partial.approx.test.ts
--- a/modules/ecash-agora/src/partial.approx.test.ts
+++ b/modules/ecash-agora/src/partial.approx.test.ts
@@ -28,448 +28,448 @@
it('AgoraPartial.approximateParams 546 for 1sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 546n,
- priceNanoSatsPerToken: 1000000000n,
- minAcceptedTokens: 546n,
+ offeredAtoms: 546n,
+ priceNanoSatsPerAtom: 1000000000n,
+ minAcceptedAtoms: 546n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 546n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 3925916n,
- scaledTruncTokensPerTruncSat: 3925916n,
+ truncAtoms: 546n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 3925916n,
+ scaledTruncAtomsPerTruncSat: 3925916n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 2143550136n,
+ minAcceptedScaledTruncAtoms: 2143550136n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(546n);
- expect(params.minAcceptedTokens()).to.equal(546n);
+ expect(params.offeredAtoms()).to.equal(546n);
+ expect(params.minAcceptedAtoms()).to.equal(546n);
expect(params.askedSats(1n)).to.equal(1n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1000000000n);
});
it('AgoraPartial.approximateParams 1092 for 1sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1092n,
- priceNanoSatsPerToken: 1000000000n,
- minAcceptedTokens: 546n,
+ offeredAtoms: 1092n,
+ priceNanoSatsPerAtom: 1000000000n,
+ minAcceptedAtoms: 546n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1092n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 1964759n,
- scaledTruncTokensPerTruncSat: 1964759n,
+ truncAtoms: 1092n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 1964759n,
+ scaledTruncAtomsPerTruncSat: 1964759n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 1072758414n,
+ minAcceptedScaledTruncAtoms: 1072758414n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1092n);
- expect(params.minAcceptedTokens()).to.equal(546n);
+ expect(params.offeredAtoms()).to.equal(1092n);
+ expect(params.minAcceptedAtoms()).to.equal(546n);
expect(params.askedSats(1n)).to.equal(1n);
expect(params.askedSats(2n)).to.equal(2n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1000000000n);
- expect(params.priceNanoSatsPerToken(2n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(2n)).to.equal(1000000000n);
});
it('AgoraPartial.approximateParams 1000 for 0.001sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000n,
- priceNanoSatsPerToken: 1000000n,
- minAcceptedTokens: 1000n,
+ offeredAtoms: 1000n,
+ priceNanoSatsPerAtom: 1000000n,
+ minAcceptedAtoms: 1000n,
...BASE_PARAMS_SLP,
- dustAmount: 1,
+ dustAmount: 1n,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 1073742n,
- scaledTruncTokensPerTruncSat: 1073742000n,
+ truncAtoms: 1000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 1073742n,
+ scaledTruncAtomsPerTruncSat: 1073742000n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 1073742000n,
+ minAcceptedScaledTruncAtoms: 1073742000n,
...BASE_PARAMS_SLP,
- dustAmount: 1,
+ dustAmount: 1n,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000n);
- expect(params.minAcceptedTokens()).to.equal(1000n);
+ expect(params.offeredAtoms()).to.equal(1000n);
+ expect(params.minAcceptedAtoms()).to.equal(1000n);
expect(params.askedSats(1n)).to.equal(1n);
expect(params.askedSats(1000n)).to.equal(1n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(1000000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(1000000n);
});
it('AgoraPartial.approximateParams 1000 for 1sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000n,
- priceNanoSatsPerToken: 1000000000n,
- minAcceptedTokens: 546n,
+ offeredAtoms: 1000n,
+ priceNanoSatsPerAtom: 1000000000n,
+ minAcceptedAtoms: 546n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 2145336n,
- scaledTruncTokensPerTruncSat: 2145336n,
+ truncAtoms: 1000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 2145336n,
+ scaledTruncAtomsPerTruncSat: 2145336n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 1171353456n,
+ minAcceptedScaledTruncAtoms: 1171353456n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000n);
- expect(params.minAcceptedTokens()).to.equal(546n);
+ expect(params.offeredAtoms()).to.equal(1000n);
+ expect(params.minAcceptedAtoms()).to.equal(546n);
expect(params.askedSats(1n)).to.equal(1n);
expect(params.askedSats(1000n)).to.equal(1000n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(1000000000n);
});
it('AgoraPartial.approximateParams 1000 for 1000sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000n,
- priceNanoSatsPerToken: 1000n * 1000000000n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 1000n,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 2147481n,
- scaledTruncTokensPerTruncSat: 2147n,
+ truncAtoms: 1000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 2147481n,
+ scaledTruncAtomsPerTruncSat: 2147n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 2147481n,
+ minAcceptedScaledTruncAtoms: 2147481n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000n);
- expect(params.minAcceptedTokens()).to.equal(1n);
+ expect(params.offeredAtoms()).to.equal(1000n);
+ expect(params.minAcceptedAtoms()).to.equal(1n);
expect(params.askedSats(1n)).to.equal(1001n);
expect(params.askedSats(1000n)).to.equal(1000225n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1001000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(1000225000000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1001000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(1000225000000n);
});
it('AgoraPartial.approximateParams 1 BUX', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 10000n,
- priceNanoSatsPerToken: 291970802919n, // $0.0001 / token @ $0.00003425 / XEC
- minAcceptedTokens: 100n,
+ offeredAtoms: 10000n,
+ priceNanoSatsPerAtom: 291970802919n, // $0.0001 / token @ $0.00003425 / XEC
+ minAcceptedAtoms: 100n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 10000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 214748n,
- scaledTruncTokensPerTruncSat: 735n,
+ truncAtoms: 10000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 214748n,
+ scaledTruncAtomsPerTruncSat: 735n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 21474800n,
+ minAcceptedScaledTruncAtoms: 21474800n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(10000n);
- expect(params.minAcceptedTokens()).to.equal(100n);
+ expect(params.offeredAtoms()).to.equal(10000n);
+ expect(params.minAcceptedAtoms()).to.equal(100n);
expect(params.askedSats(100n)).to.equal(29218n);
expect(params.askedSats(10000n)).to.equal(2921742n);
- expect(params.priceNanoSatsPerToken(100n)).to.equal(292180000000n);
- expect(params.priceNanoSatsPerToken(10000n)).to.equal(292174200000n);
+ expect(params.priceNanoSatsPerAtom(100n)).to.equal(292180000000n);
+ expect(params.priceNanoSatsPerAtom(10000n)).to.equal(292174200000n);
});
it('AgoraPartial.approximateParams 50 BUX', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 500000n,
- priceNanoSatsPerToken: 291970802919n, // $0.0001 / token
- minAcceptedTokens: 10000n,
+ offeredAtoms: 500000n,
+ priceNanoSatsPerAtom: 291970802919n, // $0.0001 / token
+ minAcceptedAtoms: 10000n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1953n,
- numTokenTruncBytes: 1,
- tokenScaleFactor: 1099580n,
- scaledTruncTokensPerTruncSat: 3766n,
+ truncAtoms: 1953n,
+ numAtomsTruncBytes: 1,
+ atomsScaleFactor: 1099580n,
+ scaledTruncAtomsPerTruncSat: 3766n,
numSatsTruncBytes: 1,
- minAcceptedScaledTruncTokens: 42952343n,
+ minAcceptedScaledTruncAtoms: 42952343n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(499968n);
- expect(params.minAcceptedTokens()).to.equal(10240n);
+ expect(params.offeredAtoms()).to.equal(499968n);
+ expect(params.minAcceptedAtoms()).to.equal(10240n);
expect(params.askedSats(9984n)).to.equal(2915328n);
expect(params.askedSats(499968n)).to.equal(145978624n);
- expect(params.priceNanoSatsPerToken(9984n)).to.equal(292000000000n);
- expect(params.priceNanoSatsPerToken(499968n)).to.equal(291975934459n);
+ expect(params.priceNanoSatsPerAtom(9984n)).to.equal(292000000000n);
+ expect(params.priceNanoSatsPerAtom(499968n)).to.equal(291975934459n);
});
it('AgoraPartial.approximateParams 1000 BUX', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 10000000n,
- priceNanoSatsPerToken: 291970802919n, // $0.0001 / token
- minAcceptedTokens: 10000n,
+ offeredAtoms: 10000000n,
+ priceNanoSatsPerAtom: 291970802919n, // $0.0001 / token
+ minAcceptedAtoms: 10000n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 39062n,
- numTokenTruncBytes: 1,
- tokenScaleFactor: 54976n,
- scaledTruncTokensPerTruncSat: 188n,
+ truncAtoms: 39062n,
+ numAtomsTruncBytes: 1,
+ atomsScaleFactor: 54976n,
+ scaledTruncAtomsPerTruncSat: 188n,
numSatsTruncBytes: 1,
- minAcceptedScaledTruncTokens: 2147500n,
+ minAcceptedScaledTruncAtoms: 2147500n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(9999872n);
- expect(params.minAcceptedTokens()).to.equal(10240n);
+ expect(params.offeredAtoms()).to.equal(9999872n);
+ expect(params.minAcceptedAtoms()).to.equal(10240n);
expect(params.askedSats(9984n)).to.equal(2919680n);
expect(params.askedSats(499968n)).to.equal(146203648n);
- expect(params.priceNanoSatsPerToken(9984n)).to.equal(292435897435n);
- expect(params.priceNanoSatsPerToken(499968n)).to.equal(292426011264n);
+ expect(params.priceNanoSatsPerAtom(9984n)).to.equal(292435897435n);
+ expect(params.priceNanoSatsPerAtom(499968n)).to.equal(292426011264n);
});
it('AgoraPartial.approximateParams 10000 BUX', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 100000000n,
- priceNanoSatsPerToken: 291970802919n, // $0.0001 / token
- minAcceptedTokens: 100000n,
+ offeredAtoms: 100000000n,
+ priceNanoSatsPerAtom: 291970802919n, // $0.0001 / token
+ minAcceptedAtoms: 100000n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1525n,
- numTokenTruncBytes: 2,
- tokenScaleFactor: 1408182n,
- scaledTruncTokensPerTruncSat: 4823n,
+ truncAtoms: 1525n,
+ numAtomsTruncBytes: 2,
+ atomsScaleFactor: 1408182n,
+ scaledTruncAtomsPerTruncSat: 4823n,
numSatsTruncBytes: 2,
- minAcceptedScaledTruncTokens: 2148715n,
+ minAcceptedScaledTruncAtoms: 2148715n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(99942400n);
- expect(params.minAcceptedTokens()).to.equal(131072n);
+ expect(params.offeredAtoms()).to.equal(99942400n);
+ expect(params.minAcceptedAtoms()).to.equal(131072n);
expect(params.askedSats(131072n)).to.equal(38273024n);
expect(params.askedSats(9961472n)).to.equal(2908487680n);
- expect(params.priceNanoSatsPerToken(131072n)).to.equal(292000000000n);
- expect(params.priceNanoSatsPerToken(9961472n)).to.equal(291973684210n);
+ expect(params.priceNanoSatsPerAtom(131072n)).to.equal(292000000000n);
+ expect(params.priceNanoSatsPerAtom(9961472n)).to.equal(291973684210n);
});
it('AgoraPartial.approximateParams 1000 for 1000000sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000n,
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 1000n,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 2147342n,
- scaledTruncTokensPerTruncSat: 140728n,
+ truncAtoms: 1000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 2147342n,
+ scaledTruncAtomsPerTruncSat: 140728n,
numSatsTruncBytes: 2,
- minAcceptedScaledTruncTokens: 2147342n,
+ minAcceptedScaledTruncAtoms: 2147342n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000n);
- expect(params.minAcceptedTokens()).to.equal(1n);
+ expect(params.offeredAtoms()).to.equal(1000n);
+ expect(params.minAcceptedAtoms()).to.equal(1n);
expect(params.askedSats(1n)).to.equal(1048576n);
expect(params.askedSats(1000n)).to.equal(1000013824n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1048576000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(1000013824000000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1048576000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(1000013824000000n);
});
it('AgoraPartial.approximateParams 1000 for 1000000000sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000n,
- priceNanoSatsPerToken: 1000000000n * 1000000000n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 1000n,
+ priceNanoSatsPerAtom: 1000000000n * 1000000000n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 2147447n,
- scaledTruncTokensPerTruncSat: 36028n,
+ truncAtoms: 1000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 2147447n,
+ scaledTruncAtomsPerTruncSat: 36028n,
numSatsTruncBytes: 3,
- minAcceptedScaledTruncTokens: 2147447n,
+ minAcceptedScaledTruncAtoms: 2147447n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000n);
- expect(params.minAcceptedTokens()).to.equal(1n);
+ expect(params.offeredAtoms()).to.equal(1000n);
+ expect(params.minAcceptedAtoms()).to.equal(1n);
expect(params.askedSats(1n)).to.equal(1006632960n);
expect(params.askedSats(1000n)).to.equal(1000005959680n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1006632960000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1006632960000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(
1000005959680000000n,
);
});
it('AgoraPartial.approximateParams 1000000 for 0.001sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000000n,
- priceNanoSatsPerToken: 1000000n,
- minAcceptedTokens: 1000n,
+ offeredAtoms: 1000000n,
+ priceNanoSatsPerAtom: 1000000n,
+ minAcceptedAtoms: 1000n,
...BASE_PARAMS_SLP,
- dustAmount: 1,
+ dustAmount: 1n,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1000000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 2145n,
- scaledTruncTokensPerTruncSat: 2145000n,
+ truncAtoms: 1000000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 2145n,
+ scaledTruncAtomsPerTruncSat: 2145000n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 2145000n,
+ minAcceptedScaledTruncAtoms: 2145000n,
...BASE_PARAMS_SLP,
- dustAmount: 1,
+ dustAmount: 1n,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000000n);
- expect(params.minAcceptedTokens()).to.equal(1000n);
+ expect(params.offeredAtoms()).to.equal(1000000n);
+ expect(params.minAcceptedAtoms()).to.equal(1000n);
expect(params.askedSats(1n)).to.equal(1n);
expect(params.askedSats(1000n)).to.equal(1n);
expect(params.askedSats(1000000n)).to.equal(1000n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(1000000n);
- expect(params.priceNanoSatsPerToken(1000000n)).to.equal(1000000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(1000000n);
+ expect(params.priceNanoSatsPerAtom(1000000n)).to.equal(1000000n);
});
it('AgoraPartial.approximateParams 1000000 for 1sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000000n,
- priceNanoSatsPerToken: 1000000000n,
- minAcceptedTokens: 5460n,
+ offeredAtoms: 1000000n,
+ priceNanoSatsPerAtom: 1000000000n,
+ minAcceptedAtoms: 5460n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1000000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 2147n,
- scaledTruncTokensPerTruncSat: 2147n,
+ truncAtoms: 1000000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 2147n,
+ scaledTruncAtomsPerTruncSat: 2147n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 11722620n,
+ minAcceptedScaledTruncAtoms: 11722620n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000000n);
- expect(params.minAcceptedTokens()).to.equal(5460n);
+ expect(params.offeredAtoms()).to.equal(1000000n);
+ expect(params.minAcceptedAtoms()).to.equal(5460n);
expect(params.askedSats(1n)).to.equal(1n);
expect(params.askedSats(1000n)).to.equal(1000n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(1000000000n);
- expect(params.priceNanoSatsPerToken(1000000n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1000000n)).to.equal(1000000000n);
});
it('AgoraPartial.approximateParams 1000000 for 1000sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000000n,
- priceNanoSatsPerToken: 1000n * 1000000000n,
- minAcceptedTokens: 200n,
+ offeredAtoms: 1000000n,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ minAcceptedAtoms: 200n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 3906n,
- numTokenTruncBytes: 1,
- tokenScaleFactor: 549754n,
- scaledTruncTokensPerTruncSat: 140737n,
+ truncAtoms: 3906n,
+ numAtomsTruncBytes: 1,
+ atomsScaleFactor: 549754n,
+ scaledTruncAtomsPerTruncSat: 140737n,
numSatsTruncBytes: 2,
- minAcceptedScaledTruncTokens: 429495n,
+ minAcceptedScaledTruncAtoms: 429495n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(999936n);
- expect(params.minAcceptedTokens()).to.equal(256n);
+ expect(params.offeredAtoms()).to.equal(999936n);
+ expect(params.minAcceptedAtoms()).to.equal(256n);
expect(params.askedSats(256n)).to.equal(262144n);
expect(params.askedSats(1024n)).to.equal(1048576n);
expect(params.askedSats(999936n)).to.equal(999948288n);
- expect(params.priceNanoSatsPerToken(256n)).to.equal(1024000000000n);
- expect(params.priceNanoSatsPerToken(1024n)).to.equal(1024000000000n);
- expect(params.priceNanoSatsPerToken(999936n)).to.equal(1000012288786n);
+ expect(params.priceNanoSatsPerAtom(256n)).to.equal(1024000000000n);
+ expect(params.priceNanoSatsPerAtom(1024n)).to.equal(1024000000000n);
+ expect(params.priceNanoSatsPerAtom(999936n)).to.equal(1000012288786n);
});
it('AgoraPartial.approximateParams 1000000 for 1000sat/token 64-bit', () => {
const params = AgoraPartial.approximateParams(
{
- offeredTokens: 1000000n,
- priceNanoSatsPerToken: 1000n * 1000000000n,
- minAcceptedTokens: 200n,
+ offeredAtoms: 1000000n,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ minAcceptedAtoms: 200n,
...BASE_PARAMS_SLP,
},
/*scriptIntegerBits=*/ 64n,
);
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1000000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 9223372027631n,
- scaledTruncTokensPerTruncSat: 9223372027n,
+ truncAtoms: 1000000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 9223372027631n,
+ scaledTruncAtomsPerTruncSat: 9223372027n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 1844674405526200n,
+ minAcceptedScaledTruncAtoms: 1844674405526200n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000000n);
- expect(params.minAcceptedTokens()).to.equal(200n);
+ expect(params.offeredAtoms()).to.equal(1000000n);
+ expect(params.minAcceptedAtoms()).to.equal(200n);
expect(params.askedSats(1n)).to.equal(1001n);
expect(params.askedSats(1000n)).to.equal(1000001n);
expect(params.askedSats(1000000n)).to.equal(1000000001n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1001000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(1000001000000n);
- expect(params.priceNanoSatsPerToken(1000000n)).to.equal(1000000001000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1001000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(1000001000000n);
+ expect(params.priceNanoSatsPerAtom(1000000n)).to.equal(1000000001000n);
});
it('AgoraPartial.approximateParams 1000000 for 1000000sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000000n,
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- minAcceptedTokens: 1000n,
+ offeredAtoms: 1000000n,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ minAcceptedAtoms: 1000n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 3906n,
- numTokenTruncBytes: 1,
- tokenScaleFactor: 549781n,
- scaledTruncTokensPerTruncSat: 36030n,
+ truncAtoms: 3906n,
+ numAtomsTruncBytes: 1,
+ atomsScaleFactor: 549781n,
+ scaledTruncAtomsPerTruncSat: 36030n,
numSatsTruncBytes: 3,
- minAcceptedScaledTruncTokens: 2147582n,
+ minAcceptedScaledTruncAtoms: 2147582n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(999936n);
- expect(params.minAcceptedTokens()).to.equal(1024n);
+ expect(params.offeredAtoms()).to.equal(999936n);
+ expect(params.minAcceptedAtoms()).to.equal(1024n);
expect(params.askedSats(1024n)).to.equal(1040187392n);
expect(params.askedSats(999936n)).to.equal(999955628032n);
- expect(params.priceNanoSatsPerToken(1024n)).to.equal(1015808000000000n);
- expect(params.priceNanoSatsPerToken(999936n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(1024n)).to.equal(1015808000000000n);
+ expect(params.priceNanoSatsPerAtom(999936n)).to.equal(
1000019629288274n,
);
});
@@ -477,390 +477,384 @@
it('AgoraPartial.approximateParams 1000000 for 1000000sat/token 64-bit', () => {
const params = AgoraPartial.approximateParams(
{
- offeredTokens: 1000000n,
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 1000000n,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_SLP,
},
/*scriptIntegerBits=*/ 64n,
);
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 1000000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 9223372036845n,
- scaledTruncTokensPerTruncSat: 9223372n,
+ truncAtoms: 1000000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 9223372036845n,
+ scaledTruncAtomsPerTruncSat: 9223372n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 9223372036845n,
+ minAcceptedScaledTruncAtoms: 9223372036845n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000000n);
- expect(params.minAcceptedTokens()).to.equal(1n);
+ expect(params.offeredAtoms()).to.equal(1000000n);
+ expect(params.minAcceptedAtoms()).to.equal(1n);
expect(params.askedSats(1n)).to.equal(1000001n);
expect(params.askedSats(1000n)).to.equal(1000000004n);
expect(params.askedSats(1000000n)).to.equal(1000000003995n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1000001000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(1000000004000000n);
- expect(params.priceNanoSatsPerToken(1000000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1000001000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(1000000004000000n);
+ expect(params.priceNanoSatsPerAtom(1000000n)).to.equal(
1000000003995000n,
);
});
it('AgoraPartial.approximateParams 1000000 for 1000000000sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000000n,
- priceNanoSatsPerToken: 1000000000n * 1000000000n,
- minAcceptedTokens: 1000n,
+ offeredAtoms: 1000000n,
+ priceNanoSatsPerAtom: 1000000000n * 1000000000n,
+ minAcceptedAtoms: 1000n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 3906n,
- numTokenTruncBytes: 1,
- tokenScaleFactor: 549788n,
- scaledTruncTokensPerTruncSat: 9223n,
+ truncAtoms: 3906n,
+ numAtomsTruncBytes: 1,
+ atomsScaleFactor: 549788n,
+ scaledTruncAtomsPerTruncSat: 9223n,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 2147609n,
+ minAcceptedScaledTruncAtoms: 2147609n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(999936n);
- expect(params.minAcceptedTokens()).to.equal(1024n);
+ expect(params.offeredAtoms()).to.equal(999936n);
+ expect(params.minAcceptedAtoms()).to.equal(1024n);
expect(params.askedSats(1024n)).to.equal(1026497183744n);
expect(params.askedSats(999936n)).to.equal(1000035890233344n);
- expect(params.priceNanoSatsPerToken(1024n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(1024n)).to.equal(
1002438656000000000n,
);
- expect(params.priceNanoSatsPerToken(999936n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(999936n)).to.equal(
1000099896626728110n,
);
});
it('AgoraPartial.approximateParams 1000000000 for 0.001sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000000000n,
- priceNanoSatsPerToken: 1000000n,
- minAcceptedTokens: 546000n,
+ offeredAtoms: 1000000000n,
+ priceNanoSatsPerAtom: 1000000n,
+ minAcceptedAtoms: 546000n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
// Price can be represented accurately, so no truncation
- truncTokens: 1000000000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 2n,
- scaledTruncTokensPerTruncSat: 2000n,
+ truncAtoms: 1000000000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 2n,
+ scaledTruncAtomsPerTruncSat: 2000n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 1092000n,
+ minAcceptedScaledTruncAtoms: 1092000n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000000000n);
- expect(params.minAcceptedTokens()).to.equal(546000n);
+ expect(params.offeredAtoms()).to.equal(1000000000n);
+ expect(params.minAcceptedAtoms()).to.equal(546000n);
expect(params.askedSats(1n)).to.equal(1n);
expect(params.askedSats(1000n)).to.equal(1n);
expect(params.askedSats(1000000n)).to.equal(1000n);
expect(params.askedSats(1000000000n)).to.equal(1000000n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(1000000n);
- expect(params.priceNanoSatsPerToken(1000000n)).to.equal(1000000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(1000000n);
+ expect(params.priceNanoSatsPerAtom(1000000n)).to.equal(1000000n);
});
it('AgoraPartial.approximateParams 1000000000 for 1sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000000000n,
- priceNanoSatsPerToken: 1000000000n,
- minAcceptedTokens: 546n,
+ offeredAtoms: 1000000000n,
+ priceNanoSatsPerAtom: 1000000000n,
+ minAcceptedAtoms: 546n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
// Price can be represented accurately, so no truncation
- truncTokens: 1000000000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 2n,
- scaledTruncTokensPerTruncSat: 2n,
+ truncAtoms: 1000000000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 2n,
+ scaledTruncAtomsPerTruncSat: 2n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 1092n,
+ minAcceptedScaledTruncAtoms: 1092n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(1000000000n);
- expect(params.minAcceptedTokens()).to.equal(546n);
+ expect(params.offeredAtoms()).to.equal(1000000000n);
+ expect(params.minAcceptedAtoms()).to.equal(546n);
expect(params.askedSats(1n)).to.equal(1n);
expect(params.askedSats(1000n)).to.equal(1000n);
expect(params.askedSats(1000000n)).to.equal(1000000n);
expect(params.askedSats(1000000000n)).to.equal(1000000000n);
- expect(params.priceNanoSatsPerToken(1n)).to.equal(1000000000n);
- expect(params.priceNanoSatsPerToken(1000n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(1000n)).to.equal(1000000000n);
});
it('AgoraPartial.approximateParams 1000000000 for 1000sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000000000n,
- priceNanoSatsPerToken: 1000n * 1000000000n,
- minAcceptedTokens: 100n,
+ offeredAtoms: 1000000000n,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ minAcceptedAtoms: 100n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 15258n,
- numTokenTruncBytes: 2,
- tokenScaleFactor: 140742n,
- scaledTruncTokensPerTruncSat: 36029n,
+ truncAtoms: 15258n,
+ numAtomsTruncBytes: 2,
+ atomsScaleFactor: 140742n,
+ scaledTruncAtomsPerTruncSat: 36029n,
numSatsTruncBytes: 3,
- minAcceptedScaledTruncTokens: 214n,
+ minAcceptedScaledTruncAtoms: 214n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(999948288n);
- // Note this is >> than minAcceptedTokens set in approximateParams
+ expect(params.offeredAtoms()).to.equal(999948288n);
+ // Note this is >> than minAcceptedAtoms set in approximateParams
// It is, though, in practice, what a buy would have to be
- expect(params.minAcceptedTokens()).to.equal(65536n);
- expect(params.prepareAcceptedTokens(1000000n)).to.equal(983040n);
+ expect(params.minAcceptedAtoms()).to.equal(65536n);
+ expect(params.prepareacceptedAtoms(1000000n)).to.equal(983040n);
expect(params.askedSats(983040n)).to.equal(989855744n);
- expect(params.prepareAcceptedTokens(1000000000n)).to.equal(999948288n);
+ expect(params.prepareacceptedAtoms(1000000000n)).to.equal(999948288n);
expect(params.askedSats(999948288n)).to.equal(999989182464n);
- expect(params.priceNanoSatsPerToken(0x10000n)).to.equal(1024000000000n);
- expect(params.priceNanoSatsPerToken(0x80000n)).to.equal(1024000000000n);
- expect(params.priceNanoSatsPerToken(1000000n)).to.equal(1006933333333n);
- expect(params.priceNanoSatsPerToken(10000000n)).to.equal(
- 1000421052631n,
- );
- expect(params.priceNanoSatsPerToken(100000000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(0x10000n)).to.equal(1024000000000n);
+ expect(params.priceNanoSatsPerAtom(0x80000n)).to.equal(1024000000000n);
+ expect(params.priceNanoSatsPerAtom(1000000n)).to.equal(1006933333333n);
+ expect(params.priceNanoSatsPerAtom(10000000n)).to.equal(1000421052631n);
+ expect(params.priceNanoSatsPerAtom(100000000n)).to.equal(
1000162622950n,
);
- expect(params.priceNanoSatsPerToken(1000000000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(1000000000n)).to.equal(
1000040896578n,
);
});
it('AgoraPartial.approximateParams 1000000000 for 1000000sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 1000000000n,
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- minAcceptedTokens: 100n,
+ offeredAtoms: 1000000000n,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ minAcceptedAtoms: 100n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 15258n,
- numTokenTruncBytes: 2,
- tokenScaleFactor: 140744n,
- scaledTruncTokensPerTruncSat: 9223n,
+ truncAtoms: 15258n,
+ numAtomsTruncBytes: 2,
+ atomsScaleFactor: 140744n,
+ scaledTruncAtomsPerTruncSat: 9223n,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 214n,
+ minAcceptedScaledTruncAtoms: 214n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(999948288n);
- // Note this is >> than minAcceptedTokens set in approximateParams
+ expect(params.offeredAtoms()).to.equal(999948288n);
+ // Note this is >> than minAcceptedAtoms set in approximateParams
// It is, though, in practice, what a buy would have to be
- expect(params.minAcceptedTokens()).to.equal(65536n);
- expect(params.prepareAcceptedTokens(1000000n)).to.equal(983040n);
+ expect(params.minAcceptedAtoms()).to.equal(65536n);
+ expect(params.prepareacceptedAtoms(1000000n)).to.equal(983040n);
expect(params.askedSats(983040n)).to.equal(983547510784n);
- expect(params.prepareAcceptedTokens(1000000000n)).to.equal(999948288n);
+ expect(params.prepareacceptedAtoms(1000000000n)).to.equal(999948288n);
expect(params.askedSats(999948288n)).to.equal(1000035890233344n);
- expect(params.priceNanoSatsPerToken(0x10000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(0x10000n)).to.equal(
1048576000000000n,
);
- expect(params.priceNanoSatsPerToken(0x20000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(0x20000n)).to.equal(
1015808000000000n,
);
- expect(params.priceNanoSatsPerToken(0x80000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(0x80000n)).to.equal(
1007616000000000n,
);
- expect(params.priceNanoSatsPerToken(1000000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(1000000n)).to.equal(
1000516266666666n,
);
- expect(params.priceNanoSatsPerToken(10000000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(10000000n)).to.equal(
1000286315789473n,
);
- expect(params.priceNanoSatsPerToken(100000000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(100000000n)).to.equal(
1000100847213114n,
);
- expect(params.priceNanoSatsPerToken(1000000000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(1000000000n)).to.equal(
1000087606763664n,
);
});
it('AgoraPartial.approximateParams 0x100000000 for 1sat/token', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 0x100000000n,
- priceNanoSatsPerToken: 1000000000n,
- minAcceptedTokens: 546n,
+ offeredAtoms: 0x100000000n,
+ priceNanoSatsPerAtom: 1000000000n,
+ minAcceptedAtoms: 546n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 0x1000000n,
- numTokenTruncBytes: 1,
- tokenScaleFactor: 127n,
- scaledTruncTokensPerTruncSat: 127n,
+ truncAtoms: 0x1000000n,
+ numAtomsTruncBytes: 1,
+ atomsScaleFactor: 127n,
+ scaledTruncAtomsPerTruncSat: 127n,
numSatsTruncBytes: 1,
- minAcceptedScaledTruncTokens: 270n,
+ minAcceptedScaledTruncAtoms: 270n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(0x100000000n);
- expect(params.minAcceptedTokens()).to.equal(768n);
+ expect(params.offeredAtoms()).to.equal(0x100000000n);
+ expect(params.minAcceptedAtoms()).to.equal(768n);
expect(params.askedSats(0x100n)).to.equal(0x100n);
expect(params.askedSats(0x100000000n)).to.equal(0x100000000n);
- expect(params.priceNanoSatsPerToken(0x100n)).to.equal(1000000000n);
- expect(params.priceNanoSatsPerToken(0x100000000n)).to.equal(
- 1000000000n,
- );
+ expect(params.priceNanoSatsPerAtom(0x100n)).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom(0x100000000n)).to.equal(1000000000n);
});
it('Agora Partial SLP Approximation 2p64-1, small price', () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 0xffffffffffffffffn,
- priceNanoSatsPerToken: 40n,
- minAcceptedTokens: 0xffffffffffffn,
+ offeredAtoms: 0xffffffffffffffffn,
+ priceNanoSatsPerAtom: 40n,
+ minAcceptedAtoms: 0xffffffffffffn,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 0xffffffn,
- numTokenTruncBytes: 5,
- tokenScaleFactor: 127n,
- scaledTruncTokensPerTruncSat: 189n,
+ truncAtoms: 0xffffffn,
+ numAtomsTruncBytes: 5,
+ atomsScaleFactor: 127n,
+ scaledTruncAtomsPerTruncSat: 189n,
numSatsTruncBytes: 2,
- minAcceptedScaledTruncTokens: 32511n,
+ minAcceptedScaledTruncAtoms: 32511n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(0xffffff0000000000n);
+ expect(params.offeredAtoms()).to.equal(0xffffff0000000000n);
expect(params.askedSats(0x10000000000n)).to.equal(65536n);
- expect(params.priceNanoSatsPerToken(0x10000000000n)).to.equal(59n);
+ expect(params.priceNanoSatsPerAtom(0x10000000000n)).to.equal(59n);
expect(params.askedSats(0xffffff0000000000n)).to.equal(738825273344n);
- expect(params.priceNanoSatsPerToken(0xffffff0000000000n)).to.equal(40n);
- expect(params.priceNanoSatsPerToken()).to.equal(40n);
+ expect(params.priceNanoSatsPerAtom(0xffffff0000000000n)).to.equal(40n);
+ expect(params.priceNanoSatsPerAtom()).to.equal(40n);
});
it('AgoraPartial.approximateParams 2p64-1, big price', async () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 0xffffffffffffffffn,
- priceNanoSatsPerToken: 500000000n,
- minAcceptedTokens: 0xffffffffffn,
+ offeredAtoms: 0xffffffffffffffffn,
+ priceNanoSatsPerAtom: 500000000n,
+ minAcceptedAtoms: 0xffffffffffn,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 0xffffffn,
- numTokenTruncBytes: 5,
- tokenScaleFactor: 128n,
- scaledTruncTokensPerTruncSat: 1n,
+ truncAtoms: 0xffffffn,
+ numAtomsTruncBytes: 5,
+ atomsScaleFactor: 128n,
+ scaledTruncAtomsPerTruncSat: 1n,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 0x7fn,
+ minAcceptedScaledTruncAtoms: 0x7fn,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(0xffffff0000000000n);
+ expect(params.offeredAtoms()).to.equal(0xffffff0000000000n);
expect(params.askedSats(0x10000000000n)).to.equal(549755813888n);
- expect(params.priceNanoSatsPerToken(0x10000000000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(0x10000000000n)).to.equal(
500000000n,
);
expect(params.askedSats(0xffffff0000000000n)).to.equal(
9223371487098961920n,
);
- expect(params.priceNanoSatsPerToken(0xffffff0000000000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(0xffffff0000000000n)).to.equal(
500000000n,
);
- expect(params.priceNanoSatsPerToken()).to.equal(500000000n);
+ expect(params.priceNanoSatsPerAtom()).to.equal(500000000n);
});
it('AgoraPartial.approximateParams 2p63-1, small price', async () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 0x7fffffffffffffffn,
- priceNanoSatsPerToken: 80n,
- minAcceptedTokens: 0xffffffffffffn,
+ offeredAtoms: 0x7fffffffffffffffn,
+ priceNanoSatsPerAtom: 80n,
+ minAcceptedAtoms: 0xffffffffffffn,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 0x7fffff42n,
- numTokenTruncBytes: 4,
- tokenScaleFactor: 1n,
- scaledTruncTokensPerTruncSat: 190n,
+ truncAtoms: 0x7fffff42n,
+ numAtomsTruncBytes: 4,
+ atomsScaleFactor: 1n,
+ scaledTruncAtomsPerTruncSat: 190n,
numSatsTruncBytes: 2,
- minAcceptedScaledTruncTokens: 0xffffn,
+ minAcceptedScaledTruncAtoms: 0xffffn,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(0x7fffff4200000000n);
+ expect(params.offeredAtoms()).to.equal(0x7fffff4200000000n);
expect(params.askedSats(0x100000000n)).to.equal(65536n);
- expect(params.priceNanoSatsPerToken(0x100000000n)).to.equal(15258n);
+ expect(params.priceNanoSatsPerAtom(0x100000000n)).to.equal(15258n);
expect(params.askedSats(0x7fffff4200000000n)).to.equal(740723589120n);
- expect(params.priceNanoSatsPerToken(0x7fffff4200000000n)).to.equal(80n);
- expect(params.priceNanoSatsPerToken()).to.equal(80n);
+ expect(params.priceNanoSatsPerAtom(0x7fffff4200000000n)).to.equal(80n);
+ expect(params.priceNanoSatsPerAtom()).to.equal(80n);
});
it('AgoraPartial.approximateParams 2p63-1, big price', async () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 0x7fffffffffffffffn,
- priceNanoSatsPerToken: 1000000000n,
- minAcceptedTokens: 0x100000000n,
+ offeredAtoms: 0x7fffffffffffffffn,
+ priceNanoSatsPerAtom: 1000000000n,
+ minAcceptedAtoms: 0x100000000n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 0x7fffffffn,
- numTokenTruncBytes: 4,
- tokenScaleFactor: 1n,
- scaledTruncTokensPerTruncSat: 1n,
+ truncAtoms: 0x7fffffffn,
+ numAtomsTruncBytes: 4,
+ atomsScaleFactor: 1n,
+ scaledTruncAtomsPerTruncSat: 1n,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 1n,
+ minAcceptedScaledTruncAtoms: 1n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(0x7fffffff00000000n);
+ expect(params.offeredAtoms()).to.equal(0x7fffffff00000000n);
expect(params.askedSats(0x100000000n)).to.equal(4294967296n);
- expect(params.priceNanoSatsPerToken(0x100000000n)).to.equal(
- 1000000000n,
- );
+ expect(params.priceNanoSatsPerAtom(0x100000000n)).to.equal(1000000000n);
expect(params.askedSats(0x7fffffff00000000n)).to.equal(
9223372032559808512n,
);
- expect(params.priceNanoSatsPerToken(0x7fffffff00000000n)).to.equal(
+ expect(params.priceNanoSatsPerAtom(0x7fffffff00000000n)).to.equal(
1000000000n,
);
- expect(params.priceNanoSatsPerToken()).to.equal(1000000000n);
+ expect(params.priceNanoSatsPerAtom()).to.equal(1000000000n);
});
it('AgoraPartial.approximateParams 100, big price', async () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 100n,
- priceNanoSatsPerToken: 7123456780n * 1000000000n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 100n,
+ priceNanoSatsPerAtom: 7123456780n * 1000000000n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 100n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 0x7fff3a28n / 100n,
- scaledTruncTokensPerTruncSat: 50576n,
+ truncAtoms: 100n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 0x7fff3a28n / 100n,
+ scaledTruncAtomsPerTruncSat: 50576n,
numSatsTruncBytes: 3,
- minAcceptedScaledTruncTokens: 0x7fff3a28n / 100n,
+ minAcceptedScaledTruncAtoms: 0x7fff3a28n / 100n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(100n);
- expect(params.minAcceptedTokens()).to.equal(1n);
+ expect(params.offeredAtoms()).to.equal(100n);
+ expect(params.minAcceptedAtoms()).to.equal(1n);
expect(params.askedSats(1n)).to.equal(7130316800n);
expect(params.askedSats(2n)).to.equal(7130316800n * 2n);
expect(params.askedSats(3n)).to.equal(7124724394n * 3n + 2n);
@@ -872,25 +866,25 @@
it('AgoraPartial.approximateParams 100, bigger price', async () => {
const params = AgoraPartial.approximateParams({
- offeredTokens: 100n,
- priceNanoSatsPerToken: 712345678000n * 1000000000n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 100n,
+ priceNanoSatsPerAtom: 712345678000n * 1000000000n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_SLP,
});
expect(params).to.deep.equal(
new AgoraPartial({
- truncTokens: 100n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 0x7ffe05f4n / 100n,
- scaledTruncTokensPerTruncSat: 129471n,
+ truncAtoms: 100n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 0x7ffe05f4n / 100n,
+ scaledTruncAtomsPerTruncSat: 129471n,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 0x7ffe05f4n / 100n,
+ minAcceptedScaledTruncAtoms: 0x7ffe05f4n / 100n,
...BASE_PARAMS_SLP,
scriptLen: params.scriptLen,
}),
);
- expect(params.offeredTokens()).to.equal(100n);
- expect(params.minAcceptedTokens()).to.equal(1n);
+ expect(params.offeredAtoms()).to.equal(100n);
+ expect(params.minAcceptedAtoms()).to.equal(1n);
expect(params.askedSats(1n)).to.equal(712964571136n);
expect(params.askedSats(10n)).to.equal(7125350744064n);
expect(params.askedSats(100n)).to.equal(71236327571456n);
@@ -898,153 +892,153 @@
it('AgoraPartial.approximateParams ALP 7450M XEC vs 2p48-1, small price', async () => {
const agoraPartial = AgoraPartial.approximateParams({
- offeredTokens: 0xffffffffffffn,
- priceNanoSatsPerToken: 2600000n,
- minAcceptedTokens: 0xffffffffn,
+ offeredAtoms: 0xffffffffffffn,
+ priceNanoSatsPerAtom: 2600000n,
+ minAcceptedAtoms: 0xffffffffn,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0xffffffn,
- numTokenTruncBytes: 3,
- tokenScaleFactor: 127n,
- scaledTruncTokensPerTruncSat: 190n,
+ truncAtoms: 0xffffffn,
+ numAtomsTruncBytes: 3,
+ atomsScaleFactor: 127n,
+ scaledTruncAtomsPerTruncSat: 190n,
numSatsTruncBytes: 2,
- minAcceptedScaledTruncTokens: 32511n,
+ minAcceptedScaledTruncAtoms: 32511n,
...BASE_PARAMS_ALP,
scriptLen: agoraPartial.scriptLen,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0xffffff000000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0xffffff000000n);
expect(agoraPartial.askedSats(0x1000000n)).to.equal(65536n);
- expect(agoraPartial.priceNanoSatsPerToken(0x1000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x1000000n)).to.equal(
3906250n,
);
expect(agoraPartial.askedSats(0xffffff000000n)).to.equal(734936694784n);
- expect(agoraPartial.priceNanoSatsPerToken(0xffffff000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0xffffff000000n)).to.equal(
2611019n,
);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(2611019n);
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(2611019n);
});
it('AgoraPartial.approximateParams ALP 7450M XEC vs 2p48-1, big price', async () => {
const agoraPartial = AgoraPartial.approximateParams({
- offeredTokens: 0xffffffffffffn,
- priceNanoSatsPerToken: 30000000000000n,
- minAcceptedTokens: 0x1000000n,
+ offeredAtoms: 0xffffffffffffn,
+ priceNanoSatsPerAtom: 30000000000000n,
+ minAcceptedAtoms: 0x1000000n,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0xffffffn,
- numTokenTruncBytes: 3,
- tokenScaleFactor: 128n,
- scaledTruncTokensPerTruncSat: 1n,
+ truncAtoms: 0xffffffn,
+ numAtomsTruncBytes: 3,
+ atomsScaleFactor: 128n,
+ scaledTruncAtomsPerTruncSat: 1n,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 128n,
+ minAcceptedScaledTruncAtoms: 128n,
...BASE_PARAMS_ALP,
scriptLen: agoraPartial.scriptLen,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0xffffff000000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0xffffff000000n);
expect(agoraPartial.askedSats(0x1000000n)).to.equal(549755813888n);
- expect(agoraPartial.priceNanoSatsPerToken(0x1000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x1000000n)).to.equal(
32768000000000n,
);
expect(agoraPartial.askedSats(0xffffff000000n)).to.equal(
9223371487098961920n,
);
- expect(agoraPartial.priceNanoSatsPerToken(0xffffff000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0xffffff000000n)).to.equal(
32768000000000n,
);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(32768000000000n);
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(32768000000000n);
});
it('AgoraPartial.approximateParams ALP 7450M XEC vs 2p47-1, small price', async () => {
const agoraPartial = AgoraPartial.approximateParams({
- offeredTokens: 0x7fffffffffffn,
- priceNanoSatsPerToken: 5000000n,
- minAcceptedTokens: 0xffffffffn,
+ offeredAtoms: 0x7fffffffffffn,
+ priceNanoSatsPerAtom: 5000000n,
+ minAcceptedAtoms: 0xffffffffn,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0x7fffff38n,
- numTokenTruncBytes: 2,
- tokenScaleFactor: 1n,
- scaledTruncTokensPerTruncSat: 200n,
+ truncAtoms: 0x7fffff38n,
+ numAtomsTruncBytes: 2,
+ atomsScaleFactor: 1n,
+ scaledTruncAtomsPerTruncSat: 200n,
numSatsTruncBytes: 2,
- minAcceptedScaledTruncTokens: 0xffffn,
+ minAcceptedScaledTruncAtoms: 0xffffn,
...BASE_PARAMS_ALP,
scriptLen: agoraPartial.scriptLen,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0x7fffff380000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0x7fffff380000n);
expect(agoraPartial.askedSats(0x10000n)).to.equal(65536n);
- expect(agoraPartial.priceNanoSatsPerToken(0x10000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x10000n)).to.equal(
1000000000n,
);
expect(agoraPartial.askedSats(0x7fffff380000n)).to.equal(703687426048n);
- expect(agoraPartial.priceNanoSatsPerToken(0x7fffff380000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x7fffff380000n)).to.equal(
5000000n,
);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(5000000n);
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(5000000n);
});
it('AgoraPartial.approximateParams ALP 7450M XEC vs 2p47-1, big price', async () => {
const agoraPartial = AgoraPartial.approximateParams({
- offeredTokens: 0x7fffffffffffn,
- priceNanoSatsPerToken: 32000000000000n,
- minAcceptedTokens: 0x1000000n,
+ offeredAtoms: 0x7fffffffffffn,
+ priceNanoSatsPerAtom: 32000000000000n,
+ minAcceptedAtoms: 0x1000000n,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0x7fffffn,
- numTokenTruncBytes: 3,
- tokenScaleFactor: 256n,
- scaledTruncTokensPerTruncSat: 2n,
+ truncAtoms: 0x7fffffn,
+ numAtomsTruncBytes: 3,
+ atomsScaleFactor: 256n,
+ scaledTruncAtomsPerTruncSat: 2n,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 256n,
+ minAcceptedScaledTruncAtoms: 256n,
...BASE_PARAMS_ALP,
scriptLen: agoraPartial.scriptLen,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0x7fffff000000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0x7fffff000000n);
expect(agoraPartial.askedSats(0x1000000n)).to.equal(549755813888n);
- expect(agoraPartial.priceNanoSatsPerToken(0x1000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x1000000n)).to.equal(
32768000000000n,
);
expect(agoraPartial.askedSats(0x7fffff000000n)).to.equal(
4611685468671574016n,
);
- expect(agoraPartial.priceNanoSatsPerToken(0x7fffff000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x7fffff000000n)).to.equal(
32768000000000n,
);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(32768000000000n);
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(32768000000000n);
});
it('AgoraPartial.approximateParams ALP 7450M XEC vs 100, small price', async () => {
const agoraPartial = AgoraPartial.approximateParams({
- offeredTokens: 100n,
- priceNanoSatsPerToken: 7123456780n * 1000000000n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 100n,
+ priceNanoSatsPerAtom: 7123456780n * 1000000000n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 100n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 0x7fff3a28n / 100n,
- scaledTruncTokensPerTruncSat: 50576n,
+ truncAtoms: 100n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 0x7fff3a28n / 100n,
+ scaledTruncAtomsPerTruncSat: 50576n,
numSatsTruncBytes: 3,
- minAcceptedScaledTruncTokens: 0x7fff3a28n / 100n,
+ minAcceptedScaledTruncAtoms: 0x7fff3a28n / 100n,
...BASE_PARAMS_ALP,
scriptLen: agoraPartial.scriptLen,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(100n);
- expect(agoraPartial.minAcceptedTokens()).to.equal(1n);
+ expect(agoraPartial.offeredAtoms()).to.equal(100n);
+ expect(agoraPartial.minAcceptedAtoms()).to.equal(1n);
expect(agoraPartial.askedSats(1n)).to.equal(7130316800n);
expect(agoraPartial.askedSats(2n)).to.equal(7130316800n * 2n);
expect(agoraPartial.askedSats(3n)).to.equal(7124724394n * 3n + 2n);
@@ -1056,25 +1050,25 @@
it('AgoraPartial.approximateParams ALP 7450M XEC vs 100, big price', async () => {
const agoraPartial = AgoraPartial.approximateParams({
- offeredTokens: 100n,
- priceNanoSatsPerToken: 712345678000n * 1000000000n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 100n,
+ priceNanoSatsPerAtom: 712345678000n * 1000000000n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 100n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 0x7ffe05f4n / 100n,
- scaledTruncTokensPerTruncSat: 129471n,
+ truncAtoms: 100n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 0x7ffe05f4n / 100n,
+ scaledTruncAtomsPerTruncSat: 129471n,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 0x7ffe05f4n / 100n,
+ minAcceptedScaledTruncAtoms: 0x7ffe05f4n / 100n,
...BASE_PARAMS_ALP,
scriptLen: agoraPartial.scriptLen,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(100n);
- expect(agoraPartial.minAcceptedTokens()).to.equal(1n);
+ expect(agoraPartial.offeredAtoms()).to.equal(100n);
+ expect(agoraPartial.minAcceptedAtoms()).to.equal(1n);
expect(agoraPartial.askedSats(1n)).to.equal(712964571136n);
expect(agoraPartial.askedSats(10n)).to.equal(7125350744064n);
expect(agoraPartial.askedSats(100n)).to.equal(71236327571456n);
@@ -1083,88 +1077,88 @@
it('AgoraPartial.approximateParams failure', () => {
expect(() =>
AgoraPartial.approximateParams({
- offeredTokens: 0n,
- priceNanoSatsPerToken: 0n,
- minAcceptedTokens: 0n,
+ offeredAtoms: 0n,
+ priceNanoSatsPerAtom: 0n,
+ minAcceptedAtoms: 0n,
...BASE_PARAMS_SLP,
}),
- ).to.throw('offeredTokens must be at least 1');
+ ).to.throw('offeredAtoms must be at least 1');
expect(() =>
AgoraPartial.approximateParams({
- offeredTokens: 1n,
- priceNanoSatsPerToken: 0n,
- minAcceptedTokens: 0n,
+ offeredAtoms: 1n,
+ priceNanoSatsPerAtom: 0n,
+ minAcceptedAtoms: 0n,
...BASE_PARAMS_SLP,
}),
- ).to.throw('priceNanoSatsPerToken must be at least 1');
+ ).to.throw('priceNanoSatsPerAtom must be at least 1');
expect(() =>
AgoraPartial.approximateParams({
- offeredTokens: 1n,
- priceNanoSatsPerToken: 1n,
- minAcceptedTokens: 0n,
+ offeredAtoms: 1n,
+ priceNanoSatsPerAtom: 1n,
+ minAcceptedAtoms: 0n,
...BASE_PARAMS_SLP,
}),
- ).to.throw('minAcceptedTokens must be at least 1');
+ ).to.throw('minAcceptedAtoms must be at least 1');
expect(() =>
AgoraPartial.approximateParams({
- offeredTokens: 0x10000000000000000n,
- priceNanoSatsPerToken: 1n,
- minAcceptedTokens: 546000000000n,
+ offeredAtoms: 0x10000000000000000n,
+ priceNanoSatsPerAtom: 1n,
+ minAcceptedAtoms: 546000000000n,
...BASE_PARAMS_SLP,
}),
- ).to.throw('For SLP, offeredTokens can be at most 0xffffffffffffffff');
+ ).to.throw('For SLP, offeredAtoms can be at most 0xffffffffffffffff');
expect(() =>
AgoraPartial.approximateParams({
- offeredTokens: 0x1000000000000n,
- priceNanoSatsPerToken: 1n,
- minAcceptedTokens: 546000000000n,
+ offeredAtoms: 0x1000000000000n,
+ priceNanoSatsPerAtom: 1n,
+ minAcceptedAtoms: 546000000000n,
...BASE_PARAMS_SLP,
tokenProtocol: 'ALP',
}),
- ).to.throw('For ALP, offeredTokens can be at most 0xffffffffffff');
+ ).to.throw('For ALP, offeredAtoms can be at most 0xffffffffffff');
expect(() =>
AgoraPartial.approximateParams({
- offeredTokens: 100n,
- priceNanoSatsPerToken: 10000000000n,
- minAcceptedTokens: 101n,
+ offeredAtoms: 100n,
+ priceNanoSatsPerAtom: 10000000000n,
+ minAcceptedAtoms: 101n,
...BASE_PARAMS_SLP,
tokenProtocol: 'ALP',
}),
- ).to.throw('offeredTokens must be greater than minAcceptedTokens');
+ ).to.throw('offeredAtoms must be greater than minAcceptedAtoms');
expect(() =>
AgoraPartial.approximateParams({
- offeredTokens: 1n,
- priceNanoSatsPerToken: 1n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 1n,
+ priceNanoSatsPerAtom: 1n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_SLP,
}),
).to.throw('Parameters cannot be represented in Script');
expect(() =>
AgoraPartial.approximateParams({
- offeredTokens: 0x100000000n,
- priceNanoSatsPerToken: 1000000000n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 0x100000000n,
+ priceNanoSatsPerAtom: 1000000000n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_SLP,
}),
- ).to.throw('minAcceptedTokens too small, got truncated to 0');
+ ).to.throw('minAcceptedAtoms too small, got truncated to 0');
expect(() =>
AgoraPartial.approximateParams({
- offeredTokens: 545n,
- priceNanoSatsPerToken: 1000000000n,
- minAcceptedTokens: 545n,
+ offeredAtoms: 545n,
+ priceNanoSatsPerAtom: 1000000000n,
+ minAcceptedAtoms: 545n,
...BASE_PARAMS_SLP,
}),
- ).to.throw('minAcceptedTokens would cost less than dust at this price');
+ ).to.throw('minAcceptedAtoms would cost less than dust at this price');
expect(() =>
AgoraPartial.approximateParams({
- offeredTokens: 0x100000000n,
- priceNanoSatsPerToken: 1000000000n,
- minAcceptedTokens: 546n,
+ offeredAtoms: 0x100000000n,
+ priceNanoSatsPerAtom: 1000000000n,
+ minAcceptedAtoms: 546n,
...BASE_PARAMS_SLP,
}).askedSats(1n),
).to.throw(
- 'acceptedTokens must have the last 8 bits set to zero, use ' +
- 'prepareAcceptedTokens to get a valid amount',
+ 'acceptedAtoms must have the last 8 bits set to zero, use ' +
+ 'prepareacceptedAtoms to get a valid amount',
);
});
});
diff --git a/modules/ecash-agora/src/partial.script.alp.test.ts b/modules/ecash-agora/src/partial.script.alp.test.ts
--- a/modules/ecash-agora/src/partial.script.alp.test.ts
+++ b/modules/ecash-agora/src/partial.script.alp.test.ts
@@ -24,12 +24,12 @@
describe('AgoraPartial.script ALP', () => {
it('AgoraPartial.script ALP 0,0 1000', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 1000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 1000000n,
- scaledTruncTokensPerTruncSat: 1000000n,
+ truncAtoms: 1000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 1000000n,
+ scaledTruncAtomsPerTruncSat: 1000000n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 1000000n,
+ minAcceptedScaledTruncAtoms: 1000000n,
...BASE_PARAMS_ALP,
scriptLen: 0x7f,
});
@@ -52,12 +52,12 @@
it('AgoraPartial.script ALP 1,1 10000', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 10000n,
- numTokenTruncBytes: 1,
- tokenScaleFactor: 2000n,
- scaledTruncTokensPerTruncSat: 2000n,
+ truncAtoms: 10000n,
+ numAtomsTruncBytes: 1,
+ atomsScaleFactor: 2000n,
+ scaledTruncAtomsPerTruncSat: 2000n,
numSatsTruncBytes: 1,
- minAcceptedScaledTruncTokens: 2000n,
+ minAcceptedScaledTruncAtoms: 2000n,
...BASE_PARAMS_ALP,
scriptLen: 0x7f,
});
@@ -80,12 +80,12 @@
it('AgoraPartial.script ALP 2,2 0x30313233', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 0x30313233n,
- numTokenTruncBytes: 2,
- tokenScaleFactor: 0x12345678n,
- scaledTruncTokensPerTruncSat: 0x98765432n,
+ truncAtoms: 0x30313233n,
+ numAtomsTruncBytes: 2,
+ atomsScaleFactor: 0x12345678n,
+ scaledTruncAtomsPerTruncSat: 0x98765432n,
numSatsTruncBytes: 2,
- minAcceptedScaledTruncTokens: 0x454647n,
+ minAcceptedScaledTruncAtoms: 0x454647n,
...BASE_PARAMS_ALP,
scriptLen: 0x7f,
});
@@ -108,12 +108,12 @@
it('AgoraPartial.script ALP 3,3 0x7fffffff', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 0x7fffffffn,
- numTokenTruncBytes: 3,
- tokenScaleFactor: 0x7fffffffn,
- scaledTruncTokensPerTruncSat: 0x7fffffffn,
+ truncAtoms: 0x7fffffffn,
+ numAtomsTruncBytes: 3,
+ atomsScaleFactor: 0x7fffffffn,
+ scaledTruncAtomsPerTruncSat: 0x7fffffffn,
numSatsTruncBytes: 3,
- minAcceptedScaledTruncTokens: 0x7fffffffn,
+ minAcceptedScaledTruncAtoms: 0x7fffffffn,
...BASE_PARAMS_ALP,
scriptLen: 0x7f,
});
@@ -136,12 +136,12 @@
it('AgoraPartial.script ALP 3,4 0x7fff', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 0x7fffn,
- numTokenTruncBytes: 3,
- tokenScaleFactor: 0x6fffn,
- scaledTruncTokensPerTruncSat: 0x5fffn,
+ truncAtoms: 0x7fffn,
+ numAtomsTruncBytes: 3,
+ atomsScaleFactor: 0x6fffn,
+ scaledTruncAtomsPerTruncSat: 0x5fffn,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 0x4fffn,
+ minAcceptedScaledTruncAtoms: 0x4fffn,
...BASE_PARAMS_ALP,
scriptLen: 0x7f,
});
diff --git a/modules/ecash-agora/src/partial.script.slp.test.ts b/modules/ecash-agora/src/partial.script.slp.test.ts
--- a/modules/ecash-agora/src/partial.script.slp.test.ts
+++ b/modules/ecash-agora/src/partial.script.slp.test.ts
@@ -29,12 +29,12 @@
describe('AgoraPartial.script SLP', () => {
it('AgoraPartial.script SLP 0,0 1000', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 1000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 1000000n,
- scaledTruncTokensPerTruncSat: 1000000n,
+ truncAtoms: 1000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 1000000n,
+ scaledTruncAtomsPerTruncSat: 1000000n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 1000000n,
+ minAcceptedScaledTruncAtoms: 1000000n,
...BASE_PARAMS_SLP,
tokenType: SLP_FUNGIBLE,
scriptLen: 0x7f,
@@ -58,12 +58,12 @@
it('AgoraPartial.script SLP 1,1 10000', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 10000n,
- numTokenTruncBytes: 1,
- tokenScaleFactor: 2000n,
- scaledTruncTokensPerTruncSat: 2000n,
+ truncAtoms: 10000n,
+ numAtomsTruncBytes: 1,
+ atomsScaleFactor: 2000n,
+ scaledTruncAtomsPerTruncSat: 2000n,
numSatsTruncBytes: 1,
- minAcceptedScaledTruncTokens: 2000n,
+ minAcceptedScaledTruncAtoms: 2000n,
...BASE_PARAMS_SLP,
tokenType: SLP_MINT_VAULT,
scriptLen: 0x7f,
@@ -87,12 +87,12 @@
it('AgoraPartial.script SLP 2,2 0x30313233', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 0x30313233n,
- numTokenTruncBytes: 2,
- tokenScaleFactor: 0x12345678n,
- scaledTruncTokensPerTruncSat: 0x98765432n,
+ truncAtoms: 0x30313233n,
+ numAtomsTruncBytes: 2,
+ atomsScaleFactor: 0x12345678n,
+ scaledTruncAtomsPerTruncSat: 0x98765432n,
numSatsTruncBytes: 2,
- minAcceptedScaledTruncTokens: 0x454647n,
+ minAcceptedScaledTruncAtoms: 0x454647n,
...BASE_PARAMS_SLP,
tokenType: SLP_NFT1_GROUP,
scriptLen: 0x7f,
@@ -117,12 +117,12 @@
it('AgoraPartial.script SLP 3,3 0x7fffffff', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 0x7fffffffn,
- numTokenTruncBytes: 3,
- tokenScaleFactor: 0x7fffffffn,
- scaledTruncTokensPerTruncSat: 0x7fffffffn,
+ truncAtoms: 0x7fffffffn,
+ numAtomsTruncBytes: 3,
+ atomsScaleFactor: 0x7fffffffn,
+ scaledTruncAtomsPerTruncSat: 0x7fffffffn,
numSatsTruncBytes: 3,
- minAcceptedScaledTruncTokens: 0x7fffffffn,
+ minAcceptedScaledTruncAtoms: 0x7fffffffn,
...BASE_PARAMS_SLP,
tokenType: SLP_FUNGIBLE,
scriptLen: 0x7f,
@@ -147,12 +147,12 @@
it('AgoraPartial.script SLP 4,4 0x7fff', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 0x7fffn,
- numTokenTruncBytes: 4,
- tokenScaleFactor: 0x6fffn,
- scaledTruncTokensPerTruncSat: 0x5fffn,
+ truncAtoms: 0x7fffn,
+ numAtomsTruncBytes: 4,
+ atomsScaleFactor: 0x6fffn,
+ scaledTruncAtomsPerTruncSat: 0x5fffn,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 0x4fffn,
+ minAcceptedScaledTruncAtoms: 0x4fffn,
...BASE_PARAMS_SLP,
tokenType: SLP_MINT_VAULT,
scriptLen: 0x7f,
@@ -176,12 +176,12 @@
it('AgoraPartial.script SLP 5,4 0x7fff', () => {
const agoraPartial = new AgoraPartial({
- truncTokens: 0xffffffn,
- numTokenTruncBytes: 5,
- tokenScaleFactor: 0x8123fffn,
- scaledTruncTokensPerTruncSat: 0x4123fffn,
+ truncAtoms: 0xffffffn,
+ numAtomsTruncBytes: 5,
+ atomsScaleFactor: 0x8123fffn,
+ scaledTruncAtomsPerTruncSat: 0x4123fffn,
numSatsTruncBytes: 4,
- minAcceptedScaledTruncTokens: 0x2123fffn,
+ minAcceptedScaledTruncAtoms: 0x2123fffn,
...BASE_PARAMS_SLP,
tokenType: SLP_FUNGIBLE,
scriptLen: 0x7f,
diff --git a/modules/ecash-agora/src/partial.ts b/modules/ecash-agora/src/partial.ts
--- a/modules/ecash-agora/src/partial.ts
+++ b/modules/ecash-agora/src/partial.ts
@@ -81,20 +81,20 @@
export interface AgoraPartialParams {
/**
* Offered tokens in base tokens. After param approximation, this may differ
- * from `AgoraPartial`.offeredTokens(), so make sure to use that when
+ * from `AgoraPartial`.offeredAtoms(), so make sure to use that when
* preparing the offer!
*
* For SLP, the maximum allowed value here is 0xffffffffffffffff, for ALP it
* is 0xffffffffffff.
**/
- offeredTokens: bigint;
+ offeredAtoms: bigint;
/**
- * Price in nano sats per (base) token.
+ * Price in nano sats per atom (aka base token).
* Using nsats allows users to specify a very large range of prices, from
* tokens where billions of them cost a single sat, to offers where single
* tokens can cost millions of XEC.
**/
- priceNanoSatsPerToken: bigint;
+ priceNanoSatsPerAtom: bigint;
/**
* Public key of the offering party.
* This is the public key of the wallet, and it serves both as the pubkey to
@@ -103,7 +103,7 @@
**/
makerPk: Uint8Array;
/**
- * Minimum number of tokens that can be accepted.
+ * Minimum number of atoms that can be accepted.
* Can be used to avoid spam and prevent exploits with really small
* accept amounts.
* Also, small amounts can have very bad precision, and raising the minimum
@@ -112,7 +112,7 @@
* available.
* It is recommended to set this to 0.1% of the offered amount.
**/
- minAcceptedTokens: bigint;
+ minAcceptedAtoms: bigint;
/** Token ID of the offered token, in big-endian hex. */
tokenId: string;
/** Token type of the offered token. */
@@ -131,19 +131,19 @@
**/
enforcedLockTime: number;
/** Dust amount to be used by the script. */
- dustAmount?: number;
+ dustAmount?: bigint;
/**
- * Minimum tokenScaleFactor when approximating numTokenTruncBytes.
+ * Minimum atomsScaleFactor when approximating numAtomsTruncBytes.
* It is recommended to leave this at the default (1000), but it is exposed
* to either increase price precision and granularity of token amounts (by
* raising the limit), or to lower price precision but allow more fine-
* grained token amounts (by lowering the limit).
**/
- minTokenScaleFactor?: bigint;
+ minAtomsScaleFactor?: bigint;
/**
* Minimum integer when representing the price
- * (scaledTruncTokensPerTruncSat), the approximation will truncate
- * additional sats bytes in order to make scaledTruncTokensPerTruncSat
+ * (scaledTruncAtomsPerTruncSat), the approximation will truncate
+ * additional sats bytes in order to make scaledTruncAtomsPerTruncSat
* bigger.
* It is recommended to leave this at the default (1000), but it is exposed
* for cases where a small number of tokens are offered for a big price,
@@ -151,7 +151,7 @@
**/
minPriceInteger?: bigint;
/**
- * Minimum ratio tokenScaleFactor / scaledTruncTokensPerTruncSat, this can
+ * Minimum ratio atomsScaleFactor / scaledTruncAtomsPerTruncSat, this can
* be used to limit the additional truncation introduced by minPriceInteger.
* It is recommended to leave this at the default (1000), but it is exposed
* for cases where the askedSats for small accept amounts are very
@@ -181,18 +181,18 @@
* We employ two strategies to increase precision and range:
* - "Scaling": We scale up values to the maximum representable, such that we
* make full use of the 31 bits available. Values that have been scaled up
- * have the prefix "scaled", and the scale factor is "tokenScaleFactor". We
+ * have the prefix "scaled", and the scale factor is "atomsScaleFactor". We
* only scale token amounts.
* - "Truncation": We cut off bytes at the "end" of numbers, essentially
* dividing them by 256 for each truncation, until they fit in 31 bits, so we
* can use arithmetic opcodes. Later we "un-truncate" values again by adding
* the bytes back. We use OP_CAT to un-truncate values, which doesn't care
* about the 31-bit limit. Values that have been truncated have the "trunc"
- * prefix. We truncate both token amounts (by numTokenTruncBytes bytes) and
+ * prefix. We truncate both token amounts (by numAtomsTruncBytes bytes) and
* sats amounts (by numSatsTruncBytes).
*
* Scaling and truncation can be combined, such that the token price is in
- * "scaledTruncTokensPerTruncSat".
+ * "scaledTruncAtomsPerTruncSat".
* Together, they give us a very large range of representable values, while
* keeping a decent precision.
*
@@ -205,33 +205,33 @@
/**
* Truncated amount that's offered.
- * The last numTokenTruncBytes bytes are truncated to allow representing it
+ * The last numAtomsTruncBytes bytes are truncated to allow representing it
* in Script or to increase precision.
* This means that tokens can only be accepted at a granularity of
- * 2^(8*numTokenTruncBytes).
- * offeredTokens = truncTokens * 2^(8*numTokenTruncBytes).
+ * 2^(8*numAtomsTruncBytes).
+ * offeredAtoms = truncAtoms * 2^(8*numAtomsTruncBytes).
**/
- public truncTokens: bigint;
+ public truncAtoms: bigint;
/**
* How many bytes are truncated from the real token amount, so it fits into
* 31-bit ints, or to increase precision.
**/
- public numTokenTruncBytes: number;
+ public numAtomsTruncBytes: number;
/**
* Factor token amounts will be multiplied with in the Script to improve
* precision.
**/
- public tokenScaleFactor: bigint;
+ public atomsScaleFactor: bigint;
/**
* Price in scaled trunc tokens per truncated sat.
* This unit may seem a bit bizzare, but it is exactly what is needed in the
- * Script calculation: The "acceptedTokens" coming from the taker is both
- * scaled by tokenScaleFactor and also truncated by numTokenTruncBytes
- * bytes, so we only have to divide the acceptedTokens by this number to get
+ * Script calculation: The "acceptedAtoms" coming from the taker is both
+ * scaled by atomsScaleFactor and also truncated by numAtomsTruncBytes
+ * bytes, so we only have to divide the acceptedAtoms by this number to get
* the required (truncated) sats. So we only have to un-truncate that and we
* have the asked sats.
**/
- public scaledTruncTokensPerTruncSat: bigint;
+ public scaledTruncAtomsPerTruncSat: bigint;
/**
* How many bytes are truncated from the real sats amount, so it fits into
* 31-bit ints or to improve precision.
@@ -244,7 +244,7 @@
/**
* How many tokens (scaled and truncated) at minimum have to be accepted.
**/
- public minAcceptedScaledTruncTokens: bigint;
+ public minAcceptedScaledTruncAtoms: bigint;
/** Token of the contract, in big-endian hex. */
public tokenId: string;
/** Token type offered */
@@ -268,30 +268,30 @@
* Dust amount of the network, the Script will enforce token outputs to have
* this amount.
**/
- public dustAmount: number;
+ public dustAmount: bigint;
public constructor(params: {
- truncTokens: bigint;
- numTokenTruncBytes: number;
- tokenScaleFactor: bigint;
- scaledTruncTokensPerTruncSat: bigint;
+ truncAtoms: bigint;
+ numAtomsTruncBytes: number;
+ atomsScaleFactor: bigint;
+ scaledTruncAtomsPerTruncSat: bigint;
numSatsTruncBytes: number;
makerPk: Uint8Array;
- minAcceptedScaledTruncTokens: bigint;
+ minAcceptedScaledTruncAtoms: bigint;
tokenId: string;
tokenType: number;
tokenProtocol: 'SLP' | 'ALP';
scriptLen: number;
enforcedLockTime: number;
- dustAmount: number;
+ dustAmount: bigint;
}) {
- this.truncTokens = params.truncTokens;
- this.numTokenTruncBytes = params.numTokenTruncBytes;
- this.tokenScaleFactor = params.tokenScaleFactor;
- this.scaledTruncTokensPerTruncSat = params.scaledTruncTokensPerTruncSat;
+ this.truncAtoms = params.truncAtoms;
+ this.numAtomsTruncBytes = params.numAtomsTruncBytes;
+ this.atomsScaleFactor = params.atomsScaleFactor;
+ this.scaledTruncAtomsPerTruncSat = params.scaledTruncAtomsPerTruncSat;
this.numSatsTruncBytes = params.numSatsTruncBytes;
this.makerPk = params.makerPk;
- this.minAcceptedScaledTruncTokens = params.minAcceptedScaledTruncTokens;
+ this.minAcceptedScaledTruncAtoms = params.minAcceptedScaledTruncAtoms;
this.tokenId = params.tokenId;
this.tokenType = params.tokenType;
this.tokenProtocol = params.tokenProtocol;
@@ -315,35 +315,35 @@
params: AgoraPartialParams,
scriptIntegerBits: bigint = 32n,
): AgoraPartial {
- if (params.offeredTokens < 1n) {
- throw new Error('offeredTokens must be at least 1');
+ if (params.offeredAtoms < 1n) {
+ throw new Error('offeredAtoms must be at least 1');
}
- if (params.priceNanoSatsPerToken < 1n) {
- throw new Error('priceNanoSatsPerToken must be at least 1');
+ if (params.priceNanoSatsPerAtom < 1n) {
+ throw new Error('priceNanoSatsPerAtom must be at least 1');
}
- if (params.minAcceptedTokens < 1n) {
- throw new Error('minAcceptedTokens must be at least 1');
+ if (params.minAcceptedAtoms < 1n) {
+ throw new Error('minAcceptedAtoms must be at least 1');
}
if (
params.tokenProtocol === 'SLP' &&
- params.offeredTokens > 0xffffffffffffffffn
+ params.offeredAtoms > 0xffffffffffffffffn
) {
throw new Error(
- 'For SLP, offeredTokens can be at most 0xffffffffffffffff',
+ 'For SLP, offeredAtoms can be at most 0xffffffffffffffff',
);
}
if (
params.tokenProtocol === 'ALP' &&
- params.offeredTokens > 0xffffffffffffn
+ params.offeredAtoms > 0xffffffffffffn
) {
throw new Error(
- 'For ALP, offeredTokens can be at most 0xffffffffffff',
+ 'For ALP, offeredAtoms can be at most 0xffffffffffff',
);
}
- if (params.offeredTokens < params.minAcceptedTokens) {
+ if (params.offeredAtoms < params.minAcceptedAtoms) {
throw new Error(
- 'offeredTokens must be greater than minAcceptedTokens',
+ 'offeredAtoms must be greater than minAcceptedAtoms',
);
}
@@ -354,30 +354,29 @@
// Edge case where price can be represented exactly,
// no need to introduce extra approximation.
- const isPrecisePrice =
- 1000000000n % params.priceNanoSatsPerToken === 0n;
+ const isPrecisePrice = 1000000000n % params.priceNanoSatsPerAtom === 0n;
// The Script can only handle a maximum level of truncation
const maxTokenTruncBytes = params.tokenProtocol === 'SLP' ? 5 : 3;
- const minTokenScaleFactor = isPrecisePrice
+ const minAtomsScaleFactor = isPrecisePrice
? 1n
- : params.minTokenScaleFactor ?? 10000n;
+ : params.minAtomsScaleFactor ?? 10000n;
// If we can't represent the offered tokens in a script int, we truncate 8
// bits at a time until it fits.
- let truncTokens = params.offeredTokens;
- let numTokenTruncBytes = 0n;
+ let truncAtoms = params.offeredAtoms;
+ let numAtomsTruncBytes = 0n;
while (
- truncTokens * minTokenScaleFactor > maxScriptInt &&
- numTokenTruncBytes < maxTokenTruncBytes
+ truncAtoms * minAtomsScaleFactor > maxScriptInt &&
+ numAtomsTruncBytes < maxTokenTruncBytes
) {
- truncTokens >>= 8n;
- numTokenTruncBytes++;
+ truncAtoms >>= 8n;
+ numAtomsTruncBytes++;
}
// Required sats to fully accept the trade (rounded down)
const requiredSats =
- (params.offeredTokens * params.priceNanoSatsPerToken) / 1000000000n;
+ (params.offeredAtoms * params.priceNanoSatsPerAtom) / 1000000000n;
// For bigger trades (>=2^31 sats), we need also to truncate sats
let requiredTruncSats = requiredSats;
@@ -388,78 +387,74 @@
}
// We scale up the token values to get some extra precision
- let tokenScaleFactor = maxScriptInt / truncTokens;
+ let atomsScaleFactor = maxScriptInt / truncAtoms;
// How many scaled trunc tokens can be gotten for each trunc sat.
// It is the inverse of the price specified by the user, and truncated +
// scaled as required by the Script.
- const calcScaledTruncTokensPerTruncSat = () =>
+ const calcscaledTruncAtomsPerTruncSat = () =>
((1n << (8n * numSatsTruncBytes)) *
- tokenScaleFactor *
+ atomsScaleFactor *
1000000000n) /
- ((1n << (8n * numTokenTruncBytes)) * params.priceNanoSatsPerToken);
+ ((1n << (8n * numAtomsTruncBytes)) * params.priceNanoSatsPerAtom);
// For trades offering a few tokens for many sats, truncate the sats
// amounts some more to increase precision.
const minPriceInteger = params.minPriceInteger ?? 1000n;
- // However, only truncate sats if tokenScaleFactor is well above
- // scaledTruncTokensPerTruncSat, otherwise we lose precision because
+ // However, only truncate sats if atomsScaleFactor is well above
+ // scaledTruncAtomsPerTruncSat, otherwise we lose precision because
// we're rounding up for the sats calculation in the Script.
const minScaleRatio = params.minScaleRatio ?? 1000n;
- let scaledTruncTokensPerTruncSat = calcScaledTruncTokensPerTruncSat();
+ let scaledTruncAtomsPerTruncSat = calcscaledTruncAtomsPerTruncSat();
while (
- scaledTruncTokensPerTruncSat < minPriceInteger &&
- scaledTruncTokensPerTruncSat * minScaleRatio < tokenScaleFactor
+ scaledTruncAtomsPerTruncSat < minPriceInteger &&
+ scaledTruncAtomsPerTruncSat * minScaleRatio < atomsScaleFactor
) {
numSatsTruncBytes++;
- scaledTruncTokensPerTruncSat = calcScaledTruncTokensPerTruncSat();
+ scaledTruncAtomsPerTruncSat = calcscaledTruncAtomsPerTruncSat();
}
// Edge case where the sats calculation can go above the integer limit
if (
- truncTokens * tokenScaleFactor + scaledTruncTokensPerTruncSat - 1n >
+ truncAtoms * atomsScaleFactor + scaledTruncAtomsPerTruncSat - 1n >
maxScriptInt
) {
- if (
- truncTokens * tokenScaleFactor <=
- scaledTruncTokensPerTruncSat
- ) {
- // Case where we just overshot the tokenScaleFactor
- tokenScaleFactor /= 2n;
- scaledTruncTokensPerTruncSat =
- calcScaledTruncTokensPerTruncSat();
+ if (truncAtoms * atomsScaleFactor <= scaledTruncAtomsPerTruncSat) {
+ // Case where we just overshot the atomsScaleFactor
+ atomsScaleFactor /= 2n;
+ scaledTruncAtomsPerTruncSat = calcscaledTruncAtomsPerTruncSat();
}
- const maxTruncTokens =
- maxScriptInt - scaledTruncTokensPerTruncSat + 1n;
- if (maxTruncTokens < 0n) {
+ const maxtruncAtoms =
+ maxScriptInt - scaledTruncAtomsPerTruncSat + 1n;
+ if (maxtruncAtoms < 0n) {
throw new Error('Parameters cannot be represented in Script');
}
- if (truncTokens > maxTruncTokens) {
- // Case where truncTokens itself is close to maxScriptInt
- tokenScaleFactor = 1n;
- truncTokens = maxTruncTokens;
+ if (truncAtoms > maxtruncAtoms) {
+ // Case where truncAtoms itself is close to maxScriptInt
+ atomsScaleFactor = 1n;
+ truncAtoms = maxtruncAtoms;
} else {
// Case where scaled tokens would exceed maxScriptInt
- tokenScaleFactor = maxTruncTokens / truncTokens;
+ atomsScaleFactor = maxtruncAtoms / truncAtoms;
}
// Recalculate price
- scaledTruncTokensPerTruncSat = calcScaledTruncTokensPerTruncSat();
+ scaledTruncAtomsPerTruncSat = calcscaledTruncAtomsPerTruncSat();
}
// Scale + truncate the minimum accepted tokens
- const minAcceptedScaledTruncTokens =
- (params.minAcceptedTokens * tokenScaleFactor) >>
- (8n * numTokenTruncBytes);
+ const minAcceptedScaledTruncAtoms =
+ (params.minAcceptedAtoms * atomsScaleFactor) >>
+ (8n * numAtomsTruncBytes);
const dustAmount = params.dustAmount ?? DEFAULT_DUST_LIMIT;
const agoraPartial = new AgoraPartial({
- truncTokens,
- numTokenTruncBytes: Number(numTokenTruncBytes),
- tokenScaleFactor,
- scaledTruncTokensPerTruncSat,
+ truncAtoms,
+ numAtomsTruncBytes: Number(numAtomsTruncBytes),
+ atomsScaleFactor,
+ scaledTruncAtomsPerTruncSat,
numSatsTruncBytes: Number(numSatsTruncBytes),
makerPk: params.makerPk,
- minAcceptedScaledTruncTokens,
+ minAcceptedScaledTruncAtoms,
tokenId: params.tokenId,
tokenType: params.tokenType,
tokenProtocol: params.tokenProtocol,
@@ -467,15 +462,15 @@
enforcedLockTime: params.enforcedLockTime,
dustAmount,
});
- const minAcceptedTokens = agoraPartial.minAcceptedTokens();
- if (minAcceptedTokens < 1n) {
- throw new Error('minAcceptedTokens too small, got truncated to 0');
+ const minAcceptedAtoms = agoraPartial.minAcceptedAtoms();
+ if (minAcceptedAtoms < 1n) {
+ throw new Error('minAcceptedAtoms too small, got truncated to 0');
}
- const minAskedSats = agoraPartial.askedSats(minAcceptedTokens);
+ const minAskedSats = agoraPartial.askedSats(minAcceptedAtoms);
if (minAskedSats < dustAmount) {
throw new Error(
- 'minAcceptedTokens would cost less than dust at this price',
+ 'minAcceptedAtoms would cost less than dust at this price',
);
}
@@ -494,61 +489,61 @@
/**
* How many tokens are accually offered by the Script.
- * This may differ from the offeredTokens in the AgoraPartialParams used to
+ * This may differ from the offeredAtoms in the AgoraPartialParams used to
* approximate this AgoraPartial.
**/
- public offeredTokens(): bigint {
- return this.truncTokens << BigInt(8 * this.numTokenTruncBytes);
+ public offeredAtoms(): bigint {
+ return this.truncAtoms << BigInt(8 * this.numAtomsTruncBytes);
}
/**
* Actual minimum acceptable tokens of this Script.
- * This may differ from the minAcceptedTokens in the AgoraPartialParams used
+ * This may differ from the minAcceptedAtoms in the AgoraPartialParams used
* to approximate this AgoraPartial.
**/
- public minAcceptedTokens(): bigint {
- const minAcceptedTokens =
- (this.minAcceptedScaledTruncTokens <<
- BigInt(8 * this.numTokenTruncBytes)) /
- this.tokenScaleFactor;
-
- let preparedMinAcceptedTokens =
- this.prepareAcceptedTokens(minAcceptedTokens);
- if (preparedMinAcceptedTokens < minAcceptedTokens) {
+ public minAcceptedAtoms(): bigint {
+ const minAcceptedAtoms =
+ (this.minAcceptedScaledTruncAtoms <<
+ BigInt(8 * this.numAtomsTruncBytes)) /
+ this.atomsScaleFactor;
+
+ let preparedminAcceptedAtoms =
+ this.prepareacceptedAtoms(minAcceptedAtoms);
+ if (preparedminAcceptedAtoms < minAcceptedAtoms) {
// It's possible that, after adjusting for acceptable discrete intervals,
- // minAcceptedTokens becomes less than the script minimum
+ // minAcceptedAtoms becomes less than the script minimum
// In this case, we "round up" to the true min accepted tokens
const tickSize =
- (this.tokenScaleFactor << BigInt(8 * this.numTokenTruncBytes)) /
- this.tokenScaleFactor;
- preparedMinAcceptedTokens += tickSize;
+ (this.atomsScaleFactor << BigInt(8 * this.numAtomsTruncBytes)) /
+ this.atomsScaleFactor;
+ preparedminAcceptedAtoms += tickSize;
}
- return preparedMinAcceptedTokens;
+ return preparedminAcceptedAtoms;
}
/**
* Calculate the actually asked satoshi amount for the given accepted number of tokens.
* This is the exact amount that has to be sent to makerPk's P2PKH address
* to accept the offer.
- * `acceptedTokens` must have the lowest numTokenTruncBytes bytes set to 0,
- * use prepareAcceptedTokens to do so.
+ * `acceptedAtoms` must have the lowest numAtomsTruncBytes bytes set to 0,
+ * use prepareacceptedAtoms to do so.
**/
- public askedSats(acceptedTokens: bigint): bigint {
+ public askedSats(acceptedAtoms: bigint): bigint {
const numSatsTruncBits = BigInt(8 * this.numSatsTruncBytes);
- const numTokenTruncBits = BigInt(8 * this.numTokenTruncBytes);
- const acceptedTruncTokens = acceptedTokens >> numTokenTruncBits;
- if (acceptedTruncTokens << numTokenTruncBits != acceptedTokens) {
+ const numTokenTruncBits = BigInt(8 * this.numAtomsTruncBytes);
+ const acceptedtruncAtoms = acceptedAtoms >> numTokenTruncBits;
+ if (acceptedtruncAtoms << numTokenTruncBits != acceptedAtoms) {
throw new Error(
- `acceptedTokens must have the last ${numTokenTruncBits} bits ` +
- 'set to zero, use prepareAcceptedTokens to get a valid amount',
+ `acceptedAtoms must have the last ${numTokenTruncBits} bits ` +
+ 'set to zero, use prepareacceptedAtoms to get a valid amount',
);
}
// Divide rounding up
const askedTruncSats =
- (acceptedTruncTokens * this.tokenScaleFactor +
- this.scaledTruncTokensPerTruncSat -
+ (acceptedtruncAtoms * this.atomsScaleFactor +
+ this.scaledTruncAtomsPerTruncSat -
1n) /
- this.scaledTruncTokensPerTruncSat;
+ this.scaledTruncAtomsPerTruncSat;
// Un-truncate sats
return askedTruncSats << numSatsTruncBits;
}
@@ -556,9 +551,9 @@
/**
* Throw an error if accept amount is invalid
* Note we do not prepare amounts in this function
- * @param acceptedTokens
+ * @param acceptedAtoms
*/
- public preventUnacceptableRemainder(acceptedTokens: bigint) {
+ public preventUnacceptableRemainder(acceptedAtoms: bigint) {
// Validation to avoid creating an offer that cannot be accepted
//
// 1 - confirm the remaining offer amount is more than the
@@ -566,7 +561,7 @@
//
// 2 - Confirm the cost of accepting the (full) remainder is
// at least dust. This is already confirmed...for offers
- // created by this lib... as minAcceptedTokens() must
+ // created by this lib... as minAcceptedAtoms() must
// cost more than dust
//
//
@@ -574,47 +569,47 @@
// that is impossible to accept; can only be canceld by its maker
// Get the token qty that would remain after this accept
- const offeredTokens = this.offeredTokens();
- const remainingTokens = offeredTokens - acceptedTokens;
+ const offeredAtoms = this.offeredAtoms();
+ const remainingTokens = offeredAtoms - acceptedAtoms;
if (remainingTokens <= 0n) {
return;
}
// Full accepts are always ok
- const minAcceptedTokens = this.minAcceptedTokens();
+ const minAcceptedAtoms = this.minAcceptedAtoms();
const priceOfRemainingTokens = this.askedSats(remainingTokens);
- if (remainingTokens < minAcceptedTokens) {
+ if (remainingTokens < minAcceptedAtoms) {
throw new Error(
- `Accepting ${acceptedTokens} token satoshis would leave an amount lower than the min acceptable by the terms of this contract, and hence unacceptable. Accept fewer tokens or the full offer.`,
+ `Accepting ${acceptedAtoms} token satoshis would leave an amount lower than the min acceptable by the terms of this contract, and hence unacceptable. Accept fewer tokens or the full offer.`,
);
}
if (priceOfRemainingTokens < this.dustAmount) {
throw new Error(
- `Accepting ${acceptedTokens} token satoshis would leave an amount priced lower than dust. Accept fewer tokens or the full offer.`,
+ `Accepting ${acceptedAtoms} token satoshis would leave an amount priced lower than dust. Accept fewer tokens or the full offer.`,
);
}
}
/**
- * Prepare the given acceptedTokens amount for the Script; `acceptedTokens`
- * must have the lowest numTokenTruncBytes bytes set to 0 and this function
+ * Prepare the given acceptedAtoms amount for the Script; `acceptedAtoms`
+ * must have the lowest numAtomsTruncBytes bytes set to 0 and this function
* does this for us.
**/
- public prepareAcceptedTokens(acceptedTokens: bigint): bigint {
- const numTokenTruncBits = BigInt(8 * this.numTokenTruncBytes);
- return (acceptedTokens >> numTokenTruncBits) << numTokenTruncBits;
+ public prepareacceptedAtoms(acceptedAtoms: bigint): bigint {
+ const numTokenTruncBits = BigInt(8 * this.numAtomsTruncBytes);
+ return (acceptedAtoms >> numTokenTruncBits) << numTokenTruncBits;
}
/**
- * Calculate the actual priceNanoSatsPerToken of this offer, factoring in
+ * Calculate the actual priceNanoSatsPerAtom of this offer, factoring in
* all approximation inacurracies.
* Due to the rounding, the price can change based on the accepted token
* amount. By default it calculates the price per token for accepting the
* entire offer.
**/
- public priceNanoSatsPerToken(acceptedTokens?: bigint): bigint {
- acceptedTokens ??= this.offeredTokens();
- const prepared = this.prepareAcceptedTokens(acceptedTokens);
+ public priceNanoSatsPerAtom(acceptedAtoms?: bigint): bigint {
+ acceptedAtoms ??= this.offeredAtoms();
+ const prepared = this.prepareacceptedAtoms(acceptedAtoms);
const sats = this.askedSats(prepared);
return (sats * 1000000000n) / prepared;
}
@@ -627,11 +622,11 @@
writer.putU8(AgoraPartial.COVENANT_VARIANT.length);
writer.putBytes(strToBytes(AgoraPartial.COVENANT_VARIANT));
}
- writer.putU8(this.numTokenTruncBytes);
+ writer.putU8(this.numAtomsTruncBytes);
writer.putU8(this.numSatsTruncBytes);
- writer.putU64(this.tokenScaleFactor);
- writer.putU64(this.scaledTruncTokensPerTruncSat);
- writer.putU64(this.minAcceptedScaledTruncTokens);
+ writer.putU64(this.atomsScaleFactor);
+ writer.putU64(this.scaledTruncAtomsPerTruncSat);
+ writer.putU64(this.minAcceptedScaledTruncAtoms);
writer.putU32(this.enforcedLockTime);
writer.putBytes(this.makerPk);
};
@@ -648,7 +643,7 @@
// protocol intros.
if (this.tokenProtocol === 'SLP') {
const slpSendIntro = slpSend(this.tokenId, this.tokenType, [
- 0,
+ 0n,
]).bytecode;
const covenantConstsWriter = new WriterBytes(
slpSendIntro.length + adPushdata.length,
@@ -683,11 +678,11 @@
// Even though Script currently doesn't support 64-bit integers,
// this allows us to eventually upgrade to 64-bit without changing this
// Script at all.
- const scaledTruncTokens8LeWriter = new WriterBytes(8);
- scaledTruncTokens8LeWriter.putU64(
- this.truncTokens * this.tokenScaleFactor,
+ const scaledtruncAtoms8LeWriter = new WriterBytes(8);
+ scaledtruncAtoms8LeWriter.putU64(
+ this.truncAtoms * this.atomsScaleFactor,
);
- const scaledTruncTokens8Le = scaledTruncTokens8LeWriter.data;
+ const scaledtruncAtoms8Le = scaledtruncAtoms8LeWriter.data;
const enforcedLockTime4LeWriter = new WriterBytes(4);
enforcedLockTime4LeWriter.putU32(this.enforcedLockTime);
@@ -697,7 +692,7 @@
// # Push consts
pushBytesOp(covenantConsts),
// # Push offered token amount as scaled trunc tokens, as u64 LE
- pushBytesOp(scaledTruncTokens8Le),
+ pushBytesOp(scaledtruncAtoms8Le),
// # Use OP_CODESEPERATOR to remove the above two (large) pushops
// # from the sighash preimage (tx size optimization)
OP_CODESEPARATOR,
@@ -705,49 +700,49 @@
OP_ROT,
// OP_IF(isPurchase)
OP_IF,
- // scaledTruncTokens = OP_BIN2NUM(scaledTruncTokens8Le)
+ // scaledtruncAtoms = OP_BIN2NUM(scaledtruncAtoms8Le)
OP_BIN2NUM,
- // OP_ROT(acceptedScaledTruncTokens, _, _)
+ // OP_ROT(acceptedScaledtruncAtoms, _, _)
OP_ROT,
// # Verify accepted amount doesn't exceed available amount
- // OP_2DUP(scaledTruncTokens, acceptedScaledTruncTokens)
+ // OP_2DUP(scaledtruncAtoms, acceptedScaledtruncAtoms)
OP_2DUP,
- // isNotExcessive = OP_GREATERTHANOREQUAL(scaledTruncTokens,
- // acceptedScaledTruncTokens)
+ // isNotExcessive = OP_GREATERTHANOREQUAL(scaledtruncAtoms,
+ // acceptedScaledtruncAtoms)
OP_GREATERTHANOREQUAL,
// OP_VERIFY(isNotExcessive)
OP_VERIFY,
// # Verify accepted amount is above a required minimum
- // OP_DUP(acceptedScaledTruncTokens)
+ // OP_DUP(acceptedScaledtruncAtoms)
OP_DUP,
// # Ensure minimum accepted amount is not violated
- pushNumberOp(this.minAcceptedScaledTruncTokens),
- // isEnough = OP_GREATERTHANOREQUAL(acceptedScaledTruncTokens,
- // minAcceptedScaledTruncTokens)
+ pushNumberOp(this.minAcceptedScaledTruncAtoms),
+ // isEnough = OP_GREATERTHANOREQUAL(acceptedScaledtruncAtoms,
+ // minAcceptedScaledTruncAtoms)
OP_GREATERTHANOREQUAL,
// OP_VERIFY(isEnough)
OP_VERIFY,
// # Verify accepted amount is scaled correctly, must be a
- // # multiple of tokenScaleFactor.
- // OP_DUP(acceptedScaledTruncTokens)
+ // # multiple of atomsScaleFactor.
+ // OP_DUP(acceptedScaledtruncAtoms)
OP_DUP,
- pushNumberOp(this.tokenScaleFactor),
- // scaleRemainder = OP_MOD(acceptedScaledTruncTokens,
- // tokenScaleFactor)
+ pushNumberOp(this.atomsScaleFactor),
+ // scaleRemainder = OP_MOD(acceptedScaledtruncAtoms,
+ // atomsScaleFactor)
OP_MOD,
OP_0,
// OP_EQUALVERIFY(scaleRemainder, 0)
OP_EQUALVERIFY,
- // OP_TUCK(_, acceptedScaledTruncTokens);
+ // OP_TUCK(_, acceptedScaledtruncAtoms);
OP_TUCK,
// # Calculate tokens left over after purchase
- // leftoverScaledTruncTokens = OP_SUB(scaledTruncTokens,
- // acceptedScaledTruncTokens)
+ // leftoverScaledtruncAtoms = OP_SUB(scaledtruncAtoms,
+ // acceptedScaledtruncAtoms)
OP_SUB,
// # Get token intro from consts
@@ -763,10 +758,10 @@
// OP_DROP(agoraIntro)
OP_DROP,
- // OP_OVER(leftoverScaledTruncTokens, _)
+ // OP_OVER(leftoverScaledtruncAtoms, _)
OP_OVER,
- // hasLeftover = OP_0NOTEQUAL(leftoverScaledTruncTokens)
+ // hasLeftover = OP_0NOTEQUAL(leftoverScaledtruncAtoms)
// # (SCRIPT_VERIFY_MINIMALIF is not on eCash, but better be safe)
OP_0NOTEQUAL,
@@ -779,19 +774,19 @@
// outputsOpreturnPad = OP_CAT(opreturnOutput, truncPaddingSats)
OP_CAT,
- // OP_ROT(acceptedScaledTruncTokens, _, _)
+ // OP_ROT(acceptedScaledtruncAtoms, _, _)
OP_ROT,
// # We divide rounding up when we calc sats, so add divisor - 1
- pushNumberOp(this.scaledTruncTokensPerTruncSat - 1n),
+ pushNumberOp(this.scaledTruncAtomsPerTruncSat - 1n),
OP_ADD,
// # Price (scaled + truncated)
- pushNumberOp(this.scaledTruncTokensPerTruncSat),
+ pushNumberOp(this.scaledTruncAtomsPerTruncSat),
// # Calculate how many (truncated) sats the user has to pay
- // requiredTruncSats = OP_DIV(acceptedScaledTruncTokens,
- // scaledTruncTokensPerTruncSat)
+ // requiredTruncSats = OP_DIV(acceptedScaledtruncAtoms,
+ // scaledTruncAtomsPerTruncSat)
OP_DIV,
// # Build the required sats with the correct byte length
@@ -809,9 +804,9 @@
// # Build maker's P2PKH script
// p2pkhIntro = [25, OP_DUP, OP_HASH160, 20]
pushBytesOp(new Uint8Array([25, OP_DUP, OP_HASH160, 20])),
- // OP_2OVER(consts, leftoverScaledTruncTokens, _, _);
+ // OP_2OVER(consts, leftoverScaledtruncAtoms, _, _);
OP_2OVER,
- // OP_DROP(leftoverScaledTruncTokens);
+ // OP_DROP(leftoverScaledtruncAtoms);
OP_DROP,
// # Slice out pubkey from the consts (always the last 33 bytes)
// pubkeyIdx = consts.length - 33
@@ -838,7 +833,7 @@
// # Build loopback P2SH, will receive the leftover tokens with
// # a Script with the same terms.
- // OP_TUCK(_, leftoverScaledTruncTokens);
+ // OP_TUCK(_, leftoverScaledtruncAtoms);
OP_TUCK,
// P2SH has dust sats
pushNumberOp(this.dustAmount),
@@ -851,7 +846,7 @@
OP_CAT,
// # Build the new redeem script; same terms but different
- // # scaledTruncTokens8Le.
+ // # scaledtruncAtoms8Le.
// # Build opcode to push consts. Sometimes they get long and we
// # need OP_PUSHDATA1.
@@ -868,19 +863,19 @@
),
),
- // OP_2SWAP(consts, leftoverScaledTruncTokens, _, _)
+ // OP_2SWAP(consts, leftoverScaledtruncAtoms, _, _)
OP_2SWAP,
OP_8,
// OP_TUCK(_, 8)
OP_TUCK,
- // leftoverScaledTruncTokens8le =
- // OP_NUM2BIN(leftoverScaledTruncTokens, 8)
+ // leftoverScaledtruncAtoms8le =
+ // OP_NUM2BIN(leftoverScaledtruncAtoms, 8)
OP_NUM2BIN,
- // pushLeftoverScaledTruncTokens8le =
- // OP_CAT(8, leftoverScaledTruncTokens8le)
+ // pushLeftoverScaledtruncAtoms8le =
+ // OP_CAT(8, leftoverScaledtruncAtoms8le)
OP_CAT,
// constsPushLeftover =
- // OP_CAT(consts, pushLeftoverScaledTruncTokens8le)
+ // OP_CAT(consts, pushLeftoverScaledtruncAtoms8le)
OP_CAT,
// # The two ops that push consts plus amount
// pushState = OP_CAT(pushConstsOpcode, constsPushLeftover)
@@ -944,9 +939,9 @@
// # Check if we have tokens left over and send them back
// # It is cheaper (in bytes) to build the loopback output and then
// # throw it away if needed than to not build it at all.
- // OP_SWAP(leftoverScaledTruncTokens, _)
+ // OP_SWAP(leftoverScaledtruncAtoms, _)
OP_SWAP,
- // hasLeftover = OP_0NOTEQUAL(leftoverScaledTruncTokens)
+ // hasLeftover = OP_0NOTEQUAL(leftoverScaledtruncAtoms)
OP_0NOTEQUAL,
// OP_NOTIF(hasLeftover)
OP_NOTIF,
@@ -1025,7 +1020,7 @@
// # "Cancel" branch, split out the maker pubkey and verify sig
// # is for the maker pubkey.
- // OP_DROP(scaledTruncTokens8le);
+ // OP_DROP(scaledtruncAtoms8le);
OP_DROP,
// pubkeyIdx = consts.length - 33
pushNumberOp(covenantConsts.length - 33),
@@ -1062,20 +1057,20 @@
OP_8,
// tokenIntro8 = OP_CAT(tokenIntro, 8);
OP_CAT,
- // OP_OVER(leftoverScaledTruncTokens, _)
+ // OP_OVER(leftoverScaledtruncAtoms, _)
OP_OVER,
// # Scale down the scaled leftover amount
- pushNumberOp(this.tokenScaleFactor),
- // leftoverTokensTrunc = OP_DIV(leftoverScaledTruncTokens,
- // tokenScaleFactor)
+ pushNumberOp(this.atomsScaleFactor),
+ // leftoverTokensTrunc = OP_DIV(leftoverScaledtruncAtoms,
+ // atomsScaleFactor)
OP_DIV,
// # Serialize the leftover trunc tokens (overflow-safe)
- ...this._scriptSerTruncTokens(8),
+ ...this._scriptSertruncAtoms(8),
// # SLP uses big-endian, so we have to use OP_REVERSEBYTES
// leftoverTokenTruncBe = OP_REVERSEBYTES(leftoverTokenTruncLe)
OP_REVERSEBYTES,
// # Bytes to un-truncate the leftover tokens
- pushBytesOp(new Uint8Array(this.numTokenTruncBytes)),
+ pushBytesOp(new Uint8Array(this.numAtomsTruncBytes)),
// # Build the actual 8 byte big-endian leftover
// leftoverToken8be = OP_CAT(leftoverTokenTruncBe, untruncatePad);
OP_CAT,
@@ -1091,29 +1086,29 @@
// tokenScript = OP_CAT(tokenScript, 8)
OP_CAT,
// # Get the accepted token amount
- // depthAcceptedScaledTruncTokens =
- // depth_of(acceptedScaledTruncTokens)
+ // depthAcceptedScaledtruncAtoms =
+ // depth_of(acceptedScaledtruncAtoms)
pushNumberOp(2),
- // acceptedScaledTruncTokens =
- // OP_PICK(depthAcceptedScaledTruncTokens)
+ // acceptedScaledtruncAtoms =
+ // OP_PICK(depthAcceptedScaledtruncAtoms)
OP_PICK,
// # Scale down the accepted token amount
- pushNumberOp(this.tokenScaleFactor),
- // acceptedTokensTrunc = OP_DIV(acceptedScaledTruncTokens,
- // tokenScaleFactor)
+ pushNumberOp(this.atomsScaleFactor),
+ // acceptedAtomsTrunc = OP_DIV(acceptedScaledtruncAtoms,
+ // atomsScaleFactor)
OP_DIV,
// # Serialize the accepted token amount (overflow-safe)
- ...this._scriptSerTruncTokens(8),
+ ...this._scriptSertruncAtoms(8),
// # SLP uses big-endian, so we have to use OP_REVERSEBYTES
- // acceptedTokensTruncBe = OP_REVERSEBYTES(acceptedTokensTruncLe);
+ // acceptedAtomsTruncBe = OP_REVERSEBYTES(acceptedAtomsTruncLe);
OP_REVERSEBYTES,
// # Bytes to un-truncate the leftover tokens
- pushBytesOp(new Uint8Array(this.numTokenTruncBytes)),
- // acceptedTokens8be = OP_CAT(acceptedTokensTruncBe, untruncatePad);
+ pushBytesOp(new Uint8Array(this.numAtomsTruncBytes)),
+ // acceptedAtoms8be = OP_CAT(acceptedAtomsTruncBe, untruncatePad);
OP_CAT,
// # Finished SLP token script
- // tokenScript = OP_CAT(tokenScript, acceptedTokens8be);
+ // tokenScript = OP_CAT(tokenScript, acceptedAtoms8be);
OP_CAT,
// # Build OP_RETURN script with 0u64 and size prepended
@@ -1154,27 +1149,27 @@
// # Append the number of token amounts + the first 0 amount +
// # un-truncate padding for the 2nd output.
// # We meld these three ops into one by using OP_NUM2BIN using
- // # 7 + numTokenTruncBytes bytes, which gives us the number of
+ // # 7 + numAtomsTruncBytes bytes, which gives us the number of
// # amounts in the first byte, followed by 6 zero bytes for the
- // # first output, and then numTokenTruncBytes bytes for the
+ // # first output, and then numAtomsTruncBytes bytes for the
// # un-truncate padding.
- pushNumberOp(7 + this.numTokenTruncBytes),
+ pushNumberOp(7 + this.numAtomsTruncBytes),
// tokenAmounts1 = OP_NUM2BIN(numTokenAmounts, size)
OP_NUM2BIN,
// tokenIntro = OP_CAT(tokenIntro, tokenAmounts1)
OP_CAT,
- // OP_OVER(leftoverScaledTruncTokens, __)
+ // OP_OVER(leftoverScaledtruncAtoms, __)
OP_OVER,
// # Scale down the scaled leftover amount
- pushNumberOp(this.tokenScaleFactor),
- // nextSerValue = OP_DIV(leftoverScaledTruncTokens,
- // tokenScaleFactor)
+ pushNumberOp(this.atomsScaleFactor),
+ // nextSerValue = OP_DIV(leftoverScaledtruncAtoms,
+ // atomsScaleFactor)
OP_DIV,
// # Serialize size for leftoverTokensTrunc, and also already add the un-truncate padding for the 3rd amount
// # Combining these two ops also doesn't require us to serialize overflow-aware
pushNumberOp(
- 6 /*- this.numTokenTruncBytes + this.numTokenTruncBytes*/,
+ 6 /*- this.numAtomsTruncBytes + this.numAtomsTruncBytes*/,
),
OP_ELSE,
@@ -1183,8 +1178,8 @@
// # un-truncate padding for the 3rd output.
// nextSerValue = 2
OP_2,
- // serializeSize = 7 + numTokenTruncBytes
- pushNumberOp(7 + this.numTokenTruncBytes),
+ // serializeSize = 7 + numAtomsTruncBytes
+ pushNumberOp(7 + this.numAtomsTruncBytes),
OP_ENDIF,
@@ -1198,23 +1193,23 @@
// tokenSection1Pad = OP_CAT(tokenIntro, tokenAmounts2)
OP_CAT,
- // depthAcceptedScaledTruncTokens =
- // depth_of(acceptedScaledTruncTokens)
+ // depthAcceptedScaledtruncAtoms =
+ // depth_of(acceptedScaledtruncAtoms)
pushNumberOp(2),
- // acceptedScaledTruncTokens =
- // OP_PICK(depthAcceptedScaledTruncTokens)
+ // acceptedScaledtruncAtoms =
+ // OP_PICK(depthAcceptedScaledtruncAtoms)
OP_PICK,
// # Scale down the accepted token amount
- pushNumberOp(this.tokenScaleFactor),
- // acceptedTokensTrunc = OP_DIV(acceptedScaledTruncTokens,
- // tokenScaleFactor)
+ pushNumberOp(this.atomsScaleFactor),
+ // acceptedAtomsTrunc = OP_DIV(acceptedScaledtruncAtoms,
+ // atomsScaleFactor)
OP_DIV,
// # Serialize accepted token amount (overflow-safe)
- ...this._scriptSerTruncTokens(6),
+ ...this._scriptSertruncAtoms(6),
// # Finished token section
- // tokenSection = OP_CAT(tokenSection1Pad, acceptedTokensTruncLe);
+ // tokenSection = OP_CAT(tokenSection1Pad, acceptedAtomsTruncLe);
OP_CAT,
// Turn token section into a pushdata op
@@ -1259,9 +1254,9 @@
];
}
- private _scriptSerTruncTokens(numSerBytes: number): Op[] {
+ private _scriptSertruncAtoms(numSerBytes: number): Op[] {
// Serialize the number on the stack using the configured truncation
- if (this.numTokenTruncBytes === numSerBytes - 3) {
+ if (this.numAtomsTruncBytes === numSerBytes - 3) {
// Edge case where we only have 3 bytes space to serialize the
// number, but if the MSB of the number is set, OP_NUM2BIN will
// serialize using 4 bytes (with the last byte being just 0x00),
@@ -1278,7 +1273,7 @@
// If we have 4 or more bytes space, we can always serialize
// just using normal OP_NUM2BIN.
return [
- pushNumberOp(numSerBytes - this.numTokenTruncBytes),
+ pushNumberOp(numSerBytes - this.numAtomsTruncBytes),
OP_NUM2BIN,
];
}
@@ -1345,7 +1340,7 @@
export const AgoraPartialSignatory = (
params: AgoraPartial,
- acceptedTruncTokens: bigint,
+ acceptedtruncAtoms: bigint,
covenantSk: Uint8Array,
covenantPk: Uint8Array,
): Signatory => {
@@ -1353,7 +1348,7 @@
const preimage = input.sigHashPreimage(ALL_ANYONECANPAY_BIP143, 0);
const sighash = sha256d(preimage.bytes);
const covenantSig = ecc.schnorrSign(covenantSk, sighash);
- const hasLeftover = params.truncTokens > acceptedTruncTokens;
+ const hasLeftover = params.truncAtoms > acceptedtruncAtoms;
const buyerOutputIdx = hasLeftover ? 3 : 2;
const buyerOutputs = input.unsignedTx.tx.outputs.slice(buyerOutputIdx);
@@ -1374,7 +1369,7 @@
pushBytesOp(covenantSig),
pushBytesOp(buyerOutputsSer),
pushBytesOp(preimage.bytes.slice(4 + 32 + 32)), // preimage_4_10
- pushNumberOp(acceptedTruncTokens * params.tokenScaleFactor),
+ pushNumberOp(acceptedtruncAtoms * params.atomsScaleFactor),
OP_1, // is_purchase = true
pushBytesOp(preimage.redeemScript.bytecode),
]);
diff --git a/modules/ecash-agora/tests/oneshot.test.ts b/modules/ecash-agora/tests/oneshot.test.ts
--- a/modules/ecash-agora/tests/oneshot.test.ts
+++ b/modules/ecash-agora/tests/oneshot.test.ts
@@ -36,7 +36,7 @@
use(chaiAsPromised);
const NUM_COINS = 500;
-const COIN_VALUE = 100000;
+const COIN_VALUE = 100000n;
const SLP_TOKEN_TYPE_NFT1_GROUP = {
number: 0x81,
@@ -92,7 +92,7 @@
const buyerPkh = shaRmd160(buyerPk);
const buyerP2pkh = Script.p2pkh(buyerPkh);
- await runner.sendToScript(50000, sellerP2pkh);
+ await runner.sendToScript(50000n, sellerP2pkh);
const utxos = await chronik.script('p2pkh', toHex(sellerPkh)).utxos();
expect(utxos.utxos.length).to.equal(1);
@@ -105,7 +105,7 @@
input: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
outputScript: sellerP2pkh,
},
},
@@ -114,17 +114,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: slpGenesis(
SLP_NFT1_GROUP,
{
tokenTicker: 'SLP NFT1 GROUP TOKEN',
decimals: 4,
},
- 1,
+ 1n,
),
},
- { value: 10000, script: sellerP2pkh },
+ { sats: 10000n, script: sellerP2pkh },
],
});
const genesisTx = txBuildGenesisGroup.sign();
@@ -154,7 +154,7 @@
outIdx: 1,
},
signData: {
- value: 10000,
+ sats: 10000n,
outputScript: sellerP2pkh,
},
},
@@ -163,17 +163,17 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: slpGenesis(
SLP_NFT1_CHILD,
{
tokenTicker: 'SLP NFT1 CHILD TOKEN',
decimals: 0,
},
- 1,
+ 1n,
),
},
- { value: 8000, script: sellerP2pkh },
+ { sats: 8000n, script: sellerP2pkh },
],
});
const genesisChildTx = txBuildGenesisChild.sign();
@@ -214,10 +214,10 @@
// covenant that asks for 80000 sats
const enforcedOutputs: TxOutput[] = [
{
- value: BigInt(0),
- script: slpSend(childTokenId, SLP_NFT1_CHILD, [0, 1]),
+ sats: BigInt(0),
+ script: slpSend(childTokenId, SLP_NFT1_CHILD, [0n, 1n]),
},
- { value: BigInt(80000), script: sellerP2pkh },
+ { sats: BigInt(80000), script: sellerP2pkh },
];
const agoraOneshot = new AgoraOneshot({
enforcedOutputs,
@@ -234,7 +234,7 @@
outIdx: 1,
},
signData: {
- value: 8000,
+ sats: 8000n,
outputScript: sellerP2pkh,
},
},
@@ -243,10 +243,10 @@
],
outputs: [
{
- value: 0,
- script: slpSend(childTokenId, SLP_NFT1_CHILD, [1]),
+ sats: 0n,
+ script: slpSend(childTokenId, SLP_NFT1_CHILD, [1n]),
},
- { value: 7000, script: agoraAdP2sh },
+ { sats: 7000n, script: agoraAdP2sh },
],
});
const adSetupTx = txBuildAdSetup.sign();
@@ -264,7 +264,7 @@
outIdx: 1,
},
signData: {
- value: 7000,
+ sats: 7000n,
redeemScript: agoraAdScript,
},
},
@@ -273,10 +273,10 @@
],
outputs: [
{
- value: 0,
- script: slpSend(childTokenId, SLP_NFT1_CHILD, [1]),
+ sats: 0n,
+ script: slpSend(childTokenId, SLP_NFT1_CHILD, [1n]),
},
- { value: 546, script: agoraP2sh },
+ { sats: 546n, script: agoraP2sh },
],
});
const offerTx = txBuildOffer.sign();
@@ -290,7 +290,7 @@
prevOut: offerOutpoint,
signData: {
redeemScript: agoraScript,
- value: 546,
+ sats: 546n,
},
};
@@ -305,7 +305,7 @@
token: {
tokenId: childTokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_CHILD,
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
status: 'OPEN',
@@ -346,7 +346,7 @@
[expectedOffer],
);
- // Use LOKAD ID enpoint + parseAgoraTx to find offers
+ // Use LOKAD ID endpoint + parseAgoraTx to find offers
const agoraTxs = (
await chronik.lokadId(toHex(AGORA_LOKAD_ID)).history()
).txs;
@@ -369,7 +369,7 @@
});
// 6. Buyer attempts to buy the NFT using 79999 sats, which is rejected
- const buyerSatsTxid = await runner.sendToScript(90000, buyerP2pkh);
+ const buyerSatsTxid = await runner.sendToScript(90000n, buyerP2pkh);
const txBuildAcceptFail = new TxBuilder({
version: 2,
inputs: [
@@ -388,7 +388,7 @@
outIdx: 0,
},
signData: {
- value: 90000,
+ sats: 90000n,
outputScript: buyerP2pkh,
},
},
@@ -397,12 +397,12 @@
],
outputs: [
{
- value: 0,
- script: slpSend(childTokenId, SLP_NFT1_CHILD, [0, 1]),
+ sats: 0n,
+ script: slpSend(childTokenId, SLP_NFT1_CHILD, [0n, 1n]),
},
// failure: one sat missing
- { value: 79999, script: sellerP2pkh },
- { value: 546, script: buyerP2pkh },
+ { sats: 79999n, script: sellerP2pkh },
+ { sats: 546n, script: buyerP2pkh },
],
});
@@ -415,10 +415,10 @@
// with a new advertisement
const newEnforcedOutputs: TxOutput[] = [
{
- value: BigInt(0),
- script: slpSend(childTokenId, SLP_NFT1_CHILD, [0, 1]),
+ sats: BigInt(0),
+ script: slpSend(childTokenId, SLP_NFT1_CHILD, [0n, 1n]),
},
- { value: BigInt(70000), script: sellerP2pkh },
+ { sats: BigInt(70000), script: sellerP2pkh },
];
const newAgoraOneshot = new AgoraOneshot({
enforcedOutputs: newEnforcedOutputs,
@@ -427,7 +427,7 @@
const newAgoraScript = newAgoraOneshot.script();
const newAgoraP2sh = Script.p2sh(shaRmd160(newAgoraScript.bytecode));
const newAgoraAdScript = newAgoraOneshot.adScript();
- const cancelFeeSats = 600;
+ const cancelFeeSats = 600n;
const newAdSetupTxid = await runner.sendToScript(
cancelFeeSats,
Script.p2sh(shaRmd160(newAgoraAdScript.bytecode)),
@@ -441,7 +441,7 @@
outIdx: 0,
},
signData: {
- value: cancelFeeSats,
+ sats: cancelFeeSats,
redeemScript: newAgoraAdScript,
},
},
@@ -453,13 +453,13 @@
recipientScript: newAgoraP2sh,
extraInputs: [offer1AdInput],
}),
- ).to.equal(BigInt(cancelFeeSats));
+ ).to.equal(cancelFeeSats);
const cancelTx = offer1.cancelTx({
cancelSk: sellerSk,
fuelInputs: [offer1AdInput],
recipientScript: newAgoraP2sh,
});
- expect(cancelTx.serSize()).to.equal(cancelFeeSats);
+ expect(cancelTx.serSize()).to.equal(Number(cancelFeeSats));
const newOfferTxid = (await chronik.broadcastTx(cancelTx.ser())).txid;
const newOfferOutpoint: OutPoint = {
txid: newOfferTxid,
@@ -469,7 +469,7 @@
prevOut: newOfferOutpoint,
signData: {
redeemScript: newAgoraScript,
- value: 546,
+ sats: 546n,
},
};
@@ -572,7 +572,7 @@
token: {
tokenId: childTokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_CHILD,
- amount: '1',
+ atoms: 1n,
isMintBaton: false,
},
status: 'OPEN',
@@ -620,8 +620,8 @@
// 9. Buyer successfully accepts advertized NFT offer for 70000 sats
const offer2 = (await agora.activeOffersByTokenId(childTokenId))[0];
expect(offer2.askedSats()).to.equal(70000n);
- const acceptFeeSats = 740;
- const acceptSats = acceptFeeSats + Number(offer2.askedSats());
+ const acceptFeeSats = 740n;
+ const acceptSats = acceptFeeSats + offer2.askedSats();
const acceptSatsTxid = await runner.sendToScript(
acceptSats,
buyerP2pkh,
@@ -633,7 +633,7 @@
outIdx: 0,
},
signData: {
- value: acceptSats,
+ sats: acceptSats,
outputScript: buyerP2pkh,
},
},
@@ -644,14 +644,14 @@
recipientScript: buyerP2pkh,
extraInputs: [offer2AcceptInput],
}),
- ).to.equal(BigInt(acceptFeeSats));
+ ).to.equal(acceptFeeSats);
const acceptSuccessTx = offer2.acceptTx({
covenantSk: buyerSk,
covenantPk: buyerPk,
fuelInputs: [offer2AcceptInput],
recipientScript: buyerP2pkh,
});
- expect(acceptSuccessTx.serSize()).to.equal(acceptFeeSats);
+ expect(acceptSuccessTx.serSize()).to.equal(Number(acceptFeeSats));
const acceptPromise = listenNext();
const acceptSuccessTxid = (
await chronik.broadcastTx(acceptSuccessTx.ser())
@@ -692,10 +692,10 @@
{
...newExpectedOffer,
takenInfo: {
- satoshisPaid: 70000,
+ sats: 70000n,
takerScriptHex:
'76a914531260aa2a199e228c537dfa42c82bea2c7c1f4d88ac',
- baseTokens: '1',
+ atoms: 1n,
},
status: 'TAKEN',
},
diff --git a/modules/ecash-agora/tests/partial-helper-alp.ts b/modules/ecash-agora/tests/partial-helper-alp.ts
--- a/modules/ecash-agora/tests/partial-helper-alp.ts
+++ b/modules/ecash-agora/tests/partial-helper-alp.ts
@@ -7,7 +7,7 @@
ALL_BIP143,
alpGenesis,
alpSend,
- Amount,
+ Atoms,
Ecc,
emppScript,
P2PKHSignatory,
@@ -25,7 +25,7 @@
export function makeAlpGenesis(params: {
tokenType: number;
fuelInput: TxBuilderInput;
- tokenAmounts: Amount[];
+ tokenAmounts: Atoms[];
extraOutputs: TxBuilderOutput[];
}) {
const { tokenType, fuelInput } = params;
@@ -33,7 +33,7 @@
inputs: [fuelInput],
outputs: [
{
- value: 0,
+ sats: 0n,
script: emppScript([
alpGenesis(
tokenType,
@@ -65,17 +65,16 @@
const makerPkh = shaRmd160(makerPk);
const makerP2pkh = Script.p2pkh(makerPkh);
- const genesisOutputSats = 2000;
+ const genesisOutputSats = 2000n;
const genesisTx = makeAlpGenesis({
tokenType: agoraPartial.tokenType,
fuelInput,
- tokenAmounts: [agoraPartial.offeredTokens()],
- extraOutputs: [{ value: genesisOutputSats, script: makerP2pkh }],
+ tokenAmounts: [agoraPartial.offeredAtoms()],
+ extraOutputs: [{ sats: genesisOutputSats, script: makerP2pkh }],
});
const genesisTxid = (await chronik.broadcastTx(genesisTx.ser())).txid;
const tokenId = genesisTxid;
agoraPartial.tokenId = tokenId;
-
expect((await chronik.token(tokenId)).tokenType.number).to.equal(
agoraPartial.tokenType,
);
@@ -91,7 +90,7 @@
outIdx: 1,
},
signData: {
- value: genesisOutputSats,
+ sats: genesisOutputSats,
outputScript: makerP2pkh,
},
},
@@ -100,15 +99,15 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: emppScript([
agoraPartial.adPushdata(),
alpSend(tokenId, agoraPartial.tokenType, [
- agoraPartial.offeredTokens(),
+ agoraPartial.offeredAtoms(),
]),
]),
},
- { value: 546, script: agoraP2sh },
+ { sats: 546n, script: agoraP2sh },
],
});
const offerTx = txBuildOffer.sign();
@@ -127,7 +126,7 @@
offer: AgoraOffer;
takerSk: Uint8Array;
takerInput: TxBuilderInput;
- acceptedTokens: bigint;
+ acceptedAtoms: bigint;
allowUnspendable?: boolean;
}) {
const takerSk = params.takerSk;
@@ -139,7 +138,7 @@
covenantPk: takerPk,
fuelInputs: [params.takerInput],
recipientScript: takerP2pkh,
- acceptedTokens: params.acceptedTokens,
+ acceptedAtoms: params.acceptedAtoms,
allowUnspendable: params.allowUnspendable,
});
const acceptTxid = (await params.chronik.broadcastTx(acceptTx.ser())).txid;
diff --git a/modules/ecash-agora/tests/partial-helper-slp.ts b/modules/ecash-agora/tests/partial-helper-slp.ts
--- a/modules/ecash-agora/tests/partial-helper-slp.ts
+++ b/modules/ecash-agora/tests/partial-helper-slp.ts
@@ -30,22 +30,22 @@
const makerPkh = shaRmd160(makerPk);
const makerP2pkh = Script.p2pkh(makerPkh);
- const genesisOutputSats = 2000;
+ const genesisOutputSats = 2000n;
const txBuildGenesisGroup = new TxBuilder({
inputs: [fuelInput],
outputs: [
{
- value: 0,
+ sats: 0n,
script: slpGenesis(
agoraPartial.tokenType,
{
tokenTicker: `SLP token type ${agoraPartial.tokenType}`,
decimals: 4,
},
- agoraPartial.offeredTokens(),
+ agoraPartial.offeredAtoms(),
),
},
- { value: genesisOutputSats, script: makerP2pkh },
+ { sats: genesisOutputSats, script: makerP2pkh },
],
});
const genesisTx = txBuildGenesisGroup.sign();
@@ -69,7 +69,7 @@
outIdx: 1,
},
signData: {
- value: genesisOutputSats,
+ sats: genesisOutputSats,
outputScript: makerP2pkh,
},
},
@@ -78,12 +78,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: slpSend(tokenId, agoraPartial.tokenType, [
- agoraPartial.offeredTokens(),
+ agoraPartial.offeredAtoms(),
]),
},
- { value: adSetupSats, script: agoraAdP2sh },
+ { sats: adSetupSats, script: agoraAdP2sh },
],
});
const adSetupTx = txBuildAdSetup.sign();
@@ -100,7 +100,7 @@
outIdx: 1,
},
signData: {
- value: adSetupSats,
+ sats: adSetupSats,
redeemScript: agoraAdScript,
},
},
@@ -109,12 +109,12 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: slpSend(tokenId, agoraPartial.tokenType, [
- agoraPartial.offeredTokens(),
+ agoraPartial.offeredAtoms(),
]),
},
- { value: 546, script: agoraP2sh },
+ { sats: 546n, script: agoraP2sh },
],
});
const offerTx = txBuildOffer.sign();
@@ -133,7 +133,7 @@
offer: AgoraOffer;
takerSk: Uint8Array;
takerInput: TxBuilderInput;
- acceptedTokens: bigint;
+ acceptedAtoms: bigint;
allowUnspendable?: boolean;
}) {
const takerSk = params.takerSk;
@@ -145,7 +145,7 @@
covenantPk: takerPk,
fuelInputs: [params.takerInput],
recipientScript: takerP2pkh,
- acceptedTokens: params.acceptedTokens,
+ acceptedAtoms: params.acceptedAtoms,
allowUnspendable: params.allowUnspendable,
});
const acceptTxid = (await params.chronik.broadcastTx(acceptTx.ser())).txid;
diff --git a/modules/ecash-agora/tests/partial.alp.bigsats.test.ts b/modules/ecash-agora/tests/partial.alp.bigsats.test.ts
--- a/modules/ecash-agora/tests/partial.alp.bigsats.test.ts
+++ b/modules/ecash-agora/tests/partial.alp.bigsats.test.ts
@@ -34,7 +34,7 @@
dustAmount: DEFAULT_DUST_LIMIT,
};
-const BIGSATS = 149 * 5000000000 - 20000;
+const BIGSATS = BigInt(149 * 5000000000 - 20000);
const ecc = new Ecc();
@@ -51,17 +51,17 @@
async function makeBuilderInputs(
runner: TestRunner,
- values: number[],
+ values: bigint[],
): Promise<TxBuilderInput[]> {
const txid = await runner.sendToScript(values, makerScript);
- return values.map((value, outIdx) => ({
+ return values.map((sats, outIdx) => ({
input: {
prevOut: {
txid,
outIdx,
},
signData: {
- value,
+ sats,
outputScript: makerScript,
},
},
@@ -76,7 +76,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -85,43 +85,43 @@
it('AgoraPartial ALP 7450M XEC vs 2p48-1 full accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 0xffffffffffffn,
- priceNanoSatsPerToken: 2600000n, // scaled to use the XEC
+ offeredAtoms: 0xffffffffffffn,
+ priceNanoSatsPerAtom: 2600000n, // scaled to use the XEC
makerPk: makerPk,
- minAcceptedTokens: 0xffffffffn,
+ minAcceptedAtoms: 0xffffffffn,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0xffffffn,
- numTokenTruncBytes: 3,
- tokenScaleFactor: 127n,
- scaledTruncTokensPerTruncSat: 190n,
+ truncAtoms: 0xffffffn,
+ numAtomsTruncBytes: 3,
+ atomsScaleFactor: 127n,
+ scaledTruncAtomsPerTruncSat: 190n,
numSatsTruncBytes: 2,
makerPk,
- minAcceptedScaledTruncTokens: 32511n,
+ minAcceptedScaledTruncAtoms: 32511n,
...BASE_PARAMS_ALP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 204,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0xffffff000000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0xffffff000000n);
expect(agoraPartial.askedSats(0x1000000n)).to.equal(65536n);
- expect(agoraPartial.priceNanoSatsPerToken(0x1000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x1000000n)).to.equal(
3906250n,
);
expect(agoraPartial.askedSats(0xffffff000000n)).to.equal(734936694784n);
- expect(agoraPartial.priceNanoSatsPerToken(0xffffff000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0xffffff000000n)).to.equal(
2611019n,
);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(2611019n);
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(2611019n);
const offer = await makeAlpOffer({
chronik,
@@ -134,7 +134,7 @@
offer,
takerSk,
takerInput,
- acceptedTokens: agoraPartial.offeredTokens(),
+ acceptedAtoms: agoraPartial.offeredAtoms(),
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -144,23 +144,21 @@
emppScript([
agoraPartial.adPushdata(),
alpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
- agoraPartial.offeredTokens(),
+ 0n,
+ agoraPartial.offeredAtoms(),
]),
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(734936694784);
+ expect(acceptTx.outputs[1].sats).to.equal(734936694784n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is tokens to taker
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- 0xffffff000000n.toString(),
- );
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(0xffffff000000n);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript).to.equal(takerScriptHex);
});
});
@@ -168,12 +166,11 @@
describe('AgoraPartial 7450M XEC vs 2p48-1 small accept', () => {
let runner: TestRunner;
let chronik: ChronikClient;
- let ecc: Ecc;
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -182,44 +179,44 @@
it('AgoraPartial ALP 7450M XEC vs 2p48-1 small accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 0xffffffffffffn,
- priceNanoSatsPerToken: 30000000000000n, // scaled to use the XEC
+ offeredAtoms: 0xffffffffffffn,
+ priceNanoSatsPerAtom: 30000000000000n, // scaled to use the XEC
makerPk,
- minAcceptedTokens: 0x1000000n,
+ minAcceptedAtoms: 0x1000000n,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0xffffffn,
- numTokenTruncBytes: 3,
- tokenScaleFactor: 128n,
- scaledTruncTokensPerTruncSat: 1n,
+ truncAtoms: 0xffffffn,
+ numAtomsTruncBytes: 3,
+ atomsScaleFactor: 128n,
+ scaledTruncAtomsPerTruncSat: 1n,
numSatsTruncBytes: 4,
makerPk,
- minAcceptedScaledTruncTokens: 128n,
+ minAcceptedScaledTruncAtoms: 128n,
...BASE_PARAMS_ALP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 205,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0xffffff000000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0xffffff000000n);
expect(agoraPartial.askedSats(0x1000000n)).to.equal(549755813888n);
- expect(agoraPartial.priceNanoSatsPerToken(0x1000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x1000000n)).to.equal(
32768000000000n,
);
expect(agoraPartial.askedSats(0xffffff000000n)).to.equal(
9223371487098961920n,
);
- expect(agoraPartial.priceNanoSatsPerToken(0xffffff000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0xffffff000000n)).to.equal(
32768000000000n,
);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(32768000000000n);
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(32768000000000n);
const offer = await makeAlpOffer({
chronik,
@@ -227,13 +224,13 @@
makerSk,
fuelInput,
});
- const acceptedTokens = 0x1000000n;
+ const acceptedAtoms = 0x1000000n;
const acceptTxid = await takeAlpOffer({
chronik,
offer,
takerSk,
takerInput,
- acceptedTokens,
+ acceptedAtoms,
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -244,30 +241,28 @@
emppScript([
agoraPartial.adPushdata(),
alpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
- agoraPartial.offeredTokens() - acceptedTokens,
- acceptedTokens,
+ 0n,
+ agoraPartial.offeredAtoms() - acceptedAtoms,
+ acceptedAtoms,
]),
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(549755813888);
+ expect(acceptTx.outputs[1].sats).to.equal(549755813888n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is back to the P2SH Script
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- (agoraPartial.offeredTokens() - acceptedTokens).toString(),
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(
+ agoraPartial.offeredAtoms() - acceptedAtoms,
);
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript.slice(0, 4)).to.equal('a914');
// 3rd output is tokens to taker
- expect(acceptTx.outputs[3].token?.amount).to.equal(
- acceptedTokens.toString(),
- );
- expect(acceptTx.outputs[3].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[3].token?.atoms).to.equal(acceptedAtoms);
+ expect(acceptTx.outputs[3].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[3].outputScript).to.equal(takerScriptHex);
});
});
@@ -279,7 +274,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -288,42 +283,42 @@
it('AgoraPartial ALP 7450M XEC vs 2p47-1 full accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 0x7fffffffffffn,
- priceNanoSatsPerToken: 5000000n, // scaled to use the XEC
+ offeredAtoms: 0x7fffffffffffn,
+ priceNanoSatsPerAtom: 5000000n, // scaled to use the XEC
makerPk: makerPk,
- minAcceptedTokens: 0xffffffffn,
+ minAcceptedAtoms: 0xffffffffn,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0x7fffff38n,
- numTokenTruncBytes: 2,
- tokenScaleFactor: 1n,
- scaledTruncTokensPerTruncSat: 200n,
+ truncAtoms: 0x7fffff38n,
+ numAtomsTruncBytes: 2,
+ atomsScaleFactor: 1n,
+ scaledTruncAtomsPerTruncSat: 200n,
numSatsTruncBytes: 2,
makerPk,
- minAcceptedScaledTruncTokens: 0xffffn,
+ minAcceptedScaledTruncAtoms: 0xffffn,
...BASE_PARAMS_ALP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 199,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0x7fffff380000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0x7fffff380000n);
expect(agoraPartial.askedSats(0x10000n)).to.equal(65536n);
- expect(agoraPartial.priceNanoSatsPerToken(0x10000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x10000n)).to.equal(
1000000000n,
);
expect(agoraPartial.askedSats(0x7fffff380000n)).to.equal(703687426048n);
- expect(agoraPartial.priceNanoSatsPerToken(0x7fffff380000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x7fffff380000n)).to.equal(
5000000n,
);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(5000000n);
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(5000000n);
const offer = await makeAlpOffer({
chronik,
@@ -336,7 +331,7 @@
offer,
takerSk,
takerInput,
- acceptedTokens: agoraPartial.offeredTokens(),
+ acceptedAtoms: agoraPartial.offeredAtoms(),
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -347,23 +342,23 @@
emppScript([
agoraPartial.adPushdata(),
alpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
- agoraPartial.offeredTokens(),
+ 0n,
+ agoraPartial.offeredAtoms(),
]),
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(703687426048);
+ expect(acceptTx.outputs[1].sats).to.equal(703687426048n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is tokens to taker
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- agoraPartial.offeredTokens().toString(),
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(
+ agoraPartial.offeredAtoms(),
);
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript).to.equal(takerScriptHex);
});
});
@@ -375,7 +370,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -384,44 +379,44 @@
it('AgoraPartial ALP 7450M XEC vs 2p47-1 small accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 0x7fffffffffffn,
- priceNanoSatsPerToken: 32000000000000n,
+ offeredAtoms: 0x7fffffffffffn,
+ priceNanoSatsPerAtom: 32000000000000n,
makerPk,
- minAcceptedTokens: 0x1000000n,
+ minAcceptedAtoms: 0x1000000n,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0x7fffffn,
- numTokenTruncBytes: 3,
- tokenScaleFactor: 256n,
- scaledTruncTokensPerTruncSat: 2n,
+ truncAtoms: 0x7fffffn,
+ numAtomsTruncBytes: 3,
+ atomsScaleFactor: 256n,
+ scaledTruncAtomsPerTruncSat: 2n,
numSatsTruncBytes: 4,
makerPk,
- minAcceptedScaledTruncTokens: 256n,
+ minAcceptedScaledTruncAtoms: 256n,
...BASE_PARAMS_ALP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 205,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0x7fffff000000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0x7fffff000000n);
expect(agoraPartial.askedSats(0x1000000n)).to.equal(549755813888n);
- expect(agoraPartial.priceNanoSatsPerToken(0x1000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x1000000n)).to.equal(
32768000000000n,
);
expect(agoraPartial.askedSats(0x7fffff000000n)).to.equal(
4611685468671574016n,
);
- expect(agoraPartial.priceNanoSatsPerToken(0x7fffff000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x7fffff000000n)).to.equal(
32768000000000n,
);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(32768000000000n);
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(32768000000000n);
const offer = await makeAlpOffer({
chronik,
@@ -429,13 +424,13 @@
makerSk,
fuelInput,
});
- const acceptedTokens = 0x1000000n;
+ const acceptedAtoms = 0x1000000n;
const acceptTxid = await takeAlpOffer({
chronik,
offer,
takerSk,
takerInput,
- acceptedTokens,
+ acceptedAtoms,
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -446,30 +441,28 @@
emppScript([
agoraPartial.adPushdata(),
alpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
- agoraPartial.offeredTokens() - acceptedTokens,
- acceptedTokens,
+ 0n,
+ agoraPartial.offeredAtoms() - acceptedAtoms,
+ acceptedAtoms,
]),
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(549755813888);
+ expect(acceptTx.outputs[1].sats).to.equal(549755813888n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is back to the P2SH Script
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- (agoraPartial.offeredTokens() - acceptedTokens).toString(),
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(
+ agoraPartial.offeredAtoms() - acceptedAtoms,
);
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript.slice(0, 4)).to.equal('a914');
// 3rd output is tokens to taker
- expect(acceptTx.outputs[3].token?.amount).to.equal(
- acceptedTokens.toString(),
- );
- expect(acceptTx.outputs[3].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[3].token?.atoms).to.equal(acceptedAtoms);
+ expect(acceptTx.outputs[3].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[3].outputScript).to.equal(takerScriptHex);
});
});
@@ -481,7 +474,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -490,34 +483,34 @@
it('AgoraPartial ALP 7450M XEC vs 100 full accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 100n,
- priceNanoSatsPerToken: 7123456780n * 1000000000n, // scaled to use the XEC
+ offeredAtoms: 100n,
+ priceNanoSatsPerAtom: 7123456780n * 1000000000n, // scaled to use the XEC
makerPk: makerPk,
- minAcceptedTokens: 1n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 100n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 0x7fff3a28n / 100n,
- scaledTruncTokensPerTruncSat: 50576n,
+ truncAtoms: 100n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 0x7fff3a28n / 100n,
+ scaledTruncAtomsPerTruncSat: 50576n,
numSatsTruncBytes: 3,
makerPk,
- minAcceptedScaledTruncTokens: 0x7fff3a28n / 100n,
+ minAcceptedScaledTruncAtoms: 0x7fff3a28n / 100n,
...BASE_PARAMS_ALP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 215,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(100n);
- expect(agoraPartial.minAcceptedTokens()).to.equal(1n);
+ expect(agoraPartial.offeredAtoms()).to.equal(100n);
+ expect(agoraPartial.minAcceptedAtoms()).to.equal(1n);
expect(agoraPartial.askedSats(1n)).to.equal(7130316800n);
expect(agoraPartial.askedSats(2n)).to.equal(7130316800n * 2n);
expect(agoraPartial.askedSats(3n)).to.equal(7124724394n * 3n + 2n);
@@ -537,7 +530,7 @@
offer,
takerSk,
takerInput,
- acceptedTokens: 100n,
+ acceptedAtoms: 100n,
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -547,21 +540,21 @@
emppScript([
agoraPartial.adPushdata(),
alpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
- agoraPartial.offeredTokens(),
+ 0n,
+ agoraPartial.offeredAtoms(),
]),
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(712360591360);
+ expect(acceptTx.outputs[1].sats).to.equal(712360591360n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is tokens to taker
- expect(acceptTx.outputs[2].token?.amount).to.equal('100');
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(100n);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript).to.equal(takerScriptHex);
});
});
@@ -573,7 +566,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -582,34 +575,34 @@
it('AgoraPartial ALP 7450M XEC vs 100 small accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 100n,
- priceNanoSatsPerToken: 712345678000n * 1000000000n, // scaled to use the XEC
+ offeredAtoms: 100n,
+ priceNanoSatsPerAtom: 712345678000n * 1000000000n, // scaled to use the XEC
makerPk: makerPk,
- minAcceptedTokens: 1n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_ALP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 100n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 0x7ffe05f4n / 100n,
- scaledTruncTokensPerTruncSat: 129471n,
+ truncAtoms: 100n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 0x7ffe05f4n / 100n,
+ scaledTruncAtomsPerTruncSat: 129471n,
numSatsTruncBytes: 4,
makerPk,
- minAcceptedScaledTruncTokens: 0x7ffe05f4n / 100n,
+ minAcceptedScaledTruncAtoms: 0x7ffe05f4n / 100n,
...BASE_PARAMS_ALP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 216,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(100n);
- expect(agoraPartial.minAcceptedTokens()).to.equal(1n);
+ expect(agoraPartial.offeredAtoms()).to.equal(100n);
+ expect(agoraPartial.minAcceptedAtoms()).to.equal(1n);
expect(agoraPartial.askedSats(1n)).to.equal(712964571136n);
expect(agoraPartial.askedSats(10n)).to.equal(7125350744064n);
expect(agoraPartial.askedSats(100n)).to.equal(71236327571456n);
@@ -625,7 +618,7 @@
offer,
takerSk,
takerInput,
- acceptedTokens: 1n,
+ acceptedAtoms: 1n,
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -634,27 +627,27 @@
toHex(
emppScript([
agoraPartial.adPushdata(),
- alpSend(
- agoraPartial.tokenId,
- agoraPartial.tokenType,
- [0, 99, 1],
- ),
+ alpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
+ 0n,
+ 99n,
+ 1n,
+ ]),
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(712964571136);
+ expect(acceptTx.outputs[1].sats).to.equal(712964571136n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is back to the P2SH Script
- expect(acceptTx.outputs[2].token?.amount).to.equal('99');
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(99n);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript.slice(0, 4)).to.equal('a914');
// 3rd output is tokens to taker
- expect(acceptTx.outputs[3].token?.amount).to.equal('1');
- expect(acceptTx.outputs[3].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[3].token?.atoms).to.equal(1n);
+ expect(acceptTx.outputs[3].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[3].outputScript).to.equal(takerScriptHex);
});
});
diff --git a/modules/ecash-agora/tests/partial.alp.test.ts b/modules/ecash-agora/tests/partial.alp.test.ts
--- a/modules/ecash-agora/tests/partial.alp.test.ts
+++ b/modules/ecash-agora/tests/partial.alp.test.ts
@@ -29,7 +29,7 @@
// This test needs a lot of sats
const NUM_COINS = 500;
-const COIN_VALUE = 1100000000;
+const COIN_VALUE = 1100000000n;
const BASE_PARAMS_ALP = {
tokenId: '00'.repeat(32), // filled in later
@@ -55,17 +55,17 @@
let chronik: ChronikClient;
async function makeBuilderInputs(
- values: number[],
+ values: bigint[],
): Promise<TxBuilderInput[]> {
const txid = await runner.sendToScript(values, makerScript);
- return values.map((value, outIdx) => ({
+ return values.map((sats, outIdx) => ({
input: {
prevOut: {
txid,
outIdx,
},
signData: {
- value,
+ sats,
outputScript: makerScript,
},
},
@@ -84,354 +84,354 @@
});
interface TestCase {
- offeredTokens: bigint;
+ offeredAtoms: bigint;
info: string;
- priceNanoSatsPerToken: bigint;
- acceptedTokens: bigint;
- askedSats: number;
+ priceNanoSatsPerAtom: bigint;
+ acceptedAtoms: bigint;
+ askedSats: bigint;
allowUnspendable?: boolean;
}
const TEST_CASES: TestCase[] = [
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1sat/token, full accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 1000n,
- askedSats: 1000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 1000n,
+ askedSats: 1000n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1sat/token, dust accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 546n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 546n,
+ askedSats: 546n,
allowUnspendable: true,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000sat/token, full accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 1000n,
- askedSats: 1000225,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 1000n,
+ askedSats: 1000225n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000sat/token, half accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 500n,
- askedSats: 500113,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 500n,
+ askedSats: 500113n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000sat/token, 1 accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 1n,
- askedSats: 1001,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 1n,
+ askedSats: 1001n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000000sat/token, full accept',
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- acceptedTokens: 1000n,
- askedSats: 1000013824,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ acceptedAtoms: 1000n,
+ askedSats: 1000013824n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000000sat/token, half accept',
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- acceptedTokens: 500n,
- askedSats: 500039680,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ acceptedAtoms: 500n,
+ askedSats: 500039680n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000000sat/token, 1 accept',
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- acceptedTokens: 1n,
- askedSats: 1048576,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ acceptedAtoms: 1n,
+ askedSats: 1048576n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000000000sat/token, 1 accept',
- priceNanoSatsPerToken: 1000000000n * 1000000000n,
- acceptedTokens: 1n,
- askedSats: 1006632960,
+ priceNanoSatsPerAtom: 1000000000n * 1000000000n,
+ acceptedAtoms: 1n,
+ askedSats: 1006632960n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '0.001sat/token, full accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 1000000n,
- askedSats: 1000,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 1000000n,
+ askedSats: 1000n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1sat/token, full accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 1000000n,
- askedSats: 1000000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 1000000n,
+ askedSats: 1000000n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1sat/token, half accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 500000n,
- askedSats: 500000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 500000n,
+ askedSats: 500000n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1sat/token, dust accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 546n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 546n,
+ askedSats: 546n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1000sat/token, full accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 999936n,
- askedSats: 999948288,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 999936n,
+ askedSats: 999948288n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1000sat/token, half accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 499968n,
- askedSats: 499974144,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 499968n,
+ askedSats: 499974144n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1000sat/token, 256 accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 256n,
- askedSats: 262144,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 256n,
+ askedSats: 262144n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1000000sat/token, 1024 accept',
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- acceptedTokens: 1024n,
- askedSats: 1040187392,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ acceptedAtoms: 1024n,
+ askedSats: 1040187392n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1000000sat/token, 256 accept',
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- acceptedTokens: 256n,
- askedSats: 268435456,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ acceptedAtoms: 256n,
+ askedSats: 268435456n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '0.001sat/token, full accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 1000000000n,
- askedSats: 1000000,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 1000000000n,
+ askedSats: 1000000n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '0.001sat/token, half accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 500000000n,
- askedSats: 500000,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 500000000n,
+ askedSats: 500000n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '0.001sat/token, dust accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 546000n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 546000n,
+ askedSats: 546n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '1sat/token, full accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 1000000000n,
- askedSats: 1000000000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 1000000000n,
+ askedSats: 1000000000n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '1sat/token, half accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 500000000n,
- askedSats: 500000000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 500000000n,
+ askedSats: 500000000n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '1sat/token, dust accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 546n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 546n,
+ askedSats: 546n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '1000sat/token, 983040 accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 983040n,
- askedSats: 989855744,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 983040n,
+ askedSats: 989855744n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '1000sat/token, 65536 accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 65536n,
- askedSats: 67108864,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 65536n,
+ askedSats: 67108864n,
},
{
- offeredTokens: 1000000000000n,
+ offeredAtoms: 1000000000000n,
info: '0.000001sat/token, full accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 999999995904n,
- askedSats: 1000108,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 999999995904n,
+ askedSats: 1000108n,
},
{
- offeredTokens: 1000000000000n,
+ offeredAtoms: 1000000000000n,
info: '0.000001sat/token, half accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 546045952n,
- askedSats: 547,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 546045952n,
+ askedSats: 547n,
},
{
- offeredTokens: 1000000000000n,
+ offeredAtoms: 1000000000000n,
info: '0.001sat/token, full accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 999999995904n,
- askedSats: 1068115230,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 999999995904n,
+ askedSats: 1068115230n,
},
{
- offeredTokens: 1000000000000n,
+ offeredAtoms: 1000000000000n,
info: '0.001sat/token, dust accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 589824n,
- askedSats: 630,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 589824n,
+ askedSats: 630n,
},
{
- offeredTokens: 0x7fffffffffffn,
+ offeredAtoms: 0x7fffffffffffn,
info: '0.000000001sat/token, full accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 0x7fffc4660000n,
- askedSats: 140744,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 0x7fffc4660000n,
+ askedSats: 140744n,
},
{
- offeredTokens: 0x7fffffffffffn,
+ offeredAtoms: 0x7fffffffffffn,
info: '0.000000001sat/token, dust accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 0x7f1e660000n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 0x7f1e660000n,
+ askedSats: 546n,
},
{
- offeredTokens: 0x7fffffffffffn,
+ offeredAtoms: 0x7fffffffffffn,
info: '0.000001sat/token, full accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 0x7ffffff10000n,
- askedSats: 143165576,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 0x7ffffff10000n,
+ askedSats: 143165576n,
},
{
- offeredTokens: 0x7fffffffffffn,
+ offeredAtoms: 0x7fffffffffffn,
info: '0.000001sat/token, dust accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 0x1ffd0000n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 0x1ffd0000n,
+ askedSats: 546n,
},
{
- offeredTokens: 0x7fffffffffffn,
+ offeredAtoms: 0x7fffffffffffn,
info: '0.001sat/token, max sats accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 799999983616n,
- askedSats: 1041666816,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 799999983616n,
+ askedSats: 1041666816n,
},
{
- offeredTokens: 0x7fffffffffffn,
+ offeredAtoms: 0x7fffffffffffn,
info: '0.001sat/token, dust accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 0x70000n,
- askedSats: 768,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 0x70000n,
+ askedSats: 768n,
},
{
- offeredTokens: 0x7fffffffffffn,
+ offeredAtoms: 0x7fffffffffffn,
info: '1sat/token, max sats accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 999948288n,
- askedSats: 999948288,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 999948288n,
+ askedSats: 999948288n,
},
{
- offeredTokens: 0x7fffffffffffn,
+ offeredAtoms: 0x7fffffffffffn,
info: '1sat/token, min accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 0x10000n,
- askedSats: 0x10000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 0x10000n,
+ askedSats: 0x10000n,
},
{
- offeredTokens: 0xffffffffffffn,
+ offeredAtoms: 0xffffffffffffn,
info: '0.000000001sat/token, full accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 0xffffff000000n,
- askedSats: 281505,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 0xffffff000000n,
+ askedSats: 281505n,
},
{
- offeredTokens: 0xffffffffffffn,
+ offeredAtoms: 0xffffffffffffn,
info: '0.000000001sat/token, dust accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 0x7f1c000000n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 0x7f1c000000n,
+ askedSats: 546n,
},
{
- offeredTokens: 0xffffffffffffn,
+ offeredAtoms: 0xffffffffffffn,
info: '0.000001sat/token, full accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 0xffffff000000n,
- askedSats: 306783360,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 0xffffff000000n,
+ askedSats: 306783360n,
},
{
- offeredTokens: 0xffffffffffffn,
+ offeredAtoms: 0xffffffffffffn,
info: '0.000001sat/token, dust accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 0x1e000000n,
- askedSats: 549,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 0x1e000000n,
+ askedSats: 549n,
},
{
- offeredTokens: 0xffffffffffffn,
+ offeredAtoms: 0xffffffffffffn,
info: '0.001sat/token, max sats accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 0x8000000000n,
- askedSats: 1073741824,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 0x8000000000n,
+ askedSats: 1073741824n,
},
{
- offeredTokens: 0xffffffffffffn,
+ offeredAtoms: 0xffffffffffffn,
info: '0.001sat/token, min accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 0x1000000n,
- askedSats: 32768,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 0x1000000n,
+ askedSats: 32768n,
},
{
- offeredTokens: 0xffffffffffffn,
+ offeredAtoms: 0xffffffffffffn,
info: '1sat/token, max sats accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 989855744n,
- askedSats: 989855744,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 989855744n,
+ askedSats: 989855744n,
},
{
- offeredTokens: 0xffffffffffffn,
+ offeredAtoms: 0xffffffffffffn,
info: '1sat/token, min accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 0x1000000n,
- askedSats: 0x1000000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 0x1000000n,
+ askedSats: 0x1000000n,
},
];
for (const testCase of TEST_CASES) {
- it(`AgoraPartial ALP ${testCase.offeredTokens} for ${testCase.info}`, async () => {
+ it(`AgoraPartial ALP ${testCase.offeredAtoms} for ${testCase.info}`, async () => {
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: testCase.offeredTokens,
- priceNanoSatsPerToken: testCase.priceNanoSatsPerToken,
- minAcceptedTokens: testCase.acceptedTokens,
+ offeredAtoms: testCase.offeredAtoms,
+ priceNanoSatsPerAtom: testCase.priceNanoSatsPerAtom,
+ minAcceptedAtoms: testCase.acceptedAtoms,
makerPk,
...BASE_PARAMS_ALP,
});
- const askedSats = agoraPartial.askedSats(testCase.acceptedTokens);
+ const askedSats = agoraPartial.askedSats(testCase.acceptedAtoms);
const requiredSats = askedSats + 2000n;
const [fuelInput, takerInput] = await makeBuilderInputs([
- 4000,
- Number(requiredSats),
+ 4000n,
+ requiredSats,
]);
const offer = await makeAlpOffer({
@@ -445,12 +445,13 @@
takerSk,
offer,
takerInput,
- acceptedTokens: testCase.acceptedTokens,
+ acceptedAtoms: testCase.acceptedAtoms,
allowUnspendable: testCase.allowUnspendable,
});
const acceptTx = await chronik.tx(acceptTxid);
- const offeredTokens = agoraPartial.offeredTokens();
- const isFullAccept = testCase.acceptedTokens == offeredTokens;
+ // TODO we do not even get here, keep debugging
+ const offeredAtoms = agoraPartial.offeredAtoms();
+ const isFullAccept = testCase.acceptedAtoms == offeredAtoms;
if (isFullAccept) {
// FULL ACCEPT
// 0th output is OP_RETURN eMPP AGR0 ad + ALP SEND
@@ -461,24 +462,22 @@
alpSend(
agoraPartial.tokenId,
agoraPartial.tokenType,
- [0, agoraPartial.offeredTokens()],
+ [0n, agoraPartial.offeredAtoms()],
),
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(testCase.askedSats);
+ expect(acceptTx.outputs[1].sats).to.equal(testCase.askedSats);
expect(acceptTx.outputs[1].outputScript).to.equal(
makerScriptHex,
);
// 2nd output is tokens to taker
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- offeredTokens.toString(),
- );
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(offeredAtoms);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript).to.equal(
takerScriptHex,
);
@@ -491,41 +490,39 @@
}
// PARTIAL ACCEPT
- const leftoverTokens = offeredTokens - testCase.acceptedTokens;
- const leftoverTruncTokens =
- leftoverTokens >> BigInt(8 * agoraPartial.numTokenTruncBytes);
+ const leftoverTokens = offeredAtoms - testCase.acceptedAtoms;
+ const leftovertruncAtoms =
+ leftoverTokens >> BigInt(8 * agoraPartial.numAtomsTruncBytes);
// 0th output is OP_RETURN eMPP AGR0 ad + ALP SEND
expect(acceptTx.outputs[0].outputScript).to.equal(
toHex(
emppScript([
agoraPartial.adPushdata(),
alpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
+ 0n,
leftoverTokens,
- testCase.acceptedTokens,
+ testCase.acceptedAtoms,
]),
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(testCase.askedSats);
+ expect(acceptTx.outputs[1].sats).to.equal(testCase.askedSats);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is back to the P2SH Script
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- leftoverTokens.toString(),
- );
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(leftoverTokens);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript.slice(0, 4)).to.equal(
'a914',
);
// 3rd output is tokens to taker
- expect(acceptTx.outputs[3].token?.amount).to.equal(
- testCase.acceptedTokens.toString(),
+ expect(acceptTx.outputs[3].token?.atoms).to.equal(
+ testCase.acceptedAtoms,
);
- expect(acceptTx.outputs[3].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[3].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[3].outputScript).to.equal(takerScriptHex);
// Offer is now modified
const newOffers = await agora.activeOffersByTokenId(
@@ -537,7 +534,7 @@
type: 'PARTIAL',
params: new AgoraPartial({
...agoraPartial,
- truncTokens: leftoverTruncTokens,
+ truncAtoms: leftovertruncAtoms,
}),
});
@@ -549,17 +546,13 @@
const cancelTxSer = newOffer
.cancelTx({
cancelSk: makerSk,
- fuelInputs: await makeBuilderInputs([
- Number(cancelFeeSats),
- ]),
+ fuelInputs: await makeBuilderInputs([cancelFeeSats]),
recipientScript: makerScript,
})
.ser();
const cancelTxid = (await chronik.broadcastTx(cancelTxSer)).txid;
const cancelTx = await chronik.tx(cancelTxid);
- expect(cancelTx.outputs[1].token?.amount).to.equal(
- leftoverTokens.toString(),
- );
+ expect(cancelTx.outputs[1].token?.atoms).to.equal(leftoverTokens);
expect(cancelTx.outputs[1].outputScript).to.equal(makerScriptHex);
// takerIndex is 2 for full accept, 3 for partial accept
@@ -567,9 +560,9 @@
// Get takenInfo from offer creation params
const takenInfo: TakenInfo = {
- satoshisPaid: testCase.askedSats,
+ sats: BigInt(testCase.askedSats),
takerScriptHex: acceptTx.outputs[takerIndex].outputScript,
- baseTokens: testCase.acceptedTokens.toString(),
+ atoms: testCase.acceptedAtoms,
};
// Tx history by token ID
@@ -601,26 +594,26 @@
}
it('Without manually setting an over-ride, we are unable to accept an agora partial if the remaining offer would be unacceptable due to the terms of the contract', async () => {
const thisTestCase: TestCase = {
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1sat/token, dust accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 546n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 546n,
+ askedSats: 546n,
allowUnspendable: true,
};
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: thisTestCase.offeredTokens,
- priceNanoSatsPerToken: thisTestCase.priceNanoSatsPerToken,
- minAcceptedTokens: thisTestCase.acceptedTokens,
+ offeredAtoms: thisTestCase.offeredAtoms,
+ priceNanoSatsPerAtom: thisTestCase.priceNanoSatsPerAtom,
+ minAcceptedAtoms: thisTestCase.acceptedAtoms,
makerPk,
...BASE_PARAMS_ALP,
});
- const askedSats = agoraPartial.askedSats(thisTestCase.acceptedTokens);
+ const askedSats = agoraPartial.askedSats(thisTestCase.acceptedAtoms);
const requiredSats = askedSats + 2000n;
const [fuelInput, takerInput] = await makeBuilderInputs([
- 4000,
- Number(requiredSats),
+ 4000n,
+ requiredSats,
]);
const offer = await makeAlpOffer({
@@ -630,12 +623,12 @@
fuelInput,
});
- const expectedError = `Accepting ${thisTestCase.acceptedTokens} token satoshis would leave an amount lower than the min acceptable by the terms of this contract, and hence unacceptable. Accept fewer tokens or the full offer.`;
+ const expectedError = `Accepting ${thisTestCase.acceptedAtoms} token satoshis would leave an amount lower than the min acceptable by the terms of this contract, and hence unacceptable. Accept fewer tokens or the full offer.`;
// We can get the error from the isolated method
expect(() =>
agoraPartial.preventUnacceptableRemainder(
- thisTestCase.acceptedTokens,
+ thisTestCase.acceptedAtoms,
),
).to.throw(Error, expectedError);
@@ -647,7 +640,7 @@
takerSk,
offer,
takerInput,
- acceptedTokens: thisTestCase.acceptedTokens,
+ acceptedAtoms: thisTestCase.acceptedAtoms,
allowUnspendable: false,
}),
expectedError,
@@ -658,7 +651,7 @@
offer.acceptFeeSats({
recipientScript: offer.txBuilderInput.signData
?.redeemScript as Script,
- acceptedTokens: thisTestCase.acceptedTokens,
+ acceptedAtoms: thisTestCase.acceptedAtoms,
}),
).to.equal(1725n);
});
@@ -671,23 +664,23 @@
// Manually build an offer equivalent to previous test but accepting 500 tokens
const agoraPartial = new AgoraPartial({
- truncTokens: 1000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 2145336n,
- scaledTruncTokensPerTruncSat: 2145336n,
+ truncAtoms: 1000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 2145336n,
+ scaledTruncAtomsPerTruncSat: 2145336n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 1072668000n,
+ minAcceptedScaledTruncAtoms: 1072668000n,
scriptLen: 209,
enforcedLockTime: 1333546081,
makerPk,
...BASE_PARAMS_ALP,
});
- const acceptedTokens = 500n;
- const askedSats = agoraPartial.askedSats(acceptedTokens);
+ const acceptedAtoms = 500n;
+ const askedSats = agoraPartial.askedSats(acceptedAtoms);
const requiredSats = askedSats + 2000n;
const [fuelInput, takerInput] = await makeBuilderInputs([
- 4000,
- Number(requiredSats),
+ 4000n,
+ requiredSats,
]);
const offer = await makeAlpOffer({
@@ -701,7 +694,7 @@
// We can get the error from the isolated method
expect(() =>
- agoraPartial.preventUnacceptableRemainder(acceptedTokens),
+ agoraPartial.preventUnacceptableRemainder(acceptedAtoms),
).to.throw(Error, expectedError);
// And from attempting to accept
@@ -711,7 +704,7 @@
takerSk,
offer,
takerInput,
- acceptedTokens: acceptedTokens,
+ acceptedAtoms: acceptedAtoms,
allowUnspendable: false,
}),
expectedError,
diff --git a/modules/ecash-agora/tests/partial.locktime.test.ts b/modules/ecash-agora/tests/partial.locktime.test.ts
--- a/modules/ecash-agora/tests/partial.locktime.test.ts
+++ b/modules/ecash-agora/tests/partial.locktime.test.ts
@@ -29,7 +29,7 @@
// This test needs a lot of sats
const NUM_COINS = 500;
-const COIN_VALUE = 1000000;
+const COIN_VALUE = 1000000n;
const BASE_PARAMS_ALP = {
tokenId: '00'.repeat(32), // filled in later
@@ -53,17 +53,17 @@
let chronik: ChronikClient;
async function makeBuilderInputs(
- values: number[],
+ values: bigint[],
): Promise<TxBuilderInput[]> {
const txid = await runner.sendToScript(values, makerScript);
- return values.map((value, outIdx) => ({
+ return values.map((sats, outIdx) => ({
input: {
prevOut: {
txid,
outIdx,
},
signData: {
- value,
+ sats,
outputScript: makerScript,
},
},
@@ -85,9 +85,9 @@
const LOCKTIME1 = 500000123;
const LOCKTIME2 = 500000999;
const agoraPartial = AgoraPartial.approximateParams({
- offeredTokens: 1000n,
- priceNanoSatsPerToken: 1000000000000n,
- minAcceptedTokens: 1n,
+ offeredAtoms: 1000n,
+ priceNanoSatsPerAtom: 1000000000000n,
+ minAcceptedAtoms: 1n,
makerPk,
...BASE_PARAMS_ALP,
enforcedLockTime: LOCKTIME1,
@@ -95,23 +95,23 @@
const askedSats = agoraPartial.askedSats(100n);
const requiredSats = askedSats + 2000n;
const [fuelInput, takerInput] = await makeBuilderInputs([
- 8000,
- Number(requiredSats),
+ 8000n,
+ requiredSats,
]);
- const genesisOutputSats = 2000;
+ const genesisOutputSats = 2000n;
const genesisTx = makeAlpGenesis({
tokenType: agoraPartial.tokenType,
fuelInput,
tokenAmounts: [
- agoraPartial.offeredTokens(),
- agoraPartial.offeredTokens(),
- agoraPartial.offeredTokens(),
+ agoraPartial.offeredAtoms(),
+ agoraPartial.offeredAtoms(),
+ agoraPartial.offeredAtoms(),
],
extraOutputs: [
- { value: genesisOutputSats, script: makerScript },
- { value: genesisOutputSats, script: makerScript },
- { value: genesisOutputSats, script: makerScript },
+ { sats: genesisOutputSats, script: makerScript },
+ { sats: genesisOutputSats, script: makerScript },
+ { sats: genesisOutputSats, script: makerScript },
],
});
const genesisTxid = (await chronik.broadcastTx(genesisTx.ser())).txid;
@@ -134,7 +134,7 @@
outIdx: offerIdx + 1,
},
signData: {
- value: genesisOutputSats,
+ sats: genesisOutputSats,
outputScript: makerScript,
},
},
@@ -143,15 +143,15 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: emppScript([
offerPartial.adPushdata(),
alpSend(tokenId, offerPartial.tokenType, [
- offerPartial.offeredTokens(),
+ offerPartial.offeredAtoms(),
]),
]),
},
- { value: 546, script: agoraP2sh },
+ { sats: 546n, script: agoraP2sh },
],
});
const offerTx = txBuildOffer.sign();
@@ -189,7 +189,7 @@
},
],
recipientScript: takerScript,
- acceptedTokens: 1n,
+ acceptedAtoms: 1n,
});
await assert.isRejected(
chronik.broadcastTx(failedAcceptTx.ser(), true),
@@ -215,7 +215,7 @@
},
],
recipientScript: takerScript,
- acceptedTokens: 1n,
+ acceptedAtoms: 1n,
});
const acceptTxid = (
await chronik.broadcastTx(successAcceptTx.ser(), true)
@@ -223,7 +223,7 @@
const acceptTx = await chronik.tx(acceptTxid);
expect(acceptTx.tokenEntries[0].burnSummary).to.equal(
- 'Unexpected burn: Burns 1000 base tokens',
+ 'Unexpected burn: Burns 1000 atoms',
);
});
});
diff --git a/modules/ecash-agora/tests/partial.slp.bigsats.test.ts b/modules/ecash-agora/tests/partial.slp.bigsats.test.ts
--- a/modules/ecash-agora/tests/partial.slp.bigsats.test.ts
+++ b/modules/ecash-agora/tests/partial.slp.bigsats.test.ts
@@ -33,7 +33,7 @@
dustAmount: DEFAULT_DUST_LIMIT,
};
-const BIGSATS = 149 * 5000000000 - 20000;
+const BIGSATS = BigInt(149 * 5000000000 - 20000);
const ecc = new Ecc();
const makerSk = fromHex('33'.repeat(32));
@@ -49,17 +49,17 @@
async function makeBuilderInputs(
runner: TestRunner,
- values: number[],
+ values: bigint[],
): Promise<TxBuilderInput[]> {
const txid = await runner.sendToScript(values, makerScript);
- return values.map((value, outIdx) => ({
+ return values.map((sats, outIdx) => ({
input: {
prevOut: {
txid,
outIdx,
},
signData: {
- value,
+ sats,
outputScript: makerScript,
},
},
@@ -74,7 +74,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -83,45 +83,43 @@
it('Agora Partial 7450M XEC vs 2p64-1 full accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 0xffffffffffffffffn,
- priceNanoSatsPerToken: 40n, // scaled to use the XEC
+ offeredAtoms: 0xffffffffffffffffn,
+ priceNanoSatsPerAtom: 40n, // scaled to use the XEC
makerPk: makerPk,
- minAcceptedTokens: 0xffffffffffffn,
+ minAcceptedAtoms: 0xffffffffffffn,
...BASE_PARAMS_SLP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0xffffffn,
- numTokenTruncBytes: 5,
- tokenScaleFactor: 127n,
- scaledTruncTokensPerTruncSat: 189n,
+ truncAtoms: 0xffffffn,
+ numAtomsTruncBytes: 5,
+ atomsScaleFactor: 127n,
+ scaledTruncAtomsPerTruncSat: 189n,
numSatsTruncBytes: 2,
makerPk,
- minAcceptedScaledTruncTokens: 32511n,
+ minAcceptedScaledTruncAtoms: 32511n,
...BASE_PARAMS_SLP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 224,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0xffffff0000000000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0xffffff0000000000n);
expect(agoraPartial.askedSats(0x10000000000n)).to.equal(65536n);
- expect(agoraPartial.priceNanoSatsPerToken(0x10000000000n)).to.equal(
- 59n,
- );
+ expect(agoraPartial.priceNanoSatsPerAtom(0x10000000000n)).to.equal(59n);
expect(agoraPartial.askedSats(0xffffff0000000000n)).to.equal(
738825273344n,
);
- expect(
- agoraPartial.priceNanoSatsPerToken(0xffffff0000000000n),
- ).to.equal(40n);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(40n);
+ expect(agoraPartial.priceNanoSatsPerAtom(0xffffff0000000000n)).to.equal(
+ 40n,
+ );
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(40n);
const offer = await makeSlpOffer({
chronik,
@@ -134,7 +132,7 @@
offer,
takerSk,
takerInput,
- acceptedTokens: agoraPartial.offeredTokens(),
+ acceptedAtoms: agoraPartial.offeredAtoms(),
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -142,22 +140,20 @@
expect(acceptTx.outputs[0].outputScript).to.equal(
toHex(
slpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
- agoraPartial.offeredTokens(),
+ 0n,
+ agoraPartial.offeredAtoms(),
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(738825273344);
+ expect(acceptTx.outputs[1].sats).to.equal(738825273344n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is tokens to taker
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- 0xffffff0000000000n.toString(),
- );
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(0xffffff0000000000n);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript).to.equal(takerScriptHex);
});
});
@@ -169,7 +165,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -178,44 +174,44 @@
it('Agora Partial 7450M XEC vs 2p64-1 small accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 0xffffffffffffffffn,
- priceNanoSatsPerToken: 500000000n, // scaled to use the XEC
+ offeredAtoms: 0xffffffffffffffffn,
+ priceNanoSatsPerAtom: 500000000n, // scaled to use the XEC
makerPk,
- minAcceptedTokens: 0xffffffffffn,
+ minAcceptedAtoms: 0xffffffffffn,
...BASE_PARAMS_SLP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0xffffffn,
- numTokenTruncBytes: 5,
- tokenScaleFactor: 128n,
- scaledTruncTokensPerTruncSat: 1n,
+ truncAtoms: 0xffffffn,
+ numAtomsTruncBytes: 5,
+ atomsScaleFactor: 128n,
+ scaledTruncAtomsPerTruncSat: 1n,
numSatsTruncBytes: 4,
makerPk,
- minAcceptedScaledTruncTokens: 0x7fn,
+ minAcceptedScaledTruncAtoms: 0x7fn,
...BASE_PARAMS_SLP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 224,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0xffffff0000000000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0xffffff0000000000n);
expect(agoraPartial.askedSats(0x10000000000n)).to.equal(549755813888n);
- expect(agoraPartial.priceNanoSatsPerToken(0x10000000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x10000000000n)).to.equal(
500000000n,
);
expect(agoraPartial.askedSats(0xffffff0000000000n)).to.equal(
9223371487098961920n,
);
- expect(
- agoraPartial.priceNanoSatsPerToken(0xffffff0000000000n),
- ).to.equal(500000000n);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(500000000n);
+ expect(agoraPartial.priceNanoSatsPerAtom(0xffffff0000000000n)).to.equal(
+ 500000000n,
+ );
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(500000000n);
const offer = await makeSlpOffer({
chronik,
@@ -223,13 +219,13 @@
makerSk,
fuelInput,
});
- const acceptedTokens = 0x10000000000n;
+ const acceptedAtoms = 0x10000000000n;
const acceptTxid = await takeSlpOffer({
chronik,
offer,
takerSk,
takerInput,
- acceptedTokens,
+ acceptedAtoms,
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -238,29 +234,27 @@
expect(acceptTx.outputs[0].outputScript).to.equal(
toHex(
slpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
- agoraPartial.offeredTokens() - acceptedTokens,
- acceptedTokens,
+ 0n,
+ agoraPartial.offeredAtoms() - acceptedAtoms,
+ acceptedAtoms,
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(549755813888);
+ expect(acceptTx.outputs[1].sats).to.equal(549755813888n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is back to the P2SH Script
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- (agoraPartial.offeredTokens() - acceptedTokens).toString(),
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(
+ agoraPartial.offeredAtoms() - acceptedAtoms,
);
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript.slice(0, 4)).to.equal('a914');
// 3rd output is tokens to taker
- expect(acceptTx.outputs[3].token?.amount).to.equal(
- acceptedTokens.toString(),
- );
- expect(acceptTx.outputs[3].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[3].token?.atoms).to.equal(acceptedAtoms);
+ expect(acceptTx.outputs[3].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[3].outputScript).to.equal(takerScriptHex);
});
});
@@ -272,7 +266,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -281,45 +275,45 @@
it('Agora Partial 7450M XEC vs 2p63-1 full accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 0x7fffffffffffffffn,
- priceNanoSatsPerToken: 80n, // scaled to use the XEC
+ offeredAtoms: 0x7fffffffffffffffn,
+ priceNanoSatsPerAtom: 80n, // scaled to use the XEC
makerPk: makerPk,
- minAcceptedTokens: 0xffffffffffffn,
+ minAcceptedAtoms: 0xffffffffffffn,
...BASE_PARAMS_SLP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0x7fffff42n,
- numTokenTruncBytes: 4,
- tokenScaleFactor: 1n,
- scaledTruncTokensPerTruncSat: 190n,
+ truncAtoms: 0x7fffff42n,
+ numAtomsTruncBytes: 4,
+ atomsScaleFactor: 1n,
+ scaledTruncAtomsPerTruncSat: 190n,
numSatsTruncBytes: 2,
makerPk,
- minAcceptedScaledTruncTokens: 0xffffn,
+ minAcceptedScaledTruncAtoms: 0xffffn,
...BASE_PARAMS_SLP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 214,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0x7fffff4200000000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0x7fffff4200000000n);
expect(agoraPartial.askedSats(0x100000000n)).to.equal(65536n);
- expect(agoraPartial.priceNanoSatsPerToken(0x100000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x100000000n)).to.equal(
15258n,
);
expect(agoraPartial.askedSats(0x7fffff4200000000n)).to.equal(
740723589120n,
);
- expect(
- agoraPartial.priceNanoSatsPerToken(0x7fffff4200000000n),
- ).to.equal(80n);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(80n);
+ expect(agoraPartial.priceNanoSatsPerAtom(0x7fffff4200000000n)).to.equal(
+ 80n,
+ );
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(80n);
const offer = await makeSlpOffer({
chronik,
@@ -327,13 +321,13 @@
makerSk,
fuelInput,
});
- const acceptedTokens = agoraPartial.offeredTokens();
+ const acceptedAtoms = agoraPartial.offeredAtoms();
const acceptTxid = await takeSlpOffer({
chronik,
offer,
takerSk,
takerInput,
- acceptedTokens,
+ acceptedAtoms,
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -342,22 +336,20 @@
expect(acceptTx.outputs[0].outputScript).to.equal(
toHex(
slpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
- acceptedTokens,
+ 0n,
+ acceptedAtoms,
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(740723589120);
+ expect(acceptTx.outputs[1].sats).to.equal(740723589120n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is tokens to taker
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- acceptedTokens.toString(),
- );
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(acceptedAtoms);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript).to.equal(takerScriptHex);
});
});
@@ -369,7 +361,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -378,44 +370,44 @@
it('Agora Partial 7450M XEC vs 2p63-1 small accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 0x7fffffffffffffffn,
- priceNanoSatsPerToken: 1000000000n,
+ offeredAtoms: 0x7fffffffffffffffn,
+ priceNanoSatsPerAtom: 1000000000n,
makerPk,
- minAcceptedTokens: 0x100000000n,
+ minAcceptedAtoms: 0x100000000n,
...BASE_PARAMS_SLP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 0x7fffffffn,
- numTokenTruncBytes: 4,
- tokenScaleFactor: 1n,
- scaledTruncTokensPerTruncSat: 1n,
+ truncAtoms: 0x7fffffffn,
+ numAtomsTruncBytes: 4,
+ atomsScaleFactor: 1n,
+ scaledTruncAtomsPerTruncSat: 1n,
numSatsTruncBytes: 4,
makerPk,
- minAcceptedScaledTruncTokens: 1n,
+ minAcceptedScaledTruncAtoms: 1n,
...BASE_PARAMS_SLP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 209,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(0x7fffffff00000000n);
+ expect(agoraPartial.offeredAtoms()).to.equal(0x7fffffff00000000n);
expect(agoraPartial.askedSats(0x100000000n)).to.equal(4294967296n);
- expect(agoraPartial.priceNanoSatsPerToken(0x100000000n)).to.equal(
+ expect(agoraPartial.priceNanoSatsPerAtom(0x100000000n)).to.equal(
1000000000n,
);
expect(agoraPartial.askedSats(0x7fffffff00000000n)).to.equal(
9223372032559808512n,
);
- expect(
- agoraPartial.priceNanoSatsPerToken(0x7fffffff00000000n),
- ).to.equal(1000000000n);
- expect(agoraPartial.priceNanoSatsPerToken()).to.equal(1000000000n);
+ expect(agoraPartial.priceNanoSatsPerAtom(0x7fffffff00000000n)).to.equal(
+ 1000000000n,
+ );
+ expect(agoraPartial.priceNanoSatsPerAtom()).to.equal(1000000000n);
const offer = await makeSlpOffer({
chronik,
@@ -423,13 +415,13 @@
makerSk,
fuelInput,
});
- const acceptedTokens = 0x100000000n;
+ const acceptedAtoms = 0x100000000n;
const acceptTxid = await takeSlpOffer({
chronik,
offer,
takerSk,
takerInput,
- acceptedTokens,
+ acceptedAtoms,
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -438,29 +430,27 @@
expect(acceptTx.outputs[0].outputScript).to.equal(
toHex(
slpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
- agoraPartial.offeredTokens() - acceptedTokens,
- acceptedTokens,
+ 0n,
+ agoraPartial.offeredAtoms() - acceptedAtoms,
+ acceptedAtoms,
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(4294967296);
+ expect(acceptTx.outputs[1].sats).to.equal(4294967296n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is back to the P2SH Script
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- (agoraPartial.offeredTokens() - acceptedTokens).toString(),
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(
+ agoraPartial.offeredAtoms() - acceptedAtoms,
);
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript.slice(0, 4)).to.equal('a914');
// 3rd output is tokens to taker
- expect(acceptTx.outputs[3].token?.amount).to.equal(
- acceptedTokens.toString(),
- );
- expect(acceptTx.outputs[3].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[3].token?.atoms).to.equal(acceptedAtoms);
+ expect(acceptTx.outputs[3].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[3].outputScript).to.equal(takerScriptHex);
});
});
@@ -472,7 +462,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -481,34 +471,34 @@
it('Agora Partial 7450M XEC vs 100 full accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 100n,
- priceNanoSatsPerToken: 7123456780n * 1000000000n, // scaled to use the XEC
+ offeredAtoms: 100n,
+ priceNanoSatsPerAtom: 7123456780n * 1000000000n, // scaled to use the XEC
makerPk: makerPk,
- minAcceptedTokens: 1n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_SLP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 100n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 0x7fff3a28n / 100n,
- scaledTruncTokensPerTruncSat: 50576n,
+ truncAtoms: 100n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 0x7fff3a28n / 100n,
+ scaledTruncAtomsPerTruncSat: 50576n,
numSatsTruncBytes: 3,
makerPk,
- minAcceptedScaledTruncTokens: 0x7fff3a28n / 100n,
+ minAcceptedScaledTruncAtoms: 0x7fff3a28n / 100n,
...BASE_PARAMS_SLP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 222,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(100n);
- expect(agoraPartial.minAcceptedTokens()).to.equal(1n);
+ expect(agoraPartial.offeredAtoms()).to.equal(100n);
+ expect(agoraPartial.minAcceptedAtoms()).to.equal(1n);
expect(agoraPartial.askedSats(1n)).to.equal(7130316800n);
expect(agoraPartial.askedSats(2n)).to.equal(7130316800n * 2n);
expect(agoraPartial.askedSats(3n)).to.equal(7124724394n * 3n + 2n);
@@ -528,26 +518,28 @@
offer,
takerSk,
takerInput,
- acceptedTokens: 100n,
+ acceptedAtoms: 100n,
});
const acceptTx = await chronik.tx(acceptTxid);
// 0th output is OP_RETURN SLP SEND
expect(acceptTx.outputs[0].outputScript).to.equal(
toHex(
- slpSend(agoraPartial.tokenId, agoraPartial.tokenType, [0, 100n])
- .bytecode,
+ slpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
+ 0n,
+ 100n,
+ ]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(712360591360);
+ expect(acceptTx.outputs[1].sats).to.equal(712360591360n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is tokens to taker
- expect(acceptTx.outputs[2].token?.amount).to.equal('100');
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(100n);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript).to.equal(takerScriptHex);
});
});
@@ -559,7 +551,7 @@
before(async () => {
runner = await TestRunner.setup('setup_scripts/ecash-agora_base');
chronik = runner.chronik;
- await runner.setupCoins(1, BIGSATS + 11000);
+ await runner.setupCoins(1, BIGSATS + 11000n);
});
after(() => {
@@ -568,34 +560,34 @@
it('Agora Partial 7450M XEC vs 100 small accept', async () => {
const [fuelInput, takerInput] = await makeBuilderInputs(runner, [
- 10000,
+ 10000n,
BIGSATS,
]);
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: 100n,
- priceNanoSatsPerToken: 712345678000n * 1000000000n, // scaled to use the XEC
+ offeredAtoms: 100n,
+ priceNanoSatsPerAtom: 712345678000n * 1000000000n, // scaled to use the XEC
makerPk: makerPk,
- minAcceptedTokens: 1n,
+ minAcceptedAtoms: 1n,
...BASE_PARAMS_SLP,
});
expect(agoraPartial).to.deep.equal(
new AgoraPartial({
- truncTokens: 100n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 0x7ffe05f4n / 100n,
- scaledTruncTokensPerTruncSat: 129471n,
+ truncAtoms: 100n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 0x7ffe05f4n / 100n,
+ scaledTruncAtomsPerTruncSat: 129471n,
numSatsTruncBytes: 4,
makerPk,
- minAcceptedScaledTruncTokens: 0x7ffe05f4n / 100n,
+ minAcceptedScaledTruncAtoms: 0x7ffe05f4n / 100n,
...BASE_PARAMS_SLP,
enforcedLockTime: agoraPartial.enforcedLockTime,
scriptLen: 223,
}),
);
- expect(agoraPartial.offeredTokens()).to.equal(100n);
- expect(agoraPartial.minAcceptedTokens()).to.equal(1n);
+ expect(agoraPartial.offeredAtoms()).to.equal(100n);
+ expect(agoraPartial.minAcceptedAtoms()).to.equal(1n);
expect(agoraPartial.askedSats(1n)).to.equal(712964571136n);
expect(agoraPartial.askedSats(10n)).to.equal(7125350744064n);
expect(agoraPartial.askedSats(100n)).to.equal(71236327571456n);
@@ -611,7 +603,7 @@
offer,
takerSk,
takerInput,
- acceptedTokens: 1n,
+ acceptedAtoms: 1n,
});
const acceptTx = await chronik.tx(acceptTxid);
@@ -619,25 +611,25 @@
expect(acceptTx.outputs[0].outputScript).to.equal(
toHex(
slpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
+ 0n,
99n,
1n,
]).bytecode,
),
);
- expect(acceptTx.outputs[0].value).to.equal(0);
+ expect(acceptTx.outputs[0].sats).to.equal(0n);
expect(acceptTx.outputs[0].token).to.equal(undefined);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(712964571136);
+ expect(acceptTx.outputs[1].sats).to.equal(712964571136n);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is back to the P2SH Script
- expect(acceptTx.outputs[2].token?.amount).to.equal('99');
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(99n);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript.slice(0, 4)).to.equal('a914');
// 3rd output is tokens to taker
- expect(acceptTx.outputs[3].token?.amount).to.equal('1');
- expect(acceptTx.outputs[3].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[3].token?.atoms).to.equal(1n);
+ expect(acceptTx.outputs[3].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[3].outputScript).to.equal(takerScriptHex);
});
});
diff --git a/modules/ecash-agora/tests/partial.slp.test.ts b/modules/ecash-agora/tests/partial.slp.test.ts
--- a/modules/ecash-agora/tests/partial.slp.test.ts
+++ b/modules/ecash-agora/tests/partial.slp.test.ts
@@ -28,7 +28,7 @@
// This test needs a lot of sats
const NUM_COINS = 500;
-const COIN_VALUE = 1100000000;
+const COIN_VALUE = 1100000000n;
const BASE_PARAMS_SLP = {
tokenId: '00'.repeat(32), // filled in later
@@ -54,17 +54,17 @@
let chronik: ChronikClient;
async function makeBuilderInputs(
- values: number[],
+ values: bigint[],
): Promise<TxBuilderInput[]> {
const txid = await runner.sendToScript(values, makerScript);
- return values.map((value, outIdx) => ({
+ return values.map((sats, outIdx) => ({
input: {
prevOut: {
txid,
outIdx,
},
signData: {
- value,
+ sats,
outputScript: makerScript,
},
},
@@ -83,410 +83,410 @@
});
interface TestCase {
- offeredTokens: bigint;
+ offeredAtoms: bigint;
info: string;
- priceNanoSatsPerToken: bigint;
- acceptedTokens: bigint;
- askedSats: number;
+ priceNanoSatsPerAtom: bigint;
+ acceptedAtoms: bigint;
+ askedSats: bigint;
allowUnspendable?: boolean;
}
const TEST_CASES: TestCase[] = [
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1sat/token, full accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 1000n,
- askedSats: 1000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 1000n,
+ askedSats: 1000n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1sat/token, dust accept, must allowUnspendable',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 546n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 546n,
+ askedSats: 546n,
allowUnspendable: true,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000sat/token, full accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 1000n,
- askedSats: 1000225,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 1000n,
+ askedSats: 1000225n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000sat/token, half accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 500n,
- askedSats: 500113,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 500n,
+ askedSats: 500113n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000sat/token, 1 accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 1n,
- askedSats: 1001,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 1n,
+ askedSats: 1001n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000000sat/token, full accept',
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- acceptedTokens: 1000n,
- askedSats: 1000013824,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ acceptedAtoms: 1000n,
+ askedSats: 1000013824n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000000sat/token, half accept',
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- acceptedTokens: 500n,
- askedSats: 500039680,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ acceptedAtoms: 500n,
+ askedSats: 500039680n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000000sat/token, 1 accept',
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- acceptedTokens: 1n,
- askedSats: 1048576,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ acceptedAtoms: 1n,
+ askedSats: 1048576n,
},
{
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1000000000sat/token, 1 accept',
- priceNanoSatsPerToken: 1000000000n * 1000000000n,
- acceptedTokens: 1n,
- askedSats: 1006632960,
+ priceNanoSatsPerAtom: 1000000000n * 1000000000n,
+ acceptedAtoms: 1n,
+ askedSats: 1006632960n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '0.001sat/token, full accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 1000000n,
- askedSats: 1000,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 1000000n,
+ askedSats: 1000n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1sat/token, full accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 1000000n,
- askedSats: 1000000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 1000000n,
+ askedSats: 1000000n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1sat/token, half accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 500000n,
- askedSats: 500000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 500000n,
+ askedSats: 500000n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1sat/token, dust accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 546n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 546n,
+ askedSats: 546n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1000sat/token, full accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 999936n,
- askedSats: 999948288,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 999936n,
+ askedSats: 999948288n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1000sat/token, half accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 499968n,
- askedSats: 499974144,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 499968n,
+ askedSats: 499974144n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1000sat/token, 256 accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 256n,
- askedSats: 262144,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 256n,
+ askedSats: 262144n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1000000sat/token, 1024 accept',
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- acceptedTokens: 1024n,
- askedSats: 1040187392,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ acceptedAtoms: 1024n,
+ askedSats: 1040187392n,
},
{
- offeredTokens: 1000000n,
+ offeredAtoms: 1000000n,
info: '1000000sat/token, 256 accept',
- priceNanoSatsPerToken: 1000000n * 1000000000n,
- acceptedTokens: 256n,
- askedSats: 268435456,
+ priceNanoSatsPerAtom: 1000000n * 1000000000n,
+ acceptedAtoms: 256n,
+ askedSats: 268435456n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '0.001sat/token, full accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 1000000000n,
- askedSats: 1000000,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 1000000000n,
+ askedSats: 1000000n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '0.001sat/token, half accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 500000000n,
- askedSats: 500000,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 500000000n,
+ askedSats: 500000n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '0.001sat/token, dust accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 546000n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 546000n,
+ askedSats: 546n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '1sat/token, full accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 1000000000n,
- askedSats: 1000000000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 1000000000n,
+ askedSats: 1000000000n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '1sat/token, half accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 500000000n,
- askedSats: 500000000,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 500000000n,
+ askedSats: 500000000n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '1sat/token, dust accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 546n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 546n,
+ askedSats: 546n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '1000sat/token, 983040 accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 983040n,
- askedSats: 989855744,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 983040n,
+ askedSats: 989855744n,
},
{
- offeredTokens: 1000000000n,
+ offeredAtoms: 1000000000n,
info: '1000sat/token, 65536 accept',
- priceNanoSatsPerToken: 1000n * 1000000000n,
- acceptedTokens: 65536n,
- askedSats: 67108864,
+ priceNanoSatsPerAtom: 1000n * 1000000000n,
+ acceptedAtoms: 65536n,
+ askedSats: 67108864n,
},
{
- offeredTokens: 1000000000000n,
+ offeredAtoms: 1000000000000n,
info: '0.000001sat/token, full accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 999999995904n,
- askedSats: 1000108,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 999999995904n,
+ askedSats: 1000108n,
},
{
- offeredTokens: 1000000000000n,
+ offeredAtoms: 1000000000000n,
info: '0.000001sat/token, half accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 546045952n,
- askedSats: 547,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 546045952n,
+ askedSats: 547n,
},
{
- offeredTokens: 1000000000000n,
+ offeredAtoms: 1000000000000n,
info: '0.001sat/token, full accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 999999995904n,
- askedSats: 1068115230,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 999999995904n,
+ askedSats: 1068115230n,
},
{
- offeredTokens: 1000000000000n,
+ offeredAtoms: 1000000000000n,
info: '0.001sat/token, dust accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 589824n,
- askedSats: 630,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 589824n,
+ askedSats: 630n,
},
{
- offeredTokens: 1000000000000000n,
+ offeredAtoms: 1000000000000000n,
info: '0.000000001sat/token, full accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 999999986991104n,
- askedSats: 1000358,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 999999986991104n,
+ askedSats: 1000358n,
},
{
- offeredTokens: 1000000000000000n,
+ offeredAtoms: 1000000000000000n,
info: '0.000000001sat/token, dust accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 546014494720n,
- askedSats: 547,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 546014494720n,
+ askedSats: 547n,
},
{
- offeredTokens: 1000000000000000n,
+ offeredAtoms: 1000000000000000n,
info: '0.000001sat/token, full accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 999999986991104n,
- askedSats: 1072883592,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 999999986991104n,
+ askedSats: 1072883592n,
},
{
- offeredTokens: 1000000000000000n,
+ offeredAtoms: 1000000000000000n,
info: '0.000001sat/token, dust accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 570425344n,
- askedSats: 612,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 570425344n,
+ askedSats: 612n,
},
{
- offeredTokens: 1000000000000000n,
+ offeredAtoms: 1000000000000000n,
info: '0.001sat/token, 1/1000 accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 999989182464n,
- askedSats: 1004470272,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 999989182464n,
+ askedSats: 1004470272n,
},
{
- offeredTokens: 1000000000000000n,
+ offeredAtoms: 1000000000000000n,
info: '0.001sat/token, min accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 0x1000000n,
- askedSats: 65536,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 0x1000000n,
+ askedSats: 65536n,
},
{
- offeredTokens: 1000000000000000n,
+ offeredAtoms: 1000000000000000n,
info: '1sat/token, 1/1000000 accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 989855744n,
- askedSats: 989855744,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 989855744n,
+ askedSats: 989855744n,
},
{
- offeredTokens: 1000000000000000n,
+ offeredAtoms: 1000000000000000n,
info: '1sat/token, min accept',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 0x1000000n,
- askedSats: 16777216,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 0x1000000n,
+ askedSats: 16777216n,
},
{
- offeredTokens: 1000000000000000000n,
+ offeredAtoms: 1000000000000000000n,
info: '0.000000001sat/token, full accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 999999997191651328n,
- askedSats: 1047737894,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 999999997191651328n,
+ askedSats: 1047737894n,
},
{
- offeredTokens: 1000000000000000000n,
+ offeredAtoms: 1000000000000000000n,
info: '0.000000001sat/token, dust accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 558345748480n,
- askedSats: 585,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 558345748480n,
+ askedSats: 585n,
},
{
- offeredTokens: 1000000000000000000n,
+ offeredAtoms: 1000000000000000000n,
info: '0.000001sat/token, 1/1000 accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 999997235527680n,
- askedSats: 1002438656,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 999997235527680n,
+ askedSats: 1002438656n,
},
{
- offeredTokens: 1000000000000000000n,
+ offeredAtoms: 1000000000000000000n,
info: '0.000001sat/token, min accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 0x100000000n,
- askedSats: 65536,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 0x100000000n,
+ askedSats: 65536n,
},
{
- offeredTokens: 1000000000000000000n,
+ offeredAtoms: 1000000000000000000n,
info: '0.001sat/token, 1/1000000 accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 996432412672n,
- askedSats: 1006632960,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 996432412672n,
+ askedSats: 1006632960n,
},
{
- offeredTokens: 1000000000000000000n,
+ offeredAtoms: 1000000000000000000n,
info: '0.001sat/token, min accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 0x100000000n,
- askedSats: 16777216,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 0x100000000n,
+ askedSats: 16777216n,
},
{
- offeredTokens: 0x7fffffffffffffffn,
+ offeredAtoms: 0x7fffffffffffffffn,
info: '0.000000001sat/token, max sats accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 999999997191651328n,
- askedSats: 1010248448,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 999999997191651328n,
+ askedSats: 1010248448n,
},
{
- offeredTokens: 0x7fffffffffffffffn,
+ offeredAtoms: 0x7fffffffffffffffn,
info: '0.000000001sat/token, dust accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 558345748480n,
- askedSats: 768,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 558345748480n,
+ askedSats: 768n,
},
{
- offeredTokens: 0x7fffffffffffffffn,
+ offeredAtoms: 0x7fffffffffffffffn,
info: '0.000001sat/token, max sats accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 999997235527680n,
- askedSats: 1017249792,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 999997235527680n,
+ askedSats: 1017249792n,
},
{
- offeredTokens: 0x7fffffffffffffffn,
+ offeredAtoms: 0x7fffffffffffffffn,
info: '0.000001sat/token, min accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 0x100000000n,
- askedSats: 65536,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 0x100000000n,
+ askedSats: 65536n,
},
{
- offeredTokens: 0x7fffffffffffffffn,
+ offeredAtoms: 0x7fffffffffffffffn,
info: '0.001sat/token, max sats accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 0xc300000000n,
- askedSats: 1090519040,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 0xc300000000n,
+ askedSats: 1090519040n,
},
{
- offeredTokens: 0x7fffffffffffffffn,
+ offeredAtoms: 0x7fffffffffffffffn,
info: '0.001sat/token, min accept',
- priceNanoSatsPerToken: 1000000n,
- acceptedTokens: 0x100000000n,
- askedSats: 16777216,
+ priceNanoSatsPerAtom: 1000000n,
+ acceptedAtoms: 0x100000000n,
+ askedSats: 16777216n,
},
{
- offeredTokens: 0xffffffffffffffffn,
+ offeredAtoms: 0xffffffffffffffffn,
info: '0.000000001sat/token, max sats accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 999999228392505344n,
- askedSats: 1027665664,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 999999228392505344n,
+ askedSats: 1027665664n,
},
{
- offeredTokens: 0xffffffffffffffffn,
+ offeredAtoms: 0xffffffffffffffffn,
info: '0.000000001sat/token, dust accept',
- priceNanoSatsPerToken: 1n,
- acceptedTokens: 0x10000000000n,
- askedSats: 1280,
+ priceNanoSatsPerAtom: 1n,
+ acceptedAtoms: 0x10000000000n,
+ askedSats: 1280n,
},
{
- offeredTokens: 0xffffffffffffffffn,
+ offeredAtoms: 0xffffffffffffffffn,
info: '0.000001sat/token, max sats accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 999456069648384n,
- askedSats: 1089339392,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 999456069648384n,
+ askedSats: 1089339392n,
},
{
- offeredTokens: 0xffffffffffffffffn,
+ offeredAtoms: 0xffffffffffffffffn,
info: '0.000001sat/token, min accept',
- priceNanoSatsPerToken: 1000n,
- acceptedTokens: 0x10000000000n,
- askedSats: 1245184,
+ priceNanoSatsPerAtom: 1000n,
+ acceptedAtoms: 0x10000000000n,
+ askedSats: 1245184n,
},
];
for (const testCase of TEST_CASES) {
- it(`AgoraPartial SLP ${testCase.offeredTokens} for ${testCase.info}`, async () => {
+ it(`AgoraPartial SLP ${testCase.offeredAtoms} for ${testCase.info}`, async () => {
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: testCase.offeredTokens,
- priceNanoSatsPerToken: testCase.priceNanoSatsPerToken,
- minAcceptedTokens: testCase.acceptedTokens,
+ offeredAtoms: testCase.offeredAtoms,
+ priceNanoSatsPerAtom: testCase.priceNanoSatsPerAtom,
+ minAcceptedAtoms: testCase.acceptedAtoms,
makerPk,
...BASE_PARAMS_SLP,
});
- const askedSats = agoraPartial.askedSats(testCase.acceptedTokens);
+ const askedSats = agoraPartial.askedSats(testCase.acceptedAtoms);
const requiredSats = askedSats + 2000n;
const [fuelInput, takerInput] = await makeBuilderInputs([
- 4000,
- Number(requiredSats),
+ 4000n,
+ requiredSats,
]);
const offer = await makeSlpOffer({
@@ -500,34 +500,32 @@
takerSk,
offer,
takerInput,
- acceptedTokens: testCase.acceptedTokens,
+ acceptedAtoms: testCase.acceptedAtoms,
allowUnspendable: testCase.allowUnspendable,
});
const acceptTx = await chronik.tx(acceptTxid);
- const offeredTokens = agoraPartial.offeredTokens();
- const isFullAccept = testCase.acceptedTokens == offeredTokens;
+ const offeredAtoms = agoraPartial.offeredAtoms();
+ const isFullAccept = testCase.acceptedAtoms == offeredAtoms;
if (isFullAccept) {
// FULL ACCEPT
// 0th output is OP_RETURN SLP SEND
expect(acceptTx.outputs[0].outputScript).to.equal(
toHex(
slpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
- agoraPartial.offeredTokens(),
+ 0n,
+ agoraPartial.offeredAtoms(),
]).bytecode,
),
);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(testCase.askedSats);
+ expect(acceptTx.outputs[1].sats).to.equal(testCase.askedSats);
expect(acceptTx.outputs[1].outputScript).to.equal(
makerScriptHex,
);
// 2nd output is tokens to taker
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- offeredTokens.toString(),
- );
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(offeredAtoms);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript).to.equal(
takerScriptHex,
);
@@ -540,36 +538,34 @@
}
// PARTIAL ACCEPT
- const leftoverTokens = offeredTokens - testCase.acceptedTokens;
- const leftoverTruncTokens =
- leftoverTokens >> BigInt(8 * agoraPartial.numTokenTruncBytes);
+ const leftoverTokens = offeredAtoms - testCase.acceptedAtoms;
+ const leftovertruncAtoms =
+ leftoverTokens >> BigInt(8 * agoraPartial.numAtomsTruncBytes);
// 0th output is OP_RETURN SLP SEND
expect(acceptTx.outputs[0].outputScript).to.equal(
toHex(
slpSend(agoraPartial.tokenId, agoraPartial.tokenType, [
- 0,
+ 0n,
leftoverTokens,
- testCase.acceptedTokens,
+ testCase.acceptedAtoms,
]).bytecode,
),
);
// 1st output is sats to maker
expect(acceptTx.outputs[1].token).to.equal(undefined);
- expect(acceptTx.outputs[1].value).to.equal(testCase.askedSats);
+ expect(acceptTx.outputs[1].sats).to.equal(testCase.askedSats);
expect(acceptTx.outputs[1].outputScript).to.equal(makerScriptHex);
// 2nd output is back to the P2SH Script
- expect(acceptTx.outputs[2].token?.amount).to.equal(
- leftoverTokens.toString(),
- );
- expect(acceptTx.outputs[2].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[2].token?.atoms).to.equal(leftoverTokens);
+ expect(acceptTx.outputs[2].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[2].outputScript.slice(0, 4)).to.equal(
'a914',
);
// 3rd output is tokens to taker
- expect(acceptTx.outputs[3].token?.amount).to.equal(
- testCase.acceptedTokens.toString(),
+ expect(acceptTx.outputs[3].token?.atoms).to.equal(
+ testCase.acceptedAtoms,
);
- expect(acceptTx.outputs[3].value).to.equal(DEFAULT_DUST_LIMIT);
+ expect(acceptTx.outputs[3].sats).to.equal(DEFAULT_DUST_LIMIT);
expect(acceptTx.outputs[3].outputScript).to.equal(takerScriptHex);
// Offer is now modified
const newOffers = await agora.activeOffersByTokenId(
@@ -581,7 +577,7 @@
type: 'PARTIAL',
params: new AgoraPartial({
...agoraPartial,
- truncTokens: leftoverTruncTokens,
+ truncAtoms: leftovertruncAtoms,
}),
});
@@ -593,17 +589,13 @@
const cancelTxSer = newOffer
.cancelTx({
cancelSk: makerSk,
- fuelInputs: await makeBuilderInputs([
- Number(cancelFeeSats),
- ]),
+ fuelInputs: await makeBuilderInputs([cancelFeeSats]),
recipientScript: makerScript,
})
.ser();
const cancelTxid = (await chronik.broadcastTx(cancelTxSer)).txid;
const cancelTx = await chronik.tx(cancelTxid);
- expect(cancelTx.outputs[1].token?.amount).to.equal(
- leftoverTokens.toString(),
- );
+ expect(cancelTx.outputs[1].token?.atoms).to.equal(leftoverTokens);
expect(cancelTx.outputs[1].outputScript).to.equal(makerScriptHex);
// takerIndex is 2 for full accept, 3 for partial accept
@@ -611,9 +603,9 @@
// Get takenInfo from offer creation params
const takenInfo: TakenInfo = {
- satoshisPaid: testCase.askedSats,
+ sats: BigInt(testCase.askedSats),
takerScriptHex: acceptTx.outputs[takerIndex].outputScript,
- baseTokens: testCase.acceptedTokens.toString(),
+ atoms: testCase.acceptedAtoms,
};
// Tx history by token ID
@@ -646,26 +638,26 @@
it('Without manually setting an over-ride, we are unable to accept an agora partial if the remaining offer would be unacceptable due to the terms of the contract', async () => {
const thisTestCase: TestCase = {
- offeredTokens: 1000n,
+ offeredAtoms: 1000n,
info: '1sat/token, dust accept, must allowUnspendable',
- priceNanoSatsPerToken: 1000000000n,
- acceptedTokens: 546n,
- askedSats: 546,
+ priceNanoSatsPerAtom: 1000000000n,
+ acceptedAtoms: 546n,
+ askedSats: 546n,
allowUnspendable: true,
};
const agora = new Agora(chronik);
const agoraPartial = await agora.selectParams({
- offeredTokens: thisTestCase.offeredTokens,
- priceNanoSatsPerToken: thisTestCase.priceNanoSatsPerToken,
- minAcceptedTokens: thisTestCase.acceptedTokens,
+ offeredAtoms: thisTestCase.offeredAtoms,
+ priceNanoSatsPerAtom: thisTestCase.priceNanoSatsPerAtom,
+ minAcceptedAtoms: thisTestCase.acceptedAtoms,
makerPk,
...BASE_PARAMS_SLP,
});
- const askedSats = agoraPartial.askedSats(thisTestCase.acceptedTokens);
+ const askedSats = agoraPartial.askedSats(thisTestCase.acceptedAtoms);
const requiredSats = askedSats + 2000n;
const [fuelInput, takerInput] = await makeBuilderInputs([
- 4000,
- Number(requiredSats),
+ 4000n,
+ requiredSats,
]);
const offer = await makeSlpOffer({
@@ -681,7 +673,7 @@
// We can get the error from this isolated method
expect(() =>
agoraPartial.preventUnacceptableRemainder(
- thisTestCase.acceptedTokens,
+ thisTestCase.acceptedAtoms,
),
).to.throw(Error, expectedError);
@@ -692,7 +684,7 @@
takerSk,
offer,
takerInput,
- acceptedTokens: thisTestCase.acceptedTokens,
+ acceptedAtoms: thisTestCase.acceptedAtoms,
allowUnspendable: false,
}),
expectedError,
@@ -707,23 +699,23 @@
// Manually build an offer equivalent to previous test but accepting 500 tokens
const agoraPartial = new AgoraPartial({
- truncTokens: 1000n,
- numTokenTruncBytes: 0,
- tokenScaleFactor: 2145336n,
- scaledTruncTokensPerTruncSat: 2145336n,
+ truncAtoms: 1000n,
+ numAtomsTruncBytes: 0,
+ atomsScaleFactor: 2145336n,
+ scaledTruncAtomsPerTruncSat: 2145336n,
numSatsTruncBytes: 0,
- minAcceptedScaledTruncTokens: 1072668000n,
+ minAcceptedScaledTruncAtoms: 1072668000n,
scriptLen: 216,
enforcedLockTime: 1087959628,
makerPk,
...BASE_PARAMS_SLP,
});
- const acceptedTokens = 500n;
- const askedSats = agoraPartial.askedSats(acceptedTokens);
+ const acceptedAtoms = 500n;
+ const askedSats = agoraPartial.askedSats(acceptedAtoms);
const requiredSats = askedSats + 2000n;
const [fuelInput, takerInput] = await makeBuilderInputs([
- 4000,
- Number(requiredSats),
+ 4000n,
+ requiredSats,
]);
const offer = await makeSlpOffer({
@@ -738,7 +730,7 @@
// We can get the error from this isolated method
expect(() =>
- agoraPartial.preventUnacceptableRemainder(acceptedTokens),
+ agoraPartial.preventUnacceptableRemainder(acceptedAtoms),
).to.throw(Error, expectedError);
// Or by attempting to accept the offer
@@ -748,7 +740,7 @@
takerSk,
offer,
takerInput,
- acceptedTokens: acceptedTokens,
+ acceptedAtoms: acceptedAtoms,
allowUnspendable: false,
}),
expectedError,
@@ -761,7 +753,7 @@
takerSk,
offer,
takerInput,
- acceptedTokens: acceptedTokens,
+ acceptedAtoms: acceptedAtoms,
allowUnspendable: undefined,
}),
expectedError,
@@ -774,7 +766,7 @@
takerSk,
offer,
takerInput,
- acceptedTokens: acceptedTokens,
+ acceptedAtoms: acceptedAtoms,
}),
expectedError,
);
diff --git a/modules/ecash-lib/README.md b/modules/ecash-lib/README.md
--- a/modules/ecash-lib/README.md
+++ b/modules/ecash-lib/README.md
@@ -90,3 +90,4 @@
- 1.5.0 - Support custom WASM URL and module [D17622](https://reviews.bitcoinabc.org/D17622)
- 1.5.1 - `Address.withPrefix()` returns same prefix if unchanged (instead of throwing an error) [D17623](https://reviews.bitcoinabc.org/D17623)
- 2.0.0 - Remove `initWasm`, auto-load the WebAssembly instead. Remove unneeded `ecc` parameters, esp. in `TxBuilder.sign` and `HdNode.fromSeed` [D17639](https://reviews.bitcoinabc.org/D17639) [D17640](https://reviews.bitcoinabc.org/D17640)
+- 3.0.0 - Improve types and shapes in line with chronik proto updates [D17650](https://reviews.bitcoinabc.org/D17650)
diff --git a/modules/ecash-lib/package-lock.json b/modules/ecash-lib/package-lock.json
--- a/modules/ecash-lib/package-lock.json
+++ b/modules/ecash-lib/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "ecash-lib",
- "version": "2.0.0",
+ "version": "3.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "ecash-lib",
- "version": "2.0.0",
+ "version": "3.0.0",
"license": "MIT",
"dependencies": {
"b58-ts": "file:../b58-ts",
diff --git a/modules/ecash-lib/package.json b/modules/ecash-lib/package.json
--- a/modules/ecash-lib/package.json
+++ b/modules/ecash-lib/package.json
@@ -1,6 +1,6 @@
{
"name": "ecash-lib",
- "version": "2.0.0",
+ "version": "3.0.0",
"description": "Library for eCash transaction building",
"main": "./dist/indexNodeJs.js",
"browser": "./dist/indexBrowser.js",
diff --git a/modules/ecash-lib/src/consts.ts b/modules/ecash-lib/src/consts.ts
--- a/modules/ecash-lib/src/consts.ts
+++ b/modules/ecash-lib/src/consts.ts
@@ -3,6 +3,6 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
/** Default dust limit on the eCash network. */
-export const DEFAULT_DUST_LIMIT = 546;
+export const DEFAULT_DUST_LIMIT = 546n;
/** Default fee per kB on the eCash network. */
export const DEFAULT_FEE_PER_KB = 1000;
diff --git a/modules/ecash-lib/src/test/testRunner.ts b/modules/ecash-lib/src/test/testRunner.ts
--- a/modules/ecash-lib/src/test/testRunner.ts
+++ b/modules/ecash-lib/src/test/testRunner.ts
@@ -5,7 +5,6 @@
import type { ChronikClient } from 'chronik-client';
import type { ChildProcess } from 'node:child_process';
-import { Ecc } from '../ecc.js';
import { shaRmd160 } from '../hash.js';
import { fromHex, toHex } from '../io/hex.js';
import { pushBytesOp } from '../op.js';
@@ -26,7 +25,7 @@
public runner: ChildProcess;
public chronik: ChronikClient;
private coinsTxid: string | undefined;
- private coinValue: number | undefined;
+ private coinValue: bigint | undefined;
private lastUsedOutIdx: number;
private constructor(runner: ChildProcess, chronik: ChronikClient) {
@@ -120,7 +119,7 @@
public async setupCoins(
numCoins: number,
- coinValue: number,
+ coinValue: bigint,
): Promise<void> {
const opTrueScriptHash = shaRmd160(OP_TRUE_SCRIPT.bytecode);
const utxos = (
@@ -135,19 +134,19 @@
sequence: 0xffffffff,
})),
});
- const utxosValue = utxos.reduce((a, b) => a + b.value, 0);
+ const utxosValue = utxos.reduce((a, b) => a + b.sats, 0n);
for (let i = 0; i < numCoins; ++i) {
tx.outputs.push({
- value: coinValue,
+ sats: coinValue,
script: anyoneP2sh,
});
}
tx.outputs.push({
- value: 0,
+ sats: 0n,
script: Script.fromOps([OP_RETURN]),
});
- tx.outputs[tx.outputs.length - 1].value =
- utxosValue - numCoins * coinValue - tx.serSize();
+ tx.outputs[tx.outputs.length - 1].sats =
+ utxosValue - BigInt(numCoins) * coinValue - BigInt(tx.serSize());
this.coinsTxid = (await this.chronik.broadcastTx(tx.ser())).txid;
this.coinValue = coinValue;
@@ -164,11 +163,11 @@
}
public async sendToScript(
- value: number | number[],
+ sats: bigint | bigint[],
script: Script,
): Promise<string> {
const coinValue = this.coinValue!;
- const values = Array.isArray(value) ? value : [value];
+ const satsArr = Array.isArray(sats) ? sats : [sats];
const setupTxBuilder = new TxBuilder({
inputs: [
{
@@ -177,17 +176,20 @@
script: ANYONE_SCRIPT_SIG,
sequence: 0xffffffff,
signData: {
- value: coinValue,
+ sats: coinValue,
},
},
},
],
outputs: [
- ...values.map(value => ({ value, script })),
+ ...satsArr.map(sats => ({ sats, script })),
Script.fromOps([OP_RETURN]), // burn leftover
],
});
- const setupTx = setupTxBuilder.sign({ feePerKb: 1000, dustLimit: 546 });
+ const setupTx = setupTxBuilder.sign({
+ feePerKb: 1000,
+ dustLimit: 546n,
+ });
return (await this.chronik.broadcastTx(setupTx.ser())).txid;
}
diff --git a/modules/ecash-lib/src/token/alp.ts b/modules/ecash-lib/src/token/alp.ts
--- a/modules/ecash-lib/src/token/alp.ts
+++ b/modules/ecash-lib/src/token/alp.ts
@@ -7,7 +7,7 @@
import { Writer } from '../io/writer.js';
import { WriterBytes } from '../io/writerbytes.js';
import { WriterLength } from '../io/writerlength.js';
-import { Amount, BURN, GENESIS, GenesisInfo, MINT, SEND } from './common.js';
+import { Atoms, BURN, GENESIS, GenesisInfo, MINT, SEND } from './common.js';
/** LOKAD ID for ALP */
export const ALP_LOKAD_ID = strToBytes('SLP2');
@@ -15,12 +15,12 @@
/** ALP standard token type number */
export const ALP_STANDARD = 0;
-/** Mint data specifying mint amounts and batons of a GENESIS/MINT tx */
+/** Mint data specifying mint amounts (in atoms) and batons of a GENESIS/MINT tx */
export interface MintData {
/**
* List of amounts to be minted by this tx, each having their own tx output.
*/
- amounts: Amount[];
+ amounts: Atoms[];
/** Number of mint batons to create, each having their own tx output. */
numBatons: number;
}
@@ -80,7 +80,7 @@
export function alpSend(
tokenId: string,
tokenType: number,
- sendAmounts: Amount[],
+ sendAmounts: Atoms[],
): Uint8Array {
const tokenIdBytes = fromHexRev(tokenId);
const writeSection = (writer: Writer) => {
@@ -105,7 +105,7 @@
export function alpBurn(
tokenId: string,
tokenType: number,
- burnAmount: Amount,
+ burnAmount: Atoms,
): Uint8Array {
const tokenIdBytes = fromHexRev(tokenId);
const writeSection = (writer: Writer) => {
@@ -131,7 +131,7 @@
writer.putU8(mintData.numBatons);
}
-function putAlpAmount(amount: Amount, writer: Writer) {
+function putAlpAmount(amount: Atoms, writer: Writer) {
const amountN = BigInt(amount);
writer.putU32(amountN & 0xffffffffn);
writer.putU16(amountN >> 32n);
diff --git a/modules/ecash-lib/src/token/common.ts b/modules/ecash-lib/src/token/common.ts
--- a/modules/ecash-lib/src/token/common.ts
+++ b/modules/ecash-lib/src/token/common.ts
@@ -4,7 +4,7 @@
import { strToBytes } from '../io/str.js';
-export type Amount = bigint | number;
+export type Atoms = bigint;
export const GENESIS = strToBytes('GENESIS');
export const MINT = strToBytes('MINT');
diff --git a/modules/ecash-lib/src/token/slp.test.ts b/modules/ecash-lib/src/token/slp.test.ts
--- a/modules/ecash-lib/src/token/slp.test.ts
+++ b/modules/ecash-lib/src/token/slp.test.ts
@@ -8,12 +8,12 @@
describe('SLP', () => {
it('SLP invalid usage', () => {
- expect(() => slpGenesis(99, {}, 0)).to.throw('Unknown token type 99');
- expect(() => slpMint('', 77, 0)).to.throw('Unknown token type 77');
- expect(() => slpMint('', 1, 0)).to.throw(
+ expect(() => slpGenesis(99, {}, 0n)).to.throw('Unknown token type 99');
+ expect(() => slpMint('', 77, 0n)).to.throw('Unknown token type 77');
+ expect(() => slpMint('', 1, 0n)).to.throw(
'Token ID must be 64 hex characters in length, but got 0',
);
- expect(() => slpMint('1'.repeat(64), 1, -1)).to.throw(
+ expect(() => slpMint('1'.repeat(64), 1, -1n)).to.throw(
'Amount out of range: -1',
);
expect(() => slpMint('1'.repeat(64), 1, 0x10000000000000000n)).to.throw(
@@ -28,7 +28,7 @@
expect(() => slpMintVault('1'.repeat(64), new Array(20))).to.throw(
'Cannot use more than 19 amounts, but got 20',
);
- expect(() => slpMintVault('1'.repeat(64), [-1])).to.throw(
+ expect(() => slpMintVault('1'.repeat(64), [-1n])).to.throw(
'Amount out of range: -1',
);
expect(() =>
@@ -44,17 +44,17 @@
expect(() => slpSend('1'.repeat(64), 1, new Array(20))).to.throw(
'Cannot use more than 19 amounts, but got 20',
);
- expect(() => slpSend('1'.repeat(64), 1, [-1])).to.throw(
+ expect(() => slpSend('1'.repeat(64), 1, [-1n])).to.throw(
'Amount out of range: -1',
);
expect(() =>
slpSend('1'.repeat(64), 1, [0x10000000000000000n]),
).to.throw('Amount out of range: 18446744073709551616');
- expect(() => slpBurn('', 55, 0)).to.throw('Unknown token type 55');
- expect(() => slpBurn('', 1, 0)).to.throw(
+ expect(() => slpBurn('', 55, 0n)).to.throw('Unknown token type 55');
+ expect(() => slpBurn('', 1, 0n)).to.throw(
'Token ID must be 64 hex characters in length, but got 0',
);
- expect(() => slpBurn('1'.repeat(64), 1, -1)).to.throw(
+ expect(() => slpBurn('1'.repeat(64), 1, -1n)).to.throw(
'Amount out of range: -1',
);
expect(() => slpBurn('1'.repeat(64), 1, 0x10000000000000000n)).to.throw(
diff --git a/modules/ecash-lib/src/token/slp.ts b/modules/ecash-lib/src/token/slp.ts
--- a/modules/ecash-lib/src/token/slp.ts
+++ b/modules/ecash-lib/src/token/slp.ts
@@ -7,7 +7,7 @@
import { Op, pushBytesOp } from '../op.js';
import { OP_PUSHDATA1, OP_RETURN } from '../opcode.js';
import { Script } from '../script.js';
-import { Amount, BURN, GENESIS, GenesisInfo, MINT, SEND } from './common.js';
+import { Atoms, BURN, GENESIS, GenesisInfo, MINT, SEND } from './common.js';
/** LOKAD ID for SLP */
export const SLP_LOKAD_ID = strToBytes('SLP\0');
@@ -25,7 +25,7 @@
export function slpGenesis(
tokenType: number,
genesisInfo: GenesisInfo,
- initialQuantity: Amount,
+ initialQuantity: Atoms,
mintBatonOutIdx?: number,
): Script {
verifyTokenType(tokenType);
@@ -64,7 +64,7 @@
export function slpMint(
tokenId: string,
tokenType: number,
- additionalQuantity: Amount,
+ additionalQuantity: Atoms,
mintBatonOutIdx?: number,
): Script {
verifyTokenType(tokenType);
@@ -90,7 +90,7 @@
**/
export function slpMintVault(
tokenId: string,
- additionalQuantities: Amount[],
+ additionalQuantities: Atoms[],
): Script {
verifyTokenId(tokenId);
verifySendAmounts(additionalQuantities);
@@ -113,7 +113,7 @@
export function slpSend(
tokenId: string,
tokenType: number,
- sendAmounts: Amount[],
+ sendAmounts: Atoms[],
): Script {
verifyTokenType(tokenType);
verifyTokenId(tokenId);
@@ -136,7 +136,7 @@
export function slpBurn(
tokenId: string,
tokenType: number,
- burnAmount: Amount,
+ burnAmount: Atoms,
): Script {
verifyTokenType(tokenType);
verifyTokenId(tokenId);
@@ -170,7 +170,7 @@
}
}
-function verifySendAmounts(sendAmounts: Amount[]) {
+function verifySendAmounts(sendAmounts: Atoms[]) {
if (sendAmounts.length == 0) {
throw new Error('Send amount cannot be empty');
}
@@ -197,7 +197,7 @@
return pushBytesOp(pushdata);
}
-export function slpAmount(amount: Amount): Uint8Array {
+export function slpAmount(amount: Atoms): Uint8Array {
if (amount < 0 || BigInt(amount) > 0xffffffffffffffffn) {
throw new Error(`Amount out of range: ${amount}`);
}
diff --git a/modules/ecash-lib/src/tx.test.ts b/modules/ecash-lib/src/tx.test.ts
--- a/modules/ecash-lib/src/tx.test.ts
+++ b/modules/ecash-lib/src/tx.test.ts
@@ -80,15 +80,15 @@
],
outputs: [
{
- value: 0x2134,
+ sats: 0x2134n,
script: new Script(fromHex('1133557799')),
},
{
- value: 0x8079685746352413n,
+ sats: 0x8079685746352413n,
script: new Script(fromHex('564738291092837465')),
},
{
- value: 0,
+ sats: 0n,
script: new Script(fromHex('6a68656c6c6f')),
},
],
diff --git a/modules/ecash-lib/src/tx.ts b/modules/ecash-lib/src/tx.ts
--- a/modules/ecash-lib/src/tx.ts
+++ b/modules/ecash-lib/src/tx.ts
@@ -49,7 +49,7 @@
/** CTxOut, creating a new output. */
export interface TxOutput {
/** Value in satoshis of the output (1 XEC = 100 satoshis) */
- value: number | bigint;
+ sats: bigint;
/** Script locking the output */
script: Script;
}
@@ -57,7 +57,7 @@
/** All the data required to sign an input (using BIP143). */
export interface SignData {
/** Value of the output being spent */
- value: number | bigint;
+ sats: bigint;
/** Script of the output being spent (not for P2SH) */
outputScript?: Script;
/**
@@ -120,10 +120,10 @@
}
export function readTxOutput(bytes: Bytes): TxOutput {
- const value = bytes.readU64();
+ const sats = bytes.readU64();
const script = Script.readWithSize(bytes);
return {
- value,
+ sats,
script,
};
}
@@ -147,7 +147,7 @@
/** Write a TxOutput to a Writer */
export function writeTxOutput(output: TxOutput, writer: Writer): void {
- writer.putU64(output.value);
+ writer.putU64(output.sats);
output.script.writeWithSize(writer);
}
@@ -164,7 +164,7 @@
script: input.script?.copy(),
sequence: input.sequence,
signData: input.signData && {
- value: input.signData.value,
+ sats: input.signData.sats,
outputScript: input.signData.outputScript?.copy(),
redeemScript: input.signData.redeemScript?.copy(),
},
@@ -174,7 +174,7 @@
/** Create a deep copy of the TxOutput */
export function copyTxOutput(output: TxOutput): TxOutput {
return {
- value: output.value,
+ sats: output.sats,
script: output.script.copy(),
};
}
diff --git a/modules/ecash-lib/src/txBuilder.ts b/modules/ecash-lib/src/txBuilder.ts
--- a/modules/ecash-lib/src/txBuilder.ts
+++ b/modules/ecash-lib/src/txBuilder.ts
@@ -84,7 +84,7 @@
if (input.input.signData === undefined) {
return undefined;
}
- inputSum += BigInt(input.input.signData.value);
+ inputSum += BigInt(input.input.signData.sats);
}
return inputSum;
}
@@ -108,11 +108,11 @@
}
leftoverIdx = idx;
outputs[idx] = {
- value: 0, // placeholder
+ sats: 0n, // placeholder
script: builderOutput.copy(),
};
} else {
- fixedOutputSum += BigInt(builderOutput.value);
+ fixedOutputSum += BigInt(builderOutput.sats);
outputs[idx] = copyTxOutput(builderOutput);
}
}
@@ -123,7 +123,7 @@
public sign(params?: {
ecc?: Ecc;
feePerKb?: number;
- dustLimit?: number;
+ dustLimit?: bigint;
}): Tx {
const ecc = params?.ecc ?? new Ecc();
const { fixedOutputSum, leftoverIdx, outputs } = this.prepareOutputs();
@@ -147,7 +147,7 @@
const inputSum = this.inputSum();
if (inputSum === undefined) {
throw new Error(
- 'Using a leftover output requires setting SignData.value for all inputs',
+ 'Using a leftover output requires setting SignData.sats for all inputs',
);
}
if (params?.feePerKb === undefined) {
@@ -175,8 +175,8 @@
updateSignatories(new EccDummy(), dummyUnsignedTx);
let txSize = dummyUnsignedTx.tx.serSize();
let txFee = calcTxFee(txSize, params.feePerKb);
- const leftoverValue = inputSum - (fixedOutputSum + txFee);
- if (leftoverValue < params.dustLimit) {
+ const leftoverSats = inputSum - (fixedOutputSum + txFee);
+ if (leftoverSats < params.dustLimit) {
// inputs cannot pay for a dust leftover -> remove & recalc
outputs.splice(leftoverIdx, 1);
dummyUnsignedTx.tx.outputs = outputs;
@@ -185,11 +185,11 @@
txSize = dummyUnsignedTx.tx.serSize();
txFee = calcTxFee(txSize, params.feePerKb);
} else {
- outputs[leftoverIdx].value = leftoverValue;
+ outputs[leftoverIdx].sats = leftoverSats;
}
if (inputSum < fixedOutputSum + txFee) {
throw new Error(
- `Insufficient input value (${inputSum}): Can only pay for ${
+ `Insufficient input sats (${inputSum}): Can only pay for ${
inputSum - fixedOutputSum
} fees, but ${txFee} required`,
);
diff --git a/modules/ecash-lib/src/unsignedTx.test.ts b/modules/ecash-lib/src/unsignedTx.test.ts
--- a/modules/ecash-lib/src/unsignedTx.test.ts
+++ b/modules/ecash-lib/src/unsignedTx.test.ts
@@ -40,7 +40,7 @@
script: new Script(),
sequence: 0x87654321,
signData: {
- value: 0x123456789,
+ sats: 0x123456789n,
outputScript: new Script(fromHex('abacadaeafb0abac')),
},
},
@@ -52,22 +52,22 @@
script: new Script(),
sequence: 0x10605,
signData: {
- value: 0x9876,
+ sats: 0x9876n,
redeemScript: new Script(fromHex('ab778899ac55')),
},
},
],
outputs: [
{
- value: 0x2134,
+ sats: 0x2134n,
script: new Script(fromHex('1133557799')),
},
{
- value: 0x8079685746352413n,
+ sats: 0x8079685746352413n,
script: new Script(fromHex('564738291092837465')),
},
{
- value: 0,
+ sats: 0n,
script: new Script(fromHex('6a68656c6c6f')),
},
],
@@ -801,7 +801,7 @@
prevOut: TX.inputs[0].prevOut,
script: new Script(),
sequence: 0,
- signData: { value: 0 },
+ signData: { sats: 0n },
},
],
}),
@@ -819,7 +819,7 @@
script: new Script(),
sequence: 0,
signData: {
- value: 0,
+ sats: 0n,
outputScript: Script.p2sh(new Uint8Array(20)),
},
},
diff --git a/modules/ecash-lib/src/unsignedTx.ts b/modules/ecash-lib/src/unsignedTx.ts
--- a/modules/ecash-lib/src/unsignedTx.ts
+++ b/modules/ecash-lib/src/unsignedTx.ts
@@ -146,7 +146,7 @@
idx != inputIdx
) {
// Do not lock-in the txout payee at other indices as txin
- writeTxOutput({ value: 0, script: new Script() }, writer);
+ writeTxOutput({ sats: 0n, script: new Script() }, writer);
} else {
writeTxOutput(tx.outputs[idx], writer);
}
@@ -288,7 +288,7 @@
}
writeOutPoint(input.prevOut, writer);
scriptCode.writeWithSize(writer);
- writer.putU64(signData.value);
+ writer.putU64(signData.sats);
writer.putU32(input.sequence ?? DEFAULT_SEQUENCE);
writer.putBytes(hashOutputs);
writer.putU32(tx.locktime);
diff --git a/modules/ecash-lib/tests/alp.test.ts b/modules/ecash-lib/tests/alp.test.ts
--- a/modules/ecash-lib/tests/alp.test.ts
+++ b/modules/ecash-lib/tests/alp.test.ts
@@ -23,7 +23,7 @@
import '../src/initNodeJs.js';
const NUM_COINS = 500;
-const COIN_VALUE = 100000;
+const COIN_VALUE = 100000n;
const ALP_TOKEN_TYPE_STANDARD = {
number: 0,
@@ -67,7 +67,7 @@
const pkh4 = shaRmd160(pk4);
const p2pkh4 = Script.p2pkh(pkh4);
- await runner.sendToScript(50000, p2pkh1);
+ await runner.sendToScript(50000n, p2pkh1);
const utxos = await chronik.script('p2pkh', toHex(pkh1)).utxos();
expect(utxos.utxos.length).to.equal(1);
@@ -79,7 +79,7 @@
input: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
outputScript: p2pkh1,
},
},
@@ -88,7 +88,7 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: emppScript([
alpGenesis(
ALP_STANDARD,
@@ -101,15 +101,15 @@
decimals: 4,
},
{
- amounts: [2000, 2],
+ amounts: [2000n, 2n],
numBatons: 1,
},
),
]),
},
- { value: 10000, script: p2pkh2 },
- { value: 10000, script: p2pkh1 },
- { value: 10000, script: p2pkh1 },
+ { sats: 10000n, script: p2pkh2 },
+ { sats: 10000n, script: p2pkh1 },
+ { sats: 10000n, script: p2pkh1 },
],
});
const genesisTx = txBuildGenesis.sign();
@@ -139,10 +139,10 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 10000,
+ sats: 10000n,
isFinal: false,
token: {
- amount: '2000',
+ atoms: 2000n,
isMintBaton: false,
tokenId: tokenId,
tokenType: ALP_TOKEN_TYPE_STANDARD,
@@ -159,7 +159,7 @@
outIdx: 3,
},
signData: {
- value: 10000,
+ sats: 10000n,
outputScript: p2pkh1,
},
},
@@ -168,16 +168,16 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: emppScript([
alpMint(tokenId, ALP_STANDARD, {
- amounts: [500],
+ amounts: [500n],
numBatons: 1,
}),
]),
},
- { value: 546, script: p2pkh1 },
- { value: 546, script: p2pkh3 },
+ { sats: 546n, script: p2pkh1 },
+ { sats: 546n, script: p2pkh3 },
],
});
const mintTx = txBuildMint.sign();
@@ -192,10 +192,10 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 546,
+ sats: 546n,
isFinal: false,
token: {
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
tokenId: tokenId,
tokenType: ALP_TOKEN_TYPE_STANDARD,
@@ -212,7 +212,7 @@
outIdx: 1,
},
signData: {
- value: 546,
+ sats: 546n,
outputScript: p2pkh1,
},
},
@@ -225,7 +225,7 @@
outIdx: 1,
},
signData: {
- value: 10000,
+ sats: 10000n,
outputScript: p2pkh2,
},
},
@@ -234,25 +234,25 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: emppScript([
alpGenesis(
ALP_STANDARD,
{},
{
- amounts: [100, 0],
+ amounts: [100n, 0n],
numBatons: 1,
},
),
// OK to push 01 (not encoded as OP_1)
fromHex('01'),
- alpSend(tokenId, ALP_STANDARD, [0, 1000, 0, 1500]),
+ alpSend(tokenId, ALP_STANDARD, [0n, 1000n, 0n, 1500n]),
]),
},
- { value: 546, script: p2pkh1 },
- { value: 546, script: p2pkh2 },
- { value: 546, script: p2pkh3 },
- { value: 546, script: p2pkh4 },
+ { sats: 546n, script: p2pkh1 },
+ { sats: 546n, script: p2pkh2 },
+ { sats: 546n, script: p2pkh3 },
+ { sats: 546n, script: p2pkh4 },
],
});
const multiTx = txBuildMulti.sign();
@@ -269,13 +269,13 @@
prevOut: multiTx.inputs[0].prevOut,
sequenceNo: 0xffffffff,
token: {
- amount: '500',
+ atoms: 500n,
entryIdx: 1,
isMintBaton: false,
tokenId: tokenId,
tokenType: ALP_TOKEN_TYPE_STANDARD,
},
- value: 546,
+ sats: 546n,
},
{
inputScript: toHex(multiTx.inputs[1].script!.bytecode),
@@ -283,63 +283,63 @@
prevOut: multiTx.inputs[1].prevOut,
sequenceNo: 0xffffffff,
token: {
- amount: '2000',
+ atoms: 2000n,
entryIdx: 1,
isMintBaton: false,
tokenId: tokenId,
tokenType: ALP_TOKEN_TYPE_STANDARD,
},
- value: 10000,
+ sats: 10000n,
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript: toHex(multiTx.outputs[0].script.bytecode),
},
{
outputScript: toHex(p2pkh1.bytecode),
token: {
- amount: '100',
+ atoms: 100n,
entryIdx: 0,
isMintBaton: false,
tokenId: multiTxid,
tokenType: ALP_TOKEN_TYPE_STANDARD,
},
- value: 546,
+ sats: 546n,
},
{
outputScript: toHex(p2pkh2.bytecode),
token: {
- amount: '1000',
+ atoms: 1000n,
entryIdx: 1,
isMintBaton: false,
tokenId: tokenId,
tokenType: ALP_TOKEN_TYPE_STANDARD,
},
- value: 546,
+ sats: 546n,
},
{
outputScript: toHex(p2pkh3.bytecode),
token: {
- amount: '0',
+ atoms: 0n,
entryIdx: 0,
isMintBaton: true,
tokenId: multiTxid,
tokenType: ALP_TOKEN_TYPE_STANDARD,
},
- value: 546,
+ sats: 546n,
},
{
outputScript: toHex(p2pkh4.bytecode),
token: {
- amount: '1500',
+ atoms: 1500n,
entryIdx: 1,
isMintBaton: false,
tokenId: tokenId,
tokenType: ALP_TOKEN_TYPE_STANDARD,
},
- value: 546,
+ sats: 546n,
},
],
lockTime: 0,
@@ -349,22 +349,22 @@
isFinal: false,
tokenEntries: [
{
- actualBurnAmount: '0',
+ actualBurnAtoms: 0n,
burnSummary: '',
burnsMintBatons: false,
failedColorings: [],
- intentionalBurn: '0',
+ intentionalBurnAtoms: 0n,
isInvalid: false,
tokenId: multiTxid,
tokenType: ALP_TOKEN_TYPE_STANDARD,
txType: 'GENESIS',
},
{
- actualBurnAmount: '0',
+ actualBurnAtoms: 0n,
burnSummary: '',
burnsMintBatons: false,
failedColorings: [],
- intentionalBurn: '0',
+ intentionalBurnAtoms: 0n,
isInvalid: false,
tokenId: tokenId,
tokenType: ALP_TOKEN_TYPE_STANDARD,
diff --git a/modules/ecash-lib/tests/slp.test.ts b/modules/ecash-lib/tests/slp.test.ts
--- a/modules/ecash-lib/tests/slp.test.ts
+++ b/modules/ecash-lib/tests/slp.test.ts
@@ -29,7 +29,7 @@
import '../src/initNodeJs.js';
const NUM_COINS = 500;
-const COIN_VALUE = 100000;
+const COIN_VALUE = 100000n;
const SLP_TOKEN_TYPE_FUNGIBLE = {
number: 1,
@@ -91,7 +91,7 @@
const pkh4 = shaRmd160(pk4);
const p2pkh4 = Script.p2pkh(pkh4);
- await runner.sendToScript(50000, p2pkh1);
+ await runner.sendToScript(50000n, p2pkh1);
const utxos = await chronik.script('p2pkh', toHex(pkh1)).utxos();
expect(utxos.utxos.length).to.equal(1);
@@ -103,7 +103,7 @@
input: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
outputScript: p2pkh1,
},
},
@@ -112,7 +112,7 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: slpGenesis(
SLP_FUNGIBLE,
{
@@ -122,12 +122,12 @@
hash: '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
decimals: 4,
},
- 2000,
+ 2000n,
2,
),
},
- { value: 10000, script: p2pkh2 },
- { value: 10000, script: p2pkh1 },
+ { sats: 10000n, script: p2pkh2 },
+ { sats: 10000n, script: p2pkh1 },
],
});
const genesisTx = txBuildGenesis.sign();
@@ -156,10 +156,10 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 10000,
+ sats: 10000n,
isFinal: false,
token: {
- amount: '2000',
+ atoms: 2000n,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_FUNGIBLE,
@@ -176,7 +176,7 @@
outIdx: 2,
},
signData: {
- value: 10000,
+ sats: 10000n,
outputScript: p2pkh1,
},
},
@@ -185,11 +185,11 @@
],
outputs: [
{
- value: 0,
- script: slpMint(tokenId, SLP_FUNGIBLE, 500, 2),
+ sats: 0n,
+ script: slpMint(tokenId, SLP_FUNGIBLE, 500n, 2),
},
- { value: 546, script: p2pkh1 },
- { value: 546, script: p2pkh3 },
+ { sats: 546n, script: p2pkh1 },
+ { sats: 546n, script: p2pkh3 },
],
});
const mintTx = txBuildMint.sign();
@@ -204,10 +204,10 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 546,
+ sats: 546n,
isFinal: false,
token: {
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_FUNGIBLE,
@@ -224,7 +224,7 @@
outIdx: 1,
},
signData: {
- value: 546,
+ sats: 546n,
outputScript: p2pkh1,
},
},
@@ -237,7 +237,7 @@
outIdx: 1,
},
signData: {
- value: 10000,
+ sats: 10000n,
outputScript: p2pkh2,
},
},
@@ -246,11 +246,11 @@
],
outputs: [
{
- value: 0,
- script: slpSend(tokenId, SLP_FUNGIBLE, [1000, 1500]),
+ sats: 0n,
+ script: slpSend(tokenId, SLP_FUNGIBLE, [1000n, 1500n]),
},
- { value: 546, script: p2pkh2 },
- { value: 546, script: p2pkh4 },
+ { sats: 546n, script: p2pkh2 },
+ { sats: 546n, script: p2pkh4 },
],
});
const sendTx = txBuildSend.sign();
@@ -267,13 +267,13 @@
prevOut: sendTx.inputs[0].prevOut,
sequenceNo: 0xffffffff,
token: {
- amount: '500',
+ atoms: 500n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_FUNGIBLE,
},
- value: 546,
+ sats: 546n,
},
{
inputScript: toHex(sendTx.inputs[1].script!.bytecode),
@@ -281,41 +281,41 @@
prevOut: sendTx.inputs[1].prevOut,
sequenceNo: 0xffffffff,
token: {
- amount: '2000',
+ atoms: 2000n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_FUNGIBLE,
},
- value: 10000,
+ sats: 10000n,
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript: toHex(sendTx.outputs[0].script.bytecode),
},
{
outputScript: toHex(p2pkh2.bytecode),
token: {
- amount: '1000',
+ atoms: 1000n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_FUNGIBLE,
},
- value: 546,
+ sats: 546n,
},
{
outputScript: toHex(p2pkh4.bytecode),
token: {
- amount: '1500',
+ atoms: 1500n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_FUNGIBLE,
},
- value: 546,
+ sats: 546n,
},
],
lockTime: 0,
@@ -325,11 +325,11 @@
isFinal: false,
tokenEntries: [
{
- actualBurnAmount: '0',
+ actualBurnAtoms: 0n,
burnSummary: '',
burnsMintBatons: false,
failedColorings: [],
- intentionalBurn: '0',
+ intentionalBurnAtoms: 0n,
isInvalid: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_FUNGIBLE,
@@ -349,7 +349,7 @@
outIdx: 1,
},
signData: {
- value: 546,
+ sats: 546n,
outputScript: p2pkh2,
},
},
@@ -358,8 +358,8 @@
],
outputs: [
{
- value: 0,
- script: slpBurn(tokenId, SLP_FUNGIBLE, 1000),
+ sats: 0n,
+ script: slpBurn(tokenId, SLP_FUNGIBLE, 1000n),
},
],
});
@@ -376,18 +376,18 @@
prevOut: burnTx.inputs[0].prevOut,
sequenceNo: 0xffffffff,
token: {
- amount: '1000',
+ atoms: 1000n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_FUNGIBLE,
},
- value: 546,
+ sats: 546n,
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript: toHex(burnTx.outputs[0].script.bytecode),
},
],
@@ -398,11 +398,11 @@
isFinal: false,
tokenEntries: [
{
- actualBurnAmount: '1000',
+ actualBurnAtoms: 1000n,
burnSummary: '',
burnsMintBatons: false,
failedColorings: [],
- intentionalBurn: '1000',
+ intentionalBurnAtoms: 1000n,
isInvalid: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_FUNGIBLE,
@@ -450,7 +450,7 @@
await ws.waitForOpen();
ws.subscribeToBlocks();
- await runner.sendToScript(50000, p2pkh1);
+ await runner.sendToScript(50000n, p2pkh1);
const utxos = await chronik.script('p2pkh', toHex(pkh1)).utxos();
expect(utxos.utxos.length).to.equal(1);
@@ -462,7 +462,7 @@
input: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
outputScript: p2pkh1,
},
},
@@ -471,7 +471,7 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: slpGenesis(
SLP_MINT_VAULT,
{
@@ -482,10 +482,10 @@
mintVaultScripthash: toHex(mintVaultScripthash),
decimals: 4,
},
- 2000,
+ 2000n,
),
},
- { value: 10000, script: p2pkh2 },
+ { sats: 10000n, script: p2pkh2 },
],
});
const genesisTx = txBuildGenesis.sign();
@@ -515,10 +515,10 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 10000,
+ sats: 10000n,
isFinal: false,
token: {
- amount: '2000',
+ atoms: 2000n,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_MINT_VAULT,
@@ -530,7 +530,7 @@
runner.generate();
await once(wsBlocks, 'BLK_CONNECTED');
- const mintVaultTxid = await runner.sendToScript(50000, mintVaultP2sh);
+ const mintVaultTxid = await runner.sendToScript(50000n, mintVaultP2sh);
const txBuildMint = new TxBuilder({
inputs: [
@@ -548,11 +548,11 @@
],
outputs: [
{
- value: 0,
- script: slpMintVault(tokenId, [500, 600]),
+ sats: 0n,
+ script: slpMintVault(tokenId, [500n, 600n]),
},
- { value: 546, script: p2pkh1 },
- { value: 546, script: p2pkh3 },
+ { sats: 546n, script: p2pkh1 },
+ { sats: 546n, script: p2pkh3 },
],
});
const mintTx = txBuildMint.sign();
@@ -567,10 +567,10 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 546,
+ sats: 546n,
isFinal: false,
token: {
- amount: '600',
+ atoms: 600n,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_MINT_VAULT,
@@ -587,7 +587,7 @@
outIdx: 1,
},
signData: {
- value: 546,
+ sats: 546n,
outputScript: p2pkh1,
},
},
@@ -600,7 +600,7 @@
outIdx: 1,
},
signData: {
- value: 10000,
+ sats: 10000n,
outputScript: p2pkh2,
},
},
@@ -609,11 +609,11 @@
],
outputs: [
{
- value: 0,
- script: slpSend(tokenId, SLP_MINT_VAULT, [1000, 1500]),
+ sats: 0n,
+ script: slpSend(tokenId, SLP_MINT_VAULT, [1000n, 1500n]),
},
- { value: 546, script: p2pkh2 },
- { value: 546, script: p2pkh4 },
+ { sats: 546n, script: p2pkh2 },
+ { sats: 546n, script: p2pkh4 },
],
});
const sendTx = txBuildSend.sign();
@@ -630,13 +630,13 @@
prevOut: sendTx.inputs[0].prevOut,
sequenceNo: 0xffffffff,
token: {
- amount: '500',
+ atoms: 500n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_MINT_VAULT,
},
- value: 546,
+ sats: 546n,
},
{
inputScript: toHex(sendTx.inputs[1].script!.bytecode),
@@ -644,41 +644,41 @@
prevOut: sendTx.inputs[1].prevOut,
sequenceNo: 0xffffffff,
token: {
- amount: '2000',
+ atoms: 2000n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_MINT_VAULT,
},
- value: 10000,
+ sats: 10000n,
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript: toHex(sendTx.outputs[0].script.bytecode),
},
{
outputScript: toHex(p2pkh2.bytecode),
token: {
- amount: '1000',
+ atoms: 1000n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_MINT_VAULT,
},
- value: 546,
+ sats: 546n,
},
{
outputScript: toHex(p2pkh4.bytecode),
token: {
- amount: '1500',
+ atoms: 1500n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_MINT_VAULT,
},
- value: 546,
+ sats: 546n,
},
],
lockTime: 0,
@@ -688,11 +688,11 @@
isFinal: false,
tokenEntries: [
{
- actualBurnAmount: '0',
+ actualBurnAtoms: 0n,
burnSummary: '',
burnsMintBatons: false,
failedColorings: [],
- intentionalBurn: '0',
+ intentionalBurnAtoms: 0n,
isInvalid: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_MINT_VAULT,
@@ -725,7 +725,7 @@
const pkh4 = shaRmd160(pk4);
const p2pkh4 = Script.p2pkh(pkh4);
- await runner.sendToScript(50000, p2pkh1);
+ await runner.sendToScript(50000n, p2pkh1);
const utxos = await chronik.script('p2pkh', toHex(pkh1)).utxos();
expect(utxos.utxos.length).to.equal(1);
@@ -737,7 +737,7 @@
input: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
outputScript: p2pkh1,
},
},
@@ -746,7 +746,7 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: slpGenesis(
SLP_NFT1_GROUP,
{
@@ -756,12 +756,12 @@
hash: '000111222333444555666777888999aaabbbcccdddeeefff0001112223334444',
decimals: 4,
},
- 2000,
+ 2000n,
2,
),
},
- { value: 10000, script: p2pkh2 },
- { value: 10000, script: p2pkh1 },
+ { sats: 10000n, script: p2pkh2 },
+ { sats: 10000n, script: p2pkh1 },
],
});
const genesisTx = txBuildGenesisGroup.sign();
@@ -790,10 +790,10 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 10000,
+ sats: 10000n,
isFinal: false,
token: {
- amount: '2000',
+ atoms: 2000n,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_GROUP,
@@ -810,7 +810,7 @@
outIdx: 2,
},
signData: {
- value: 10000,
+ sats: 10000n,
outputScript: p2pkh1,
},
},
@@ -819,11 +819,11 @@
],
outputs: [
{
- value: 0,
- script: slpMint(tokenId, SLP_NFT1_GROUP, 500, 2),
+ sats: 0n,
+ script: slpMint(tokenId, SLP_NFT1_GROUP, 500n, 2),
},
- { value: 546, script: p2pkh1 },
- { value: 546, script: p2pkh3 },
+ { sats: 546n, script: p2pkh1 },
+ { sats: 546n, script: p2pkh3 },
],
});
const mintTx = txBuildMint.sign();
@@ -838,10 +838,10 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 546,
+ sats: 546n,
isFinal: false,
token: {
- amount: '0',
+ atoms: 0n,
isMintBaton: true,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_GROUP,
@@ -858,7 +858,7 @@
outIdx: 1,
},
signData: {
- value: 546,
+ sats: 546n,
outputScript: p2pkh1,
},
},
@@ -871,7 +871,7 @@
outIdx: 1,
},
signData: {
- value: 10000,
+ sats: 10000n,
outputScript: p2pkh2,
},
},
@@ -880,11 +880,11 @@
],
outputs: [
{
- value: 0,
- script: slpSend(tokenId, SLP_NFT1_GROUP, [1, 2499]),
+ sats: 0n,
+ script: slpSend(tokenId, SLP_NFT1_GROUP, [1n, 2499n]),
},
- { value: 8000, script: p2pkh2 },
- { value: 546, script: p2pkh4 },
+ { sats: 8000n, script: p2pkh2 },
+ { sats: 546n, script: p2pkh4 },
],
});
const sendTx = txBuildSend.sign();
@@ -901,13 +901,13 @@
prevOut: sendTx.inputs[0].prevOut,
sequenceNo: 0xffffffff,
token: {
- amount: '500',
+ atoms: 500n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_GROUP,
},
- value: 546,
+ sats: 546n,
},
{
inputScript: toHex(sendTx.inputs[1].script!.bytecode),
@@ -915,41 +915,41 @@
prevOut: sendTx.inputs[1].prevOut,
sequenceNo: 0xffffffff,
token: {
- amount: '2000',
+ atoms: 2000n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_GROUP,
},
- value: 10000,
+ sats: 10000n,
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript: toHex(sendTx.outputs[0].script.bytecode),
},
{
outputScript: toHex(p2pkh2.bytecode),
token: {
- amount: '1',
+ atoms: 1n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_GROUP,
},
- value: 8000,
+ sats: 8000n,
},
{
outputScript: toHex(p2pkh4.bytecode),
token: {
- amount: '2499',
+ atoms: 2499n,
entryIdx: 0,
isMintBaton: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_GROUP,
},
- value: 546,
+ sats: 546n,
},
],
lockTime: 0,
@@ -959,11 +959,11 @@
isFinal: false,
tokenEntries: [
{
- actualBurnAmount: '0',
+ actualBurnAtoms: 0n,
burnSummary: '',
burnsMintBatons: false,
failedColorings: [],
- intentionalBurn: '0',
+ intentionalBurnAtoms: 0n,
isInvalid: false,
tokenId: tokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_GROUP,
@@ -983,7 +983,7 @@
outIdx: 1,
},
signData: {
- value: 8000,
+ sats: 8000n,
outputScript: p2pkh2,
},
},
@@ -992,7 +992,7 @@
],
outputs: [
{
- value: 0,
+ sats: 0n,
script: slpGenesis(
SLP_NFT1_CHILD,
{
@@ -1002,10 +1002,10 @@
hash: '0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff',
decimals: 0,
},
- 1,
+ 1n,
),
},
- { value: 6000, script: p2pkh1 },
+ { sats: 6000n, script: p2pkh1 },
],
});
const genesisChildTx = txBuildGenesisChild.sign();
@@ -1036,7 +1036,7 @@
outIdx: 1,
},
signData: {
- value: 6000,
+ sats: 6000n,
outputScript: p2pkh1,
},
},
@@ -1045,11 +1045,11 @@
],
outputs: [
{
- value: 0,
- script: slpSend(childTokenId, SLP_NFT1_CHILD, [0, 1]),
+ sats: 0n,
+ script: slpSend(childTokenId, SLP_NFT1_CHILD, [0n, 1n]),
},
- { value: 546, script: p2pkh2 },
- { value: 546, script: p2pkh4 },
+ { sats: 546n, script: p2pkh2 },
+ { sats: 546n, script: p2pkh4 },
],
});
const childSendTx = txBuildChildSend.sign();
@@ -1067,34 +1067,34 @@
prevOut: childSendTx.inputs[0].prevOut,
sequenceNo: 0xffffffff,
token: {
- amount: '1',
+ atoms: 1n,
entryIdx: 0,
isMintBaton: false,
tokenId: childTokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_CHILD,
},
- value: 6000,
+ sats: 6000n,
},
],
outputs: [
{
- value: 0,
+ sats: 0n,
outputScript: toHex(childSendTx.outputs[0].script.bytecode),
},
{
outputScript: toHex(p2pkh2.bytecode),
- value: 546,
+ sats: 546n,
},
{
outputScript: toHex(p2pkh4.bytecode),
token: {
- amount: '1',
+ atoms: 1n,
entryIdx: 0,
isMintBaton: false,
tokenId: childTokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_CHILD,
},
- value: 546,
+ sats: 546n,
},
],
lockTime: 0,
@@ -1104,11 +1104,11 @@
isFinal: false,
tokenEntries: [
{
- actualBurnAmount: '0',
+ actualBurnAtoms: 0n,
burnSummary: '',
burnsMintBatons: false,
failedColorings: [],
- intentionalBurn: '0',
+ intentionalBurnAtoms: 0n,
isInvalid: false,
tokenId: childTokenId,
tokenType: SLP_TOKEN_TYPE_NFT1_CHILD,
diff --git a/modules/ecash-lib/tests/txBuilder.test.ts b/modules/ecash-lib/tests/txBuilder.test.ts
--- a/modules/ecash-lib/tests/txBuilder.test.ts
+++ b/modules/ecash-lib/tests/txBuilder.test.ts
@@ -36,7 +36,7 @@
import '../src/initNodeJs.js';
const NUM_COINS = 500;
-const COIN_VALUE = 100000;
+const COIN_VALUE = 100000n;
const SIG_HASH_TYPES = [
ALL_BIP143,
@@ -92,8 +92,8 @@
);
// Send some UTXOs to the wallet
- await runner.sendToScript(90000, p2pkh);
- await runner.sendToScript(90000, p2pkh);
+ await runner.sendToScript(90000n, p2pkh);
+ await runner.sendToScript(90000n, p2pkh);
const utxos = await chronik.script('p2pkh', toHex(pkh)).utxos();
expect(utxos.utxos.length).to.equal(2);
@@ -104,7 +104,7 @@
input: {
prevOut: utxo.outpoint,
signData: {
- value: utxo.value,
+ sats: utxo.sats,
outputScript: p2pkh,
},
},
@@ -112,22 +112,22 @@
})),
outputs: [
// Recipient using a TxOutput
- { value: 120000, script: recipientScript },
+ { sats: 120000n, script: recipientScript },
// Recipient using a TxOutputAddress (p2pkh)
{
- value: 10000,
+ sats: 10000n,
script: Script.fromAddress(otherRecipientAddressP2pkh),
},
// Recipient using a TxOutputAddress (p2sh)
{
- value: 10000,
+ sats: 10000n,
script: Script.fromAddress(otherRecipientAddressP2sh),
},
// Leftover change back to wallet
p2pkh,
],
});
- const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546 });
+ const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546n });
const txid = (await chronik.broadcastTx(spendTx.ser())).txid;
// Now have 1 UTXO change in the wallet
@@ -140,7 +140,9 @@
},
blockHeight: -1,
isCoinbase: false,
- value: 90000 * 2 - 120000 - 10000 - 10000 - spendTx.serSize(),
+ sats: BigInt(
+ 90000 * 2 - 120000 - 10000 - 10000 - spendTx.serSize(),
+ ),
isFinal: false,
},
]);
@@ -155,7 +157,7 @@
const p2pkh = Script.p2pkh(pkh);
for (const sigHashType of SIG_HASH_TYPES) {
- const txid = await runner.sendToScript(90000, p2pkh);
+ const txid = await runner.sendToScript(90000n, p2pkh);
const txBuild = new TxBuilder({
inputs: [
{
@@ -165,7 +167,7 @@
outIdx: 0,
},
signData: {
- value: 90000,
+ sats: 90000n,
outputScript: p2pkh,
},
},
@@ -174,7 +176,7 @@
],
outputs: [p2pkh],
});
- const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546 });
+ const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546n });
await chronik.broadcastTx(spendTx.ser());
}
});
@@ -187,7 +189,7 @@
const p2pk = Script.fromOps([pushBytesOp(pk), OP_CHECKSIG]);
for (const sigHashType of SIG_HASH_TYPES) {
- const txid = await runner.sendToScript(90000, p2pk);
+ const txid = await runner.sendToScript(90000n, p2pk);
const txBuild = new TxBuilder({
inputs: [
{
@@ -197,7 +199,7 @@
outIdx: 0,
},
signData: {
- value: 90000,
+ sats: 90000n,
outputScript: p2pk,
},
},
@@ -206,7 +208,7 @@
],
outputs: [p2pk],
});
- const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546 });
+ const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546n });
await chronik.broadcastTx(spendTx.ser());
}
});
@@ -219,7 +221,7 @@
const p2pk = Script.fromOps([pushBytesOp(pk), OP_CHECKSIG]);
for (const sigHashType of SIG_HASH_TYPES) {
- const txid = await runner.sendToScript(90000, p2pk);
+ const txid = await runner.sendToScript(90000n, p2pk);
const txBuild = new TxBuilder({
inputs: [
{
@@ -230,7 +232,7 @@
},
sequence: 0x92345678,
signData: {
- value: 90000,
+ sats: 90000n,
outputScript: p2pk,
},
},
@@ -250,7 +252,7 @@
],
outputs: [p2pk],
});
- const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546 });
+ const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546n });
await chronik.broadcastTx(spendTx.ser());
}
});
@@ -268,7 +270,7 @@
const p2sh = Script.p2sh(shaRmd160(redeemScript.bytecode));
for (const sigHashType of SIG_HASH_TYPES) {
- const txid = await runner.sendToScript(90000, p2sh);
+ const txid = await runner.sendToScript(90000n, p2sh);
const txBuild = new TxBuilder({
inputs: [
{
@@ -278,7 +280,7 @@
outIdx: 0,
},
signData: {
- value: 90000,
+ sats: 90000n,
redeemScript,
},
},
@@ -302,7 +304,7 @@
],
outputs: [p2sh],
});
- const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546 });
+ const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546n });
await chronik.broadcastTx(spendTx.ser());
}
});
@@ -330,7 +332,7 @@
const p2sh = Script.p2sh(shaRmd160(redeemScript.bytecode));
for (const sigHashType of SIG_HASH_TYPES) {
- const txid = await runner.sendToScript(90000, p2sh);
+ const txid = await runner.sendToScript(90000n, p2sh);
const txBuild = new TxBuilder({
inputs: [
{
@@ -341,7 +343,7 @@
},
sequence: 0x98765432,
signData: {
- value: 90000,
+ sats: 90000n,
redeemScript,
},
},
@@ -375,7 +377,7 @@
],
outputs: [p2sh],
});
- const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546 });
+ const spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546n });
await chronik.broadcastTx(spendTx.ser());
}
});
@@ -392,7 +394,7 @@
OP_CHECKSIG,
]);
const p2sh = Script.p2sh(shaRmd160(redeemScript.bytecode));
- const txid = await runner.sendToScript(90000, p2sh);
+ const txid = await runner.sendToScript(90000n, p2sh);
const txBuild = new TxBuilder({
inputs: [
{
@@ -402,7 +404,7 @@
outIdx: 0,
},
signData: {
- value: 90000,
+ sats: 90000n,
redeemScript,
},
},
@@ -428,77 +430,77 @@
],
outputs: [
{
- value: 20000,
+ sats: 20000n,
script: Script.p2pkh(shaRmd160(pk1)),
},
Script.p2pkh(shaRmd160(pk2)),
{
- value: 30000,
+ sats: 30000n,
script: Script.p2pkh(shaRmd160(pk2)),
},
],
});
// 0sats/kB (not broadcast)
- let spendTx = txBuild.sign({ feePerKb: 0, dustLimit: 546 });
- expect(spendTx.outputs[1].value).to.equal(40000n);
+ let spendTx = txBuild.sign({ feePerKb: 0, dustLimit: 546n });
+ expect(spendTx.outputs[1].sats).to.equal(40000n);
// 1ksats/kB
- spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546 });
+ spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546n });
await chronik.broadcastTx(spendTx.ser());
- expect(spendTx.outputs[1].value).to.equal(
+ expect(spendTx.outputs[1].sats).to.equal(
BigInt(40000 - spendTx.serSize()),
);
// 10ksats/kB
txBuild.inputs[0].input.prevOut.txid = await runner.sendToScript(
- 90000,
+ 90000n,
p2sh,
);
- spendTx = txBuild.sign({ feePerKb: 10000, dustLimit: 546 });
+ spendTx = txBuild.sign({ feePerKb: 10000, dustLimit: 546n });
await chronik.broadcastTx(spendTx.ser());
- expect(spendTx.outputs[1].value).to.equal(
+ expect(spendTx.outputs[1].sats).to.equal(
BigInt(40000 - 10 * spendTx.serSize()),
);
// 100ksats/kB
txBuild.inputs[0].input.prevOut.txid = await runner.sendToScript(
- 90000,
+ 90000n,
p2sh,
);
- spendTx = txBuild.sign({ feePerKb: 100000, dustLimit: 546 });
+ spendTx = txBuild.sign({ feePerKb: 100000, dustLimit: 546n });
await chronik.broadcastTx(spendTx.ser());
- expect(spendTx.outputs[1].value).to.equal(
+ expect(spendTx.outputs[1].sats).to.equal(
BigInt(40000 - 100 * spendTx.serSize()),
);
// 120ksats/kB, deletes leftover output
txBuild.inputs[0].input.prevOut.txid = await runner.sendToScript(
- 90000,
+ 90000n,
p2sh,
);
- spendTx = txBuild.sign({ feePerKb: 120000, dustLimit: 546 });
+ spendTx = txBuild.sign({ feePerKb: 120000, dustLimit: 546n });
await chronik.broadcastTx(spendTx.ser());
expect(spendTx.outputs.length).to.equal(2);
// 100ksats/kB with a 5000 dust limit deletes leftover too
txBuild.inputs[0].input.prevOut.txid = await runner.sendToScript(
- 90000,
+ 90000n,
p2sh,
);
- spendTx = txBuild.sign({ feePerKb: 100000, dustLimit: 5000 });
+ spendTx = txBuild.sign({ feePerKb: 100000, dustLimit: 5000n });
await chronik.broadcastTx(spendTx.ser());
expect(spendTx.outputs.length).to.equal(2);
// 1000ksats/kB does't have sufficient sats even without leftover
txBuild.inputs[0].input.prevOut.txid = await runner.sendToScript(
- 90000,
+ 90000n,
p2sh,
);
expect(() =>
- txBuild.sign({ feePerKb: 1000000, dustLimit: 546 }),
+ txBuild.sign({ feePerKb: 1000000, dustLimit: 546n }),
).to.throw(
- `Insufficient input value (90000): Can only pay for 40000 fees, ` +
+ `Insufficient input sats (90000): Can only pay for 40000 fees, ` +
`but ${spendTx.serSize() * 1000} required`,
);
});
@@ -520,7 +522,7 @@
OP_CHECKSIG,
]);
const p2sh = Script.p2sh(shaRmd160(redeemScript.bytecode));
- const txid = await runner.sendToScript(90000, p2sh);
+ const txid = await runner.sendToScript(90000n, p2sh);
const txBuild = new TxBuilder({
inputs: [
{
@@ -530,7 +532,7 @@
outIdx: 0,
},
signData: {
- value: 90000,
+ sats: 90000n,
redeemScript,
},
},
@@ -556,11 +558,11 @@
],
outputs: [
{
- value: 20000,
+ sats: 20000n,
script: Script.p2pkh(shaRmd160(pk1)),
},
{
- value: 30000,
+ sats: 30000n,
script: Script.p2pkh(shaRmd160(pk2)),
},
// Leftover (change) output is specified as Script
@@ -569,13 +571,13 @@
});
// 0sats/kB (not broadcast)
- let spendTx = txBuild.sign({ feePerKb: 0, dustLimit: 546 });
- expect(spendTx.outputs[2].value).to.equal(40000n);
+ let spendTx = txBuild.sign({ feePerKb: 0, dustLimit: 546n });
+ expect(spendTx.outputs[2].sats).to.equal(40000n);
// 1ksats/kB
- spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546 });
+ spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546n });
await chronik.broadcastTx(spendTx.ser());
- expect(spendTx.outputs[2].value).to.equal(
+ expect(spendTx.outputs[2].sats).to.equal(
BigInt(40000 - spendTx.serSize()),
);
});
@@ -592,11 +594,11 @@
txBuild.inputs.push({
input: {
prevOut: {
- txid: await runner.sendToScript(90000, p2pkh),
+ txid: await runner.sendToScript(90000n, p2pkh),
outIdx: 0,
},
signData: {
- value: 90000,
+ sats: 90000n,
outputScript: p2pkh,
},
},
@@ -606,17 +608,17 @@
txBuild.outputs.push(Script.p2pkh(shaRmd160(pk2)));
const txSize = 8896;
const extraOutput = {
- value: 90000 * 2 - (txSize + 252 * 546),
+ sats: BigInt(90000 * 2 - (txSize + 252 * 546)),
script: p2pkh,
};
txBuild.outputs.push(extraOutput);
for (let i = 0; i < 251; ++i) {
- txBuild.outputs.push({ value: 546, script: p2pkh });
+ txBuild.outputs.push({ sats: 546n, script: p2pkh });
}
expect(txBuild.outputs.length).to.equal(253);
- let spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546 });
+ let spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546n });
expect(spendTx.serSize()).to.equal(txSize);
- expect(spendTx.outputs[0].value).to.equal(BigInt(546));
+ expect(spendTx.outputs[0].sats).to.equal(BigInt(546));
// If we remove the leftover output from the tx, we also remove 2 extra
// bytes from the VARSIZE of the output, because 253 requires 3 bytes to
@@ -624,15 +626,17 @@
const p2pkhSize = 8 + 1 + 25;
const smallerSize = txSize - p2pkhSize - 2;
// We can add 2 extra sats for the VARSIZE savings and it's handled fine
- extraOutput.value += 546 + p2pkhSize + 2;
- spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546 });
+ extraOutput.sats += 546n + BigInt(p2pkhSize) + 2n;
+ spendTx = txBuild.sign({ feePerKb: 1000, dustLimit: 546n });
expect(spendTx.serSize()).to.equal(smallerSize);
expect(spendTx.outputs.length).to.equal(252);
// Adding 1 extra sat -> fails -> showing that the previous tx was exact
- extraOutput.value += 1;
- expect(() => txBuild.sign({ feePerKb: 1000, dustLimit: 546 })).to.throw(
- `Insufficient input value (180000): Can only pay for ` +
+ extraOutput.sats += 1n;
+ expect(() =>
+ txBuild.sign({ feePerKb: 1000, dustLimit: 546n }),
+ ).to.throw(
+ `Insufficient input sats (180000): Can only pay for ` +
`${smallerSize - 1} fees, but ${smallerSize} required`,
);
});
@@ -656,7 +660,7 @@
outIdx: 0,
},
signData: {
- value: expectedSize,
+ sats: BigInt(expectedSize),
},
},
signatory: (_, input) => {
@@ -672,7 +676,7 @@
// Leftover script, but will be spliced out again
outputs: [new Script()],
});
- const tx = txBuild.sign({ feePerKb: 1000, dustLimit: 9999 });
+ const tx = txBuild.sign({ feePerKb: 1000, dustLimit: 9999n });
expect(tx.serSize()).to.equal(expectedSize);
});
@@ -690,10 +694,12 @@
],
outputs: [new Script()],
});
- expect(() => txBuild.sign({ feePerKb: 1000, dustLimit: 546 })).to.throw(
- 'Using a leftover output requires setting SignData.value for all inputs',
+ expect(() =>
+ txBuild.sign({ feePerKb: 1000, dustLimit: 546n }),
+ ).to.throw(
+ 'Using a leftover output requires setting SignData.sats for all inputs',
);
- txBuild.inputs[0].input.signData = { value: 1234 };
+ txBuild.inputs[0].input.signData = { sats: 1234n };
expect(() => txBuild.sign({ feePerKb: 1000 })).to.throw(
'Using a leftover output requires setting dustLimit',
);
diff --git a/test/functional/chronik_token_burn.py b/test/functional/chronik_token_burn.py
--- a/test/functional/chronik_token_burn.py
+++ b/test/functional/chronik_token_burn.py
@@ -203,7 +203,7 @@
token_id=genesis_alp.txid,
token_type=pb.TokenType(alp=pb.ALP_TOKEN_TYPE_STANDARD),
tx_type=pb.SEND,
- burn_summary="Unexpected burn: Burns 600 base tokens, but intended to burn 500; burned 100 too many",
+ burn_summary="Unexpected burn: Burns 600 atoms, but intended to burn 500; burned 100 too many",
actual_burn_amount="600",
intentional_burn=500,
),
@@ -217,7 +217,7 @@
txs.append(burn_alp)
burn_alp.send(
chronik,
- error=f"400: Tx {burn_alp.txid} failed token checks: Unexpected burn: Burns 600 base tokens, but intended to burn 500; burned 100 too many.",
+ error=f"400: Tx {burn_alp.txid} failed token checks: Unexpected burn: Burns 600 atoms, but intended to burn 500; burned 100 too many.",
)
burn_alp.test(chronik)
@@ -247,7 +247,7 @@
token_id=genesis_alp.txid,
token_type=pb.TokenType(alp=pb.ALP_TOKEN_TYPE_STANDARD),
is_invalid=True,
- burn_summary="Unexpected burn: Burns 400 base tokens",
+ burn_summary="Unexpected burn: Burns 400 atoms",
actual_burn_amount="400",
),
],
@@ -263,7 +263,7 @@
txs.append(bare_burn)
bare_burn.send(
chronik,
- error=f"400: Tx {bare_burn.txid} failed token checks: Unexpected burn: Burns mint baton(s). Unexpected burn: Burns 400 base tokens.",
+ error=f"400: Tx {bare_burn.txid} failed token checks: Unexpected burn: Burns mint baton(s). Unexpected burn: Burns 400 atoms.",
)
bare_burn.test(chronik)

File Metadata

Mime Type
text/plain
Expires
Tue, May 20, 22:11 (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5866027
Default Alt Text
D17650.id52596.diff (1 MB)

Event Timeline