Skip to content

Commit

Permalink
fix: w3ab pass adapter
Browse files Browse the repository at this point in the history
Signed-off-by: Gita Alekhya Paul <[email protected]>
  • Loading branch information
gitaalekhyapaul committed Jan 16, 2025
1 parent 2d90c0b commit 9f14a07
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/__tests__/acceptance/staking-contracts-service.acceptance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ describe('Staking contracts service', async () => {
c => angelBlockApiKey != null || c.contractName !== 'AngelBlock',
);

it('gets the total adapters count', () => {
debug(
'Injected adapters: %O',
service.stakingContracts.map(c => {
return {
contractName: c.contractName,
contractAddress: c.contractAddress,
chainId: c.chainId,
supportedAssets: c.supportedAssets,
};
}),
);
debug('Total adapters count: %s', service.stakingContracts.length);
expect(service.stakingContracts.length).to.be.greaterThan(0);
});

contracts.forEach(contract => {
it('gets staked token ids for ' + contract.contractName, async () => {
debug('Contract: %s', contract.contractName);
Expand Down
1 change: 1 addition & 0 deletions src/adapters/W3ABPass.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class W3ABPassContractAdapter extends BaseStakingContractAdapter {
*/
supportedAssets: StakingAsset[] = [
{
name: 'W3AB Pass',
asset: 'ERC721:0xb1E19FA955A5612B5D849e5c641F0B4cf9879d17',
},
];
Expand Down

0 comments on commit 9f14a07

Please sign in to comment.