Skip to content

Commit 957c87b

Browse files
feat: core smart contracts v0.2.0 (#485)
* chore: save deployment artifacts for arbitrum prod (16679610504) * chore: update deployment workflow to save artifacts for specified network and environment * feat: add DataProtector contract artifacts for arbitrum and arbitrumSepolia deployments * refactor: Remove deployed addresses and journal files for DataProtectorModule on chain 43113 * feat: add debug artifact for DataProtectorModule deployment on Arbitrum --------- Co-authored-by: GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>
1 parent 46bf401 commit 957c87b

File tree

13 files changed

+118
-7047
lines changed

13 files changed

+118
-7047
lines changed

.github/workflows/core-smart-contract-deploy.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ jobs:
9393
npm run deploy -- --network ${{ inputs.network }} --deployment-id "$DEPLOYMENT_ID"
9494
fi
9595
96+
- name: Save deployment artifacts
97+
if: inputs.network != 'hardhat'
98+
uses: stefanzweifel/git-auto-commit-action@v5
99+
with:
100+
commit_message: 'chore: save deployment artifacts for ${{ inputs.network }} ${{ inputs.environment }} (${{ github.run_id }})'
101+
file_pattern: 'packages/smart-contract/ignition/deployments/*'
102+
commit_user_name: 'GitHub Actions Bot'
103+
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
104+
commit_author: 'GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>'
105+
96106
- name: Verify contract
97107
if: inputs.network != 'hardhat'
98108
continue-on-error: true
@@ -109,13 +119,3 @@ jobs:
109119
DEPLOYMENT_ID="${{ inputs.network }}"
110120
fi
111121
npm run verify -- "$DEPLOYMENT_ID"
112-
113-
- name: Save deployment artifacts
114-
if: inputs.network != 'hardhat'
115-
uses: stefanzweifel/git-auto-commit-action@v5
116-
with:
117-
commit_message: 'chore: save deployment artifacts for ${{ inputs.network }} ${{ inputs.environment }} (${{ github.run_id }})'
118-
file_pattern: 'packages/smart-contract/ignition/deployments/*'
119-
commit_user_name: 'GitHub Actions Bot'
120-
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
121-
commit_author: 'GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>'

packages/smart-contract/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hardhat files
22
cache
3-
artifacts
3+
/artifacts
44

55
# TypeChain files
66
typechain
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"_format": "hh-sol-dbg-1",
3+
"buildInfo": "../build-info/c2a62fb472c97ae3cd4cd0844546de5a.json"
4+
}

packages/smart-contract/ignition/deployments/chain-421614/artifacts/DataProtectorModule#DataProtector.json renamed to packages/smart-contract/ignition/deployments/arbitrum/artifacts/DataProtectorModule#DataProtector.json

File renamed without changes.

packages/smart-contract/ignition/deployments/chain-421614/build-info/c2a62fb472c97ae3cd4cd0844546de5a.json renamed to packages/smart-contract/ignition/deployments/arbitrum/build-info/c2a62fb472c97ae3cd4cd0844546de5a.json

File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"DataProtectorModule#DataProtector": "0xF08f91F7646FDb95a4E24977b8Db91318252A667"
3+
}

packages/smart-contract/ignition/deployments/chain-421614/journal.jsonl renamed to packages/smart-contract/ignition/deployments/arbitrum/journal.jsonl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

2-
{"chainId":421614,"type":"DEPLOYMENT_INITIALIZE"}
3-
{"artifactId":"DataProtectorModule#DataProtector","constructorArgs":["0x3441A0C9FE488c51fcABa2bAAA048720f4D4F72D"],"contractName":"DataProtector","dependencies":[],"from":"0x9990cfb1feb7f47297f54bef4d4ebedf6c5463a3","futureId":"DataProtectorModule#DataProtector","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x0000000000000000000000000000000000000000000000000000000000000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
4-
{"futureId":"DataProtectorModule#DataProtector","networkInteraction":{"data":"0x2630766800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000043560a0604052348015600f57600080fd5b50604051610415380380610415833981016040819052602c91603c565b6001600160a01b0316608052606a565b600060208284031215604d57600080fd5b81516001600160a01b0381168114606357600080fd5b9392505050565b60805161038b61008a60003960008181606f01526096015261038b6000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063167fbf5f1461003b5780637b1039991461006a575b600080fd5b61004e6100493660046101e0565b610091565b6040516001600160a01b03909116815260200160405180910390f35b61004e7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633354bcdb8b8b8b8989896040518763ffffffff1660e01b81526004016100ea969594939291906102c9565b6020604051808303816000875af1158015610109573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012d9190610315565b9050806001600160a01b03167f37b19b8900a9b045473748167f459fa16828f33c13d71473bca4b5e52e5f4d5d888860405161016a929190610339565b60405180910390a29998505050505050505050565b6001600160a01b038116811461019457600080fd5b50565b60008083601f8401126101a957600080fd5b50813567ffffffffffffffff8111156101c157600080fd5b6020830191508360208285010111156101d957600080fd5b9250929050565b60008060008060008060008060a0898b0312156101fc57600080fd5b88356102078161017f565b9750602089013567ffffffffffffffff81111561022357600080fd5b61022f8b828c01610197565b909850965050604089013567ffffffffffffffff81111561024f57600080fd5b61025b8b828c01610197565b909650945050606089013567ffffffffffffffff81111561027b57600080fd5b6102878b828c01610197565b999c989b50969995989497949560800135949350505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03871681526080602082018190526000906102ee90830187896102a0565b82810360408401526103018186886102a0565b915050826060830152979650505050505050565b60006020828403121561032757600080fd5b81516103328161017f565b9392505050565b60208152600061034d6020830184866102a0565b94935050505056fea2646970667358221220f178247810e731b2c7a76fcefad2ca335779409b90779f5dbe730d9eac01709164736f6c634300081d00330000000000000000000000003441a0c9fe488c51fcaba2baaa048720f4d4f72d0000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
5-
{"futureId":"DataProtectorModule#DataProtector","networkInteractionId":1,"nonce":97,"type":"TRANSACTION_PREPARE_SEND"}
6-
{"futureId":"DataProtectorModule#DataProtector","networkInteractionId":1,"nonce":97,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"200000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xc10fbaad2558bc7011c91863a7c841220773d42b0d375bf4e164c7baeeda6b1e"},"type":"TRANSACTION_SEND"}
7-
{"futureId":"DataProtectorModule#DataProtector","hash":"0xc10fbaad2558bc7011c91863a7c841220773d42b0d375bf4e164c7baeeda6b1e","networkInteractionId":1,"receipt":{"blockHash":"0xfbb0455fdfb0c322eca055097aeeaba8a407cde62ffd951ca80f2c6754682acc","blockNumber":145960686,"logs":[{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":0,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000002296daedd3090750a80ffb2d0147669984909ed2","0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
8-
{"futureId":"DataProtectorModule#DataProtector","result":{"address":"0x2296daeDD3090750a80fFB2D0147669984909ED2","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
2+
{"chainId":42161,"type":"DEPLOYMENT_INITIALIZE"}
3+
{"artifactId":"DataProtectorModule#DataProtector","constructorArgs":["0x07Cc4E1EA30dD02796795876509A3BfC5053128D"],"contractName":"DataProtector","dependencies":[],"from":"0x111167a21d2bdb8e10b84aee3501059d50756b67","futureId":"DataProtectorModule#DataProtector","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x0000000000000000000000000000000000000000000000000000000000000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
4+
{"futureId":"DataProtectorModule#DataProtector","networkInteraction":{"data":"0x2630766800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000043560a0604052348015600f57600080fd5b50604051610415380380610415833981016040819052602c91603c565b6001600160a01b0316608052606a565b600060208284031215604d57600080fd5b81516001600160a01b0381168114606357600080fd5b9392505050565b60805161038b61008a60003960008181606f01526096015261038b6000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063167fbf5f1461003b5780637b1039991461006a575b600080fd5b61004e6100493660046101e0565b610091565b6040516001600160a01b03909116815260200160405180910390f35b61004e7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633354bcdb8b8b8b8989896040518763ffffffff1660e01b81526004016100ea969594939291906102c9565b6020604051808303816000875af1158015610109573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012d9190610315565b9050806001600160a01b03167f37b19b8900a9b045473748167f459fa16828f33c13d71473bca4b5e52e5f4d5d888860405161016a929190610339565b60405180910390a29998505050505050505050565b6001600160a01b038116811461019457600080fd5b50565b60008083601f8401126101a957600080fd5b50813567ffffffffffffffff8111156101c157600080fd5b6020830191508360208285010111156101d957600080fd5b9250929050565b60008060008060008060008060a0898b0312156101fc57600080fd5b88356102078161017f565b9750602089013567ffffffffffffffff81111561022357600080fd5b61022f8b828c01610197565b909850965050604089013567ffffffffffffffff81111561024f57600080fd5b61025b8b828c01610197565b909650945050606089013567ffffffffffffffff81111561027b57600080fd5b6102878b828c01610197565b999c989b50969995989497949560800135949350505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03871681526080602082018190526000906102ee90830187896102a0565b82810360408401526103018186886102a0565b915050826060830152979650505050505050565b60006020828403121561032757600080fd5b81516103328161017f565b9392505050565b60208152600061034d6020830184866102a0565b94935050505056fea2646970667358221220f178247810e731b2c7a76fcefad2ca335779409b90779f5dbe730d9eac01709164736f6c634300081d003300000000000000000000000007cc4e1ea30dd02796795876509a3bfc5053128d0000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
5+
{"futureId":"DataProtectorModule#DataProtector","networkInteractionId":1,"nonce":56,"type":"TRANSACTION_PREPARE_SEND"}
6+
{"futureId":"DataProtectorModule#DataProtector","networkInteractionId":1,"nonce":56,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x57aa62934eaea2a5ba50bd81f25bd91cd1fd1bd210783578b46ca5eb31e6088c"},"type":"TRANSACTION_SEND"}
7+
{"futureId":"DataProtectorModule#DataProtector","hash":"0x57aa62934eaea2a5ba50bd81f25bd91cd1fd1bd210783578b46ca5eb31e6088c","networkInteractionId":1,"receipt":{"blockHash":"0xbecbd6a667d3b5dcedd12ede2c1ac4fc19b236a730d127ce13fb5bb889648eee","blockNumber":363889786,"logs":[{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000f08f91f7646fdb95a4e24977b8db91318252a667","0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
8+
{"futureId":"DataProtectorModule#DataProtector","result":{"address":"0xF08f91F7646FDb95a4E24977b8Db91318252A667","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}

packages/smart-contract/ignition/deployments/chain-43113/artifacts/DataProtectorModule#DataProtector.json renamed to packages/smart-contract/ignition/deployments/arbitrumSepolia-dev/artifacts/DataProtectorModule#DataProtector.json

File renamed without changes.
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"_format": "hh-sol-artifact-1",
3+
"contractName": "DataProtector",
4+
"sourceName": "contracts/DataProtector.sol",
5+
"abi": [
6+
{
7+
"inputs": [
8+
{
9+
"internalType": "contract IDatasetRegistry",
10+
"name": "_registry",
11+
"type": "address"
12+
}
13+
],
14+
"stateMutability": "nonpayable",
15+
"type": "constructor"
16+
},
17+
{
18+
"anonymous": false,
19+
"inputs": [
20+
{
21+
"indexed": true,
22+
"internalType": "contract IDataset",
23+
"name": "dataset",
24+
"type": "address"
25+
},
26+
{
27+
"indexed": false,
28+
"internalType": "string",
29+
"name": "schema",
30+
"type": "string"
31+
}
32+
],
33+
"name": "DatasetSchema",
34+
"type": "event"
35+
},
36+
{
37+
"inputs": [
38+
{
39+
"internalType": "address",
40+
"name": "_datasetOwner",
41+
"type": "address"
42+
},
43+
{
44+
"internalType": "string",
45+
"name": "_datasetName",
46+
"type": "string"
47+
},
48+
{
49+
"internalType": "string",
50+
"name": "_datasetSchema",
51+
"type": "string"
52+
},
53+
{
54+
"internalType": "bytes",
55+
"name": "_datasetMultiaddr",
56+
"type": "bytes"
57+
},
58+
{
59+
"internalType": "bytes32",
60+
"name": "_datasetChecksum",
61+
"type": "bytes32"
62+
}
63+
],
64+
"name": "createDatasetWithSchema",
65+
"outputs": [
66+
{
67+
"internalType": "contract IDataset",
68+
"name": "",
69+
"type": "address"
70+
}
71+
],
72+
"stateMutability": "nonpayable",
73+
"type": "function"
74+
},
75+
{
76+
"inputs": [],
77+
"name": "registry",
78+
"outputs": [
79+
{
80+
"internalType": "contract IDatasetRegistry",
81+
"name": "",
82+
"type": "address"
83+
}
84+
],
85+
"stateMutability": "view",
86+
"type": "function"
87+
}
88+
],
89+
"bytecode": "0x60a0604052348015600f57600080fd5b50604051610415380380610415833981016040819052602c91603c565b6001600160a01b0316608052606a565b600060208284031215604d57600080fd5b81516001600160a01b0381168114606357600080fd5b9392505050565b60805161038b61008a60003960008181606f01526096015261038b6000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063167fbf5f1461003b5780637b1039991461006a575b600080fd5b61004e6100493660046101e0565b610091565b6040516001600160a01b03909116815260200160405180910390f35b61004e7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633354bcdb8b8b8b8989896040518763ffffffff1660e01b81526004016100ea969594939291906102c9565b6020604051808303816000875af1158015610109573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012d9190610315565b9050806001600160a01b03167f37b19b8900a9b045473748167f459fa16828f33c13d71473bca4b5e52e5f4d5d888860405161016a929190610339565b60405180910390a29998505050505050505050565b6001600160a01b038116811461019457600080fd5b50565b60008083601f8401126101a957600080fd5b50813567ffffffffffffffff8111156101c157600080fd5b6020830191508360208285010111156101d957600080fd5b9250929050565b60008060008060008060008060a0898b0312156101fc57600080fd5b88356102078161017f565b9750602089013567ffffffffffffffff81111561022357600080fd5b61022f8b828c01610197565b909850965050604089013567ffffffffffffffff81111561024f57600080fd5b61025b8b828c01610197565b909650945050606089013567ffffffffffffffff81111561027b57600080fd5b6102878b828c01610197565b999c989b50969995989497949560800135949350505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03871681526080602082018190526000906102ee90830187896102a0565b82810360408401526103018186886102a0565b915050826060830152979650505050505050565b60006020828403121561032757600080fd5b81516103328161017f565b9392505050565b60208152600061034d6020830184866102a0565b94935050505056fea2646970667358221220f178247810e731b2c7a76fcefad2ca335779409b90779f5dbe730d9eac01709164736f6c634300081d0033",
90+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063167fbf5f1461003b5780637b1039991461006a575b600080fd5b61004e6100493660046101e0565b610091565b6040516001600160a01b03909116815260200160405180910390f35b61004e7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633354bcdb8b8b8b8989896040518763ffffffff1660e01b81526004016100ea969594939291906102c9565b6020604051808303816000875af1158015610109573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012d9190610315565b9050806001600160a01b03167f37b19b8900a9b045473748167f459fa16828f33c13d71473bca4b5e52e5f4d5d888860405161016a929190610339565b60405180910390a29998505050505050505050565b6001600160a01b038116811461019457600080fd5b50565b60008083601f8401126101a957600080fd5b50813567ffffffffffffffff8111156101c157600080fd5b6020830191508360208285010111156101d957600080fd5b9250929050565b60008060008060008060008060a0898b0312156101fc57600080fd5b88356102078161017f565b9750602089013567ffffffffffffffff81111561022357600080fd5b61022f8b828c01610197565b909850965050604089013567ffffffffffffffff81111561024f57600080fd5b61025b8b828c01610197565b909650945050606089013567ffffffffffffffff81111561027b57600080fd5b6102878b828c01610197565b999c989b50969995989497949560800135949350505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03871681526080602082018190526000906102ee90830187896102a0565b82810360408401526103018186886102a0565b915050826060830152979650505050505050565b60006020828403121561032757600080fd5b81516103328161017f565b9392505050565b60208152600061034d6020830184866102a0565b94935050505056fea2646970667358221220f178247810e731b2c7a76fcefad2ca335779409b90779f5dbe730d9eac01709164736f6c634300081d0033",
91+
"linkReferences": {},
92+
"deployedLinkReferences": {}
93+
}

packages/smart-contract/ignition/deployments/chain-421614/deployed_addresses.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)