Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySciTech committed Nov 7, 2024
1 parent 881d600 commit 140b79c
Show file tree
Hide file tree
Showing 6 changed files with 239 additions and 82 deletions.
10 changes: 10 additions & 0 deletions applications/subswap/frontend/node_modules/.yarn-integrity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions applications/subswap/frontend/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


266 changes: 209 additions & 57 deletions frontend/abi/endpointABI.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnableInvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
{
"inputs": [],
"name": "ReentrancyGuardReentrantCall",
"type": "error"
},
{
"anonymous": false,
"inputs": [
Expand All @@ -24,6 +56,49 @@
"name": "ChainRegistered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "sid",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "sua",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "rid",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "rua",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "FailureData",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -99,6 +174,49 @@
"name": "PacketReceived",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "rid",
"type": "uint256"
},
{
"internalType": "address",
"name": "rua",
"type": "address"
}
],
"name": "allowanceRua",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sua",
"type": "address"
}
],
"name": "allowanceSua",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -157,56 +275,21 @@
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"name": "",
"type": "uint256"
},
{
"internalType": "contract IFullCheckpoint",
"name": "csc",
"type": "address"
},
{
"internalType": "contract Endpoint",
"name": "endpoint",
"type": "address"
}
],
"name": "editChain",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"name": "",
"type": "uint256"
}
],
"name": "getChain",
"name": "failureData",
"outputs": [
{
"components": [
{
"internalType": "contract IFullCheckpoint",
"name": "csc",
"type": "address"
},
{
"internalType": "contract Endpoint",
"name": "endpoint",
"type": "address"
},
{
"internalType": "uint256",
"name": "lastIndex",
"type": "uint256"
}
],
"internalType": "struct Endpoint.Chain",
"name": "chain",
"type": "tuple"
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
Expand All @@ -225,28 +308,15 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getChainIds",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"name": "rid",
"type": "uint256"
}
],
"name": "getChainIndex",
"name": "getFailureDataLength",
"outputs": [
{
"internalType": "uint256",
Expand Down Expand Up @@ -359,6 +429,25 @@
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
}
],
"name": "getReceiveChainLastIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -388,6 +477,69 @@
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
}
],
"name": "getSendChain",
"outputs": [
{
"components": [
{
"internalType": "contract IFullCheckpoint",
"name": "csc",
"type": "address"
},
{
"internalType": "contract Endpoint",
"name": "endpoint",
"type": "address"
}
],
"internalType": "struct Endpoint.Chain",
"name": "chain",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getSendChainIds",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "sid",
"type": "uint256"
}
],
"name": "getSendChainLastIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -564,7 +716,7 @@
"inputs": [
{
"internalType": "uint256",
"name": "cid",
"name": "csid",
"type": "uint256"
},
{
Expand Down
11 changes: 4 additions & 7 deletions frontend/config/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
const contractMapping = {
551: {
endpoint: "0x2a79C790Dfc413aAA78af2a617023922325D6e47",
oracle: "0x8EC22d14cD38FAB7C5AeF1d97105A6ec3FefEe5f",
sample: "0xabc8aa43120ff0f53749e9d8b525f50da489e0d9",
51: {
endpoint: "0xE22498303DA63808Ee0adEc5b8D5819ea5581781", //zero addr parentchain
},
5173: {
endpoint: "0xD4449Bf3f8E6a1b3fb5224F4e1Ec4288BD765547",
25087: {
endpoint: "0x59BbF0f7FB2ACbb7D5d7b2F6b432b6E9C1Ec8CbE", //zero addr subnet
},
};

module.exports = {
contractMapping,
};
Loading

0 comments on commit 140b79c

Please sign in to comment.