First, install grpcurl.
To get the latest block:
grpcurl -d '{}' zec.rocks:443 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLatestTreeStateTo get the latest block time in UTC:
First, install grpcurl.
To get the latest block:
grpcurl -d '{}' zec.rocks:443 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLatestTreeStateTo get the latest block time in UTC:
The target contract is ComposableCoW: 0xfdaFc9d1902f4e0b84f65F49f244b32b31013b74.
To invoke a CoW TWAP, we call the function createWithContext:
/**
* Authorise a single conditional order and store a value from on-chain in the cabinet
* @param params The parameters of the conditional orderProposal #65: Update ETH RPC List and ENS
Reason: The current ETH RPC List on the UI no longer support historical queries, necessitating an update to the default ETH RPC list.
UI Update Details:
ETH RPCs: blockscoutRPC,blastRPC,xrpc, gasHawkRPC, lavaRPC,torndaoRPC,sentioRPC,tornadoRPC0xe9Fa0c8B5d7F79DeC36D3F448B1Ac4cEdedE4e69
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| RED=$'\033[1;31m' | |
| YELLOW=$'\033[1;33m' | |
| RESET=$'\033[0m' | |
| for arg in "$@"; do | |
| # Reject any non-ASCII byte. | |
| if LC_ALL=C printf "%s" "$arg" | grep -q "[^ -~]"; then |
| mnemonic==0.21 | |
| eth_account==0.13.7 |
1.4.1 Deployment via CreateXSpecial thanks go to Richard Meissner for feedback and review.
Important
This approach requires a deep understanding of how the Safe contracts and CreateX mechanisms work. The recommended way to deploy a Safe contract remains through the SafeProxyFactory contract.
We will deploy a 1-out-of-1 1.4.1 Safe contract via CreateX.
| # pragma version ~=0.4.2 | |
| # pragma nonreentrancy off | |
| """ | |
| @title Multi-Token Recovery Contract | |
| @custom:contract-name recoverooor | |
| @license GNU Affero General Public License v3.0 only | |
| @author pcaversaccio | |
| @notice These functions support (batch) recovery of both native assets | |
| and tokens across any standard (e.g., ERC-20, ERC-721, ERC-1155). | |
| When using EIP-7702 (https://eips.ethereum.org/EIPS/eip-7702), |
| #!/usr/bin/env bash | |
| ########################################## | |
| # Patch `safe_hashes.sh` Script API URLs # | |
| ########################################## | |
| # @license GNU Affero General Public License v3.0 only | |
| # @author pcaversaccio | |
| # This Bash script modifies the default `safe_hashes.sh` script by |
| # pragma version ~=0.4.1 | |
| """ | |
| @title Historical Block Hashes Oracle | |
| @custom:contract-name block_hash_oracle | |
| @license GNU Affero General Public License v3.0 only | |
| @author pcaversaccio | |
| @notice The contract function `block_hash` can be used to access the | |
| historical block hashes beyond the default 256-block limit. | |
| We use the EIP-2935 (https://eips.ethereum.org/EIPS/eip-2935) | |
| history contract, which maintains a ring buffer of the last |