Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions spell/cspell-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ funcfiftlib
funcid
funs
Georgiy
Getgems
getsimpleforwardfee
gettest
guarantor
Expand Down Expand Up @@ -199,6 +200,7 @@ timeouted
Timeouted
Toncoin
Toncoins
Tonkeeper
tonstudio
Topup
Tradoor
Expand Down
19 changes: 19 additions & 0 deletions src/benchmarks/jetton/LICENSE
Original file line number Diff line number Diff line change
@@ -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/.
1 change: 1 addition & 0 deletions src/benchmarks/jetton/func/discovery-params.fc
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/jetton/func/jetton-minter-discoverable.fc
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/jetton/func/jetton-utils.fc
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/jetton/func/jetton-wallet.fc
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/jetton/func/op-codes.fc
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/jetton/func/params.fc
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
17 changes: 17 additions & 0 deletions src/benchmarks/nft/LICENSE
Original file line number Diff line number Diff line change
@@ -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/.
1 change: 1 addition & 0 deletions src/benchmarks/nft/func/nft-collection.fc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;; https://github.com/ton-blockchain/token-contract/blob/0f2d7ffabbd6ecbef5cad136e45e2d43a52a82f9/nft/nft-collection.fc
#include "params.fc";
#include "op-codes.fc";

Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/nft/func/nft-item.fc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;; https://github.com/ton-blockchain/token-contract/blob/0f2d7ffabbd6ecbef5cad136e45e2d43a52a82f9/nft/nft-item.fc
#include "params.fc";
#include "op-codes.fc";

Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/nft/func/op-codes.fc
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/nft/func/params.fc
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/notcoin/func/gas.fc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/gas.fc
#include "workchain.fc";

const ONE_TON = 1000000000;
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/notcoin/func/jetton-minter-not.fc
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/notcoin/func/jetton-utils.fc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/jetton-utils.fc
#include "stdlib-custom.fc";
#include "workchain.fc";

Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/notcoin/func/jetton-wallet-not.fc
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/notcoin/func/op-codes.fc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/op-codes.fc
;; common

const op::transfer = 0xf8a7ea5;
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/notcoin/func/stdlib-custom.fc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/stdlib.fc
;; Standard library for funC
;;

Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/notcoin/func/workchain.fc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;; https://github.com/OpenBuilders/notcoin-contract/blob/main/contracts/workchain.fc
#include "stdlib-custom.fc";
#include "op-codes.fc";

Expand Down
28 changes: 28 additions & 0 deletions src/benchmarks/sbt/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions src/benchmarks/sbt/func/op-codes.fc
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/sbt/func/params.fc
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/sbt/func/sbt-item.fc
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
26 changes: 26 additions & 0 deletions src/benchmarks/wallet-v4/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions src/benchmarks/wallet-v4/func/wallet-v4.fc
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
26 changes: 26 additions & 0 deletions src/benchmarks/wallet-v5/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions src/benchmarks/wallet-v5/func/wallet-v5.fc
Original file line number Diff line number Diff line change
@@ -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;
Expand Down