Defined in: operator/src/PaymasterOperatorClient.ts:20
Client for Paymaster Operators (ROLE_PAYMASTER_SUPER)
new PaymasterOperatorClient(
config):PaymasterOperatorClient
Defined in: operator/src/PaymasterOperatorClient.ts:26
| Parameter | Type |
|---|---|
config |
OperatorClientConfig |
PaymasterOperatorClient
client:
WalletClient
Defined in: core/dist/clients/BaseClient.d.ts:5
protectedoptionalentryPointAddress:`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:11
ethUsdPriceFeed:
`0x${string}`
Defined in: operator/src/PaymasterOperatorClient.ts:23
protectedoptionalgTokenAddress:`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:8
protectedoptionalgTokenStakingAddress:`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:9
BaseClient.gTokenStakingAddress
protectedoptionalpaymasterFactoryAddress:`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:10
BaseClient.paymasterFactoryAddress
optionalpublicClient:PublicClient
Defined in: core/dist/clients/BaseClient.d.ts:6
protectedoptionalregistryAddress:`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:7
superPaymasterAddress:
`0x${string}`
Defined in: operator/src/PaymasterOperatorClient.ts:21
optionaltokenAddress:`0x${string}`
Defined in: operator/src/PaymasterOperatorClient.ts:22
xpntsFactory:
`0x${string}`
Defined in: operator/src/PaymasterOperatorClient.ts:24
addGasToken(
token,price,options?):Promise<`0x${string}`>
Defined in: operator/src/PaymasterOperatorClient.ts:409
| Parameter | Type |
|---|---|
token |
`0x${string}` |
price |
bigint |
options? |
TransactionOptions |
Promise<`0x${string}`>
configureOperator(
xPNTsToken?,treasury?,options?):Promise<`0x${string}`>
Defined in: operator/src/PaymasterOperatorClient.ts:324
Configure operator parameters (Token, Treasury). Exchange rate is now read live from xPNTsToken.exchangeRate() at runtime. If parameters are undefined, existing values are preserved.
| Parameter | Type |
|---|---|
xPNTsToken? |
`0x${string}` |
treasury? |
`0x${string}` |
options? |
TransactionOptions |
Promise<`0x${string}`>
deployAndRegisterPaymasterV4(
params?,options?):Promise<{deployHash:`0x${string}`;paymasterAddress:`0x${string}`;registerHash:`0x${string}`; }>
Defined in: operator/src/PaymasterOperatorClient.ts:142
Deploy a new Paymaster V4 and Register as AOA Operator (one-stop API). This method handles:
- Checks prerequisites (ROLE_COMMUNITY)
- Predicts new Paymaster address
- Deploys Paymaster V4 via Factory
- Registers ROLE_PAYMASTER_AOA with staking
| Parameter | Type | Description |
|---|---|---|
params? |
{ priceFeed?: `0x${string}`; salt?: bigint; stakeAmount?: bigint; version?: string; } |
Deployment parameters |
params.priceFeed? |
`0x${string}` |
- |
params.salt? |
bigint |
- |
params.stakeAmount? |
bigint |
- |
params.version? |
string |
- |
options? |
TransactionOptions |
Transaction options |
Promise<{ deployHash: `0x${string}`; paymasterAddress: `0x${string}`; registerHash: `0x${string}`; }>
Object containing new paymaster address and transaction hashes
depositCollateral(
amount,options?):Promise<`0x${string}`>
Defined in: operator/src/PaymasterOperatorClient.ts:283
Deposit collateral (aPNTs/GToken) to SuperPaymaster. This is a helper method used by registerAsSuperPaymasterOperator.
| Parameter | Type |
|---|---|
amount |
bigint |
options? |
TransactionOptions |
Promise<`0x${string}`>
getAddress():
`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:16
Get the account address of the connected wallet
`0x${string}`
getOperatorDetails(
operator?):Promise<any>
Defined in: operator/src/PaymasterOperatorClient.ts:372
| Parameter | Type |
|---|---|
operator? |
`0x${string}` |
Promise<any>
getStartPublicClient():
PublicClient|WalletClient<Transport,Chain|undefined,Account|undefined>
Defined in: core/dist/clients/BaseClient.d.ts:20
Helper to ensure public client exists or fallback to wallet client (if it supports read)
PublicClient | WalletClient<Transport, Chain | undefined, Account | undefined>
BaseClient.getStartPublicClient
getTokenPrice(
token):Promise<bigint>
Defined in: operator/src/PaymasterOperatorClient.ts:422
| Parameter | Type |
|---|---|
token |
`0x${string}` |
Promise<bigint>
initiateExit(
options?):Promise<`0x${string}`>
Defined in: operator/src/PaymasterOperatorClient.ts:382
| Parameter | Type |
|---|---|
options? |
TransactionOptions |
Promise<`0x${string}`>
isOperator(
operator):Promise<boolean>
Defined in: operator/src/PaymasterOperatorClient.ts:362
| Parameter | Type |
|---|---|
operator |
`0x${string}` |
Promise<boolean>
registerAsSuperPaymasterOperator(
params?,options?):Promise<`0x${string}`>
Defined in: operator/src/PaymasterOperatorClient.ts:50
Register as SuperPaymaster Operator (one-stop API). This method handles all necessary steps:
- Checks prerequisites (must have ROLE_COMMUNITY)
- Checks and approves GToken to GTokenStaking
- Registers ROLE_PAYMASTER_SUPER
- Optionally deposits collateral to SuperPaymaster
| Parameter | Type | Description |
|---|---|---|
params? |
{ depositAmount?: bigint; stakeAmount?: bigint; } |
Registration parameters |
params.depositAmount? |
bigint |
- |
params.stakeAmount? |
bigint |
- |
options? |
TransactionOptions |
Transaction options |
Promise<`0x${string}`>
Transaction hash of role registration
protectedrequireEntryPoint():`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:25
`0x${string}`
protectedrequireGToken():`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:22
`0x${string}`
protectedrequireGTokenStaking():`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:23
`0x${string}`
BaseClient.requireGTokenStaking
protectedrequirePaymasterFactory():`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:24
`0x${string}`
BaseClient.requirePaymasterFactory
protectedrequireRegistry():`0x${string}`
Defined in: core/dist/clients/BaseClient.d.ts:21
`0x${string}`
setupPaymasterDeposit(
params,options?):Promise<`0x${string}`>
Defined in: operator/src/PaymasterOperatorClient.ts:431
| Parameter | Type |
|---|---|
params |
{ amount: bigint; paymaster: `0x${string}`; token: `0x${string}`; user: `0x${string}`; } |
params.amount |
bigint |
params.paymaster? |
`0x${string}` |
params.token? |
`0x${string}` |
params.user? |
`0x${string}` |
options? |
TransactionOptions |
Promise<`0x${string}`>
withdrawCollateral(
to,amount,options?):Promise<`0x${string}`>
Defined in: operator/src/PaymasterOperatorClient.ts:349
| Parameter | Type |
|---|---|
to |
`0x${string}` |
amount |
bigint |
options? |
TransactionOptions |
Promise<`0x${string}`>
withdrawStake(
to,options?):Promise<`0x${string}`>
Defined in: operator/src/PaymasterOperatorClient.ts:393
| Parameter | Type |
|---|---|
to |
`0x${string}` |
options? |
TransactionOptions |
Promise<`0x${string}`>