Add XEC airdrops for new Cashtab wallets.
Only newly-created wallets are eligible for airdrops.
Differential D16615
[token-server] Add XEC faucet to Cashtab bytesofman on Aug 9 2024, 22:41. Authored by
Details
Add XEC airdrops for new Cashtab wallets. Only newly-created wallets are eligible for airdrops. npm test
Diff Detail
Event TimelineComment Actions Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Failed tests logs: ====== CashTab Unit Tests: Correctly prepares Cashtab mocked chronik client and localforage environment for Cashtab pre 1.7.* for unit tests initializeCashtabStateAtLegacyWalletKeysForTests: Wallet with xec and tokens ====== Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 @@ -1,7 +1,8 @@ Object { "numPages": 1, + "numTxs": 10, "txs": Array [ Object { "inputs": Array [ Object { "inputScript": "483045022100b8699595913167f3abd5c6dde588fe9dd89e56e811436d0cc02e81a6623a93c1022043954f663eb37a4e0a7cb28bd8ff857d0913cc771832b0e7ccf2b2fbaa9f3ae0412103318d0e1109f32debc66952d0e3ec21b1cf96575ea4c2a97a6535628f7f8b10e6", at Object.toEqual (/work/cashtab/src/components/App/fixtures/__tests__/index.test.js:94:15) Each failure log is accessible here: Comment Actions I think such a small change should just be inlined, it doesn't bring any value on its own.
Comment Actions expand function to be more like isAddressEligible ... no need for just a chronik wrapper
Comment Actions Build Bitcoin ABC Diffs / Diff Testing (token-server-tests) failed.
Tail of the build log: To address all issues, run: npm audit fix Run `npm audit` for details. Test depends on ecash-lib. Building TypeScript... /work/modules/ecash-lib /work/modules/chronik-client /work/modules/ecash-lib-wasm /work/modules/mock-chronik-client /work/modules/ecashaddrjs /work/abc-ci-builds/token-server-tests added 363 packages, and audited 366 packages in 2s 60 packages are looking for funding run `npm fund` for details found 0 vulnerabilities > ecash-lib@0.2.0 build > tsc && tsc -p ./tsconfig.build.json && cp -r ./src/ffi ./dist Test does not depend on ecash-script, skipping ecash-script dependencies... Test does not depend on ecash-coinselect, skipping ecash-coinselect dependencies... /work/apps/token-server /work/modules/ecash-lib /work/modules/chronik-client /work/modules/ecash-lib-wasm /work/modules/mock-chronik-client /work/modules/ecashaddrjs /work/abc-ci-builds/token-server-tests npm warn deprecated har-validator@5.1.5: this library is no longer supported npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. added 591 packages, and audited 596 packages in 3s 112 packages are looking for funding run `npm fund` for details 7 vulnerabilities (6 moderate, 1 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. CI configured to test build. Building... > token-server@0.0.0 prebuild > ts-node scripts/prepSecrets.ts secrets.ts does not exist, copying secrets.sample.ts... > token-server@0.0.0 build > tsc > token-server@0.0.0 pretest > ts-node scripts/prepSecrets.ts secrets.ts exists, proceeding to build... > token-server@0.0.0 test > mocha --reporter mocha-junit-reporter --reporter-options mochaFile=test_results/token-server-junit.xml --reporter-options testsuitesTitle=Token Server Unit Tests --reporter-options rootSuiteTitle=Token Server Serving static assets from /token-server/token-icons /claimxec/ecash:qrfkcnzdm0dvkrc20dhcf7qv23vt736ynuujzxnzs6 from IP: ::ffff:127.0.0.1, host 127.0.0.1:5000 Build token-server-tests timed out after 3600.0s Comment Actions note the above teamcity failure was corrected by this step
Comment Actions Abuse can me mitigated by asking for an email address or having them take some other kind of higher friction action. It probably won't take long before it's necessary to deal with automated scripts.
|