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

07 29 2024 update with clone factory #13

Merged
merged 10 commits into from
Sep 27, 2024
32 changes: 23 additions & 9 deletions .github/workflows/subgraph-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,29 @@ jobs:
with:
node-version: 16

- name: Install Docker
run: |
# Install dependencies for Docker installation
sudo apt-get update
sudo apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release

# Add Docker’s official GPG key
echo "deb [arch=$(dpkg --print-architecture) ] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

# Update the package database and install Docker
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io

- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

- name: Install dependencies
run: |
npm ci
Expand All @@ -32,12 +55,3 @@ jobs:

- name: Stop containers
run: docker-compose down

- name: Graph Authentication
run: npx graph auth --product hosted-service $GRAPH_TOKEN

- name: Prepare subgraph manifest
run: npx mustache config/mumbai.json subgraph.template.yaml subgraph.yaml

- name: Graph Deployments
run: npx graph deploy --product hosted-service gildlab/offchainassetvault-mumbai
61 changes: 61 additions & 0 deletions abis/CloneFactory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[
{
"type": "function",
"name": "clone",
"inputs": [
{
"name": "implementation",
"type": "address",
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "NewClone",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "implementation",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "clone",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "InitializationFailed",
"inputs": []
},
{
"type": "error",
"name": "ZeroImplementationCodeSize",
"inputs": []
}
]
Loading
Loading