mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-03 12:42:48 +03:00
Reorganize Ethereum-related stdlib cores
This commit is contained in:
parent
1342ab097e
commit
c8dfd21955
@ -81,7 +81,7 @@
|
||||
=+ => (from-seed:bip32 64^seed)
|
||||
(derive-path "m/44'/60'/0'/0/0")
|
||||
:+ [public-key private-key]
|
||||
(address-from-prv:ethereum private-key)
|
||||
(address-from-prv:key:ethereum private-key)
|
||||
chain-code
|
||||
::
|
||||
++ urbit
|
||||
|
@ -1,8 +1,8 @@
|
||||
::
|
||||
|_ upd=update:azimuth:ethe
|
||||
|_ upd=update:azimuth
|
||||
::
|
||||
++ grab :: convert from
|
||||
|%
|
||||
++ noun update:azimuth:ethe :: from %noun
|
||||
++ noun update:azimuth :: from %noun
|
||||
--
|
||||
--
|
||||
|
@ -21,10 +21,9 @@
|
||||
=, able:jael
|
||||
=, crypto
|
||||
=, jael
|
||||
=, ethe
|
||||
=, azimuth:ethe
|
||||
=, ethereum
|
||||
=, azimuth:ethereum
|
||||
=, rpc
|
||||
=, azimuth
|
||||
:: ::::
|
||||
:::: # models :: data structures
|
||||
:: ::::
|
||||
|
2075
sys/zuse.hoon
2075
sys/zuse.hoon
File diff suppressed because it is too large
Load Diff
@ -56,9 +56,9 @@
|
||||
::
|
||||
=^ results3 jael-gate
|
||||
=/ hiss-httr=hiss:eyre
|
||||
%+ json-request:ethereum
|
||||
%+ json-request:rpc:ethereum
|
||||
(need url)
|
||||
%+ request-to-json:ethereum
|
||||
%+ request-to-json:rpc:ethereum
|
||||
`'block number'
|
||||
[%eth-block-number ~]
|
||||
%- jael-take-with-comparator :*
|
||||
|
@ -3,7 +3,7 @@
|
||||
:: example point for ~zod
|
||||
::
|
||||
++ pot
|
||||
^- point:azimuth:ethe
|
||||
^- point:azimuth-types
|
||||
:+ [0x0 0x0 0x0 0x0]
|
||||
:* ~
|
||||
life=1
|
||||
@ -27,7 +27,7 @@
|
||||
++ azimuth
|
||||
%- crip
|
||||
%+ weld "0x"
|
||||
(render-hex-bytes:ethereum 20 `@`azimuth:contracts:azimuth:ethe)
|
||||
(render-hex-bytes:ethereum 20 `@`azimuth:contracts:^azimuth)
|
||||
:: snapshot
|
||||
::
|
||||
++ snap
|
||||
@ -328,7 +328,7 @@
|
||||
=/ sed [who 1 sec:ex:cub ~]
|
||||
%+ expect-eq
|
||||
!> [%& ~]
|
||||
!> (veri:dawn sed *point:azimuth:ethe ~)
|
||||
!> (veri:dawn sed *point:azimuth-types ~)
|
||||
::
|
||||
++ test-veri-pawn-key-mismatch
|
||||
=/ cub (pit:nu:crub:crypto 24 %foo)
|
||||
@ -336,7 +336,7 @@
|
||||
=/ sed [who 1 sec:ex:(pit:nu:crub:crypto 24 %bar) ~]
|
||||
%+ expect-eq
|
||||
!> [%| %key-mismatch]
|
||||
!> (veri:dawn sed *point:azimuth:ethe ~)
|
||||
!> (veri:dawn sed *point:azimuth-types ~)
|
||||
::
|
||||
++ test-veri-pawn-invalid-life
|
||||
=/ cub (pit:nu:crub:crypto 24 %foo)
|
||||
@ -344,7 +344,7 @@
|
||||
=/ sed [who 2 sec:ex:cub ~]
|
||||
%+ expect-eq
|
||||
!> [%| %invalid-life]
|
||||
!> (veri:dawn sed *point:azimuth:ethe ~)
|
||||
!> (veri:dawn sed *point:azimuth-types ~)
|
||||
::
|
||||
++ test-veri-pawn-already-booted
|
||||
=/ cub (pit:nu:crub:crypto 24 %foo)
|
||||
@ -352,5 +352,5 @@
|
||||
=/ sed [who 1 sec:ex:cub ~]
|
||||
%+ expect-eq
|
||||
!> [%| %already-booted]
|
||||
!> (veri:dawn sed *point:azimuth:ethe `[1 |])
|
||||
!> (veri:dawn sed *point:azimuth-types `[1 |])
|
||||
--
|
||||
|
@ -5,7 +5,7 @@
|
||||
::
|
||||
++ test-static-args
|
||||
%+ expect-eq
|
||||
!> %- encode-args:ethereum
|
||||
!> %- encode-args:abi:ethereum
|
||||
:~ [%string "dave"]
|
||||
[%bool &]
|
||||
[%array [%uint 1] [%uint 2] [%uint 3] ~]
|
||||
@ -24,7 +24,7 @@
|
||||
::
|
||||
++ test-dynamic-args
|
||||
%+ expect-eq
|
||||
!> %- encode-args:ethereum
|
||||
!> %- encode-args:abi:ethereum
|
||||
:~ [%uint `@ud`0x123]
|
||||
[%array [%uint `@ud`0x456] [%uint `@ud`0x789] ~]
|
||||
[%bytes-n (as-octt:mimes:html (flop "1234567890"))]
|
||||
@ -42,3 +42,4 @@
|
||||
"48656c6c6f2c20776f726c642100000000000000000000000000000000000000"
|
||||
==
|
||||
--
|
||||
[l+~ l+[l+~ ~] l+[l+~ l+[l+~ ~] ~]]
|
@ -4,7 +4,7 @@
|
||||
::
|
||||
++ test-signing-transaction-1
|
||||
%+ expect-eq
|
||||
!> %+ sign-transaction:ethereum
|
||||
!> %+ sign-transaction:key:ethereum
|
||||
:* 123
|
||||
1.000
|
||||
5.000
|
||||
@ -25,7 +25,7 @@
|
||||
::
|
||||
++ test-signing-transaction-2
|
||||
%+ expect-eq
|
||||
!> %+ sign-transaction:ethereum
|
||||
!> %+ sign-transaction:key:ethereum
|
||||
:* 42
|
||||
1.000
|
||||
5.000
|
||||
|
Loading…
Reference in New Issue
Block a user