Interface UpdatePolicyOptions interface UpdatePolicyOptions { id : string ; idempotencyKey ?: string ; policy : { description ?: string ; rules : (
| { action : "reject" | "accept" ; criteria : (
| { ethValue : string ; operator : ">" | ">=" | "<" | "<=" | "==" ; type : "ethValue" ; } | { addresses : ` 0x ${ string } ` [] ; operator : "in" | "not in" ; type : "evmAddress" ; } | { abi : | "erc20" | "erc721" | "erc1155" | readonly (
| { inputs : ...
; name : ...
; type : ...
} | { anonymous ?: ...
; inputs : ...
; name : ...
; type : ...
} | (
{ payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; })
)
)
[] ; conditions : { function : string ; params ?: (...)
[] } [] ; type : "evmData" ; } )
[] ; operation : "signEvmTransaction" ; } | { action : "reject" | "accept" ; operation : "signEvmHash" } | { action : "reject" | "accept" ; criteria : { match : string ; type : "evmMessage" } [] ; operation : "signEvmMessage" ; } | { action : "reject" | "accept" ; criteria : (
| { ethValue : string ; operator : ">" | ">=" | "<" | "<=" | "==" ; type : "ethValue" ; } | { addresses : ` 0x ${ string } ` [] ; operator : "in" | "not in" ; type : "evmAddress" ; } | { networks : (
"base-sepolia" | "base" )
[] ; operator : "in" | "not in" ; type : "evmNetwork" ; } | { abi : | "erc20" | "erc721" | "erc1155" | readonly (
| { inputs : ...
; name : ...
; type : ...
} | { anonymous ?: ...
; inputs : ...
; name : ...
; type : ...
} | (
{ payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; })
)
)
[] ; conditions : { function : string ; params ?: (...)
[] } [] ; type : "evmData" ; } )
[] ; operation : "sendEvmTransaction" ; } | { action : "reject" | "accept" ; criteria : { addresses : string [] ; operator : "in" | "not in" ; type : "solAddress" ; } [] ; operation : "signSolTransaction" ; } )
[] ; } ; } PropertiesOptional
idempotency Key idempotencyKey ?: string
policy policy : { description ?: string ; rules : ( | { action : "reject" | "accept" ; criteria : ( | { ethValue : string ; operator : ">" | ">=" | "<" | "<=" | "==" ; type : "ethValue" ; } | { addresses : ` 0x ${ string } ` [] ; operator : "in" | "not in" ; type : "evmAddress" ; } | { abi : | "erc20" | "erc721" | "erc1155" | readonly ( | { inputs : ...; name : ...; type : ... } | { anonymous ?: ...; inputs : ...; name : ...; type : ... } | ( { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }) ) )[] ; conditions : { function : string ; params ?: (...)[] } [] ; type : "evmData" ; } )[] ; operation : "signEvmTransaction" ; } | { action : "reject" | "accept" ; operation : "signEvmHash" } | { action : "reject" | "accept" ; criteria : { match : string ; type : "evmMessage" } [] ; operation : "signEvmMessage" ; } | { action : "reject" | "accept" ; criteria : ( | { ethValue : string ; operator : ">" | ">=" | "<" | "<=" | "==" ; type : "ethValue" ; } | { addresses : ` 0x ${ string } ` [] ; operator : "in" | "not in" ; type : "evmAddress" ; } | { networks : ("base-sepolia" | "base" )[] ; operator : "in" | "not in" ; type : "evmNetwork" ; } | { abi : | "erc20" | "erc721" | "erc1155" | readonly ( | { inputs : ...; name : ...; type : ... } | { anonymous ?: ...; inputs : ...; name : ...; type : ... } | ( { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }) ) )[] ; conditions : { function : string ; params ?: (...)[] } [] ; type : "evmData" ; } )[] ; operation : "sendEvmTransaction" ; } | { action : "reject" | "accept" ; criteria : { addresses : string [] ; operator : "in" | "not in" ; type : "solAddress" ; } [] ; operation : "signSolTransaction" ; } )[] ; }
Type declaration Optional
description ?: string rules : ( | { action : "reject" | "accept" ; criteria : ( | { ethValue : string ; operator : ">" | ">=" | "<" | "<=" | "==" ; type : "ethValue" ; } | { addresses : ` 0x ${ string } ` [] ; operator : "in" | "not in" ; type : "evmAddress" ; } | { abi : | "erc20" | "erc721" | "erc1155" | readonly ( | { inputs : ...; name : ...; type : ... } | { anonymous ?: ...; inputs : ...; name : ...; type : ... } | ( { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }) ) )[] ; conditions : { function : string ; params ?: (...)[] } [] ; type : "evmData" ; } )[] ; operation : "signEvmTransaction" ; } | { action : "reject" | "accept" ; operation : "signEvmHash" } | { action : "reject" | "accept" ; criteria : { match : string ; type : "evmMessage" } [] ; operation : "signEvmMessage" ; } | { action : "reject" | "accept" ; criteria : ( | { ethValue : string ; operator : ">" | ">=" | "<" | "<=" | "==" ; type : "ethValue" ; } | { addresses : ` 0x ${ string } ` [] ; operator : "in" | "not in" ; type : "evmAddress" ; } | { networks : ("base-sepolia" | "base" )[] ; operator : "in" | "not in" ; type : "evmNetwork" ; } | { abi : | "erc20" | "erc721" | "erc1155" | readonly ( | { inputs : ...; name : ...; type : ... } | { anonymous ?: ...; inputs : ...; name : ...; type : ... } | ( { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }) ) )[] ; conditions : { function : string ; params ?: (...)[] } [] ; type : "evmData" ; } )[] ; operation : "sendEvmTransaction" ; } | { action : "reject" | "accept" ; criteria : { addresses : string [] ; operator : "in" | "not in" ; type : "solAddress" ; } [] ; operation : "signSolTransaction" ; } )[]
Options for updating a Policy.