Skip to content

Commit

Permalink
Updated dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 23, 2019
1 parent 3cbc4b4 commit 80423ac
Show file tree
Hide file tree
Showing 42 changed files with 602 additions and 378 deletions.
2 changes: 1 addition & 1 deletion packages/abi/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "5.0.0-beta.128";
export declare const version = "5.0.0-beta.129";
2 changes: 1 addition & 1 deletion packages/abi/_version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.128";
exports.version = "5.0.0-beta.129";
4 changes: 4 additions & 0 deletions packages/abi/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ var Interface = /** @class */ (function () {
eventFragment = this.getEvent(eventFragment);
}
if (topics != null && !eventFragment.anonymous) {
var topicHash = this.getEventTopic(eventFragment);
if (!bytes_1.isHexString(topics[0], 32) || topics[0].toLowerCase() !== topicHash) {
errors.throwError("fragment/topic mismatch", errors.INVALID_ARGUMENT, { argument: "topics[0]", expected: topicHash, value: topics[0] });
}
topics = topics.slice(1);
}
var indexed = [];
Expand Down
4 changes: 2 additions & 2 deletions packages/abi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethersproject/abi",
"version": "5.0.0-beta.128",
"version": "5.0.0-beta.129",
"description": "Error utility functions for ethers.",
"main": "index.js",
"scripts": {
Expand All @@ -26,5 +26,5 @@
"publishConfig": {
"access": "public"
},
"tarballHash": "0xd6298eed7cb50f08154591d43a324a68220ce97b92ab6f44d2015437688def09"
"tarballHash": "0xc7c6d5bf9eed0903af63bd1d5dccdf747fbd3499ae37ba0b6b2fe10248cad497"
}
2 changes: 1 addition & 1 deletion packages/abi/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.128";
export const version = "5.0.0-beta.129";
2 changes: 1 addition & 1 deletion packages/basex/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "5.0.0-beta.124";
export declare const version = "5.0.0-beta.125";
2 changes: 1 addition & 1 deletion packages/basex/_version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.124";
exports.version = "5.0.0-beta.125";
4 changes: 2 additions & 2 deletions packages/basex/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethersproject/basex",
"version": "5.0.0-beta.124",
"version": "5.0.0-beta.125",
"description": "Base-X without Buffer.",
"main": "index.js",
"scripts": {
Expand All @@ -19,5 +19,5 @@
"publishConfig": {
"access": "public"
},
"tarballHash": "0x8243e502fd9c51780351423f21ff95978c66005a9a9691cabd98e805ca69fe40"
"tarballHash": "0x9718df45bebfef04f2bd19dca4a17096de8b71cb20a0953ffca85f2f48d7af42"
}
2 changes: 1 addition & 1 deletion packages/basex/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.124";
export const version = "5.0.0-beta.125";
2 changes: 1 addition & 1 deletion packages/cli/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "5.0.0-beta.129";
export declare const version = "5.0.0-beta.130";
2 changes: 1 addition & 1 deletion packages/cli/_version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.129";
exports.version = "5.0.0-beta.130";
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethersproject/cli",
"version": "5.0.0-beta.129",
"version": "5.0.0-beta.130",
"description": "Command-Line Interface scripts and releated utilities.",
"main": "index.js",
"scripts": {
Expand All @@ -11,10 +11,10 @@
"ethers-ts": "./bin/ethers-ts.js"
},
"dependencies": {
"@types/node": "^10.3.2",
"@types/node": "10.3.2",
"ethers": ">5.0.0-beta.0",
"mime-types": "2.1.11",
"solc": "^0.5.5",
"solc": "0.5.5",
"solidity-parser-antlr": "^0.3.2"
},
"keywords": [
Expand All @@ -27,5 +27,5 @@
"publishConfig": {
"access": "public"
},
"tarballHash": "0xf1056c4f8e2c3d6896510821ac3042b3e73bee3312c9c046518115c9fe9df45b"
"tarballHash": "0x11f25eb8f099afc2e77d940188d6d959a800113cef39f4b4acae0b062f0d97a0"
}
2 changes: 1 addition & 1 deletion packages/cli/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.129";
export const version = "5.0.0-beta.130";
2 changes: 1 addition & 1 deletion packages/contracts/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "5.0.0-beta.127";
export declare const version = "5.0.0-beta.128";
2 changes: 1 addition & 1 deletion packages/contracts/_version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.127";
exports.version = "5.0.0-beta.128";
43 changes: 26 additions & 17 deletions packages/contracts/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventFragment, Fragment, Indexed, Interface, JsonFragment } from "@ethersproject/abi";
import { Fragment, Indexed, Interface, JsonFragment } from "@ethersproject/abi";
import { Block, BlockTag, Listener, Log, Provider, TransactionReceipt, TransactionRequest, TransactionResponse } from "@ethersproject/abstract-provider";
import { Signer } from "@ethersproject/abstract-signer";
import { BigNumber, BigNumberish } from "@ethersproject/bignumber";
Expand Down Expand Up @@ -40,12 +40,19 @@ export interface ContractTransaction extends TransactionResponse {
interface Bucket<T> {
[name: string]: T;
}
declare type _EventFilter = {
prepareEvent: (event: Event) => void;
fragment?: EventFragment;
eventTag: string;
filter: EventFilter;
};
declare class RunningEvent {
readonly tag: string;
readonly filter: EventFilter;
private _listeners;
constructor(tag: string, filter: EventFilter);
addListener(listener: Listener, once: boolean): void;
removeListener(listener: Listener): void;
removeAllListeners(): void;
listeners(): Array<Listener>;
listenerCount(): number;
run(args: Array<any>): number;
prepareEvent(event: Event): void;
}
export declare type ContractInterface = string | Array<Fragment | JsonFragment | string> | Interface;
export declare class Contract {
readonly address: string;
Expand All @@ -60,7 +67,9 @@ export declare class Contract {
readonly [name: string]: ContractFunction | any;
readonly addressPromise: Promise<string>;
readonly deployTransaction: TransactionResponse;
_deployedPromise: Promise<Contract>;
private _deployedPromise;
private _runningEvents;
private _wrappedEmits;
constructor(addressOrName: string, contractInterface: ContractInterface, signerOrProvider: Signer | Provider);
static getContractAddress(transaction: {
from: string;
Expand All @@ -73,20 +82,20 @@ export declare class Contract {
connect(signerOrProvider: Signer | Provider | string): Contract;
attach(addressOrName: string): Contract;
static isIndexed(value: any): value is Indexed;
private _events;
private _getEventFilter;
_wrapEvent(eventFilter: _EventFilter, log: Log, listener: Listener): Event;
private _normalizeRunningEvent;
private _getRunningEvent;
_checkRunningEvents(runningEvent: RunningEvent): void;
private _wrapEvent;
private _addEventListener;
queryFilter(event: EventFilter, fromBlockOrBlockhash?: BlockTag | string, toBlock?: BlockTag): Promise<Array<Event>>;
on(event: EventFilter | string, listener: Listener): Contract;
once(event: EventFilter | string, listener: Listener): Contract;
addListener(eventName: EventFilter | string, listener: Listener): Contract;
on(event: EventFilter | string, listener: Listener): this;
once(event: EventFilter | string, listener: Listener): this;
emit(eventName: EventFilter | string, ...args: Array<any>): boolean;
listenerCount(eventName?: EventFilter | string): number;
listeners(eventName?: EventFilter | string): Array<Listener>;
removeAllListeners(eventName: EventFilter | string): Contract;
off(eventName: any, listener: Listener): Contract;
removeListener(eventName: any, listener: Listener): Contract;
removeAllListeners(eventName?: EventFilter | string): this;
off(eventName: EventFilter | string, listener: Listener): this;
removeListener(eventName: EventFilter | string, listener: Listener): this;
}
export declare class ContractFactory {
readonly interface: Interface;
Expand Down
Loading

0 comments on commit 80423ac

Please sign in to comment.