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

Unique Chain 1.14 #1096

Open
wants to merge 180 commits into
base: develop
Choose a base branch
from

tests: fix evetns normalization, fix more tests

2277223
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Unique Chain 1.14 #1096

tests: fix evetns normalization, fix more tests
2277223
Select commit
Loading
Failed to load commit list.
GitHub Actions / Main Sequential Tests opal failed Feb 24, 2025 in 1s

30 passed, 1 failed and 12 skipped

Tests failed

❌ js-packages/tests/mochawesome-report/test-sequential-1740413066.json

43 tests were completed in 4076s with 30 passed, 1 failed and 12 skipped.

Test suite Passed Failed Skipped Time
App promotion 3✔️ 400s
Create FT collection from EVM 2✔️ 243s
Create NFT collection from EVM 1✔️ 1❌ 162s
EVM Migrations 4✔️ 351s
Integration Test: Collator Selection 5✖️ 0ms
Integration Test: Collection Properties with sudo 3✔️ 360s
integration test: Fees must be credited to Treasury: 7✔️ 396s
Integration Test: Identities Manipulation 7✖️ 0ms
integration test: Inflation 2✔️ 57s
Integration Test: Maintenance Functionality 6✔️ 1307s
Integration Test: Token Properties with sudo 2✔️ 324s

✔️ App promotion

App promotion admin adress
  ✔️ can be any valid CrossAccountId
  ✔️ can be reassigned
  ✔️ can be set by sudo only

✔️ Create FT collection from EVM

Create FT collection from EVM
  ✔️ Check collection address exist
  ✔️ Create collection

❌ Create NFT collection from EVM

Create NFT collection from EVM
  ✔️ Check collection address exist
  ❌ Create collection
	AssertionError: expected { CollectionCreated: { address: '0x6C4E9fE1AE37a41E93CEE429e8E1881aBdcbb54F', event: 'CollectionCreated', returnValues: { owner: '0xD31E0828202Da361e2F3511d52EE8fD6dFd88262', collectionId: '0x17c4e6453cC49aaaaeaCa894e6D9683e00001877' } } } to deeply equal [ { address: '0x6C4E9fE1AE37a41E93CEE429e8E1881aBdcbb54F', event: 'CollectionCreated', args: { owner: '0xD31E0828202Da361e2F3511d52EE8fD6dFd88262', collectionId: '0x17c4e6453cC49aaaaeaCa894e6D9683e00001877' } } ]

✔️ EVM Migrations

EVM Migrations
  ✔️ Deploy contract saved state
  ✔️ Fake collection creation on substrate side
  ✔️ Fake token creation on ethereum side
  ✔️ Fake token creation on substrate side

✔️ Integration Test: Collator Selection

Integration Test: Collator Selection Dynamic shuffling of collators
  ✖️ Change invulnerables and make sure they start producing blocks
Integration Test: Collator Selection Getting and releasing licenses to collate Negative
  ✖️ Cannot force revoke a license as non-sudo
  ✖️ Cannot get a license without session keys set
  ✖️ Cannot register a license twice
  ✖️ Cannot release a license twice

✔️ Integration Test: Collection Properties with sudo

Integration Test: Collection Properties with sudo FT
  ✔️ Repairing an unbroken collection's properties preserves the consumed space
Integration Test: Collection Properties with sudo NFT
  ✔️ Repairing an unbroken collection's properties preserves the consumed space
Integration Test: Collection Properties with sudo RFT
  ✔️ Repairing an unbroken collection's properties preserves the consumed space

✔️ integration test: Fees must be credited to Treasury:

integration test: Fees must be credited to Treasury:
  ✔️ Evm Transactions send fees to Treasury
  ✔️ Fees are sane
  ✔️ NFT Transactions also send fees to Treasury
  ✔️ NFT Transfer fee is close to 0.1 Unique
  ✔️ Sender balance decreased by fee+sent amount, Treasury balance increased by fee
  ✔️ Total issuance does not change
  ✔️ Treasury balance increased by failed tx fee

✔️ Integration Test: Identities Manipulation

Integration Test: Identities Manipulation Identities
  ✖️ Removes identities
  ✖️ Sets identities
  ✖️ Setting identities does not delete existing but does overwrite
Integration Test: Identities Manipulation Sub-identities
  ✖️ Removes sub-identities
  ✖️ Removing identities deletes associated sub-identities
  ✖️ Sets subs
  ✖️ Setting sub-identities does not delete other existing but does overwrite own

✔️ integration test: Inflation

integration test: Inflation
  ✔️ First year inflation is 10%
  ✔️ Inflation happens after inflation block interval

✔️ Integration Test: Maintenance Functionality

Integration Test: Maintenance Functionality Maintenance Mode
  ✔️ Allows superuser to enable and disable maintenance mode - and disallows anyone else
  ✔️ Allows to enable and disable MM repeatedly
  ✔️ Disallows Ethereum transactions to execute while in maintenance
  ✔️ MM allows native token transfers and RPC calls
  ✔️ MM blocks unique pallet calls
  ✔️ MM blocks unique pallet calls (Re-Fungible)

✔️ Integration Test: Token Properties with sudo

Integration Test: Token Properties with sudo NFT
  ✔️ force_repair_item preserves valid consumed space
Integration Test: Token Properties with sudo RFT
  ✔️ force_repair_item preserves valid consumed space

Annotations

Check failure on line 0 in js-packages/tests/mochawesome-report/test-sequential-1740413066.json

See this annotation in the file changed.

@github-actions github-actions / Main Sequential Tests opal

Create NFT collection from EVM ► Create NFT collection from EVM ► Create collection

Failed test found in:
  js-packages/tests/mochawesome-report/test-sequential-1740413066.json
Error:
  AssertionError: expected { CollectionCreated: { address: '0x6C4E9fE1AE37a41E93CEE429e8E1881aBdcbb54F', event: 'CollectionCreated', returnValues: { owner: '0xD31E0828202Da361e2F3511d52EE8fD6dFd88262', collectionId: '0x17c4e6453cC49aaaaeaCa894e6D9683e00001877' } } } to deeply equal [ { address: '0x6C4E9fE1AE37a41E93CEE429e8E1881aBdcbb54F', event: 'CollectionCreated', args: { owner: '0xD31E0828202Da361e2F3511d52EE8fD6dFd88262', collectionId: '0x17c4e6453cC49aaaaeaCa894e6D9683e00001877' } } ]
Raw output
AssertionError: expected { CollectionCreated: { address: '0x6C4E9fE1AE37a41E93CEE429e8E1881aBdcbb54F', event: 'CollectionCreated', returnValues: { owner: '0xD31E0828202Da361e2F3511d52EE8fD6dFd88262', collectionId: '0x17c4e6453cC49aaaaeaCa894e6D9683e00001877' } } } to deeply equal [ { address: '0x6C4E9fE1AE37a41E93CEE429e8E1881aBdcbb54F', event: 'CollectionCreated', args: { owner: '0xD31E0828202Da361e2F3511d52EE8fD6dFd88262', collectionId: '0x17c4e6453cC49aaaaeaCa894e6D9683e00001877' } } ]
    at file:///home/ubuntu/actions-runner/_work/unique-chain/unique-chain/js-packages/tests/eth/createNFTCollection.seqtest.ts:19:35
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///home/ubuntu/actions-runner/_work/unique-chain/unique-chain/js-packages/test-utils/eth/util.ts:64:13
    at async usingEthPlaygrounds (file:///home/ubuntu/actions-runner/_work/unique-chain/unique-chain/js-packages/test-utils/eth/util.ts:50:9)
    at async Context.<anonymous> (file:///home/ubuntu/actions-runner/_work/unique-chain/unique-chain/js-packages/test-utils/eth/util.ts:60:9)