Skip to content

FundingPolicy.fromRpc

Converts an RPC policy authorization to its domain representation.

Imports

Named
import { FundingPolicy } from 'ox/tempo'

Examples

import { FundingPolicy } from 'ox/tempo'
 
FundingPolicy.fromRpc('0x7')

Definition

function fromRpc(
  value: Rpc,
): Authorization

Source: src/tempo/FundingPolicy.ts

Parameters

value

  • Type: Rpc

value.admins

  • Type: readonly abitype_Address[]

Accounts authorized to modify the policy.

value.maxSlippageBps

  • Type: number

Maximum aggregate slippage in basis points.

value.rules

  • Type: { maxSlippageBps: number; sources: Readonly; }

Committed funding permissions.

value.sources

  • Type: Readonly

Ordered source permissions for each output token.

Return Type

Authorization