Skip to main content

Module delegates

Module delegates 

Source

Re-exportsยง

use super::rpc_provider; ๐Ÿ”’
use super::service::SafeDelegatesResponse; ๐Ÿ”’
use super::service::SafeServiceOpts; ๐Ÿ”’
use super::signing::sign_delegate; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_signer::Signer; ๐Ÿ”’
use clap::Args; ๐Ÿ”’
use eyre::Context; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use eyre::ensure; ๐Ÿ”’
use foundry_cli::json::print_json_object; ๐Ÿ”’
use foundry_cli::json::print_scalar; ๐Ÿ”’
use foundry_cli::opts::RpcOpts; ๐Ÿ”’
use foundry_wallets::WalletOpts; ๐Ÿ”’
use reqwest::Method; ๐Ÿ”’
use serde_json::Value; ๐Ÿ”’
use serde_json::json; ๐Ÿ”’
use std::collections::HashSet; ๐Ÿ”’

Structsยง

AddDelegateArgs
CLI arguments for cast safe add-delegate.
ListDelegatesArgs
CLI arguments for cast safe list-delegates.
RemoveDelegateArgs
CLI arguments for cast safe remove-delegate.

Functionsยง

submit_delegate ๐Ÿ”’
Signs the delegate TOTP message with the wallet and submits body (extended with the Safe, delegator and signature) to the Transaction Service, printing the delegate on success.