Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
50562c0
stash precompile changes in other branch and push pallet changes leak…
4meta5 Oct 20, 2022
9395e66
still leaking std
4meta5 Oct 20, 2022
8ed14e7
using sp std phantomdata did not fix
4meta5 Oct 21, 2022
315116a
ty @nanocryk for std leak fix
4meta5 Oct 21, 2022
8f24362
init referenda precompile needs tryfrom u8 for origins
4meta5 Oct 23, 2022
d83be8e
referenda submit precompile fn
4meta5 Oct 23, 2022
21ffc60
signed extrinsics for referenda precompile
4meta5 Oct 23, 2022
0eb6dc3
preimage precompile
4meta5 Oct 24, 2022
09e90db
init conviction voting precompile
4meta5 Oct 24, 2022
138a848
referenda delegate undelegate unlock
4meta5 Oct 25, 2022
8e1a709
fixes
4meta5 Oct 26, 2022
276d8a4
fix
4meta5 Oct 26, 2022
a940199
clean
4meta5 Oct 26, 2022
a9ab0e3
improve revert reasons for class and index inputs
4meta5 Oct 26, 2022
9067ba0
clean
4meta5 Oct 26, 2022
467e845
init accessors and clean
4meta5 Nov 3, 2022
c6c8d1b
Merge branch 'master' into amar-gov2-precompiles
4meta5 Nov 7, 2022
4d8f70a
referenda precompile
4meta5 Nov 16, 2022
a234655
clean
4meta5 Nov 16, 2022
def4e70
Merge branch 'master' into amar-gov2-precompiles
4meta5 Nov 21, 2022
e86512c
clean and init referenda precompile interface
4meta5 Nov 21, 2022
66e5164
into master
4meta5 Jan 2, 2023
c389722
fix merge
4meta5 Jan 4, 2023
5bb1673
try mock referenda precompile but did not succeed
4meta5 Jan 4, 2023
e7c765b
save
4meta5 Jan 6, 2023
c5e2220
fix referenda mock
nanocryk Jan 9, 2023
d05803f
add dot sol files for preimage and voting
4meta5 Jan 9, 2023
b784aca
add to moonbase precompiles
4meta5 Jan 9, 2023
f1c55b5
fix
4meta5 Jan 10, 2023
58620ed
precompile existence test fix
4meta5 Jan 10, 2023
6ed417f
update solidity addresses as per moonbase config
4meta5 Jan 10, 2023
2fcef74
rename standard vote to vote in conviction voting pallet
4meta5 Jan 11, 2023
8723589
start moving origins out of pallet and using additional generic instead
4meta5 Jan 11, 2023
a1f469e
fix finish moving pallet custom origins back into runtime
4meta5 Jan 11, 2023
3e4e868
into master
4meta5 Jan 11, 2023
72f78a1
Merge branch 'master' into amar-gov2-precompiles
librelois Jan 12, 2023
e1f84ca
add opengov precompiles in proxy evm filter
librelois Jan 12, 2023
6064e97
SolidityConvert no longer necessary
4meta5 Jan 12, 2023
19c2914
rm SolidityConvert and add Conviction enum
4meta5 Jan 12, 2023
046a7ac
use trackId as input for submit instead of origin and convert from tr…
4meta5 Jan 12, 2023
7839709
camelCase error msgs
4meta5 Jan 12, 2023
3357394
Update precompiles/referenda/src/lib.rs
4meta5 Jan 12, 2023
5efa9d5
fix conviction precompile interface
4meta5 Jan 12, 2023
145f6f9
fix referenda precompile interface
4meta5 Jan 12, 2023
694378d
test to ensure all tracks have min enactment period less than vote lo…
4meta5 Jan 12, 2023
9bfd9ff
update tracks based on wiki
4meta5 Jan 12, 2023
a11ee95
revert accidental commit
4meta5 Jan 12, 2023
a1941ec
fix referenda precompile unit tests
4meta5 Jan 12, 2023
6e99180
update config based on polkadot 6372 gov2 config tweaks
4meta5 Jan 12, 2023
83e5a1c
fix
4meta5 Jan 12, 2023
362fef7
Configure moonriver OpenGov (#2038)
4meta5 Jan 17, 2023
af079a9
into master
4meta5 Jan 17, 2023
db81510
remove TryFrom u8 impl for Origin unused
4meta5 Jan 17, 2023
d3a8bda
split convictionVoting vote into voteYes and voteNo so can add voteAb…
4meta5 Jan 17, 2023
4c3e81b
fix consistent conversion test
4meta5 Jan 17, 2023
fd381a7
Merge branch 'master' into amar-gov2-precompiles
4meta5 Jan 17, 2023
be79f7c
follow suggestions
4meta5 Jan 17, 2023
dea9998
add doc note to removeOtherVote
4meta5 Jan 17, 2023
052a56e
into master
4meta5 Jan 17, 2023
d4782eb
fix
4meta5 Jan 17, 2023
3cccdb4
Merge branch 'master' into amar-gov2-precompiles
crystalin Jan 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update solidity addresses as per moonbase config
  • Loading branch information
4meta5 committed Jan 10, 2023
commit 6ed417f958c03edf14e91ba94f8a7adbb4960f73
6 changes: 3 additions & 3 deletions precompiles/conviction-voting/ConvictionVoting.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.3;

/// @dev The Conviction Voting contract's address. TODO: UPDATE ADDRESS
address constant Conviction_Voting_ADDRESS = 0x000000000000000000000000000000000000080b;
/// @dev The Conviction Voting contract's address.
address constant Conviction_Voting_ADDRESS = 0x0000000000000000000000000000000000000812;

/// @dev The Conviction Voting contract's instance.
ConvictionVoting constant Conviction_Voting_CONTRACT = ConvictionVoting(
Expand All @@ -12,7 +12,7 @@ ConvictionVoting constant Conviction_Voting_CONTRACT = ConvictionVoting(
/// @author The Moonbeam Team
/// @title Pallet Conviction Voting Interface
/// @title The interface through which solidity contracts will interact with the Conviction Voting pallet
/// @custom:address 0x000000000000000000000000000000000000080b TODO: UPDATE ADDRESS
/// @custom:address 0x0000000000000000000000000000000000000812
interface ConvictionVoting {
/// @dev Vote in a poll.
/// @custom:selector 6cd18b0d
Expand Down
6 changes: 3 additions & 3 deletions precompiles/preimage/Preimage.sol
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.3;

/// @dev The Preimage contract's address. TODO: UPDATE ADDRESS
address constant Preimage_ADDRESS = 0x000000000000000000000000000000000000080b;
/// @dev The Preimage contract's address.
address constant Preimage_ADDRESS = 0x0000000000000000000000000000000000000813;

/// @dev The Preimage contract's instance.
Preimage constant Preimage_CONTRACT = Preimage(Preimage_ADDRESS);

/// @author The Moonbeam Team
/// @title Pallet Preimage Interface
/// @title The interface through which solidity contracts will interact with the Preimage pallet
/// @custom:address 0x000000000000000000000000000000000000080b TODO: UPDATE ADDRESS
/// @custom:address 0x0000000000000000000000000000000000000813
interface Preimage {
/// @dev Register a Preimage on-chain.
/// @custom:selector cb00f603
Expand Down
6 changes: 3 additions & 3 deletions precompiles/referenda/Referenda.sol
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.3;

/// @dev The Referenda contract's address. TODO: UPDATE ADDRESS
address constant REFERENDA_ADDRESS = 0x000000000000000000000000000000000000080b;
/// @dev The Referenda contract's address.
address constant REFERENDA_ADDRESS = 0x0000000000000000000000000000000000000811;

/// @dev The Referenda contract's instance.
Referenda constant REFERENDA_CONTRACT = Referenda(REFERENDA_ADDRESS);

/// @author The Moonbeam Team
/// @title Pallet Referenda Interface
/// @title The interface through which solidity contracts will interact with the Referenda pallet
/// @custom:address 0x000000000000000000000000000000000000080b TODO: UPDATE ADDRESS
/// @custom:address 0x0000000000000000000000000000000000000811
interface Referenda {
/// @dev Defines the referenda origins that have tracks corresponding to uint8 representation
/// The uint8 representation is defined in pallet-governance-origins Into<u16> for Origin
Expand Down