diff --git a/src/interfaces/events/network-v2-events.ts b/src/interfaces/events/network-v2-events.ts index 137811a4..52e52ba6 100644 --- a/src/interfaces/events/network-v2-events.ts +++ b/src/interfaces/events/network-v2-events.ts @@ -11,4 +11,5 @@ export interface GovernorTransferredEvent { returnValues: {'previousGovernor': s export interface BountyFunded { returnValues: {'id': string;'funded': boolean;} } export interface BountyAmountUpdatedEvent { returnValues: {'id': number;'amount': number;} } export interface OraclesChangedEvent { returnValues: {'actor': string;'actionAmount': number; 'newLockedTotal': number} } -export interface OraclesTransferEvent { returnValues: {'from': string;'to': string; 'amount': number} } \ No newline at end of file +export interface OraclesTransferEvent { returnValues: {'from': string;'to': string; 'amount': number} } +export interface NetworkParamChanged { returnValues: { 'param': number; 'newvalue': number; 'oldvalue': number } } \ No newline at end of file diff --git a/src/models/network-v2.ts b/src/models/network-v2.ts index c2719b5b..6bb45aa4 100644 --- a/src/models/network-v2.ts +++ b/src/models/network-v2.ts @@ -603,4 +603,8 @@ export class Network_v2 extends Model implements Deployable { return this.contract.self.getPastEvents(`OraclesTransfer`, filter) } + async getNetworkParamChangedEvents(filter: PastEventOptions): Promise[]> { + return this.contract.self.getPastEvents(`NetworkParamChanged`, filter) + } + }