Skip to content

Commit

Permalink
Merge branch 'master' into patch/standard-achievements-api
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceManiac committed May 3, 2024
2 parents 4513c71 + e5f5f73 commit 0fa78af
Show file tree
Hide file tree
Showing 46 changed files with 2,680 additions and 535 deletions.
1,407 changes: 1,038 additions & 369 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions packages/batcher/address-validator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class PaimaAddressValidator {
return await CryptoManager.Polkadot().verifyAddress(address);
case AddressType.ALGORAND:
return await CryptoManager.Algorand().verifyAddress(address);
case AddressType.MINA:
return await CryptoManager.Mina().verifyAddress(address);
case AddressType.UNKNOWN:
return false;
default:
Expand Down Expand Up @@ -130,6 +132,12 @@ class PaimaAddressValidator {
message,
input.userSignature
);
case AddressType.MINA:
return await CryptoManager.Mina().verifySignature(
input.userAddress,
message,
input.userSignature
);
case AddressType.UNKNOWN:
return false;
default:
Expand Down
3 changes: 3 additions & 0 deletions packages/batcher/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const SUPPORTED_CHAIN_NAMES: string[] = [
addressTypeName(AddressType.POLKADOT),
addressTypeName(AddressType.CARDANO),
addressTypeName(AddressType.ALGORAND),
addressTypeName(AddressType.MINA),
];

const POLLING_INTERVAL = 10000;
Expand All @@ -70,6 +71,8 @@ export function addressTypeName(addressType: AddressType): string {
return 'Astar / Polkadot';
case AddressType.ALGORAND:
return 'Algorand';
case AddressType.MINA:
return 'Mina';
case AddressType.UNKNOWN:
return 'Unknown address type';
default:
Expand Down
3 changes: 2 additions & 1 deletion packages/engine/paima-funnel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"dependencies": {
"assert-never": "^1.2.1",
"@dcspark/carp-client": "^3.1.0",
"@dcspark/cardano-multiplatform-lib-nodejs": "5.2.0"
"@dcspark/cardano-multiplatform-lib-nodejs": "5.2.0",
"pg": "^8.11.3"
}
}
Loading

0 comments on commit 0fa78af

Please sign in to comment.