Skip to content

Commit

Permalink
Add Pt tokens and simplify icons
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0neerpat committed Jul 25, 2024
1 parent 171e6d9 commit 000eb34
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opendollar/sdk",
"version": "1.7.4-rc.3",
"version": "1.7.5",
"description": "Javascript client for Open Dollar",
"license": "MIT",
"main": "lib",
Expand Down
20 changes: 19 additions & 1 deletion src/contracts/addreses.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WETH, ARB, OD, WSTETH, CBETH, RETH, OP, GRT, PUFETH } from '../utils'
import { WETH, ARB, OD, WSTETH, CBETH, RETH, OP, GRT, PUFETH, PT_wstETH_26JUN2025, PT_rETH_26JUN2025 } from '../utils'

// All keys are mandatory
export type ContractKey =
Expand Down Expand Up @@ -238,6 +238,24 @@ const tokens: Record<GebDeployment, TokenList> = {
bytes32String: GRT,
isCollateral: true,
},
'PT-rETH-26JUN2025': {
address: '0x685155D3BD593508Fe32Be39729810A591ED9c87',
collateralJoin: '0x3bdbf35fda5b7235e7a381466c436392f259c22c',
collateralAuctionHouse: '0x2cC2D6b1027E4d56D6C73dFb8624142F6ac478D5',
decimals: 18,
symbol: 'PT-rETH-26JUN2025',
bytes32String: PT_rETH_26JUN2025,
isCollateral: true,
},
'PT-wstETH-26JUN2025': {
address: '0x1255638EFeca62e12E344E0b6B22ea853eC6e2c7',
collateralJoin: '0xe4c6aff8d5733905d35cb590a52ee51318d27f49',
collateralAuctionHouse: '0xd5Bf49BE72D6c2dbaB744086cD879C18b8071E65',
decimals: 18,
symbol: 'PT-wstETH-26JUN2025',
bytes32String: PT_wstETH_26JUN2025,
isCollateral: true,
},
},
'arbitrum-sepolia': {
OD: {
Expand Down
31 changes: 11 additions & 20 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,17 @@ export function fromBigNumber(number: BigNumber, decimals: number = 18): number
/**
* byte32 values for each collateral
*/
const WETH = '0x5745544800000000000000000000000000000000000000000000000000000000'
const ARB = '0x4152420000000000000000000000000000000000000000000000000000000000'
const OD = '0x4f44000000000000000000000000000000000000000000000000000000000000'
const WSTETH = '0x5753544554480000000000000000000000000000000000000000000000000000'
const CBETH = '0x4342455448000000000000000000000000000000000000000000000000000000'
const RETH = '0x5245544800000000000000000000000000000000000000000000000000000000'
const OP = '0x4f50000000000000000000000000000000000000000000000000000000000000'
const PUFETH = '0x5055464554480000000000000000000000000000000000000000000000000000'
const GRT = '0x4752540000000000000000000000000000000000000000000000000000000000'
export const WETH = '0x5745544800000000000000000000000000000000000000000000000000000000'
export const ARB = '0x4152420000000000000000000000000000000000000000000000000000000000'
export const OD = '0x4f44000000000000000000000000000000000000000000000000000000000000'
export const WSTETH = '0x5753544554480000000000000000000000000000000000000000000000000000'
export const CBETH = '0x4342455448000000000000000000000000000000000000000000000000000000'
export const RETH = '0x5245544800000000000000000000000000000000000000000000000000000000'
export const OP = '0x4f50000000000000000000000000000000000000000000000000000000000000'
export const PUFETH = '0x5055464554480000000000000000000000000000000000000000000000000000'
export const GRT = '0x4752540000000000000000000000000000000000000000000000000000000000'
export const PT_wstETH_26JUN2025 = '0x50542d7773744554482d32364a554e3230323500000000000000000000000000'
export const PT_rETH_26JUN2025 = '0x50542d724554482d32364a554e32303235000000000000000000000000000000'

/**
* 0x0 address or burn address
Expand Down Expand Up @@ -149,17 +151,6 @@ const getRequireString = (error: any): string | null => {
}

export {
// Constants
WETH,
ARB,
OD,
WSTETH,
CBETH,
RETH,
OP,
GRT,
PUFETH,
// MAGIC,
NULL_ADDRESS,
WAD,
RAY,
Expand Down

0 comments on commit 000eb34

Please sign in to comment.