Skip to content

Commit

Permalink
Merge pull request #131 from tonlabs/0.69.0
Browse files Browse the repository at this point in the history
0.69.0
  • Loading branch information
IgorKoval authored May 19, 2023
2 parents 0585d52 + 9024b7c commit 6953ed5
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 6953ed5

Please sign in to comment.