From a7b62b2af25f09be2a635571edaacfcbc86f994f Mon Sep 17 00:00:00 2001 From: skywardboundd Date: Mon, 19 May 2025 15:35:59 +0300 Subject: [PATCH 1/2] chore(license): add licenses to all projects in benches --- src/benchmarks/jetton/LICENSE | 19 +++++++++++++ .../jetton/func/discovery-params.fc | 1 + .../jetton/func/jetton-minter-discoverable.fc | 1 + src/benchmarks/jetton/func/jetton-utils.fc | 1 + src/benchmarks/jetton/func/jetton-wallet.fc | 1 + src/benchmarks/jetton/func/op-codes.fc | 1 + src/benchmarks/jetton/func/params.fc | 1 + src/benchmarks/nft/LICENSE | 17 +++++++++++ src/benchmarks/nft/func/nft-collection.fc | 1 + src/benchmarks/nft/func/nft-item.fc | 1 + src/benchmarks/nft/func/op-codes.fc | 1 + src/benchmarks/nft/func/params.fc | 1 + src/benchmarks/notcoin/func/gas.fc | 1 + .../notcoin/func/jetton-minter-not.fc | 1 + src/benchmarks/notcoin/func/jetton-utils.fc | 1 + .../notcoin/func/jetton-wallet-not.fc | 1 + src/benchmarks/notcoin/func/op-codes.fc | 1 + src/benchmarks/notcoin/func/stdlib-custom.fc | 1 + src/benchmarks/notcoin/func/workchain.fc | 1 + src/benchmarks/sbt/LICENSE | 28 +++++++++++++++++++ src/benchmarks/sbt/func/op-codes.fc | 1 + src/benchmarks/sbt/func/params.fc | 1 + src/benchmarks/sbt/func/sbt-item.fc | 1 + src/benchmarks/wallet-v4/LICENSE | 26 +++++++++++++++++ src/benchmarks/wallet-v4/func/wallet-v4.fc | 1 + src/benchmarks/wallet-v5/LICENSE | 26 +++++++++++++++++ src/benchmarks/wallet-v5/func/wallet-v5.fc | 1 + 27 files changed, 138 insertions(+) create mode 100644 src/benchmarks/jetton/LICENSE create mode 100644 src/benchmarks/nft/LICENSE create mode 100644 src/benchmarks/sbt/LICENSE create mode 100644 src/benchmarks/wallet-v4/LICENSE create mode 100644 src/benchmarks/wallet-v5/LICENSE diff --git a/src/benchmarks/jetton/LICENSE b/src/benchmarks/jetton/LICENSE new file mode 100644 index 0000000000..afcd3df9b2 --- /dev/null +++ b/src/benchmarks/jetton/LICENSE @@ -0,0 +1,19 @@ +This project includes code from the TON Foundation token-contracts repository, +which is licensed under the MIT License. The following files are derived from that project: + +- func/discovery-params.fc +- func/jetton-minter-discoverable.fc +- func/jetton-utils.fc +- func/jetton-wallet.fc +- func/op-codes.fc +- func/params.fc + +MIT License + +Copyright 2023 TON Foundation + +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... + +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. + +Note, that FunC Standard Library is not part of token-contracts and is licensed under GNU Lesser General Public License see http://www.gnu.org/licenses/. \ No newline at end of file diff --git a/src/benchmarks/jetton/func/discovery-params.fc b/src/benchmarks/jetton/func/discovery-params.fc index b78266f179..6f91884b5f 100644 --- a/src/benchmarks/jetton/func/discovery-params.fc +++ b/src/benchmarks/jetton/func/discovery-params.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/token-contract/blob/f2253cb0f0e1ae0974d7dc0cef3a62cb6e19f806/ft/discovery-params.fc ;; moved to the separate file to keep hex of the previous codes unchanged #include "params.fc"; diff --git a/src/benchmarks/jetton/func/jetton-minter-discoverable.fc b/src/benchmarks/jetton/func/jetton-minter-discoverable.fc index 28ccb4592c..5792aca164 100644 --- a/src/benchmarks/jetton/func/jetton-minter-discoverable.fc +++ b/src/benchmarks/jetton/func/jetton-minter-discoverable.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/token-contract/blob/f2253cb0f0e1ae0974d7dc0cef3a62cb6e19f806/ft/jetton-minter-discoverable.fc ;; Jettons discoverable smart contract #include "params.fc"; #include "op-codes.fc"; diff --git a/src/benchmarks/jetton/func/jetton-utils.fc b/src/benchmarks/jetton/func/jetton-utils.fc index 296816a1fb..1369f40f0a 100644 --- a/src/benchmarks/jetton/func/jetton-utils.fc +++ b/src/benchmarks/jetton/func/jetton-utils.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/token-contract/blob/f2253cb0f0e1ae0974d7dc0cef3a62cb6e19f806/ft/jetton-utils.fc cell pack_jetton_wallet_data(int balance, slice owner_address, slice jetton_master_address, cell jetton_wallet_code) inline { return begin_cell() .store_coins(balance) diff --git a/src/benchmarks/jetton/func/jetton-wallet.fc b/src/benchmarks/jetton/func/jetton-wallet.fc index 848234387a..72fddb89cb 100644 --- a/src/benchmarks/jetton/func/jetton-wallet.fc +++ b/src/benchmarks/jetton/func/jetton-wallet.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/token-contract/blob/f2253cb0f0e1ae0974d7dc0cef3a62cb6e19f806/ft/jetton-wallet.fc;; Jetton Wallet Smart Contract ;; Jetton Wallet Smart Contract #include "params.fc"; diff --git a/src/benchmarks/jetton/func/op-codes.fc b/src/benchmarks/jetton/func/op-codes.fc index 3b0df046e5..7cd2258902 100644 --- a/src/benchmarks/jetton/func/op-codes.fc +++ b/src/benchmarks/jetton/func/op-codes.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/token-contract/blob/f2253cb0f0e1ae0974d7dc0cef3a62cb6e19f806/ft/op-codes.fc int op::transfer() asm "0xf8a7ea5 PUSHINT"; int op::transfer_notification() asm "0x7362d09c PUSHINT"; int op::internal_transfer() asm "0x178d4519 PUSHINT"; diff --git a/src/benchmarks/jetton/func/params.fc b/src/benchmarks/jetton/func/params.fc index e28eac458e..ec56ae2351 100644 --- a/src/benchmarks/jetton/func/params.fc +++ b/src/benchmarks/jetton/func/params.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/token-contract/blob/f2253cb0f0e1ae0974d7dc0cef3a62cb6e19f806/ft/params.fc int workchain() asm "0 PUSHINT"; () force_chain(slice addr) impure { diff --git a/src/benchmarks/nft/LICENSE b/src/benchmarks/nft/LICENSE new file mode 100644 index 0000000000..a80954bebb --- /dev/null +++ b/src/benchmarks/nft/LICENSE @@ -0,0 +1,17 @@ +This project includes code from the TON Foundation token-contracts repository, +which is licensed under the MIT License. The following files are derived from that project: + +- func/nft-collection.fc +- func/nft-item.fc +- func/op-codes.fc +- func/params.fc + +MIT License + +Copyright 2023 TON Foundation + +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... + +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. + +Note, that FunC Standard Library is not part of token-contracts and is licensed under GNU Lesser General Public License see http://www.gnu.org/licenses/. \ No newline at end of file diff --git a/src/benchmarks/nft/func/nft-collection.fc b/src/benchmarks/nft/func/nft-collection.fc index f6e03716de..82690d3453 100644 --- a/src/benchmarks/nft/func/nft-collection.fc +++ b/src/benchmarks/nft/func/nft-collection.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/token-contract/blob/0f2d7ffabbd6ecbef5cad136e45e2d43a52a82f9/nft/nft-collection.fc #include "params.fc"; #include "op-codes.fc"; diff --git a/src/benchmarks/nft/func/nft-item.fc b/src/benchmarks/nft/func/nft-item.fc index 5df2d45b98..2abfb2cea6 100644 --- a/src/benchmarks/nft/func/nft-item.fc +++ b/src/benchmarks/nft/func/nft-item.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/token-contract/blob/0f2d7ffabbd6ecbef5cad136e45e2d43a52a82f9/nft/nft-item.fc #include "params.fc"; #include "op-codes.fc"; diff --git a/src/benchmarks/nft/func/op-codes.fc b/src/benchmarks/nft/func/op-codes.fc index e6d1d32a82..7ec2990105 100644 --- a/src/benchmarks/nft/func/op-codes.fc +++ b/src/benchmarks/nft/func/op-codes.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/token-contract/blob/0f2d7ffabbd6ecbef5cad136e45e2d43a52a82f9/nft/op-codes.fc int op::transfer() asm "0x5fcc3d14 PUSHINT"; int op::ownership_assigned() asm "0x05138d91 PUSHINT"; int op::excesses() asm "0xd53276db PUSHINT"; diff --git a/src/benchmarks/nft/func/params.fc b/src/benchmarks/nft/func/params.fc index e28eac458e..3006e48b02 100644 --- a/src/benchmarks/nft/func/params.fc +++ b/src/benchmarks/nft/func/params.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/token-contract/blob/0f2d7ffabbd6ecbef5cad136e45e2d43a52a82f9/nft/params.fc int workchain() asm "0 PUSHINT"; () force_chain(slice addr) impure { diff --git a/src/benchmarks/notcoin/func/gas.fc b/src/benchmarks/notcoin/func/gas.fc index 96d346daa3..4c22d9dd02 100644 --- a/src/benchmarks/notcoin/func/gas.fc +++ b/src/benchmarks/notcoin/func/gas.fc @@ -1,3 +1,4 @@ +;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/gas.fc #include "workchain.fc"; const ONE_TON = 1000000000; diff --git a/src/benchmarks/notcoin/func/jetton-minter-not.fc b/src/benchmarks/notcoin/func/jetton-minter-not.fc index 84f4b2d25f..0b5def54cc 100644 --- a/src/benchmarks/notcoin/func/jetton-minter-not.fc +++ b/src/benchmarks/notcoin/func/jetton-minter-not.fc @@ -1,3 +1,4 @@ +;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/jetton-minter.fc ;; Jetton minter smart contract #pragma version >=0.4.3; diff --git a/src/benchmarks/notcoin/func/jetton-utils.fc b/src/benchmarks/notcoin/func/jetton-utils.fc index 1ddd2dff02..a11b0f6375 100644 --- a/src/benchmarks/notcoin/func/jetton-utils.fc +++ b/src/benchmarks/notcoin/func/jetton-utils.fc @@ -1,3 +1,4 @@ +;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/jetton-utils.fc #include "stdlib-custom.fc"; #include "workchain.fc"; diff --git a/src/benchmarks/notcoin/func/jetton-wallet-not.fc b/src/benchmarks/notcoin/func/jetton-wallet-not.fc index df9f10db38..f9d225e883 100644 --- a/src/benchmarks/notcoin/func/jetton-wallet-not.fc +++ b/src/benchmarks/notcoin/func/jetton-wallet-not.fc @@ -1,3 +1,4 @@ +;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/jetton-wallet.fc ;; Jetton Wallet Smart Contract #pragma version >=0.4.3; diff --git a/src/benchmarks/notcoin/func/op-codes.fc b/src/benchmarks/notcoin/func/op-codes.fc index 9b76ff839a..62a9003adc 100644 --- a/src/benchmarks/notcoin/func/op-codes.fc +++ b/src/benchmarks/notcoin/func/op-codes.fc @@ -1,3 +1,4 @@ +;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/op-codes.fc ;; common const op::transfer = 0xf8a7ea5; diff --git a/src/benchmarks/notcoin/func/stdlib-custom.fc b/src/benchmarks/notcoin/func/stdlib-custom.fc index 4f0a5bee6b..7e1b9e002a 100644 --- a/src/benchmarks/notcoin/func/stdlib-custom.fc +++ b/src/benchmarks/notcoin/func/stdlib-custom.fc @@ -1,3 +1,4 @@ +;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/stdlib.fc ;; Standard library for funC ;; diff --git a/src/benchmarks/notcoin/func/workchain.fc b/src/benchmarks/notcoin/func/workchain.fc index 82399f7a76..23306c1311 100644 --- a/src/benchmarks/notcoin/func/workchain.fc +++ b/src/benchmarks/notcoin/func/workchain.fc @@ -1,3 +1,4 @@ +;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/workchain.fc #include "stdlib-custom.fc"; #include "op-codes.fc"; diff --git a/src/benchmarks/sbt/LICENSE b/src/benchmarks/sbt/LICENSE new file mode 100644 index 0000000000..cfd48d7110 --- /dev/null +++ b/src/benchmarks/sbt/LICENSE @@ -0,0 +1,28 @@ +This project includes code from the Getgems nft-contracts repository, +which is licensed under the MIT License. The following files are derived from that project: + +- func/sbt-item.fc +- func/op-codes.fc +- func/params.fc + +MIT License + +Copyright (c) 2022 Getgems + +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. \ No newline at end of file diff --git a/src/benchmarks/sbt/func/op-codes.fc b/src/benchmarks/sbt/func/op-codes.fc index e1fb7d8c4b..773eb36a1f 100644 --- a/src/benchmarks/sbt/func/op-codes.fc +++ b/src/benchmarks/sbt/func/op-codes.fc @@ -1,3 +1,4 @@ +;; https://github.com/getgems-io/nft-contracts/blob/24ae5e9c7a6c78b592c01be32fee2edb12424be8/packages/contracts/sources/op-codes.fc int op::transfer() asm "0x5fcc3d14 PUSHINT"; int op::ownership_assigned() asm "0x05138d91 PUSHINT"; int op::excesses() asm "0xd53276db PUSHINT"; diff --git a/src/benchmarks/sbt/func/params.fc b/src/benchmarks/sbt/func/params.fc index d98ce72b21..e61be83e78 100644 --- a/src/benchmarks/sbt/func/params.fc +++ b/src/benchmarks/sbt/func/params.fc @@ -1,3 +1,4 @@ +;; https://github.com/getgems-io/nft-contracts/blob/24ae5e9c7a6c78b592c01be32fee2edb12424be8/packages/contracts/sources/params.fc int workchain() asm "0 PUSHINT"; () force_chain(slice addr) impure { diff --git a/src/benchmarks/sbt/func/sbt-item.fc b/src/benchmarks/sbt/func/sbt-item.fc index b31d9ed544..a4e52543c8 100644 --- a/src/benchmarks/sbt/func/sbt-item.fc +++ b/src/benchmarks/sbt/func/sbt-item.fc @@ -1,3 +1,4 @@ +;; https://github.com/getgems-io/nft-contracts/blob/24ae5e9c7a6c78b592c01be32fee2edb12424be8/packages/contracts/sources/sbt-item.fc #include "op-codes.fc"; #include "params.fc"; diff --git a/src/benchmarks/wallet-v4/LICENSE b/src/benchmarks/wallet-v4/LICENSE new file mode 100644 index 0000000000..120e4e3a1a --- /dev/null +++ b/src/benchmarks/wallet-v4/LICENSE @@ -0,0 +1,26 @@ +This project includes code from the Tonkeeper wallet-contract-v5 repository, +which is licensed under the MIT License. The following files are derived from that project: + +- func/wallet-v4.fc + +MIT License + +Copyright (c) 2023 Tonkeeper + +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. \ No newline at end of file diff --git a/src/benchmarks/wallet-v4/func/wallet-v4.fc b/src/benchmarks/wallet-v4/func/wallet-v4.fc index a3561ec31a..c1fae69808 100644 --- a/src/benchmarks/wallet-v4/func/wallet-v4.fc +++ b/src/benchmarks/wallet-v4/func/wallet-v4.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/wallet-contract-v5/blob/047852ac96a45a8ed418d18960fa6d621a667ed3/contracts/wallet_v4.fc ;; Wallet smart contract with plugins (slice, int) dict_get?(cell dict, int key_len, slice index) asm(index dict key_len) "DICTGET" "NULLSWAPIFNOT"; diff --git a/src/benchmarks/wallet-v5/LICENSE b/src/benchmarks/wallet-v5/LICENSE new file mode 100644 index 0000000000..27119e0b34 --- /dev/null +++ b/src/benchmarks/wallet-v5/LICENSE @@ -0,0 +1,26 @@ +This project includes code from the Tonkeeper wallet-contract-v5 repository, +which is licensed under the MIT License. The following files are derived from that project: + +- func/wallet-v5.fc + +MIT License + +Copyright (c) 2023 Tonkeeper + +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. \ No newline at end of file diff --git a/src/benchmarks/wallet-v5/func/wallet-v5.fc b/src/benchmarks/wallet-v5/func/wallet-v5.fc index c9bb62f22e..4898824196 100644 --- a/src/benchmarks/wallet-v5/func/wallet-v5.fc +++ b/src/benchmarks/wallet-v5/func/wallet-v5.fc @@ -1,3 +1,4 @@ +;; https://github.com/ton-blockchain/wallet-contract-v5/blob/047852ac96a45a8ed418d18960fa6d621a667ed3/contracts/wallet_v5.fc const int error::signature_disabled = 132; const int error::invalid_seqno = 133; const int error::invalid_wallet_id = 134; From 3d4be21acf7cd9d253c4960068f75232fa1dac52 Mon Sep 17 00:00:00 2001 From: skywardboundd Date: Mon, 19 May 2025 18:40:05 +0300 Subject: [PATCH 2/2] add cspell --- spell/cspell-list.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spell/cspell-list.txt b/spell/cspell-list.txt index be080f765f..c65b9cc23a 100644 --- a/spell/cspell-list.txt +++ b/spell/cspell-list.txt @@ -64,6 +64,7 @@ funcfiftlib funcid funs Georgiy +Getgems getsimpleforwardfee gettest guarantor @@ -199,6 +200,7 @@ timeouted Timeouted Toncoin Toncoins +Tonkeeper tonstudio Topup Tradoor