Skip to content

Commit

Permalink
improve explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 committed Nov 8, 2023
1 parent caf13ec commit 9b0d30b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/contracts/overview/ExecuteRelayCall.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_position: 5

# Execute Relay Call

## Validity timestamps
## Validity timestamps

:::info

Expand All @@ -16,7 +16,7 @@ It is possible to make signatures for relay executions valid for specific time p

Below are examples of constructing different **validity timestamps**:

### Example 1: only from a specific date / time.
### Example 1: from a specific date / time

Valid only from the 1st June 2024 (midnight).

Expand All @@ -30,7 +30,7 @@ Timestamp for _1st June 2024_ = `1717200000` (decimal) = `0x665A6480` (hex)
valid until indefinitely
```

### Example 2: set an expiry date
### Example 2: set an expiry date

Valid until 31st January 2025, 5pm CET.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ Encode the ABI of the transaction you want to be executed. In this case, a LYX t

:::tip

For more information about _validity timestamps_ check [**How to sign relay transactions?**](../../../standards/universal-profile/lsp6-key-manager.md#how-to-sign-relay-transactions)
The `validityTimestamp` can take different forms. For more information about _validity timestamps_, see the following pages:

- section [**Execute Relay Calls > Validity Timestamps**](../../contracts/overview/ExecuteRelayCall.md#validity-timestamp) in our **Contracts** docs.
- [**How to sign relay transactions?**](../../../standards/universal-profile/lsp6-key-manager.md#how-to-sign-relay-transactions)

:::

Expand Down Expand Up @@ -261,7 +264,8 @@ let encodedMessage = web3.utils.encodePacked(
{ value: LSP25_VERSION, type: 'uint256' }, // `0x0000000000000000000000000000000000000000000000000000000000000019`
// e.g: `4201` for LUKSO Testnet
{ value: chainId, type: 'uint256' }, // `0x0000000000000000000000000000000000000000000000000000000000001069`
// e.g: nonce nb 5
// e.g: nonce number 5 of the signer key X
// (the private key associated with the address of the controller that want to execute the payload)
{ value: nonce, type: 'uint256' }, // `0x0000000000000000000000000000000000000000000000000000000000000005`
// e.g: valid until 1st January 2025 at midnight (GMT).
// Timestamp = 1735689600
Expand Down Expand Up @@ -297,7 +301,8 @@ let encodedMessage = ethers.utils.solidityPack(
LSP25_VERSION, // `0x0000000000000000000000000000000000000000000000000000000000000019`
// e.g: `4201` for LUKSO Testnet
chainId, // `0x0000000000000000000000000000000000000000000000000000000000001069`
// e.g: nonce nb 5
// e.g: nonce number 5 of the signer key X
// (the private key associated with the address of the controller that want to execute the payload)
nonce, // `0x0000000000000000000000000000000000000000000000000000000000000005`
// e.g: valid until 1st January 2025 at midnight (GMT).
// Timestamp = 1735689600
Expand Down

0 comments on commit 9b0d30b

Please sign in to comment.