From 087fe105d55ef46170f3548367c1650fbf240e2c Mon Sep 17 00:00:00 2001 From: prxgr4mm3r Date: Wed, 16 Aug 2023 14:45:14 +0300 Subject: [PATCH] add licences --- .../extensions/governor_counting/data.rs | 22 ++++++ .../extensions/governor_counting/impls.rs | 22 ++++++ .../extensions/governor_counting/internal.rs | 22 ++++++ .../extensions/governor_counting/mod.rs | 22 ++++++ .../extensions/governor_quorum/data.rs | 22 ++++++ .../extensions/governor_quorum/events.rs | 22 ++++++ .../extensions/governor_quorum/impls.rs | 22 ++++++ .../extensions/governor_quorum/mod.rs | 22 ++++++ .../extensions/governor_settings/data.rs | 22 ++++++ .../extensions/governor_settings/events.rs | 22 ++++++ .../extensions/governor_settings/impls.rs | 22 ++++++ .../extensions/governor_settings/internal.rs | 22 ++++++ .../extensions/governor_settings/mod.rs | 22 ++++++ .../extensions/governor_votes/data.rs | 22 ++++++ .../extensions/governor_votes/internal.rs | 22 ++++++ .../extensions/governor_votes/mod.rs | 22 ++++++ contracts/src/governance/extensions/mod.rs | 22 ++++++ contracts/src/governance/governor/data.rs | 22 ++++++ contracts/src/governance/governor/events.rs | 22 ++++++ contracts/src/governance/governor/impls.rs | 22 ++++++ contracts/src/governance/governor/internal.rs | 22 ++++++ contracts/src/governance/governor/mod.rs | 22 ++++++ contracts/src/governance/mod.rs | 1 + contracts/src/governance/utils/mod.rs | 22 ++++++ contracts/src/governance/utils/votes/data.rs | 22 ++++++ .../src/governance/utils/votes/events.rs | 22 ++++++ contracts/src/governance/utils/votes/impls.rs | 22 ++++++ .../src/governance/utils/votes/internal.rs | 22 ++++++ contracts/src/governance/utils/votes/mod.rs | 22 ++++++ contracts/src/lib.rs | 1 + contracts/src/token/psp34/extensions/votes.rs | 71 ------------------- contracts/src/traits/errors/checkpoints.rs | 1 + contracts/src/traits/errors/crypto.rs | 22 ++++++ contracts/src/traits/errors/governance.rs | 22 ++++++ contracts/src/traits/errors/mod.rs | 1 + contracts/src/traits/errors/nonces.rs | 1 + .../extensions/governor_counting/mod.rs | 22 ++++++ .../extensions/governor_quorum/mod.rs | 22 ++++++ .../extensions/governor_settings/mod.rs | 22 ++++++ .../src/traits/governance/extensions/mod.rs | 22 ++++++ .../src/traits/governance/governor/mod.rs | 22 ++++++ contracts/src/traits/governance/mod.rs | 22 ++++++ contracts/src/traits/governance/utils/mod.rs | 22 ++++++ .../src/traits/governance/utils/votes.rs | 22 ++++++ contracts/src/traits/mod.rs | 1 + contracts/src/utils/checkpoint/mod.rs | 3 +- contracts/src/utils/crypto/mod.rs | 22 ++++++ contracts/src/utils/mod.rs | 22 ++++++ contracts/src/utils/nonces/mod.rs | 3 +- 49 files changed, 890 insertions(+), 73 deletions(-) delete mode 100644 contracts/src/token/psp34/extensions/votes.rs diff --git a/contracts/src/governance/extensions/governor_counting/data.rs b/contracts/src/governance/extensions/governor_counting/data.rs index db64577dd..f343210ab 100644 --- a/contracts/src/governance/extensions/governor_counting/data.rs +++ b/contracts/src/governance/extensions/governor_counting/data.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::governance::{ ProposalId, ProposalVote, diff --git a/contracts/src/governance/extensions/governor_counting/impls.rs b/contracts/src/governance/extensions/governor_counting/impls.rs index d69fd17a6..c966cc993 100644 --- a/contracts/src/governance/extensions/governor_counting/impls.rs +++ b/contracts/src/governance/extensions/governor_counting/impls.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::{ governance::extensions::governor_counting::{ CountingInternal, diff --git a/contracts/src/governance/extensions/governor_counting/internal.rs b/contracts/src/governance/extensions/governor_counting/internal.rs index ef2ca2d9c..6b8c359ce 100644 --- a/contracts/src/governance/extensions/governor_counting/internal.rs +++ b/contracts/src/governance/extensions/governor_counting/internal.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::{ extensions::governor_quorum::QuorumImpl, governance::extensions::governor_counting::Data, diff --git a/contracts/src/governance/extensions/governor_counting/mod.rs b/contracts/src/governance/extensions/governor_counting/mod.rs index 841a075c2..63dc3df7f 100644 --- a/contracts/src/governance/extensions/governor_counting/mod.rs +++ b/contracts/src/governance/extensions/governor_counting/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + mod data; mod impls; mod internal; diff --git a/contracts/src/governance/extensions/governor_quorum/data.rs b/contracts/src/governance/extensions/governor_quorum/data.rs index 032969697..93a72864d 100644 --- a/contracts/src/governance/extensions/governor_quorum/data.rs +++ b/contracts/src/governance/extensions/governor_quorum/data.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::checkpoint::Checkpoints; #[derive(Debug, Default)] diff --git a/contracts/src/governance/extensions/governor_quorum/events.rs b/contracts/src/governance/extensions/governor_quorum/events.rs index cf1c7daea..b0984e49e 100644 --- a/contracts/src/governance/extensions/governor_quorum/events.rs +++ b/contracts/src/governance/extensions/governor_quorum/events.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + pub trait QuorumEvents { fn emit_quorum_numerator_updated(&self, _old_quorum_numerator: u128, _new_quorum_numerator: u128) { () diff --git a/contracts/src/governance/extensions/governor_quorum/impls.rs b/contracts/src/governance/extensions/governor_quorum/impls.rs index a6247d1ee..7e9090526 100644 --- a/contracts/src/governance/extensions/governor_quorum/impls.rs +++ b/contracts/src/governance/extensions/governor_quorum/impls.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::{ extensions::{ governor_quorum::{ diff --git a/contracts/src/governance/extensions/governor_quorum/mod.rs b/contracts/src/governance/extensions/governor_quorum/mod.rs index 46a122cd7..1eb9eeb5b 100644 --- a/contracts/src/governance/extensions/governor_quorum/mod.rs +++ b/contracts/src/governance/extensions/governor_quorum/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + mod data; mod events; mod impls; diff --git a/contracts/src/governance/extensions/governor_settings/data.rs b/contracts/src/governance/extensions/governor_settings/data.rs index 538b7684b..b00079696 100644 --- a/contracts/src/governance/extensions/governor_settings/data.rs +++ b/contracts/src/governance/extensions/governor_settings/data.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + #[derive(Default, Debug)] #[openbrush::storage_item] pub struct Data { diff --git a/contracts/src/governance/extensions/governor_settings/events.rs b/contracts/src/governance/extensions/governor_settings/events.rs index dbfe17324..862f6659a 100644 --- a/contracts/src/governance/extensions/governor_settings/events.rs +++ b/contracts/src/governance/extensions/governor_settings/events.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + pub trait GovernorSettingsEvents { fn emit_voting_delay_set(&self, _old_voting_delay: Option, _new_voting_delay: u64) { () diff --git a/contracts/src/governance/extensions/governor_settings/impls.rs b/contracts/src/governance/extensions/governor_settings/impls.rs index d2538c687..fb61108e8 100644 --- a/contracts/src/governance/extensions/governor_settings/impls.rs +++ b/contracts/src/governance/extensions/governor_settings/impls.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::{ extensions::governor_settings::{ Data, diff --git a/contracts/src/governance/extensions/governor_settings/internal.rs b/contracts/src/governance/extensions/governor_settings/internal.rs index bb14cebf6..65906ed2e 100644 --- a/contracts/src/governance/extensions/governor_settings/internal.rs +++ b/contracts/src/governance/extensions/governor_settings/internal.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::{ extensions::governor_settings::{ Data, diff --git a/contracts/src/governance/extensions/governor_settings/mod.rs b/contracts/src/governance/extensions/governor_settings/mod.rs index af17c53ef..e276383ef 100644 --- a/contracts/src/governance/extensions/governor_settings/mod.rs +++ b/contracts/src/governance/extensions/governor_settings/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + mod data; mod events; mod impls; diff --git a/contracts/src/governance/extensions/governor_votes/data.rs b/contracts/src/governance/extensions/governor_votes/data.rs index 98df90c8a..c0561b526 100644 --- a/contracts/src/governance/extensions/governor_votes/data.rs +++ b/contracts/src/governance/extensions/governor_votes/data.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use openbrush::traits::AccountId; #[derive(Debug, Default)] diff --git a/contracts/src/governance/extensions/governor_votes/internal.rs b/contracts/src/governance/extensions/governor_votes/internal.rs index 48f7399a8..560445153 100644 --- a/contracts/src/governance/extensions/governor_votes/internal.rs +++ b/contracts/src/governance/extensions/governor_votes/internal.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::{ extensions::governor_votes::Data, traits::{ diff --git a/contracts/src/governance/extensions/governor_votes/mod.rs b/contracts/src/governance/extensions/governor_votes/mod.rs index 07abb4462..5a282d8b3 100644 --- a/contracts/src/governance/extensions/governor_votes/mod.rs +++ b/contracts/src/governance/extensions/governor_votes/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + mod data; mod internal; diff --git a/contracts/src/governance/extensions/mod.rs b/contracts/src/governance/extensions/mod.rs index 0787fb028..e86f84fd5 100644 --- a/contracts/src/governance/extensions/mod.rs +++ b/contracts/src/governance/extensions/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + pub mod governor_counting; pub mod governor_quorum; pub mod governor_settings; diff --git a/contracts/src/governance/governor/data.rs b/contracts/src/governance/governor/data.rs index 5934909a5..7b5c9333e 100644 --- a/contracts/src/governance/governor/data.rs +++ b/contracts/src/governance/governor/data.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::{ errors::GovernanceError, governance::{ diff --git a/contracts/src/governance/governor/events.rs b/contracts/src/governance/governor/events.rs index e300d1104..56de98183 100644 --- a/contracts/src/governance/governor/events.rs +++ b/contracts/src/governance/governor/events.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::governance::{ ProposalId, Transaction, diff --git a/contracts/src/governance/governor/impls.rs b/contracts/src/governance/governor/impls.rs index e42c06af9..64323dd8c 100644 --- a/contracts/src/governance/governor/impls.rs +++ b/contracts/src/governance/governor/impls.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::{ extensions::{ governor_settings::{ diff --git a/contracts/src/governance/governor/internal.rs b/contracts/src/governance/governor/internal.rs index 07da64c66..b89b1fbdb 100644 --- a/contracts/src/governance/governor/internal.rs +++ b/contracts/src/governance/governor/internal.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::{ extensions::{ governor_counting::CountingInternal, diff --git a/contracts/src/governance/governor/mod.rs b/contracts/src/governance/governor/mod.rs index af17c53ef..e276383ef 100644 --- a/contracts/src/governance/governor/mod.rs +++ b/contracts/src/governance/governor/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + mod data; mod events; mod impls; diff --git a/contracts/src/governance/mod.rs b/contracts/src/governance/mod.rs index 0f3fdd4d7..84e0faa7e 100644 --- a/contracts/src/governance/mod.rs +++ b/contracts/src/governance/mod.rs @@ -1,3 +1,4 @@ +// Copyright (c) 2023 Brushfam // Copyright (c) 2012-2022 Supercolony // // Permission is hereby granted, free of charge, to any person obtaining diff --git a/contracts/src/governance/utils/mod.rs b/contracts/src/governance/utils/mod.rs index d86a74c7d..fda658561 100644 --- a/contracts/src/governance/utils/mod.rs +++ b/contracts/src/governance/utils/mod.rs @@ -1 +1,23 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + pub mod votes; diff --git a/contracts/src/governance/utils/votes/data.rs b/contracts/src/governance/utils/votes/data.rs index f2365eabb..d5d7dcd35 100644 --- a/contracts/src/governance/utils/votes/data.rs +++ b/contracts/src/governance/utils/votes/data.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::utils::checkpoint::Checkpoints; use openbrush::{ storage::Mapping, diff --git a/contracts/src/governance/utils/votes/events.rs b/contracts/src/governance/utils/votes/events.rs index fa4a478fe..04fbb427d 100644 --- a/contracts/src/governance/utils/votes/events.rs +++ b/contracts/src/governance/utils/votes/events.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use openbrush::traits::{ AccountId, Balance, diff --git a/contracts/src/governance/utils/votes/impls.rs b/contracts/src/governance/utils/votes/impls.rs index 9640172db..b67f3b14f 100644 --- a/contracts/src/governance/utils/votes/impls.rs +++ b/contracts/src/governance/utils/votes/impls.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::{ governance::utils::votes::{ Data, diff --git a/contracts/src/governance/utils/votes/internal.rs b/contracts/src/governance/utils/votes/internal.rs index b7347fd82..eb5bbdec3 100644 --- a/contracts/src/governance/utils/votes/internal.rs +++ b/contracts/src/governance/utils/votes/internal.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::{ governance::utils::votes::{ Data, diff --git a/contracts/src/governance/utils/votes/mod.rs b/contracts/src/governance/utils/votes/mod.rs index af17c53ef..e276383ef 100644 --- a/contracts/src/governance/utils/votes/mod.rs +++ b/contracts/src/governance/utils/votes/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + mod data; mod events; mod impls; diff --git a/contracts/src/lib.rs b/contracts/src/lib.rs index 6fbde80b4..edee3f98e 100644 --- a/contracts/src/lib.rs +++ b/contracts/src/lib.rs @@ -1,3 +1,4 @@ +// Copyright (c) 2023 Brushfam // Copyright (c) 2012-2022 Supercolony // // Permission is hereby granted, free of charge, to any person obtaining diff --git a/contracts/src/token/psp34/extensions/votes.rs b/contracts/src/token/psp34/extensions/votes.rs deleted file mode 100644 index 156fef2f4..000000000 --- a/contracts/src/token/psp34/extensions/votes.rs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) 2023 Brushfam -// Copyright (c) 2012-2022 Supercolony -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the"Software"), -// to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -use crate::{ - checkpoint::Checkpoint, - extensions::governor_votes::VotesInternal, - governance::utils::votes::VotesInternal, - psp22, - psp22::{ - PSP22Error, - PSP22, - }, - traits::{ - errors::GovernanceError, - psp22::extensions::votes::PSP22Votes, - }, -}; -use openbrush::traits::AccountId; - -pub trait PSP22VotesImpl: VotesInternal { - fn num_checkpoints(&self, account: &AccountId) -> Result { - VotesInternal::_num_checkpoints(self, account) - } - - fn checkpoints(&self, account: &AccountId, &pos: u32) -> Result { - VotesInternal::_checkpoints(self, account, pos) - } -} - -pub trait Internal { - fn _max_supply(&self) -> u128; - - fn _update(&mut self, from: &AccountId, to: &AccountId, amount: u128) -> Result<(), PSP22Error>; - - fn _get_voting_units(&self, account: &AccountId) -> u128; -} - -pub trait InternalImpl: VotesInternal + psp22::Internal { - fn _max_supply(&self) -> u128 { - u128::MAX - } - - fn _update(&mut self, from: AccountId, to: AccountId, amount: u128) -> Result<(), PSP22Error> { - psp22::Internal::_transfer_from_to(self, from, to, amount, vec![])?; - - Ok(()) - } - - fn _get_voting_units(&self, account: &AccountId) -> u128 { - psp22::Internal::_balance_of(self, account) - } -} diff --git a/contracts/src/traits/errors/checkpoints.rs b/contracts/src/traits/errors/checkpoints.rs index c47e98dc0..a1d904b2e 100644 --- a/contracts/src/traits/errors/checkpoints.rs +++ b/contracts/src/traits/errors/checkpoints.rs @@ -1,3 +1,4 @@ +// Copyright (c) 2023 Brushfam // Copyright (c) 2012-2022 Supercolony // // Permission is hereby granted, free of charge, to any person obtaining diff --git a/contracts/src/traits/errors/crypto.rs b/contracts/src/traits/errors/crypto.rs index 38faa99d5..e75370064 100644 --- a/contracts/src/traits/errors/crypto.rs +++ b/contracts/src/traits/errors/crypto.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use openbrush::traits::String; #[derive(scale::Decode, scale::Encode, Clone, Debug, PartialEq, Eq)] diff --git a/contracts/src/traits/errors/governance.rs b/contracts/src/traits/errors/governance.rs index 11b5f1067..360b10b95 100644 --- a/contracts/src/traits/errors/governance.rs +++ b/contracts/src/traits/errors/governance.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::{ errors::{ CheckpointsError, diff --git a/contracts/src/traits/errors/mod.rs b/contracts/src/traits/errors/mod.rs index 10ed2538f..94d882278 100644 --- a/contracts/src/traits/errors/mod.rs +++ b/contracts/src/traits/errors/mod.rs @@ -1,3 +1,4 @@ +// Copyright (c) 2023 Brushfam // Copyright (c) 2012-2022 Supercolony // // Permission is hereby granted, free of charge, to any person obtaining diff --git a/contracts/src/traits/errors/nonces.rs b/contracts/src/traits/errors/nonces.rs index ea1c67738..3255b660e 100644 --- a/contracts/src/traits/errors/nonces.rs +++ b/contracts/src/traits/errors/nonces.rs @@ -1,3 +1,4 @@ +// Copyright (c) 2023 Brushfam // Copyright (c) 2012-2022 Supercolony // // Permission is hereby granted, free of charge, to any person obtaining diff --git a/contracts/src/traits/governance/extensions/governor_counting/mod.rs b/contracts/src/traits/governance/extensions/governor_counting/mod.rs index 119f87cac..5363d5ee1 100644 --- a/contracts/src/traits/governance/extensions/governor_counting/mod.rs +++ b/contracts/src/traits/governance/extensions/governor_counting/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::{ errors::GovernanceError, governance::ProposalId, diff --git a/contracts/src/traits/governance/extensions/governor_quorum/mod.rs b/contracts/src/traits/governance/extensions/governor_quorum/mod.rs index 03d8a22d2..5867e9d78 100644 --- a/contracts/src/traits/governance/extensions/governor_quorum/mod.rs +++ b/contracts/src/traits/governance/extensions/governor_quorum/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::errors::GovernanceError; use openbrush::traits::Timestamp; diff --git a/contracts/src/traits/governance/extensions/governor_settings/mod.rs b/contracts/src/traits/governance/extensions/governor_settings/mod.rs index cf9cd484a..0e9e8c61d 100644 --- a/contracts/src/traits/governance/extensions/governor_settings/mod.rs +++ b/contracts/src/traits/governance/extensions/governor_settings/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::errors::GovernanceError; #[openbrush::trait_definition] diff --git a/contracts/src/traits/governance/extensions/mod.rs b/contracts/src/traits/governance/extensions/mod.rs index 1e289aece..32a5875be 100644 --- a/contracts/src/traits/governance/extensions/mod.rs +++ b/contracts/src/traits/governance/extensions/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + pub mod governor_counting; pub mod governor_quorum; pub mod governor_settings; diff --git a/contracts/src/traits/governance/governor/mod.rs b/contracts/src/traits/governance/governor/mod.rs index a58f6c063..02e5ea3e1 100644 --- a/contracts/src/traits/governance/governor/mod.rs +++ b/contracts/src/traits/governance/governor/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::{ errors::GovernanceError, governance::{ diff --git a/contracts/src/traits/governance/mod.rs b/contracts/src/traits/governance/mod.rs index df4625a01..e87c63297 100644 --- a/contracts/src/traits/governance/mod.rs +++ b/contracts/src/traits/governance/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::errors::GovernanceError; use ink::prelude::vec::Vec; use openbrush::traits::{ diff --git a/contracts/src/traits/governance/utils/mod.rs b/contracts/src/traits/governance/utils/mod.rs index 98e69045a..da3b9f50e 100644 --- a/contracts/src/traits/governance/utils/mod.rs +++ b/contracts/src/traits/governance/utils/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + mod votes; pub use votes::*; diff --git a/contracts/src/traits/governance/utils/votes.rs b/contracts/src/traits/governance/utils/votes.rs index 9425ef1be..f17114a7f 100644 --- a/contracts/src/traits/governance/utils/votes.rs +++ b/contracts/src/traits/governance/utils/votes.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::{ errors::GovernanceError, types::SignatureType, diff --git a/contracts/src/traits/mod.rs b/contracts/src/traits/mod.rs index c1c351d59..d6716b00b 100644 --- a/contracts/src/traits/mod.rs +++ b/contracts/src/traits/mod.rs @@ -1,3 +1,4 @@ +// Copyright (c) 2023 Brushfam // Copyright (c) 2012-2022 Supercolony // // Permission is hereby granted, free of charge, to any person obtaining diff --git a/contracts/src/utils/checkpoint/mod.rs b/contracts/src/utils/checkpoint/mod.rs index 0ac4c2e44..c52307999 100644 --- a/contracts/src/utils/checkpoint/mod.rs +++ b/contracts/src/utils/checkpoint/mod.rs @@ -1,4 +1,5 @@ -// Copyright (c) 2012-2023 727.ventures +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the"Software"), diff --git a/contracts/src/utils/crypto/mod.rs b/contracts/src/utils/crypto/mod.rs index 820a038af..0833ec177 100644 --- a/contracts/src/utils/crypto/mod.rs +++ b/contracts/src/utils/crypto/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + use crate::traits::{ errors::CryptoError, types::SignatureType, diff --git a/contracts/src/utils/mod.rs b/contracts/src/utils/mod.rs index 90f429f0c..fa2b811b0 100644 --- a/contracts/src/utils/mod.rs +++ b/contracts/src/utils/mod.rs @@ -1,3 +1,25 @@ +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the"Software"), +// to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + pub mod checkpoint; pub mod crypto; pub mod nonces; diff --git a/contracts/src/utils/nonces/mod.rs b/contracts/src/utils/nonces/mod.rs index 456b96f46..4624374e5 100644 --- a/contracts/src/utils/nonces/mod.rs +++ b/contracts/src/utils/nonces/mod.rs @@ -1,4 +1,5 @@ -// Copyright (c) 2012-2023 727.ventures +// Copyright (c) 2023 Brushfam +// Copyright (c) 2012-2022 Supercolony // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the"Software"),