Skip to content

Commit

Permalink
redeploy xtoken on testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Mar 27, 2024
1 parent 5c96fd0 commit 4fbcd17
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apollo/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ BERA_LNV3_ENDPOINT=https://thegraph-g2.darwinia.network/helix/subgraphs/name/lnv
TAIKO_LNV3_ENDPOINT=https://thegraph-g2.darwinia.network/helix/subgraphs/name/lnv3/taiko

XTOKEN_DARWINIA = https://thegraph-g2.darwinia.network/helix/subgraphs/name/xtokentransfer/pangolin
XTOKEN_ETHEREUM = https://api.studio.thegraph.com/query/61328/xtoken-sepolia/v1.1.6
XTOKEN_ETHEREUM = https://api.studio.thegraph.com/query/61328/xtoken-sepolia/v1.1.8
XTOKEN_DISPATCH_DARWINIA = https://thegraph-g2.darwinia.network/helix/subgraphs/name/xtokendispatch/pangolin
XTOKEN_DISPATCH_ETHEREUM = https://api.studio.thegraph.com/query/61328/xtoken-dispatch-sepolia/v1.1.4
4 changes: 2 additions & 2 deletions apollo/src/xtoken/transfer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export class TransferService extends BaseTransferServiceT2 {
{
key: 'PRING',
symbol: 'xPRING',
address: '0xF874fad204757588e67EE55cE93D654b6f5C39C6',
outerAddress: '0xBD50868F36Eb46355eC5a153AbD3a7eA094A5c37',
address: '0x3beb2cf5c2c050bc575350671aa5f06e589386e8',
outerAddress: '0xdE64c6d8b24eeB16D864841d2873aB7a379c45b6',
protocolFee: 0,
decimals: 18,
},
Expand Down
4 changes: 2 additions & 2 deletions subgraph/xtoken/transfer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"scripts": {
"codegen": "graph codegen",
"build": "graph build",
"build-pangolin": "sh generate.sh init && sh generate.sh backing pangolin 0x7E3105E3A13D55d824b6322cbD2049f098a097F6 2567131 && graph codegen && graph build",
"build-sepolia": "sh generate.sh init && sh generate.sh issuing sepolia 0x3B36c2Db4CC5E92Af015Eb572A1C95C95599a8bF 5556101 && graph codegen && graph build",
"build-pangolin": "sh generate.sh init && sh generate.sh backing pangolin 0x24f8a04F0cA0730F4b8eC3241F15aCc6b3f8Da0a 2579332 && graph codegen && graph build",
"build-sepolia": "sh generate.sh init && sh generate.sh issuing sepolia 0x1aeC008Af5c604be3525d0bB70fFcc4D7281f30C 5570673 && graph codegen && graph build",
"build-darwinia": "sh generate.sh init && sh generate.sh backing darwinia2 0xFd626a860F4d4bDB94aF200c218ce62c9647c8b2 2020384 && sh generate.sh issuing darwinia2 0xf16d9682c4883415aee6e78eb0d6ae3507014e42 2020389 && graph codegen && graph build",
"build-crab": "sh generate.sh init && sh generate.sh backing crab2 0xFd626a860F4d4bDB94aF200c218ce62c9647c8b2 2239742 && sh generate.sh issuing crab2 0xf16d9682c4883415aee6e78eb0d6ae3507014e42 2239808 && graph codegen && graph build",
"create-remote-dev": "graph create --access-token ${KEY} --node https://thegraph-g2.darwinia.network/helix/deploy/ xtokentransfer/${NETWORK}",
Expand Down
4 changes: 2 additions & 2 deletions subgraph/xtoken/transfer/src/xTokenBacking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ function isMsglineDeliveryEvent(event: ethereum.Log): boolean {
}

function isWTokenConvertor(address: string): boolean {
return address == "0x3aceb55aad4cdfe1531a9c6f6416753e6a7bdd49"; // testnet
return address == "0xb3a8db63d6fbe0f50a3d4977c3e892543d772c4a"; // testnet
}

function isXRingConvertor(address: string): boolean {
return address == "0x917cb26bfcf9f6be65f387903aa9180613a40f41";
return address == "0x4cdfe9915d2c72506f4fc2363a8eae032e82d1aa";
}

function isGuardAddress(address: string): boolean {
Expand Down
4 changes: 2 additions & 2 deletions subgraph/xtoken/transfer/src/xTokenIssuing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ function isGuardAddress(address: string): boolean {
}

function isWTokenConvertor(address: string): boolean {
return address == "0x3aceb55aad4cdfe1531a9c6f6416753e6a7bdd49"; // testnet
return address == "0xb3a8db63d6fbe0f50a3d4977c3e892543d772c4a"; // testnet
}

function isXRingConvertor(address: string): boolean {
return address == "0x917cb26bfcf9f6be65f387903aa9180613a40f41";
return address == "0x4cdfe9915d2c72506f4fc2363a8eae032e82d1aa";
}

function isXRingConvertorEvent(event: ethereum.Log): boolean {
Expand Down

0 comments on commit 4fbcd17

Please sign in to comment.