Skip to content

Commit

Permalink
[REG-1312] Added .ca TLD
Browse files Browse the repository at this point in the history
  • Loading branch information
nickshatilo committed Jun 24, 2024
1 parent 4c39963 commit bd298c7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.9.20

- Add `.ca` TLD

## v0.9.19

- Deploy `SeaportProxyBuyer@0.1.0` contract to `Polygon` mainnet
Expand Down
4 changes: 2 additions & 2 deletions artifacts/MintingManager.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion contracts/MintingManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ contract MintingManager is ERC2771Context, MinterRole, Blocklist, Pausable, IMin
_addTld(tlds[i], false);
}

_addTld('com', true);
string[2] memory expirableTlds = ['com', 'ca'];
for (uint256 i = 0; i < expirableTlds.length; i++) {
_addTld(expirableTlds[i], true);
}
}

function addTld(string calldata tld, bool isExpirable) external override onlyOwner {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uns",
"version": "0.9.19",
"version": "0.9.20",
"description": "UNS contracts and tools",
"repository": "https://github.com/unstoppabledomains/uns.git",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion sandbox/state.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions test/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ export const TLD = {

// Expirable
COM: BigInt('0xac2c11ea5d4a4826f418d3befbf0537de7f13572d2a433edfe4a7314ea5dc896'),
CA: BigInt('0xc9dca3620bc4f436a4161d86f335af2a8f7eb7bae05865a71e18fc617ef98c4e'),
};

export const EXPIRABLE_TLDS = [
'COM',
'CA',
];

0 comments on commit bd298c7

Please sign in to comment.