Skip to content

PP-668/update-devportal#2

Open
franciscotobar wants to merge 1 commit into
masterfrom
PP-668/update-devportal
Open

PP-668/update-devportal#2
franciscotobar wants to merge 1 commit into
masterfrom
PP-668/update-devportal

Conversation

@franciscotobar

@franciscotobar franciscotobar commented Feb 15, 2023

Copy link
Copy Markdown
Owner

What

  • Update rif-relay guides
  • Update rif-relay about

Why

  • Replace the old version of the libraries with the new one

Refs

  • (PP-668)[https://rsklabs.atlassian.net/browse/PP-668]

@franciscotobar franciscotobar changed the title refactor: first commit PP-668/update-devportal Feb 16, 2023
@franciscotobar franciscotobar force-pushed the PP-668/update-devportal branch from 9cfb67f to e185eba Compare February 16, 2023 21:26
@franciscotobar franciscotobar marked this pull request as ready for review February 16, 2023 21:26

@ironFe93 ironFe93 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall pretty good, left some suggestions

Comment thread guides/rif-relay/integrate.md Outdated
Comment thread guides/rif-relay/integrate.md Outdated
The `Relay Client` its a component from the RIF Relay Client library that helps to build relay request, search for a server and send the request via http protocol.

To simplify the integration process a SDK was developed, the SDK is a library that needs to be used from a dApp that will provide us a way to sign transactions.
To create a `Relay Client` we need to follow next steps:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To create a `Relay Client` we need to follow next steps:
To create a `Relay Client` we need to follow the next steps:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread guides/rif-relay/integrate.md Outdated

### Account Manager

The `Account Manager` manager its a singleton component from the RIF Relay Client library that helps to sign the relay transactions. This component can sign the transactions with an internal account that was previously added or using a wallet provider like [metamask](https://metamask.io/). The `Account Manager` will look first for internal account's and if none is found, will try to use the provider that was [previously setup](/guides/rif-relay/integrate/#relay-client).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The `Account Manager` manager its a singleton component from the RIF Relay Client library that helps to sign the relay transactions. This component can sign the transactions with an internal account that was previously added or using a wallet provider like [metamask](https://metamask.io/). The `Account Manager` will look first for internal account's and if none is found, will try to use the provider that was [previously setup](/guides/rif-relay/integrate/#relay-client).
The `Account Manager` manager is a singleton component from the RIF Relay Client library that helps to sign the relay transactions. This component can sign the transactions with an internal account that was previously added or using a wallet provider like [metamask](https://metamask.io/). The `Account Manager` will look first for internal accounts and if none is found, will try to use the provider that was [previously setup](/guides/rif-relay/integrate/#relay-client).

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread guides/rif-relay/integrate.md Outdated

The `Account Manager` accepts [Ethers V5 Wallets](https://docs.ethers.org/v5/api/signer/#Wallet) as internal accounts.

To interact with the `Account Manager` we need to the next steps:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To interact with the `Account Manager` we need to the next steps:
To interact with the `Account Manager` we need to follow the next steps:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread guides/rif-relay/integrate.md Outdated
* **RSK_CHAIN_ID**: The RSK node chain ID which is running (e.g. `33`).
* **RIF_RELAY_SERVER_URL**: The RIF Relay Server URL (e.g. `http://localhost:8090`).
* **RSK_NODE_ENDPOINT**: The RSK node endpoint which is running (e.g. `http://localhost:4444`).
* **INTERNAL_ACCOUNT_OBJECT**: Ethers V4 Wallet object.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 93 states that the Account Manager accepts V5 wallets.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread guides/rif-relay/integrate.md Outdated
* **SMART_WALLET**: the generated smart wallet from the deployment process.
* **TOKEN_ADDRESS**: the token contract address.
* **AMOUNT_OF_TOKENS**: string containing the amount of tokens in decimal unit.
* **EOA**: External Owned Account, the owner of the smart wallet.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* **EOA**: External Owned Account, the owner of the smart wallet.
* **EOA**: Externally Owned Account, the owner of the smart wallet.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@ironFe93 ironFe93 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still good, found some more suggestions.

Comment thread guides/rif-relay/integrate.md Outdated
}
```

Were each key from `request` is:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Were each key from `request` is:
Where each key from `request` is:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread guides/rif-relay/integrate.md Outdated
}
}
```
Were each key from `request` is:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Were each key from `request` is:
Where each key from `request` is:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread guides/rif-relay/integrate.md Outdated
* **validUntilTime**: Transaction expiration time in seconds.


Were each key from `relayData` is:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Were each key from `relayData` is:
Where each key from `relayData` is:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread guides/rif-relay/smart-wallets.md Outdated
* **SMART_WALLET_INDEX**: the index that we would like to use to generate the smart wallet.
* **TOKEN_ADDRESS**: the token contract address.
* **AMOUNT_OF_TOKENS**: string containing the amount of tokens in decimal unit.
* **EOA**: External Owned Account, the owner of the smart wallet.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* **EOA**: External Owned Account, the owner of the smart wallet.
* **EOA**: Externally Owned Account, the owner of the smart wallet.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread rif/relay/architecture.md Outdated

### Native Holder Smart Wallet

The `native holder smart wallet` it's a `smart wallet` that was designed to have interactions outside the RIF Relay system. This means that can hold native currency as it's name describe it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The `native holder smart wallet` it's a `smart wallet` that was designed to have interactions outside the RIF Relay system. This means that can hold native currency as it's name describe it.
The `native holder smart wallet` is a `smart wallet` that was designed to have interactions outside the RIF Relay system. This means that it can hold native currency as it's name describes.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread rif/relay/architecture.md Outdated

The `native holder smart wallet` it's a `smart wallet` that was designed to have interactions outside the RIF Relay system. This means that can hold native currency as it's name describe it.

The behavior of the `native holder smart wallet` its the same as the `smart wallet` with the difference that the native currency will not be transferred back to the owner after each transaction and can dispose the usage of the native currency.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The behavior of the `native holder smart wallet` its the same as the `smart wallet` with the difference that the native currency will not be transferred back to the owner after each transaction and can dispose the usage of the native currency.
The behavior of the `native holder smart wallet` is the same as the `smart wallet` with the difference that the native currency will not be transferred back to the owner after each transaction and can dispose the usage of the native currency.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread rif/relay/architecture.md Outdated

### Custom Smart Wallet

The `custom smart wallet` it's a `smart wallet` that was designed to execute custom logic after each transaction. The custom logic it's created at the moment of the contract deployment and can be executed on each transaction.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The `custom smart wallet` it's a `smart wallet` that was designed to execute custom logic after each transaction. The custom logic it's created at the moment of the contract deployment and can be executed on each transaction.
The `custom smart wallet` is a `smart wallet` that was designed to execute custom logic after each transaction. The custom logic is created at the moment of the contract deployment and can be executed on each transaction.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread rif/relay/architecture.md Outdated

### Relay Client
This is a typescript library to interact with the RIF Relay system. It provides APIs to find a relay, and to send transactions through it. It also gives access to expose methods from Relay Common to interact with the blockchain.
This is a typescript library to interact with the RIF Relay system. It provides APIs to find a relay, and to send transactions through it. It also expose methods to interact with the blockchain.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is a typescript library to interact with the RIF Relay system. It provides APIs to find a relay, and to send transactions through it. It also expose methods to interact with the blockchain.
This is a typescript library to interact with the RIF Relay system. It provides APIs to find a relay, and to send transactions through it. It also exposes methods to interact with the blockchain.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@franciscotobar franciscotobar force-pushed the PP-668/update-devportal branch from 5c0b831 to b9199d6 Compare February 17, 2023 17:21

@antomor antomor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It required some changes that were applied here

@antomor

antomor commented Feb 21, 2023

Copy link
Copy Markdown

This PR could be closed in favour of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants