Giter Club home page Giter Club logo

abi-uri's People

Contributors

barnjamin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

emg110

abi-uri's Issues

URI schema idea

to mirror the ABI spec more closely, what if the URI was formatted like:

algorand-abi://APP_ID/METHOD_SELECTOR?args=arg_1,arg_2&note=some%20not%20so%20secret%20msg&apat=acct_xyz

args could also accept multiple vals for arrays:
?args=arg_1&args=arg_2&args=(arg_3_op1,arg_3_op2) where args = [ arg_1, arg_2 ] AND the user/signer picks which option for arg_3 in the signing app.

  • since the order of method args is particular + the method selector specifies their types, the args param should be an ordered array and types parsed accordingly (note, there are a few standards re how to injest arrays in query strings)
  • all algo txn fields: https://developer.algorand.org/docs/get-details/transactions/transactions/#common-fields-header-and-type
  • the type param could be locked to appl since this all about abi application calls, though perhaps this can be the same spec as algorand://... and handle all types of algo txns
  • should the args param be called apaa as per the docs? or accept both?
  • a range / selectable options can be handled like =(option_1,option_2,option_3)
  • objects can be consumed stringified like ={key_1:val_1,key_2:(val_2a,val_2b)}
  • METHOD_SELECTOR looks something like: reverse(string)string so args must be length of 1 + type: string
  • METHOD_SELECTOR == apaa[0]
  • APP_ID == apid (inferred from base)
  • for testnet app calls specify a testnet APP_ID and gen=testnet-v1.0&gh=SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=
  • other important fields: apas apfa apan

predefining a txn for a client to sign + send will be HUGE ! ๐Ÿ‘ @barnjamin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.