@cardano-sdk/core 0.32.0 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Asset/NftMetadata/fromMetadatum.js +2 -2
- package/dist/cjs/Asset/NftMetadata/fromMetadatum.js.map +1 -1
- package/dist/cjs/Asset/util/subtractTokenMaps.js +2 -2
- package/dist/cjs/Asset/util/subtractTokenMaps.js.map +1 -1
- package/dist/cjs/Cardano/types/Block.d.ts +4 -2
- package/dist/cjs/Cardano/types/Block.d.ts.map +1 -1
- package/dist/cjs/Cardano/types/Block.js +3 -4
- package/dist/cjs/Cardano/types/Block.js.map +1 -1
- package/dist/cjs/Cardano/types/Transaction.d.ts +16 -6
- package/dist/cjs/Cardano/types/Transaction.d.ts.map +1 -1
- package/dist/cjs/Cardano/types/Transaction.js.map +1 -1
- package/dist/cjs/Cardano/util/index.d.ts +0 -1
- package/dist/cjs/Cardano/util/index.d.ts.map +1 -1
- package/dist/cjs/Cardano/util/index.js +0 -1
- package/dist/cjs/Cardano/util/index.js.map +1 -1
- package/dist/cjs/CardanoNode/types/CardanoNodeErrors.d.ts +8 -0
- package/dist/cjs/CardanoNode/types/CardanoNodeErrors.d.ts.map +1 -1
- package/dist/cjs/CardanoNode/types/CardanoNodeErrors.js +5 -0
- package/dist/cjs/CardanoNode/types/CardanoNodeErrors.js.map +1 -1
- package/dist/cjs/CardanoNode/types/ObservableCardanoNode.d.ts +2 -1
- package/dist/cjs/CardanoNode/types/ObservableCardanoNode.d.ts.map +1 -1
- package/dist/cjs/CardanoNode/types/ObservableCardanoNode.js.map +1 -1
- package/dist/cjs/CardanoNode/types/index.d.ts +0 -1
- package/dist/cjs/CardanoNode/types/index.d.ts.map +1 -1
- package/dist/cjs/CardanoNode/types/index.js +0 -14
- package/dist/cjs/CardanoNode/types/index.js.map +1 -1
- package/dist/cjs/CardanoNode/util/cardanoNodeErrors.d.ts +5 -4
- package/dist/cjs/CardanoNode/util/cardanoNodeErrors.d.ts.map +1 -1
- package/dist/cjs/CardanoNode/util/cardanoNodeErrors.js +3 -1
- package/dist/cjs/CardanoNode/util/cardanoNodeErrors.js.map +1 -1
- package/dist/cjs/Serialization/Common/Datum.d.ts +2 -0
- package/dist/cjs/Serialization/Common/Datum.d.ts.map +1 -1
- package/dist/cjs/Serialization/Common/Datum.js +3 -2
- package/dist/cjs/Serialization/Common/Datum.js.map +1 -1
- package/dist/cjs/Serialization/PlutusData/PlutusData.d.ts +2 -0
- package/dist/cjs/Serialization/PlutusData/PlutusData.d.ts.map +1 -1
- package/dist/cjs/Serialization/PlutusData/PlutusData.js +6 -0
- package/dist/cjs/Serialization/PlutusData/PlutusData.js.map +1 -1
- package/dist/cjs/Serialization/PlutusData/PlutusList.d.ts.map +1 -1
- package/dist/cjs/Serialization/PlutusData/PlutusList.js +6 -16
- package/dist/cjs/Serialization/PlutusData/PlutusList.js.map +1 -1
- package/dist/cjs/Serialization/TransactionWitnessSet/Redeemer/Redeemer.d.ts +2 -0
- package/dist/cjs/Serialization/TransactionWitnessSet/Redeemer/Redeemer.d.ts.map +1 -1
- package/dist/cjs/Serialization/TransactionWitnessSet/Redeemer/Redeemer.js +6 -0
- package/dist/cjs/Serialization/TransactionWitnessSet/Redeemer/Redeemer.js.map +1 -1
- package/dist/cjs/Serialization/TransactionWitnessSet/TransactionWitnessSet.js +3 -3
- package/dist/cjs/Serialization/TransactionWitnessSet/TransactionWitnessSet.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/cjs/util/slotCalc.js +12 -12
- package/dist/cjs/util/slotCalc.js.map +1 -1
- package/dist/cjs/util/tokenTransferInspector.js +3 -3
- package/dist/cjs/util/tokenTransferInspector.js.map +1 -1
- package/dist/esm/Asset/NftMetadata/fromMetadatum.d.ts +3 -3
- package/dist/esm/Asset/NftMetadata/fromMetadatum.js +7 -7
- package/dist/esm/Asset/NftMetadata/fromMetadatum.js.map +1 -1
- package/dist/esm/Asset/NftMetadata/fromPlutusData.d.ts +2 -2
- package/dist/esm/Asset/NftMetadata/fromPlutusData.js +3 -3
- package/dist/esm/Asset/NftMetadata/index.d.ts +7 -7
- package/dist/esm/Asset/NftMetadata/index.js +4 -4
- package/dist/esm/Asset/NftMetadata/types.d.ts +1 -1
- package/dist/esm/Asset/cip67.d.ts +1 -1
- package/dist/esm/Asset/cip67.js +2 -2
- package/dist/esm/Asset/index.d.ts +4 -4
- package/dist/esm/Asset/index.js +4 -4
- package/dist/esm/Asset/types/AssetInfo.d.ts +3 -3
- package/dist/esm/Asset/types/TokenMetadata.d.ts +1 -1
- package/dist/esm/Asset/types/index.d.ts +2 -2
- package/dist/esm/Asset/types/index.js +2 -2
- package/dist/esm/Asset/util/coalesceTokenMaps.d.ts +1 -1
- package/dist/esm/Asset/util/index.d.ts +4 -4
- package/dist/esm/Asset/util/index.js +4 -4
- package/dist/esm/Asset/util/removeNegativesFromTokenMap.d.ts +1 -1
- package/dist/esm/Asset/util/subtractTokenMaps.d.ts +1 -1
- package/dist/esm/Asset/util/subtractTokenMaps.js +1 -1
- package/dist/esm/Asset/util/subtractTokenMaps.js.map +1 -1
- package/dist/esm/CBOR/TxBodyCBOR.d.ts +1 -1
- package/dist/esm/CBOR/TxBodyCBOR.js +1 -1
- package/dist/esm/CBOR/TxCBOR.d.ts +2 -2
- package/dist/esm/CBOR/TxCBOR.js +1 -1
- package/dist/esm/CBOR/index.d.ts +2 -2
- package/dist/esm/CBOR/index.js +2 -2
- package/dist/esm/Cardano/Address/Address.d.ts +8 -8
- package/dist/esm/Cardano/Address/Address.js +6 -6
- package/dist/esm/Cardano/Address/BaseAddress.d.ts +2 -2
- package/dist/esm/Cardano/Address/BaseAddress.js +1 -1
- package/dist/esm/Cardano/Address/ByronAddress.d.ts +1 -1
- package/dist/esm/Cardano/Address/ByronAddress.js +2 -2
- package/dist/esm/Cardano/Address/DRepID.js +1 -1
- package/dist/esm/Cardano/Address/EnterpriseAddress.d.ts +2 -2
- package/dist/esm/Cardano/Address/EnterpriseAddress.js +1 -1
- package/dist/esm/Cardano/Address/PaymentAddress.d.ts +4 -4
- package/dist/esm/Cardano/Address/PaymentAddress.js +2 -2
- package/dist/esm/Cardano/Address/PointerAddress.d.ts +3 -3
- package/dist/esm/Cardano/Address/PointerAddress.js +2 -2
- package/dist/esm/Cardano/Address/RewardAccount.d.ts +2 -2
- package/dist/esm/Cardano/Address/RewardAccount.js +2 -2
- package/dist/esm/Cardano/Address/RewardAddress.d.ts +2 -2
- package/dist/esm/Cardano/Address/RewardAddress.js +1 -1
- package/dist/esm/Cardano/Address/index.d.ts +9 -9
- package/dist/esm/Cardano/Address/index.js +9 -9
- package/dist/esm/Cardano/index.d.ts +4 -4
- package/dist/esm/Cardano/index.js +4 -4
- package/dist/esm/Cardano/types/Asset.js +1 -1
- package/dist/esm/Cardano/types/AuxiliaryData.d.ts +1 -1
- package/dist/esm/Cardano/types/AuxiliaryData.js +2 -2
- package/dist/esm/Cardano/types/Block.d.ts +7 -5
- package/dist/esm/Cardano/types/Block.d.ts.map +1 -1
- package/dist/esm/Cardano/types/Block.js +3 -3
- package/dist/esm/Cardano/types/Block.js.map +1 -1
- package/dist/esm/Cardano/types/Certificate.d.ts +5 -5
- package/dist/esm/Cardano/types/Certificate.js +1 -1
- package/dist/esm/Cardano/types/DelegationsAndRewards.d.ts +4 -4
- package/dist/esm/Cardano/types/DelegationsAndRewards.js +1 -1
- package/dist/esm/Cardano/types/Genesis.d.ts +3 -3
- package/dist/esm/Cardano/types/Governance.d.ts +4 -4
- package/dist/esm/Cardano/types/ProtocolParameters.d.ts +3 -3
- package/dist/esm/Cardano/types/Script.d.ts +1 -1
- package/dist/esm/Cardano/types/StakePool/ExtendedStakePoolMetadata.d.ts +1 -1
- package/dist/esm/Cardano/types/StakePool/PoolParameters.d.ts +6 -6
- package/dist/esm/Cardano/types/StakePool/StakePool.d.ts +4 -4
- package/dist/esm/Cardano/types/StakePool/index.d.ts +5 -5
- package/dist/esm/Cardano/types/StakePool/index.js +5 -5
- package/dist/esm/Cardano/types/Transaction.d.ts +27 -17
- package/dist/esm/Cardano/types/Transaction.d.ts.map +1 -1
- package/dist/esm/Cardano/types/Transaction.js +1 -1
- package/dist/esm/Cardano/types/Transaction.js.map +1 -1
- package/dist/esm/Cardano/types/Utxo.d.ts +5 -5
- package/dist/esm/Cardano/types/Value.d.ts +1 -1
- package/dist/esm/Cardano/types/index.d.ts +15 -15
- package/dist/esm/Cardano/types/index.js +15 -15
- package/dist/esm/Cardano/util/addressesShareAnyKey.d.ts +1 -1
- package/dist/esm/Cardano/util/addressesShareAnyKey.js +1 -1
- package/dist/esm/Cardano/util/computeImplicitCoin.d.ts +2 -2
- package/dist/esm/Cardano/util/computeImplicitCoin.js +1 -1
- package/dist/esm/Cardano/util/estimateStakePoolAPY.d.ts +1 -1
- package/dist/esm/Cardano/util/index.d.ts +7 -8
- package/dist/esm/Cardano/util/index.d.ts.map +1 -1
- package/dist/esm/Cardano/util/index.js +7 -8
- package/dist/esm/Cardano/util/index.js.map +1 -1
- package/dist/esm/Cardano/util/phase2Validation.d.ts +1 -1
- package/dist/esm/Cardano/util/phase2Validation.js +1 -1
- package/dist/esm/Cardano/util/plutusDataUtils.d.ts +1 -1
- package/dist/esm/Cardano/util/resolveInputValue.d.ts +1 -1
- package/dist/esm/CardanoNode/index.d.ts +2 -2
- package/dist/esm/CardanoNode/index.js +2 -2
- package/dist/esm/CardanoNode/types/CardanoNode.d.ts +3 -3
- package/dist/esm/CardanoNode/types/CardanoNodeErrors.d.ts +9 -1
- package/dist/esm/CardanoNode/types/CardanoNodeErrors.d.ts.map +1 -1
- package/dist/esm/CardanoNode/types/CardanoNodeErrors.js +5 -0
- package/dist/esm/CardanoNode/types/CardanoNodeErrors.js.map +1 -1
- package/dist/esm/CardanoNode/types/ObservableCardanoNode.d.ts +3 -2
- package/dist/esm/CardanoNode/types/ObservableCardanoNode.d.ts.map +1 -1
- package/dist/esm/CardanoNode/types/ObservableCardanoNode.js +1 -1
- package/dist/esm/CardanoNode/types/ObservableCardanoNode.js.map +1 -1
- package/dist/esm/CardanoNode/types/index.d.ts +3 -4
- package/dist/esm/CardanoNode/types/index.d.ts.map +1 -1
- package/dist/esm/CardanoNode/types/index.js +3 -4
- package/dist/esm/CardanoNode/types/index.js.map +1 -1
- package/dist/esm/CardanoNode/util/bufferChainSyncEvent.d.ts +1 -1
- package/dist/esm/CardanoNode/util/cardanoNodeErrors.d.ts +5 -4
- package/dist/esm/CardanoNode/util/cardanoNodeErrors.d.ts.map +1 -1
- package/dist/esm/CardanoNode/util/cardanoNodeErrors.js +2 -1
- package/dist/esm/CardanoNode/util/cardanoNodeErrors.js.map +1 -1
- package/dist/esm/CardanoNode/util/index.d.ts +2 -2
- package/dist/esm/CardanoNode/util/index.js +2 -2
- package/dist/esm/CardanoNode/util/stakeDistribution.d.ts +2 -2
- package/dist/esm/Provider/AssetProvider/index.d.ts +1 -1
- package/dist/esm/Provider/AssetProvider/index.js +1 -1
- package/dist/esm/Provider/AssetProvider/types.d.ts +1 -1
- package/dist/esm/Provider/ChainHistoryProvider/index.d.ts +1 -1
- package/dist/esm/Provider/ChainHistoryProvider/index.js +1 -1
- package/dist/esm/Provider/ChainHistoryProvider/types.d.ts +1 -1
- package/dist/esm/Provider/HandleProvider/index.d.ts +1 -1
- package/dist/esm/Provider/HandleProvider/index.js +1 -1
- package/dist/esm/Provider/HandleProvider/types.d.ts +1 -1
- package/dist/esm/Provider/NetworkInfoProvider/index.d.ts +1 -1
- package/dist/esm/Provider/NetworkInfoProvider/index.js +1 -1
- package/dist/esm/Provider/NetworkInfoProvider/types.d.ts +1 -1
- package/dist/esm/Provider/Provider.d.ts +2 -2
- package/dist/esm/Provider/RewardsProvider/index.d.ts +1 -1
- package/dist/esm/Provider/RewardsProvider/index.js +1 -1
- package/dist/esm/Provider/RewardsProvider/types.d.ts +2 -2
- package/dist/esm/Provider/StakePoolProvider/index.d.ts +2 -2
- package/dist/esm/Provider/StakePoolProvider/index.js +2 -2
- package/dist/esm/Provider/StakePoolProvider/types/StakePoolProvider.d.ts +3 -3
- package/dist/esm/Provider/StakePoolProvider/types/index.d.ts +1 -1
- package/dist/esm/Provider/StakePoolProvider/types/index.js +1 -1
- package/dist/esm/Provider/TxSubmitProvider/index.d.ts +1 -1
- package/dist/esm/Provider/TxSubmitProvider/index.js +1 -1
- package/dist/esm/Provider/TxSubmitProvider/types.d.ts +1 -1
- package/dist/esm/Provider/UtxoProvider/index.d.ts +1 -1
- package/dist/esm/Provider/UtxoProvider/index.js +1 -1
- package/dist/esm/Provider/UtxoProvider/types.d.ts +1 -1
- package/dist/esm/Provider/index.d.ts +12 -12
- package/dist/esm/Provider/index.js +12 -12
- package/dist/esm/Provider/providerUtil.d.ts +1 -1
- package/dist/esm/Provider/providerUtil.js +1 -1
- package/dist/esm/Provider/types/index.d.ts +1 -1
- package/dist/esm/Provider/types/index.js +1 -1
- package/dist/esm/Serialization/AuxiliaryData/AuxiliaryData.d.ts +3 -3
- package/dist/esm/Serialization/AuxiliaryData/AuxiliaryData.js +6 -6
- package/dist/esm/Serialization/AuxiliaryData/TransactionMetadata/GeneralTransactionMetadata.d.ts +2 -2
- package/dist/esm/Serialization/AuxiliaryData/TransactionMetadata/GeneralTransactionMetadata.js +3 -3
- package/dist/esm/Serialization/AuxiliaryData/TransactionMetadata/MetadatumList.d.ts +1 -1
- package/dist/esm/Serialization/AuxiliaryData/TransactionMetadata/MetadatumList.js +3 -3
- package/dist/esm/Serialization/AuxiliaryData/TransactionMetadata/MetadatumMap.d.ts +2 -2
- package/dist/esm/Serialization/AuxiliaryData/TransactionMetadata/MetadatumMap.js +4 -4
- package/dist/esm/Serialization/AuxiliaryData/TransactionMetadata/TransactionMetadatum.d.ts +4 -4
- package/dist/esm/Serialization/AuxiliaryData/TransactionMetadata/TransactionMetadatum.js +6 -6
- package/dist/esm/Serialization/AuxiliaryData/TransactionMetadata/index.d.ts +5 -5
- package/dist/esm/Serialization/AuxiliaryData/TransactionMetadata/index.js +5 -5
- package/dist/esm/Serialization/AuxiliaryData/index.d.ts +2 -2
- package/dist/esm/Serialization/AuxiliaryData/index.js +2 -2
- package/dist/esm/Serialization/CBOR/CborInitialByte.d.ts +2 -2
- package/dist/esm/Serialization/CBOR/CborReader.d.ts +4 -4
- package/dist/esm/Serialization/CBOR/CborReader.js +6 -6
- package/dist/esm/Serialization/CBOR/CborWriter.d.ts +1 -1
- package/dist/esm/Serialization/CBOR/CborWriter.js +4 -4
- package/dist/esm/Serialization/CBOR/Half.js +1 -1
- package/dist/esm/Serialization/CBOR/index.d.ts +9 -9
- package/dist/esm/Serialization/CBOR/index.js +9 -9
- package/dist/esm/Serialization/Certificates/AuthCommitteeHot.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/AuthCommitteeHot.js +3 -3
- package/dist/esm/Serialization/Certificates/Certificate.d.ts +21 -21
- package/dist/esm/Serialization/Certificates/Certificate.js +22 -22
- package/dist/esm/Serialization/Certificates/DRep/DRep.d.ts +2 -2
- package/dist/esm/Serialization/Certificates/DRep/DRep.js +3 -3
- package/dist/esm/Serialization/Certificates/DRep/index.d.ts +2 -2
- package/dist/esm/Serialization/Certificates/DRep/index.js +2 -2
- package/dist/esm/Serialization/Certificates/GenesisKeyDelegation.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/GenesisKeyDelegation.js +3 -3
- package/dist/esm/Serialization/Certificates/MoveInstantaneousReward/MoveInstantaneousReward.d.ts +3 -3
- package/dist/esm/Serialization/Certificates/MoveInstantaneousReward/MoveInstantaneousReward.js +5 -5
- package/dist/esm/Serialization/Certificates/MoveInstantaneousReward/MoveInstantaneousRewardToOtherPot.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/MoveInstantaneousReward/MoveInstantaneousRewardToOtherPot.js +2 -2
- package/dist/esm/Serialization/Certificates/MoveInstantaneousReward/MoveInstantaneousRewardToStakeCreds.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/MoveInstantaneousReward/MoveInstantaneousRewardToStakeCreds.js +2 -2
- package/dist/esm/Serialization/Certificates/MoveInstantaneousReward/index.d.ts +3 -3
- package/dist/esm/Serialization/Certificates/MoveInstantaneousReward/index.js +3 -3
- package/dist/esm/Serialization/Certificates/PoolParams/PoolMetadata.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/PoolParams/PoolMetadata.js +1 -1
- package/dist/esm/Serialization/Certificates/PoolParams/PoolParams.d.ts +6 -6
- package/dist/esm/Serialization/Certificates/PoolParams/PoolParams.js +6 -6
- package/dist/esm/Serialization/Certificates/PoolParams/Relay/MultiHostName.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/PoolParams/Relay/MultiHostName.js +1 -1
- package/dist/esm/Serialization/Certificates/PoolParams/Relay/Relay.d.ts +4 -4
- package/dist/esm/Serialization/Certificates/PoolParams/Relay/Relay.js +4 -4
- package/dist/esm/Serialization/Certificates/PoolParams/Relay/SingleHostAddr.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/PoolParams/Relay/SingleHostAddr.js +2 -2
- package/dist/esm/Serialization/Certificates/PoolParams/Relay/SingleHostName.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/PoolParams/Relay/SingleHostName.js +1 -1
- package/dist/esm/Serialization/Certificates/PoolParams/Relay/index.d.ts +4 -4
- package/dist/esm/Serialization/Certificates/PoolParams/Relay/index.js +4 -4
- package/dist/esm/Serialization/Certificates/PoolParams/index.d.ts +3 -3
- package/dist/esm/Serialization/Certificates/PoolParams/index.js +3 -3
- package/dist/esm/Serialization/Certificates/PoolRegistration.d.ts +2 -2
- package/dist/esm/Serialization/Certificates/PoolRegistration.js +4 -4
- package/dist/esm/Serialization/Certificates/PoolRetirement.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/PoolRetirement.js +3 -3
- package/dist/esm/Serialization/Certificates/RegisterDelegateRepresentative.d.ts +2 -2
- package/dist/esm/Serialization/Certificates/RegisterDelegateRepresentative.js +5 -5
- package/dist/esm/Serialization/Certificates/Registration.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/Registration.js +3 -3
- package/dist/esm/Serialization/Certificates/ResignCommitteeCold.d.ts +2 -2
- package/dist/esm/Serialization/Certificates/ResignCommitteeCold.js +5 -5
- package/dist/esm/Serialization/Certificates/StakeDelegation.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/StakeDelegation.js +3 -3
- package/dist/esm/Serialization/Certificates/StakeDeregistration.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/StakeDeregistration.js +3 -3
- package/dist/esm/Serialization/Certificates/StakeRegistration.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/StakeRegistration.js +3 -3
- package/dist/esm/Serialization/Certificates/StakeRegistrationDelegation.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/StakeRegistrationDelegation.js +4 -4
- package/dist/esm/Serialization/Certificates/StakeVoteDelegation.d.ts +2 -2
- package/dist/esm/Serialization/Certificates/StakeVoteDelegation.js +6 -6
- package/dist/esm/Serialization/Certificates/StakeVoteRegistrationDelegation.d.ts +2 -2
- package/dist/esm/Serialization/Certificates/StakeVoteRegistrationDelegation.js +6 -6
- package/dist/esm/Serialization/Certificates/UnregisterDelegateRepresentative.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/UnregisterDelegateRepresentative.js +3 -3
- package/dist/esm/Serialization/Certificates/Unregistration.d.ts +1 -1
- package/dist/esm/Serialization/Certificates/Unregistration.js +3 -3
- package/dist/esm/Serialization/Certificates/UpdateDelegateRepresentative.d.ts +2 -2
- package/dist/esm/Serialization/Certificates/UpdateDelegateRepresentative.js +5 -5
- package/dist/esm/Serialization/Certificates/VoteDelegation.d.ts +2 -2
- package/dist/esm/Serialization/Certificates/VoteDelegation.js +5 -5
- package/dist/esm/Serialization/Certificates/VoteRegistrationDelegation.d.ts +2 -2
- package/dist/esm/Serialization/Certificates/VoteRegistrationDelegation.js +5 -5
- package/dist/esm/Serialization/Certificates/index.d.ts +22 -22
- package/dist/esm/Serialization/Certificates/index.js +22 -22
- package/dist/esm/Serialization/Common/Anchor.d.ts +1 -1
- package/dist/esm/Serialization/Common/Anchor.js +1 -1
- package/dist/esm/Serialization/Common/CborSet.js +1 -1
- package/dist/esm/Serialization/Common/Credential.d.ts +1 -1
- package/dist/esm/Serialization/Common/Credential.js +2 -2
- package/dist/esm/Serialization/Common/Datum.d.ts +4 -2
- package/dist/esm/Serialization/Common/Datum.d.ts.map +1 -1
- package/dist/esm/Serialization/Common/Datum.js +3 -3
- package/dist/esm/Serialization/Common/Datum.js.map +1 -1
- package/dist/esm/Serialization/Common/ExUnits.d.ts +1 -1
- package/dist/esm/Serialization/Common/ExUnits.js +1 -1
- package/dist/esm/Serialization/Common/GovernanceActionId.d.ts +1 -1
- package/dist/esm/Serialization/Common/GovernanceActionId.js +1 -1
- package/dist/esm/Serialization/Common/Hash.js +1 -1
- package/dist/esm/Serialization/Common/ProtocolVersion.d.ts +1 -1
- package/dist/esm/Serialization/Common/ProtocolVersion.js +1 -1
- package/dist/esm/Serialization/Common/UnitInterval.d.ts +1 -1
- package/dist/esm/Serialization/Common/UnitInterval.js +1 -1
- package/dist/esm/Serialization/Common/index.d.ts +9 -9
- package/dist/esm/Serialization/Common/index.js +9 -9
- package/dist/esm/Serialization/PlutusData/ConstrPlutusData.d.ts +1 -1
- package/dist/esm/Serialization/PlutusData/ConstrPlutusData.js +3 -3
- package/dist/esm/Serialization/PlutusData/PlutusData.d.ts +7 -5
- package/dist/esm/Serialization/PlutusData/PlutusData.d.ts.map +1 -1
- package/dist/esm/Serialization/PlutusData/PlutusData.js +14 -8
- package/dist/esm/Serialization/PlutusData/PlutusData.js.map +1 -1
- package/dist/esm/Serialization/PlutusData/PlutusList.d.ts +1 -1
- package/dist/esm/Serialization/PlutusData/PlutusList.d.ts.map +1 -1
- package/dist/esm/Serialization/PlutusData/PlutusList.js +9 -19
- package/dist/esm/Serialization/PlutusData/PlutusList.js.map +1 -1
- package/dist/esm/Serialization/PlutusData/PlutusMap.d.ts +2 -2
- package/dist/esm/Serialization/PlutusData/PlutusMap.js +4 -4
- package/dist/esm/Serialization/PlutusData/index.d.ts +5 -5
- package/dist/esm/Serialization/PlutusData/index.js +5 -5
- package/dist/esm/Serialization/Scripts/NativeScript/NativeScript.d.ts +7 -7
- package/dist/esm/Serialization/Scripts/NativeScript/NativeScript.js +8 -8
- package/dist/esm/Serialization/Scripts/NativeScript/ScriptAll.d.ts +2 -2
- package/dist/esm/Serialization/Scripts/NativeScript/ScriptAll.js +3 -3
- package/dist/esm/Serialization/Scripts/NativeScript/ScriptAny.d.ts +2 -2
- package/dist/esm/Serialization/Scripts/NativeScript/ScriptAny.js +3 -3
- package/dist/esm/Serialization/Scripts/NativeScript/ScriptNOfK.d.ts +2 -2
- package/dist/esm/Serialization/Scripts/NativeScript/ScriptNOfK.js +3 -3
- package/dist/esm/Serialization/Scripts/NativeScript/ScriptPubkey.d.ts +1 -1
- package/dist/esm/Serialization/Scripts/NativeScript/ScriptPubkey.js +2 -2
- package/dist/esm/Serialization/Scripts/NativeScript/TimelockExpiry.d.ts +1 -1
- package/dist/esm/Serialization/Scripts/NativeScript/TimelockExpiry.js +2 -2
- package/dist/esm/Serialization/Scripts/NativeScript/TimelockStart.d.ts +1 -1
- package/dist/esm/Serialization/Scripts/NativeScript/TimelockStart.js +2 -2
- package/dist/esm/Serialization/Scripts/NativeScript/index.d.ts +7 -7
- package/dist/esm/Serialization/Scripts/NativeScript/index.js +7 -7
- package/dist/esm/Serialization/Scripts/PlutusScript/PlutusV1Script.d.ts +1 -1
- package/dist/esm/Serialization/Scripts/PlutusScript/PlutusV1Script.js +2 -2
- package/dist/esm/Serialization/Scripts/PlutusScript/PlutusV2Script.d.ts +1 -1
- package/dist/esm/Serialization/Scripts/PlutusScript/PlutusV2Script.js +2 -2
- package/dist/esm/Serialization/Scripts/PlutusScript/PlutusV3Script.d.ts +1 -1
- package/dist/esm/Serialization/Scripts/PlutusScript/PlutusV3Script.js +2 -2
- package/dist/esm/Serialization/Scripts/PlutusScript/index.d.ts +3 -3
- package/dist/esm/Serialization/Scripts/PlutusScript/index.js +3 -3
- package/dist/esm/Serialization/Scripts/Script.d.ts +4 -4
- package/dist/esm/Serialization/Scripts/Script.js +5 -5
- package/dist/esm/Serialization/Scripts/index.d.ts +3 -3
- package/dist/esm/Serialization/Scripts/index.js +3 -3
- package/dist/esm/Serialization/Transaction.d.ts +5 -5
- package/dist/esm/Serialization/Transaction.js +6 -6
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Committee.d.ts +2 -2
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Committee.js +3 -3
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Constitution.d.ts +2 -2
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Constitution.js +3 -3
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/HardForkInitiationAction.d.ts +3 -3
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/HardForkInitiationAction.js +6 -6
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/InfoAction.d.ts +1 -1
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/InfoAction.js +3 -3
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NewConstitution.d.ts +3 -3
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NewConstitution.js +6 -6
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NoConfidence.d.ts +2 -2
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NoConfidence.js +5 -5
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.d.ts +3 -3
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.js +6 -6
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ProposalProcedure.d.ts +10 -10
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ProposalProcedure.js +13 -13
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/TreasuryWithdrawalsAction.d.ts +1 -1
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/TreasuryWithdrawalsAction.js +6 -6
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/UpdateCommittee.d.ts +3 -3
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/UpdateCommittee.js +7 -7
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/index.d.ts +11 -11
- package/dist/esm/Serialization/TransactionBody/ProposalProcedure/index.js +11 -11
- package/dist/esm/Serialization/TransactionBody/TransactionBody.d.ts +8 -8
- package/dist/esm/Serialization/TransactionBody/TransactionBody.js +12 -12
- package/dist/esm/Serialization/TransactionBody/TransactionInput.d.ts +1 -1
- package/dist/esm/Serialization/TransactionBody/TransactionInput.js +1 -1
- package/dist/esm/Serialization/TransactionBody/TransactionOutput.d.ts +4 -4
- package/dist/esm/Serialization/TransactionBody/TransactionOutput.js +6 -6
- package/dist/esm/Serialization/TransactionBody/Utils.d.ts +1 -1
- package/dist/esm/Serialization/TransactionBody/Utils.js +1 -1
- package/dist/esm/Serialization/TransactionBody/Value.d.ts +1 -1
- package/dist/esm/Serialization/TransactionBody/Value.js +2 -2
- package/dist/esm/Serialization/TransactionBody/VotingProcedures/Voter.d.ts +2 -2
- package/dist/esm/Serialization/TransactionBody/VotingProcedures/Voter.js +3 -3
- package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedure.d.ts +3 -3
- package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedure.js +3 -3
- package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedures.d.ts +4 -4
- package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedures.js +5 -5
- package/dist/esm/Serialization/TransactionBody/VotingProcedures/index.d.ts +4 -4
- package/dist/esm/Serialization/TransactionBody/VotingProcedures/index.js +4 -4
- package/dist/esm/Serialization/TransactionBody/index.d.ts +6 -6
- package/dist/esm/Serialization/TransactionBody/index.js +6 -6
- package/dist/esm/Serialization/TransactionUnspentOutput.d.ts +2 -2
- package/dist/esm/Serialization/TransactionUnspentOutput.js +3 -3
- package/dist/esm/Serialization/TransactionWitnessSet/BootstrapWitness.d.ts +1 -1
- package/dist/esm/Serialization/TransactionWitnessSet/BootstrapWitness.js +2 -2
- package/dist/esm/Serialization/TransactionWitnessSet/Redeemer/Redeemer.d.ts +6 -4
- package/dist/esm/Serialization/TransactionWitnessSet/Redeemer/Redeemer.d.ts.map +1 -1
- package/dist/esm/Serialization/TransactionWitnessSet/Redeemer/Redeemer.js +12 -6
- package/dist/esm/Serialization/TransactionWitnessSet/Redeemer/Redeemer.js.map +1 -1
- package/dist/esm/Serialization/TransactionWitnessSet/Redeemer/Redeemers.d.ts +2 -2
- package/dist/esm/Serialization/TransactionWitnessSet/Redeemer/Redeemers.js +5 -5
- package/dist/esm/Serialization/TransactionWitnessSet/Redeemer/index.d.ts +3 -3
- package/dist/esm/Serialization/TransactionWitnessSet/Redeemer/index.js +3 -3
- package/dist/esm/Serialization/TransactionWitnessSet/TransactionWitnessSet.d.ts +7 -7
- package/dist/esm/Serialization/TransactionWitnessSet/TransactionWitnessSet.js +11 -11
- package/dist/esm/Serialization/TransactionWitnessSet/TransactionWitnessSet.js.map +1 -1
- package/dist/esm/Serialization/TransactionWitnessSet/VkeyWitness.js +2 -2
- package/dist/esm/Serialization/TransactionWitnessSet/index.d.ts +4 -4
- package/dist/esm/Serialization/TransactionWitnessSet/index.js +4 -4
- package/dist/esm/Serialization/Update/Costmdls/CostModel.d.ts +1 -1
- package/dist/esm/Serialization/Update/Costmdls/CostModel.js +1 -1
- package/dist/esm/Serialization/Update/Costmdls/Costmdls.d.ts +2 -2
- package/dist/esm/Serialization/Update/Costmdls/Costmdls.js +3 -3
- package/dist/esm/Serialization/Update/Costmdls/index.d.ts +2 -2
- package/dist/esm/Serialization/Update/Costmdls/index.js +2 -2
- package/dist/esm/Serialization/Update/DrepVotingThresholds.d.ts +2 -2
- package/dist/esm/Serialization/Update/DrepVotingThresholds.js +2 -2
- package/dist/esm/Serialization/Update/ExUnitPrices.d.ts +2 -2
- package/dist/esm/Serialization/Update/ExUnitPrices.js +2 -2
- package/dist/esm/Serialization/Update/PoolVotingThresholds.d.ts +2 -2
- package/dist/esm/Serialization/Update/PoolVotingThresholds.js +2 -2
- package/dist/esm/Serialization/Update/ProposedProtocolParameterUpdates.d.ts +2 -2
- package/dist/esm/Serialization/Update/ProposedProtocolParameterUpdates.js +2 -2
- package/dist/esm/Serialization/Update/ProtocolParamUpdate.d.ts +6 -6
- package/dist/esm/Serialization/Update/ProtocolParamUpdate.js +7 -7
- package/dist/esm/Serialization/Update/Update.d.ts +2 -2
- package/dist/esm/Serialization/Update/Update.js +3 -3
- package/dist/esm/Serialization/Update/index.d.ts +7 -7
- package/dist/esm/Serialization/Update/index.js +7 -7
- package/dist/esm/Serialization/index.d.ts +11 -11
- package/dist/esm/Serialization/index.js +11 -11
- package/dist/esm/errors.d.ts +1 -1
- package/dist/esm/index.d.ts +8 -8
- package/dist/esm/index.js +8 -8
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/util/calcStabilityWindow.d.ts +1 -1
- package/dist/esm/util/coalesceValueQuantities.d.ts +1 -1
- package/dist/esm/util/coalesceValueQuantities.js +1 -1
- package/dist/esm/util/index.d.ts +12 -12
- package/dist/esm/util/index.js +12 -12
- package/dist/esm/util/metadatum.d.ts +1 -1
- package/dist/esm/util/misc/index.d.ts +1 -1
- package/dist/esm/util/misc/index.js +1 -1
- package/dist/esm/util/nativeScript.d.ts +2 -2
- package/dist/esm/util/nativeScript.js +3 -3
- package/dist/esm/util/slotCalc.d.ts +3 -3
- package/dist/esm/util/slotCalc.js +5 -5
- package/dist/esm/util/slotCalc.js.map +1 -1
- package/dist/esm/util/subtractValueQuantities.d.ts +2 -2
- package/dist/esm/util/subtractValueQuantities.js +1 -1
- package/dist/esm/util/tokenTransferInspector.d.ts +4 -4
- package/dist/esm/util/tokenTransferInspector.js +4 -4
- package/dist/esm/util/tokenTransferInspector.js.map +1 -1
- package/dist/esm/util/transactionSummaryInspector.d.ts +4 -4
- package/dist/esm/util/transactionSummaryInspector.js +6 -6
- package/dist/esm/util/txInspector.d.ts +2 -2
- package/dist/esm/util/txInspector.js +6 -6
- package/package.json +9 -10
- package/dist/cjs/Cardano/util/txSubmissionErrors.d.ts +0 -4
- package/dist/cjs/Cardano/util/txSubmissionErrors.d.ts.map +0 -1
- package/dist/cjs/Cardano/util/txSubmissionErrors.js +0 -27
- package/dist/cjs/Cardano/util/txSubmissionErrors.js.map +0 -1
- package/dist/cjs/CardanoNode/types/CardanoNodeLegacyErrors.d.ts +0 -703
- package/dist/cjs/CardanoNode/types/CardanoNodeLegacyErrors.d.ts.map +0 -1
- package/dist/cjs/CardanoNode/types/CardanoNodeLegacyErrors.js +0 -106
- package/dist/cjs/CardanoNode/types/CardanoNodeLegacyErrors.js.map +0 -1
- package/dist/esm/Cardano/util/txSubmissionErrors.d.ts +0 -4
- package/dist/esm/Cardano/util/txSubmissionErrors.d.ts.map +0 -1
- package/dist/esm/Cardano/util/txSubmissionErrors.js +0 -22
- package/dist/esm/Cardano/util/txSubmissionErrors.js.map +0 -1
- package/dist/esm/CardanoNode/types/CardanoNodeLegacyErrors.d.ts +0 -703
- package/dist/esm/CardanoNode/types/CardanoNodeLegacyErrors.d.ts.map +0 -1
- package/dist/esm/CardanoNode/types/CardanoNodeLegacyErrors.js +0 -100
- package/dist/esm/CardanoNode/types/CardanoNodeLegacyErrors.js.map +0 -1
|
@@ -6,18 +6,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.epochSlotsCalcFactory = exports.epochSlotsCalc = exports.createSlotEpochInfoCalc = exports.createSlotTimeCalc = exports.createSlotEpochCalc = exports.EraSummaryError = void 0;
|
|
7
7
|
const ts_custom_error_1 = require("ts-custom-error");
|
|
8
8
|
const Cardano_1 = require("../Cardano");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
9
|
+
const groupBy_js_1 = __importDefault(require("lodash/groupBy.js"));
|
|
10
|
+
const last_js_1 = __importDefault(require("lodash/last.js"));
|
|
11
|
+
const memoize_js_1 = __importDefault(require("lodash/memoize.js"));
|
|
12
|
+
const orderBy_js_1 = __importDefault(require("lodash/orderBy.js"));
|
|
13
13
|
class EraSummaryError extends ts_custom_error_1.CustomError {
|
|
14
14
|
}
|
|
15
15
|
exports.EraSummaryError = EraSummaryError;
|
|
16
16
|
const createSlotEpochCalcImpl = (eraSummaries) => {
|
|
17
|
-
const eraSummariesWithoutSkippedEras = Object.values((0,
|
|
18
|
-
const eraSummariesAsc = (0,
|
|
17
|
+
const eraSummariesWithoutSkippedEras = Object.values((0, groupBy_js_1.default)(eraSummaries, 'start.slot')).map(last_js_1.default);
|
|
18
|
+
const eraSummariesAsc = (0, orderBy_js_1.default)(eraSummariesWithoutSkippedEras, ({ start }) => start.slot);
|
|
19
19
|
return (slotNo) => {
|
|
20
|
-
const relevantEraSummariesAsc = (0,
|
|
20
|
+
const relevantEraSummariesAsc = (0, orderBy_js_1.default)(eraSummariesAsc.filter(({ start }) => start.slot <= slotNo), ({ start }) => start.slot);
|
|
21
21
|
if (relevantEraSummariesAsc.length === 0) {
|
|
22
22
|
throw new EraSummaryError(`No EraSummary for slot ${slotNo} found`);
|
|
23
23
|
}
|
|
@@ -32,13 +32,13 @@ const createSlotEpochCalcImpl = (eraSummaries) => {
|
|
|
32
32
|
return { epochEraSummary: currentEraSummary, epochNo };
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
exports.createSlotEpochCalc = (0,
|
|
35
|
+
exports.createSlotEpochCalc = (0, memoize_js_1.default)((eraSummaries) => {
|
|
36
36
|
const calc = createSlotEpochCalcImpl(eraSummaries);
|
|
37
37
|
return (slotNo) => (0, Cardano_1.EpochNo)(calc(slotNo).epochNo);
|
|
38
38
|
});
|
|
39
39
|
const createSlotTimeCalc = (eraSummaries) => {
|
|
40
|
-
const eraSummariesWithoutSkippedEras = Object.values((0,
|
|
41
|
-
const eraSummariesDesc = (0,
|
|
40
|
+
const eraSummariesWithoutSkippedEras = Object.values((0, groupBy_js_1.default)(eraSummaries, 'start.slot')).map(last_js_1.default);
|
|
41
|
+
const eraSummariesDesc = (0, orderBy_js_1.default)(eraSummariesWithoutSkippedEras, ({ start }) => start.slot, 'desc');
|
|
42
42
|
return (slotNo) => {
|
|
43
43
|
const activeEraSummary = eraSummariesDesc.find(({ start }) => start.slot <= slotNo);
|
|
44
44
|
if (!activeEraSummary) {
|
|
@@ -96,6 +96,6 @@ const epochSlotsCalcImplementation = (epochNo, eraSummaries) => {
|
|
|
96
96
|
lastSlot: (0, Cardano_1.Slot)(atSlot + eraSummary.parameters.epochLength - 1)
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
-
exports.epochSlotsCalc = (0,
|
|
100
|
-
exports.epochSlotsCalcFactory = (0,
|
|
99
|
+
exports.epochSlotsCalc = (0, memoize_js_1.default)(epochSlotsCalcImplementation);
|
|
100
|
+
exports.epochSlotsCalcFactory = (0, memoize_js_1.default)((provider) => (0, memoize_js_1.default)(async (epochNo) => epochSlotsCalcImplementation(epochNo, await provider.eraSummaries())));
|
|
101
101
|
//# sourceMappingURL=slotCalc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotCalc.js","sourceRoot":"","sources":["../../../src/util/slotCalc.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA8C;AAC9C,wCAA0D;AAG1D,
|
|
1
|
+
{"version":3,"file":"slotCalc.js","sourceRoot":"","sources":["../../../src/util/slotCalc.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA8C;AAC9C,wCAA0D;AAG1D,mEAAwC;AACxC,6DAAkC;AAClC,mEAAwC;AACxC,mEAAwC;AAaxC,MAAa,eAAgB,SAAQ,6BAAW;CAAG;AAAnD,0CAAmD;AAInD,MAAM,uBAAuB,GAAG,CAAC,YAA0B,EAAE,EAAE;IAK7D,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC,IAAA,oBAAO,EAAC,Y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AC,aAAa,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;IAE3F,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,OAAO,mBAAmB,EAAE;YAAE,aAAa,EAAE,CAAC;IAChD,CAAC,CAAC;IAEF,kBAAkB,EAAE,CAAC;IAErB,OAAO,OAAO,KAAK,OAAO,EAAE;QAC1B,MAAM,IAAI,YAAY,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC;QAC7D,OAAO,EAAE,CAAC;QAEV,IAAI,mBAAmB,EAAE;YAAE,kBAAkB,EAAE,CAAC;KACjD;IAED,MAAM,UAAU,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;IAE/C,OAAO;QACL,UAAU;QACV,SAAS,EAAE,IAAA,cAAI,EAAC,MAAM,CAAC;QACvB,QAAQ,EAAE,IAAA,cAAI,EAAC,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,WAAW,GAAG,CAAC,CAAC;KAC/D,CAAC;AACJ,CAAC,CAAC;AAKW,QAAA,cAAc,GAAG,IAAA,oBAAO,EAAC,4BAA4B,CAAC,CAAC;AAQvD,QAAA,qBAAqB,GAAG,IAAA,oBAAO,EAAC,CAAC,QAA6B,EAAE,EAAE,CAC7E,IAAA,oBAAO,EAAC,KAAK,EAAE,OAAgB,EAAE,EAAE,CAAC,4BAA4B,CAAC,OAAO,EAAE,MAAM,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC,CAC1G,CAAC"}
|
|
@@ -7,7 +7,7 @@ exports.tokenTransferInspector = void 0;
|
|
|
7
7
|
const txInspector_1 = require("./txInspector");
|
|
8
8
|
const coalesceValueQuantities_1 = require("./coalesceValueQuantities");
|
|
9
9
|
const subtractValueQuantities_1 = require("./subtractValueQuantities");
|
|
10
|
-
const
|
|
10
|
+
const uniq_js_1 = __importDefault(require("lodash/uniq.js"));
|
|
11
11
|
const coalesceByAddress = (elements) => {
|
|
12
12
|
const grouped = elements.reduce((acc, elem) => {
|
|
13
13
|
if (!acc.has(elem.address))
|
|
@@ -65,7 +65,7 @@ const toTokenTransferValue = async (assetProvider, addressMap) => {
|
|
|
65
65
|
const tokenTransferValue = new Map();
|
|
66
66
|
for (const [address, value] of addressMap.entries()) {
|
|
67
67
|
const coins = value.coins;
|
|
68
|
-
const assetIds = (0,
|
|
68
|
+
const assetIds = (0, uniq_js_1.default)(value.assets && value.assets.size > 0 ? [...value.assets.keys()] : []);
|
|
69
69
|
const assetInfos = new Map();
|
|
70
70
|
if (assetIds.length > 0) {
|
|
71
71
|
const assets = await assetProvider.getAssets({
|
|
@@ -88,7 +88,7 @@ const tokenTransferInspector = ({ inputResolver, fromAddressAssetProvider, toAdd
|
|
|
88
88
|
const { resolvedInputs } = await (0, txInspector_1.resolveInputs)(tx.body.inputs, inputResolver);
|
|
89
89
|
const coalescedInputsByAddress = coalesceByAddress(resolvedInputs);
|
|
90
90
|
const coalescedOutputsByAddress = coalesceByAddress(tx.body.outputs);
|
|
91
|
-
const addresses = (0,
|
|
91
|
+
const addresses = (0, uniq_js_1.default)([...coalescedInputsByAddress.keys(), ...coalescedOutputsByAddress.keys()]);
|
|
92
92
|
const fromAddress = initializeAddressMap(addresses);
|
|
93
93
|
const toAddress = initializeAddressMap(addresses);
|
|
94
94
|
computeNetDifferences(coalescedInputsByAddress, coalescedOutputsByAddress, fromAddress, toAddress);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenTransferInspector.js","sourceRoot":"","sources":["../../../src/util/tokenTransferInspector.ts"],"names":[],"mappings":";;;;;;AAGA,+CAAyD;AACzD,uEAAoE;AACpE,uEAAoE;AACpE,
|
|
1
|
+
{"version":3,"file":"tokenTransferInspector.js","sourceRoot":"","sources":["../../../src/util/tokenTransferInspector.ts"],"names":[],"mappings":";;;;;;AAGA,+CAAyD;AACzD,uEAAoE;AACpE,uEAAoE;AACpE,6DAAkC;AA4BlC,MAAM,iBAAiB,GAAG,CACxB,QAAa,EAC+B,EAAE;I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C;IACtC,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAEpC,OAAO;QACL,WAAW,EAAE,MAAM,oBAAoB,CAAC,wBAAwB,EAAE,WAAW,CAAC;QAC9E,SAAS,EAAE,MAAM,oBAAoB,CAAC,sBAAsB,EAAE,SAAS,CAAC;KACzE,CAAC;AACJ,CAAC,CAAC;AAtBS,QAAA,sBAAsB,0BAsB/B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AssetInfo } from '../types';
|
|
2
|
-
import { Cardano } from '
|
|
3
|
-
import { NftMetadata } from './types';
|
|
1
|
+
import { AssetInfo } from '../types/index.js';
|
|
2
|
+
import { Cardano } from '../../index.js';
|
|
3
|
+
import { NftMetadata } from './types.js';
|
|
4
4
|
import { Logger } from 'ts-log';
|
|
5
5
|
declare type AssetIdParts = Pick<AssetInfo, 'policyId' | 'name'>;
|
|
6
6
|
export declare const fromMetadatum: (asset: AssetIdParts, metadata: Cardano.TxMetadata | undefined, logger: Logger, strict?: boolean) => NftMetadata | null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AssetName } from '../../Cardano';
|
|
2
|
-
import { Cardano } from '
|
|
3
|
-
import { ImageMediaType, MediaType, Uri } from './types';
|
|
4
|
-
import { InvalidFileError } from './errors';
|
|
5
|
-
import { asMetadatumArray, asMetadatumMap } from '../../util/metadatum';
|
|
6
|
-
import { asString } from './util';
|
|
1
|
+
import { AssetName } from '../../Cardano/index.js';
|
|
2
|
+
import { Cardano } from '../../index.js';
|
|
3
|
+
import { ImageMediaType, MediaType, Uri } from './types.js';
|
|
4
|
+
import { InvalidFileError } from './errors.js';
|
|
5
|
+
import { asMetadatumArray, asMetadatumMap } from '../../util/metadatum.js';
|
|
6
|
+
import { asString } from './util.js';
|
|
7
7
|
import { isNotNil } from '@cardano-sdk/util';
|
|
8
|
-
import difference from 'lodash/difference';
|
|
8
|
+
import difference from 'lodash/difference.js';
|
|
9
9
|
const isString = (obj) => typeof obj === 'string';
|
|
10
10
|
const VersionRegExp = /^\d+\.?\d?$/;
|
|
11
11
|
const metadatumToString = (metadatum) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fromMetadatum.js","sourceRoot":"","sources":["../../../../src/Asset/NftMetadata/fromMetadatum.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAgC,GAAG,EAAE,MAAM,SAAS,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"fromMetadatum.js","sourceRoot":"","sources":["../../../../src/Asset/NftMetadata/fromMetadatum.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAgC,GAAG,EAAE,MAAM,SAAS,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,MAAM,QAAQ,GAAG,CAAC,GAAY,EAAiB,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC;AAC1E,MAA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,5 +1,5 @@
|
|
|
1
|
-
import { Cardano } from '
|
|
2
|
-
import { NftMetadata } from './types';
|
|
1
|
+
import { Cardano } from '../../index.js';
|
|
2
|
+
import { NftMetadata } from './types.js';
|
|
3
3
|
import { Logger } from 'ts-log';
|
|
4
4
|
export declare const fromPlutusData: (plutusData: Cardano.PlutusData | undefined, parentLogger: Logger, strict?: boolean) => NftMetadata | null;
|
|
5
5
|
//# sourceMappingURL=fromPlutusData.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ImageMediaType, MediaType, Uri } from './types';
|
|
2
|
-
import { asString } from './util';
|
|
1
|
+
import { ImageMediaType, MediaType, Uri } from './types.js';
|
|
2
|
+
import { asString } from './util.js';
|
|
3
3
|
import { contextLogger, isNotNil } from '@cardano-sdk/util';
|
|
4
|
-
import { isConstrPlutusData, isPlutusBigInt, isPlutusBoundedBytes, isPlutusList, isPlutusMap, tryConvertPlutusMapToUtf8Record } from '../../Cardano/util';
|
|
4
|
+
import { isConstrPlutusData, isPlutusBigInt, isPlutusBoundedBytes, isPlutusList, isPlutusMap, tryConvertPlutusMapToUtf8Record } from '../../Cardano/util/index.js';
|
|
5
5
|
const tryCoerce = (value, ctor, logger) => {
|
|
6
6
|
if (typeof value !== 'string')
|
|
7
7
|
return;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { NftMetadata as _NftMetadata } from './types';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './errors';
|
|
1
|
+
import { NftMetadata as _NftMetadata } from './types.js';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './errors.js';
|
|
4
4
|
export declare type NftMetadata = _NftMetadata;
|
|
5
5
|
export declare const NftMetadata: {
|
|
6
6
|
fromMetadatum: (asset: {
|
|
7
|
-
name: import("../../Cardano").AssetName;
|
|
8
|
-
policyId: import("../../Cardano").PolicyId;
|
|
9
|
-
}, metadata: import("../../Cardano").TxMetadata | undefined, logger: import("ts-log").Logger, strict?: boolean) => _NftMetadata | null;
|
|
10
|
-
fromPlutusData: (plutusData: import("../../Cardano").PlutusData | undefined, parentLogger: import("ts-log").Logger, strict?: boolean) => _NftMetadata | null;
|
|
7
|
+
name: import("../../Cardano/index.js").AssetName;
|
|
8
|
+
policyId: import("../../Cardano/index.js").PolicyId;
|
|
9
|
+
}, metadata: import("../../Cardano/index.js").TxMetadata | undefined, logger: import("ts-log").Logger, strict?: boolean) => _NftMetadata | null;
|
|
10
|
+
fromPlutusData: (plutusData: import("../../Cardano/index.js").PlutusData | undefined, parentLogger: import("ts-log").Logger, strict?: boolean) => _NftMetadata | null;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { fromMetadatum } from './fromMetadatum';
|
|
2
|
-
import { fromPlutusData } from './fromPlutusData';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './errors';
|
|
1
|
+
import { fromMetadatum } from './fromMetadatum.js';
|
|
2
|
+
import { fromPlutusData } from './fromPlutusData.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
export * from './errors.js';
|
|
5
5
|
export const NftMetadata = {
|
|
6
6
|
fromMetadatum,
|
|
7
7
|
fromPlutusData
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OpaqueString } from '@cardano-sdk/util';
|
|
2
|
-
import { Metadatum } from '../../Cardano';
|
|
2
|
+
import { Metadatum } from '../../Cardano/index.js';
|
|
3
3
|
export declare type Uri = OpaqueString<'Uri'>;
|
|
4
4
|
export declare const Uri: (uri: string) => Uri;
|
|
5
5
|
export declare type ImageMediaType = OpaqueString<'ImageMediaType'>;
|
package/dist/esm/Asset/cip67.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as Cardano from '../Cardano';
|
|
1
|
+
import * as Cardano from '../Cardano/index.js';
|
|
2
2
|
import { InvalidArgumentError } from '@cardano-sdk/util';
|
|
3
|
-
import crc8 from './crc8';
|
|
3
|
+
import crc8 from './crc8.js';
|
|
4
4
|
const ASSET_LABEL_LENGTH = 8;
|
|
5
5
|
const ASSET_LABEL_BRACKET = '0';
|
|
6
6
|
export const AssetNameLabel = (value) => value;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as util from './util';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './cip67';
|
|
4
|
-
export * from './NftMetadata';
|
|
1
|
+
export * as util from './util/index.js';
|
|
2
|
+
export * from './types/index.js';
|
|
3
|
+
export * from './cip67.js';
|
|
4
|
+
export * from './NftMetadata/index.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/Asset/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as util from './util';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './cip67';
|
|
4
|
-
export * from './NftMetadata';
|
|
1
|
+
export * as util from './util/index.js';
|
|
2
|
+
export * from './types/index.js';
|
|
3
|
+
export * from './cip67.js';
|
|
4
|
+
export * from './NftMetadata/index.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AssetFingerprint, AssetId, AssetName, PolicyId, TransactionId } from '../../Cardano';
|
|
2
|
-
import { NftMetadata } from '../NftMetadata';
|
|
3
|
-
import { TokenMetadata } from './TokenMetadata';
|
|
1
|
+
import { AssetFingerprint, AssetId, AssetName, PolicyId, TransactionId } from '../../Cardano/index.js';
|
|
2
|
+
import { NftMetadata } from '../NftMetadata/index.js';
|
|
3
|
+
import { TokenMetadata } from './TokenMetadata.js';
|
|
4
4
|
export interface AssetMintOrBurn {
|
|
5
5
|
transactionId: TransactionId;
|
|
6
6
|
quantity: bigint;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './TokenMetadata';
|
|
2
|
-
export * from './AssetInfo';
|
|
1
|
+
export * from './TokenMetadata.js';
|
|
2
|
+
export * from './AssetInfo.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './TokenMetadata';
|
|
2
|
-
export * from './AssetInfo';
|
|
1
|
+
export * from './TokenMetadata.js';
|
|
2
|
+
export * from './AssetInfo.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './coalesceTokenMaps';
|
|
2
|
-
export * from './removeNegativesFromTokenMap';
|
|
3
|
-
export * from './subtractTokenMaps';
|
|
4
|
-
export * from './isValidHandle';
|
|
1
|
+
export * from './coalesceTokenMaps.js';
|
|
2
|
+
export * from './removeNegativesFromTokenMap.js';
|
|
3
|
+
export * from './subtractTokenMaps.js';
|
|
4
|
+
export * from './isValidHandle.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './coalesceTokenMaps';
|
|
2
|
-
export * from './removeNegativesFromTokenMap';
|
|
3
|
-
export * from './subtractTokenMaps';
|
|
4
|
-
export * from './isValidHandle';
|
|
1
|
+
export * from './coalesceTokenMaps.js';
|
|
2
|
+
export * from './removeNegativesFromTokenMap.js';
|
|
3
|
+
export * from './subtractTokenMaps.js';
|
|
4
|
+
export * from './isValidHandle.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Cardano from '../../Cardano';
|
|
1
|
+
import * as Cardano from '../../Cardano/index.js';
|
|
2
2
|
export declare const subtractMaps: (lhs: Cardano.TokenMap | undefined, rhs: Cardano.TokenMap | undefined) => Cardano.TokenMap | undefined;
|
|
3
3
|
export declare const subtractTokenMaps: (assets: (Cardano.TokenMap | undefined)[]) => Cardano.TokenMap | undefined;
|
|
4
4
|
//# sourceMappingURL=subtractTokenMaps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subtractTokenMaps.js","sourceRoot":"","sources":["../../../../src/Asset/util/subtractTokenMaps.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"subtractTokenMaps.js","sourceRoot":"","sources":["../../../../src/Asset/util/subtractTokenMaps.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AASlC,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,GAAiC,EACjC,GAAiC,EACH,EAAE;IAChC,IAAI,CAAC,GAAG,EAAE;QACR,IAAI,CAAC,GAAG;YAAE,OAAO,SAAS,CAAC;QAE3B,MAAM,cAAc,GAAG,IAAI,GAAG,EAA2B,CAAC;QAE1D,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,EAAE,EAAE;YACxC,IAAI,KAAK,KAAK,EAAE;gBAAE,cAAc,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SAClD;QAED,OAAO,cAAc,CAAC;KACvB;IAED,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,cAAc,GAAG,IAAI,GAAG,EAA2B,CAAC;QAE1D,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,EAAE,EAAE;YACxC,IAAI,KAAK,KAAK,EAAE;gBAAE,cAAc,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;SACnD;QAED,OAAO,cAAc,CAAC;KACvB;IAED,MAAM,MAAM,GAAG,IAAI,GAAG,EAA2B,CAAC;IAClD,MAAM,YAAY,GAAG,IAAI,KAAK,EAAmB,CAAC;IAGlD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,EAAE,EAAE;QACxC,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAChB,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACvB,SAAS;SACV;QAED,IAAI,KAAK,KAAK,EAAE;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;KAC1C;IAGD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,EAAE,EAAE;QACxC,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAChB,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACvB,SAAS;SACV;QAED,IAAI,KAAK,KAAK,EAAE;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;KAC3C;IAGD,MAAM,gBAAgB,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC;IAE5C,KAAK,MAAM,EAAE,IAAI,gBAAgB,EAAE;QACjC,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC3B,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC3B,MAAM,cAAc,GAAG,MAAO,GAAG,MAAO,CAAC;QAEzC,IAAI,cAAc,KAAK,EAAE;YAAE,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC;KAC3D;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAAwC,EAAgC,EAAE;IAC1G,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAErD,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AACrC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HexBlob } from '@cardano-sdk/util';
|
|
2
|
-
import { Transaction } from '../Serialization';
|
|
2
|
+
import { Transaction } from '../Serialization/index.js';
|
|
3
3
|
export const TxBodyCBOR = (tx) => HexBlob(tx);
|
|
4
4
|
TxBodyCBOR.fromTxCBOR = (txCbor) => Transaction.fromCbor(txCbor).body().toCbor();
|
|
5
5
|
//# sourceMappingURL=TxBodyCBOR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HexBlob, OpaqueString } from '@cardano-sdk/util';
|
|
2
|
-
import { Tx, TxBody } from '../Cardano';
|
|
3
|
-
import type { Cardano } from '
|
|
2
|
+
import { Tx, TxBody } from '../Cardano/index.js';
|
|
3
|
+
import type { Cardano } from '../index.js';
|
|
4
4
|
export declare type TxCBOR = OpaqueString<'TxCbor'>;
|
|
5
5
|
export declare const TxCBOR: {
|
|
6
6
|
(tx: string): TxCBOR;
|
package/dist/esm/CBOR/TxCBOR.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HexBlob } from '@cardano-sdk/util';
|
|
2
|
-
import { Transaction } from '../Serialization';
|
|
2
|
+
import { Transaction } from '../Serialization/index.js';
|
|
3
3
|
export const TxCBOR = (tx) => HexBlob(tx);
|
|
4
4
|
export const deserializeTx = ((txBody) => {
|
|
5
5
|
const hex = txBody instanceof Buffer
|
package/dist/esm/CBOR/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './TxCBOR';
|
|
2
|
-
export * from './TxBodyCBOR';
|
|
1
|
+
export * from './TxCBOR.js';
|
|
2
|
+
export * from './TxBodyCBOR.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/CBOR/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './TxCBOR';
|
|
2
|
-
export * from './TxBodyCBOR';
|
|
1
|
+
export * from './TxCBOR.js';
|
|
2
|
+
export * from './TxBodyCBOR.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { BaseAddress } from './BaseAddress';
|
|
2
|
-
import { ByronAddress, ByronAddressContent } from './ByronAddress';
|
|
3
|
-
import { EnterpriseAddress } from './EnterpriseAddress';
|
|
1
|
+
import { BaseAddress } from './BaseAddress.js';
|
|
2
|
+
import { ByronAddress, ByronAddressContent } from './ByronAddress.js';
|
|
3
|
+
import { EnterpriseAddress } from './EnterpriseAddress.js';
|
|
4
4
|
import { Hash28ByteBase16 } from '@cardano-sdk/crypto';
|
|
5
5
|
import { HexBlob } from '@cardano-sdk/util';
|
|
6
|
-
import { NetworkId } from '../ChainId';
|
|
7
|
-
import { PaymentAddress } from './PaymentAddress';
|
|
8
|
-
import { Pointer, PointerAddress } from './PointerAddress';
|
|
9
|
-
import { RewardAccount } from './RewardAccount';
|
|
10
|
-
import { RewardAddress } from './RewardAddress';
|
|
6
|
+
import { NetworkId } from '../ChainId.js';
|
|
7
|
+
import { PaymentAddress } from './PaymentAddress.js';
|
|
8
|
+
import { Pointer, PointerAddress } from './PointerAddress.js';
|
|
9
|
+
import { RewardAccount } from './RewardAccount.js';
|
|
10
|
+
import { RewardAddress } from './RewardAddress.js';
|
|
11
11
|
export declare enum AddressType {
|
|
12
12
|
BasePaymentKeyStakeKey = 0,
|
|
13
13
|
BasePaymentScriptStakeKey = 1,
|
|
@@ -11,13 +11,13 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
11
11
|
};
|
|
12
12
|
var _Address_props;
|
|
13
13
|
import * as BaseEncoding from '@scure/base';
|
|
14
|
-
import { BaseAddress } from './BaseAddress';
|
|
15
|
-
import { ByronAddress } from './ByronAddress';
|
|
16
|
-
import { EnterpriseAddress } from './EnterpriseAddress';
|
|
14
|
+
import { BaseAddress } from './BaseAddress.js';
|
|
15
|
+
import { ByronAddress } from './ByronAddress.js';
|
|
16
|
+
import { EnterpriseAddress } from './EnterpriseAddress.js';
|
|
17
17
|
import { HexBlob, InvalidArgumentError } from '@cardano-sdk/util';
|
|
18
|
-
import { NetworkId } from '../ChainId';
|
|
19
|
-
import { PointerAddress } from './PointerAddress';
|
|
20
|
-
import { RewardAddress } from './RewardAddress';
|
|
18
|
+
import { NetworkId } from '../ChainId.js';
|
|
19
|
+
import { PointerAddress } from './PointerAddress.js';
|
|
20
|
+
import { RewardAddress } from './RewardAddress.js';
|
|
21
21
|
const MAX_BECH32_LENGTH_LIMIT = 1023;
|
|
22
22
|
export var AddressType;
|
|
23
23
|
(function (AddressType) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="pouchdb-core" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
import { Address, AddressProps, Credential } from './Address';
|
|
4
|
-
import { NetworkId } from '../ChainId';
|
|
3
|
+
import { Address, AddressProps, Credential } from './Address.js';
|
|
4
|
+
import { NetworkId } from '../ChainId.js';
|
|
5
5
|
export declare class BaseAddress {
|
|
6
6
|
#private;
|
|
7
7
|
private constructor();
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _BaseAddress_type, _BaseAddress_networkId, _BaseAddress_paymentPart, _BaseAddress_delegationPart;
|
|
13
|
-
import { Address, AddressType, CredentialType } from './Address';
|
|
13
|
+
import { Address, AddressType, CredentialType } from './Address.js';
|
|
14
14
|
import { Hash28ByteBase16 } from '@cardano-sdk/crypto';
|
|
15
15
|
import { InvalidArgumentError } from '@cardano-sdk/util';
|
|
16
16
|
export class BaseAddress {
|
|
@@ -10,8 +10,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _ByronAddress_type, _ByronAddress_content;
|
|
13
|
-
import { Address, AddressType } from './Address';
|
|
14
|
-
import { CborReader, CborReaderState, CborTag, CborWriter } from '../../Serialization';
|
|
13
|
+
import { Address, AddressType } from './Address.js';
|
|
14
|
+
import { CborReader, CborReaderState, CborTag, CborWriter } from '../../Serialization/index.js';
|
|
15
15
|
import { Hash28ByteBase16 } from '@cardano-sdk/crypto';
|
|
16
16
|
import { HexBlob, InvalidArgumentError } from '@cardano-sdk/util';
|
|
17
17
|
import { crc32 } from '@foxglove/crc';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, AddressType } from './Address';
|
|
1
|
+
import { Address, AddressType } from './Address.js';
|
|
2
2
|
import { assertIsBech32WithPrefix, typedBech32 } from '@cardano-sdk/util';
|
|
3
3
|
export const DRepID = (value) => typedBech32(value, ['drep']);
|
|
4
4
|
DRepID.isValid = (value) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="pouchdb-core" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
import { Address, AddressProps, Credential } from './Address';
|
|
4
|
-
import { NetworkId } from '../ChainId';
|
|
3
|
+
import { Address, AddressProps, Credential } from './Address.js';
|
|
4
|
+
import { NetworkId } from '../ChainId.js';
|
|
5
5
|
export declare class EnterpriseAddress {
|
|
6
6
|
#private;
|
|
7
7
|
private constructor();
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _EnterpriseAddress_type, _EnterpriseAddress_networkId, _EnterpriseAddress_paymentPart;
|
|
13
|
-
import { Address, AddressType, CredentialType } from './Address';
|
|
13
|
+
import { Address, AddressType, CredentialType } from './Address.js';
|
|
14
14
|
import { Hash28ByteBase16 } from '@cardano-sdk/crypto';
|
|
15
15
|
import { InvalidArgumentError } from '@cardano-sdk/util';
|
|
16
16
|
export class EnterpriseAddress {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DRepID } from './DRepID';
|
|
1
|
+
import { DRepID } from './DRepID.js';
|
|
2
2
|
import { OpaqueString } from '@cardano-sdk/util';
|
|
3
|
-
import { HydratedTx, HydratedTxIn, Tx, TxIn, TxOut } from '../types';
|
|
4
|
-
import { NetworkId } from '../ChainId';
|
|
5
|
-
import { RewardAccount } from './RewardAccount';
|
|
3
|
+
import { HydratedTx, HydratedTxIn, Tx, TxIn, TxOut } from '../types/index.js';
|
|
4
|
+
import { NetworkId } from '../ChainId.js';
|
|
5
|
+
import { RewardAccount } from './RewardAccount.js';
|
|
6
6
|
export declare type PaymentAddress = OpaqueString<'PaymentAddress'>;
|
|
7
7
|
export declare const PaymentAddress: (value: string) => PaymentAddress;
|
|
8
8
|
export declare const isAddressWithin: (addresses: PaymentAddress[]) => ({ address }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Address, AddressType } from './Address';
|
|
2
|
-
import { DRepID } from './DRepID';
|
|
1
|
+
import { Address, AddressType } from './Address.js';
|
|
2
|
+
import { DRepID } from './DRepID.js';
|
|
3
3
|
import { HexBlob, InvalidStringError, assertIsBech32WithPrefix, assertIsHexString } from '@cardano-sdk/util';
|
|
4
4
|
const isRewardAccount = (address) => {
|
|
5
5
|
try {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="pouchdb-core" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
import { Address, AddressProps, Credential } from './Address';
|
|
3
|
+
import { Address, AddressProps, Credential } from './Address.js';
|
|
4
4
|
import { OpaqueNumber } from '@cardano-sdk/util';
|
|
5
|
-
import { NetworkId } from '../ChainId';
|
|
6
|
-
import { Slot } from '../types';
|
|
5
|
+
import { NetworkId } from '../ChainId.js';
|
|
6
|
+
import { Slot } from '../types/index.js';
|
|
7
7
|
export declare type TxIndex = OpaqueNumber<'TxIndex'>;
|
|
8
8
|
export declare const TxIndex: (value: number) => TxIndex;
|
|
9
9
|
export declare type CertIndex = OpaqueNumber<'CertIndex'>;
|