Skip to content

Commit

Permalink
Merge pull request #184 from stxphxn/main
Browse files Browse the repository at this point in the history
feat(adapters): Add Trailblazers season 3 Symmetric Lock contract
  • Loading branch information
myronrotter authored Dec 13, 2024
2 parents a562482 + 51ba422 commit e11367b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion adapters/projects/symmetric/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

const (
LockAddress = "0xc0A740cDd1C647d9c77367E47f0D0c253140E6e3"
LockAddress = "0x9A287E33d7c5Dd701f47731BeCe88bb0Ee1e06fC"
logDepositSignature = "Deposit(address,uint256,uint256,int128,uint256)"
)

Expand Down
14 changes: 7 additions & 7 deletions adapters/projects/symmetric/lock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

func TestLockIndexer(t *testing.T) {
taikoRPC := "https://rpc.taiko.xyz"
blocknumber := int64(445262)
blocknumber := int64(667176)

ctx := context.Background()

Expand All @@ -30,14 +30,14 @@ func TestLockIndexer(t *testing.T) {
locks, err := indexer.Index(ctx, logs...)
assert.NoError(t, err)
assert.Len(t, locks, 2)
txHash := common.HexToHash("0x27058b3cfbd15e3466cdd1b86ab387a473f2ca01c0697eb6b47ae7b33fdf97b0")
user := common.HexToAddress("0x7255Db0d1C1B93Fb756157074fa0613Aa6878F31")
time := 1728397319
duration := 4959481
txHash := common.HexToHash("0x6de4309af3be9f566195c9c33f3ac6d46e7084856988f5695b5ec3d080511882")
user := common.HexToAddress("0xFb4D6288D1c51292dC9899f5F876A2Cf1f9fef43")
time := 1734021131
duration := 8407669
expectedLocks := []adapters.Lock{
{
User: user,
TokenAmount: big.NewInt(45884668717994),
TokenAmount: big.NewInt(413346247810476),
TokenDecimals: adapters.TaikoTokenDecimals,
Token: common.HexToAddress(adapters.WETHAddress),
Duration: uint64(duration),
Expand All @@ -47,7 +47,7 @@ func TestLockIndexer(t *testing.T) {
},
{
User: user,
TokenAmount: big.NewInt(287649277362130342),
TokenAmount: big.NewInt(2926854880867952131),
TokenDecimals: adapters.TaikoTokenDecimals,
Token: common.HexToAddress(adapters.TaikoTokenAddress),
Duration: uint64(duration),
Expand Down
3 changes: 2 additions & 1 deletion whitelist/protocols.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,8 @@
"0xAA60Afa2FceC38EE762c52135f6Cbb22D8128DD7",
"0xa025369dfC8280CC7e88451a0fbe33fE7138eD31",
"0xCDa30664D0Df20b19cB35a834594fA8A6A001e5c",
"0xc0A740cDd1C647d9c77367E47f0D0c253140E6e3"
"0xc0A740cDd1C647d9c77367E47f0D0c253140E6e3",
"0x9A287E33d7c5Dd701f47731BeCe88bb0Ee1e06fC"
]
},
{
Expand Down

0 comments on commit e11367b

Please sign in to comment.