-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
119 changed files
with
1,431 additions
and
1,026 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Network Diff Upgrade | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Run_Bytecode_Diff_Upgrade: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
|
||
- name: Gamma Network Diff Report | ||
uses: ./.github/workflows/Bytecode_diff_report.yml | ||
with: | ||
origin_environment: alpha | ||
target_environment: gamma | ||
|
||
- name: Upgrade Gamma Facets | ||
uses: ./.github/workflows/Upgrade_network_facets.yml | ||
with: | ||
environment_name: gamma |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"address": "0xEb7f78a7C86216FB039E40781D7E51cA3FA22393" | ||
} |
2 changes: 1 addition & 1 deletion
2
contracts/deployments/omega/base/addresses/membershipFacet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"address": "0x4126B770453000BE73bcf678bd9828fA9bE5F3F3" | ||
"address": "0x364Ad89E6ef239D4489cd9f462a28ce391A52220" | ||
} |
3 changes: 3 additions & 0 deletions
3
contracts/deployments/omega/base/addresses/partnerRegistryFacet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"address": "0x8762Fa32Dd5e9B83d137C32A6CF5556292f385f3" | ||
} |
3 changes: 3 additions & 0 deletions
3
contracts/deployments/omega/base/addresses/referralsFacet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"address": "0x91F9C60deB821fB6c9ce8b3E8a964BD7D7ba8cdE" | ||
} |
3 changes: 3 additions & 0 deletions
3
contracts/deployments/omega/base/addresses/spaceEntitlementGatedFacet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"address": "0xC11Bc92Fd7F2054B4753058bAa44C441aa8A697e" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.23; | ||
|
||
// utils | ||
|
||
//interfaces | ||
import {IChannelBase, IChannel} from "contracts/src/spaces/facets/channels/IChannel.sol"; | ||
|
||
//libraries | ||
import {ChannelService__ChannelDoesNotExist} from "contracts/src/spaces/facets/channels/ChannelService.sol"; | ||
|
||
//contracts | ||
import {Multicallable} from "solady/utils/Multicallable.sol"; | ||
import {BaseSetup} from "../BaseSetup.sol"; | ||
|
||
contract MulticallTest is BaseSetup { | ||
function test_multicall() external { | ||
bytes32 channelId = "my-cool-channel"; | ||
string memory channelMetadata = "Metadata"; | ||
|
||
bytes[] memory data = new bytes[](3); | ||
data[0] = abi.encodeCall( | ||
IChannel.createChannel, | ||
(channelId, channelMetadata, new uint256[](0)) | ||
); | ||
data[1] = abi.encodeCall(IChannel.getChannel, (channelId)); | ||
data[2] = abi.encodeCall(IChannel.removeChannel, (channelId)); | ||
|
||
vm.prank(founder); | ||
bytes[] memory results = Multicallable(everyoneSpace).multicall(data); | ||
|
||
assertEq(results.length, 3); | ||
assertEq(results[0].length, 0); | ||
IChannelBase.Channel memory channel = abi.decode( | ||
results[1], | ||
(IChannelBase.Channel) | ||
); | ||
assertEq(channel.id, channelId); | ||
assertEq(channel.disabled, false); | ||
assertEq(channel.metadata, channelMetadata); | ||
assertEq(channel.roleIds, new uint256[](0)); | ||
assertEq(results[2].length, 0); | ||
} | ||
|
||
function test_revert_multicall() external { | ||
bytes32 channelId = "my-cool-channel"; | ||
|
||
bytes[] memory data = new bytes[](1); | ||
data[0] = abi.encodeCall(IChannel.getChannel, (channelId)); | ||
|
||
vm.expectRevert(ChannelService__ChannelDoesNotExist.selector); | ||
Multicallable(everyoneSpace).multicall(data); | ||
} | ||
} |
Oops, something went wrong.