Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@emurgo/yoroi-lib-core

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emurgo/yoroi-lib-core - npm Package Compare versions

Comparing version 0.0.1-alpha.6 to 0.0.1-alpha.7

33

dist/internals/wasm-contract.d.ts

@@ -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>;
}

42

dist/internals/wasm-contract.js
"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;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc