Skip to content

Commit c17e7b5

Browse files
Merge pull request #66 from chronicleprotocol/updateRead
Document selfKiss() overload
2 parents 212abfe + 02b2cc7 commit c17e7b5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/Developers/Guides/whitelistAddress.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ On Mainnet, to get access to production Oracles, please open a ticket on [Disco
2121
```bash
2222
$ cast send 0x0dcc19657007713483a5ca76e6a7bbe5f56ea37d "selfKiss(address)()" <oracle address you want you use> --rpc-url $rpc
2323
```
24+
This will whitelist the address that sends the request.
25+
Alternatively, when you want to whitelist a different address than the one sending the request, you can use:
2426

25-
Where `0x0dcc19657007713483a5ca76e6a7bbe5f56ea37d` is the SelfKisser contract address.
27+
```bash
28+
$ cast send 0x0dcc19657007713483a5ca76e6a7bbe5f56ea37d "selfKiss(address, address)()" <oracle address you want you use> <contract address to be whitelisted> --rpc-url $rpc
29+
```
30+
31+
`0x0dcc19657007713483a5ca76e6a7bbe5f56ea37d` is the SelfKisser contract address.
2632

2733
If you are looking for an Oracle address to quickly test out, feel free to use: Chronicle_ETH_USD_3 `0xdd6D76262Fd7BdDe428dcfCd94386EbAe0151603`.
2834

@@ -64,6 +70,11 @@ If you do not want to use the CLI, you can whitelist yourself directly on Ethers
6470
</div>
6571

6672
4. Scroll down to the `selfKiss()` function and enter the Oracle address you wish to interact with in the oracle (address) field. Then, click `Write`.
73+
You will see that there are two `selfKiss()` functions (overloads). One of them takes two parameters (oracle (address), who (address)), and the other only one parameter (oracle (address)).
74+
75+
- When you want to whitelist your own address (msg.sender), you can use `selfKiss(address oracle)`.
76+
- In contrast, when you need to specify a different address to perform the whitelist on, you should use `selfKiss(address oracle, address who)`.
77+
6778

6879
:::tip
6980

0 commit comments

Comments
 (0)