Skip to content

Commit

Permalink
0.69.0
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKoval committed May 15, 2023
1 parent 0585d52 commit 9024b7c
Show file tree
Hide file tree
Showing 33 changed files with 459 additions and 291 deletions.
12 changes: 3 additions & 9 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,6 @@ Example:
```TVMSolidity
pragma ton-solidity >= 0.35.0;
pragma AbiHeader expire;
pragma AbiHeader time;
pragma AbiHeader pubkey;
import "https://github.com/tonlabs/debots/raw/9c6ca72b648fa51962224ec0d7ce91df2a0068c1/Debot.sol";
Expand Down Expand Up @@ -2323,24 +2322,19 @@ Turns off binary operation result overflow check.
#### pragma AbiHeader

```TVMSolidity
pragma AbiHeader time;
pragma AbiHeader notime;
pragma AbiHeader pubkey;
pragma AbiHeader expire;
```

Defines headers that are used in external messages:

* `notime` - disables `time` abi header, which is enabled by default. Abi header `time``uint64` local time when message was created, used for replay protection
* `pubkey` (`uint256`) - optional public key that the message can be signed with.
* `time` (`uint64`) - local time when message was created. Used for replay protection.
* `expire` (`uint32`) - time when the message should be meant as expired.
* `expire` (`uint32`) - time when the message should be meant as expired.

**Note:**

- `time` presents in external messages if `pragma AbiHeader time` is used OR there is no
`afterSignatureCheck` function defined in the contract.
- `time` doesn't present in external messages if `pragma AbiHeader time` isn't used AND there
is `afterSignatureCheck` function defined in the contract.

Defined headers are listed in `*.abi.json` file in `header` section.

See also: [Contract execution](#contract-execution), [afterSignatureCheck](#aftersignaturecheck),
Expand Down
Loading

0 comments on commit 9024b7c

Please sign in to comment.