Skip to content

Commit

Permalink
Merge pull request #145 from 1inch/feature/bysig-js-helpers
Browse files Browse the repository at this point in the history
[SC-1140] Export bySig js helpers to package
  • Loading branch information
ZumZoom authored Jun 6, 2024
2 parents 176d078 + f0c2566 commit 971276f
Show file tree
Hide file tree
Showing 12 changed files with 355 additions and 156 deletions.
2 changes: 1 addition & 1 deletion docs/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This repository is a comprehensive toolkit designed to streamline and optimize t

- **[Configuration and Management](https://github.com/1inch/solidity-utils/blob/master/docs/js/modules/hardhat_setup.md)**: Tools for setting up Hardhat network configurations and managing project settings efficiently.

- **[Solidity Contracts and Libraries](https://github.com/1inch/solidity-utils/blob/master/docs/contracts/SUMMARY.md)**: Frequently used smart contracts, libraries, and interfaces aimed at providing reusable code for common use cases, alongside optimizations to improve contract efficiency.
- **[Solidity Contracts and Libraries](https://github.com/1inch/solidity-utils/blob/master/docs/SUMMARY.md)**: Frequently used smart contracts, libraries, and interfaces aimed at providing reusable code for common use cases, alongside optimizations to improve contract efficiency.

## Contributing

Expand Down
14 changes: 7 additions & 7 deletions docs/js/classes/hardhat_setup.Networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ See the [README](https://github.com/1inch/solidity-utils/tree/master/hardhat-set

#### Defined in

[hardhat-setup/networks.ts:75](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L75)
[hardhat-setup/networks.ts:75](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L75)

## Properties

Expand All @@ -57,7 +57,7 @@ See the [README](https://github.com/1inch/solidity-utils/tree/master/hardhat-set

#### Defined in

[hardhat-setup/networks.ts:73](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L73)
[hardhat-setup/networks.ts:73](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L73)

___

Expand All @@ -67,7 +67,7 @@ ___

#### Defined in

[hardhat-setup/networks.ts:72](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L72)
[hardhat-setup/networks.ts:72](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L72)

## Methods

Expand All @@ -93,7 +93,7 @@ ___

#### Defined in

[hardhat-setup/networks.ts:96](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L96)
[hardhat-setup/networks.ts:96](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L96)

___

Expand All @@ -112,7 +112,7 @@ ___

#### Defined in

[hardhat-setup/networks.ts:139](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L139)
[hardhat-setup/networks.ts:139](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L139)

___

Expand All @@ -139,7 +139,7 @@ ___

#### Defined in

[hardhat-setup/networks.ts:113](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L113)
[hardhat-setup/networks.ts:113](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L113)

___

Expand All @@ -165,4 +165,4 @@ ___

#### Defined in

[hardhat-setup/networks.ts:120](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L120)
[hardhat-setup/networks.ts:120](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L120)
45 changes: 45 additions & 0 deletions docs/js/enums/src.NonceType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[@1inch/solidity-utils](../README.md) / [Modules](../modules.md) / [src](../modules/src.md) / NonceType

# Enumeration: NonceType

[src](../modules/src.md).NonceType

Enum defining types of nonces.

## Table of contents

### Enumeration Members

- [Account](src.NonceType.md#account)
- [Selector](src.NonceType.md#selector)
- [Unique](src.NonceType.md#unique)

## Enumeration Members

### Account

**Account** = ``0``

#### Defined in

[src/bySig.ts:10](https://github.com/1inch/solidity-utils/blob/dc69769/src/bySig.ts#L10)

___

### Selector

**Selector** = ``1``

#### Defined in

[src/bySig.ts:11](https://github.com/1inch/solidity-utils/blob/dc69769/src/bySig.ts#L11)

___

### Unique

**Unique** = ``2``

#### Defined in

[src/bySig.ts:12](https://github.com/1inch/solidity-utils/blob/dc69769/src/bySig.ts#L12)
24 changes: 12 additions & 12 deletions docs/js/interfaces/src.DeployContractOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Number of confirmations to wait based on network. Ussually it's need for waiting

#### Defined in

[src/utils.ts:29](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L29)
[src/utils.ts:29](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L29)

___

Expand All @@ -91,7 +91,7 @@ ___

#### Defined in

[src/utils.ts:27](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L27)
[src/utils.ts:27](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L27)

___

Expand All @@ -101,7 +101,7 @@ ___

#### Defined in

[src/utils.ts:31](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L31)
[src/utils.ts:31](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L31)

___

Expand All @@ -111,7 +111,7 @@ ___

#### Defined in

[src/utils.ts:32](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L32)
[src/utils.ts:32](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L32)

___

Expand All @@ -127,7 +127,7 @@ ___

#### Defined in

[src/utils.ts:30](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L30)
[src/utils.ts:30](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L30)

___

Expand All @@ -137,7 +137,7 @@ ___

#### Defined in

[src/utils.ts:35](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L35)
[src/utils.ts:35](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L35)

___

Expand All @@ -147,7 +147,7 @@ ___

#### Defined in

[src/utils.ts:38](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L38)
[src/utils.ts:38](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L38)

___

Expand All @@ -157,7 +157,7 @@ ___

#### Defined in

[src/utils.ts:37](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L37)
[src/utils.ts:37](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L37)

___

Expand All @@ -167,7 +167,7 @@ ___

#### Defined in

[src/utils.ts:36](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L36)
[src/utils.ts:36](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L36)

___

Expand All @@ -177,7 +177,7 @@ ___

#### Defined in

[src/utils.ts:34](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L34)
[src/utils.ts:34](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L34)

___

Expand All @@ -187,7 +187,7 @@ ___

#### Defined in

[src/utils.ts:33](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L33)
[src/utils.ts:33](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L33)

___

Expand All @@ -197,4 +197,4 @@ ___

#### Defined in

[src/utils.ts:39](https://github.com/1inch/solidity-utils/blob/cdb7d95/src/utils.ts#L39)
[src/utils.ts:39](https://github.com/1inch/solidity-utils/blob/dc69769/src/utils.ts#L39)
32 changes: 32 additions & 0 deletions docs/js/interfaces/src.SignedCallStruct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[@1inch/solidity-utils](../README.md) / [Modules](../modules.md) / [src](../modules/src.md) / SignedCallStruct

# Interface: SignedCallStruct

[src](../modules/src.md).SignedCallStruct

## Table of contents

### Properties

- [data](src.SignedCallStruct.md#data)
- [traits](src.SignedCallStruct.md#traits)

## Properties

### data

**data**: `string`

#### Defined in

[src/bySig.ts:51](https://github.com/1inch/solidity-utils/blob/dc69769/src/bySig.ts#L51)

___

### traits

**traits**: `bigint`

#### Defined in

[src/bySig.ts:50](https://github.com/1inch/solidity-utils/blob/dc69769/src/bySig.ts#L50)
8 changes: 4 additions & 4 deletions docs/js/modules/hardhat_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Array of custom blockchain network configurations.

#### Defined in

[hardhat-setup/networks.ts:11](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L11)
[hardhat-setup/networks.ts:11](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L11)

___

Expand All @@ -65,7 +65,7 @@ A helper method to get the network name from the command line arguments.

#### Defined in

[hardhat-setup/networks.ts:21](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L21)
[hardhat-setup/networks.ts:21](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L21)

___

Expand Down Expand Up @@ -96,7 +96,7 @@ A helper method to parse RPC configuration strings. Checks that the string is in

#### Defined in

[hardhat-setup/networks.ts:32](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L32)
[hardhat-setup/networks.ts:32](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L32)

___

Expand All @@ -121,4 +121,4 @@ A helper method to reset the Hardhat network to the local network or to a fork.

#### Defined in

[hardhat-setup/networks.ts:46](https://github.com/1inch/solidity-utils/blob/cdb7d95/hardhat-setup/networks.ts#L46)
[hardhat-setup/networks.ts:46](https://github.com/1inch/solidity-utils/blob/dc69769/hardhat-setup/networks.ts#L46)
Loading

0 comments on commit 971276f

Please sign in to comment.