@emurgo/yoroi-lib-core
Advanced tools
Comparing version 0.1.2-alpha.17 to 0.1.3-alpha.18
@@ -10,3 +10,3 @@ import { TxMetadata } from '../models'; | ||
} | ||
export declare function firstWithValue<T extends WasmContract.WasmProxy>(...objs: T[]): T; | ||
export declare function firstWithValue<T extends WasmContract._WasmProxy>(...objs: T[]): T; | ||
export declare function createMetadata(wasm: WasmContract.WasmModuleProxy, txMetadata: ReadonlyArray<TxMetadata>): Promise<WasmContract.AuxiliaryData>; |
@@ -71,7 +71,14 @@ export declare const EXCEPTIONS: { | ||
} | ||
export declare abstract class WasmProxy { | ||
export declare abstract class _WasmProxy { | ||
constructor(wasm: any | undefined); | ||
abstract hasValue(): boolean; | ||
} | ||
export declare abstract class Ptr extends WasmProxy { | ||
export declare abstract class WasmProxy<T> implements _WasmProxy { | ||
private _wasm; | ||
get internalWasm(): T | undefined; | ||
get wasm(): T; | ||
constructor(wasm: T | undefined); | ||
hasValue(): boolean; | ||
} | ||
export declare abstract class _Ptr extends _WasmProxy { | ||
constructor(wasm: any | undefined); | ||
@@ -84,3 +91,9 @@ /** | ||
} | ||
export declare abstract class BigNum extends Ptr { | ||
export declare abstract class Ptr<T extends { | ||
free: () => any; | ||
}> extends WasmProxy<T> { | ||
constructor(wasm: T | undefined); | ||
free(): Promise<void>; | ||
} | ||
export declare abstract class BigNum extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -128,3 +141,3 @@ /** | ||
} | ||
export declare abstract class LinearFee extends Ptr { | ||
export declare abstract class LinearFee extends _Ptr { | ||
/** | ||
@@ -145,3 +158,3 @@ * @returns {Promise<BigNum>} | ||
} | ||
export declare abstract class GeneralTransactionMetadata extends Ptr { | ||
export declare abstract class GeneralTransactionMetadata extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -155,3 +168,3 @@ abstract len(): Promise<number>; | ||
} | ||
export declare abstract class TransactionMetadatumLabels extends Ptr { | ||
export declare abstract class TransactionMetadatumLabels extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -164,3 +177,3 @@ abstract len(): Promise<number>; | ||
} | ||
export declare abstract class MetadataMap extends Ptr { | ||
export declare abstract class MetadataMap extends _Ptr { | ||
abstract free(): Promise<void>; | ||
@@ -180,3 +193,3 @@ abstract toBytes(): Promise<Uint8Array>; | ||
} | ||
export declare abstract class Int extends Ptr { | ||
export declare abstract class Int extends _Ptr { | ||
abstract isPositive(): Promise<boolean>; | ||
@@ -190,3 +203,3 @@ abstract asPositive(): Promise<BigNum | undefined>; | ||
} | ||
export declare abstract class TransactionMetadatum extends Ptr { | ||
export declare abstract class TransactionMetadatum extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -206,3 +219,3 @@ abstract kind(): Promise<number>; | ||
} | ||
export declare abstract class AuxiliaryData extends Ptr { | ||
export declare abstract class AuxiliaryData extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -219,3 +232,3 @@ abstract metadata(): Promise<GeneralTransactionMetadata>; | ||
} | ||
export declare abstract class AssetName extends Ptr { | ||
export declare abstract class AssetName extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -226,3 +239,3 @@ abstract name(): Promise<Uint8Array>; | ||
} | ||
export declare abstract class AssetNames extends Ptr { | ||
export declare abstract class AssetNames extends _Ptr { | ||
abstract len(): Promise<number>; | ||
@@ -233,3 +246,3 @@ abstract get(index: number): Promise<AssetName>; | ||
} | ||
export declare abstract class Assets extends Ptr { | ||
export declare abstract class Assets extends _Ptr { | ||
abstract len(): Promise<number>; | ||
@@ -241,7 +254,7 @@ abstract insert(key: AssetName, value: BigNum): Promise<BigNum>; | ||
} | ||
export declare abstract class ScriptHash extends WasmProxy { | ||
export declare abstract class ScriptHash extends _WasmProxy { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
static fromBytes(bytes: Uint8Array): Promise<ScriptHash>; | ||
} | ||
export declare abstract class ScriptHashes extends WasmProxy { | ||
export declare abstract class ScriptHashes extends _WasmProxy { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -256,3 +269,3 @@ abstract len(): Promise<number>; | ||
export declare type PolicyIDs = ScriptHashes; | ||
export declare abstract class MultiAsset extends Ptr { | ||
export declare abstract class MultiAsset extends _Ptr { | ||
abstract len(): Promise<number>; | ||
@@ -265,11 +278,11 @@ abstract insert(key: PolicyID, value: Assets): Promise<Assets>; | ||
} | ||
export declare abstract class Ed25519KeyHash extends Ptr { | ||
export declare abstract class Ed25519KeyHash extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
static fromBytes(bytes: Uint8Array): Promise<Ed25519KeyHash>; | ||
} | ||
export declare abstract class TransactionHash extends Ptr { | ||
export declare abstract class TransactionHash extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
static fromBytes(bytes: Uint8Array): Promise<TransactionHash>; | ||
} | ||
export declare abstract class TransactionInput extends Ptr { | ||
export declare abstract class TransactionInput extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -281,3 +294,3 @@ abstract transactionId(): Promise<TransactionHash>; | ||
} | ||
export declare abstract class Value extends Ptr { | ||
export declare abstract class Value extends _Ptr { | ||
abstract coin(): Promise<BigNum>; | ||
@@ -293,3 +306,3 @@ abstract setCoin(coin: BigNum): Promise<void>; | ||
} | ||
export declare abstract class Address extends Ptr { | ||
export declare abstract class Address extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -301,3 +314,3 @@ abstract toBech32(prefix?: string): Promise<string>; | ||
} | ||
export declare abstract class PublicKey extends Ptr { | ||
export declare abstract class PublicKey extends _Ptr { | ||
abstract toBech32(): Promise<string>; | ||
@@ -309,3 +322,3 @@ abstract asBytes(): Promise<Uint8Array>; | ||
} | ||
export declare abstract class Bip32PublicKey extends Ptr { | ||
export declare abstract class Bip32PublicKey extends _Ptr { | ||
/** | ||
@@ -341,3 +354,3 @@ * derive this private key with the given index. | ||
} | ||
export declare abstract class PrivateKey extends Ptr { | ||
export declare abstract class PrivateKey extends _Ptr { | ||
abstract toPublic(): Promise<PublicKey>; | ||
@@ -349,3 +362,3 @@ abstract asBytes(): Promise<Uint8Array>; | ||
} | ||
export declare abstract class Bip32PrivateKey extends Ptr { | ||
export declare abstract class Bip32PrivateKey extends _Ptr { | ||
/** | ||
@@ -383,3 +396,3 @@ * derive this private key with the given index. | ||
} | ||
export declare abstract class ByronAddress extends Ptr { | ||
export declare abstract class ByronAddress extends _Ptr { | ||
abstract toBase58(): Promise<string>; | ||
@@ -394,3 +407,3 @@ abstract toAddress(): Promise<Address>; | ||
} | ||
export declare abstract class TransactionOutput extends Ptr { | ||
export declare abstract class TransactionOutput extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -402,3 +415,3 @@ abstract address(): Promise<Address>; | ||
} | ||
export declare abstract class StakeCredential extends Ptr { | ||
export declare abstract class StakeCredential extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -412,3 +425,3 @@ abstract toKeyhash(): Promise<Ed25519KeyHash>; | ||
} | ||
export declare abstract class StakeRegistration extends Ptr { | ||
export declare abstract class StakeRegistration extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -419,3 +432,3 @@ abstract stakeCredential(): Promise<StakeCredential>; | ||
} | ||
export declare abstract class StakeDeregistration extends Ptr { | ||
export declare abstract class StakeDeregistration extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -426,3 +439,3 @@ abstract stakeCredential(): Promise<StakeCredential>; | ||
} | ||
export declare abstract class StakeDelegation extends Ptr { | ||
export declare abstract class StakeDelegation extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -434,3 +447,3 @@ abstract stakeCredential(): Promise<StakeCredential>; | ||
} | ||
export declare abstract class Certificate extends Ptr { | ||
export declare abstract class Certificate extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -445,3 +458,3 @@ abstract asStakeRegistration(): Promise<StakeRegistration>; | ||
} | ||
export declare abstract class Certificates extends Ptr { | ||
export declare abstract class Certificates extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -454,3 +467,3 @@ abstract len(): Promise<number>; | ||
} | ||
export declare abstract class RewardAddress extends Ptr { | ||
export declare abstract class RewardAddress extends _Ptr { | ||
abstract paymentCred(): Promise<StakeCredential>; | ||
@@ -461,3 +474,3 @@ abstract toAddress(): Promise<Address>; | ||
} | ||
export declare abstract class RewardAddresses extends Ptr { | ||
export declare abstract class RewardAddresses extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -470,3 +483,3 @@ abstract len(): Promise<number>; | ||
} | ||
export declare abstract class Withdrawals extends Ptr { | ||
export declare abstract class Withdrawals extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -480,7 +493,7 @@ abstract len(): Promise<number>; | ||
} | ||
export declare abstract class TransactionInputs extends Ptr { | ||
export declare abstract class TransactionInputs extends _Ptr { | ||
abstract len(): Promise<number>; | ||
abstract get(index: number): Promise<TransactionInput>; | ||
} | ||
export declare abstract class TransactionOutputs extends Ptr { | ||
export declare abstract class TransactionOutputs extends _Ptr { | ||
abstract len(): Promise<number>; | ||
@@ -490,3 +503,3 @@ abstract get(index: number): Promise<TransactionOutput>; | ||
export declare type Optional<T> = T; | ||
export declare abstract class TransactionBody extends Ptr { | ||
export declare abstract class TransactionBody extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -501,3 +514,3 @@ abstract inputs(): Promise<TransactionInputs>; | ||
} | ||
export declare abstract class TransactionBuilder extends Ptr { | ||
export declare abstract class TransactionBuilder extends _Ptr { | ||
abstract addKeyInput(hash: Ed25519KeyHash, input: TransactionInput, amount: Value): Promise<void>; | ||
@@ -525,3 +538,3 @@ abstract addBootstrapInput(hash: ByronAddress, input: TransactionInput, amount: Value): Promise<void>; | ||
} | ||
export declare abstract class BaseAddress extends Ptr { | ||
export declare abstract class BaseAddress extends _Ptr { | ||
abstract paymentCred(): Promise<StakeCredential>; | ||
@@ -533,3 +546,3 @@ abstract stakeCred(): Promise<StakeCredential>; | ||
} | ||
export declare abstract class PointerAddress extends Ptr { | ||
export declare abstract class PointerAddress extends _Ptr { | ||
abstract paymentCred(): Promise<StakeCredential>; | ||
@@ -541,3 +554,3 @@ abstract stakePointer(): Promise<Pointer>; | ||
} | ||
export declare abstract class EnterpriseAddress extends Ptr { | ||
export declare abstract class EnterpriseAddress extends _Ptr { | ||
abstract paymentCred(): Promise<StakeCredential>; | ||
@@ -548,3 +561,3 @@ abstract toAddress(): Promise<Address>; | ||
} | ||
export declare abstract class Pointer extends Ptr { | ||
export declare abstract class Pointer extends _Ptr { | ||
abstract slot(): Promise<number>; | ||
@@ -555,6 +568,6 @@ abstract txIndex(): Promise<number>; | ||
} | ||
export declare abstract class Vkey extends Ptr { | ||
export declare abstract class Vkey extends _Ptr { | ||
static new(pk: PublicKey): Promise<Vkey>; | ||
} | ||
export declare abstract class Ed25519Signature extends Ptr { | ||
export declare abstract class Ed25519Signature extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -564,3 +577,3 @@ abstract toHex(): Promise<string>; | ||
} | ||
export declare abstract class Vkeywitness extends Ptr { | ||
export declare abstract class Vkeywitness extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -571,3 +584,3 @@ abstract signature(): Promise<Ed25519Signature>; | ||
} | ||
export declare abstract class Vkeywitnesses extends Ptr { | ||
export declare abstract class Vkeywitnesses extends _Ptr { | ||
abstract len(): Promise<number>; | ||
@@ -577,3 +590,3 @@ abstract add(item: Vkeywitness): Promise<void>; | ||
} | ||
export declare abstract class BootstrapWitness extends Ptr { | ||
export declare abstract class BootstrapWitness extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -583,3 +596,3 @@ static fromBytes(bytes: Uint8Array): Promise<BootstrapWitness>; | ||
} | ||
export declare abstract class BootstrapWitnesses extends Ptr { | ||
export declare abstract class BootstrapWitnesses extends _Ptr { | ||
abstract len(): Promise<number>; | ||
@@ -589,3 +602,3 @@ abstract add(item: BootstrapWitness): Promise<void>; | ||
} | ||
export declare abstract class TransactionWitnessSet extends Ptr { | ||
export declare abstract class TransactionWitnessSet extends _Ptr { | ||
abstract setBootstraps(bootstraps: BootstrapWitnesses): Promise<void>; | ||
@@ -595,3 +608,3 @@ abstract setVkeys(vkeywitnesses: Vkeywitnesses): Promise<void>; | ||
} | ||
export declare abstract class Transaction extends Ptr { | ||
export declare abstract class Transaction extends _Ptr { | ||
abstract body(): Promise<TransactionBody>; | ||
@@ -602,3 +615,3 @@ abstract toBytes(): Promise<Uint8Array>; | ||
} | ||
export declare abstract class NetworkInfo extends Ptr { | ||
export declare abstract class NetworkInfo extends _Ptr { | ||
abstract networkId(): Promise<number>; | ||
@@ -610,3 +623,3 @@ abstract protocolMagic(): Promise<number>; | ||
} | ||
export declare abstract class MetadataList extends Ptr { | ||
export declare abstract class MetadataList extends _Ptr { | ||
static new(): Promise<MetadataList>; | ||
@@ -619,3 +632,3 @@ static fromBytes(bytes: Uint8Array): Promise<MetadataList>; | ||
} | ||
export declare abstract class NativeScript extends Ptr { | ||
export declare abstract class NativeScript extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -626,3 +639,3 @@ abstract hash(namespace: number): Promise<Ed25519KeyHash>; | ||
} | ||
export declare abstract class NativeScripts extends Ptr { | ||
export declare abstract class NativeScripts extends _Ptr { | ||
abstract len(): Promise<number>; | ||
@@ -633,3 +646,3 @@ abstract get(index: number): Promise<NativeScript>; | ||
} | ||
export declare abstract class PlutusScript extends Ptr { | ||
export declare abstract class PlutusScript extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -640,3 +653,3 @@ abstract bytes(): Promise<Uint8Array>; | ||
} | ||
export declare abstract class PlutusScripts extends Ptr { | ||
export declare abstract class PlutusScripts extends _Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
@@ -643,0 +656,0 @@ abstract len(): Promise<number>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BootstrapWitness = exports.Vkeywitnesses = exports.Vkeywitness = exports.Ed25519Signature = exports.Vkey = exports.Pointer = exports.EnterpriseAddress = exports.PointerAddress = exports.BaseAddress = exports.TransactionBuilder = exports.TransactionBody = exports.TransactionOutputs = exports.TransactionInputs = exports.Withdrawals = exports.RewardAddresses = exports.RewardAddress = exports.Certificates = exports.Certificate = exports.StakeDelegation = exports.StakeDeregistration = exports.StakeRegistration = exports.StakeCredential = exports.TransactionOutput = exports.ByronAddress = exports.Bip32PrivateKey = exports.PrivateKey = exports.Bip32PublicKey = exports.PublicKey = exports.Address = exports.Value = exports.TransactionInput = exports.TransactionHash = exports.Ed25519KeyHash = exports.MultiAsset = exports.ScriptHashes = exports.ScriptHash = exports.Assets = exports.AssetNames = exports.AssetName = exports.AuxiliaryData = exports.TransactionMetadatum = exports.Int = exports.MetadataMap = exports.TransactionMetadatumLabels = exports.GeneralTransactionMetadata = exports.LinearFee = exports.BigNum = exports.Ptr = exports.WasmProxy = exports.EXCEPTIONS = void 0; | ||
exports.PlutusScripts = exports.PlutusScript = exports.NativeScripts = exports.NativeScript = exports.MetadataList = exports.NetworkInfo = exports.Transaction = exports.TransactionWitnessSet = exports.BootstrapWitnesses = void 0; | ||
exports.Vkeywitness = exports.Ed25519Signature = exports.Vkey = exports.Pointer = exports.EnterpriseAddress = exports.PointerAddress = exports.BaseAddress = exports.TransactionBuilder = exports.TransactionBody = exports.TransactionOutputs = exports.TransactionInputs = exports.Withdrawals = exports.RewardAddresses = exports.RewardAddress = exports.Certificates = exports.Certificate = exports.StakeDelegation = exports.StakeDeregistration = exports.StakeRegistration = exports.StakeCredential = exports.TransactionOutput = exports.ByronAddress = exports.Bip32PrivateKey = exports.PrivateKey = exports.Bip32PublicKey = exports.PublicKey = exports.Address = exports.Value = exports.TransactionInput = exports.TransactionHash = exports.Ed25519KeyHash = exports.MultiAsset = exports.ScriptHashes = exports.ScriptHash = exports.Assets = exports.AssetNames = exports.AssetName = exports.AuxiliaryData = exports.TransactionMetadatum = exports.Int = exports.MetadataMap = exports.TransactionMetadatumLabels = exports.GeneralTransactionMetadata = exports.LinearFee = exports.BigNum = exports.Ptr = exports._Ptr = exports.WasmProxy = exports._WasmProxy = exports.EXCEPTIONS = void 0; | ||
exports.PlutusScripts = exports.PlutusScript = exports.NativeScripts = exports.NativeScript = exports.MetadataList = exports.NetworkInfo = exports.Transaction = exports.TransactionWitnessSet = exports.BootstrapWitnesses = exports.BootstrapWitness = exports.Vkeywitnesses = void 0; | ||
// this file contains several "abstract static" methods. | ||
@@ -19,3 +19,3 @@ // This is not an actual feature of TS, but we define the static methods in the abstract classes | ||
}; | ||
class WasmProxy { | ||
class _WasmProxy { | ||
// this constructor is here just to enforce it in the implementing classes | ||
@@ -25,3 +25,31 @@ // eslint-disable-next-line @typescript-eslint/no-empty-function | ||
} | ||
exports._WasmProxy = _WasmProxy; | ||
class WasmProxy { | ||
constructor(wasm) { | ||
this._wasm = wasm; | ||
} | ||
get internalWasm() { | ||
return this._wasm; | ||
} | ||
get wasm() { | ||
if (this._wasm) | ||
return this._wasm; | ||
throw new Error('Trying to access undefined WASM object'); | ||
} | ||
hasValue() { | ||
if (this._wasm) { | ||
return true; | ||
} | ||
else { | ||
return false; | ||
} | ||
} | ||
} | ||
exports.WasmProxy = WasmProxy; | ||
class _Ptr extends _WasmProxy { | ||
constructor(wasm) { | ||
super(wasm); | ||
} | ||
} | ||
exports._Ptr = _Ptr; | ||
class Ptr extends WasmProxy { | ||
@@ -31,2 +59,5 @@ constructor(wasm) { | ||
} | ||
free() { | ||
return Promise.resolve(this.wasm.free()); | ||
} | ||
} | ||
@@ -41,3 +72,3 @@ exports.Ptr = Ptr; | ||
*/ | ||
class BigNum extends Ptr { | ||
class BigNum extends _Ptr { | ||
/** | ||
@@ -59,3 +90,3 @@ * @param {Uint8Array} bytes | ||
exports.BigNum = BigNum; | ||
class LinearFee extends Ptr { | ||
class LinearFee extends _Ptr { | ||
/** | ||
@@ -71,3 +102,3 @@ * @param {BigNum} coefficient | ||
exports.LinearFee = LinearFee; | ||
class GeneralTransactionMetadata extends Ptr { | ||
class GeneralTransactionMetadata extends _Ptr { | ||
static new() { | ||
@@ -81,3 +112,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.GeneralTransactionMetadata = GeneralTransactionMetadata; | ||
class TransactionMetadatumLabels extends Ptr { | ||
class TransactionMetadatumLabels extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -91,3 +122,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.TransactionMetadatumLabels = TransactionMetadatumLabels; | ||
class MetadataMap extends Ptr { | ||
class MetadataMap extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -101,3 +132,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.MetadataMap = MetadataMap; | ||
class Int extends Ptr { | ||
class Int extends _Ptr { | ||
static new(x) { | ||
@@ -114,3 +145,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Int = Int; | ||
class TransactionMetadatum extends Ptr { | ||
class TransactionMetadatum extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -136,3 +167,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.TransactionMetadatum = TransactionMetadatum; | ||
class AuxiliaryData extends Ptr { | ||
class AuxiliaryData extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -149,3 +180,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.AuxiliaryData = AuxiliaryData; | ||
class AssetName extends Ptr { | ||
class AssetName extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -159,3 +190,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.AssetName = AssetName; | ||
class AssetNames extends Ptr { | ||
class AssetNames extends _Ptr { | ||
static new() { | ||
@@ -166,3 +197,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.AssetNames = AssetNames; | ||
class Assets extends Ptr { | ||
class Assets extends _Ptr { | ||
static new() { | ||
@@ -173,3 +204,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Assets = Assets; | ||
class ScriptHash extends WasmProxy { | ||
class ScriptHash extends _WasmProxy { | ||
static fromBytes(bytes) { | ||
@@ -180,3 +211,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.ScriptHash = ScriptHash; | ||
class ScriptHashes extends WasmProxy { | ||
class ScriptHashes extends _WasmProxy { | ||
static fromBytes(bytes) { | ||
@@ -190,3 +221,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.ScriptHashes = ScriptHashes; | ||
class MultiAsset extends Ptr { | ||
class MultiAsset extends _Ptr { | ||
static new() { | ||
@@ -197,3 +228,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.MultiAsset = MultiAsset; | ||
class Ed25519KeyHash extends Ptr { | ||
class Ed25519KeyHash extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -204,3 +235,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Ed25519KeyHash = Ed25519KeyHash; | ||
class TransactionHash extends Ptr { | ||
class TransactionHash extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -211,3 +242,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.TransactionHash = TransactionHash; | ||
class TransactionInput extends Ptr { | ||
class TransactionInput extends _Ptr { | ||
static new(transactionId, index) { | ||
@@ -221,3 +252,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.TransactionInput = TransactionInput; | ||
class Value extends Ptr { | ||
class Value extends _Ptr { | ||
static new(coin) { | ||
@@ -228,3 +259,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Value = Value; | ||
class Address extends Ptr { | ||
class Address extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -238,3 +269,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Address = Address; | ||
class PublicKey extends Ptr { | ||
class PublicKey extends _Ptr { | ||
static fromBech32(bech32_str) { | ||
@@ -248,3 +279,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.PublicKey = PublicKey; | ||
class Bip32PublicKey extends Ptr { | ||
class Bip32PublicKey extends _Ptr { | ||
static fromBech32(bech32_str) { | ||
@@ -258,3 +289,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Bip32PublicKey = Bip32PublicKey; | ||
class PrivateKey extends Ptr { | ||
class PrivateKey extends _Ptr { | ||
static fromExtendedBytes(bytes) { | ||
@@ -268,3 +299,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.PrivateKey = PrivateKey; | ||
class Bip32PrivateKey extends Ptr { | ||
class Bip32PrivateKey extends _Ptr { | ||
static fromBip39Entropy(entropy, password) { | ||
@@ -284,3 +315,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Bip32PrivateKey = Bip32PrivateKey; | ||
class ByronAddress extends Ptr { | ||
class ByronAddress extends _Ptr { | ||
static icarusFromKey(key, protocolMagic) { | ||
@@ -300,3 +331,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.ByronAddress = ByronAddress; | ||
class TransactionOutput extends Ptr { | ||
class TransactionOutput extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -310,3 +341,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.TransactionOutput = TransactionOutput; | ||
class StakeCredential extends Ptr { | ||
class StakeCredential extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -323,3 +354,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.StakeCredential = StakeCredential; | ||
class StakeRegistration extends Ptr { | ||
class StakeRegistration extends _Ptr { | ||
static new(stakeCredential) { | ||
@@ -333,3 +364,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.StakeRegistration = StakeRegistration; | ||
class StakeDeregistration extends Ptr { | ||
class StakeDeregistration extends _Ptr { | ||
static new(stakeCredential) { | ||
@@ -343,3 +374,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.StakeDeregistration = StakeDeregistration; | ||
class StakeDelegation extends Ptr { | ||
class StakeDelegation extends _Ptr { | ||
static new(stakeCredential, poolKeyHash) { | ||
@@ -353,3 +384,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.StakeDelegation = StakeDelegation; | ||
class Certificate extends Ptr { | ||
class Certificate extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -369,3 +400,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Certificate = Certificate; | ||
class Certificates extends Ptr { | ||
class Certificates extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -379,3 +410,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Certificates = Certificates; | ||
class RewardAddress extends Ptr { | ||
class RewardAddress extends _Ptr { | ||
static fromAddress(addr) { | ||
@@ -389,3 +420,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.RewardAddress = RewardAddress; | ||
class RewardAddresses extends Ptr { | ||
class RewardAddresses extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -399,3 +430,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.RewardAddresses = RewardAddresses; | ||
class Withdrawals extends Ptr { | ||
class Withdrawals extends _Ptr { | ||
static new() { | ||
@@ -409,9 +440,9 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Withdrawals = Withdrawals; | ||
class TransactionInputs extends Ptr { | ||
class TransactionInputs extends _Ptr { | ||
} | ||
exports.TransactionInputs = TransactionInputs; | ||
class TransactionOutputs extends Ptr { | ||
class TransactionOutputs extends _Ptr { | ||
} | ||
exports.TransactionOutputs = TransactionOutputs; | ||
class TransactionBody extends Ptr { | ||
class TransactionBody extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -422,3 +453,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.TransactionBody = TransactionBody; | ||
class TransactionBuilder extends Ptr { | ||
class TransactionBuilder extends _Ptr { | ||
static new(linearFee, minimumUtxoVal, poolDeposit, keyDeposit) { | ||
@@ -429,3 +460,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.TransactionBuilder = TransactionBuilder; | ||
class BaseAddress extends Ptr { | ||
class BaseAddress extends _Ptr { | ||
static fromAddress(addr) { | ||
@@ -439,3 +470,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.BaseAddress = BaseAddress; | ||
class PointerAddress extends Ptr { | ||
class PointerAddress extends _Ptr { | ||
static fromAddress(addr) { | ||
@@ -449,3 +480,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.PointerAddress = PointerAddress; | ||
class EnterpriseAddress extends Ptr { | ||
class EnterpriseAddress extends _Ptr { | ||
static fromAddress(addr) { | ||
@@ -459,3 +490,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.EnterpriseAddress = EnterpriseAddress; | ||
class Pointer extends Ptr { | ||
class Pointer extends _Ptr { | ||
static new(slot, txIndex, certIndex) { | ||
@@ -466,3 +497,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Pointer = Pointer; | ||
class Vkey extends Ptr { | ||
class Vkey extends _Ptr { | ||
static new(pk) { | ||
@@ -473,3 +504,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Vkey = Vkey; | ||
class Ed25519Signature extends Ptr { | ||
class Ed25519Signature extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -480,3 +511,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Ed25519Signature = Ed25519Signature; | ||
class Vkeywitness extends Ptr { | ||
class Vkeywitness extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -490,3 +521,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Vkeywitness = Vkeywitness; | ||
class Vkeywitnesses extends Ptr { | ||
class Vkeywitnesses extends _Ptr { | ||
static new() { | ||
@@ -497,3 +528,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Vkeywitnesses = Vkeywitnesses; | ||
class BootstrapWitness extends Ptr { | ||
class BootstrapWitness extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -507,3 +538,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.BootstrapWitness = BootstrapWitness; | ||
class BootstrapWitnesses extends Ptr { | ||
class BootstrapWitnesses extends _Ptr { | ||
static new() { | ||
@@ -514,3 +545,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.BootstrapWitnesses = BootstrapWitnesses; | ||
class TransactionWitnessSet extends Ptr { | ||
class TransactionWitnessSet extends _Ptr { | ||
static new() { | ||
@@ -521,3 +552,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.TransactionWitnessSet = TransactionWitnessSet; | ||
class Transaction extends Ptr { | ||
class Transaction extends _Ptr { | ||
static new(body, witnessSet, auxiliary) { | ||
@@ -531,3 +562,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.Transaction = Transaction; | ||
class NetworkInfo extends Ptr { | ||
class NetworkInfo extends _Ptr { | ||
static new(networkId, protocolMagic) { | ||
@@ -544,3 +575,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.NetworkInfo = NetworkInfo; | ||
class MetadataList extends Ptr { | ||
class MetadataList extends _Ptr { | ||
static new() { | ||
@@ -554,3 +585,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.MetadataList = MetadataList; | ||
class NativeScript extends Ptr { | ||
class NativeScript extends _Ptr { | ||
// ToDo: uncomment these functions. For now we need this only for AuxiliaryData | ||
@@ -568,3 +599,3 @@ // abstract as_script_pubkey(): ScriptPubkey | undefined | ||
exports.NativeScript = NativeScript; | ||
class NativeScripts extends Ptr { | ||
class NativeScripts extends _Ptr { | ||
static new() { | ||
@@ -575,3 +606,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.NativeScripts = NativeScripts; | ||
class PlutusScript extends Ptr { | ||
class PlutusScript extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -585,3 +616,3 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.PlutusScript = PlutusScript; | ||
class PlutusScripts extends Ptr { | ||
class PlutusScripts extends _Ptr { | ||
static fromBytes(bytes) { | ||
@@ -588,0 +619,0 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; |
{ | ||
"name": "@emurgo/yoroi-lib-core", | ||
"version": "0.1.2-alpha.17", | ||
"version": "0.1.3-alpha.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
229605
4177