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

feat: refactor warp monitor to use WarpCore config #4835

Merged
merged 33 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7a16f98
Most of the heavy lifting, still need to rip out a bunch of old logic
tkporter Nov 7, 2024
ac05207
get values working
tkporter Nov 7, 2024
6601fcc
murder some unused bits
tkporter Nov 7, 2024
a4a02f6
shuffle things round
tkporter Nov 7, 2024
8dc1d32
Some nice cleanup
tkporter Nov 7, 2024
5ac2097
some nits
tkporter Nov 7, 2024
7905151
more cleaning
tkporter Nov 7, 2024
bc179c3
itty nitty
tkporter Nov 7, 2024
776dcda
anotha one
tkporter Nov 7, 2024
fb002c7
Do infra stuff
tkporter Nov 7, 2024
c98b468
a little more cleanup
tkporter Nov 7, 2024
97781f5
Test to ensure correct warp route IDs
tkporter Nov 7, 2024
ca9a6db
more nits
tkporter Nov 7, 2024
d84df77
Merge branch 'main' of github.com:abacus-network/abacus-monorepo into…
tkporter Nov 7, 2024
76ed89e
update registryrc
tkporter Nov 7, 2024
a546abb
interactive
tkporter Nov 7, 2024
dfcfe08
Merge branch 'main' of github.com:abacus-network/abacus-monorepo into…
tkporter Nov 7, 2024
9a64c31
nits
tkporter Nov 7, 2024
7f11015
nit
tkporter Nov 7, 2024
29ad8cb
Remove all the deployment YAMLs
tkporter Nov 7, 2024
a3fe735
Merge branch 'main' of github.com:abacus-network/abacus-monorepo into…
tkporter Nov 8, 2024
89181e7
Comments on getTotalSupply / impl it for SVM token
tkporter Nov 8, 2024
979f435
Merge branch 'main' of github.com:abacus-network/abacus-monorepo into…
tkporter Nov 8, 2024
2eb7da8
Move getBridgedSupply to IHypTokenAdapter
tkporter Nov 8, 2024
93302ae
better return types, decrease poll frequency
tkporter Nov 8, 2024
fc6fcc3
pr feedback
tkporter Nov 8, 2024
376930f
exit with code 1 if there's an error
tkporter Nov 8, 2024
92b6dc8
Merge branch 'main' of github.com:abacus-network/abacus-monorepo into…
tkporter Nov 8, 2024
ca0df95
Update registryrc with coingecko info
tkporter Nov 8, 2024
5deee08
update image
tkporter Nov 8, 2024
68baa93
release nits
tkporter Nov 8, 2024
91aaa4a
rename
tkporter Nov 8, 2024
3aa7042
new image
tkporter Nov 8, 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
Prev Previous commit
Next Next commit
Comments on getTotalSupply / impl it for SVM token
  • Loading branch information
tkporter committed Nov 8, 2024
commit 89181e7f81dc0228ae0300ea9058973f374d2183
5 changes: 5 additions & 0 deletions typescript/sdk/src/token/Token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ export class Token implements IToken {
return new TokenAmount(balance, this);
}

/**
* Gets the amount of tokens bridged, if possible.
* @param multiProvider A multiProvider that contains the chain for this token.
* @returns The amount of tokens bridged, or undefined if not supported.
*/
async getBridgedSupply(
tkporter marked this conversation as resolved.
Show resolved Hide resolved
multiProvider: MultiProtocolProvider,
): Promise<TokenAmount | undefined> {
Expand Down
2 changes: 2 additions & 0 deletions typescript/sdk/src/token/adapters/CosmWasmTokenAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export class CwNativeTokenAdapter
}

async getTotalSupply(): Promise<bigint | undefined> {
// Not implemented.
return undefined;
}
}
Expand Down Expand Up @@ -178,6 +179,7 @@ export class CwTokenAdapter
}

async getTotalSupply(): Promise<bigint | undefined> {
// Not implemented.
return undefined;
}
}
Expand Down
1 change: 1 addition & 0 deletions typescript/sdk/src/token/adapters/CosmosTokenAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class CosmNativeTokenAdapter
}

async getTotalSupply(): Promise<bigint | undefined> {
// Not implemented.
return undefined;
}
}
Expand Down
1 change: 1 addition & 0 deletions typescript/sdk/src/token/adapters/EvmTokenAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export class EvmNativeTokenAdapter
}

async getTotalSupply(): Promise<bigint | undefined> {
// Not implemented, native tokens don't have an accessible total supply
return undefined;
}
}
Expand Down
6 changes: 5 additions & 1 deletion typescript/sdk/src/token/adapters/SealevelTokenAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class SealevelNativeTokenAdapter
}

async getTotalSupply(): Promise<bigint | undefined> {
// Not implemented.
return undefined;
}
}
Expand Down Expand Up @@ -196,7 +197,10 @@ export class SealevelTokenAdapter
}

async getTotalSupply(): Promise<bigint | undefined> {
return undefined;
const response = await this.getProvider().getTokenSupply(
this.tokenMintPubKey,
);
return BigInt(response.value.amount);
}
}

Expand Down
Loading