@emurgo/yoroi-lib-core
Advanced tools
Comparing version 0.0.1-alpha.6 to 0.0.1-alpha.7
@@ -195,3 +195,10 @@ export declare const EXCEPTIONS: { | ||
export declare abstract class AuxiliaryData extends Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
abstract metadata(): Promise<GeneralTransactionMetadata>; | ||
abstract setMetadata(metadata: GeneralTransactionMetadata): Promise<void>; | ||
abstract nativeScripts(): Promise<NativeScripts | undefined>; | ||
abstract setNativeScripts(native_scripts: NativeScripts): Promise<void>; | ||
abstract plutusScripts(): Promise<PlutusScripts | undefined>; | ||
abstract setPlutusScripts(plutus_scripts: PlutusScripts): Promise<void>; | ||
static fromBytes(bytes: Uint8Array): AuxiliaryData; | ||
static new(metadata: GeneralTransactionMetadata): Promise<AuxiliaryData>; | ||
@@ -557,1 +564,27 @@ static empty(): Promise<AuxiliaryData>; | ||
} | ||
export declare abstract class NativeScript extends Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
abstract hash(namespace: number): Promise<Ed25519KeyHash>; | ||
abstract kind(): Promise<number>; | ||
static fromBytes(bytes: Uint8Array): NativeScript; | ||
} | ||
export declare abstract class NativeScripts extends Ptr { | ||
abstract len(): Promise<number>; | ||
abstract get(index: number): Promise<NativeScript>; | ||
abstract add(elem: NativeScript): Promise<void>; | ||
static new(): Promise<NativeScripts>; | ||
} | ||
export declare abstract class PlutusScript extends Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
abstract bytes(): Promise<Uint8Array>; | ||
static fromBytes(bytes: Uint8Array): Promise<PlutusScript>; | ||
static new(bytes: Uint8Array): Promise<PlutusScript>; | ||
} | ||
export declare abstract class PlutusScripts extends Ptr { | ||
abstract toBytes(): Promise<Uint8Array>; | ||
abstract len(): Promise<number>; | ||
abstract get(index: number): Promise<PlutusScript>; | ||
abstract add(elem: PlutusScript): Promise<void>; | ||
static fromBytes(bytes: Uint8Array): Promise<PlutusScripts>; | ||
static new(): Promise<PlutusScripts>; | ||
} |
"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.MetadataList = exports.NetworkInfo = exports.Transaction = exports.TransactionWitnessSet = exports.BootstrapWitnesses = void 0; | ||
exports.PlutusScripts = exports.PlutusScript = exports.NativeScripts = exports.NativeScript = exports.MetadataList = exports.NetworkInfo = exports.Transaction = exports.TransactionWitnessSet = exports.BootstrapWitnesses = void 0; | ||
// this file contains several "abstract static" methods. | ||
@@ -127,2 +127,5 @@ // This is not an actual feature of TS, but we define the static methods in the abstract classes | ||
class AuxiliaryData extends Ptr { | ||
static fromBytes(bytes) { | ||
throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
} | ||
static new(metadata) { | ||
@@ -493,1 +496,38 @@ throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
exports.MetadataList = MetadataList; | ||
class NativeScript extends Ptr { | ||
// ToDo: uncomment these functions. For now we need this only for AuxiliaryData | ||
// abstract as_script_pubkey(): ScriptPubkey | undefined | ||
// abstract as_script_all(): ScriptAll | undefined | ||
// abstract as_script_any(): ScriptAny | undefined | ||
// abstract as_script_n_of_k(): ScriptNOfK | undefined | ||
// abstract as_timelock_start(): TimelockStart | undefined | ||
// abstract as_timelock_expiry(): TimelockExpiry | undefined | ||
static fromBytes(bytes) { | ||
throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
} | ||
} | ||
exports.NativeScript = NativeScript; | ||
class NativeScripts extends Ptr { | ||
static new() { | ||
throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
} | ||
} | ||
exports.NativeScripts = NativeScripts; | ||
class PlutusScript extends Ptr { | ||
static fromBytes(bytes) { | ||
throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
} | ||
static new(bytes) { | ||
throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
} | ||
} | ||
exports.PlutusScript = PlutusScript; | ||
class PlutusScripts extends Ptr { | ||
static fromBytes(bytes) { | ||
throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
} | ||
static new() { | ||
throw exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN; | ||
} | ||
} | ||
exports.PlutusScripts = PlutusScripts; |
{ | ||
"name": "@emurgo/yoroi-lib-core", | ||
"version": "0.0.1-alpha.6", | ||
"version": "0.0.1-alpha.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
227172
4091