0.6.23 • Published 9 months ago

@pixelaw/core-dojo v0.6.23

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

How Interactions (should) work

  • user clicks on pixel
  • retrieve function signature
  • if just DefaultParams : prep action function -> return
  • prep Param objects for each
    • has transformer? (prefix with "crc","crv", "crs")

Function signature fields

Example from RPS:

  • first_move(crc_move_Move)
  • second_move(move)
  • finish(crv_move, crs_move)

"Param.transformer()"

Param Transformers

  • "crc_VARNAME_VARTYPE": CommitReveal: Commit
    • collect variable value from UI
    • create salt
    • Hash variable with salt
    • submit the hash as felt252
    • store VARNAME+SALT in KVstore for later retrieval
  • "crv_VARNAME": CommitReveal: Value
    • retrieve value of VARNAME from storage
    • submit value
  • "crs_VARNAME": CommitReveal: Salt

    • retrieve value of SALT from storage
    • submit value
  • ContractCall

  • Params
    • StringParam
    • NumberParam
    • EnumParam
0.6.23

9 months ago

0.6.22

9 months ago

0.6.21

10 months ago

0.6.20

10 months ago

0.6.19

10 months ago

0.6.17

10 months ago

0.6.16

10 months ago

0.6.15

10 months ago

0.6.14

10 months ago

0.6.13

10 months ago

0.6.12

10 months ago

0.6.11

10 months ago

0.6.10

10 months ago

0.6.9

10 months ago

0.6.8

10 months ago

0.6.7

11 months ago

0.6.6

11 months ago

0.6.5

11 months ago

0.6.4

11 months ago

0.6.3

11 months ago

0.6.2

11 months ago

0.6.1

11 months ago

0.5.3

11 months ago