Skip to content

Commit

Permalink
update guard contract
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Feb 6, 2024
1 parent 5ae94ac commit edb1b7a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions apollo/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ ARBITRUM_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/61328/lnv3-arbitrum
ZKSYNC_LNV3_ENDPOINT=https://api.studio.thegraph.com/query/61328/lnv3-zksepolia/v1.0.5

XTOKEN_DARWINIA = https://thegraph-g2.darwinia.network/helix/subgraphs/name/xtokentransfer/pangolin
XTOKEN_ETHEREUM = https://api.studio.thegraph.com/query/61328/xtoken-sepolia/v1.0.5
XTOKEN_ETHEREUM = https://api.studio.thegraph.com/query/61328/xtoken-sepolia/v1.1.3
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.0
XTOKEN_DISPATCH_ETHEREUM = https://api.studio.thegraph.com/query/61328/xtoken-dispatch-sepolia/v1.1.3
8 changes: 4 additions & 4 deletions apollo/src/guard/guard.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export class GuardService {

private readonly guardConfig: GuardInfo[] = [
{
fromChain: 'crab-dvm',
fromChain: 'pangolin-dvm',
toChain: 'sepolia',
bridge: 'xtoken-crab-dvm',
bridge: 'xtoken-pangolin-dvm',
chainId: 11155111,
depositor: '0xf22D0bb66b39745Ae6e3fEa3E5859d7f0b367Fd1',
contract: '0xcc357d5A8E5dBD52bC508E0FE491137d912F6bc8',
depositor: '0x371019523b25Ff4F26d977724f976566b08bf741',
contract: '0x3f200d3b6DA62bcA2F8a93F663b172A7f1AaE9ba',
},
];

Expand Down
4 changes: 2 additions & 2 deletions subgraph/xtoken/messageDispatcher/src/dispatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const STATUS_FAILED = 1;
const STATUS_DELIVERED_SUCCESSED = 2;

function isMsglineContract(event: ethereum.Log): boolean {
return event.address.toHexString() == '0x00000000001523057a05d6293c1e5171ee33ee0a' ||
event.address.toHexString() == '0x00000000046bc530804d66b6b64f7af69b4e4e81';
return event.address.toHexString() == '0x0000000005d961f950ada391c1511c92bbc64d9f' ||
event.address.toHexString() == '0x00000000001523057a05d6293c1e5171ee33ee0a';
}

function isMsglineDispatchEvent(event: ethereum.Log): boolean {
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 @@ -8,8 +8,8 @@ import { xTokenNonceOrder, TransferRecord, RefundTransferRecord } from "../gener
const transferNonceId = "0x01";

function isMsglineContract(event: ethereum.Log): boolean {
return event.address.toHexString() == '0x00000000001523057a05d6293c1e5171ee33ee0a' ||
event.address.toHexString() == '0x00000000046bc530804d66b6b64f7af69b4e4e81';
return event.address.toHexString() == '0x0000000005d961f950ada391c1511c92bbc64d9f' ||
event.address.toHexString() == '0x00000000001523057a05d6293c1e5171ee33ee0a';
}

function isMsglineAcceptEvent(event: ethereum.Log): 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 @@ -8,8 +8,8 @@ import { xTokenNonceOrder, TransferRecord, RefundTransferRecord } from "../gener
const transferNonceId = "0x01";

function isMsglineContract(event: ethereum.Log): boolean {
return event.address.toHexString() == '0x00000000001523057a05d6293c1e5171ee33ee0a' ||
event.address.toHexString() == '0x00000000046bc530804d66b6b64f7af69b4e4e81';
return event.address.toHexString() == '0x0000000005d961f950ada391c1511c92bbc64d9f' ||
event.address.toHexString() == '0x00000000001523057a05d6293c1e5171ee33ee0a';
}

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

0 comments on commit edb1b7a

Please sign in to comment.