Defined in: packages/operator/src/ProtocolClient.ts:25
Client for Protocol Governors and Validators (Infrastructure)
new ProtocolClient(
config):ProtocolClient
Defined in: packages/operator/src/ProtocolClient.ts:30
| Parameter | Type |
|---|---|
config |
ProtocolClientConfig |
ProtocolClient
optionalblsAggregatorAddress:`0x${string}`
Defined in: packages/operator/src/ProtocolClient.ts:27
client:
WalletClient
Defined in: packages/core/src/clients/BaseClient.ts:6
dvtValidatorAddress:
`0x${string}`
Defined in: packages/operator/src/ProtocolClient.ts:26
protectedoptionalentryPointAddress:`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:12
protectedoptionalgTokenAddress:`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:9
protectedoptionalgTokenStakingAddress:`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:10
BaseClient.gTokenStakingAddress
protectedoptionalpaymasterFactoryAddress:`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:11
BaseClient.paymasterFactoryAddress
optionalpublicClient:PublicClient
Defined in: packages/core/src/clients/BaseClient.ts:7
protectedoptionalregistryAddress:`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:8
optionalsuperPaymasterAddress:`0x${string}`
Defined in: packages/operator/src/ProtocolClient.ts:28
createProposal(
target,calldata,description,options?):Promise<`0x${string}`>
Defined in: packages/operator/src/ProtocolClient.ts:44
Create a new proposal
| Parameter | Type |
|---|---|
target |
`0x${string}` |
calldata |
`0x${string}` |
description |
string |
options? |
TransactionOptions |
Promise<`0x${string}`>
executeWithProof(
proposalId,signatures,options?):Promise<`0x${string}`>
Defined in: packages/operator/src/ProtocolClient.ts:78
Execute a proposal with collected signatures
| Parameter | Type |
|---|---|
proposalId |
bigint |
signatures |
`0x${string}`[] |
options? |
TransactionOptions |
Promise<`0x${string}`>
getAddress():
`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:34
Get the account address of the connected wallet
`0x${string}`
getStartPublicClient():
PublicClient|WalletClient<Transport,Chain|undefined,Account|undefined>
Defined in: packages/core/src/clients/BaseClient.ts:41
Helper to ensure public client exists or fallback to wallet client (if it supports read)
PublicClient | WalletClient<Transport, Chain | undefined, Account | undefined>
BaseClient.getStartPublicClient
registerBLSKey(
publicKey,options?):Promise<`0x${string}`>
Defined in: packages/operator/src/ProtocolClient.ts:101
| Parameter | Type |
|---|---|
publicKey |
`0x${string}` |
options? |
TransactionOptions |
Promise<`0x${string}`>
protectedrequireEntryPoint():`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:73
`0x${string}`
protectedrequireGToken():`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:52
`0x${string}`
protectedrequireGTokenStaking():`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:59
`0x${string}`
BaseClient.requireGTokenStaking
protectedrequirePaymasterFactory():`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:66
`0x${string}`
BaseClient.requirePaymasterFactory
protectedrequireRegistry():`0x${string}`
Defined in: packages/core/src/clients/BaseClient.ts:45
`0x${string}`
setProtocolFee(
bps,options?):Promise<`0x${string}`>
Defined in: packages/operator/src/ProtocolClient.ts:123
| Parameter | Type |
|---|---|
bps |
bigint |
options? |
TransactionOptions |
Promise<`0x${string}`>
setTreasury(
treasury,options?):Promise<`0x${string}`>
Defined in: packages/operator/src/ProtocolClient.ts:139
| Parameter | Type |
|---|---|
treasury |
`0x${string}` |
options? |
TransactionOptions |
Promise<`0x${string}`>
signProposal(
proposalId,signature,options?):Promise<`0x${string}`>
Defined in: packages/operator/src/ProtocolClient.ts:62
| Parameter | Type | Default value |
|---|---|---|
proposalId |
bigint |
undefined |
signature |
`0x${string}` |
'0x' |
options? |
TransactionOptions |
undefined |
Promise<`0x${string}`>