Skip to content

Commit

Permalink
deploy, go files, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBekket committed Dec 7, 2022
1 parent ba198a3 commit 1c1bf4c
Show file tree
Hide file tree
Showing 48 changed files with 1,844 additions and 12 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@

## Generating ABI
```
solc --abi --bin ./contracts/FactoryNFT.sol -o build ..=.. --overwrite --allow-paths *,/node_modules/,
solc --abi --bin ./contracts/SampleNFT.sol -o build ..=.. --overwrite --allow-paths *,/node_modules/,
solc --abi --bin ./contracts/SingletonNFT.sol -o build ..=.. --overwrite --allow-paths *,/node_modules/,
solc --abi --bin ./contracts/MetaMarketplace.sol -o build ..=.. --overwrite --allow-paths *,/node_modules/,
```


## Generating GO
```
abigen --abi="build/FactoryNFT.abi" --pkg=FactoryNFT --out="./go/FactoryNFT/FactoryNFT.go"
abigen --abi="build/SingletonNFT.abi" --pkg=SingletonNFT --out="./go/SingletonNFT/SingletonNFT.go"
abigen --abi="build/MetaMarketplace.abi" --pkg=MetaMarketplace --out="./go/MetaMarketplace/MetaMarketplace.go"
```


Expand Down
1 change: 1 addition & 0 deletions build/Address.abi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions build/Address.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209f63ac770b241d9b27280c478c88e3d965405c43b67bbe5e85ea45baded680cc64736f6c63430008030033
1 change: 1 addition & 0 deletions build/Context.abi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Empty file added build/Context.bin
Empty file.
1 change: 1 addition & 0 deletions build/CurrenciesERC20.abi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"inputs":[{"internalType":"address","name":"US_Tether","type":"address"},{"internalType":"address","name":"US_Circle","type":"address"},{"internalType":"address","name":"DAI","type":"address"},{"internalType":"address","name":"W_Ethereum","type":"address"},{"internalType":"address","name":"WBTC","type":"address"},{"internalType":"address","name":"VXPPL","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"_token_contract","type":"address"}],"name":"AddCustomCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"_currencies_custom","outputs":[{"internalType":"address","name":"contract_address","type":"address"},{"internalType":"contract IERC20Metadata","name":"itoken","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"_currencies_custom_user","outputs":[{"internalType":"address","name":"contract_address","type":"address"},{"internalType":"contract IERC20Metadata","name":"itoken","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum CurrenciesERC20.CurrencyERC20","name":"","type":"uint8"}],"name":"_currencies_hardcoded","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum CurrenciesERC20.CurrencyERC20","name":"currency","type":"uint8"}],"name":"get_hardcoded_currency","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
1 change: 1 addition & 0 deletions build/CurrenciesERC20.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
608060405263033a36bd60e01b600560006101000a81548163ffffffff021916908360e01c02179055503480156200003657600080fd5b5060405162001e8738038062001e8783398181016040528101906200005c9190620008f9565b600160008190555062000084620000786200081460201b60201c565b6200081c60201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415620000f7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000ee9062000ab8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156200016a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001619062000a74565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415620001dd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001d49062000a96565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141562000250576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002479062000ada565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620002c3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002ba9062000a52565b60405180910390fd5b856002600080600581111562000302577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60058111156200033b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508573ffffffffffffffffffffffffffffffffffffffff1660026000806005811115620003dc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600581111562000415577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060009054906101000a9050505084600260006001600581111562000470577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6005811115620004a9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006002600581111562000535577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60058111156200056e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826002600060036005811115620005fa577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600581111562000633577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816002600060046005811115620006bf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6005811115620006f8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806002600060058081111562000783577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6005811115620007bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505062000c74565b600033905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620008f38162000c5a565b92915050565b60008060008060008060c087890312156200091357600080fd5b60006200092389828a01620008e2565b96505060206200093689828a01620008e2565b95505060406200094989828a01620008e2565b94505060606200095c89828a01620008e2565b93505060806200096f89828a01620008e2565b92505060a06200098289828a01620008e2565b9150509295509295509295565b60006200099e601e8362000afc565b9150620009ab8262000b41565b602082019050919050565b6000620009c560238362000afc565b9150620009d28262000b6a565b604082019050919050565b6000620009ec601d8362000afc565b9150620009f98262000bb9565b602082019050919050565b600062000a13601e8362000afc565b915062000a208262000be2565b602082019050919050565b600062000a3a60248362000afc565b915062000a478262000c0b565b604082019050919050565b6000602082019050818103600083015262000a6d816200098f565b9050919050565b6000602082019050818103600083015262000a8f81620009b6565b9050919050565b6000602082019050818103600083015262000ab181620009dd565b9050919050565b6000602082019050818103600083015262000ad38162000a04565b9050919050565b6000602082019050818103600083015262000af58162000a2b565b9050919050565b600082825260208201905092915050565b600062000b1a8262000b21565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b7f5742544320636f6e74726163742061646472657373206973207a65726f210000600082015250565b7f55535f436972636c6520636f6e74726163742061646472657373206973207a6560008201527f726f210000000000000000000000000000000000000000000000000000000000602082015250565b7f44414920636f6e74726163742061646472657373206973207a65726f21000000600082015250565b7f5553445420636f6e74726163742061646472657373206973207a65726f210000600082015250565b7f575f457468657265756d20636f6e74726163742061646472657373206973207a60008201527f65726f2100000000000000000000000000000000000000000000000000000000602082015250565b62000c658162000b0d565b811462000c7157600080fd5b50565b6112038062000c846000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80639d6788b3116100665780639d6788b314610121578063b8ac489414610152578063dcaf421b14610182578063e81485d8146101b2578063f2fde38b146101ce57610093565b806301ffc9a714610098578063712f1e18146100c8578063715018a6146100f95780638da5cb5b14610103575b600080fd5b6100b260048036038101906100ad9190610ba0565b6101ea565b6040516100bf9190610db9565b60405180910390f35b6100e260048036038101906100dd9190610bf2565b610264565b6040516100f0929190610d90565b60405180910390f35b6101016102de565b005b61010b6102f2565b6040516101189190610d75565b60405180910390f35b61013b60048036038101906101369190610bf2565b61031c565b604051610149929190610d90565b60405180910390f35b61016c60048036038101906101679190610bc9565b610396565b6040516101799190610dd4565b60405180910390f35b61019c60048036038101906101979190610bc9565b6103c9565b6040516101a99190610dd4565b60405180910390f35b6101cc60048036038101906101c79190610b77565b610476565b005b6101e860048036038101906101e39190610b77565b61082e565b005b60007f34bbc7c3000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061025d575061025c826108b2565b5b9050919050565b6003818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082565b6102e661091c565b6102f0600061099a565b565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6004818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060026000836005811115610408577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6005811115610440577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600081905060008173ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156104c357600080fd5b505afa1580156104d7573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906105009190610c33565b9050600061050c6102f2565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156106b757600073ffffffffffffffffffffffffffffffffffffffff1660038360405161056a9190610d5e565b908152602001604051809103902060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146105f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e990610e4f565b60405180910390fd5b826003836040516106039190610d5e565b908152602001604051809103902060010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550836003836040516106639190610d5e565b908152602001604051809103902060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610828565b600073ffffffffffffffffffffffffffffffffffffffff166004836040516106df9190610d5e565b908152602001604051809103902060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075e90610e2f565b60405180910390fd5b826004836040516107789190610d5e565b908152602001604051809103902060010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550836004836040516107d89190610d5e565b908152602001604051809103902060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50505050565b61083661091c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156108a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089d90610def565b60405180910390fd5b6108af8161099a565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610924610a60565b73ffffffffffffffffffffffffffffffffffffffff166109426102f2565b73ffffffffffffffffffffffffffffffffffffffff1614610998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098f90610e0f565b60405180910390fd5b565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000610a7b610a7684610e94565b610e6f565b905082815260208101848484011115610a9357600080fd5b610a9e848285610f7a565b509392505050565b6000610ab9610ab484610e94565b610e6f565b905082815260208101848484011115610ad157600080fd5b610adc848285610f89565b509392505050565b600081359050610af38161118f565b92915050565b600081359050610b08816111a6565b92915050565b600081359050610b1d816111bd565b92915050565b600082601f830112610b3457600080fd5b8135610b44848260208601610a68565b91505092915050565b600082601f830112610b5e57600080fd5b8151610b6e848260208601610aa6565b91505092915050565b600060208284031215610b8957600080fd5b6000610b9784828501610ae4565b91505092915050565b600060208284031215610bb257600080fd5b6000610bc084828501610af9565b91505092915050565b600060208284031215610bdb57600080fd5b6000610be984828501610b0e565b91505092915050565b600060208284031215610c0457600080fd5b600082013567ffffffffffffffff811115610c1e57600080fd5b610c2a84828501610b23565b91505092915050565b600060208284031215610c4557600080fd5b600082015167ffffffffffffffff811115610c5f57600080fd5b610c6b84828501610b4d565b91505092915050565b610c7d81610eec565b82525050565b610c8c81610efe565b82525050565b610c9b81610f56565b82525050565b6000610cac82610ec5565b610cb68185610ee1565b9350610cc6818560208601610f89565b80840191505092915050565b6000610cdf602683610ed0565b9150610cea8261102d565b604082019050919050565b6000610d02602083610ed0565b9150610d0d8261107c565b602082019050919050565b6000610d25605483610ed0565b9150610d30826110a5565b606082019050919050565b6000610d48605583610ed0565b9150610d538261111a565b606082019050919050565b6000610d6a8284610ca1565b915081905092915050565b6000602082019050610d8a6000830184610c74565b92915050565b6000604082019050610da56000830185610c74565b610db26020830184610c92565b9392505050565b6000602082019050610dce6000830184610c83565b92915050565b6000602082019050610de96000830184610c92565b92915050565b60006020820190508181036000830152610e0881610cd2565b9050919050565b60006020820190508181036000830152610e2881610cf5565b9050919050565b60006020820190508181036000830152610e4881610d18565b9050919050565b60006020820190508181036000830152610e6881610d3b565b9050919050565b6000610e79610e8a565b9050610e858282610fbc565b919050565b6000604051905090565b600067ffffffffffffffff821115610eaf57610eae610fed565b5b610eb88261101c565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000610ef782610f36565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f6182610f68565b9050919050565b6000610f7382610f36565b9050919050565b82818337600083830152505050565b60005b83811015610fa7578082015181840152602081019050610f8c565b83811115610fb6576000848401525b50505050565b610fc58261101c565b810181811067ffffffffffffffff82111715610fe457610fe3610fed565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464437573746f6d43757272656e63795b757365725d3a2043757272656e6360008201527f7920746f6b656e20636f6e74726163742077697468207468697320616464726560208201527f737320697320616c726561647920657869737473000000000000000000000000604082015250565b7f416464437573746f6d43757272656e63795b61646d696e5d3a2043757272656e60008201527f637920746f6b656e20636f6e747261637420776974682074686973206164647260208201527f65737320697320616c7265616479206578697374730000000000000000000000604082015250565b61119881610eec565b81146111a357600080fd5b50565b6111af81610f0a565b81146111ba57600080fd5b50565b600681106111ca57600080fd5b5056fea2646970667358221220f6f5b68596f7aadbda963e9bc294a5dde659fdacc6634749dfb12445920f263664736f6c63430008030033
1 change: 1 addition & 0 deletions build/ERC165.abi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Empty file added build/ERC165.bin
Empty file.
Loading

0 comments on commit 1c1bf4c

Please sign in to comment.