Skip to content

Commit

Permalink
Merge branch 'changeset-release/main' of https://github.com/nftchance…
Browse files Browse the repository at this point in the history
…/plug-core into changeset-release/main
  • Loading branch information
nftchance committed Aug 23, 2024
2 parents a350490 + 84228ec commit 5a6cbaa
Show file tree
Hide file tree
Showing 97 changed files with 7,945 additions and 12,972 deletions.
87 changes: 36 additions & 51 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,54 +1,39 @@
PlugBlockNumberFuseTest:testRevert_enforceFuse_AfterBlock_Early() (gas: 25378)
PlugBlockNumberFuseTest:test__codesize() (gas: 6741)
PlugBlockNumberFuseTest:test_enforceFuse_AfterBlock() (gas: 23060)
PlugBlockNumberFuseTest:test_enforceFuse_BeforeBlock() (gas: 23072)
PlugBlockNumberFuseTest:test_enforceFuse_BeforeBlock_Expired() (gas: 25399)
PlugClampFuseTest:test_EnforceFuse() (gas: 20402)
PlugClampFuseTest:test__codesize() (gas: 3985)
PlugFactoryTest:test_DeployDeterministic(uint256) (runs: 10000, μ: 164067, ~: 186855)
PlugFactoryTest:test_InitCodeHash() (gas: 7729)
PlugFactoryTest:test_RepeatedDeployDeterministic() (gas: 199954)
PlugFactoryTest:test_RepeatedDeployDeterministic(uint256) (runs: 10000, μ: 220471, ~: 220517)
PlugFactoryTest:test_RepeatedDeployDeterministic_NoSalt() (gas: 352556)
PlugFactoryTest:test__codesize() (gas: 20512)
PlugLimitedCallsFuseTest:testRevert_enforceFuse_Exceeded() (gas: 48286)
PlugLimitedCallsFuseTest:testRevert_enforceFuse_ZeroCalls() (gas: 44365)
PlugLimitedCallsFuseTest:test__codesize() (gas: 5278)
PlugLimitedCallsFuseTest:test_enforceFuse() (gas: 41729)
DeploymentTest:test_PlugDeployment() (gas: 782271)
DeploymentTest:test_PlugFactoryDeployment() (gas: 445110)
DeploymentTest:test_PlugSocketDeployment() (gas: 1863179)
DeploymentTest:test_PlugTreasuryDeployment() (gas: 1625799)
DeploymentTest:test__codesize() (gas: 47466)
DeploymentTest:test__codesize() (gas: 946)
PlugFactoryTest:testRevert_InvalidAdmin(uint256) (runs: 10000, μ: 14610, ~: 14610)
PlugFactoryTest:testRevert_InvalidImplementation(uint256) (runs: 10000, μ: 14562, ~: 14562)
PlugFactoryTest:test_DeployDeterministic(uint256) (runs: 10000, μ: 165919, ~: 165919)
PlugFactoryTest:test__codesize() (gas: 39173)
PlugFactoryTest:test_salt() (gas: 7960)
PlugMockSocketTest:test_Echo() (gas: 13227)
PlugMockSocketTest:test_EmptyEcho() (gas: 11977)
PlugMockSocketTest:test_MutedEcho(uint256) (runs: 10000, μ: 5591, ~: 5591)
PlugMockSocketTest:test__codesize() (gas: 3221)
PlugRevocationFuseTest:testRevert_enforceFuse_Revoked() (gas: 45207)
PlugRevocationFuseTest:test__codesize() (gas: 5064)
PlugRevocationFuseTest:test_enforceFuse_NotRevoked() (gas: 21456)
PlugTest:testRevert_PlugEmptyEcho_ExternalExecutor_CompensationFailure() (gas: 219705)
PlugTest:testRevert_PlugEmptyEcho_ExternalExecutor_Invalid() (gas: 159408)
PlugTest:testRevert_PlugEmptyEcho_SignerExecutor_InvalidRouter() (gas: 840076)
PlugTest:testRevert_PlugEmptyEcho_SignerExecutor_InvalidSigner() (gas: 164862)
PlugTest:test_PlugEmptyEcho_ExternalExecutor_Compensated() (gas: 223268)
PlugTest:test_PlugEmptyEcho_ExternalExecutor_NotCompensated() (gas: 218020)
PlugTest:test_PlugEmptyEcho_SignerExecutor() (gas: 194484)
PlugTest:test__codesize() (gas: 33159)
PlugTest:test_name() (gas: 7218)
PlugTest:test_symbol() (gas: 7272)
PlugTimestampFuseTest:testRevert_enforceFuse_AfterTimestamp_Early() (gas: 25380)
PlugTimestampFuseTest:testRevert_enforceFuse_BeforeTimestamp_Expired() (gas: 25446)
PlugTimestampFuseTest:test__codesize() (gas: 6878)
PlugTimestampFuseTest:test_enforceFuse_AfterTimestamp() (gas: 23083)
PlugTimestampFuseTest:test_enforceFuse_BeforeTimestamp() (gas: 23072)
PlugVaultSocketTest:testRevert_setAccess_Unauthorized() (gas: 45140)
PlugVaultSocketTest:testRevert_testOwnership_Unauthorized() (gas: 66290)
PlugVaultSocketTest:test_GetLivePlugsSigner() (gas: 128216)
PlugVaultSocketTest:test_SingletonUse(uint256) (runs: 10000, μ: 19876, ~: 19876)
PlugVaultSocketTest:test__codesize() (gas: 23251)
PlugVaultSocketTest:test_name() (gas: 11941)
PlugVaultSocketTest:test_owner() (gas: 12389)
PlugVaultSocketTest:test_owner_Implementation() (gas: 7628)
PlugVaultSocketTest:test_owner_getAccess() (gas: 12929)
PlugVaultSocketTest:test_setAccess_Both() (gas: 65650)
PlugVaultSocketTest:test_setAccess_IsRouter() (gas: 65656)
PlugVaultSocketTest:test_setAccess_IsSigner() (gas: 65460)
PlugVaultSocketTest:test_symbol() (gas: 13778)
PlugVaultSocketTest:test_transferOwnership() (gas: 65449)
TestPlus:test__codesize() (gas: 365)
PlugMockSocketTest:test__codesize() (gas: 36891)
PlugSocketTest:testRevert_Initialize_Again() (gas: 21121)
PlugSocketTest:testRevert_transferOwnership() (gas: 20678)
PlugSocketTest:test__codesize() (gas: 38888)
PlugSocketTest:test_name() (gas: 11938)
PlugSocketTest:test_owner() (gas: 14543)
PlugSocketTest:test_owner_Implementation() (gas: 7676)
PlugSocketTest:test_symbol() (gas: 14021)
PlugSocketTest:test_transferOwnership() (gas: 27374)
PlugTest:testRevert_PlugEmptyEcho_Solver_Expired() (gas: 117553)
PlugTest:testRevert_PlugEmptyEcho_Solver_Invalid() (gas: 138287)
PlugTest:testRevert_PlugEmptyEcho_Solver_InvalidSignature() (gas: 77247)
PlugTest:testRevert_PlugEmptyEcho_Solver_TreasuryPaymentFailure() (gas: 128231)
PlugTest:test_PlugEmptyEcho_Solver() (gas: 119288)
PlugTest:test_PlugEmptyEcho_Solver_InvalidNonce() (gas: 168547)
PlugTest:test_PlugEmptyEcho_Solver_TreasuryPayment() (gas: 151056)
PlugTest:test_PlugEmptyEcho_TypeRecovery() (gas: 116826)
PlugTest:test__codesize() (gas: 46829)
PlugTest:test_name() (gas: 7248)
PlugTest:test_symbol() (gas: 7280)
PlugTreasuryTest:testRevert_Multicall_WithdrawETH() (gas: 14520)
PlugTreasuryTest:testRevert_setTargetsAllowed() (gas: 11110)
PlugTreasuryTest:test_Multicall_WithdrawETH() (gas: 51767)
PlugTreasuryTest:test__codesize() (gas: 40401)
PlugTreasuryTest:test_setTargetsAllowed() (gas: 36920)
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:
branches:
- '**'

concurrency: ${{ github.workflow }}-${{ github.ref }}
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}

env:
FOUNDRY_PROFILE: ci
Expand All @@ -21,7 +23,7 @@ jobs:
uses: actions/checkout@v4

- name: ⚙️ Setup Action
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: 8

Expand Down Expand Up @@ -58,19 +60,21 @@ jobs:
run: pnpm build

- name: 🧹 Lint
run: pnpm lint
run: pnpm build:lint

- name: 🧪 Run Forge Gas Snapshot
run: |
forge snapshot
- name: 📝 Configure Git Commit
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' }}
run: |
git config user.name "nftchance"
git config user.email "[email protected]"
- name: 📝 Commit Changes
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' }}
run: |
git add .
git diff --staged --quiet || git commit -m "chore: update build artifacts"
git push
git push https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/nftchance/plug-core.git
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ on:
- 'main'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
publish:
name: ☁️ Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v4
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,4 @@ lcov.info

./core
./contracts
/core/**
/lib/**
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ typechain-types

node_modules
lib

package.json
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.formatOnSave": true,
"solidity.formatter": "forge"
}
58 changes: 32 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @nftchance/plug-core

## 0.3.1

### Patch Changes

- ee54d0f: feat: enable users to control one clickers

## 0.3.0

### Minor Changes
Expand All @@ -25,124 +31,124 @@

### Patch Changes

- a9d04c4: feat: simpler simulation interface
- 52dbda5: feat: deprecate use of hardhat-viem
- 33618b7: feat: fuse pass through lane
- a9d04c4: feat: simpler simulation interface
- 52dbda5: feat: deprecate use of hardhat-viem
- 33618b7: feat: fuse pass through lane

## 0.2.5

### Patch Changes

- 3d33571: feat: add artifacts export path
- 3d33571: feat: add artifacts export path

## 0.2.4

### Patch Changes

- 013ac9d: feat: add artifacts
- 013ac9d: feat: add artifacts

## 0.2.3

### Patch Changes

- b6c40d4: fix: src/ as key entrypoint for solidity
- b6c40d4: fix: src/ as key entrypoint for solidity

## 0.2.2

### Patch Changes

- ca17edc: feat: include
- ca17edc: feat: include

## 0.2.1

### Patch Changes

- 445e859: feat: add protocol contracts to package
- 445e859: feat: add protocol contracts to package

## 0.2.0

### Minor Changes

- 5d07ade: feat: plug-focused nomenclature
- 5d07ade: feat: plug-focused nomenclature

### Patch Changes

- 681380c: feat: add nouns + small cleanup
- 681380c: feat: add nouns + small cleanup

## 0.1.10

### Patch Changes

- 17e6a98: feat: no more codename
- 17e6a98: feat: no more codename

## 0.1.9

### Patch Changes

- faf6324: feat: types version bump
- faf6324: feat: types version bump

## 0.1.8

### Patch Changes

- 9c17064: feat: unsigned pairs
- 9c17064: feat: unsigned pairs

## 0.1.7

### Patch Changes

- 5470937: feat: package exports
- 5470937: feat: package exports

## 0.1.6

### Patch Changes

- bc7f7b4: feat: roll ahead
- bc7f7b4: feat: roll ahead

## 0.1.5

### Patch Changes

- f9f870f: feat: new nomenclature
- 6b9b199: feat: nomenclature spread
- e82fe3a: feat: move up
- f9f870f: feat: new nomenclature
- 6b9b199: feat: nomenclature spread
- e82fe3a: feat: move up

## 0.1.4

### Patch Changes

- 827cea6: feat: optional contract inclusion
- 827cea6: feat: optional contract inclusion

## 0.1.3

### Patch Changes

- a566c59: fix: resolve type conflicts
- a566c59: fix: resolve type conflicts

## 0.1.2

### Patch Changes

- 115abf9: fix: exports
- 115abf9: fix: exports

## 0.1.1

### Patch Changes

- c9a1ab5: fix: better package bundling
- c9a1ab5: fix: better package bundling

## 0.1.0

### Minor Changes

- 699392b: feat: out-of-framework domain inclusion
- 699392b: feat: out-of-framework domain inclusion

Before this update, the `domain` used to sign the message was held relative to the types. Now, with integration of the higher-levels it has become clear that control of the `domain` should have been included from the start.
Before this update, the `domain` used to sign the message was held relative to the types. Now, with integration of the higher-levels it has become clear that control of the `domain` should have been included from the start.

After this update you have the ability to run a single Plug instance for the global state rather than one per domain. This is a breaking change for the `domain` property of the `sign` method of the `Plug` class.
After this update you have the ability to run a single Plug instance for the global state rather than one per domain. This is a breaking change for the `domain` property of the `sign` method of the `Plug` class.

## 0.0.1

### Patch Changes

- 714502c: feat: initial package
- 714502c: feat: initial package
Loading

0 comments on commit 5a6cbaa

Please sign in to comment.