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

@greymass/eosio

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@greymass/eosio - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

22

lib/eosio-core.d.ts
/**
* EOSIO Core v0.2.0
* EOSIO Core v0.2.1
* https://github.com/greymass/eosio-core

@@ -196,3 +196,3 @@ *

constructor(array: Uint8Array);
equals(other: Checksum160Type | Checksum256Type | Checksum512Type): any;
equals(other: Checksum160Type | Checksum256Type | Checksum512Type): boolean;
get hexString(): string;

@@ -929,3 +929,3 @@ toABI(encoder: ABIEncoder): void;

static abiBase: ABISerializableConstructor;
static from<T extends StructConstructor>(this: T, value: Record<string, any> | InstanceType<T>): InstanceType<T>;
static from<T extends StructConstructor>(this: T, value: any): InstanceType<T>;
static from(value: any): unknown;

@@ -941,3 +941,3 @@ static get structFields(): ABIField[];

*/
equals(other: any): any;
equals(other: any): boolean;
/** @internal */

@@ -960,5 +960,5 @@ toJSON(): any;

/** Create new permission level from representing types. Can be expressed as a string in the format `<actor>@<permission>`. */
static from(value: PermissionLevelType | string): any;
static from(value: PermissionLevelType | string): PermissionLevel;
/** Return true if this permission level equals other. */
equals(other: PermissionLevelType | string): any;
equals(other: PermissionLevelType | string): boolean;
}

@@ -993,5 +993,5 @@

data: Bytes;
static from(object: ActionType | AnyAction, abi?: ABIDef): any;
static from(object: ActionType | AnyAction, abi?: ABIDef): Action;
/** Return true if this Action is equal to given action. */
equals(other: ActionType | AnyAction): any;
equals(other: ActionType | AnyAction): boolean;
/** Return action data decoded as given type or using abi. */

@@ -1070,5 +1070,5 @@ decodeData<T extends ABISerializableConstructor>(type: T): InstanceType<T>;

abi: ABIDef;
}[]): any;
}[]): Transaction;
/** Return true if this transaction is equal to given transaction. */
equals(other: TransactionType): any;
equals(other: TransactionType): boolean;
get id(): Checksum256;

@@ -1612,3 +1612,3 @@ signingDigest(chainId: Checksum256Type): Checksum256;

*/
equals(other: AnyVariant): any;
equals(other: AnyVariant): boolean;
get variantName(): string;

@@ -1615,0 +1615,0 @@ /** @internal */

{
"name": "@greymass/eosio",
"description": "Library for working with EOSIO blockchains",
"version": "0.2.0",
"version": "0.2.1",
"homepage": "https://github.com/greymass/eosio-core",

@@ -6,0 +6,0 @@ "license": "BSD-3-Clause",

@@ -48,3 +48,3 @@ import {Struct} from './struct'

static from(object: ActionType | AnyAction, abi?: ABIDef) {
static from(object: ActionType | AnyAction, abi?: ABIDef): Action {
const data = object.data as any

@@ -51,0 +51,0 @@ if (!Bytes.isBytes(data)) {

@@ -43,3 +43,3 @@ import {ripemd160, sha256, sha512} from 'hash.js'

equals(other: Checksum160Type | Checksum256Type | Checksum512Type) {
equals(other: Checksum160Type | Checksum256Type | Checksum512Type): boolean {
const self = this.constructor as typeof Checksum

@@ -46,0 +46,0 @@ return arrayEquals(this.array, self.from(other).array)

@@ -13,3 +13,3 @@ import {Name, NameType} from './name'

/** Create new permission level from representing types. Can be expressed as a string in the format `<actor>@<permission>`. */
static from(value: PermissionLevelType | string) {
static from(value: PermissionLevelType | string): PermissionLevel {
if (typeof value === 'string') {

@@ -16,0 +16,0 @@ const parts = value.split('@')

@@ -20,6 +20,3 @@ import {

static from<T extends StructConstructor>(
this: T,
value: Record<string, any> | InstanceType<T>
): InstanceType<T>
static from<T extends StructConstructor>(this: T, value: any): InstanceType<T>
static from(value: any): unknown

@@ -73,3 +70,3 @@ static from(value: any) {

*/
equals(other: any) {
equals(other: any): boolean {
const self = this.constructor as typeof Struct

@@ -76,0 +73,0 @@ if (

@@ -99,3 +99,3 @@ import {Action, ActionType, AnyAction} from './action'

abis?: ABIDef | {contract: NameType; abi: ABIDef}[]
) {
): Transaction {
const abiFor = (contract: NameType) => {

@@ -102,0 +102,0 @@ if (!abis) {

@@ -56,3 +56,3 @@ import {

*/
equals(other: AnyVariant) {
equals(other: AnyVariant): boolean {
const self = this.constructor as typeof Variant

@@ -59,0 +59,0 @@ const otherVariant = self.from(other)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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