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

Initial draft for ARB-Griff #89

Merged
merged 4 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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.6",
"description": "Javascript client for Open Dollar",
"license": "MIT",
"main": "lib",
Expand Down
42 changes: 41 additions & 1 deletion src/contracts/addreses.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
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,
ARB_Griff,
} from '../utils'

// All keys are mandatory
export type ContractKey =
Expand Down Expand Up @@ -238,6 +251,33 @@ 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,
},
'ARB-Griff': {
address: '0x912CE59144191C1204E64559FE8253a0e49E6548',
collateralJoin: '0x9c4dea4c1e4c9300c8eb67356e701cafdb966c37',
collateralAuctionHouse: '0x4fb268e154571b7a99f85d69732255b16b98b4b4',
decimals: 18,
symbol: 'ARB-Griff',
bytes32String: ARB_Griff,
isCollateral: true,
},
},
'arbitrum-sepolia': {
OD: {
Expand Down
32 changes: 12 additions & 20 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,18 @@ 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'
export const ARB_Griff = '0x4152422d47726966660000000000000000000000000000000000000000000000'

/**
* 0x0 address or burn address
Expand Down Expand Up @@ -149,17 +152,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
Loading