paintswap / estfor-contracts Goto Github PK
View Code? Open in Web Editor NEWEstfor Kingdom game smart contracts
Home Page: https://estfor.com
Estfor Kingdom game smart contracts
Home Page: https://estfor.com
When selling multiple items it issues a TransferSingle event instead of TransferBatch for ERC1155
When forking with npx hardhat node --fork https://....
it currently uses the default hardhat accounts, this causes problems if we want to impersonate the owner for upgrades. Current we use getImpersonatedSigner
and then pass the owner
signer in various places through .connect
, but I don't think this is necessary. Can set hardhat to use the owner as the default.
hardhat.config.ts
const hardhatAccounts: HardhatNetworkAccountUserConfig[] = [
{
privateKey: process.env.PRIVATE_KEY as string,
balance: ethers.parseEther("100000").toString(),
},
];
Add accounts
here:
hardhat: {
gasPrice: 0,
initialBaseFeePerGas: 0,
allowUnlimitedContractSize: true,
accounts: hardhatAccounts,
}
But thought needs to be put into running the tests and deployment on CI as it would then use them too, hmm
This commit removed it as the code was not tested: a28497f
Things like checking min xp for skills and input item validation
Although BRUSH token on fantom always returns true
and instead reverts on failure to be safe we should check all returns when transferring tokens.
rate
in pendingunchecked
incrementserror
inside PlayerBase.solworld.*()
functions together to reduce callsDuring alpha
"name"
in player metadataDuring beta
Easier exporting of abis
Most scripts begin with something like this:
const [owner] = await ethers.getSigners();
console.log(`Deploying upgradeable contracts with the account: ${owner.address}`);
const network = await ethers.provider.getNetwork();
console.log(`ChainId: ${network.chainId}`);
But we could console.log
in one line with this:
const [owner] = await ethers.getSigners();
const network = await ethers.provider.getNetwork();
console.log(`Deploying instant actions using account: ${owner.address} on chain id ${network.chainId}`);
Edit: Actually this might work:
const [owner] = await ethers.getSigners();
console.log(`Deploying instant actions using account: ${owner.address} on chain id ${await owner.getChainId()}`);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.