Venom for international regulated financial instruments -Fintech and Developers-

We know that Venom has possibilities for compatibility with Ethereum, high scalability and a talented team behind the development of the core. Just comment that they still do not have teams started in the development of regulatory financial instruments to adopt the network internationally as a tool for trading regulated financial instruments. Therefore, I would like to start with this post as a meeting point for international developers and fintechs who want to adopt this blockchain as a multilateral market tool, Distributed ledger technology is (DLT) or financial dapps.

19 Likes

The use of Smart contracts for the management of financial instruments, in most countries requires compliance with a series of multilateral requirements according to financial regulations between jurisdictions and the type of financial instrument, conflicts of laws, privacy issues and legal security of those involved in the smart contract
For example: To negotiate company shares by ISIN, it is necessary to determine the jurisdiction of validity of the transaction, asset quality, market type, brochures, where to pay taxes for capital returns, transaction revocations, information of the issuer and receiver of the transactions, asset status that we are going to negotiate in a certain jurisdiction, legal blockades, legal recovery and all this among multiple laws that multilaterally affect the transactions of company shares.

For this reason it is necessary to determine a VEP for this purpose accompanied by development and construction software MIT Licensed and be totally transparent to the end user.

Draft VEP ****: Manage Financial instrument among International Financial Regulations

Knowledge of international financial markets, software development, quantitative analysis are required for this purpose.

9 Likes

this is very very interesting

2 Likes

Very Good Thanks :heart_eyes: :heart_eyes: :heart_eyes:

2 Likes

It will be great to create instruments that allows traditional financial applications to be interoperable with the venom blockchain, as this one of their goals

3 Likes

Thank you, it’s a lot of work to do this, but you can see everything in the documents. :melting_face: But you are cool

3 Likes

Thanks. It is blind contact through facts and milestones without background by skills. It is necessary to verify knowledge. -estimated time: around 20 hours from scratch-

3 Likes

Very complex :sweat_smile: but thank you for the effort of explanation.

2 Likes

Indeed! It is a very complex project. That is the purpose of the standard. We created the hammer to break the multilateral financial maze in order to go in a straight line to the exit. You just have to overcome the learning curve and you will see it. :wink:

2 Likes

VEP-001: VENOM FINANCIAL INSTRUMENTS

 VEP: 1
 author: Rafael Mañez <rafael.manez@**********>
 status: Idea
 type: Standards Track
 category: Contract
 created: 2023-04-03

Abstract

VENOM FINANCIAL INSTRUMENTS. It is an open standard for the management of financial assets in a multilateral system with different jurisdictions and different financial regulations as well as inter-blockchain compatibility and distributed ledger technologies.
As an example of a regulated financial instrument, I present the case of company shares: To negotiate company shares by ISIN, it is necessary to determine the jurisdiction of validity of the transaction, asset quality, market type, brochures, where to pay taxes for capital returns, transaction revocations, information of the issuer and receiver of the transactions, asset status that we are going to negotiate in a certain jurisdiction, legal blockades, legal recovery and all this among multiple laws that multilaterally affect the transactions of company shares.

Motivation

The main motivation is to unify financial systems in a decentralized multilateral system with the objective of standardizing the management of financial instruments, without forgetting the particularities and operations of each one.

Specification

The keywords “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119.

  • MUST be Open Source Smart Contract MIT License
  • MUST have T-sol<–>Solididty compatibility only digital and decentralized compatibility
  • Centralized support is OPTIONAL
  • MUST manage Instruments: company shares, bonds, derivates, contracts
  • MUST allow third party audit: National Competent Authorities (NCa’s) and Central Financial Authorities as ADGM Authorities, ESMA, NFRA, SEC, …
  • MUST be able to grant permissions for third parties (Access, Views, SeenByThird, operations, privacy level and identities by nominal name or alias)
  • MUST interpret Jurisdictional limits.
  • MUST allow validation transaction.
  • MUST have security on transactions.
  • MUST allow Block and Unblock assets.
  • MUST allow Revocations and recoveries.
  • SHOULD have Asset history.
  • MUST allow transform financial rules into programmable financial rules.
  • MUST be scriptable functions (Interactive and non-Interactive) for manage by artificial intelligence
  • MUST allow rule injection.
  • MUST be inter-blockchain and distributed ledger technology compatibility.
  • The issuance of the financial instrument MUST be covered by the competent authorities.

Visualization:

Rationale

Instrument Interface

interface FinancialInstrument is CompanyShares{
....  
}

interface FinancialInstrument {
    //VARIABLE INTERNAL
     // byte financialrules?
    //VARIABLES EXTERNAL
    
    
    //@dev @TODO What is the most appropriate data structure? optimize gas primitives 0 < types < structs < imports < complex format < 100000 gas
    // via struct: Financial [ Rules [ Value ] ]
    // via map: mapping(Financial => address)
    // via byte encode: RULES[ ESMA:EU[10110101], ESCA:UAE[01010110]]  <-- it is the best in gas but it is worse in high level development for any dev. Must be used with json
    // via json (only Tsol)
    // TODO choice byte ,struct, map or json

    //METADATA   
    //@dev Values structure of the Metadata
    struct Values { 
      string stringValue;
      uint uintValue;
      address addressValue;
      bool boolValue;
      ...
    }
    //@TODO check mapping(Values => address) map or use pure struct?;
    //@TODO check compatibility gosh.zip converts the text to compressed bytes. gosh.unzip reverts such compression.

    
    //@dev Is this data structure adequate or is it preferable to use json for calling rules?
    //@dev Is Compatible Sol<-->Tsol with optimized gas? (YES)
    //@noted Encoded bytes rule (No compatible):
    bytes autority_from = 0xb5; // ESMA:EU      [10110101]
    bytes autority_to = 0x56;   // ESCA:UAE     [01010110]
    autority_from&autority_to;  // Result: 0x14 [00010100] --> Not compatible instrument

    //@noted Encoded bytes rule (compatible):
    bytes autority_from = 0xb5; // ESMA:EU      [10110001]
    bytes autority_to= 0x46;    // ESCA:UAE     [01000110]
    autority_from&autority_to;  // Result: 0x0  [00000000] --> compatible instrument
   

    // @TODO check compatibility standard struct->metadata->value with json for save history with HEX representation of the signature, 
    // @TODO generated using ed25519 algorithm --> very fast, non-reversible
    // @TODO generated using some AES symmetric, very fast, reversible
    // @notice metadata in JSON format
    // @return json The JSON string with metadata
    function getJson() external view responsible returns (string json);
   
     
     
    // @dev metadata structure allows to define particular instrument rule 
    // @notice 'title' defining the title information,
    // @notice 'data_type' explaining the data type of the title information added (int, bool, address)
    // @notice 'description' explains little description about the information stored in the instrument"
    struct Metadata { 
      string title; //eg tax control,rule,jurisdiction
      string data_type; //'int','bool','address'
      string description; //string
    }


    // @dev structure that defines the parameters for specific instrument and amount which are to be transferred/issued
    // @notice this structure is used to streamline the input parameters for functions of this standard with that of other Token standards like ERC20.
    // @classId is the class id of the instrument.
    // @authority_Id is the authority id of the given instrument class.
    // @amount is the amount of the instrument that will be transferred.
    struct Instrument {
      uint256 class_id; // companyShare
      uint256 authority_id; //rule verification isTransferable?
      uint256 amount;
    }


   
    // @dev allows the transfer of a financial instruments from one address to another.
    // @param from is the address of the stakeholder whose balance is about to decrease.
    // @param to is the recipient address whose balance is about to increase.
    // @param transaction is the object defining {class, authority and amount of the instrument to be transferred}.
    function transferFrom(address from, address to, Instrument[] transaction) external;

    //@TODO isTransferable(address from, address to, Metadata[] rule)
     
    // @dev How to control the collision between the bridge (Etherem, Venom) at propagation time. Issue event to bridge of traded assets
    // @notice SOLVED COLLISION IN FEDERATED TRANSACCIONS
    // @notice Solution to the collision of a transaction in progress by arbitration
    function chance(asset Eth, asset Venom) --> winning asset

    // @notice Solution to the collision of the transaction in progress due to pool time
    function seed_time(asset Eth, asset Venom) --> winning asset

    //EVENTS 
    ...
}

Type financial instruments:

<financialInstruments>.views(involutiveAssetHistoy, privacyLevel) #token fixed lengh for extract/pack history  
<financialInstruments>.attribute
<financialInstruments>.actions(...) #Common functions
<financialInstruments>.setOperator #Set Union, Intersection, Difference, Complement of Set and Cartesian Product 


contract financialInstrument is CompanyShares {
  ...
}

Header

pragma ton-solidity >= 0.1.*;

pragma AbiHeader injectRules;
pragma AbiHeader auditState;
pragma AbiHeader expire;
pragma AbiHeader time;
pragma AbiHeader pubkey;

Third party auctions:

#includes the regulatory nodes that affect the contract
import "https://jurisdiction/financialInstruments/rules/instrument.sol";
import "https://esma/financialInstruments/rules/companyShares.sol";
import "https://adgm/financialInstruments/rules/companyShares.sol";

Libraries and utils

// Library decode/encode inject rules
...

//Library Auto asset history (cross-chain? (YES)
//@notice Write history for authority registration
//@dev symmetric algorithm SHA-256(currently used by Bitcoin) and Keccak-256(currently used by Ethereum)
bytes32 public constant  AUTHORITY_REGISTRATION= keccak256("asset_history(address from,address to,uint256 units,string isin, string,symbol, uint256 nonce,uint256 deadline)");
//or 
bytes32 public constant  AUTHORITY_REGISTRATION= SHA-256("asset_history(address from,address to,uint256 units, string isin, string symbol, uint256 nonce,uint256 date)");

//Write new history and wrap
bytes32 encodeData = keccak256(abi.encode(AUTHORITY_REGISTRATION, from, to, units, isin, symbol, nonces[owner]++, date,));
//or
bytes32 encodeData = SHA-256(abi.encode(AUTHORITY_REGISTRATION, from, to, units, isin, symbol, nonces[owner]++, date,));

// Library  for recode in main thread
#TODO Is this pseudo-code suitable for recode Solidity <-> T-SOL and useful to update the contract at contract time? 
#Receiving an inbound rule injection via fallback by internal/external message from competent financial authority. 
#Does the competent authority involved in the contract want to inject any rules with reversal of control.
bool authorityRuleInjection = 0 #the authority speaks to apply a priority action
function isNewRule(address addr) public pure { ... }

function fallback() external { 
   #from cell 
   /*...*/
}

# or via onCodeUpgrade with direct injection and contract update
#TODO check TVM <--> EVM compatibility for change on authority demand.
function injectNewRule(...) private {
    /*...*/
}

function recode(TvmCell newcode, TvmCell cell) public pure checkPubkeyAndAccept {
    tvm.setcode(newcode);
    tvm.setCurrentCode(newcode);
    // pass cell to new contract
    injectNewRule(cell);
}

function injectNewRule(TvmCell cell) private pure {
 /*...*/
}

recieveNewRules() external {TVM* = data}


// new contract
function injectNewRule(TvmCell cell) private pure {
    // new code can use cell that was passed from the old version of the contract
}


// Library privacy level and constraints

pragma copyleft <type>, <wallet_address>;  #good but poorly compatible with Ethereum

Metadata

Contains the scheme of logical rules, numbers and limits between participants in the negotiation of a financial instrument on YAML or JSON .

#Example of purchase and sale of listed company shares.
example: companyShare.json

{
  //rules of the financial authority that included in the transactions. 
  "ESMA":{
      //EU
      "rules": [
           anti-application rule .....
           integration and compensation...
           jurisdictional limit of the action on shares of listed companies
           "tax": {
               "brief": taxation of the actions on shares of listed companies
               "jurisdiction": [ESMA, UAE]
               "instant_payment_tax": address
            }
           market data...
          ]

  "ADMG":{
      //UAE
      "rules": [
           anti-application rule .....
           integration and compensation...
           jurisdictional limit of the action on shares of listed companies...
           "tax": {
               "brief": taxation of the actions on shares of listed companies...
               "jurisdiction": [ESMA, UAE]
               "instant_payment_tax_wallet": address
            }
          ]
   
  }
  //Transmit orders
  "transmitter": [
    "id": my nominal identification or custodial ALIAS
     "ISIN": EU0000000
     "Central Authority": ESMA
     "National Competent Authority": EU
     "Transfer value" ='2.33'
     "units" : "203266"
     "wallet": address
    ....
  },
  "receiver": [
     "id": my nominal identification or custodial ALIAS
     "ISIN": EU0000000
     "central Authority": ADMG
     "National Competent Authority": UAE
     "Acquisition value" : '2.25'
     "units" : "203266"
     "wallet": address
   ....
  }
  ]
}    

Backwards compatibility

Unprecedented. Checking EVM <–> TVM compatibility

Reference implementation

Test cases

Security considerations

  • Caution on gas from complex formats
  • Caution deadly link between regulatory rules

Implementation

MIT licensed.
Cold device environment.
A library of modular, reusable smart contracts.
Samples and tests here

Requires:

TIP-4.1 standard for NFT
TIP-6.1

References:

[ALL] The International Organization of Securities Commissions (IOSCO) promotes co-operation between supervisory authorities of securities and futures markets.
[EU][LU] Commission de Surveillance du Secteur Financier
[EU][ESMA] Regulation DLT pilot regime for market infrastructures
[UAE][ESCA] Regulations SCA’s
[USA][SEC] Strategic Hub for Innovation and Financial Technology (FinHub)
[JP][BOJ] Bank of Japan

Open question:

  • What type of token should the issue or DAO issue? Keep in mind that financial instruments allow issuance, asset expansion, merger, new nomination or reduction of the asset?
  • What would be the average number of transactions on the Venom network for financial instruments? gas propagation…

Required knowledge base:

  1. know about financial instruments
    Digital asset <> Financial Instrument.
    Digital assets as tokens, NFTs are assets not regulated by a competent authority.
    Financial Instrument as company shares is a regulated asset by a competent authority.
  2. Good level in the discussion and development of smart contracts, standard protocols for a decentralized environment.
  3. Expose Idea software (business logic) via an executable script.sh .
  4. Expose regulatory idea by visual diagram or metadata Idea through JSON/YAML structure.
  5. Venom Faucet for Developers to request Test Venom tokens to your wallet
  6. Upload a dummy smart contract as wallet-to-wallet transfer.
  7. Write the code hash or address at VEP forum for check address. like this d22feffdf35dad582ae1b75aea7e313afaf574594d26c605750ba13f96aa11fb
  8. Welcome to venom-financial-instruments team.

Contributors

Contributions are always welcome!

Terms to collaborate

We do not doubt that you are the best developer or the best businessman but we can only see your capacity through the facts and the commitment that the effort gives. The rest is luck. It is a long-term core project and required by Fintech Defi that want to be regulated to trade financial instruments.

You should know that every time you develop dapps for (DEX, BROKERS, BANKS, FINANCIAL AUTHORITIES, AUDITORS, NOTARIES, LAWYERS, FINANCIAL INDUSTRY …) to manage regulated financial instruments. You will need this library to regulate with a competent financial authority

  1. It is blind contact through facts and milestones without background by skills. It is necessary to verify knowledge. -estimated time: around 20 hours from scratch-
  2. It is a project for the core protocols in smart contracts. A Web3 expert is not necessary, a cross-blockchain smart contract expert is necessary.
  3. The project is not led or of a presidential format, it is community based on merits carried out. On equal terms.
  4. It is not an interview, do not send personal data to forum or chats. It is a selection by operational capacity for the collaboration. Members are anonymous unless they want to be published.
  5. The remuneration - or prize distribution - is based on the finished public development tickets.
  6. The error is tolerable. The rigor and try until it works is necessary.
  7. Take the time you need. The completed development tickets mark the times. -dev tickets are not reserved.-

:rocket: For projects looking for individuals: (If so DM at forum)

  • Project name: venom-financial-instruments
  • Project track: Idea and VEP at forum "Venom for international regulated financial instruments -Fintech and Developers- "
  • Unique selling point (USP) or core feature : Cross-chain financial instruments and web3 trading
  • Role that is needed : Quantitative experience in financial systems and financial instruments, Development experience in smart contracts “t-sol & sol” and cross-chain
  • Type of remuneration: Collaborator. It is a long-maintenance MIT license project.

Any recommendations from the community for the interface? and avoid turning the project into a single criteria?
Decentralized projects must be 100% decentralized to be adopted by users.

Open Collaborators Tickets (They are not reserved, discuss in forum.)

Item In Stock Role -
Bash Script for deploy Infrastructure Open Api generator cli/stub server/web3connect True DEV -
Consolidated Financial Rules schema/model (JSON/YAML) True QUANT -
Deploy interactive test infrastructure -not web, only command line- True DEV -
Document the source urls of the competent financial authorities to convert them into logical schemas. True QUANT -
Branding design (Header and Footer) for mustage , css, html templates and logo venom financial instruments. True BRAND -
Actor model hipotesis for pre-transactions, transaction, post-transaction, pre-validation of metadata, inline-validation, post-validations metadata True DEV -

Gratitude

Thanks for the all likes and encouragement post.
For reasons of clarity we will update on the VEP post and the likes and post will be removed.

Only the “likes” of the header will remain.
Only posts of constructive criticism of the projects will remain.

Copyright

Copyright and related rights waived via CC0 .

2 Likes

Hi all !!
Who is joining the group to develop financial instruments for the Venom ecosystem? From Venom_financial_instruments we are willing to participate from scrach (start Venom Device, Connect to block, deploy smart contract, cross-chain dev and financial regulations).

The type of learning: Open knowledge. We will learn how to raise Venom from development errors at development time to those solved by the team itself.

Duration: if we reach a group of 5 Quants devs and T-sol devs. 19:00-20:00 CEST every day. Reply or like this message to contact you to refer ‘DLT Financial Instruments’ discord live chat for prevent Time Out penalties.

Location: Discord #dev-chat and
venom.forum: Venom for international regulated financial instruments -Fintech and Developers-

2 Likes