Skip to content

Commit d671ba5

Browse files
committed
docs: update application references and improve clarity in documentation
- Replaced hardcoded application addresses with dynamic placeholders in the Oracle and iApp guides for better maintainability. - Updated authorization app references to use dynamic variables in Web3Mail and Web3Telegram documentation. - Enhanced clarity in the sendEmail and sendTelegram methods by improving the description of authorization requirements.
1 parent 3286e45 commit d671ba5

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

src/get-started/protocol/oracle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ dApp, and the parameters if applicable. The Oracle result writes in the
131131

132132
```bash
133133
$ cat ${IEXEC_OUT}/computed.json
134-
{ 'callback-data': '0x48656c6c6f2c20776f726c6421'}
134+
{ 'callback-data': '0x456def...'}
135135
```
136136
137137
When the computation ends the worker will send both this `callback-data`

src/guides/build-iapp/advanced/create-your-first-tdx-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ declaration
218218
await dataProtector.core.processProtectedData({
219219
protectedData: protectedData.address,
220220
workerpool: 'tdx-labs.pools.iexec.eth',
221-
app: '0x1919ceb0c6e60f3B497936308B58F9a6aDf071eC',
221+
app: '0x456def...',
222222
});
223223
```
224224

src/references/web3mail/methods/sendEmail.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ email must explicitly authorize you to send them email communications and
1515
permission must be granted for the `Web3Mail` tool to use the `protectedData`
1616
entity containing their email address. This is best done by granting
1717
authorization to the Web3Mail app whitelist
18-
`0x781482C39CcE25546583EaC4957Fb7Bf04C277D2` as `authorizedApp`. Refer to the
18+
`{{web3MailAppWhitelist}}` as `authorizedApp`. Refer to the
1919
[Data Protector `grantAccess`](/references/dataProtector/dataProtectorCore/grantAccess)
2020
documentation for more details.
2121

@@ -399,4 +399,5 @@ const selectedChain = computed(() => userStore.getCurrentChainId());
399399
const chainData = computed(() => getChainById(selectedChain.value));
400400
const explorerUrl = computed(() => chainData.value.iexecExplorerUrl);
401401
const workerpoolAddress = computed(() => chainData.value.workerpoolAddress);
402+
const web3MailAppWhitelist = computed(() => chainData.value.web3MailAppWhitelist);
402403
</script>

src/references/web3telegram/methods/fetchUserContacts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const web3Provider = getWeb3Provider('PRIVATE_KEY');
2121
const web3telegram = new IExecWeb3telegram(web3Provider);
2222
// ---cut---
2323
const contactsList = await web3telegram.fetchUserContacts({
24-
userAddress: '0xF048eF3d7E3B33A465E0599E641BB29421f7Df92',
24+
userAddress: '0x789cba...',
2525
});
2626
```
2727

@@ -44,7 +44,7 @@ const web3Provider = getWeb3Provider('PRIVATE_KEY');
4444
const web3telegram = new IExecWeb3telegram(web3Provider);
4545
// ---cut---
4646
const contactsList = await web3telegram.fetchUserContacts({
47-
userAddress: '0xF048eF3d7E3B33A465E0599E641BB29421f7Df92', // [!code focus]
47+
userAddress: '0x789cba...', // [!code focus]
4848
});
4949
```
5050

src/references/web3telegram/methods/sendTelegram.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ message must explicitly authorize you to send them telegram communications and
1515
permission must be granted for the `Web3Telegram` tool to use the
1616
`protectedData` entity containing their chat ID. This is best done by granting
1717
authorization to the Web3Telegram app whitelist
18-
`0x192C6f5AccE52c81Fcc2670f10611a3665AAA98F` as `authorizedApp`. Refer to the
18+
`{{web3TelegramAppWhitelist}}` as `authorizedApp`. Refer to the
1919
[Data Protector `grantAccess`](/references/dataProtector/dataProtectorCore/grantAccess)
2020
documentation for more details.
2121

@@ -298,4 +298,5 @@ const selectedChain = computed(() => userStore.getCurrentChainId());
298298
const chainData = computed(() => getChainById(selectedChain.value));
299299
const explorerUrl = computed(() => chainData.value.iexecExplorerUrl);
300300
const workerpoolAddress = computed(() => chainData.value.workerpoolAddress);
301+
const web3TelegramAppWhitelist = computed(() => chainData.value.web3TelegramAppWhitelist);
301302
</script>

0 commit comments

Comments
 (0)