Skip to content

Commit

Permalink
Merge branch 'staging' into mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Jul 19, 2024
2 parents b2942ee + 3c96089 commit 7becdfd
Show file tree
Hide file tree
Showing 199 changed files with 24,569 additions and 30,274 deletions.
47 changes: 31 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,55 @@ name: CI

on:
push:
branches: [master]
branches: [staging, mainnet]
pull_request:

jobs:
wiki_address_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Bun 1.1.13
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.13

- run: bun install --frozen-lockfile

- name: Run wikiCheck
run: bun run wikiCheck
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js 16
uses: actions/setup-node@v3
- name: Use Bun 1.1.13
uses: oven-sh/setup-bun@v1
with:
node-version: 16
cache: 'yarn'
bun-version: 1.1.13

- run: yarn install --frozen-lockfile
- run: bun install --frozen-lockfile

- name: Run test
run: yarn test
- name: Run tests
run: bun run test:parallel

deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js 16
uses: actions/setup-node@v3
- name: Use Bun 1.1.13
uses: oven-sh/setup-bun@v1
with:
node-version: 16
cache: 'yarn'
bun-version: 1.1.13

- run: bun install --frozen-lockfile

- run: yarn install --frozen-lockfile
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Run deploy
run: yarn test:deploy
run: bun run test:deploy
env:
BATCH_GATEWAY_URLS: '["https://universal-offchain-unwrapper.ens-cf.workers.dev/"]'
Binary file added bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion contracts/dnsregistrar/DNSClaimChecker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
pragma solidity ^0.8.4;

import "../dnssec-oracle/DNSSEC.sol";
import "../dnssec-oracle/BytesUtils.sol";
import "../dnssec-oracle/RRUtils.sol";
import "../utils/BytesUtils.sol";
import "../utils/HexUtils.sol";
import "@ensdomains/buffer/contracts/Buffer.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/dnsregistrar/DNSRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "@ensdomains/buffer/contracts/Buffer.sol";
import "../dnssec-oracle/BytesUtils.sol";
import "../dnssec-oracle/DNSSEC.sol";
import "../dnssec-oracle/RRUtils.sol";
import "../registry/ENSRegistry.sol";
import "../root/Root.sol";
import "../resolvers/profiles/AddrResolver.sol";
import "../utils/BytesUtils.sol";
import "./DNSClaimChecker.sol";
import "./PublicSuffixList.sol";
import "./IDNSRegistrar.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnsregistrar/OffchainDNSResolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import "../../contracts/resolvers/profiles/IAddrResolver.sol";
import "../../contracts/resolvers/profiles/IExtendedResolver.sol";
import "../../contracts/resolvers/profiles/IExtendedDNSResolver.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "../dnssec-oracle/BytesUtils.sol";
import "../dnssec-oracle/DNSSEC.sol";
import "../dnssec-oracle/RRUtils.sol";
import "../registry/ENSRegistry.sol";
import "../utils/HexUtils.sol";
import "../utils/BytesUtils.sol";

import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import {LowLevelCallUtils} from "../utils/LowLevelCallUtils.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnsregistrar/RecordParser.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

import "../dnssec-oracle/BytesUtils.sol";
import "../utils/BytesUtils.sol";

library RecordParser {
using BytesUtils for bytes;
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnsregistrar/TLDPublicSuffixList.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.8.4;

import "../dnssec-oracle/BytesUtils.sol";
import "../utils/BytesUtils.sol";
import "./PublicSuffixList.sol";

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnsregistrar/mocks/DummyParser.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.8.4;

import "../../dnssec-oracle/BytesUtils.sol";
import "../../utils/BytesUtils.sol";
import "../RecordParser.sol";

contract DummyParser {
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnssec-oracle/DNSSECImpl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ pragma solidity ^0.8.4;
pragma experimental ABIEncoderV2;

import "./Owned.sol";
import "./BytesUtils.sol";
import "./RRUtils.sol";
import "./DNSSEC.sol";
import "./algorithms/Algorithm.sol";
import "./digests/Digest.sol";
import "../utils/BytesUtils.sol";
import "@ensdomains/buffer/contracts/Buffer.sol";

/*
Expand Down
3 changes: 2 additions & 1 deletion contracts/dnssec-oracle/RRUtils.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "./BytesUtils.sol";
import "../utils/BytesUtils.sol";
import "@ensdomains/buffer/contracts/Buffer.sol";

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnssec-oracle/algorithms/P256SHA256Algorithm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pragma solidity ^0.8.4;

import "./Algorithm.sol";
import "./EllipticCurve.sol";
import "../BytesUtils.sol";
import "../../utils/BytesUtils.sol";

contract P256SHA256Algorithm is Algorithm, EllipticCurve {
using BytesUtils for *;
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnssec-oracle/algorithms/RSASHA1Algorithm.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pragma solidity ^0.8.4;

import "./Algorithm.sol";
import "../BytesUtils.sol";
import "./RSAVerify.sol";
import "../../utils/BytesUtils.sol";
import "@ensdomains/solsha1/contracts/SHA1.sol";

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnssec-oracle/algorithms/RSASHA256Algorithm.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pragma solidity ^0.8.4;

import "./Algorithm.sol";
import "../BytesUtils.sol";
import "./RSAVerify.sol";
import "../../utils/BytesUtils.sol";

/**
* @dev Implements the DNSSEC RSASHA256 algorithm.
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnssec-oracle/algorithms/RSAVerify.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pragma solidity ^0.8.4;

import "../BytesUtils.sol";
import "./ModexpPrecompile.sol";
import "../../utils/BytesUtils.sol";

library RSAVerify {
/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnssec-oracle/digests/SHA1Digest.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pragma solidity ^0.8.4;

import "./Digest.sol";
import "../BytesUtils.sol";
import "../../utils/BytesUtils.sol";
import "@ensdomains/solsha1/contracts/SHA1.sol";

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/dnssec-oracle/digests/SHA256Digest.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pragma solidity ^0.8.4;

import "./Digest.sol";
import "../BytesUtils.sol";
import "../../utils/BytesUtils.sol";

/**
* @dev Implements the DNSSEC SHA256 digest.
Expand Down
2 changes: 1 addition & 1 deletion contracts/ethregistrar/ETHRegistrarController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ~0.8.17;

import {BaseRegistrarImplementation} from "./BaseRegistrarImplementation.sol";
import {StringUtils} from "./StringUtils.sol";
import {StringUtils} from "../utils/StringUtils.sol";
import {Resolver} from "../resolvers/Resolver.sol";
import {ENS} from "../registry/ENS.sol";
import {ReverseRegistrar} from "../reverseRegistrar/ReverseRegistrar.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/ethregistrar/StablePriceOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ~0.8.17;

import "./IPriceOracle.sol";
import "./StringUtils.sol";
import "../utils/StringUtils.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

Expand Down
32 changes: 0 additions & 32 deletions contracts/ethregistrar/StringUtils.sol

This file was deleted.

1 change: 1 addition & 0 deletions contracts/registry/ENS.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

interface ENS {
Expand Down
1 change: 1 addition & 0 deletions contracts/resolvers/OwnedResolver.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./profiles/ABIResolver.sol";
Expand Down
Loading

0 comments on commit 7becdfd

Please sign in to comment.