@helios-lang/effect 0.1.14 → 0.2.0
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/Cardano/CoinSelection.js +130 -0
- package/dist/Cardano/CoinSelection.js.map +1 -0
- package/dist/{Ledger → Cardano/Ledger}/Address.js +30 -20
- package/dist/Cardano/Ledger/Address.js.map +1 -0
- package/dist/{Ledger → Cardano/Ledger}/AssetClass.js +16 -11
- package/dist/Cardano/Ledger/AssetClass.js.map +1 -0
- package/dist/Cardano/Ledger/Assets.js +235 -0
- package/dist/Cardano/Ledger/Assets.js.map +1 -0
- package/dist/Cardano/Ledger/Credential.js +53 -0
- package/dist/Cardano/Ledger/Credential.js.map +1 -0
- package/dist/Cardano/Ledger/DCert.js +117 -0
- package/dist/Cardano/Ledger/DCert.js.map +1 -0
- package/dist/Cardano/Ledger/DatumHash.js +25 -0
- package/dist/Cardano/Ledger/DatumHash.js.map +1 -0
- package/dist/Cardano/Ledger/MintingPolicy.js +40 -0
- package/dist/Cardano/Ledger/MintingPolicy.js.map +1 -0
- package/dist/Cardano/Ledger/NativeScript.js +140 -0
- package/dist/Cardano/Ledger/NativeScript.js.map +1 -0
- package/dist/Cardano/Ledger/PubKey.js +22 -0
- package/dist/Cardano/Ledger/PubKey.js.map +1 -0
- package/dist/{Ledger → Cardano/Ledger}/PubKeyHash.js +5 -5
- package/dist/Cardano/Ledger/PubKeyHash.js.map +1 -0
- package/dist/Cardano/Ledger/Redeemer.js +155 -0
- package/dist/Cardano/Ledger/Redeemer.js.map +1 -0
- package/dist/Cardano/Ledger/RewardAddress.js +93 -0
- package/dist/Cardano/Ledger/RewardAddress.js.map +1 -0
- package/dist/Cardano/Ledger/Signature.js +23 -0
- package/dist/Cardano/Ledger/Signature.js.map +1 -0
- package/dist/Cardano/Ledger/Tx.js +498 -0
- package/dist/Cardano/Ledger/Tx.js.map +1 -0
- package/dist/Cardano/Ledger/TxHash.js +38 -0
- package/dist/Cardano/Ledger/TxHash.js.map +1 -0
- package/dist/Cardano/Ledger/TxOutput.js +167 -0
- package/dist/Cardano/Ledger/TxOutput.js.map +1 -0
- package/dist/{Ledger → Cardano/Ledger}/TxOutputDatum.js +44 -8
- package/dist/Cardano/Ledger/TxOutputDatum.js.map +1 -0
- package/dist/Cardano/Ledger/UTxO.js +100 -0
- package/dist/Cardano/Ledger/UTxO.js.map +1 -0
- package/dist/{Ledger → Cardano/Ledger}/UTxORef.js +28 -6
- package/dist/Cardano/Ledger/UTxORef.js.map +1 -0
- package/dist/{Ledger → Cardano/Ledger}/ValidatorHash.js +5 -5
- package/dist/Cardano/Ledger/ValidatorHash.js.map +1 -0
- package/dist/{Ledger → Cardano/Ledger}/index.js +5 -0
- package/dist/Cardano/Ledger/index.js.map +1 -0
- package/dist/Cardano/Network/IsMainnet.js.map +1 -0
- package/dist/{Network → Cardano/Network}/Params.js +27 -3
- package/dist/Cardano/Network/Params.js.map +1 -0
- package/dist/Cardano/Network/UTxO.js +20 -0
- package/dist/Cardano/Network/UTxO.js.map +1 -0
- package/dist/Cardano/Network/UTxOsAt.js +4 -0
- package/dist/Cardano/Network/UTxOsAt.js.map +1 -0
- package/dist/Cardano/Network/errors.js +33 -0
- package/dist/Cardano/Network/errors.js.map +1 -0
- package/dist/{Network → Cardano/Network}/index.js +1 -0
- package/dist/Cardano/Network/index.js.map +1 -0
- package/dist/Cardano/TxBuilder.js +946 -0
- package/dist/Cardano/TxBuilder.js.map +1 -0
- package/dist/Cardano/Uplc/Builtins.js +1820 -0
- package/dist/Cardano/Uplc/Builtins.js.map +1 -0
- package/dist/Cardano/Uplc/Cek.js +716 -0
- package/dist/Cardano/Uplc/Cek.js.map +1 -0
- package/dist/Cardano/Uplc/Cost.js +956 -0
- package/dist/Cardano/Uplc/Cost.js.map +1 -0
- package/dist/{Uplc → Cardano/Uplc}/Data.js +143 -22
- package/dist/Cardano/Uplc/Data.js.map +1 -0
- package/dist/Cardano/Uplc/Script.js +118 -0
- package/dist/Cardano/Uplc/Script.js.map +1 -0
- package/dist/Cardano/Uplc/ScriptContext.js +259 -0
- package/dist/Cardano/Uplc/ScriptContext.js.map +1 -0
- package/dist/Cardano/Uplc/Term.js +384 -0
- package/dist/Cardano/Uplc/Term.js.map +1 -0
- package/dist/Cardano/Uplc/Type.js +131 -0
- package/dist/Cardano/Uplc/Type.js.map +1 -0
- package/dist/Cardano/Uplc/Value.js +315 -0
- package/dist/Cardano/Uplc/Value.js.map +1 -0
- package/dist/Cardano/Uplc/index.js +7 -0
- package/dist/Cardano/Uplc/index.js.map +1 -0
- package/dist/Cardano/index.js +6 -0
- package/dist/Cardano/index.js.map +1 -0
- package/dist/{internal → Codecs}/Base32.js +2 -2
- package/dist/Codecs/Base32.js.map +1 -0
- package/dist/{Bech32.js → Codecs/Bech32.js} +2 -2
- package/dist/Codecs/Bech32.js.map +1 -0
- package/dist/Codecs/BigEndian.js.map +1 -0
- package/dist/Codecs/Bits.js.map +1 -0
- package/dist/{internal → Codecs}/Bytes.js +23 -12
- package/dist/Codecs/Bytes.js.map +1 -0
- package/dist/{Cbor.js → Codecs/Cbor.js} +559 -328
- package/dist/Codecs/Cbor.js.map +1 -0
- package/dist/{internal → Codecs}/Flat.js +16 -0
- package/dist/Codecs/Flat.js.map +1 -0
- package/dist/Codecs/Float.js.map +1 -0
- package/dist/Codecs/LittleEndian.js +27 -0
- package/dist/Codecs/LittleEndian.js.map +1 -0
- package/dist/Codecs/Uint64.js +89 -0
- package/dist/Codecs/Uint64.js.map +1 -0
- package/dist/{internal → Codecs}/Utf8.js +7 -2
- package/dist/Codecs/Utf8.js.map +1 -0
- package/dist/Codecs/ZigZag.js +26 -0
- package/dist/Codecs/ZigZag.js.map +1 -0
- package/dist/Codecs/index.js +8 -0
- package/dist/Codecs/index.js.map +1 -0
- package/dist/Crypto/Blake2b.js +156 -0
- package/dist/Crypto/Blake2b.js.map +1 -0
- package/dist/Crypto/Curve.js +92 -0
- package/dist/Crypto/Curve.js.map +1 -0
- package/dist/Crypto/Ed25519.js +323 -0
- package/dist/Crypto/Ed25519.js.map +1 -0
- package/dist/Crypto/EdDSA.js +222 -0
- package/dist/Crypto/EdDSA.js.map +1 -0
- package/dist/Crypto/Field.js +323 -0
- package/dist/Crypto/Field.js.map +1 -0
- package/dist/Crypto/Hmac.js +51 -0
- package/dist/Crypto/Hmac.js.map +1 -0
- package/dist/Crypto/Keccak.js +167 -0
- package/dist/Crypto/Keccak.js.map +1 -0
- package/dist/Crypto/Pbkdf2.js +45 -0
- package/dist/Crypto/Pbkdf2.js.map +1 -0
- package/dist/Crypto/Sha2_256.js +200 -0
- package/dist/Crypto/Sha2_256.js.map +1 -0
- package/dist/Crypto/Sha2_512.js +264 -0
- package/dist/Crypto/Sha2_512.js.map +1 -0
- package/dist/Crypto/Sha3_256.js +10 -0
- package/dist/Crypto/Sha3_256.js.map +1 -0
- package/dist/Crypto/errors.js +9 -0
- package/dist/Crypto/errors.js.map +1 -0
- package/dist/Crypto/index.js +12 -0
- package/dist/Crypto/index.js.map +1 -0
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/package.json +24 -6
- package/tsconfig.build.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/Cardano/CoinSelection.d.ts +26 -0
- package/types/Cardano/CoinSelection.d.ts.map +1 -0
- package/types/{Ledger → Cardano/Ledger}/Address.d.ts +7 -6
- package/types/Cardano/Ledger/Address.d.ts.map +1 -0
- package/types/{Ledger → Cardano/Ledger}/AssetClass.d.ts +2 -2
- package/types/Cardano/Ledger/AssetClass.d.ts.map +1 -0
- package/types/Cardano/Ledger/Assets.d.ts +114 -0
- package/types/Cardano/Ledger/Assets.d.ts.map +1 -0
- package/types/{Ledger → Cardano/Ledger}/Credential.d.ts +10 -4
- package/types/Cardano/Ledger/Credential.d.ts.map +1 -0
- package/types/Cardano/Ledger/DCert.d.ts +40 -0
- package/types/Cardano/Ledger/DCert.d.ts.map +1 -0
- package/types/{Ledger → Cardano/Ledger}/DatumHash.d.ts +6 -5
- package/types/Cardano/Ledger/DatumHash.d.ts.map +1 -0
- package/types/{Ledger → Cardano/Ledger}/MintingPolicy.d.ts +11 -8
- package/types/Cardano/Ledger/MintingPolicy.d.ts.map +1 -0
- package/types/Cardano/Ledger/NativeScript.d.ts +105 -0
- package/types/Cardano/Ledger/NativeScript.d.ts.map +1 -0
- package/types/Cardano/Ledger/PubKey.d.ts +41 -0
- package/types/Cardano/Ledger/PubKey.d.ts.map +1 -0
- package/types/{Ledger → Cardano/Ledger}/PubKeyHash.d.ts +5 -5
- package/types/Cardano/Ledger/PubKeyHash.d.ts.map +1 -0
- package/types/Cardano/Ledger/Redeemer.d.ts +303 -0
- package/types/Cardano/Ledger/Redeemer.d.ts.map +1 -0
- package/types/Cardano/Ledger/RewardAddress.d.ts +60 -0
- package/types/Cardano/Ledger/RewardAddress.d.ts.map +1 -0
- package/types/Cardano/Ledger/Signature.d.ts +13 -0
- package/types/Cardano/Ledger/Signature.d.ts.map +1 -0
- package/types/Cardano/Ledger/Tx.d.ts +375 -0
- package/types/Cardano/Ledger/Tx.d.ts.map +1 -0
- package/types/{Ledger → Cardano/Ledger}/TxHash.d.ts +35 -5
- package/types/Cardano/Ledger/TxHash.d.ts.map +1 -0
- package/types/Cardano/Ledger/TxOutput.d.ts +438 -0
- package/types/Cardano/Ledger/TxOutput.d.ts.map +1 -0
- package/types/Cardano/Ledger/TxOutputDatum.d.ts +98 -0
- package/types/Cardano/Ledger/TxOutputDatum.d.ts.map +1 -0
- package/types/Cardano/Ledger/UTxO.d.ts +1420 -0
- package/types/Cardano/Ledger/UTxO.d.ts.map +1 -0
- package/types/Cardano/Ledger/UTxORef.d.ts +222 -0
- package/types/Cardano/Ledger/UTxORef.d.ts.map +1 -0
- package/types/{Ledger → Cardano/Ledger}/ValidatorHash.d.ts +5 -5
- package/types/Cardano/Ledger/ValidatorHash.d.ts.map +1 -0
- package/types/{Ledger → Cardano/Ledger}/index.d.ts +5 -0
- package/types/Cardano/Ledger/index.d.ts.map +1 -0
- package/types/Cardano/Network/IsMainnet.d.ts.map +1 -0
- package/types/{Network → Cardano/Network}/Params.d.ts +32 -4
- package/types/Cardano/Network/Params.d.ts.map +1 -0
- package/types/Cardano/Network/UTxO.d.ts +15 -0
- package/types/Cardano/Network/UTxO.d.ts.map +1 -0
- package/types/Cardano/Network/UTxOsAt.d.ts +9 -0
- package/types/Cardano/Network/UTxOsAt.d.ts.map +1 -0
- package/types/Cardano/Network/errors.d.ts +39 -0
- package/types/Cardano/Network/errors.d.ts.map +1 -0
- package/types/{Network → Cardano/Network}/index.d.ts +1 -0
- package/types/Cardano/Network/index.d.ts.map +1 -0
- package/types/Cardano/TxBuilder.d.ts +261 -0
- package/types/Cardano/TxBuilder.d.ts.map +1 -0
- package/types/Cardano/Uplc/Builtins.d.ts +163 -0
- package/types/Cardano/Uplc/Builtins.d.ts.map +1 -0
- package/types/Cardano/Uplc/Cek.d.ts +165 -0
- package/types/Cardano/Uplc/Cek.d.ts.map +1 -0
- package/types/Cardano/Uplc/Cost.d.ts +93 -0
- package/types/Cardano/Uplc/Cost.d.ts.map +1 -0
- package/types/{Uplc → Cardano/Uplc}/Data.d.ts +149 -15
- package/types/Cardano/Uplc/Data.d.ts.map +1 -0
- package/types/Cardano/Uplc/Script.d.ts +87 -0
- package/types/Cardano/Uplc/Script.d.ts.map +1 -0
- package/types/Cardano/Uplc/ScriptContext.d.ts +21 -0
- package/types/Cardano/Uplc/ScriptContext.d.ts.map +1 -0
- package/types/Cardano/Uplc/Term.d.ts +454 -0
- package/types/Cardano/Uplc/Term.d.ts.map +1 -0
- package/types/Cardano/Uplc/Type.d.ts +29 -0
- package/types/Cardano/Uplc/Type.d.ts.map +1 -0
- package/types/Cardano/Uplc/Value.d.ts +152 -0
- package/types/Cardano/Uplc/Value.d.ts.map +1 -0
- package/types/Cardano/Uplc/index.d.ts +7 -0
- package/types/Cardano/Uplc/index.d.ts.map +1 -0
- package/types/Cardano/index.d.ts +6 -0
- package/types/Cardano/index.d.ts.map +1 -0
- package/types/Codecs/Base32.d.ts.map +1 -0
- package/types/Codecs/Bech32.d.ts.map +1 -0
- package/types/Codecs/BigEndian.d.ts.map +1 -0
- package/types/Codecs/Bits.d.ts.map +1 -0
- package/types/{internal → Codecs}/Bytes.d.ts +7 -6
- package/types/Codecs/Bytes.d.ts.map +1 -0
- package/types/{Cbor.d.ts → Codecs/Cbor.d.ts} +77 -55
- package/types/Codecs/Cbor.d.ts.map +1 -0
- package/types/{internal → Codecs}/Flat.d.ts +2 -0
- package/types/Codecs/Flat.d.ts.map +1 -0
- package/types/Codecs/Float.d.ts.map +1 -0
- package/types/Codecs/LittleEndian.d.ts +18 -0
- package/types/Codecs/LittleEndian.d.ts.map +1 -0
- package/types/Codecs/Uint64.d.ts +16 -0
- package/types/Codecs/Uint64.d.ts.map +1 -0
- package/types/{internal → Codecs}/Utf8.d.ts +2 -2
- package/types/Codecs/Utf8.d.ts.map +1 -0
- package/types/Codecs/ZigZag.d.ts +3 -0
- package/types/Codecs/ZigZag.d.ts.map +1 -0
- package/types/Codecs/index.d.ts +8 -0
- package/types/Codecs/index.d.ts.map +1 -0
- package/types/Crypto/Blake2b.d.ts +16 -0
- package/types/Crypto/Blake2b.d.ts.map +1 -0
- package/types/Crypto/Curve.d.ts +161 -0
- package/types/Crypto/Curve.d.ts.map +1 -0
- package/types/Crypto/Ed25519.d.ts +155 -0
- package/types/Crypto/Ed25519.d.ts.map +1 -0
- package/types/Crypto/EdDSA.d.ts +159 -0
- package/types/Crypto/EdDSA.d.ts.map +1 -0
- package/types/Crypto/Field.d.ts +273 -0
- package/types/Crypto/Field.d.ts.map +1 -0
- package/types/Crypto/Hmac.d.ts +20 -0
- package/types/Crypto/Hmac.d.ts.map +1 -0
- package/types/Crypto/Keccak.d.ts +16 -0
- package/types/Crypto/Keccak.d.ts.map +1 -0
- package/types/Crypto/Pbkdf2.d.ts +15 -0
- package/types/Crypto/Pbkdf2.d.ts.map +1 -0
- package/types/Crypto/Sha2_256.d.ts +36 -0
- package/types/Crypto/Sha2_256.d.ts.map +1 -0
- package/types/Crypto/Sha2_512.d.ts +31 -0
- package/types/Crypto/Sha2_512.d.ts.map +1 -0
- package/types/Crypto/Sha3_256.d.ts +8 -0
- package/types/Crypto/Sha3_256.d.ts.map +1 -0
- package/types/Crypto/errors.d.ts +10 -0
- package/types/Crypto/errors.d.ts.map +1 -0
- package/types/Crypto/index.d.ts +12 -0
- package/types/Crypto/index.d.ts.map +1 -0
- package/types/index.d.ts +3 -5
- package/types/index.d.ts.map +1 -1
- package/dist/Address.js +0 -13
- package/dist/Address.js.map +0 -1
- package/dist/Bech32.js.map +0 -1
- package/dist/Cbor.js.map +0 -1
- package/dist/Ledger/Address.js.map +0 -1
- package/dist/Ledger/AssetClass.js.map +0 -1
- package/dist/Ledger/Assets.js +0 -120
- package/dist/Ledger/Assets.js.map +0 -1
- package/dist/Ledger/Credential.js +0 -17
- package/dist/Ledger/Credential.js.map +0 -1
- package/dist/Ledger/DatumHash.js +0 -21
- package/dist/Ledger/DatumHash.js.map +0 -1
- package/dist/Ledger/IsMainnet.js +0 -4
- package/dist/Ledger/IsMainnet.js.map +0 -1
- package/dist/Ledger/MintingPolicy.js +0 -45
- package/dist/Ledger/MintingPolicy.js.map +0 -1
- package/dist/Ledger/NetworkParams.js +0 -40
- package/dist/Ledger/NetworkParams.js.map +0 -1
- package/dist/Ledger/PubKeyHash.js.map +0 -1
- package/dist/Ledger/TxHash.js +0 -23
- package/dist/Ledger/TxHash.js.map +0 -1
- package/dist/Ledger/TxId.js +0 -23
- package/dist/Ledger/TxId.js.map +0 -1
- package/dist/Ledger/TxInput.js +0 -51
- package/dist/Ledger/TxInput.js.map +0 -1
- package/dist/Ledger/TxOutput.js +0 -118
- package/dist/Ledger/TxOutput.js.map +0 -1
- package/dist/Ledger/TxOutputDatum.js.map +0 -1
- package/dist/Ledger/TxOutputId.js +0 -55
- package/dist/Ledger/TxOutputId.js.map +0 -1
- package/dist/Ledger/UTxO.js +0 -43
- package/dist/Ledger/UTxO.js.map +0 -1
- package/dist/Ledger/UTxORef.js.map +0 -1
- package/dist/Ledger/ValidatorHash.js.map +0 -1
- package/dist/Ledger/index.js.map +0 -1
- package/dist/Network/IsMainnet.js.map +0 -1
- package/dist/Network/Params.js.map +0 -1
- package/dist/Network/UTxOsAt.js +0 -4
- package/dist/Network/UTxOsAt.js.map +0 -1
- package/dist/Network/errors.js +0 -16
- package/dist/Network/errors.js.map +0 -1
- package/dist/Network/index.js.map +0 -1
- package/dist/Uplc/Cek.js +0 -3
- package/dist/Uplc/Cek.js.map +0 -1
- package/dist/Uplc/Data.js.map +0 -1
- package/dist/Uplc/DataSchema.js +0 -118
- package/dist/Uplc/DataSchema.js.map +0 -1
- package/dist/Uplc/Primitive.js +0 -23
- package/dist/Uplc/Primitive.js.map +0 -1
- package/dist/Uplc/index.js +0 -3
- package/dist/Uplc/index.js.map +0 -1
- package/dist/internal/Base32.js.map +0 -1
- package/dist/internal/BigEndian.js.map +0 -1
- package/dist/internal/Bits.js.map +0 -1
- package/dist/internal/Bytes.js.map +0 -1
- package/dist/internal/Flat.js.map +0 -1
- package/dist/internal/Float.js.map +0 -1
- package/dist/internal/Utf8.js.map +0 -1
- package/tsconfig.check.tsbuildinfo +0 -1
- package/types/Address.d.ts +0 -5
- package/types/Address.d.ts.map +0 -1
- package/types/Bech32.d.ts.map +0 -1
- package/types/Cbor.d.ts.map +0 -1
- package/types/Ledger/Address.d.ts.map +0 -1
- package/types/Ledger/AssetClass.d.ts.map +0 -1
- package/types/Ledger/Assets.d.ts +0 -70
- package/types/Ledger/Assets.d.ts.map +0 -1
- package/types/Ledger/Credential.d.ts.map +0 -1
- package/types/Ledger/DatumHash.d.ts.map +0 -1
- package/types/Ledger/IsMainnet.d.ts +0 -6
- package/types/Ledger/IsMainnet.d.ts.map +0 -1
- package/types/Ledger/MintingPolicy.d.ts.map +0 -1
- package/types/Ledger/NetworkParams.d.ts +0 -40
- package/types/Ledger/NetworkParams.d.ts.map +0 -1
- package/types/Ledger/PubKeyHash.d.ts.map +0 -1
- package/types/Ledger/TxHash.d.ts.map +0 -1
- package/types/Ledger/TxId.d.ts +0 -70
- package/types/Ledger/TxId.d.ts.map +0 -1
- package/types/Ledger/TxInput.d.ts +0 -55
- package/types/Ledger/TxInput.d.ts.map +0 -1
- package/types/Ledger/TxOutput.d.ts +0 -63
- package/types/Ledger/TxOutput.d.ts.map +0 -1
- package/types/Ledger/TxOutputDatum.d.ts +0 -41
- package/types/Ledger/TxOutputDatum.d.ts.map +0 -1
- package/types/Ledger/TxOutputId.d.ts +0 -133
- package/types/Ledger/TxOutputId.d.ts.map +0 -1
- package/types/Ledger/UTxO.d.ts +0 -55
- package/types/Ledger/UTxO.d.ts.map +0 -1
- package/types/Ledger/UTxORef.d.ts +0 -133
- package/types/Ledger/UTxORef.d.ts.map +0 -1
- package/types/Ledger/ValidatorHash.d.ts.map +0 -1
- package/types/Ledger/index.d.ts.map +0 -1
- package/types/Network/IsMainnet.d.ts.map +0 -1
- package/types/Network/Params.d.ts.map +0 -1
- package/types/Network/UTxOsAt.d.ts +0 -9
- package/types/Network/UTxOsAt.d.ts.map +0 -1
- package/types/Network/errors.d.ts +0 -18
- package/types/Network/errors.d.ts.map +0 -1
- package/types/Network/index.d.ts.map +0 -1
- package/types/Uplc/Cek.d.ts +0 -72
- package/types/Uplc/Cek.d.ts.map +0 -1
- package/types/Uplc/Data.d.ts.map +0 -1
- package/types/Uplc/DataSchema.d.ts +0 -227
- package/types/Uplc/DataSchema.d.ts.map +0 -1
- package/types/Uplc/Primitive.d.ts +0 -26
- package/types/Uplc/Primitive.d.ts.map +0 -1
- package/types/Uplc/index.d.ts +0 -3
- package/types/Uplc/index.d.ts.map +0 -1
- package/types/internal/Base32.d.ts.map +0 -1
- package/types/internal/BigEndian.d.ts.map +0 -1
- package/types/internal/Bits.d.ts.map +0 -1
- package/types/internal/Bytes.d.ts.map +0 -1
- package/types/internal/Flat.d.ts.map +0 -1
- package/types/internal/Float.d.ts.map +0 -1
- package/types/internal/Utf8.d.ts.map +0 -1
- /package/dist/{Network → Cardano/Network}/IsMainnet.js +0 -0
- /package/dist/{internal → Codecs}/BigEndian.js +0 -0
- /package/dist/{internal → Codecs}/Bits.js +0 -0
- /package/dist/{internal → Codecs}/Float.js +0 -0
- /package/types/{Network → Cardano/Network}/IsMainnet.d.ts +0 -0
- /package/types/{internal → Codecs}/Base32.d.ts +0 -0
- /package/types/{Bech32.d.ts → Codecs/Bech32.d.ts} +0 -0
- /package/types/{internal → Codecs}/BigEndian.d.ts +0 -0
- /package/types/{internal → Codecs}/Bits.d.ts +0 -0
- /package/types/{internal → Codecs}/Float.d.ts +0 -0
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import { Either, Schema } from "effect";
|
|
2
|
+
import * as Flat from "../../Codecs/Flat.js";
|
|
3
|
+
import * as Value from "./Value.js";
|
|
4
|
+
export declare const SourceSpan: Schema.Struct<{
|
|
5
|
+
file: typeof Schema.String;
|
|
6
|
+
start: Schema.Struct<{
|
|
7
|
+
line: typeof Schema.Number;
|
|
8
|
+
column: typeof Schema.Number;
|
|
9
|
+
}>;
|
|
10
|
+
end: Schema.optional<Schema.Struct<{
|
|
11
|
+
line: typeof Schema.Number;
|
|
12
|
+
column: typeof Schema.Number;
|
|
13
|
+
}>>;
|
|
14
|
+
}>;
|
|
15
|
+
export type SourceSpan = Schema.Schema.Type<typeof SourceSpan>;
|
|
16
|
+
export declare const Apply: Schema.TaggedStruct<"Apply", {
|
|
17
|
+
fn: Schema.suspend<Term, Term, never>;
|
|
18
|
+
arg: Schema.suspend<Term, Term, never>;
|
|
19
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
20
|
+
file: typeof Schema.String;
|
|
21
|
+
start: Schema.Struct<{
|
|
22
|
+
line: typeof Schema.Number;
|
|
23
|
+
column: typeof Schema.Number;
|
|
24
|
+
}>;
|
|
25
|
+
end: Schema.optional<Schema.Struct<{
|
|
26
|
+
line: typeof Schema.Number;
|
|
27
|
+
column: typeof Schema.Number;
|
|
28
|
+
}>>;
|
|
29
|
+
}>>;
|
|
30
|
+
}>;
|
|
31
|
+
export type Apply = {
|
|
32
|
+
_tag: "Apply";
|
|
33
|
+
fn: Term;
|
|
34
|
+
arg: Term;
|
|
35
|
+
sourceSpan?: SourceSpan | undefined;
|
|
36
|
+
};
|
|
37
|
+
declare const Builtin$: Schema.TaggedStruct<"Builtin", {
|
|
38
|
+
id: typeof Schema.Int;
|
|
39
|
+
name: Schema.optional<typeof Schema.String>;
|
|
40
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
41
|
+
file: typeof Schema.String;
|
|
42
|
+
start: Schema.Struct<{
|
|
43
|
+
line: typeof Schema.Number;
|
|
44
|
+
column: typeof Schema.Number;
|
|
45
|
+
}>;
|
|
46
|
+
end: Schema.optional<Schema.Struct<{
|
|
47
|
+
line: typeof Schema.Number;
|
|
48
|
+
column: typeof Schema.Number;
|
|
49
|
+
}>>;
|
|
50
|
+
}>>;
|
|
51
|
+
}>;
|
|
52
|
+
type Builtin$ = Schema.Schema.Type<typeof Builtin$>;
|
|
53
|
+
export { Builtin$ as Builtin };
|
|
54
|
+
export declare const Case: Schema.TaggedStruct<"Case", {
|
|
55
|
+
arg: Schema.suspend<Term, Term, never>;
|
|
56
|
+
cases: Schema.Array$<Schema.suspend<Term, Term, never>>;
|
|
57
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
58
|
+
file: typeof Schema.String;
|
|
59
|
+
start: Schema.Struct<{
|
|
60
|
+
line: typeof Schema.Number;
|
|
61
|
+
column: typeof Schema.Number;
|
|
62
|
+
}>;
|
|
63
|
+
end: Schema.optional<Schema.Struct<{
|
|
64
|
+
line: typeof Schema.Number;
|
|
65
|
+
column: typeof Schema.Number;
|
|
66
|
+
}>>;
|
|
67
|
+
}>>;
|
|
68
|
+
}>;
|
|
69
|
+
export type Case = {
|
|
70
|
+
_tag: "Case";
|
|
71
|
+
arg: Term;
|
|
72
|
+
cases: readonly Term[];
|
|
73
|
+
sourceSpan?: SourceSpan | undefined;
|
|
74
|
+
};
|
|
75
|
+
export declare const Const: Schema.TaggedStruct<"Const", {
|
|
76
|
+
value: Schema.Union<[typeof Schema.Boolean, typeof Schema.Uint8ArrayFromSelf, Schema.Struct<{
|
|
77
|
+
data: Schema.SchemaClass<{
|
|
78
|
+
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
79
|
+
} | {
|
|
80
|
+
readonly int: bigint;
|
|
81
|
+
} | {
|
|
82
|
+
readonly list: readonly import("./Data.js").Data[];
|
|
83
|
+
} | {
|
|
84
|
+
readonly map: readonly {
|
|
85
|
+
readonly k: import("./Data.js").Data;
|
|
86
|
+
readonly v: import("./Data.js").Data;
|
|
87
|
+
}[];
|
|
88
|
+
} | {
|
|
89
|
+
readonly fields: readonly import("./Data.js").Data[];
|
|
90
|
+
readonly constructor: number;
|
|
91
|
+
}, {
|
|
92
|
+
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
93
|
+
} | {
|
|
94
|
+
readonly int: bigint;
|
|
95
|
+
} | {
|
|
96
|
+
readonly list: readonly import("./Data.js").Data[];
|
|
97
|
+
} | {
|
|
98
|
+
readonly map: readonly {
|
|
99
|
+
readonly k: import("./Data.js").Data;
|
|
100
|
+
readonly v: import("./Data.js").Data;
|
|
101
|
+
}[];
|
|
102
|
+
} | {
|
|
103
|
+
readonly fields: readonly import("./Data.js").Data[];
|
|
104
|
+
readonly constructor: number;
|
|
105
|
+
}, never>;
|
|
106
|
+
}>, typeof Schema.BigIntFromSelf, Schema.Struct<{
|
|
107
|
+
itemType: Schema.SchemaClass<string & import("effect/Brand").Brand<"UplcType">, string & import("effect/Brand").Brand<"UplcType">, never>;
|
|
108
|
+
items: Schema.Array$<Schema.suspend<Value.Value, Value.Value, never>>;
|
|
109
|
+
}>, Schema.Struct<{
|
|
110
|
+
first: Schema.suspend<Value.Value, Value.Value, never>;
|
|
111
|
+
second: Schema.suspend<Value.Value, Value.Value, never>;
|
|
112
|
+
}>, typeof Schema.String, typeof Schema.Null, Schema.Struct<{
|
|
113
|
+
g1Element: Schema.Tuple<[typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf]>;
|
|
114
|
+
}>, Schema.Struct<{
|
|
115
|
+
g2Element: Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>;
|
|
116
|
+
}>, Schema.Struct<{
|
|
117
|
+
mlResult: Schema.Tuple2<Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>, Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>>;
|
|
118
|
+
}>]>;
|
|
119
|
+
name: Schema.optional<typeof Schema.String>;
|
|
120
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
121
|
+
file: typeof Schema.String;
|
|
122
|
+
start: Schema.Struct<{
|
|
123
|
+
line: typeof Schema.Number;
|
|
124
|
+
column: typeof Schema.Number;
|
|
125
|
+
}>;
|
|
126
|
+
end: Schema.optional<Schema.Struct<{
|
|
127
|
+
line: typeof Schema.Number;
|
|
128
|
+
column: typeof Schema.Number;
|
|
129
|
+
}>>;
|
|
130
|
+
}>>;
|
|
131
|
+
}>;
|
|
132
|
+
export type Const = Schema.Schema.Type<typeof Const>;
|
|
133
|
+
export declare const Constr: Schema.TaggedStruct<"Constr", {
|
|
134
|
+
tag: typeof Schema.Int;
|
|
135
|
+
args: Schema.Array$<Schema.suspend<Term, Term, never>>;
|
|
136
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
137
|
+
file: typeof Schema.String;
|
|
138
|
+
start: Schema.Struct<{
|
|
139
|
+
line: typeof Schema.Number;
|
|
140
|
+
column: typeof Schema.Number;
|
|
141
|
+
}>;
|
|
142
|
+
end: Schema.optional<Schema.Struct<{
|
|
143
|
+
line: typeof Schema.Number;
|
|
144
|
+
column: typeof Schema.Number;
|
|
145
|
+
}>>;
|
|
146
|
+
}>>;
|
|
147
|
+
}>;
|
|
148
|
+
export type Constr = {
|
|
149
|
+
_tag: "Constr";
|
|
150
|
+
tag: number;
|
|
151
|
+
args: readonly Term[];
|
|
152
|
+
sourceSpan?: SourceSpan | undefined;
|
|
153
|
+
};
|
|
154
|
+
export declare const Delay: Schema.TaggedStruct<"Delay", {
|
|
155
|
+
arg: Schema.suspend<Term, Term, never>;
|
|
156
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
157
|
+
file: typeof Schema.String;
|
|
158
|
+
start: Schema.Struct<{
|
|
159
|
+
line: typeof Schema.Number;
|
|
160
|
+
column: typeof Schema.Number;
|
|
161
|
+
}>;
|
|
162
|
+
end: Schema.optional<Schema.Struct<{
|
|
163
|
+
line: typeof Schema.Number;
|
|
164
|
+
column: typeof Schema.Number;
|
|
165
|
+
}>>;
|
|
166
|
+
}>>;
|
|
167
|
+
}>;
|
|
168
|
+
export type Delay = {
|
|
169
|
+
_tag: "Delay";
|
|
170
|
+
arg: Term;
|
|
171
|
+
sourceSpan?: SourceSpan | undefined;
|
|
172
|
+
name?: string | undefined;
|
|
173
|
+
};
|
|
174
|
+
declare const Error$: Schema.TaggedStruct<"Error", {
|
|
175
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
176
|
+
file: typeof Schema.String;
|
|
177
|
+
start: Schema.Struct<{
|
|
178
|
+
line: typeof Schema.Number;
|
|
179
|
+
column: typeof Schema.Number;
|
|
180
|
+
}>;
|
|
181
|
+
end: Schema.optional<Schema.Struct<{
|
|
182
|
+
line: typeof Schema.Number;
|
|
183
|
+
column: typeof Schema.Number;
|
|
184
|
+
}>>;
|
|
185
|
+
}>>;
|
|
186
|
+
}>;
|
|
187
|
+
type Error$ = Schema.Schema.Type<typeof Error$>;
|
|
188
|
+
export { Error$ as Error };
|
|
189
|
+
export declare const Force: Schema.TaggedStruct<"Force", {
|
|
190
|
+
arg: Schema.suspend<Term, Term, never>;
|
|
191
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
192
|
+
file: typeof Schema.String;
|
|
193
|
+
start: Schema.Struct<{
|
|
194
|
+
line: typeof Schema.Number;
|
|
195
|
+
column: typeof Schema.Number;
|
|
196
|
+
}>;
|
|
197
|
+
end: Schema.optional<Schema.Struct<{
|
|
198
|
+
line: typeof Schema.Number;
|
|
199
|
+
column: typeof Schema.Number;
|
|
200
|
+
}>>;
|
|
201
|
+
}>>;
|
|
202
|
+
}>;
|
|
203
|
+
export type Force = {
|
|
204
|
+
_tag: "Force";
|
|
205
|
+
arg: Term;
|
|
206
|
+
sourceSpan?: SourceSpan | undefined;
|
|
207
|
+
};
|
|
208
|
+
export declare const Lambda: Schema.TaggedStruct<"Lambda", {
|
|
209
|
+
body: Schema.suspend<Term, Term, never>;
|
|
210
|
+
argName: Schema.optional<typeof Schema.String>;
|
|
211
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
212
|
+
file: typeof Schema.String;
|
|
213
|
+
start: Schema.Struct<{
|
|
214
|
+
line: typeof Schema.Number;
|
|
215
|
+
column: typeof Schema.Number;
|
|
216
|
+
}>;
|
|
217
|
+
end: Schema.optional<Schema.Struct<{
|
|
218
|
+
line: typeof Schema.Number;
|
|
219
|
+
column: typeof Schema.Number;
|
|
220
|
+
}>>;
|
|
221
|
+
}>>;
|
|
222
|
+
name: Schema.optional<typeof Schema.String>;
|
|
223
|
+
}>;
|
|
224
|
+
export type Lambda = {
|
|
225
|
+
_tag: "Lambda";
|
|
226
|
+
body: Term;
|
|
227
|
+
argName?: string | undefined;
|
|
228
|
+
sourceSpan?: SourceSpan | undefined;
|
|
229
|
+
name?: string | undefined;
|
|
230
|
+
};
|
|
231
|
+
export declare const Var: Schema.TaggedStruct<"Var", {
|
|
232
|
+
index: typeof Schema.Int;
|
|
233
|
+
name: Schema.optional<typeof Schema.String>;
|
|
234
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
235
|
+
file: typeof Schema.String;
|
|
236
|
+
start: Schema.Struct<{
|
|
237
|
+
line: typeof Schema.Number;
|
|
238
|
+
column: typeof Schema.Number;
|
|
239
|
+
}>;
|
|
240
|
+
end: Schema.optional<Schema.Struct<{
|
|
241
|
+
line: typeof Schema.Number;
|
|
242
|
+
column: typeof Schema.Number;
|
|
243
|
+
}>>;
|
|
244
|
+
}>>;
|
|
245
|
+
}>;
|
|
246
|
+
export type Var = Schema.Schema.Type<typeof Var>;
|
|
247
|
+
export declare const Term: Schema.Union<[Schema.TaggedStruct<"Apply", {
|
|
248
|
+
fn: Schema.suspend<Term, Term, never>;
|
|
249
|
+
arg: Schema.suspend<Term, Term, never>;
|
|
250
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
251
|
+
file: typeof Schema.String;
|
|
252
|
+
start: Schema.Struct<{
|
|
253
|
+
line: typeof Schema.Number;
|
|
254
|
+
column: typeof Schema.Number;
|
|
255
|
+
}>;
|
|
256
|
+
end: Schema.optional<Schema.Struct<{
|
|
257
|
+
line: typeof Schema.Number;
|
|
258
|
+
column: typeof Schema.Number;
|
|
259
|
+
}>>;
|
|
260
|
+
}>>;
|
|
261
|
+
}>, Schema.TaggedStruct<"Builtin", {
|
|
262
|
+
id: typeof Schema.Int;
|
|
263
|
+
name: Schema.optional<typeof Schema.String>;
|
|
264
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
265
|
+
file: typeof Schema.String;
|
|
266
|
+
start: Schema.Struct<{
|
|
267
|
+
line: typeof Schema.Number;
|
|
268
|
+
column: typeof Schema.Number;
|
|
269
|
+
}>;
|
|
270
|
+
end: Schema.optional<Schema.Struct<{
|
|
271
|
+
line: typeof Schema.Number;
|
|
272
|
+
column: typeof Schema.Number;
|
|
273
|
+
}>>;
|
|
274
|
+
}>>;
|
|
275
|
+
}>, Schema.TaggedStruct<"Case", {
|
|
276
|
+
arg: Schema.suspend<Term, Term, never>;
|
|
277
|
+
cases: Schema.Array$<Schema.suspend<Term, Term, never>>;
|
|
278
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
279
|
+
file: typeof Schema.String;
|
|
280
|
+
start: Schema.Struct<{
|
|
281
|
+
line: typeof Schema.Number;
|
|
282
|
+
column: typeof Schema.Number;
|
|
283
|
+
}>;
|
|
284
|
+
end: Schema.optional<Schema.Struct<{
|
|
285
|
+
line: typeof Schema.Number;
|
|
286
|
+
column: typeof Schema.Number;
|
|
287
|
+
}>>;
|
|
288
|
+
}>>;
|
|
289
|
+
}>, Schema.TaggedStruct<"Const", {
|
|
290
|
+
value: Schema.Union<[typeof Schema.Boolean, typeof Schema.Uint8ArrayFromSelf, Schema.Struct<{
|
|
291
|
+
data: Schema.SchemaClass<{
|
|
292
|
+
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
293
|
+
} | {
|
|
294
|
+
readonly int: bigint;
|
|
295
|
+
} | {
|
|
296
|
+
readonly list: readonly import("./Data.js").Data[];
|
|
297
|
+
} | {
|
|
298
|
+
readonly map: readonly {
|
|
299
|
+
readonly k: import("./Data.js").Data;
|
|
300
|
+
readonly v: import("./Data.js").Data;
|
|
301
|
+
}[];
|
|
302
|
+
} | {
|
|
303
|
+
readonly fields: readonly import("./Data.js").Data[];
|
|
304
|
+
readonly constructor: number;
|
|
305
|
+
}, {
|
|
306
|
+
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
307
|
+
} | {
|
|
308
|
+
readonly int: bigint;
|
|
309
|
+
} | {
|
|
310
|
+
readonly list: readonly import("./Data.js").Data[];
|
|
311
|
+
} | {
|
|
312
|
+
readonly map: readonly {
|
|
313
|
+
readonly k: import("./Data.js").Data;
|
|
314
|
+
readonly v: import("./Data.js").Data;
|
|
315
|
+
}[];
|
|
316
|
+
} | {
|
|
317
|
+
readonly fields: readonly import("./Data.js").Data[];
|
|
318
|
+
readonly constructor: number;
|
|
319
|
+
}, never>;
|
|
320
|
+
}>, typeof Schema.BigIntFromSelf, Schema.Struct<{
|
|
321
|
+
itemType: Schema.SchemaClass<string & import("effect/Brand").Brand<"UplcType">, string & import("effect/Brand").Brand<"UplcType">, never>;
|
|
322
|
+
items: Schema.Array$<Schema.suspend<Value.Value, Value.Value, never>>;
|
|
323
|
+
}>, Schema.Struct<{
|
|
324
|
+
first: Schema.suspend<Value.Value, Value.Value, never>;
|
|
325
|
+
second: Schema.suspend<Value.Value, Value.Value, never>;
|
|
326
|
+
}>, typeof Schema.String, typeof Schema.Null, Schema.Struct<{
|
|
327
|
+
g1Element: Schema.Tuple<[typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf]>;
|
|
328
|
+
}>, Schema.Struct<{
|
|
329
|
+
g2Element: Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>;
|
|
330
|
+
}>, Schema.Struct<{
|
|
331
|
+
mlResult: Schema.Tuple2<Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>, Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>>;
|
|
332
|
+
}>]>;
|
|
333
|
+
name: Schema.optional<typeof Schema.String>;
|
|
334
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
335
|
+
file: typeof Schema.String;
|
|
336
|
+
start: Schema.Struct<{
|
|
337
|
+
line: typeof Schema.Number;
|
|
338
|
+
column: typeof Schema.Number;
|
|
339
|
+
}>;
|
|
340
|
+
end: Schema.optional<Schema.Struct<{
|
|
341
|
+
line: typeof Schema.Number;
|
|
342
|
+
column: typeof Schema.Number;
|
|
343
|
+
}>>;
|
|
344
|
+
}>>;
|
|
345
|
+
}>, Schema.TaggedStruct<"Constr", {
|
|
346
|
+
tag: typeof Schema.Int;
|
|
347
|
+
args: Schema.Array$<Schema.suspend<Term, Term, never>>;
|
|
348
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
349
|
+
file: typeof Schema.String;
|
|
350
|
+
start: Schema.Struct<{
|
|
351
|
+
line: typeof Schema.Number;
|
|
352
|
+
column: typeof Schema.Number;
|
|
353
|
+
}>;
|
|
354
|
+
end: Schema.optional<Schema.Struct<{
|
|
355
|
+
line: typeof Schema.Number;
|
|
356
|
+
column: typeof Schema.Number;
|
|
357
|
+
}>>;
|
|
358
|
+
}>>;
|
|
359
|
+
}>, Schema.TaggedStruct<"Delay", {
|
|
360
|
+
arg: Schema.suspend<Term, Term, never>;
|
|
361
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
362
|
+
file: typeof Schema.String;
|
|
363
|
+
start: Schema.Struct<{
|
|
364
|
+
line: typeof Schema.Number;
|
|
365
|
+
column: typeof Schema.Number;
|
|
366
|
+
}>;
|
|
367
|
+
end: Schema.optional<Schema.Struct<{
|
|
368
|
+
line: typeof Schema.Number;
|
|
369
|
+
column: typeof Schema.Number;
|
|
370
|
+
}>>;
|
|
371
|
+
}>>;
|
|
372
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
373
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
374
|
+
file: typeof Schema.String;
|
|
375
|
+
start: Schema.Struct<{
|
|
376
|
+
line: typeof Schema.Number;
|
|
377
|
+
column: typeof Schema.Number;
|
|
378
|
+
}>;
|
|
379
|
+
end: Schema.optional<Schema.Struct<{
|
|
380
|
+
line: typeof Schema.Number;
|
|
381
|
+
column: typeof Schema.Number;
|
|
382
|
+
}>>;
|
|
383
|
+
}>>;
|
|
384
|
+
}>, Schema.TaggedStruct<"Force", {
|
|
385
|
+
arg: Schema.suspend<Term, Term, never>;
|
|
386
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
387
|
+
file: typeof Schema.String;
|
|
388
|
+
start: Schema.Struct<{
|
|
389
|
+
line: typeof Schema.Number;
|
|
390
|
+
column: typeof Schema.Number;
|
|
391
|
+
}>;
|
|
392
|
+
end: Schema.optional<Schema.Struct<{
|
|
393
|
+
line: typeof Schema.Number;
|
|
394
|
+
column: typeof Schema.Number;
|
|
395
|
+
}>>;
|
|
396
|
+
}>>;
|
|
397
|
+
}>, Schema.TaggedStruct<"Lambda", {
|
|
398
|
+
body: Schema.suspend<Term, Term, never>;
|
|
399
|
+
argName: Schema.optional<typeof Schema.String>;
|
|
400
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
401
|
+
file: typeof Schema.String;
|
|
402
|
+
start: Schema.Struct<{
|
|
403
|
+
line: typeof Schema.Number;
|
|
404
|
+
column: typeof Schema.Number;
|
|
405
|
+
}>;
|
|
406
|
+
end: Schema.optional<Schema.Struct<{
|
|
407
|
+
line: typeof Schema.Number;
|
|
408
|
+
column: typeof Schema.Number;
|
|
409
|
+
}>>;
|
|
410
|
+
}>>;
|
|
411
|
+
name: Schema.optional<typeof Schema.String>;
|
|
412
|
+
}>, Schema.TaggedStruct<"Var", {
|
|
413
|
+
index: typeof Schema.Int;
|
|
414
|
+
name: Schema.optional<typeof Schema.String>;
|
|
415
|
+
sourceSpan: Schema.optional<Schema.Struct<{
|
|
416
|
+
file: typeof Schema.String;
|
|
417
|
+
start: Schema.Struct<{
|
|
418
|
+
line: typeof Schema.Number;
|
|
419
|
+
column: typeof Schema.Number;
|
|
420
|
+
}>;
|
|
421
|
+
end: Schema.optional<Schema.Struct<{
|
|
422
|
+
line: typeof Schema.Number;
|
|
423
|
+
column: typeof Schema.Number;
|
|
424
|
+
}>>;
|
|
425
|
+
}>>;
|
|
426
|
+
}>]>;
|
|
427
|
+
export type Term = Apply | Builtin$ | Case | Const | Constr | Delay | Error$ | Force | Lambda | Var;
|
|
428
|
+
/**
|
|
429
|
+
* Simple recursive algorithm that calculates the number of bits of the flat encoded term
|
|
430
|
+
* @param term
|
|
431
|
+
* @returns
|
|
432
|
+
*/
|
|
433
|
+
export declare function flatSize(term: Term): number;
|
|
434
|
+
export declare function flatTag(term: Term): number;
|
|
435
|
+
/**
|
|
436
|
+
* Reads a single Term using stack-based algorithm for its children
|
|
437
|
+
* @param param0
|
|
438
|
+
* @returns
|
|
439
|
+
*/
|
|
440
|
+
export declare const decode: ({ builtinName }: {
|
|
441
|
+
builtinName?: (id: number) => string | undefined;
|
|
442
|
+
}) => (r: Flat.Reader) => Either.Either<Term, Error>;
|
|
443
|
+
/**
|
|
444
|
+
* Mutates the Flat.Writer
|
|
445
|
+
* @param w
|
|
446
|
+
*/
|
|
447
|
+
export declare const encode: (w: Flat.Writer) => (term: Term) => void;
|
|
448
|
+
/**
|
|
449
|
+
* Simple recursive algorithm the generates the textual UPLC representation
|
|
450
|
+
* @param term
|
|
451
|
+
* @returns
|
|
452
|
+
*/
|
|
453
|
+
export declare function toString(term: Term): string;
|
|
454
|
+
//# sourceMappingURL=Term.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Term.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Uplc/Term.ts"],"names":[],"mappings":"AAAA,O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AAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWhB,CAAA;AAED,MAAM,MAAM,IAAI,GACZ,KAAK,GACL,QAAQ,GACR,IAAI,GACJ,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,GAAG,CAAA;AAEP;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAyB3C;AAaD,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAuB1C;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAChB,iBAAiB;IAAE,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;CAAE,MACrE,GAAG,IAAI,CAAC,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CA2K1C,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,MAAM,GAChB,GAAG,IAAI,CAAC,MAAM,MACd,MAAM,IAAI,KAAG,IAgGb,CAAA;AAEH;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAyB3C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
/**
|
|
3
|
+
* TODO: more accurate test
|
|
4
|
+
* @param s
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare function isValid(s: string): s is Type;
|
|
8
|
+
export declare const Type: Schema.brand<Schema.filter<typeof Schema.String>, "UplcType">;
|
|
9
|
+
export type Type = Schema.Schema.Type<typeof Type>;
|
|
10
|
+
export declare const Bool: Type;
|
|
11
|
+
export declare const ByteArray: Type;
|
|
12
|
+
export declare const Data: Type;
|
|
13
|
+
export declare const Int: Type;
|
|
14
|
+
export declare const String: Type;
|
|
15
|
+
export declare const Unit: Type;
|
|
16
|
+
export declare const Bls12_381_G1Element: Type;
|
|
17
|
+
export declare const Bls12_381_G2Element: Type;
|
|
18
|
+
export declare const Bls12_381_MlResult: Type;
|
|
19
|
+
export declare function List(item: Type): Type;
|
|
20
|
+
export declare function Pair(first: Type, second: Type): Type;
|
|
21
|
+
export declare const DataPair: string & import("effect/Brand").Brand<"UplcType">;
|
|
22
|
+
export declare const DataMap: string & import("effect/Brand").Brand<"UplcType">;
|
|
23
|
+
/**
|
|
24
|
+
* Stack-based algorithm
|
|
25
|
+
* @param t
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export declare function toString(t: Type): string;
|
|
29
|
+
//# sourceMappingURL=Type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Type.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Uplc/Type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,IAAI,IAAI,CAE5C;AAED,eAAO,MAAM,IAAI,+DAGhB,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAA;AAElD,eAAO,MAAM,IAAI,EAAa,IAAI,CAAA;AAElC,eAAO,MAAM,SAAS,EAAa,IAAI,CAAA;AAEvC,eAAO,MAAM,IAAI,EAAa,IAAI,CAAA;AAElC,eAAO,MAAM,GAAG,EAAa,IAAI,CAAA;AAEjC,eAAO,MAAM,MAAM,EAAa,IAAI,CAAA;AAEpC,eAAO,MAAM,IAAI,EAAa,IAAI,CAAA;AAElC,eAAO,MAAM,mBAAmB,EAAa,IAAI,CAAA;AAEjD,eAAO,MAAM,mBAAmB,EAAa,IAAI,CAAA;AAEjD,eAAO,MAAM,kBAAkB,EAAa,IAAI,CAAA;AAMhD,wBAAgB,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAErC;AAID,wBAAgB,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAG,IAAI,CAIpD;AAED,eAAO,MAAM,QAAQ,mDAAmC,CAAA;AAExD,eAAO,MAAM,OAAO,mDAAiC,CAAA;AAErD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAwGxC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { Either, Schema } from "effect";
|
|
2
|
+
import * as Flat from "../../Codecs/Flat.js";
|
|
3
|
+
import * as Data from "./Data.js";
|
|
4
|
+
import * as Type from "./Type.js";
|
|
5
|
+
export declare const Bool: typeof Schema.Boolean;
|
|
6
|
+
export type Bool = Schema.Schema.Type<typeof Bool>;
|
|
7
|
+
export declare const ByteArray: typeof Schema.Uint8ArrayFromSelf;
|
|
8
|
+
export type ByteArray = Schema.Schema.Type<typeof ByteArray>;
|
|
9
|
+
declare const Data$: Schema.Struct<{
|
|
10
|
+
data: Schema.SchemaClass<{
|
|
11
|
+
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
12
|
+
} | {
|
|
13
|
+
readonly int: bigint;
|
|
14
|
+
} | {
|
|
15
|
+
readonly list: readonly Data.Data[];
|
|
16
|
+
} | {
|
|
17
|
+
readonly map: readonly {
|
|
18
|
+
readonly k: Data.Data;
|
|
19
|
+
readonly v: Data.Data;
|
|
20
|
+
}[];
|
|
21
|
+
} | {
|
|
22
|
+
readonly fields: readonly Data.Data[];
|
|
23
|
+
readonly constructor: number;
|
|
24
|
+
}, {
|
|
25
|
+
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
26
|
+
} | {
|
|
27
|
+
readonly int: bigint;
|
|
28
|
+
} | {
|
|
29
|
+
readonly list: readonly Data.Data[];
|
|
30
|
+
} | {
|
|
31
|
+
readonly map: readonly {
|
|
32
|
+
readonly k: Data.Data;
|
|
33
|
+
readonly v: Data.Data;
|
|
34
|
+
}[];
|
|
35
|
+
} | {
|
|
36
|
+
readonly fields: readonly Data.Data[];
|
|
37
|
+
readonly constructor: number;
|
|
38
|
+
}, never>;
|
|
39
|
+
}>;
|
|
40
|
+
type Data$ = Schema.Schema.Type<typeof Data$>;
|
|
41
|
+
export { Data$ as Data };
|
|
42
|
+
export declare function isData(v: Value): v is Data$;
|
|
43
|
+
export declare const Int: typeof Schema.BigIntFromSelf;
|
|
44
|
+
export type Int = Schema.Schema.Type<typeof Int>;
|
|
45
|
+
export declare const String: typeof Schema.String;
|
|
46
|
+
export type String = Schema.Schema.Type<typeof String>;
|
|
47
|
+
export declare const Unit: typeof Schema.Null;
|
|
48
|
+
export type Unit = Schema.Schema.Type<typeof Unit>;
|
|
49
|
+
export type List = {
|
|
50
|
+
readonly itemType: Type.Type;
|
|
51
|
+
readonly items: readonly Value[];
|
|
52
|
+
};
|
|
53
|
+
export declare const List: Schema.Struct<{
|
|
54
|
+
itemType: Schema.SchemaClass<string & import("effect/Brand").Brand<"UplcType">, string & import("effect/Brand").Brand<"UplcType">, never>;
|
|
55
|
+
items: Schema.Array$<Schema.suspend<Value, Value, never>>;
|
|
56
|
+
}>;
|
|
57
|
+
export declare function isList(v: Value): v is List;
|
|
58
|
+
export type Pair = {
|
|
59
|
+
readonly first: Value;
|
|
60
|
+
readonly second: Value;
|
|
61
|
+
};
|
|
62
|
+
export declare const Pair: Schema.Struct<{
|
|
63
|
+
first: Schema.suspend<Value, Value, never>;
|
|
64
|
+
second: Schema.suspend<Value, Value, never>;
|
|
65
|
+
}>;
|
|
66
|
+
export declare function isPair(v: Value): v is Pair;
|
|
67
|
+
export declare const Bls12_381_G1Element: Schema.Struct<{
|
|
68
|
+
g1Element: Schema.Tuple<[typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf]>;
|
|
69
|
+
}>;
|
|
70
|
+
export type Bls12_381_G1Element = Schema.Schema.Type<typeof Bls12_381_G1Element>;
|
|
71
|
+
export declare const Bls12_381_G2Element: Schema.Struct<{
|
|
72
|
+
g2Element: Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>;
|
|
73
|
+
}>;
|
|
74
|
+
export type Bls12_381_G2Element = Schema.Schema.Type<typeof Bls12_381_G2Element>;
|
|
75
|
+
export declare const Bls12_381_MlResult: Schema.Struct<{
|
|
76
|
+
mlResult: Schema.Tuple2<Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>, Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>>;
|
|
77
|
+
}>;
|
|
78
|
+
export type Bls12_381_MlResult = Schema.Schema.Type<typeof Bls12_381_MlResult>;
|
|
79
|
+
/**
|
|
80
|
+
* TODO: add Bls values
|
|
81
|
+
*/
|
|
82
|
+
export type Value = Bool | ByteArray | Data$ | Int | List | Pair | String | Unit | Bls12_381_G1Element | Bls12_381_G2Element | Bls12_381_MlResult;
|
|
83
|
+
/**
|
|
84
|
+
* TODO: add Bls values
|
|
85
|
+
*/
|
|
86
|
+
export declare const Value: Schema.Union<[typeof Schema.Boolean, typeof Schema.Uint8ArrayFromSelf, Schema.Struct<{
|
|
87
|
+
data: Schema.SchemaClass<{
|
|
88
|
+
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
89
|
+
} | {
|
|
90
|
+
readonly int: bigint;
|
|
91
|
+
} | {
|
|
92
|
+
readonly list: readonly Data.Data[];
|
|
93
|
+
} | {
|
|
94
|
+
readonly map: readonly {
|
|
95
|
+
readonly k: Data.Data;
|
|
96
|
+
readonly v: Data.Data;
|
|
97
|
+
}[];
|
|
98
|
+
} | {
|
|
99
|
+
readonly fields: readonly Data.Data[];
|
|
100
|
+
readonly constructor: number;
|
|
101
|
+
}, {
|
|
102
|
+
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
103
|
+
} | {
|
|
104
|
+
readonly int: bigint;
|
|
105
|
+
} | {
|
|
106
|
+
readonly list: readonly Data.Data[];
|
|
107
|
+
} | {
|
|
108
|
+
readonly map: readonly {
|
|
109
|
+
readonly k: Data.Data;
|
|
110
|
+
readonly v: Data.Data;
|
|
111
|
+
}[];
|
|
112
|
+
} | {
|
|
113
|
+
readonly fields: readonly Data.Data[];
|
|
114
|
+
readonly constructor: number;
|
|
115
|
+
}, never>;
|
|
116
|
+
}>, typeof Schema.BigIntFromSelf, Schema.Struct<{
|
|
117
|
+
itemType: Schema.SchemaClass<string & import("effect/Brand").Brand<"UplcType">, string & import("effect/Brand").Brand<"UplcType">, never>;
|
|
118
|
+
items: Schema.Array$<Schema.suspend<Value, Value, never>>;
|
|
119
|
+
}>, Schema.Struct<{
|
|
120
|
+
first: Schema.suspend<Value, Value, never>;
|
|
121
|
+
second: Schema.suspend<Value, Value, never>;
|
|
122
|
+
}>, typeof Schema.String, typeof Schema.Null, Schema.Struct<{
|
|
123
|
+
g1Element: Schema.Tuple<[typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf]>;
|
|
124
|
+
}>, Schema.Struct<{
|
|
125
|
+
g2Element: Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>;
|
|
126
|
+
}>, Schema.Struct<{
|
|
127
|
+
mlResult: Schema.Tuple2<Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>, Schema.Tuple<[Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>, Schema.Tuple2<typeof Schema.BigIntFromSelf, typeof Schema.BigIntFromSelf>]>>;
|
|
128
|
+
}>]>;
|
|
129
|
+
export declare function flatSize(v: Value): number;
|
|
130
|
+
export declare function memSize(v: Value): number;
|
|
131
|
+
/**
|
|
132
|
+
* Doesn't include type bits
|
|
133
|
+
* Simple recursive algorithm (containers are expected to be that big anyway)
|
|
134
|
+
* @param v
|
|
135
|
+
* @param w
|
|
136
|
+
*/
|
|
137
|
+
export declare const toFlat: (w: Flat.Writer) => (v: Value) => void;
|
|
138
|
+
/**
|
|
139
|
+
* Mutates the Flat.Reader
|
|
140
|
+
* Takes the type bits into account
|
|
141
|
+
* @param r
|
|
142
|
+
*/
|
|
143
|
+
export declare const decode: (r: Flat.Reader) => Either.Either<Value, Error>;
|
|
144
|
+
/**
|
|
145
|
+
* Simple recursive algorithm
|
|
146
|
+
* @param v
|
|
147
|
+
* @returns
|
|
148
|
+
*/
|
|
149
|
+
export declare function toString(v: Value): string;
|
|
150
|
+
export declare function toType(v: Value): Type.Type;
|
|
151
|
+
export declare function describeType(v: Value): string;
|
|
152
|
+
//# sourceMappingURL=Value.d.ts.map
|
|
@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K,GAAG,MAAM,CA4BzC;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM,CAoBxC;AAED;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAChB,GAAG,IAAI,CAAC,MAAM,MACd,GAAG,KAAK,KAAG,IA6BX,CAAA;AA+IH;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,IAAI,CAAC,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAW9D,CAAA;AAEJ;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM,CA0BzC;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,IAAI,CAsB1C;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM,CAE7C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * as Cek from "./Cek.js";
|
|
2
|
+
export * as Cost from "./Cost.js";
|
|
3
|
+
export * as Data from "./Data.js";
|
|
4
|
+
export * as Script from "./Script.js";
|
|
5
|
+
export * as ScriptContext from "./ScriptContext.js";
|
|
6
|
+
export * as Value from "./Value.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Uplc/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Cardano/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA"}
|