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

fix!: remove non read-only ens methods #6084

Merged
merged 14 commits into from
May 30, 2023
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,7 @@ should use 4.0.1-alpha.0 for testing.
### Breaking Changes

- dropped support for NodeJs@14
- removed non read-only methods from ens package

### Added

Expand All @@ -1488,3 +1489,9 @@ should use 4.0.1-alpha.0 for testing.

- `formatTransaction` no longer throws a `TransactionDataAndInputError` if it's passed a transaction object with both `data` and `input` properties set (as long as they are the same value) (#6064)
- Refactored documentation for `rpc_method_wrappers` to point to the previously duplicated documentation found under the `Web3Eth` class documentation (#6054)

#### web3-eth-ens

### Changed

- Removed non read-only methods
211 changes: 0 additions & 211 deletions packages/web3-eth-ens/src/abi/ens/ENSRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,6 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.

// https://github.com/ensdomains/ens-contracts/blob/master/contracts/registry/ENSRegistry.sol
export const ENSRegistryAbi = [
{
inputs: [],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'owner',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'operator',
type: 'address',
},
{
indexed: false,
internalType: 'bool',
name: 'approved',
type: 'bool',
},
],
name: 'ApprovalForAll',
type: 'event',
},
{
anonymous: false,
inputs: [
Expand Down Expand Up @@ -91,25 +61,6 @@ export const ENSRegistryAbi = [
name: 'NewResolver',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'bytes32',
name: 'node',
type: 'bytes32',
},
{
indexed: false,
internalType: 'uint64',
name: 'ttl',
type: 'uint64',
},
],
name: 'NewTTL',
type: 'event',
},
{
anonymous: false,
inputs: [
Expand Down Expand Up @@ -210,168 +161,6 @@ export const ENSRegistryAbi = [
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'operator',
type: 'address',
},
{
internalType: 'bool',
name: 'approved',
type: 'bool',
},
],
name: 'setApprovalForAll',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'node',
type: 'bytes32',
},
{
internalType: 'address',
name: 'owner',
type: 'address',
},
],
name: 'setOwner',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'node',
type: 'bytes32',
},
{
internalType: 'address',
name: 'owner',
type: 'address',
},
{
internalType: 'address',
name: 'resolver',
type: 'address',
},
{
internalType: 'uint64',
name: 'ttl',
type: 'uint64',
},
],
name: 'setRecord',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'node',
type: 'bytes32',
},
{
internalType: 'address',
name: 'resolver',
type: 'address',
},
],
name: 'setResolver',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'node',
type: 'bytes32',
},
{
internalType: 'bytes32',
name: 'label',
type: 'bytes32',
},
{
internalType: 'address',
name: 'owner',
type: 'address',
},
],
name: 'setSubnodeOwner',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'node',
type: 'bytes32',
},
{
internalType: 'bytes32',
name: 'label',
type: 'bytes32',
},
{
internalType: 'address',
name: 'owner',
type: 'address',
},
{
internalType: 'address',
name: 'resolver',
type: 'address',
},
{
internalType: 'uint64',
name: 'ttl',
type: 'uint64',
},
],
name: 'setSubnodeRecord',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'node',
type: 'bytes32',
},
{
internalType: 'uint64',
name: 'ttl',
type: 'uint64',
},
],
name: 'setTTL',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
Expand Down
Loading