Get data from the intermediate table to update the TW sales contract registration data (including table body)

package nc.bs.backgroundtasks; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import nc.bs.dao.BaseDAO; import nc.bs.framework.common.NCLocator; import nc.bs.pub.pa.PreAlertObject; import nc.bs.pub.taskcenter.BgWorkingContext; import nc.bs.pub.taskcenter.IBackgroundWorkPlugin; import nc.impl.pubapp.pattern.data.bill.BillQuery; import nc.itf.jych.IXshtdjMaintain; import nc.jdbc.framework.processor.BeanListProcessor; import nc.jdbc.framework.processor.ColumnListProcessor; import nc.vo.jych.oavo.OaXshtBVO; import nc.vo.jych.oavo.OaXshtVO; import nc.vo.jych.util.SqlBuilder; import nc.vo.jych.xshtdj.AggXshtdjVO; import nc.vo.jych.xshtdj.XshtdjBVO; import nc.vo.jych.xshtdj.XshtdjVO; import nc.vo.pub.BusinessException; import nc.vo.pub.SuperVOUtil; import nc.vo.pub.VOStatus; import nc.vo.pub.lang.UFDate; import nc.vo.pub.lang.UFDateTime; import nc.vo.wgbfb.tool.NullValueUtils; /** * @desc: […]

Smart contract ERC20 deducts the specified handling fee for each transfer to the specified address/excluding the contract owner

// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed […]

Write your first smart contract in Remix

To put it simply, a smart contract is:A contract or a set of instructions deployed on a decentralized blockchain. When this contract or this set of instructions is deployed, it cannot be changed and will be executed automatically. Everyone can see the termsin the contract. The deeper understanding is that these codes will be executed […]

WEB3 creates a React front-end Dapp environment and integrates the solidity project, integrating the project structure to facilitate the front-end to get the contract Abi

Okay, everyone, after what we have said above, WEB3 solidity takes you to write test code to operate orders, create/cancel/fill operations, we wrote a script to test the order business. Unexpectedly, it ran quite well. So starting today, we can start operating an operation of our front-end Dapp. In the whole process, there is indeed […]

Design analysis and shortcomings of contract upgrade standard ERC2535

Design analysis and shortcomings of contract upgrade standard ERC2535 Safful recently audited an implementation of the Diamond Standard, a new upgradable contract model. Writing standards is a laudable undertaking, but there are many concerns about the Diamond Standards and their implementation. This code is the product of over-engineering and comes with a lot of unnecessary […]

33. HPA realizes automatic expansion and contraction

Achieving dynamic expansion and contraction of business applications through HPA HPA controller introduction When system resources are too high, we can use the following commands to implement the Pod expansion and contraction function $ kubectl -n luffy scale deployment myblog –replicas=2 But the process is manual. In actual projects, what we need to achieve is […]

Quantitative Trading – One Piece – Added transaction time judgment & section time loading into the contract – ContractData.h & ContractData.cc

//ContractData.h #pragma once #include <string> #include <memory> #include <unordered_map> #include <vector> #include <unordered_set> #include <onepiece/models/PositionData.h> #include <onepiece/models/OrderData.h> #include <onepiece/models/TradeData.h> #include <onepiece/models/TickData.h> #include <onepiece/models/OnePieceEnum.h> #include <rapidjson/document.h> using namespace rapidjson; class IPluginContext; using namespace std; classContractData { public: ContractData() = delete; ContractData(const shared_ptr<string> instrumentID, const shared_ptr<string> exchangeID, double priceTick, int volumeMultiple, int maxMarketOrderVolume, int minMarketOrderVolume, int maxLimitOrderVolume, […]