shengjian-tech / opennft Goto Github PK
View Code? Open in Web Editor NEW开源 NFT 发行交易平台
License: Apache License 2.0
开源 NFT 发行交易平台
License: Apache License 2.0
你好,关于合约部署及配置
并完善`nft_chain_plat`,和`nft_user_chainplat`表中的信息
- passwd:安全码,使用SecUtils.encoderByRSAPrivateKey()加密后的数据
- address: 用户超级链的ak地址
- EVMAddress: 使用Account.xchainAKToEVMAddress(address)转换获取
能否更加详细的描述一下如何在系统或后台对当前项目的合约进行配置?另外请问合约的开源进行得如何了?是否已经顺利开源?
另外,关于一些功能,如注册用户的相关链数据管理、创建的nft、交易记录等相关后台管理功能是有所缺失还是开源版本不开放?烦请告知。另外支付宝的sdk能否更新到开源版本?
还请解答,谢谢
请问在超级链开发网络怎么部署合约
项目文档不够全面,我没有运行起来。请问有详细点的部署文档嘛。
jwtToken为null,我不知道在哪配置,项目启动失败
readme里面这段理解不了!
并完善nft_chain_plat
,和nft_user_chainplat
表中的信息
错误日志如下:
----------------------starting----------------------
----------------------started----------------------
2022-05-18 17:22:40.081 ERROR 15104 --- [ main] n.s.m.timer.UpdateContractExpireTimer : 合约未知异常!
net.shengjian.makerone.exception.NFTException: 合约未知异常!
at net.shengjian.makerone.exception.NFTException.NFTExceptionERC1155(NFTException.java:28)
at net.shengjian.makerone.strategy.impl.XuperChainClientExecStrategyImpl.queryPlatChainMethod(XuperChainClientExecStrategyImpl.java:98)
at net.shengjian.makerone.strategy.context.ChainExecStrategyContext.query(ChainExecStrategyContext.java:87)
at net.shengjian.makerone.strategy.context.ChainExecStrategyContext.rootQuery(ChainExecStrategyContext.java:221)
at net.shengjian.makerone.timer.UpdateContractExpireTimer.init(UpdateContractExpireTimer.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:414)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:302)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292)
at net.shengjian.makerone.SpringrainApplication.main(SpringrainApplication.java:17)
2022-05-18 17:22:40,081 [main] net.shengjian.makerone.timer.UpdateContractExpireTimer:51-合约未知异常!
net.shengjian.makerone.exception.NFTException: 合约未知异常!
at net.shengjian.makerone.exception.NFTException.NFTExceptionERC1155(NFTException.java:28)
at net.shengjian.makerone.strategy.impl.XuperChainClientExecStrategyImpl.queryPlatChainMethod(XuperChainClientExecStrategyImpl.java:98)
at net.shengjian.makerone.strategy.context.ChainExecStrategyContext.query(ChainExecStrategyContext.java:87)
at net.shengjian.makerone.strategy.context.ChainExecStrategyContext.rootQuery(ChainExecStrategyContext.java:221)
at net.shengjian.makerone.timer.UpdateContractExpireTimer.init(UpdateContractExpireTimer.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:414)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:302)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292)
at net.shengjian.makerone.SpringrainApplication.main(SpringrainApplication.java:17)
net.shengjian.makerone.timer.NftOrderTimer.cancelOrder=>[0/10 * * * * ?],当前时间==>[Wed May 18 17:22:50 CST 2022]
net.shengjian.makerone.timer.NftOrderTimer.cancelOrder=>[0/10 * * * * ?],当前时间==>[Wed May 18 17:23:00 CST 2022]
net.shengjian.makerone.timer.NftOrderTimer.cancelOrder=>[0/10 * * * * ?],当前时间==>[Wed May 18 17:23:10 CST 2022]
net.shengjian.makerone.timer.NftOrderTimer.cancelOrder=>[0/10 * * * * ?],当前时间==>[Wed May 18 17:23:20 CST 2022]
net.shengjian.makerone.timer.NftOrderTimer.cancelOrder=>[0/10 * * * * ?],当前时间==>[Wed May 18 17:23:30 CST 2022]
net.shengjian.makerone.timer.NftOrderTimer.cancelOrder=>[0/10 * * * * ?],当前时间==>[Wed May 18 17:23:40 CST 2022]
请问有合约的部署流程吗?
请问合约文件有吗。项目里只有abi文件和bin文件
src/main/java/net/shengjian/makerone/entity/NftChainPlat.java
/**
* 合约账户
*/
@WhereSQL(sql="contractAccount=:NftChainPlat_contractAccount")
public String getContractAccount() {
return this.contractAccount;
}
/**
* 合约地址
* @param value
*/
public void setContractAddress(String value) {
if(StringUtils.isNotBlank(value)){
value=value.trim();
}
this.contractAddress = value; // bug
}
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.