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

chore: devnet to testnet #291

Merged
merged 101 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
f9720f9
feat(balances): assert a positive transfer quantity PE-7219
Dec 3, 2024
be47f4b
feat(base64): harden our implementation of base64 decoding PE-7219
Dec 4, 2024
03bb676
feat(primary names): remove redundant assert PE-7219
Dec 4, 2024
98359c6
test(epochs): update test values to provide for stable sorting PE-7219
Dec 4, 2024
185226b
feat(stream): basic asserts for stream functions PE-7219
Dec 4, 2024
3c12ce8
feat(stream): basic asserts for fromHex function PE-7219
Dec 4, 2024
850f91e
feat(auctions): basic assertions for new auctions PE-7219
Dec 4, 2024
18815f8
feat(auctions): assert minimum price interval ms PE-7219
Dec 4, 2024
c23dbbe
feat(arns): basic assertion for name length PE-7219
Dec 4, 2024
56194f9
feat(demand factoring): remove redundant check PE-7219
Dec 4, 2024
b852c2b
feat(epochs): save cycles when names count is equal to prescribed num…
Dec 5, 2024
0e35679
feat(epochs): remove redundant sort PE-7238
Dec 5, 2024
890e146
feat(utils): harden isInteger PE-7238
Dec 5, 2024
e359dbf
feat(utils): harden sumTableValues PE-7238
Dec 5, 2024
747d228
feat(utils): harden splitString PE-7238
Dec 5, 2024
c315d72
feat(vaults): ensure quantities are positive values PE-7238
Dec 5, 2024
f3b2b31
feat(funding plans): ensure funding plans applied fully PE-7238
Dec 5, 2024
537243f
refactor: ensure no vaultedTransfer/transfer to ones self PE-7289
fedellen Dec 12, 2024
acfe43f
refactor: assert a fee was found for the name length PE-7289
fedellen Dec 12, 2024
5a1f454
refactor: assert token cost years and quantity values as described PE…
fedellen Dec 12, 2024
f79c8f7
refactor: handle value is nil in isInteger PE-7289
fedellen Dec 12, 2024
b193bc6
refactor: use vault helpers checking for existing vaults to prevent l…
fedellen Dec 13, 2024
f19231f
test: re-locate base64 unit test file PE-7289
fedellen Dec 13, 2024
9775ad6
Merge branch 'develop' into PE-7289-fyeo-rd-3-reintegration
fedellen Dec 13, 2024
86e82a5
refactor: remove unnecessary constant in reintegration PE-7289
fedellen Dec 13, 2024
b8394de
Merge branch 'develop' into PE-7289-fyeo-rd-3-reintegration
fedellen Dec 16, 2024
fe4529a
Merge branch 'develop' into PE-7289-fyeo-rd-3-reintegration
fedellen Dec 16, 2024
c8f7e0b
Merge branch 'develop' into PE-7289-fyeo-rd-3-reintegration
fedellen Dec 16, 2024
349dcfb
refactor: assert reduceBalance > 0 PE-7289
fedellen Dec 16, 2024
8b98f3f
Merge branch 'PE-7289-fyeo-rd-3' into PE-7289-fyeo-rd-3-reintegration
fedellen Dec 16, 2024
0db2adb
refactor: use local functions for vault helpers PE-7289
fedellen Dec 16, 2024
7ff44c4
refactor: add exitVault helper, use unlock over fulfill PE-7289
fedellen Dec 16, 2024
df876d5
refactor: remove unnecessary param PE-7289
fedellen Dec 16, 2024
61c7020
Merge branch 'PE-7289-fyeo-rd-3' into PE-7289-fyeo-rd-3-reintegration
fedellen Dec 16, 2024
652486f
fix(PE-7289): adds checksum of eth address when validating formatted …
Dec 16, 2024
3efed65
fix(PE-7289): adds checksum of eth address when validating formatted …
dtfiedler Dec 17, 2024
380728f
fix(main): add global handler to sanitize and validate inputs
Dec 17, 2024
a741ebf
fix(utils): move function to utils, ad sanitize
Dec 17, 2024
ca76658
chore(test): remove unused sanitze
Dec 17, 2024
9a16da4
feat(gar): optimize prescribed observers, use lookup table and comput…
Dec 17, 2024
957b601
chore(tests): remove print logs from tests
Dec 17, 2024
353142d
fix(epochs): update return types and fix breaking integration tests
Dec 17, 2024
d1db217
chore(epochs): move to utility function and use in handler
Dec 17, 2024
e43bef0
chore(test): fix test setup for computePrescribedObservers
Dec 17, 2024
f55e3ee
chore(test): fix test setup
Dec 17, 2024
e86de5e
fix(epochs): swap pairs with ipairs, add integration and unit tests f…
Dec 17, 2024
b47e417
chore(test): add comment for new tests
Dec 17, 2024
92dd701
chore(test): fix unit test
Dec 17, 2024
350a326
refactor: reintegrate with fyeo round 3 refactors PE-7289 (#270)
fedellen Dec 17, 2024
b5827c2
chore(test): standardize use of test helpers in tick tests
Dec 17, 2024
ccb8a49
Merge branch 'develop' into PE-7319-fyeo-rd-4-reintegration
fedellen Dec 17, 2024
444733b
test: resolve issues from merge PE-7319
fedellen Dec 17, 2024
0d4ec10
refactor: fix merge issues PE-7319
fedellen Dec 17, 2024
af857d3
refactor: remove empty comment PE-7319
fedellen Dec 17, 2024
84afa76
Pe 7319 fyeo rd 4 reintegration (#280)
fedellen Dec 17, 2024
5fe672c
fix(sanitize): assert number for timestamp
Dec 17, 2024
76d7064
fix(sanitize): assert number for timestamp (#281)
dtfiedler Dec 17, 2024
247fbf6
Merge branch 'develop' into PE-7203-prescribed-obsever-lookups
dtfiedler Dec 17, 2024
390b526
chore(test): fix integration test
Dec 17, 2024
a620d4c
chore(test): bump ar.io/sdk and update monitor tests
Dec 17, 2024
9b8b198
Merge branch 'develop' into PE-7203-prescribed-obsever-lookups
dtfiedler Dec 17, 2024
f02067b
chore(test): fix prescribedObservers in unit test
Dec 17, 2024
d7132d9
feat(gar): optimize prescribed observers, use lookup table and comput…
dtfiedler Dec 17, 2024
77e70d7
fix(gar): do not remove delegate before decreasing stake
Dec 18, 2024
8dc61ab
fix(gar): delete the vault, do not decrease stake
Dec 18, 2024
7b55fd5
fix(gar): allow 0 as no-op for increase and decrease
Dec 18, 2024
4de7fd4
fix(gar): do not remove delegate before decreasing stake (#283)
dtfiedler Dec 18, 2024
c9074dd
test: setup expectations for disallowing grace period reassign name a…
fedellen Dec 18, 2024
102df6d
fix: disallow create prmary name req during a records grace period P…
fedellen Dec 18, 2024
54d3f5e
fix: disallow create prmary name req during a records grace period P…
fedellen Dec 18, 2024
9b19c7d
fix(balance): fix tag check for balance
Dec 18, 2024
e69a144
fix(balance): fix tag check for balance (#285)
dtfiedler Dec 18, 2024
d1ee4c3
fix(epochs): include prescribedObserversWithWeights to epoch handler
Dec 18, 2024
20f161a
chore(test): fix pagination test
Dec 18, 2024
6bfb998
fix(epochs): include prescribedObserversWithWeights to epoch handler …
dtfiedler Dec 18, 2024
1605a26
fix(gar): change backwards compatibility check
Dec 18, 2024
5b15b85
fix(epochs): add stake and startimestamp to prescribedObserver with w…
Dec 18, 2024
7982993
test(arns): check for invariants after each arns test PE-7211
Dec 18, 2024
fb158e0
test(tick): check invariants after tick tests PE-7211
Dec 18, 2024
ecb8338
test(vaults): assert not invariants after vaults tests PE-7211
Dec 18, 2024
b7f6cfd
test(primary names): assert no invariants after primary names tests P…
Dec 18, 2024
a10044e
test(transfers): assert no invariants after transfer tests PE-7211
Dec 18, 2024
84bd351
PE-7211: Check for invariants at conclusion of almost all integration…
arielmelendez Dec 18, 2024
9167f4c
Merge branch 'main' into hotix-botega-develop
dtfiedler Dec 19, 2024
0201334
chore: devnet to testnet (#282)
dtfiedler Dec 19, 2024
22299ad
test: expect operators to redelegate 1 mARIO from a delegate to their…
fedellen Dec 19, 2024
4353010
feat: allow operators to redelegate to their own stake when below min…
fedellen Dec 19, 2024
93689b0
feat: allow operators to redelegate to their own stake when below min…
fedellen Dec 19, 2024
9500bd8
chore(test): update ar-io-sdk version
Dec 19, 2024
605a032
feat: audit msg.Timestamp, remove input of msg.Tags.Timestamp PE-7338
fedellen Dec 19, 2024
c2c95d6
refactor: improve type annotations PE-7338
fedellen Dec 19, 2024
5085734
refactor: remove redundant return PE-7338
fedellen Dec 19, 2024
d19be00
feat: audit msg.Timestamp, remove input of msg.Tags.Timestamp PE-7338…
fedellen Dec 19, 2024
8d40736
refactor: standardize ARIOtoMARIO PE-7198
fedellen Dec 20, 2024
5875b19
refactor: standardize ARIOtoMARIO PE-7198 (#294)
fedellen Dec 20, 2024
2ec34f1
chore(test): fix monitor test and add to CI
Dec 20, 2024
036d9e4
chore(git): copy repo
Dec 20, 2024
a602359
chore(test): fix monitor command in git
Dec 20, 2024
80f27d6
chore(git): update env var to ARIO_NETWORK_PROCESS_ID
Dec 20, 2024
469ef84
chore(test): fix monitor test and add to CI (#295)
dtfiedler Dec 20, 2024
7edaece
chore(evolve): use AIO_NETWORK_PROCESS_ID in evolve script
Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,23 @@ jobs:
- run: yarn test:esm # full e2e integration tests
working-directory: ./ar-io-sdk
env:
IO_PROCESS_ID: ${{ vars.IO_NETWORK_PROCESS_ID }}
ARIO_NETWORK_PROCESS_ID: ${{ vars.ARIO_NETWORK_PROCESS_ID }}
AO_CU_URL: ${{ vars.AO_CU_URL }}

monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn --frozen-lockfile
- run: yarn monitor
env:
ARIO_NETWORK_PROCESS_ID: ${{ vars.ARIO_NETWORK_PROCESS_ID }}

evolve:
runs-on: ubuntu-latest
needs: [integration, unit, sdk, lint]
Expand All @@ -97,7 +111,7 @@ jobs:
- run: yarn evolve
env:
WALLET: ${{ secrets.WALLET }}
IO_NETWORK_PROCESS_ID: ${{ vars.IO_NETWORK_PROCESS_ID }}
ARIO_NETWORK_PROCESS_ID: ${{ vars.ARIO_NETWORK_PROCESS_ID }}
AO_CU_URL: ${{ vars.AO_CU_URL }}
- name: Notify Success
if: success()
Expand All @@ -120,12 +134,12 @@ jobs:
},
{
"title": "Process ID",
"value": "${{ vars.IO_NETWORK_PROCESS_ID }}",
"value": "${{ vars.ARIO_NETWORK_PROCESS_ID }}",
"short": true
},
{
"title": "View on ao.link",
"value": "https://www.ao.link/#/entity/${{ vars.IO_NETWORK_PROCESS_ID }}?tab=source-code",
"value": "https://www.ao.link/#/entity/${{ vars.ARIO_NETWORK_PROCESS_ID }}?tab=source-code",
"short": false
}
,
Expand All @@ -151,15 +165,15 @@ jobs:
"fallback": "Failed to update IO Process!",
"color": "danger",
"title": "Details",
"text": 'The IO "${{ github.ref_name == 'main' && 'testnet' || 'devnet' }} Process ( ${{ vars.IO_NETWORK_PROCESS_ID }}) FAILED to update!',
"text": 'The IO "${{ github.ref_name == 'main' && 'testnet' || 'devnet' }} Process ( ${{ vars.ARIO_NETWORK_PROCESS_ID }}) FAILED to update!',
"fields": [{
"title": "Network",
"value": "${{ github.ref_name == 'main' && 'testnet' || 'devnet' }}",
"short": true
},
{
"title": "Process ID",
"value": "${{ vars.IO_NETWORK_PROCESS_ID }}",
"value": "${{ vars.ARIO_NETWORK_PROCESS_ID }}",
"short": true
},
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: yarn monitor
id: monitor
env:
IO_PROCESS_ID: ${{ matrix.network == 'testnet' && 'agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA' || 'GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc' }}
ARIO_NETWORK_PROCESS_ID: ${{ matrix.network == 'testnet' && 'agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA' || 'GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc' }}

- name: Notify Failure
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
"editor.formatOnPaste": true,
"editor.formatOnSaveMode": "file"
},
"cSpell.words": ["hashchain", "redelegate"]
"cSpell.words": ["ARIO", "hashchain", "redelegate"]
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"test:unit": "rm -rf coverage && mkdir -p coverage && busted . && luacov",
"test:coverage": "rm -rf luacov-html && yarn test:unit && luacov --reporter html && open luacov-html/index.html",
"monitor": "node --test tests/monitor/monitor.test.mjs",
"monitor:devnet": "IO_PROCESS_ID=GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc node --test tests/monitor/monitor.test.mjs",
"monitor:testnet": "IO_PROCESS_ID=agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA node --test tests/monitor/monitor.test.mjs",
"monitor:devnet": "ARIO_NETWORK_PROCESS_ID=GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc node --test tests/monitor/monitor.test.mjs",
"monitor:testnet": "ARIO_NETWORK_PROCESS_ID=agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA node --test tests/monitor/monitor.test.mjs",
"evolve": "yarn build && node tools/evolve.mjs",
"prepare": "husky"
},
"devDependencies": {
"@ar.io/sdk": "alpha",
"@ar.io/sdk": "^3.1.0-alpha.9",
"@permaweb/ao-loader": "^0.0.36",
"@permaweb/aoconnect": "^0.0.59",
"arweave": "^1.15.1",
Expand Down
29 changes: 29 additions & 0 deletions spec/arns_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,35 @@ describe("arns", function()
assert.is_false(status)
assert.match("Name must be extended before it can be reassigned", error)
end)

it("should not allow reassigning names during the grace period", function()
-- Setup record in grace period
_G.NameRegistry.records["test-name"] = {
endTimestamp = 123456789,
processId = testProcessId,
purchasePrice = 600000000,
startTimestamp = 0,
type = "lease",
undernameLimit = 10,
}

-- Attempt to reassign
local newProcessId = "test-this-is-valid-arweave-wallet-address-2"
local status, error = pcall(
arns.reassignName,
"test-name",
testProcessId,
-- Just before the grace period ends
123456789
+ constants.gracePeriodMs
- 1,
newProcessId
)

-- Assertions
assert.is_false(status)
assert.match("Name must be extended before it can be reassigned", error)
end)
end)
end

Expand Down
Loading
Loading