Skip to content

Commit

Permalink
deploy mainnet contract (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhiran authored Feb 21, 2025
1 parent 665bbcf commit 9947b1f
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 28 deletions.
8 changes: 4 additions & 4 deletions docs/geod.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ https://dragonfruit-mainnet.w3bstream.com/v1/task

#### bind w3bstream project
```bash
cast send 0x425D3FD5e8e0d0d7c73599adeb9B395505581ec7 "register(uint256)" 9 --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
cast send 0x97c3696E5f9A17569711B002152fd1603f8F06eB "register(uint256)" 9 --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
```
```bash
cast send 0x6EF4559f2023C93F78d27E0151deF083638478d2 "updateConfig(uint256,string,bytes32)" 9 ipfs://ipfs.mainnet.iotex.io/QmUHfDnvWrr2wiC78dw85xfctzawNWAN1TEbzosxwHdzYC 0x8153291c230dd107f102f75e826a11d9d4a8ac3f0f4e1c3619e547f82a94410e --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
cast send 0xee8e318C712aB1731f9c3b708a5Caf2533614AF3 "updateConfig(uint256,string,bytes32)" 9 ipfs://ipfs.mainnet.iotex.io/QmPmnceezQsgWQRwR9seYLQ666rEkfxi4LgLCiLJeBqMpA 0xba270fc9a9a0817e1086ce2ecfd9c951b644a1aa628beb38b18e734c68a7e1f0 --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
```
```bash
cast send 0x6EF4559f2023C93F78d27E0151deF083638478d2 "resume(uint256)" 9 --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
cast send 0xee8e318C712aB1731f9c3b708a5Caf2533614AF3 "resume(uint256)" 9 --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
```

#### bind dapp
```bash
cast send 0x580D9686A7A188746B9f4a06fb5ec9e14E937fde "bindDapp(uint256,address)" 9 0xde44BEd8c143B75deDca6A065Fdabb8AbE95ECC6 --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
cast send 0xeBf9Ab649f9952F9B6e85e59Fac9fED43594e3E0 "bindDapp(uint256,address)" 9 0xb6E9b57016288cBcd87B393E8a604F849bd77805 --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
```
139 changes: 139 additions & 0 deletions smartcontracts/.openzeppelin/unknown-4689.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,56 @@
"address": "0x270bF4c2d0269f8Bf1c2187c20177DCc2f15C3C9",
"txHash": "0xfbe93c0ddcd6d7573cdb0f5e65d4cd0a211b023b5df4fb83eafe913aed0fb6e9",
"kind": "transparent"
},
{
"address": "0xee8e318C712aB1731f9c3b708a5Caf2533614AF3",
"txHash": "0x49aaab315427aedb157255760cfda1cf7b48778a4ddda912c103446e29912d50",
"kind": "transparent"
},
{
"address": "0x97c3696E5f9A17569711B002152fd1603f8F06eB",
"txHash": "0x0ef74a51ef61f029f336be99c472500dbd3178b183f24940650e1debb8cd2bb8",
"kind": "transparent"
},
{
"address": "0xD0a8E3317D20fE7546CD7c7d7964d7D4eDf653F1",
"txHash": "0xa320d65b35d24ac57b37167d94c5f36ab0c7b777bf780c4589fcffb2d6cb0d13",
"kind": "transparent"
},
{
"address": "0xD3E3922f2fF03F6fc677b0820c849079d78b92c4",
"txHash": "0x65d81f74bc4a12052247435b1cfe1acf19d79c40348a0fa079ff69e09d5448c6",
"kind": "transparent"
},
{
"address": "0x6003dFF453096032FfD35f78C95Aa13093a4bae2",
"txHash": "0xeb608a65d49fb94b07cbb8b1434de3ee25f10b0cb8bcd2ef3321a70997fac2b9",
"kind": "transparent"
},
{
"address": "0xa80Ac1D881Bb302fDD1c94df528B6bb4b0a29927",
"txHash": "0xa4ee24f7319f027de19725b4be28ae7d8c687ed90f99829177b1cacf1eae08f6",
"kind": "transparent"
},
{
"address": "0x314200F9c4F516131049e92a69731e0ccBC78218",
"txHash": "0xc80b4d673ddc475652370629d9071902cfd24fd65c849ea1ad5e3950fb165510",
"kind": "transparent"
},
{
"address": "0xeBf9Ab649f9952F9B6e85e59Fac9fED43594e3E0",
"txHash": "0x17f2cc8e3f6c4c93c46e8a702c79ad3e5d0bffd6bf586447968aa3822fe97aff",
"kind": "transparent"
},
{
"address": "0x59F83b20cC6b1872Eea72db3128FF06171db078f",
"txHash": "0xbcbd3d147b98a9bc1834fd312d57ef9dc916c719930847dc927ab1ae93105509",
"kind": "transparent"
},
{
"address": "0xD323f014c598f033C40ae2e02Ed971c472a5BBE4",
"txHash": "0x96bf8a0989c098176b36a292452c16caf513da572a957e6b2f1bcc2fa29ecec0",
"kind": "transparent"
}
],
"impls": {
Expand Down Expand Up @@ -1581,6 +1631,95 @@
},
"namespaces": {}
}
},
"c61ee223181cb1f7b3282f53a66b50c35ddff0f41214da5474f7df559215f97f": {
"address": "0x6A348825cde1584385005d2c2684fB0A7182adE6",
"txHash": "0x55fb62b6ceb4402f86d312363db4f7f8e8df691784aa361110e50cfed0ac1d41",
"layout": {
"solcVersion": "0.8.19",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68"
},
{
"label": "taskManager",
"offset": 2,
"slot": "0",
"type": "t_contract(ITaskManager)1177",
"contract": "W3bstreamRouter",
"src": "contracts/W3bstreamRouter.sol:21"
},
{
"label": "proverStore",
"offset": 0,
"slot": "1",
"type": "t_contract(IProverStore)878",
"contract": "W3bstreamRouter",
"src": "contracts/W3bstreamRouter.sol:22"
},
{
"label": "projectStore",
"offset": 0,
"slot": "2",
"type": "t_address",
"contract": "W3bstreamRouter",
"src": "contracts/W3bstreamRouter.sol:23"
},
{
"label": "dapp",
"offset": 0,
"slot": "3",
"type": "t_mapping(t_uint256,t_address)",
"contract": "W3bstreamRouter",
"src": "contracts/W3bstreamRouter.sol:25"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_contract(IProverStore)878": {
"label": "contract IProverStore",
"numberOfBytes": "20"
},
"t_contract(ITaskManager)1177": {
"label": "contract ITaskManager",
"numberOfBytes": "20"
},
"t_mapping(t_uint256,t_address)": {
"label": "mapping(uint256 => address)",
"numberOfBytes": "32"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
},
"namespaces": {}
}
}
}
}
49 changes: 25 additions & 24 deletions smartcontracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,28 @@ W3bstreamMinter set reward to 0

#### Mainnet

LivenessVerifier deployed to 0x08aB4BBd1D29A6a0Df7511472dbD9B07547651ce
MovementVerifier deployed to 0xE98F9A6a1CDaE7256d34F521801bc93695516dfD
MockDapp deployed to 0xdcAe412fC108eab83a5A5A2A32488696A73543f3
MockDappLiveness deployed to 0x3215c737e88b54Ce4281a4304FEAF9B0b98B307D
MockDappMovement deployed to 0x11E7477eF561c659c4BcEB29e4b3357F61e214e0
W3bstreamProject deployed to 0x6EF4559f2023C93F78d27E0151deF083638478d2
ProjectRegistrar deployed to 0x425D3FD5e8e0d0d7c73599adeb9B395505581ec7
W3bstreamProject binder set to ProjectRegistrar 0x425D3FD5e8e0d0d7c73599adeb9B395505581ec7
ProjectRegistrar registration fee set to 0.0
W3bstreamProver deployed to 0x73aE62021517685c4b8Db4422968BCEc80F84063
W3bstreamVMType deployed to 0xb85FB431Ca3f03fbE556B3DA23ebF21031D48837
W3bstreamDebits deployed to 0x8eaBA35CCf7D379ca163698998f9B6d6714946c5
W3bstreamProjectReward deployed to 0xdfbcAbdB75e17EF2dfCb2bEcf5b67312EA2696F1
W3bstreamTaskManager deployed to 0x0A422759A8c6b22Ae8B9C4364763b614d5c0CD29
W3bstreamRouter deployed to 0x580D9686A7A188746B9f4a06fb5ec9e14E937fde
W3bstreamRewardDistributor deployed to 0x565b7d55e3bb27D07F31937D8Ac043d5Fce44296
W3bstreamMinter deployed to 0x270bF4c2d0269f8Bf1c2187c20177DCc2f15C3C9
MockIoID deployed to 0xd571b981fAd18Dc84D2073eA4772cA2e35628242
W3bstreamRewardDistributor add operator to 0x270bF4c2d0269f8Bf1c2187c20177DCc2f15C3C9
W3bstreamTaskManager add operator to 0x270bF4c2d0269f8Bf1c2187c20177DCc2f15C3C9
W3bstreamTaskManager add operator to 0x580D9686A7A188746B9f4a06fb5ec9e14E937fde
W3bstreamRewardDistributor set operator to 0x270bF4c2d0269f8Bf1c2187c20177DCc2f15C3C9
W3bstreamDebits set operator to 0x0A422759A8c6b22Ae8B9C4364763b614d5c0CD29
W3bstreamMinter set reward to 0
LivenessVerifier deployed to 0x84Ff49bE3f0DC2c93FfFC4b5CD3f99c7E50e1A84
MovementVerifier deployed to 0x673ed3C5691821C05F5Fa05a4Db03a6a89280ed1
MovementBatchVerifier deployed to 0x74b6F0524A5980c43fC6e56715e051cf3630A2c3
MockDapp deployed to 0x5AbC57C06475F9c6A35a54B1DD0a365E84bf72A0
MockDappLiveness deployed to 0x5B69cf6D0267142316379F4e818645dB67216aD2
MockDappMovementBatch deployed to 0xA300DeB486c908dDD5481723d2b8A209c2c40bF3
W3bstreamProject deployed to 0xee8e318C712aB1731f9c3b708a5Caf2533614AF3
ProjectRegistrar deployed to 0x97c3696E5f9A17569711B002152fd1603f8F06eB
W3bstreamProject binder set to ProjectRegistrar 0x97c3696E5f9A17569711B002152fd1603f8F06eB
ProjectRegistrar registration fee set to 0.0
W3bstreamProver deployed to 0xD0a8E3317D20fE7546CD7c7d7964d7D4eDf653F1
W3bstreamVMType deployed to 0xD3E3922f2fF03F6fc677b0820c849079d78b92c4
W3bstreamDebits deployed to 0x6003dFF453096032FfD35f78C95Aa13093a4bae2
W3bstreamProjectReward deployed to 0xa80Ac1D881Bb302fDD1c94df528B6bb4b0a29927
W3bstreamTaskManager deployed to 0x314200F9c4F516131049e92a69731e0ccBC78218
W3bstreamRouter deployed to 0xeBf9Ab649f9952F9B6e85e59Fac9fED43594e3E0
W3bstreamRewardDistributor deployed to 0x59F83b20cC6b1872Eea72db3128FF06171db078f
W3bstreamMinter deployed to 0xD323f014c598f033C40ae2e02Ed971c472a5BBE4
MockIoID deployed to 0xBe68E2B1584AA8CB4165BdC5665dc0812fBD7776
W3bstreamRewardDistributor add operator to 0xD323f014c598f033C40ae2e02Ed971c472a5BBE4
W3bstreamTaskManager add operator to 0xD323f014c598f033C40ae2e02Ed971c472a5BBE4
W3bstreamTaskManager add operator to 0xeBf9Ab649f9952F9B6e85e59Fac9fED43594e3E0
W3bstreamRewardDistributor set operator to 0xD323f014c598f033C40ae2e02Ed971c472a5BBE4
W3bstreamDebits set operator to 0x314200F9c4F516131049e92a69731e0ccBC78218
W3bstreamMinter set reward to 0
31 changes: 31 additions & 0 deletions template/project_file/movement_batch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"defaultVersion": "v1",
"config": [
{
"version": "v1",
"vmTypeID": 1,
"proofType": "movement",
"signedKeys": [
{
"name": "timestamp",
"type": "uint64"
},
{
"name": "latitude",
"type": "uint64"
},
{
"name": "longitude",
"type": "uint64"
}
],
"signatureAlgorithm": "",
"hashAlgorithm": "",
"taskProcessingBatch": 10,
"metadata": "ipfs://ipfs.mainnet.iotex.io/QmTXxKjQEQ8gAzgJjvoxoMB5ocYi16VimHjFwTKf6hEHSm",
"metadataHash": "0xc969f436f4cef28377e3b5ec3ca2457bcaab2795f65c4e1bf3656b57087cd957",
"code": "ipfs://ipfs.mainnet.iotex.io/QmSg3NFgVbHZyUZsHAjrLV7o8CmLKYChNa3CVi4uKKrHeL",
"codeHash": "0xdc3392204a56698891090ea1b729b7a25deba50ccad26ef70ff4b3d51f662ce4"
}
]
}

0 comments on commit 9947b1f

Please sign in to comment.