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