Skip to content

Commit

Permalink
feat(go): add SmartAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion committed May 17, 2024
1 parent 59ed600 commit d88d14c
Show file tree
Hide file tree
Showing 4 changed files with 959 additions and 22 deletions.
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

0 comments on commit d88d14c

Please sign in to comment.