This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rocket-pool): Add Rocket Pool staked ETH (#930)
- Loading branch information
1 parent
a51fad7
commit 968e48d
Showing
8 changed files
with
170 additions
and
4 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/apps/rocket-pool/contracts/abis/rocket-minipool-manager.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "_nodeAddress", "type": "address" }], | ||
"name": "getNodeActiveMinipoolCount", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
64 changes: 64 additions & 0 deletions
64
src/apps/rocket-pool/contracts/ethers/RocketMinipoolManager.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { BaseContract, BigNumber, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from 'ethers'; | ||
import type { FunctionFragment, Result } from '@ethersproject/abi'; | ||
import type { Listener, Provider } from '@ethersproject/providers'; | ||
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from './common'; | ||
|
||
export interface RocketMinipoolManagerInterface extends utils.Interface { | ||
functions: { | ||
'getNodeActiveMinipoolCount(address)': FunctionFragment; | ||
}; | ||
|
||
getFunction(nameOrSignatureOrTopic: 'getNodeActiveMinipoolCount'): FunctionFragment; | ||
|
||
encodeFunctionData(functionFragment: 'getNodeActiveMinipoolCount', values: [string]): string; | ||
|
||
decodeFunctionResult(functionFragment: 'getNodeActiveMinipoolCount', data: BytesLike): Result; | ||
|
||
events: {}; | ||
} | ||
|
||
export interface RocketMinipoolManager extends BaseContract { | ||
connect(signerOrProvider: Signer | Provider | string): this; | ||
attach(addressOrName: string): this; | ||
deployed(): Promise<this>; | ||
|
||
interface: RocketMinipoolManagerInterface; | ||
|
||
queryFilter<TEvent extends TypedEvent>( | ||
event: TypedEventFilter<TEvent>, | ||
fromBlockOrBlockhash?: string | number | undefined, | ||
toBlock?: string | number | undefined, | ||
): Promise<Array<TEvent>>; | ||
|
||
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>; | ||
listeners(eventName?: string): Array<Listener>; | ||
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this; | ||
removeAllListeners(eventName?: string): this; | ||
off: OnEvent<this>; | ||
on: OnEvent<this>; | ||
once: OnEvent<this>; | ||
removeListener: OnEvent<this>; | ||
|
||
functions: { | ||
getNodeActiveMinipoolCount(_nodeAddress: string, overrides?: CallOverrides): Promise<[BigNumber]>; | ||
}; | ||
|
||
getNodeActiveMinipoolCount(_nodeAddress: string, overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
callStatic: { | ||
getNodeActiveMinipoolCount(_nodeAddress: string, overrides?: CallOverrides): Promise<BigNumber>; | ||
}; | ||
|
||
filters: {}; | ||
|
||
estimateGas: { | ||
getNodeActiveMinipoolCount(_nodeAddress: string, overrides?: CallOverrides): Promise<BigNumber>; | ||
}; | ||
|
||
populateTransaction: { | ||
getNodeActiveMinipoolCount(_nodeAddress: string, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
}; | ||
} |
39 changes: 39 additions & 0 deletions
39
src/apps/rocket-pool/contracts/ethers/factories/RocketMinipoolManager__factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import { Contract, Signer, utils } from 'ethers'; | ||
import type { Provider } from '@ethersproject/providers'; | ||
import type { RocketMinipoolManager, RocketMinipoolManagerInterface } from '../RocketMinipoolManager'; | ||
|
||
const _abi = [ | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: 'address', | ||
name: '_nodeAddress', | ||
type: 'address', | ||
}, | ||
], | ||
name: 'getNodeActiveMinipoolCount', | ||
outputs: [ | ||
{ | ||
internalType: 'uint256', | ||
name: '', | ||
type: 'uint256', | ||
}, | ||
], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
]; | ||
|
||
export class RocketMinipoolManager__factory { | ||
static readonly abi = _abi; | ||
static createInterface(): RocketMinipoolManagerInterface { | ||
return new utils.Interface(_abi) as RocketMinipoolManagerInterface; | ||
} | ||
static connect(address: string, signerOrProvider: Signer | Provider): RocketMinipoolManager { | ||
return new Contract(address, _abi, signerOrProvider) as RocketMinipoolManager; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters