@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,956 @@
|
|
|
1
|
+
import { Either, Option, Schema } from "effect";
|
|
2
|
+
import * as Cbor from "../../Codecs/Cbor.js";
|
|
3
|
+
export const Cost = Schema.Struct({
|
|
4
|
+
cpu: Schema.BigIntFromSelf,
|
|
5
|
+
mem: Schema.BigIntFromSelf
|
|
6
|
+
});
|
|
7
|
+
export const decode = (bytes) => Cbor.decodeTuple([Cbor.decodeInt, Cbor.decodeInt])(bytes).pipe(Either.map(([mem, cpu]) => ({ cpu, mem })));
|
|
8
|
+
export function encode(cost) {
|
|
9
|
+
return Cbor.encodeTuple([Cbor.encodeInt(cost.mem), Cbor.encodeInt(cost.cpu)]);
|
|
10
|
+
}
|
|
11
|
+
const Param = Schema.Number.pipe(Schema.positive(), Schema.int());
|
|
12
|
+
/**
|
|
13
|
+
* V1 has 166 cost-params, V2 has 175 cost-params, V3 has 251 cost-params
|
|
14
|
+
*/
|
|
15
|
+
const Params = Schema.Array(Param).pipe(Schema.minItems(166));
|
|
16
|
+
function getParamOrThrow(params, index) {
|
|
17
|
+
return BigInt(Option.fromNullable(params[index]).pipe(Option.getOrThrow));
|
|
18
|
+
}
|
|
19
|
+
export function makeModel(params, builtins) {
|
|
20
|
+
return {
|
|
21
|
+
applyTerm: {
|
|
22
|
+
cpu: getParamOrThrow(params, 17),
|
|
23
|
+
mem: getParamOrThrow(params, 18)
|
|
24
|
+
},
|
|
25
|
+
builtinTerm: {
|
|
26
|
+
cpu: getParamOrThrow(params, 19),
|
|
27
|
+
mem: getParamOrThrow(params, 20)
|
|
28
|
+
},
|
|
29
|
+
constTerm: {
|
|
30
|
+
cpu: getParamOrThrow(params, 21),
|
|
31
|
+
mem: getParamOrThrow(params, 22)
|
|
32
|
+
},
|
|
33
|
+
delayTerm: {
|
|
34
|
+
cpu: getParamOrThrow(params, 23),
|
|
35
|
+
mem: getParamOrThrow(params, 24)
|
|
36
|
+
},
|
|
37
|
+
forceTerm: {
|
|
38
|
+
cpu: getParamOrThrow(params, 25),
|
|
39
|
+
mem: getParamOrThrow(params, 26)
|
|
40
|
+
},
|
|
41
|
+
lambdaTerm: {
|
|
42
|
+
cpu: getParamOrThrow(params, 27),
|
|
43
|
+
mem: getParamOrThrow(params, 28)
|
|
44
|
+
},
|
|
45
|
+
startupCost: {
|
|
46
|
+
cpu: getParamOrThrow(params, 29),
|
|
47
|
+
mem: getParamOrThrow(params, 30)
|
|
48
|
+
},
|
|
49
|
+
varTerm: {
|
|
50
|
+
cpu: getParamOrThrow(params, 31),
|
|
51
|
+
mem: getParamOrThrow(params, 32)
|
|
52
|
+
},
|
|
53
|
+
constrTerm: {
|
|
54
|
+
cpu: BigInt(params[193] ?? 0), // fall back to zero so we can also use this function for v1 and v2
|
|
55
|
+
mem: BigInt(params[194] ?? 0)
|
|
56
|
+
},
|
|
57
|
+
caseTerm: {
|
|
58
|
+
cpu: BigInt(params[195] ?? 0), // fall back to zero so we can also use this function for v1 and v2
|
|
59
|
+
mem: BigInt(params[196] ?? 0)
|
|
60
|
+
},
|
|
61
|
+
builtins: Object.fromEntries(builtins.map((b) => {
|
|
62
|
+
const cpuModel = b.cpuModel(params);
|
|
63
|
+
const memModel = b.memModel(params);
|
|
64
|
+
const calc = (argSizes) => ({
|
|
65
|
+
cpu: cpuModel(argSizes),
|
|
66
|
+
mem: memModel(argSizes)
|
|
67
|
+
});
|
|
68
|
+
return [b.name, calc];
|
|
69
|
+
}))
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export const Max = (_params) => {
|
|
73
|
+
return (argSizes) => {
|
|
74
|
+
return BigInt(argSizes.reduce((m, s) => (s > m ? s : m), 0));
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export const Min = (_params) => {
|
|
78
|
+
return (argSizes) => {
|
|
79
|
+
return BigInt(argSizes.slice(1).reduce((m, a) => (a < m ? a : m), argSizes[0]));
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export const Sum = (_params) => {
|
|
83
|
+
return (argSizes) => {
|
|
84
|
+
return BigInt(argSizes.reduce((s, a) => s + a, 0));
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export const Prod = (_params) => {
|
|
88
|
+
return (argSizes) => {
|
|
89
|
+
return BigInt(argSizes.reduce((p, a) => p * a, 1));
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export const Diff = (_params) => {
|
|
93
|
+
return (argSizes) => {
|
|
94
|
+
if (argSizes.length != 2) {
|
|
95
|
+
throw new Error(`ArgsDiff cost model can only be used for two arguments, got ${argSizes.length} arguments`);
|
|
96
|
+
}
|
|
97
|
+
const [x, y] = argSizes;
|
|
98
|
+
const d = BigInt(x - y);
|
|
99
|
+
return d;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export const Constant = (constantId) => (params) => {
|
|
103
|
+
const c = getParamOrThrow(params, constantId);
|
|
104
|
+
return (_argSizes) => c;
|
|
105
|
+
};
|
|
106
|
+
export const ConstantOffDiag = (constantId) => (makeOnDiag) => (params) => {
|
|
107
|
+
const constant = getParamOrThrow(params, constantId);
|
|
108
|
+
const calcOnDiag = makeOnDiag(params);
|
|
109
|
+
return (argSizes) => {
|
|
110
|
+
if (argSizes.length != 2) {
|
|
111
|
+
throw new Error(`ArgSizesDiag cost model can only be used for two arguments, got ${argSizes.length} arguments`);
|
|
112
|
+
}
|
|
113
|
+
const [x, y] = argSizes;
|
|
114
|
+
if (x != y) {
|
|
115
|
+
return constant;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return calcOnDiag(argSizes);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export const ConstantBelowDiag = (constantId) => (makeOnAboveDiag) => (params) => {
|
|
123
|
+
const constant = getParamOrThrow(params, constantId);
|
|
124
|
+
const calcOnAboveDiag = makeOnAboveDiag(params);
|
|
125
|
+
return (argSizes) => {
|
|
126
|
+
if (argSizes.length != 2) {
|
|
127
|
+
throw new Error(`expected only 2 arguments for ConstantBelowDiag cost model function, got ${argSizes.length}`);
|
|
128
|
+
}
|
|
129
|
+
const [x, y] = argSizes;
|
|
130
|
+
if (x < y) {
|
|
131
|
+
return constant;
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
return calcOnAboveDiag(argSizes);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export const First = (_params) => {
|
|
139
|
+
return (argSizes) => {
|
|
140
|
+
if (argSizes.length < 1) {
|
|
141
|
+
throw new Error(`'First' model expected at least one arg, got ${argSizes.length}`);
|
|
142
|
+
}
|
|
143
|
+
return BigInt(argSizes[0]);
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
export const Second = (_params) => {
|
|
147
|
+
return (argSizes) => {
|
|
148
|
+
if (argSizes.length < 2) {
|
|
149
|
+
throw new Error(`'Second' model expected at least two args, got ${argSizes.length}`);
|
|
150
|
+
}
|
|
151
|
+
return BigInt(argSizes[1]);
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
export const Third = (_params) => {
|
|
155
|
+
return (argSizes) => {
|
|
156
|
+
if (argSizes.length < 3) {
|
|
157
|
+
throw new Error(`'Third' model expected at least three args, got ${argSizes.length}`);
|
|
158
|
+
}
|
|
159
|
+
return BigInt(argSizes[2]);
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
export const AtLeast = (minimumId) => (makeX) => (params) => {
|
|
163
|
+
const minimum = getParamOrThrow(params, minimumId);
|
|
164
|
+
const calcX = makeX(params);
|
|
165
|
+
return (argSizes) => {
|
|
166
|
+
const x = calcX(argSizes);
|
|
167
|
+
return x < minimum ? minimum : x;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
export const Linear = (interceptId, slopeId) => (makeX) => (params) => {
|
|
171
|
+
const intercept = getParamOrThrow(params, interceptId);
|
|
172
|
+
const slope = getParamOrThrow(params, slopeId);
|
|
173
|
+
const calcX = makeX(params);
|
|
174
|
+
return (argSizes) => {
|
|
175
|
+
const x = calcX(argSizes);
|
|
176
|
+
return intercept + slope * x;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
export const QuadXY = (coefIds) => (params) => {
|
|
180
|
+
const c00 = getParamOrThrow(params, coefIds.c00);
|
|
181
|
+
const c10 = getParamOrThrow(params, coefIds.c10);
|
|
182
|
+
const c01 = getParamOrThrow(params, coefIds.c01);
|
|
183
|
+
const c20 = getParamOrThrow(params, coefIds.c20);
|
|
184
|
+
const c11 = getParamOrThrow(params, coefIds.c11);
|
|
185
|
+
const c02 = getParamOrThrow(params, coefIds.c02);
|
|
186
|
+
return (argSizes) => {
|
|
187
|
+
if (argSizes.length != 2) {
|
|
188
|
+
throw new Error(`expected only 2 arguments for QuadXY cost model function, got ${argSizes.length}`);
|
|
189
|
+
}
|
|
190
|
+
const x = BigInt(argSizes[0]);
|
|
191
|
+
const y = BigInt(argSizes[1]);
|
|
192
|
+
return c00 + c10 * x + c01 * y + c20 * x * x + c11 * x * y + c02 * y * y;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
export class Tracker {
|
|
196
|
+
model;
|
|
197
|
+
cpu;
|
|
198
|
+
mem;
|
|
199
|
+
breakdown;
|
|
200
|
+
/**
|
|
201
|
+
* @param model
|
|
202
|
+
*/
|
|
203
|
+
constructor(model) {
|
|
204
|
+
this.model = model;
|
|
205
|
+
this.cpu = 0n;
|
|
206
|
+
this.mem = 0n;
|
|
207
|
+
this.breakdown = {};
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* @param key
|
|
211
|
+
* @param d
|
|
212
|
+
*/
|
|
213
|
+
incrCost(key, d) {
|
|
214
|
+
this.cpu += d.cpu;
|
|
215
|
+
this.mem += d.mem;
|
|
216
|
+
if (key in this.breakdown) {
|
|
217
|
+
const entry = this.breakdown[key];
|
|
218
|
+
this.breakdown[key] = {
|
|
219
|
+
count: entry.count + 1,
|
|
220
|
+
mem: entry.mem + d.mem,
|
|
221
|
+
cpu: entry.cpu + d.cpu
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
this.breakdown[key] = { mem: d.mem, cpu: d.cpu, count: 1 };
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
incrApplyCost() {
|
|
229
|
+
this.incrCost("applyTerm", this.model.applyTerm);
|
|
230
|
+
}
|
|
231
|
+
incrBuiltinCost() {
|
|
232
|
+
this.incrCost("builtinTerm", this.model.builtinTerm);
|
|
233
|
+
}
|
|
234
|
+
incrCaseCost() {
|
|
235
|
+
this.incrCost("caseTerm", this.model.caseTerm);
|
|
236
|
+
}
|
|
237
|
+
incrConstCost() {
|
|
238
|
+
this.incrCost("constTerm", this.model.constTerm);
|
|
239
|
+
}
|
|
240
|
+
incrConstrCost() {
|
|
241
|
+
this.incrCost("constrTerm", this.model.constrTerm);
|
|
242
|
+
}
|
|
243
|
+
incrDelayCost() {
|
|
244
|
+
this.incrCost("delayTerm", this.model.delayTerm);
|
|
245
|
+
}
|
|
246
|
+
incrForceCost() {
|
|
247
|
+
this.incrCost("forceTerm", this.model.forceTerm);
|
|
248
|
+
}
|
|
249
|
+
incrLambdaCost() {
|
|
250
|
+
this.incrCost("lambdaTerm", this.model.lambdaTerm);
|
|
251
|
+
}
|
|
252
|
+
incrStartupCost() {
|
|
253
|
+
this.incrCost("startupTerm", this.model.startupCost);
|
|
254
|
+
}
|
|
255
|
+
incrVarCost() {
|
|
256
|
+
this.incrCost("varTerm", this.model.varTerm);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* @param name
|
|
260
|
+
* @param argSizes
|
|
261
|
+
*/
|
|
262
|
+
incrArgSizesCost(name, argSizes) {
|
|
263
|
+
this.incrCost(name, this.model.builtins[name](argSizes));
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
export const PARAMS_V1_BABBAGE = [
|
|
267
|
+
205665, // 0: addInteger-cpu-arguments-intercept
|
|
268
|
+
812, // 1: addInteger-cpu-arguments-slope
|
|
269
|
+
1, // 2: addInteger-memory-arguments-intercept
|
|
270
|
+
1, // 3: addInteger-memory-arguments-slope
|
|
271
|
+
1000, // 4: appendByteString-cpu-arguments-intercept
|
|
272
|
+
571, // 5: appendByteString-cpu-arguments-slope
|
|
273
|
+
0, // 6: appendByteString-memory-arguments-intercept
|
|
274
|
+
1, // 7: appendByteString-memory-arguments-slope
|
|
275
|
+
1000, // 8: appendString-cpu-arguments-intercept
|
|
276
|
+
24177, // 9: appendString-cpu-arguments-slope
|
|
277
|
+
4, // 10: appendString-memory-arguments-intercept
|
|
278
|
+
1, // 11: appendString-memory-arguments-slope
|
|
279
|
+
1000, // 12: bData-cpu-arguments
|
|
280
|
+
32, // 13: bData-memory-arguments
|
|
281
|
+
117366, // 14: blake2b_256-cpu-arguments-intercept
|
|
282
|
+
10475, // 15: blake2b_256-cpu-arguments-slope
|
|
283
|
+
4, // 16: blake2b_256-memory-arguments
|
|
284
|
+
23000, // 17: cekApplyCost-exBudgetCPU
|
|
285
|
+
100, // 18: cekApplyCost-exBudgetMemory
|
|
286
|
+
23000, // 19: cekBuiltinCost-exBudgetCPU
|
|
287
|
+
100, // 20: cekBuiltinCost-exBudgetMemory
|
|
288
|
+
23000, // 21: cekConstCost-exBudgetCPU
|
|
289
|
+
100, // 22: cekConstCost-exBudgetMemory
|
|
290
|
+
23000, // 23: cekDelayCost-exBudgetCPU
|
|
291
|
+
100, // 24: cekDelayCost-exBudgetMemory
|
|
292
|
+
23000, // 25: cekForceCost-exBudgetCPU
|
|
293
|
+
100, // 26: cekForceCost-exBudgetMemory
|
|
294
|
+
23000, // 27: cekLamCost-exBudgetCPU
|
|
295
|
+
100, // 28: cekLamCost-exBudgetMemory
|
|
296
|
+
100, // 29: cekStartupCost-exBudgetCPU
|
|
297
|
+
100, // 30: cekStartupCost-exBudgetMemory
|
|
298
|
+
23000, // 31: cekVarCost-exBudgetCPU
|
|
299
|
+
100, // 32: cekVarCost-exBudgetMemory
|
|
300
|
+
19537, // 33: chooseData-cpu-arguments
|
|
301
|
+
32, // 34: chooseData-memory-arguments
|
|
302
|
+
175354, // 35: chooseList-cpu-arguments
|
|
303
|
+
32, // 36: chooseList-memory-arguments
|
|
304
|
+
46417, // 37: chooseUnit-cpu-arguments
|
|
305
|
+
4, // 38: chooseUnit-memory-arguments
|
|
306
|
+
221973, // 39: consByteString-cpu-arguments-intercept
|
|
307
|
+
511, // 40: consByteString-cpu-arguments-slope
|
|
308
|
+
0, // 41: consByteString-memory-arguments-intercept
|
|
309
|
+
1, // 42: consByteString-memory-arguments-slope
|
|
310
|
+
89141, // 43: constrData-cpu-arguments
|
|
311
|
+
32, // 44: constrData-memory-arguments
|
|
312
|
+
497525, // 45: decodeUtf8-cpu-arguments-intercept
|
|
313
|
+
14068, // 46: decodeUtf8-cpu-arguments-slope
|
|
314
|
+
4, // 47: decodeUtf8-memory-arguments-intercept
|
|
315
|
+
2, // 48: decodeUtf8-memory-arguments-slope
|
|
316
|
+
196500, // 49: divideInteger-cpu-arguments-constant
|
|
317
|
+
453240, // 50: divideInteger-cpu-arguments-model-arguments-intercept
|
|
318
|
+
220, // 51: divideInteger-cpu-arguments-model-arguments-slope
|
|
319
|
+
0, // 52: divideInteger-memory-arguments-intercept
|
|
320
|
+
1, // 53: divideInteger-memory-arguments-minimum
|
|
321
|
+
1, // 54: divideInteger-memory-arguments-slope
|
|
322
|
+
1000, // 55: encodeUtf8-cpu-arguments-intercept
|
|
323
|
+
28662, // 56: encodeUtf8-cpu-arguments-slope
|
|
324
|
+
4, // 57: encodeUtf8-memory-arguments-intercept
|
|
325
|
+
2, // 58: encodeUtf8-memory-arguments-slope
|
|
326
|
+
245000, // 59: equalsByteString-cpu-arguments-constant
|
|
327
|
+
216773, // 60: equalsByteString-cpu-arguments-intercept
|
|
328
|
+
62, // 61: equalsByteString-cpu-arguments-slope
|
|
329
|
+
1, // 62: equalsByteString-memory-arguments
|
|
330
|
+
1060367, // 63: equalsData-cpu-arguments-intercept
|
|
331
|
+
12586, // 64: equalsData-cpu-arguments-slope
|
|
332
|
+
1, // 65: equalsData-memory-arguments
|
|
333
|
+
208512, // 66: equalsInteger-cpu-arguments-intercept
|
|
334
|
+
421, // 67: equalsInteger-cpu-arguments-slope
|
|
335
|
+
1, // 68: equalsInteger-memory-arguments
|
|
336
|
+
187000, // 69: equalsString-cpu-arguments-constant
|
|
337
|
+
1000, // 70: equalsString-cpu-arguments-intercept
|
|
338
|
+
52998, // 71: equalsString-cpu-arguments-slope
|
|
339
|
+
1, // 72: equalsString-memory-arguments
|
|
340
|
+
80436, // 73: fstPair-cpu-arguments
|
|
341
|
+
32, // 74: fstPair-memory-arguments
|
|
342
|
+
43249, // 75: headList-cpu-arguments
|
|
343
|
+
32, // 76: headList-memory-arguments
|
|
344
|
+
1000, // 77: iData-cpu-arguments
|
|
345
|
+
32, // 78: iData-memory-arguments
|
|
346
|
+
80556, // 79: ifThenElse-cpu-arguments
|
|
347
|
+
1, // 80: ifThenElse-memory-arguments
|
|
348
|
+
57667, // 81: indexByteString-cpu-arguments
|
|
349
|
+
4, // 82: indexByteString-memory-arguments
|
|
350
|
+
1000, // 83: lengthOfByteString-cpu-arguments
|
|
351
|
+
10, // 84: lengthOfByteString-memory-arguments
|
|
352
|
+
197145, // 85: lessThanByteString-cpu-arguments-intercept
|
|
353
|
+
156, // 86: lessThanByteString-cpu-arguments-slope
|
|
354
|
+
1, // 87: lessThanByteString-memory-arguments
|
|
355
|
+
197145, // 88: lessThanEqualsByteString-cpu-arguments-intercept
|
|
356
|
+
156, // 89: lessThanEqualsByteString-cpu-arguments-slope
|
|
357
|
+
1, // 90: lessThanEqualsByteString-memory-arguments
|
|
358
|
+
204924, // 91: lessThanEqualsInteger-cpu-arguments-intercept
|
|
359
|
+
473, // 92: lessThanEqualsInteger-cpu-arguments-slope
|
|
360
|
+
1, // 93: lessThanEqualsInteger-memory-arguments
|
|
361
|
+
208896, // 94: lessThanInteger-cpu-arguments-intercept
|
|
362
|
+
511, // 95: lessThanInteger-cpu-arguments-slope
|
|
363
|
+
1, // 96: lessThanInteger-memory-arguments
|
|
364
|
+
52467, // 97: listData-cpu-arguments
|
|
365
|
+
32, // 98: listData-memory-arguments
|
|
366
|
+
64832, // 99: mapData-cpu-arguments
|
|
367
|
+
32, // 100: mapData-memory-arguments
|
|
368
|
+
65493, // 101: mkCons-cpu-arguments
|
|
369
|
+
32, // 102: mkCons-memory-arguments
|
|
370
|
+
22558, // 103: mkNilData-cpu-arguments
|
|
371
|
+
32, // 104: mkNilData-memory-arguments
|
|
372
|
+
16563, // 105: mkNilPairData-cpu-arguments
|
|
373
|
+
32, // 106: mkNilPairData-memory-arguments
|
|
374
|
+
76511, // 107: mkPairData-cpu-arguments
|
|
375
|
+
32, // 108: mkPairData-memory-arguments
|
|
376
|
+
196500, // 109: modInteger-cpu-arguments-constant
|
|
377
|
+
453240, // 110: modInteger-cpu-arguments-model-arguments-intercept
|
|
378
|
+
220, // 111: modInteger-cpu-arguments-model-arguments-slope
|
|
379
|
+
0, // 112: modInteger-memory-arguments-intercept
|
|
380
|
+
1, // 113: modInteger-memory-arguments-minimum
|
|
381
|
+
1, // 114: modInteger-memory-arguments-slope
|
|
382
|
+
69522, // 115: multiplyInteger-cpu-arguments-intercept
|
|
383
|
+
11687, // 116: multiplyInteger-cpu-arguments-slope
|
|
384
|
+
0, // 117: multiplyInteger-memory-arguments-intercept
|
|
385
|
+
1, // 118: multiplyInteger-memory-arguments-slope
|
|
386
|
+
60091, // 119: nullList-cpu-arguments
|
|
387
|
+
32, // 120: nullList-memory-arguments
|
|
388
|
+
196500, // 121: quotientInteger-cpu-arguments-constant
|
|
389
|
+
453240, // 122: quotientInteger-cpu-arguments-model-arguments-intercept
|
|
390
|
+
220, // 123: quotientInteger-cpu-arguments-model-arguments-slope
|
|
391
|
+
0, // 124: quotientInteger-memory-arguments-intercept
|
|
392
|
+
1, // 125: quotientInteger-memory-arguments-minimum
|
|
393
|
+
1, // 126: quotientInteger-memory-arguments-slope
|
|
394
|
+
196500, // 127: remainderInteger-cpu-arguments-constant
|
|
395
|
+
453240, // 128: remainderInteger-cpu-arguments-model-arguments-intercept
|
|
396
|
+
220, // 129: remainderInteger-cpu-arguments-model-arguments-slope
|
|
397
|
+
0, // 130: remainderInteger-memory-arguments-intercept
|
|
398
|
+
1, // 131: remainderInteger-memory-arguments-minimum
|
|
399
|
+
1, // 132: remainderInteger-memory-arguments-slope
|
|
400
|
+
806990, // 133: sha2_256-cpu-arguments-intercept
|
|
401
|
+
30482, // 134: sha2_256-cpu-arguments-slope
|
|
402
|
+
4, // 135: sha2_256-memory-arguments
|
|
403
|
+
1927926, // 136: sha3_256-cpu-arguments-intercept
|
|
404
|
+
82523, // 137: sha3_256-cpu-arguments-slope
|
|
405
|
+
4, // 138: sha3_256-memory-arguments
|
|
406
|
+
265318, // 139: sliceByteString-cpu-arguments-intercept
|
|
407
|
+
0, // 140: sliceByteString-cpu-arguments-slope
|
|
408
|
+
4, // 141: sliceByteString-memory-arguments-intercept
|
|
409
|
+
0, // 142: sliceByteString-memory-arguments-slope
|
|
410
|
+
85931, // 143: sndPair-cpu-arguments
|
|
411
|
+
32, // 144: sndPair-memory-arguments
|
|
412
|
+
205665, // 145: subtractInteger-cpu-arguments-intercept
|
|
413
|
+
812, // 146: subtractInteger-cpu-arguments-slope
|
|
414
|
+
1, // 147: subtractInteger-memory-arguments-intercept
|
|
415
|
+
1, // 148: subtractInteger-memory-arguments-slope
|
|
416
|
+
41182, // 149: tailList-cpu-arguments
|
|
417
|
+
32, // 150: tailList-memory-arguments
|
|
418
|
+
212342, // 151: trace-cpu-arguments
|
|
419
|
+
32, // 152: trace-memory-arguments
|
|
420
|
+
31220, // 153: unBData-cpu-arguments
|
|
421
|
+
32, // 154: unBData-memory-arguments
|
|
422
|
+
32696, // 155: unConstrData-cpu-arguments
|
|
423
|
+
32, // 156: unConstrData-memory-arguments
|
|
424
|
+
43357, // 157: unIData-cpu-arguments
|
|
425
|
+
32, // 158: unIData-memory-arguments
|
|
426
|
+
32247, // 159: unListData-cpu-arguments
|
|
427
|
+
32, // 160: unListData-memory-arguments
|
|
428
|
+
38314, // 161: unMapData-cpu-arguments
|
|
429
|
+
32, // 162: unMapData-memory-arguments
|
|
430
|
+
9462713, // 163: verifyEd25519Signature-cpu-arguments-intercept
|
|
431
|
+
1021, // 164: verifyEd25519Signature-cpu-arguments-slope
|
|
432
|
+
10 // 165: verifyEd25519Signature-memory-arguments
|
|
433
|
+
];
|
|
434
|
+
export const PARAMS_V1_CONWAY = [
|
|
435
|
+
100788, // 0: addInteger-cpu-arguments-intercept
|
|
436
|
+
420, // 1: addInteger-cpu-arguments-slope
|
|
437
|
+
1, // 2: addInteger-memory-arguments-intercept
|
|
438
|
+
1, // 3: addInteger-memory-arguments-slope
|
|
439
|
+
1000, // 4: appendByteString-cpu-arguments-intercept
|
|
440
|
+
173, // 5: appendByteString-cpu-arguments-slope
|
|
441
|
+
0, // 6: appendByteString-memory-arguments-intercept
|
|
442
|
+
1, // 7: appendByteString-memory-arguments-slope
|
|
443
|
+
1000, // 8: appendString-cpu-arguments-intercept
|
|
444
|
+
59957, // 9: appendString-cpu-arguments-slope
|
|
445
|
+
4, // 10: appendString-memory-arguments-intercept
|
|
446
|
+
1, // 11: appendString-memory-arguments-slope
|
|
447
|
+
11183, // 12: bData-cpu-arguments
|
|
448
|
+
32, // 13: bData-memory-arguments
|
|
449
|
+
201305, // 14: blake2b_256-cpu-arguments-intercept
|
|
450
|
+
8356, // 15: blake2b_256-cpu-arguments-slope
|
|
451
|
+
4, // 16: blake2b_256-memory-arguments
|
|
452
|
+
16000, // 17: cekApplyCost-exBudgetCPU
|
|
453
|
+
100, // 18: cekApplyCost-exBudgetMemory
|
|
454
|
+
16000, // 19: cekBuiltinCost-exBudgetCPU
|
|
455
|
+
100, // 20: cekBuiltinCost-exBudgetMemory
|
|
456
|
+
16000, // 21: cekConstCost-exBudgetCPU
|
|
457
|
+
100, // 22: cekConstCost-exBudgetMemory
|
|
458
|
+
16000, // 23: cekDelayCost-exBudgetCPU
|
|
459
|
+
100, // 24: cekDelayCost-exBudgetMemory
|
|
460
|
+
16000, // 25: cekForceCost-exBudgetCPU
|
|
461
|
+
100, // 26: cekForceCost-exBudgetMemory
|
|
462
|
+
16000, // 27: cekLamCost-exBudgetCPU
|
|
463
|
+
100, // 28: cekLamCost-exBudgetMemory
|
|
464
|
+
100, // 29: cekStartupCost-exBudgetCPU
|
|
465
|
+
100, // 30: cekStartupCost-exBudgetMemory
|
|
466
|
+
16000, // 31: cekVarCost-exBudgetCPU
|
|
467
|
+
100, // 32: cekVarCost-exBudgetMemory
|
|
468
|
+
94375, // 33: chooseData-cpu-arguments
|
|
469
|
+
32, // 34: chooseData-memory-arguments
|
|
470
|
+
132994, // 35: chooseList-cpu-arguments
|
|
471
|
+
32, // 36: chooseList-memory-arguments
|
|
472
|
+
61462, // 37: chooseUnit-cpu-arguments
|
|
473
|
+
4, // 38: chooseUnit-memory-arguments
|
|
474
|
+
72010, // 39: consByteString-cpu-arguments-intercept
|
|
475
|
+
178, // 40: consByteString-cpu-arguments-slope
|
|
476
|
+
0, // 41: consByteString-memory-arguments-intercept
|
|
477
|
+
1, // 42: consByteString-memory-arguments-slope
|
|
478
|
+
22151, // 43: constrData-cpu-arguments
|
|
479
|
+
32, // 44: constrData-memory-arguments
|
|
480
|
+
91189, // 45: decodeUtf8-cpu-arguments-intercept
|
|
481
|
+
769, // 46: decodeUtf8-cpu-arguments-slope
|
|
482
|
+
4, // 47: decodeUtf8-memory-arguments-intercept
|
|
483
|
+
2, // 48: decodeUtf8-memory-arguments-slope
|
|
484
|
+
85848, // 49: divideInteger-cpu-arguments-constant
|
|
485
|
+
228465, // 50: divideInteger-cpu-arguments-model-arguments-intercept
|
|
486
|
+
122, // 51: divideInteger-cpu-arguments-model-arguments-slope
|
|
487
|
+
0, // 52: divideInteger-memory-arguments-intercept
|
|
488
|
+
1, // 53: divideInteger-memory-arguments-minimum
|
|
489
|
+
1, // 54: divideInteger-memory-arguments-slope
|
|
490
|
+
1000, // 55: encodeUtf8-cpu-arguments-intercept
|
|
491
|
+
42921, // 56: encodeUtf8-cpu-arguments-slope
|
|
492
|
+
4, // 57: encodeUtf8-memory-arguments-intercept
|
|
493
|
+
2, // 58: encodeUtf8-memory-arguments-slope
|
|
494
|
+
24548, // 59: equalsByteString-cpu-arguments-constant
|
|
495
|
+
29498, // 60: equalsByteString-cpu-arguments-intercept
|
|
496
|
+
38, // 61: equalsByteString-cpu-arguments-slope
|
|
497
|
+
1, // 62: equalsByteString-memory-arguments
|
|
498
|
+
898148, // 63: equalsData-cpu-arguments-intercept
|
|
499
|
+
27279, // 64: equalsData-cpu-arguments-slope
|
|
500
|
+
1, // 65: equalsData-memory-arguments
|
|
501
|
+
51775, // 66: equalsInteger-cpu-arguments-intercept
|
|
502
|
+
558, // 67: equalsInteger-cpu-arguments-slope
|
|
503
|
+
1, // 68: equalsInteger-memory-arguments
|
|
504
|
+
39184, // 69: equalsString-cpu-arguments-constant
|
|
505
|
+
1000, // 70: equalsString-cpu-arguments-intercept
|
|
506
|
+
60594, // 71: equalsString-cpu-arguments-slope
|
|
507
|
+
1, // 72: equalsString-memory-arguments
|
|
508
|
+
141895, // 73: fstPair-cpu-arguments
|
|
509
|
+
32, // 74: fstPair-memory-arguments
|
|
510
|
+
83150, // 75: headList-cpu-arguments
|
|
511
|
+
32, // 76: headList-memory-arguments
|
|
512
|
+
15299, // 77: iData-cpu-arguments
|
|
513
|
+
32, // 78: iData-memory-arguments
|
|
514
|
+
76049, // 79: ifThenElse-cpu-arguments
|
|
515
|
+
1, // 80: ifThenElse-memory-arguments
|
|
516
|
+
13169, // 81: indexByteString-cpu-arguments
|
|
517
|
+
4, // 82: indexByteString-memory-arguments
|
|
518
|
+
22100, // 83: lengthOfByteString-cpu-arguments
|
|
519
|
+
10, // 84: lengthOfByteString-memory-arguments
|
|
520
|
+
28999, // 85: lessThanByteString-cpu-arguments-intercept
|
|
521
|
+
74, // 86: lessThanByteString-cpu-arguments-slope
|
|
522
|
+
1, // 87: lessThanByteString-memory-arguments
|
|
523
|
+
28999, // 88: lessThanEqualsByteString-cpu-arguments-intercept
|
|
524
|
+
74, // 89: lessThanEqualsByteString-cpu-arguments-slope
|
|
525
|
+
1, // 90: lessThanEqualsByteString-memory-arguments
|
|
526
|
+
43285, // 91: lessThanEqualsInteger-cpu-arguments-intercept
|
|
527
|
+
552, // 92: lessThanEqualsInteger-cpu-arguments-slope
|
|
528
|
+
1, // 93: lessThanEqualsInteger-memory-arguments
|
|
529
|
+
44749, // 94: lessThanInteger-cpu-arguments-intercept
|
|
530
|
+
541, // 95: lessThanInteger-cpu-arguments-slope
|
|
531
|
+
1, // 96: lessThanInteger-memory-arguments
|
|
532
|
+
33852, // 97: listData-cpu-arguments
|
|
533
|
+
32, // 98: listData-memory-arguments
|
|
534
|
+
68246, // 99: mapData-cpu-arguments
|
|
535
|
+
32, // 100: mapData-memory-arguments
|
|
536
|
+
72362, // 101: mkCons-cpu-arguments
|
|
537
|
+
32, // 102: mkCons-memory-arguments
|
|
538
|
+
7243, // 103: mkNilData-cpu-arguments
|
|
539
|
+
32, // 104: mkNilData-memory-arguments
|
|
540
|
+
7391, // 105: mkNilPairData-cpu-arguments
|
|
541
|
+
32, // 106: mkNilPairData-memory-arguments
|
|
542
|
+
11546, // 107: mkPairData-cpu-arguments
|
|
543
|
+
32, // 108: mkPairData-memory-arguments
|
|
544
|
+
85848, // 109: modInteger-cpu-arguments-constant
|
|
545
|
+
228465, // 110: modInteger-cpu-arguments-model-arguments-intercept
|
|
546
|
+
122, // 111: modInteger-cpu-arguments-model-arguments-slope
|
|
547
|
+
0, // 112: modInteger-memory-arguments-intercept
|
|
548
|
+
1, // 113: modInteger-memory-arguments-minimum
|
|
549
|
+
1, // 114: modInteger-memory-arguments-slope
|
|
550
|
+
90434, // 115: multiplyInteger-cpu-arguments-intercept
|
|
551
|
+
519, // 116: multiplyInteger-cpu-arguments-slope
|
|
552
|
+
0, // 117: multiplyInteger-memory-arguments-intercept
|
|
553
|
+
1, // 118: multiplyInteger-memory-arguments-slope
|
|
554
|
+
74433, // 119: nullList-cpu-arguments
|
|
555
|
+
32, // 120: nullList-memory-arguments
|
|
556
|
+
85848, // 121: quotientInteger-cpu-arguments-constant
|
|
557
|
+
228465, // 122: quotientInteger-cpu-arguments-model-arguments-intercept
|
|
558
|
+
122, // 123: quotientInteger-cpu-arguments-model-arguments-slope
|
|
559
|
+
0, // 124: quotientInteger-memory-arguments-intercept
|
|
560
|
+
1, // 125: quotientInteger-memory-arguments-minimum
|
|
561
|
+
1, // 126: quotientInteger-memory-arguments-slope
|
|
562
|
+
85848, // 127: remainderInteger-cpu-arguments-constant
|
|
563
|
+
228465, // 128: remainderInteger-cpu-arguments-model-arguments-intercept
|
|
564
|
+
122, // 129: remainderInteger-cpu-arguments-model-arguments-slope
|
|
565
|
+
0, // 130: remainderInteger-memory-arguments-intercept
|
|
566
|
+
1, // 131: remainderInteger-memory-arguments-minimum
|
|
567
|
+
1, // 132: remainderInteger-memory-arguments-slope
|
|
568
|
+
270652, // 133: sha2_256-cpu-arguments-intercept
|
|
569
|
+
22588, // 134: sha2_256-cpu-arguments-slope
|
|
570
|
+
4, // 135: sha2_256-memory-arguments
|
|
571
|
+
1457325, // 136: sha3_256-cpu-arguments-intercept
|
|
572
|
+
64566, // 137: sha3_256-cpu-arguments-slope
|
|
573
|
+
4, // 138: sha3_256-memory-arguments
|
|
574
|
+
20467, // 139: sliceByteString-cpu-arguments-intercept
|
|
575
|
+
1, // 140: sliceByteString-cpu-arguments-slope
|
|
576
|
+
4, // 141: sliceByteString-memory-arguments-intercept
|
|
577
|
+
0, // 142: sliceByteString-memory-arguments-slope
|
|
578
|
+
141992, // 143: sndPair-cpu-arguments
|
|
579
|
+
32, // 144: sndPair-memory-arguments
|
|
580
|
+
100788, // 145: subtractInteger-cpu-arguments-intercept
|
|
581
|
+
420, // 146: subtractInteger-cpu-arguments-slope
|
|
582
|
+
1, // 147: subtractInteger-memory-arguments-intercept
|
|
583
|
+
1, // 148: subtractInteger-memory-arguments-slope
|
|
584
|
+
81663, // 149: tailList-cpu-arguments
|
|
585
|
+
32, // 150: tailList-memory-arguments
|
|
586
|
+
59498, // 151: trace-cpu-arguments
|
|
587
|
+
32, // 152: trace-memory-arguments
|
|
588
|
+
20142, // 153: unBData-cpu-arguments
|
|
589
|
+
32, // 154: unBData-memory-arguments
|
|
590
|
+
24588, // 155: unConstrData-cpu-arguments
|
|
591
|
+
32, // 156: unConstrData-memory-arguments
|
|
592
|
+
20744, // 157: unIData-cpu-arguments
|
|
593
|
+
32, // 158: unIData-memory-arguments
|
|
594
|
+
25933, // 159: unListData-cpu-arguments
|
|
595
|
+
32, // 160: unListData-memory-arguments
|
|
596
|
+
24623, // 161: unMapData-cpu-arguments
|
|
597
|
+
32, // 162: unMapData-memory-arguments
|
|
598
|
+
53384111, // 163: verifyEd25519Signature-cpu-arguments-intercept
|
|
599
|
+
14333, // 164: verifyEd25519Signature-cpu-arguments-slope
|
|
600
|
+
10 // 165: verifyEd25519Signature-memory-arguments
|
|
601
|
+
];
|
|
602
|
+
export const PARAMS_V2_BABBAGE = [
|
|
603
|
+
205665, // 0: addInteger-cpu-arguments-intercept
|
|
604
|
+
812, // 1: addInteger-cpu-arguments-slope
|
|
605
|
+
1, // 2: addInteger-memory-arguments-intercept
|
|
606
|
+
1, // 3: addInteger-memory-arguments-slope
|
|
607
|
+
1000, // 4: appendByteString-cpu-arguments-intercept
|
|
608
|
+
571, // 5: appendByteString-cpu-arguments-slope
|
|
609
|
+
0, // 6: appendByteString-memory-arguments-intercept
|
|
610
|
+
1, // 7: appendByteString-memory-arguments-slope
|
|
611
|
+
1000, // 8: appendString-cpu-arguments-intercept
|
|
612
|
+
24177, // 9: appendString-cpu-arguments-slope
|
|
613
|
+
4, // 10: appendString-memory-arguments-intercept
|
|
614
|
+
1, // 11: appendString-memory-arguments-slope
|
|
615
|
+
1000, // 12: bData-cpu-arguments
|
|
616
|
+
32, // 13: bData-memory-arguments
|
|
617
|
+
117366, // 14: blake2b_256-cpu-arguments-intercept
|
|
618
|
+
10475, // 15: blake2b_256-cpu-arguments-slope
|
|
619
|
+
4, // 16: blake2b_256-memory-arguments
|
|
620
|
+
23000, // 17: cekApplyCost-exBudgetCPU
|
|
621
|
+
100, // 18: cekApplyCost-exBudgetMemory
|
|
622
|
+
23000, // 19: cekBuiltinCost-exBudgetCPU
|
|
623
|
+
100, // 20: cekBuiltinCost-exBudgetMemory
|
|
624
|
+
23000, // 21: cekConstCost-exBudgetCPU
|
|
625
|
+
100, // 22: cekConstCost-exBudgetMemory
|
|
626
|
+
23000, // 23: cekDelayCost-exBudgetCPU
|
|
627
|
+
100, // 24: cekDelayCost-exBudgetMemory
|
|
628
|
+
23000, // 25: cekForceCost-exBudgetCPU
|
|
629
|
+
100, // 26: cekForceCost-exBudgetMemory
|
|
630
|
+
23000, // 27: cekLamCost-exBudgetCPU
|
|
631
|
+
100, // 28: cekLamCost-exBudgetMemory
|
|
632
|
+
100, // 29: cekStartupCost-exBudgetCPU
|
|
633
|
+
100, // 30: cekStartupCost-exBudgetMemory
|
|
634
|
+
23000, // 31: cekVarCost-exBudgetCPU
|
|
635
|
+
100, // 32: cekVarCost-exBudgetMemory
|
|
636
|
+
19537, // 33: chooseData-cpu-arguments
|
|
637
|
+
32, // 34: chooseData-memory-arguments
|
|
638
|
+
175354, // 35: chooseList-cpu-arguments
|
|
639
|
+
32, // 36: chooseList-memory-arguments
|
|
640
|
+
46417, // 37: chooseUnit-cpu-arguments
|
|
641
|
+
4, // 38: chooseUnit-memory-arguments
|
|
642
|
+
221973, // 39: consByteString-cpu-arguments-intercept
|
|
643
|
+
511, // 40: consByteString-cpu-arguments-slope
|
|
644
|
+
0, // 41: consByteString-memory-arguments-intercept
|
|
645
|
+
1, // 42: consByteString-memory-arguments-slope
|
|
646
|
+
89141, // 43: constrData-cpu-arguments
|
|
647
|
+
32, // 44: constrData-memory-arguments
|
|
648
|
+
497525, // 45: decodeUtf8-cpu-arguments-intercept
|
|
649
|
+
14068, // 46: decodeUtf8-cpu-arguments-slope
|
|
650
|
+
4, // 47: decodeUtf8-memory-arguments-intercept
|
|
651
|
+
2, // 48: decodeUtf8-memory-arguments-slope
|
|
652
|
+
196500, // 49: divideInteger-cpu-arguments-constant
|
|
653
|
+
453240, // 50: divideInteger-cpu-arguments-model-arguments-intercept
|
|
654
|
+
220, // 51: divideInteger-cpu-arguments-model-arguments-slope
|
|
655
|
+
0, // 52: divideInteger-memory-arguments-intercept
|
|
656
|
+
1, // 53: divideInteger-memory-arguments-minimum
|
|
657
|
+
1, // 54: divideInteger-memory-arguments-slope
|
|
658
|
+
1000, // 55: encodeUtf8-cpu-arguments-intercept
|
|
659
|
+
28662, // 56: encodeUtf8-cpu-arguments-slope
|
|
660
|
+
4, // 57: encodeUtf8-memory-arguments-intercept
|
|
661
|
+
2, // 58: encodeUtf8-memory-arguments-slope
|
|
662
|
+
245000, // 59: equalsByteString-cpu-arguments-constant
|
|
663
|
+
216773, // 60: equalsByteString-cpu-arguments-intercept
|
|
664
|
+
62, // 61: equalsByteString-cpu-arguments-slope
|
|
665
|
+
1, // 62: equalsByteString-memory-arguments
|
|
666
|
+
1060367, // 63: equalsData-cpu-arguments-intercept
|
|
667
|
+
12586, // 64: equalsData-cpu-arguments-slope
|
|
668
|
+
1, // 65: equalsData-memory-arguments
|
|
669
|
+
208512, // 66: equalsInteger-cpu-arguments-intercept
|
|
670
|
+
421, // 67: equalsInteger-cpu-arguments-slope
|
|
671
|
+
1, // 68: equalsInteger-memory-arguments
|
|
672
|
+
187000, // 69: equalsString-cpu-arguments-constant
|
|
673
|
+
1000, // 70: equalsString-cpu-arguments-intercept
|
|
674
|
+
52998, // 71: equalsString-cpu-arguments-slope
|
|
675
|
+
1, // 72: equalsString-memory-arguments
|
|
676
|
+
80436, // 73: fstPair-cpu-arguments
|
|
677
|
+
32, // 74: fstPair-memory-arguments
|
|
678
|
+
43249, // 75: headList-cpu-arguments
|
|
679
|
+
32, // 76: headList-memory-arguments
|
|
680
|
+
1000, // 77: iData-cpu-arguments
|
|
681
|
+
32, // 78: iData-memory-arguments
|
|
682
|
+
80556, // 79: ifThenElse-cpu-arguments
|
|
683
|
+
1, // 80: ifThenElse-memory-arguments
|
|
684
|
+
57667, // 81: indexByteString-cpu-arguments
|
|
685
|
+
4, // 82: indexByteString-memory-arguments
|
|
686
|
+
1000, // 83: lengthOfByteString-cpu-arguments
|
|
687
|
+
10, // 84: lengthOfByteString-memory-arguments
|
|
688
|
+
197145, // 85: lessThanByteString-cpu-arguments-intercept
|
|
689
|
+
156, // 86: lessThanByteString-cpu-arguments-slope
|
|
690
|
+
1, // 87: lessThanByteString-memory-arguments
|
|
691
|
+
197145, // 88: lessThanEqualsByteString-cpu-arguments-intercept
|
|
692
|
+
156, // 89: lessThanEqualsByteString-cpu-arguments-slope
|
|
693
|
+
1, // 90: lessThanEqualsByteString-memory-arguments
|
|
694
|
+
204924, // 91: lessThanEqualsInteger-cpu-arguments-intercept
|
|
695
|
+
473, // 92: lessThanEqualsInteger-cpu-arguments-slope
|
|
696
|
+
1, // 93: lessThanEqualsInteger-memory-arguments
|
|
697
|
+
208896, // 94: lessThanInteger-cpu-arguments-intercept
|
|
698
|
+
511, // 95: lessThanInteger-cpu-arguments-slope
|
|
699
|
+
1, // 96: lessThanInteger-memory-arguments
|
|
700
|
+
52467, // 97: listData-cpu-arguments
|
|
701
|
+
32, // 98: listData-memory-arguments
|
|
702
|
+
64832, // 99: mapData-cpu-arguments
|
|
703
|
+
32, // 100: mapData-memory-arguments
|
|
704
|
+
65493, // 101: mkCons-cpu-arguments
|
|
705
|
+
32, // 102: mkCons-memory-arguments
|
|
706
|
+
22558, // 103: mkNilData-cpu-arguments
|
|
707
|
+
32, // 104: mkNilData-memory-arguments
|
|
708
|
+
16563, // 105: mkNilPairData-cpu-arguments
|
|
709
|
+
32, // 106: mkNilPairData-memory-arguments
|
|
710
|
+
76511, // 107: mkPairData-cpu-arguments
|
|
711
|
+
32, // 108: mkPairData-memory-arguments
|
|
712
|
+
196500, // 109: modInteger-cpu-arguments-constant
|
|
713
|
+
453240, // 110: modInteger-cpu-arguments-model-arguments-intercept
|
|
714
|
+
220, // 111: modInteger-cpu-arguments-model-arguments-slope
|
|
715
|
+
0, // 112: modInteger-memory-arguments-intercept
|
|
716
|
+
1, // 113: modInteger-memory-arguments-minimum
|
|
717
|
+
1, // 114: modInteger-memory-arguments-slope
|
|
718
|
+
69522, // 115: multiplyInteger-cpu-arguments-intercept
|
|
719
|
+
11687, // 116: multiplyInteger-cpu-arguments-slope
|
|
720
|
+
0, // 117: multiplyInteger-memory-arguments-intercept
|
|
721
|
+
1, // 118: multiplyInteger-memory-arguments-slope
|
|
722
|
+
60091, // 119: nullList-cpu-arguments
|
|
723
|
+
32, // 120: nullList-memory-arguments
|
|
724
|
+
196500, // 121: quotientInteger-cpu-arguments-constant
|
|
725
|
+
453240, // 122: quotientInteger-cpu-arguments-model-arguments-intercept
|
|
726
|
+
220, // 123: quotientInteger-cpu-arguments-model-arguments-slope
|
|
727
|
+
0, // 124: quotientInteger-memory-arguments-intercept
|
|
728
|
+
1, // 125: quotientInteger-memory-arguments-minimum
|
|
729
|
+
1, // 126: quotientInteger-memory-arguments-slope
|
|
730
|
+
196500, // 127: remainderInteger-cpu-arguments-constant
|
|
731
|
+
453240, // 128: remainderInteger-cpu-arguments-model-arguments-intercept
|
|
732
|
+
220, // 129: remainderInteger-cpu-arguments-model-arguments-slope
|
|
733
|
+
0, // 130: remainderInteger-memory-arguments-intercept
|
|
734
|
+
1, // 131: remainderInteger-memory-arguments-minimum
|
|
735
|
+
1, // 132: remainderInteger-memory-arguments-slope
|
|
736
|
+
1159724, // 133: serialiseData-cpu-arguments-intercept
|
|
737
|
+
392670, // 134: serialiseData-cpu-arguments-slope
|
|
738
|
+
0, // 135: serialiseData-memory-arguments-intercept
|
|
739
|
+
2, // 136: serialiseData-memory-arguments-slope
|
|
740
|
+
806990, // 137: sha2_256-cpu-arguments-intercept
|
|
741
|
+
30482, // 138: sha2_256-cpu-arguments-slope
|
|
742
|
+
4, // 139: sha2_256-memory-arguments
|
|
743
|
+
1927926, // 140: sha3_256-cpu-arguments-intercept
|
|
744
|
+
82523, // 141: sha3_256-cpu-arguments-slope
|
|
745
|
+
4, // 142: sha3_256-memory-arguments
|
|
746
|
+
265318, // 143: sliceByteString-cpu-arguments-intercept
|
|
747
|
+
0, // 144: sliceByteString-cpu-arguments-slope
|
|
748
|
+
4, // 145: sliceByteString-memory-arguments-intercept
|
|
749
|
+
0, // 146: sliceByteString-memory-arguments-slope
|
|
750
|
+
85931, // 147: sndPair-cpu-arguments
|
|
751
|
+
32, // 148: sndPair-memory-arguments
|
|
752
|
+
205665, // 149: subtractInteger-cpu-arguments-intercept
|
|
753
|
+
812, // 150: subtractInteger-cpu-arguments-slope
|
|
754
|
+
1, // 151: subtractInteger-memory-arguments-intercept
|
|
755
|
+
1, // 152: subtractInteger-memory-arguments-slope
|
|
756
|
+
41182, // 153: tailList-cpu-arguments
|
|
757
|
+
32, // 154: tailList-memory-arguments
|
|
758
|
+
212342, // 155: trace-cpu-arguments
|
|
759
|
+
32, // 156: trace-memory-arguments
|
|
760
|
+
31220, // 157: unBData-cpu-arguments
|
|
761
|
+
32, // 158: unBData-memory-arguments
|
|
762
|
+
32696, // 159: unConstrData-cpu-arguments
|
|
763
|
+
32, // 160: unConstrData-memory-arguments
|
|
764
|
+
43357, // 161: unIData-cpu-arguments
|
|
765
|
+
32, // 162: unIData-memory-arguments
|
|
766
|
+
32247, // 163: unListData-cpu-arguments
|
|
767
|
+
32, // 164: unListData-memory-arguments
|
|
768
|
+
38314, // 165: unMapData-cpu-arguments
|
|
769
|
+
32, // 166: unMapData-memory-arguments
|
|
770
|
+
35892428, // 167: verifyEcdsaSecp256k1Signature-cpu-arguments
|
|
771
|
+
10, // 168: verifyEcdsaSecp256k1Signature-memory-arguments
|
|
772
|
+
57996947, // 169: verifyEd25519Signature-cpu-arguments-intercept
|
|
773
|
+
18975, // 170: verifyEd25519Signature-cpu-arguments-slope
|
|
774
|
+
10, // 171: verifyEd25519Signature-memory-arguments
|
|
775
|
+
38887044, // 172: verifySchnorrSecp256k1Signature-cpu-arguments-intercept
|
|
776
|
+
32947, // 173: verifySchnorrSecp256k1Signature-cpu-arguments-slope
|
|
777
|
+
10 // 174: verifySchnorrSecp256k1Signature-memory-arguments
|
|
778
|
+
];
|
|
779
|
+
export const PARAMS_V2_CONWAY = [
|
|
780
|
+
100788, // 0: addInteger-cpu-arguments-intercept
|
|
781
|
+
420, // 1: addInteger-cpu-arguments-slope
|
|
782
|
+
1, // 2: addInteger-memory-arguments-intercept
|
|
783
|
+
1, // 3: addInteger-memory-arguments-slope
|
|
784
|
+
1000, // 4: appendByteString-cpu-arguments-intercept
|
|
785
|
+
173, // 5: appendByteString-cpu-arguments-slope
|
|
786
|
+
0, // 6: appendByteString-memory-arguments-intercept
|
|
787
|
+
1, // 7: appendByteString-memory-arguments-slope
|
|
788
|
+
1000, // 8: appendString-cpu-arguments-intercept
|
|
789
|
+
59957, // 9: appendString-cpu-arguments-slope
|
|
790
|
+
4, // 10: appendString-memory-arguments-intercept
|
|
791
|
+
1, // 11: appendString-memory-arguments-slope
|
|
792
|
+
11183, // 12: bData-cpu-arguments
|
|
793
|
+
32, // 13: bData-memory-arguments
|
|
794
|
+
201305, // 14: blake2b_256-cpu-arguments-intercept
|
|
795
|
+
8356, // 15: blake2b_256-cpu-arguments-slope
|
|
796
|
+
4, // 16: blake2b_256-memory-arguments
|
|
797
|
+
16000, // 17: cekApplyCost-exBudgetCPU
|
|
798
|
+
100, // 18: cekApplyCost-exBudgetMemory
|
|
799
|
+
16000, // 19: cekBuiltinCost-exBudgetCPU
|
|
800
|
+
100, // 20: cekBuiltinCost-exBudgetMemory
|
|
801
|
+
16000, // 21: cekConstCost-exBudgetCPU
|
|
802
|
+
100, // 22: cekConstCost-exBudgetMemory
|
|
803
|
+
16000, // 23: cekDelayCost-exBudgetCPU
|
|
804
|
+
100, // 24: cekDelayCost-exBudgetMemory
|
|
805
|
+
16000, // 25: cekForceCost-exBudgetCPU
|
|
806
|
+
100, // 26: cekForceCost-exBudgetMemory
|
|
807
|
+
16000, // 27: cekLamCost-exBudgetCPU
|
|
808
|
+
100, // 28: cekLamCost-exBudgetMemory
|
|
809
|
+
100, // 29: cekStartupCost-exBudgetCPU
|
|
810
|
+
100, // 30: cekStartupCost-exBudgetMemory
|
|
811
|
+
16000, // 31: cekVarCost-exBudgetCPU
|
|
812
|
+
100, // 32: cekVarCost-exBudgetMemory
|
|
813
|
+
94375, // 33: chooseData-cpu-arguments
|
|
814
|
+
32, // 34: chooseData-memory-arguments
|
|
815
|
+
132994, // 35: chooseList-cpu-arguments
|
|
816
|
+
32, // 36: chooseList-memory-arguments
|
|
817
|
+
61462, // 37: chooseUnit-cpu-arguments
|
|
818
|
+
4, // 38: chooseUnit-memory-arguments
|
|
819
|
+
72010, // 39: consByteString-cpu-arguments-intercept
|
|
820
|
+
178, // 40: consByteString-cpu-arguments-slope
|
|
821
|
+
0, // 41: consByteString-memory-arguments-intercept
|
|
822
|
+
1, // 42: consByteString-memory-arguments-slope
|
|
823
|
+
22151, // 43: constrData-cpu-arguments
|
|
824
|
+
32, // 44: constrData-memory-arguments
|
|
825
|
+
91189, // 45: decodeUtf8-cpu-arguments-intercept
|
|
826
|
+
769, // 46: decodeUtf8-cpu-arguments-slope
|
|
827
|
+
4, // 47: decodeUtf8-memory-arguments-intercept
|
|
828
|
+
2, // 48: decodeUtf8-memory-arguments-slope
|
|
829
|
+
85848, // 49: divideInteger-cpu-arguments-constant
|
|
830
|
+
228465, // 50: divideInteger-cpu-arguments-model-arguments-intercept
|
|
831
|
+
122, // 51: divideInteger-cpu-arguments-model-arguments-slope
|
|
832
|
+
0, // 52: divideInteger-memory-arguments-intercept
|
|
833
|
+
1, // 53: divideInteger-memory-arguments-minimum
|
|
834
|
+
1, // 54: divideInteger-memory-arguments-slope
|
|
835
|
+
1000, // 55: encodeUtf8-cpu-arguments-intercept
|
|
836
|
+
42921, // 56: encodeUtf8-cpu-arguments-slope
|
|
837
|
+
4, // 57: encodeUtf8-memory-arguments-intercept
|
|
838
|
+
2, // 58: encodeUtf8-memory-arguments-slope
|
|
839
|
+
24548, // 59: equalsByteString-cpu-arguments-constant
|
|
840
|
+
29498, // 60: equalsByteString-cpu-arguments-intercept
|
|
841
|
+
38, // 61: equalsByteString-cpu-arguments-slope
|
|
842
|
+
1, // 62: equalsByteString-memory-arguments
|
|
843
|
+
898148, // 63: equalsData-cpu-arguments-intercept
|
|
844
|
+
27279, // 64: equalsData-cpu-arguments-slope
|
|
845
|
+
1, // 65: equalsData-memory-arguments
|
|
846
|
+
51775, // 66: equalsInteger-cpu-arguments-intercept
|
|
847
|
+
558, // 67: equalsInteger-cpu-arguments-slope
|
|
848
|
+
1, // 68: equalsInteger-memory-arguments
|
|
849
|
+
39184, // 69: equalsString-cpu-arguments-constant
|
|
850
|
+
1000, // 70: equalsString-cpu-arguments-intercept
|
|
851
|
+
60594, // 71: equalsString-cpu-arguments-slope
|
|
852
|
+
1, // 72: equalsString-memory-arguments
|
|
853
|
+
141895, // 73: fstPair-cpu-arguments
|
|
854
|
+
32, // 74: fstPair-memory-arguments
|
|
855
|
+
83150, // 75: headList-cpu-arguments
|
|
856
|
+
32, // 76: headList-memory-arguments
|
|
857
|
+
15299, // 77: iData-cpu-arguments
|
|
858
|
+
32, // 78: iData-memory-arguments
|
|
859
|
+
76049, // 79: ifThenElse-cpu-arguments
|
|
860
|
+
1, // 80: ifThenElse-memory-arguments
|
|
861
|
+
13169, // 81: indexByteString-cpu-arguments
|
|
862
|
+
4, // 82: indexByteString-memory-arguments
|
|
863
|
+
22100, // 83: lengthOfByteString-cpu-arguments
|
|
864
|
+
10, // 84: lengthOfByteString-memory-arguments
|
|
865
|
+
28999, // 85: lessThanByteString-cpu-arguments-intercept
|
|
866
|
+
74, // 86: lessThanByteString-cpu-arguments-slope
|
|
867
|
+
1, // 87: lessThanByteString-memory-arguments
|
|
868
|
+
28999, // 88: lessThanEqualsByteString-cpu-arguments-intercept
|
|
869
|
+
74, // 89: lessThanEqualsByteString-cpu-arguments-slope
|
|
870
|
+
1, // 90: lessThanEqualsByteString-memory-arguments
|
|
871
|
+
43285, // 91: lessThanEqualsInteger-cpu-arguments-intercept
|
|
872
|
+
552, // 92: lessThanEqualsInteger-cpu-arguments-slope
|
|
873
|
+
1, // 93: lessThanEqualsInteger-memory-arguments
|
|
874
|
+
44749, // 94: lessThanInteger-cpu-arguments-intercept
|
|
875
|
+
541, // 95: lessThanInteger-cpu-arguments-slope
|
|
876
|
+
1, // 96: lessThanInteger-memory-arguments
|
|
877
|
+
33852, // 97: listData-cpu-arguments
|
|
878
|
+
32, // 98: listData-memory-arguments
|
|
879
|
+
68246, // 99: mapData-cpu-arguments
|
|
880
|
+
32, // 100: mapData-memory-arguments
|
|
881
|
+
72362, // 101: mkCons-cpu-arguments
|
|
882
|
+
32, // 102: mkCons-memory-arguments
|
|
883
|
+
7243, // 103: mkNilData-cpu-arguments
|
|
884
|
+
32, // 104: mkNilData-memory-arguments
|
|
885
|
+
7391, // 105: mkNilPairData-cpu-arguments
|
|
886
|
+
32, // 106: mkNilPairData-memory-arguments
|
|
887
|
+
11546, // 107: mkPairData-cpu-arguments
|
|
888
|
+
32, // 108: mkPairData-memory-arguments
|
|
889
|
+
85848, // 109: modInteger-cpu-arguments-constant
|
|
890
|
+
228465, // 110: modInteger-cpu-arguments-model-arguments-intercept
|
|
891
|
+
122, // 111: modInteger-cpu-arguments-model-arguments-slope
|
|
892
|
+
0, // 112: modInteger-memory-arguments-intercept
|
|
893
|
+
1, // 113: modInteger-memory-arguments-minimum
|
|
894
|
+
1, // 114: modInteger-memory-arguments-slope
|
|
895
|
+
90434, // 115: multiplyInteger-cpu-arguments-intercept
|
|
896
|
+
519, // 116: multiplyInteger-cpu-arguments-slope
|
|
897
|
+
0, // 117: multiplyInteger-memory-arguments-intercept
|
|
898
|
+
1, // 118: multiplyInteger-memory-arguments-slope
|
|
899
|
+
74433, // 119: nullList-cpu-arguments
|
|
900
|
+
32, // 120: nullList-memory-arguments
|
|
901
|
+
85848, // 121: quotientInteger-cpu-arguments-constant
|
|
902
|
+
228465, // 122: quotientInteger-cpu-arguments-model-arguments-intercept
|
|
903
|
+
122, // 123: quotientInteger-cpu-arguments-model-arguments-slope
|
|
904
|
+
0, // 124: quotientInteger-memory-arguments-intercept
|
|
905
|
+
1, // 125: quotientInteger-memory-arguments-minimum
|
|
906
|
+
1, // 126: quotientInteger-memory-arguments-slope
|
|
907
|
+
85848, // 127: remainderInteger-cpu-arguments-constant
|
|
908
|
+
228465, // 128: remainderInteger-cpu-arguments-model-arguments-intercept
|
|
909
|
+
122, // 129: remainderInteger-cpu-arguments-model-arguments-slope
|
|
910
|
+
0, // 130: remainderInteger-memory-arguments-intercept
|
|
911
|
+
1, // 131: remainderInteger-memory-arguments-minimum
|
|
912
|
+
1, // 132: remainderInteger-memory-arguments-slope
|
|
913
|
+
955506, // 133: serialiseData-cpu-arguments-intercept
|
|
914
|
+
213312, // 134: serialiseData-cpu-arguments-slope
|
|
915
|
+
0, // 135: serialiseData-memory-arguments-intercept
|
|
916
|
+
2, // 136: serialiseData-memory-arguments-slope
|
|
917
|
+
270652, // 137: sha2_256-cpu-arguments-intercept
|
|
918
|
+
22588, // 138: sha2_256-cpu-arguments-slope
|
|
919
|
+
4, // 139: sha2_256-memory-arguments
|
|
920
|
+
1457325, // 140: sha3_256-cpu-arguments-intercept
|
|
921
|
+
64566, // 141: sha3_256-cpu-arguments-slope
|
|
922
|
+
4, // 142: sha3_256-memory-arguments
|
|
923
|
+
20467, // 143: sliceByteString-cpu-arguments-intercept
|
|
924
|
+
1, // 144: sliceByteString-cpu-arguments-slope
|
|
925
|
+
4, // 145: sliceByteString-memory-arguments-intercept
|
|
926
|
+
0, // 146: sliceByteString-memory-arguments-slope
|
|
927
|
+
141992, // 147: sndPair-cpu-arguments
|
|
928
|
+
32, // 148: sndPair-memory-arguments
|
|
929
|
+
100788, // 149: subtractInteger-cpu-arguments-intercept
|
|
930
|
+
420, // 150: subtractInteger-cpu-arguments-slope
|
|
931
|
+
1, // 151: subtractInteger-memory-arguments-intercept
|
|
932
|
+
1, // 152: subtractInteger-memory-arguments-slope
|
|
933
|
+
81663, // 153: tailList-cpu-arguments
|
|
934
|
+
32, // 154: tailList-memory-arguments
|
|
935
|
+
59498, // 155: trace-cpu-arguments
|
|
936
|
+
32, // 156: trace-memory-arguments
|
|
937
|
+
20142, // 157: unBData-cpu-arguments
|
|
938
|
+
32, // 158: unBData-memory-arguments
|
|
939
|
+
24588, // 159: unConstrData-cpu-arguments
|
|
940
|
+
32, // 160: unConstrData-memory-arguments
|
|
941
|
+
20744, // 161: unIData-cpu-arguments
|
|
942
|
+
32, // 162: unIData-memory-arguments
|
|
943
|
+
25933, // 163: unListData-cpu-arguments
|
|
944
|
+
32, // 164: unListData-memory-arguments
|
|
945
|
+
24623, // 165: unMapData-cpu-arguments
|
|
946
|
+
32, // 166: unMapData-memory-arguments
|
|
947
|
+
43053543, // 167: verifyEcdsaSecp256k1Signature-cpu-arguments
|
|
948
|
+
10, // 168: verifyEcdsaSecp256k1Signature-memory-arguments
|
|
949
|
+
53384111, // 169: verifyEd25519Signature-cpu-arguments-intercept
|
|
950
|
+
14333, // 170: verifyEd25519Signature-cpu-arguments-slope
|
|
951
|
+
10, // 171: verifyEd25519Signature-memory-arguments
|
|
952
|
+
43574283, // 172: verifySchnorrSecp256k1Signature-cpu-arguments-intercept
|
|
953
|
+
26308, // 173: verifySchnorrSecp256k1Signature-cpu-arguments-slope
|
|
954
|
+
10 // 174: verifySchnorrSecp256k1Signature-memory-arguments
|
|
955
|
+
];
|
|
956
|
+
//# sourceMappingURL=Cost.js.map
|