How to trade on Opensea with smart contract solidity - ethereum

I want to create a smart contract who buy and sell NFT on Opensea.
I can't find explain documentation and exemple, anybody can help me to start ?

Related

Multiple smart contacts on same near wallet account

As per the near documentation, smart contract is deployed to the account - which is my wallet account.
How does this work in case of multiple smart contract? Is it possible to deploy multiple smart contract with the same wallet account and reference each of these smart contract in my product sth similar to Ethereum.
Execute scenario
Deploy a smart contract A with wallet account B
Deploy a smart contract C with wallet account B
Try to read the function of contract A. It throws error in Near blockchain.
In ethereum it works with smart contract address.
Q: Is it possible to read the methods of smart contract A with wallet account B?
As a follow up I explored it more. A smart contract is deployed to a near account. It means technically a near account can't have the more than one smart contract. We access the smart contract methods with <account_name>.method_name_of_the_contract
Maybe I´m not understanding the question right, but the answer is:
Yes, you can read the methods from a contract with another wallet.
Even you can call those methods, you need to add the logic to your Smart Contract for avoid specific wallets or whitelist wallets if you´re making something private.

Understanding the sales fee for NFT erc721 secondary transaction

I am developing a solidity contract to upload Ethereum-based erc721 NFT to opensea.
As a result, there is a way to create a collection in opensea and charge a secondary fee.
Also, I know that there is a way to configure eip-2981 by combining it with erc721.
I am trying to minting using erc721A and minting to buyers through the minting page. Do I have to write a contract with eip-2981 because OpenC is not making a collection? Even after reading articles on the web, I don't quite understand which method to use and why. I wish someone could sort it out.
Your collection will not show up on OS until at least 1 NFT has been minted. I would recommend testing this out on their test site using the Rinkeby network. Also to answer your main question, secondary sales goes something like this:
You as the collection owner can choose how much of a fee you would like to charge up to 10%. You must also know that OS takes 2.5% off the top of any sale regardless as well. So say someone wanted to sell their NFT for 1 ETH, and the collection royalty was set to 10%. When that NFT sells, the collection owner would get 0.1 ETH and OS would take 0.025 ETH. The total royalties collected would be 0.125 and the seller would receive 0.875 ETH.

Solidity : question about ERC20 token creation and pre sales (crowdsales)

I'm working on a new project that I'm launching soon. The dapp is almost ok, I'm writing the contracts.
But I'm not sure I understood everything, if someone can help me :(
I would like to create a token contract with a supply fix (like 1 million), then make two pre-sales (one with and without whitelist), then a contract to sell on DEX with rewards, staking system, etc.
What is the best way to do this?
Is it possible to :
create the tokens with the first contract
transfer them to the pre sale whitelist contract
make the pre-sale
transfer the remaining tokens to the pre-sale contract without withelist
make the pre-sale
transfer the remaining tokens on the last contract, which will manage all the features of my token + put on a dex
am I right in the way I do it or am I completely wrong ?
If I'm wrong, do I have to do everything in one contract, with specific functions and flags like for the beginning and the end of a pre-dirty ?
if I do everything in one, will some smart guy be able to put the contract on a DEX and add liquidity?
I looked for several ohm/nodes project contracts, I saw the pre-sale contracts but I didn't understand when they create the token because their pre-sale contracts are just sell contracts
and I didn't understand how after the pre sale the main contract takes over
i would like a final contract like that, once the sales are finish
https://snowtrace.io/address/0xf2cfc11093edb5a2dc7f49e70a3a3a9cd4f4fee4#code
if someone can help me, thanks :)
ps : last question, in the contract i dont understand what are payees, shares, addresses and balances variables
This question covers a few different things so I'm going to split my answer up.
Answers:
I looked for several ohm/nodes project contracts, I saw the pre-sale contracts but I didn't understand when they create the token because their pre-sale contracts are just sell contracts
Presale contracts by nature are selling contracts the token contract and the presale contract are generally not the same but there are a thousand ways to do that. They receive x amount of tokens and take payment in say ETH for x tokens.
if I do everything in one, will some smart guy be able to put the contract on a DEX and add liquidity?
Anybody will pretty much always be able to add liquidity for a token because that is external to the token but there are certain ways you can prevent adding liquidity until a certain condition is met say a certain timestamp you just need to detect operations that are swaps/adding liquidity and throw an error.
ps: last question, in the contract I don't understand what are payees, shares, addresses, and balances variables
I am not entirely sure what the purpose of these are for because I am not very familiar with the BRIG protocol.
and I didn't understand how after the pre-sale the main contract takes over
The main contract does not need to take over from the presale contract because the presale contract just runs until all of the tokens are sold and then it just becomes an empty husk.
Other stuff:
In the future please split up your questions across multiple StackOverflow posts.

Solidity How to implement fees when we buy or sell token from pancakeswap

I wouldike to know how can I implement 4% of fees when I sell or buy from Pancakeswap ?
PancakeSwap itself implements its fee schedule. Note that tokens can trade on multiple Uniswap v2 compatible exchanges outside PancakeSwap.
To have your own market, with your own rules, you need to start your own exchange.
You can in theory try to hack special fees into your token smart contract code, but none of the past attempts have been successful and/or they all have been scams.

Create or Clone a smart contract from Binance Smart Chain. Willing to pay some money to learn

Thank you for reading this. I am learning about cryptocurrency and about Binance smart chain. I want to try to learn and want to clone a few projects such as this one:
https://bscscan.com/address/0x359f35085202c8527a0c767557339635a335eb76#code
I am able to deploy the smart contract but when I try to verify and publish, the Contract ABI is empty. enter image description here
[1]: https://i.stack.imgur.com/zqb06.png
If someone knows how to create a clone from existing smart contract, I am willing to pay to learn. We can set up a meeting time via Zoom or using TeamViewer and I can pay via Paypal. Please message me if you are interested. Thank you very much!!!
I found solution to this problem. Thank you everyone! I needed to deploy the main contract and not the parent one.