-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: return ABI in nft-claimer payload (#101)
* fix: update mint signature validation * fix: update domain name * chore: add nftClainer tests * chore: add more test * refactor: rename sign methods + improve tests * chore: skip yet untestable test * fix: fix overflow error on BigNumber * fix: only use test domain * chore: update test * Update .env.test * Update test/.env.test * chore: remove unused dependencies * chore: remove unused dependencies * fix: fix missing test env values * fix: update NFT Claimer deploy signer * fix: update signer * fix: update nft claimer deploy signature generation + refactoring * fix: remove unused import * chore: fix tests * fix: update deploy code for updated smart contract * fix: fix nft claimer deploy signature * fix: fix nftClaimer deploy signature * chore: fix tests * fix: remove unused env variable * fix: fix test for new deploy smart contract * fix: return also all params required for the tx * fix: add new proposer param to mint signature * fix: fix nft claimer mint signature generator * feat: retrieve mint contract address from subgraphj * fix: bump nft claimer subgraph version * fix: bump subgraph version * fix: update nft claimer subgraph url * feat: add support for base58 proposal ID * feat: sign message only if space has enabled minting * chore: fix tests * chore: fix tests * fix: return salt in deploy payload * fix: use number salt * fix: add support for both IPFS version for proposal ID * chore: fix merge conflict * chore: update README * fix: fix deploy signature * fix: fix signature * fix: check that spacecollection does not exist yet * feat: ensure that given address params are valid addresses * feat: validate address arguments * feat: use dynamic domain * fix: lock snapshot.js to 0.4.97 Due to newer version breaking jest test * chore: fix timer issue on dependent snapshot.js * chore: enable jest fakeTimer globally * Revert "chore: enable jest fakeTimer globally" This reverts commit 524754d. * Revert "chore: fix timer issue on dependent snapshot.js" This reverts commit ff2522f. * feat: return `verifyingContract` in deploy payload * fix: use `forEach` for loop * fix: remove unused assertion * chore: print test code coverage * chore: move all process.env definition to file's top * fix: fail early to avoid unecessary request * fix: fail early to avoid unecessary request * chore: remove `NETWORK`, in favor of autodetection from `HUB_URL` * chore: remove unused check * chore: disable code coverage in e2e tests * chore: improve readability * feat: add endpoint to return the snapshotFee * chore: make it clear which contract the ABI is coming from * feat: auto-expire the cache * fix: fix wrong ABI, and remove unused functions * feat: return contract ABI in payload * chore: remove unused import * chore: update README with new returned property --------- Co-authored-by: Chaitanya <[email protected]>
- Loading branch information
Showing
6 changed files
with
95 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ "internalType": "string", "name": "name", "type": "string" }, | ||
{ "internalType": "string", "name": "version", "type": "string" }, | ||
{ "internalType": "uint128", "name": "_maxSupply", "type": "uint128" }, | ||
{ "internalType": "uint256", "name": "_mintPrice", "type": "uint256" }, | ||
{ "internalType": "uint8", "name": "_proposerFee", "type": "uint8" }, | ||
{ "internalType": "address", "name": "_spaceTreasury", "type": "address" }, | ||
{ "internalType": "address", "name": "_spaceOwner", "type": "address" } | ||
], | ||
"name": "initialize", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "proposer", "type": "address" }, | ||
{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "salt", "type": "uint256" }, | ||
{ "internalType": "uint8", "name": "v", "type": "uint8" }, | ||
{ "internalType": "bytes32", "name": "r", "type": "bytes32" }, | ||
{ "internalType": "bytes32", "name": "s", "type": "bytes32" } | ||
], | ||
"name": "mint", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address[]", "name": "proposers", "type": "address[]" }, | ||
{ "internalType": "uint256[]", "name": "proposalIds", "type": "uint256[]" }, | ||
{ "internalType": "uint256", "name": "salt", "type": "uint256" }, | ||
{ "internalType": "uint8", "name": "v", "type": "uint8" }, | ||
{ "internalType": "bytes32", "name": "r", "type": "bytes32" }, | ||
{ "internalType": "bytes32", "name": "s", "type": "bytes32" } | ||
], | ||
"name": "mintBatch", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "implementation", "type": "address" }, | ||
{ "internalType": "bytes", "name": "initializer", "type": "bytes" }, | ||
{ "internalType": "uint256", "name": "salt", "type": "uint256" }, | ||
{ "internalType": "uint8", "name": "v", "type": "uint8" }, | ||
{ "internalType": "bytes32", "name": "r", "type": "bytes32" }, | ||
{ "internalType": "bytes32", "name": "s", "type": "bytes32" } | ||
], | ||
"name": "deployProxy", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
|
||
{ | ||
"inputs": [], | ||
"name": "snapshotFee", | ||
"outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
|
||
{ | ||
"inputs": [ | ||
{ "internalType": "uint8", "name": "_snapshotFee", "type": "uint8" }, | ||
{ "internalType": "address", "name": "_snapshotOwner", "type": "address" }, | ||
{ "internalType": "address", "name": "_snapshotTreasury", "type": "address" }, | ||
{ "internalType": "address", "name": "_verifiedSigner", "type": "address" } | ||
], | ||
"name": "updateFactorySettings", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters