Update Gnosis Safe tx format
This commit is contained in:
parent
02d1804ba6
commit
b768a9ecfc
|
@ -34,17 +34,30 @@ There is currently no endpoint to pull the transactions from.
|
||||||
|
|
||||||
### Tx
|
### Tx
|
||||||
```
|
```
|
||||||
function executeSubscription(
|
/// @dev Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction.
|
||||||
address from, //the subscriber
|
/// Note: The fees are always transfered, even if the user transaction fails.
|
||||||
address to, //the publisher
|
/// @param to Destination address of Safe transaction.
|
||||||
address tokenAddress, //the token address paid to the publisher
|
/// @param value Ether value of Safe transaction.
|
||||||
uint256 tokenAmount, //the token amount paid to the publisher
|
/// @param data Data payload of Safe transaction.
|
||||||
uint256 periodSeconds, //the period in seconds between payments
|
/// @param operation Operation type of Safe transaction.
|
||||||
uint256 gasPrice, //the amount of tokens or eth to pay relayer (0 for free)
|
/// @param safeTxGas Gas that should be used for the Safe transaction.
|
||||||
bytes signature //proof the subscriber signed the meta trasaction
|
/// @param dataGas Gas costs for data used to trigger the safe transaction and to pay the payment transfer
|
||||||
|
/// @param gasPrice Gas price that should be used for the payment calculation.
|
||||||
|
/// @param gasToken Token address (or 0 if ETH) that is used for the payment.
|
||||||
|
/// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).
|
||||||
|
/// @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})
|
||||||
|
function execTransaction(
|
||||||
|
address to,
|
||||||
|
uint256 value,
|
||||||
|
bytes data,
|
||||||
|
Enum.Operation operation,
|
||||||
|
uint256 safeTxGas,
|
||||||
|
uint256 dataGas,
|
||||||
|
uint256 gasPrice,
|
||||||
|
address gasToken,
|
||||||
|
address refundReceiver,
|
||||||
|
bytes signatures
|
||||||
)
|
)
|
||||||
public
|
|
||||||
returns (bool success)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Please check https://github.com/gnosis/safe-contracts for further details and context.
|
Please check https://github.com/gnosis/safe-contracts for further details and context.
|
Loading…
Reference in New Issue