add: testnet wellKnown (#799)

* add: testnet wellKnown

* update: canonical token addresses for alfajores/kovan

* export types
buddies-main-deployment
Erin Hales 3 years ago committed by GitHub
parent 39a99a7800
commit 82b74a232b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      typescript/optics-provider/src/optics/domains/index.ts
  2. 5
      typescript/optics-provider/src/optics/index.ts
  3. 5
      typescript/optics-provider/src/optics/tokens/index.ts
  4. 16
      typescript/optics-provider/src/optics/tokens/testnetWellKnown.ts
  5. 0
      typescript/optics-provider/src/optics/tokens/wellKnown.ts

@ -1,4 +1,4 @@
export { OpticsDomain, ReplicaInfo } from './domain';
export type { OpticsDomain, ReplicaInfo } from './domain';
export { mainnetDomains } from './mainnet';
export { devDomains } from './dev';
export { stagingDomains } from './staging';

@ -6,10 +6,11 @@ export {
RequestDetailsMessage,
} from './messages/BridgeMessage';
export { OpticsMessage } from './messages/OpticsMessage';
export { ResolvedTokenInfo, TokenIdentifier, tokens } from './tokens';
export type { ResolvedTokenInfo, TokenIdentifier } from './tokens';
export { tokens, testnetTokens } from './tokens';
export type { OpticsDomain } from './domains';
export {
OpticsDomain,
mainnetDomains,
devDomains,
stagingDomains,

@ -1,6 +1,7 @@
import { BytesLike } from 'ethers';
import { xapps } from '@optics-xyz/ts-interface';
import wellKnown from './well-known';
import wellKnown from './wellKnown';
import testnetWellKnown from './testnetWellKnown';
export interface TokenIdentifier {
domain: string | number;
@ -17,4 +18,4 @@ export type ResolvedTokenInfo = {
};
export const tokens = wellKnown;
export default tokens;
export const testnetTokens = testnetWellKnown;

@ -0,0 +1,16 @@
import { TokenIdentifier } from './index';
const Alfajores: TokenIdentifier = {
domain: 'alfajores',
id: '0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9',
};
const Kovan: TokenIdentifier = {
domain: 'kovan',
id: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
};
export default {
Alfajores,
Kovan,
};
Loading…
Cancel
Save