Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go: Add documentation related to SmartAccount #14

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions content/sdk/10.js/00.ethers/v6/09.smart-account-utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ Populates missing properties meant for signing using an ECDSA private key:

#### Inputs

| Parameter | Type | Description |
| ---------- | ------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
| `tx` | `BytesLike` | The transaction that needs to be populated. |
| `secret` | `string` or [`ethers.SigningKey`](https://docs.ethers.org/v6/api/crypto/#SigningKey) | The ECDSA private key. |
| `provider` | [`Provider`](/sdk/js/ethers/v6/providers#provider) | The provider is used to fetch data from the network if it is required for signing. |
| Parameter | Type | Description |
| ---------- | ------------------------------------------------------------------------------------ |---------------------------------------------------|
| `tx` | `BytesLike` | The transaction that needs to be populated. |
| `secret` | `string` or [`ethers.SigningKey`](https://docs.ethers.org/v6/api/crypto/#SigningKey) | The ECDSA private key. |
| `provider` | [`Provider`](/sdk/js/ethers/v6/providers#provider) | The provider which fetches data from the network. |

```ts
const populateTransactionECDSA: TransactionBuilder = async (tx, secret: string | SigningKey, provider)
Expand Down Expand Up @@ -204,11 +204,11 @@ of the first ECDSA key is set as the `secret` argument.

#### Inputs

| Parameter | Type | Description |
| ---------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `tx` | `BytesLike` | The transaction that needs to be populated. |
| `secret` | `string[]` or [`ethers.SigningKey[]`](https://docs.ethers.org/v6/api/crypto/#SigningKey) | The list of the ECDSA private keys used for populating the transaction. |
| `provider` | [`Provider`](/sdk/js/ethers/v6/providers#provider) | The provider is used to fetch data from the network if it is required for signing. |
| Parameter | Type | Description |
| ---------- | ---------------------------------------------------------------------------------------- |-------------------------------------------------------------------------|
| `tx` | `BytesLike` | The transaction that needs to be populated. |
| `secret` | `string[]` or [`ethers.SigningKey[]`](https://docs.ethers.org/v6/api/crypto/#SigningKey) | The list of the ECDSA private keys used for populating the transaction. |
| `provider` | [`Provider`](/sdk/js/ethers/v6/providers#provider) | The provider which fetches data from the network. |

```ts
const populateTransactionMultisigECDSA: TransactionBuilder = async (tx, secret: string[] | SigningKey[], provider)
Expand Down
Loading
Loading