drbeefsupreme
6f89b2ddd6
naive: use lib/naive tx form
2021-05-19 15:48:27 -04:00
Philip Monk
804e2578ed
kiln: don't crash on fuse
2021-05-18 09:09:22 -10:00
Philip Monk
1e6e69a49d
Merge branch 'pr' into release/next-sys
2021-05-18 07:50:26 -10:00
Philip Monk
3a3bd23be6
Merge remote-tracking branch 'origin/master' into release/next-sys
2021-05-18 07:50:05 -10:00
Philip Monk
63ba2823dd
Merge remote-tracking branch 'origin/ted/clay-bunt' into release/next-sys
2021-05-18 07:38:52 -10:00
Liam Fitzgerald
4babfb22b7
hark: new boxing refinement
2021-05-18 10:57:25 +10:00
yosoyubik
9e7cb91398
Merge branch 'yu/azimuth-rpc' into naive/aggregator
2021-05-17 17:50:45 +02:00
yosoyubik
152cf894ff
naive: hook rpc-api with aggregator
2021-05-17 17:49:41 +02:00
Liam Fitzgerald
d37dd90aef
hood: dm-hook is born
2021-05-17 16:16:37 +10:00
Liam Fitzgerald
d1cb72947e
hark: first pass at new boxing model
2021-05-17 15:42:13 +10:00
Liam Fitzgerald
95a41e6896
Merge remote-tracking branch 'origin/release/2021-5-27' into lf/perfect-dms
2021-05-17 12:01:59 +10:00
yosoyubik
154baceb8b
Merge branch 'yu/azimuth-rpc' into naive/aggregator
2021-05-14 09:46:36 +02:00
yosoyubik
c5d61b7076
json-rpc: fix result key in rpc response
2021-05-14 07:25:13 +02:00
yosoyubik
8ebb5e2d6c
naive: add pending and tx status RPCs
2021-05-14 07:25:09 +02:00
yosoyubik
7ede24c3cc
naive: first pass at tx history RPC
2021-05-14 07:25:04 +02:00
yosoyubik
ae8d98c467
naive: add jsonrpc parsing for sending pending rolls
2021-05-14 07:24:59 +02:00
yosoyubik
66d0c7d47b
naive: handle malformed data in transfer-point
2021-05-14 07:24:56 +02:00
yosoyubik
c150da0372
naive: validate proxy in from is one of proxy:naive
2021-05-14 07:24:53 +02:00
yosoyubik
00334d582e
naive: use +pairs:enjs for point-to-json reponse
2021-05-14 07:24:48 +02:00
yosoyubik
0380d18735
naive: add rpc response error codes
2021-05-14 07:24:43 +02:00
yosoyubik
36cdb9493d
naive: add jsonrpc parsing for naive txs
2021-05-14 07:24:35 +02:00
yosoyubik
fe6f189e33
json-rpc: add support for params as map object
2021-05-14 07:24:35 +02:00
yosoyubik
843fe4ce38
json-rpc: add validation for json-rpc request
2021-05-14 07:24:27 +02:00
yosoyubik
d8a24d7d6b
naive: add json library for rpc responses
2021-05-14 07:24:16 +02:00
yosoyubik
0c704bb145
json-rpc: add response-to-json
2021-05-14 07:24:16 +02:00
Philip Monk
958b68f63b
naive: comments
2021-05-13 06:58:37 -10:00
fang
9b62454bca
naive: wip aggregator
...
Includes logic for the core flow, but isn't fully hooked up to outside
sources/events yet. Probably doesn't compile. Plenty of TODOs remaining.
2021-05-13 17:21:35 +02:00
drbeefsupreme
49fdf0a496
naive: fix key changing tests
2021-05-11 17:33:57 -04:00
drbeefsupreme
de5a907300
naive: factor out l2 transaction firing into lib
...
Moved everything related to generating layer 2 transactions, including
verification, into their own library. This ought to be shared between
the aggregator and tests
2021-05-11 16:47:33 -04:00
Liam Fitzgerald
dbb5cf4f0b
hooks: reset diplomacy
2021-05-11 11:50:12 +10:00
Liam Fitzgerald
73e32f816c
Merge remote-tracking branch 'origin/release/next-userspace'
2021-05-11 11:07:17 +10:00
Logan Allen
2a0fdb446c
push-hook: clean-up code style
2021-05-10 15:16:24 -05:00
Matilde Park
d4c4db1ec5
Merge branch 'release/next-js' into release/next-userspace
2021-05-10 12:27:12 -04:00
Logan Allen
f4388dc60e
graph-push-hook: speed up +transform-proxy-update by using persistent
...
caching
2021-05-07 15:42:31 -05:00
Logan Allen
57f5550dbc
graph-push-hook: add better hints for profiling
2021-05-07 12:11:16 -05:00
matildepark
0ac26732c0
Merge pull request #4833 from rabsef-bicrym/ico-mark
...
file-server: Added support for .ico files:
2021-05-06 00:28:07 -04:00
fang
1678d45876
naive: emit effects for processed txs
...
As a transaction receipt of sort, to inform of transaction success or
failure.
2021-05-06 00:16:49 +02:00
Liam Fitzgerald
357ba972d6
hark-store: refactor on-load
2021-05-04 15:21:49 +10:00
Liam Fitzgerald
31a84f583f
hark: refactor, add migration
2021-05-04 14:17:55 +10:00
Liam Fitzgerald
ec4e3cacc3
post: remove %dm reference
2021-05-04 14:15:47 +10:00
Liam Fitzgerald
7a4546c4a1
dm-hook: screening
2021-05-04 11:17:49 +10:00
Liam Fitzgerald
772a134108
dm-hook: update for latest master
2021-05-04 11:17:49 +10:00
Liam Fitzgerald
10df4fa4b8
dm-hook: pendings and references
2021-05-04 11:17:47 +10:00
Liam Fitzgerald
2001afe01d
hark: remove group, change module to mark in index
2021-05-04 11:17:46 +10:00
Liam Fitzgerald
828e7ead1b
graph: add cage helpers
2021-05-04 11:15:03 +10:00
Liam Fitzgerald
395ef6ef01
hooks: add diplomacy flag
2021-05-04 11:06:59 +10:00
Liam Fitzgerald
29ada0eba1
pull-hook: slog tank on versioned nack
...
Should hopefully provide more debugging info for ghost subscriptions
2021-05-04 11:02:24 +10:00
Liam Fitzgerald
dcf858ccf9
push-hook: hold subscription open after validating access
...
When we receive a watch-nack on a versioned subscription, we attempt to
resubscribe on an unversioned path. However, if we receive an unversioned
subscription request for which we are not compatible, we hold the
subscription open and never send any facts on unversioned subscriptions.
As the check for unversioned compatiblility occurs before retrieving the
initial-watch, subscriptions which are supposed to nack never do. Fixed
by moving the conditional.
Fixes urbit/landscape#795
2021-05-04 10:56:49 +10:00
Liam Fitzgerald
c73e2b95b5
versioning: convert gates return a cage
2021-05-04 10:55:06 +10:00
raghu
baa06904f6
fuse: print help text in generator
2021-05-01 23:04:19 -04:00
Matilde Park
391a3101d9
Merge branch 'release/next-js' into release/next-userspace
2021-04-30 18:10:01 -04:00
Liam Fitzgerald
004145b407
graph: bunt time to ensure deduplication
...
The varying timestamp in the %add-graph fact from graph-push-hook was
preventing deduplication of the jammed noun in ames. Prevents
unnecessary bail: memes upon sending many %add-graph facts
2021-04-30 23:58:50 +10:00
Liam Fitzgerald
681641fe4c
graph-store: initialise update logs
2021-04-30 23:58:42 +10:00
Liam Fitzgerald
56b9a7545c
Merge remote-tracking branch 'origin/master' into la/ref-trans-graph
2021-04-30 14:36:26 +10:00
Philip Monk
ca389b42cf
Merge remote-tracking branch 'origin/master' into release/next-sys
2021-04-28 23:25:16 -07:00
Liam Fitzgerald
1ab144b265
hooks: address L review
2021-04-29 15:29:27 +10:00
Philip Monk
27949c5d8a
naive: fix +tx
2021-04-28 22:04:11 -07:00
rabsef-bicrym
04537e6fc1
Added support for .ico files:
...
-/mar/ico/hoon
* Utilizes similar structure to /mar/png/hoon, w/ changed mimetype
-/lib/server
* Added ico-response, again similar to png w/ same caching
-/app/file-server
* Added reference to ico-response:gen
i showed you my ico, plz respond
2021-04-29 04:38:43 +00:00
Philip Monk
75eeef544e
naive: store crypto suite number in state
...
We now store the raw crypto suite number, authentication key, and
encryption key. App/azimuth converts this to a `pass` for jael's
benefit.
2021-04-28 20:51:43 -07:00
Philip Monk
b1091d0e98
Merge remote-tracking branch 'origin/master' into philip/naive
2021-04-28 20:30:07 -07:00
Philip Monk
3869e01556
naive: infer ships from 'from'
...
For all except spawn, we can infer one of the ship arguments to be the
"from" ship. This reduces repetition in the batches, which shortens txs
by 4 bytes each (except spawn), and eliminates the need to assert the
same ship is used in both places.
2021-04-28 19:55:57 -07:00
Philip Monk
36a10eb083
naive: convert can -> cad
...
Avoid bugs where we miscount the length of assembled atoms.
2021-04-28 19:19:50 -07:00
Philip Monk
5d52171a47
naive: add domain separator
...
To prevent replay across chains, eg from ropsten to mainnet.
Additionally, this introduces a version number, so we won't have to
worry about future signature formats being accidentally compatible with
this one.
2021-04-28 18:13:00 -07:00
Philip Monk
6dda168f3c
naive: factor out keccak into verifier
...
The verifier now takes an octs so that we can properly hash it to the 32
bytes required by ecdsa.
This allows lib/naive to use its own stdlib again.
2021-04-28 15:38:28 -07:00
Philip Monk
f2c43edc99
naive: make bitlengths explicit
...
Also switches everything to ropsten by default, including ivory pill.
Batches work on ropsten now.
Also adds +tx as a hacky development tool to create text for metamask to
sign and then turn that into a batch. A useful reference for bridge and
aggregator work.
2021-04-27 22:58:19 -07:00
Philip Monk
781cdf3960
naive: alter signatures to match personal_sign
2021-04-27 17:26:34 -07:00
L
eb371ea4c2
Merge pull request #4776 from urbit/la/fix-session-cache
2021-04-27 16:00:35 -05:00
fang
6f0a947d1b
Merge branch 'master' into release/next-sys
2021-04-26 23:13:27 +02:00
Logan Allen
79fe01a434
graph-store/push-hook: remove old mark warming, organize
2021-04-26 13:28:13 -05:00
raghu
201c3db193
clay: finalize fuse request - update |fuse
2021-04-25 14:01:45 -04:00
Philip Monk
1ed14c9908
naive: remove "wrap" functionality
...
Wraps are hard to get right, so we remove support for now.
2021-04-20 23:51:32 -07:00
Philip Monk
05dbd8cddd
naive: move signature verification inside loop
...
Before this change, signatures were verified according to the owners at
the beginning of batch, which is wrong. Now we do it per wrap, but this
is *also* wrong because they should actually be verified per tx, in case
the owner changes within a wrap.
Also introduces the roll/wrap terminology.
2021-04-20 23:08:32 -07:00
Philip Monk
1b5bc0f476
naive: snapshot improvements
2021-04-20 21:57:04 -07:00
Logan Allen
cd627d452c
metadata-store lib: replace crip, trip with rap 3
2021-04-20 16:25:43 -05:00
Logan Allen
c8565e2c3b
graph-store lib: skip trip and crip, use rap
2021-04-20 15:58:12 -05:00
Liam Fitzgerald
e27b899a9d
pull-hook: prevent subscription to own store
2021-04-20 18:24:49 +10:00
Liam Fitzgerald
8b52f14a20
pull-hook: do not renegotiate if versions did not change
2021-04-20 18:24:47 +10:00
Liam Fitzgerald
7f3d6ef212
push-hook: do not kick subs if versioning same
2021-04-20 18:08:02 +10:00
raghu
b2e1008d9a
clay: add %fuse
2021-04-19 23:46:46 -04:00
Logan Allen
7a44015924
graph-store: update +tag-queries to be a (jug term uid)
2021-04-19 15:53:07 -05:00
Logan Allen
751f3d1f24
server: fix session js caching, add cache threading for other response types, switch from tape to cord interpolation
2021-04-16 12:58:27 -05:00
Philip Monk
c915839e9d
naive: fetch l2 batches from chain
2021-04-15 01:02:58 -07:00
Philip Monk
3e56e17a22
naive: remove l2 set-voting-proxy
...
Since galaxies can't be on L2
2021-04-14 18:03:52 -07:00
Philip Monk
176df1fc2a
naive: add verbosity level
2021-04-14 17:49:30 -07:00
Philip Monk
46275fa251
naive: a few bugfixes
2021-04-14 16:58:27 -07:00
Logan Allen
d144af2e5b
graph-store: migration code moved into lib, graph-store compiles with stubbed out %remove-posts
2021-04-14 14:26:36 -05:00
Logan Allen
fb0f169c09
graph-store: add referential transparency to structures file and update libs to compile
2021-04-13 16:17:39 -05:00
Logan Allen
f3001e122f
graph-store: clean up old migrations
2021-04-13 15:38:42 -05:00
fang
1411e08944
clay: specify target type for /~ results
...
Clay will nest-check the results and put a homogenous map into the
subject.
2021-04-10 01:59:26 +02:00
fang
62d7281156
clay: add /~ ford rune, as /= for directories
...
Hoon files may want to import nouns from all files in a given directory.
/~ lets you do so, importing as a (map @ta *) (but with typed values).
Note the description as "directories" here, instead of "path prefix".
The behavior, as implemented, will not include /path/hoon for /~ /path,
instead only including /path/more/hoon and more deeply nested files.
This seems to be, generally, the behavior you want, for example when
importing from /app/myapp/* for /app/myapp/hoon.
Actually using the resulting map requires some manual casting, which is
not ideal. Some code style improvement work remains to be done as well.
2021-04-09 01:49:14 +02:00
Philip Monk
0fbbd3aa28
naive: add app/naive to download from ethereum
2021-04-08 00:36:34 -07:00
fang
1ec5e5acfb
hoon: add +stap, path parser
...
And cleans up a bunch of locally hand-written implementations of it.
2021-04-07 21:14:13 +02:00
Liam Fitzgerald
fbd85abf4e
Merge remote-tracking branch 'origin/master' into lf/push-hook-unver
2021-04-03 12:54:35 +11:00
Liam Fitzgerald
b6a758b1f9
pull-hook: noop on unsupported, unversioned facts
...
Pull-hook side of the previous change to push-hook
(479fbfd798
). Noop on unsupported
unversioned marks, waiting for the publisher to upgrade and kick. Same
tradeoffs as previous change apply.
2021-04-03 10:45:22 +10:00
Philip Monk
c162758e92
naive: add all effects
2021-04-02 16:06:24 -07:00
Logan Allen
21b1119c74
metadata lib: parse right
2021-04-02 20:35:25 +00:00
Logan Allen
6fbbe2ceb7
metadata-store lib: make config encode/decode invertible
2021-04-02 19:18:59 +00:00
Liam Fitzgerald
f27fa5b0f3
metadata: fix updating graph metadata
2021-04-02 23:23:31 +10:00
Liam Fitzgerald
01960286d0
push-hook: do not pass facts to unsupported, unversioned subs
2021-04-02 22:14:15 +10:00
Liam Fitzgerald
479fbfd798
push-hook: noop on unversioned, unsupported watches
...
Mainnet is currently experiencing undue load due to a watch-kick loop.
If the watch is unsupported, it will be kicked due to a mark mismatch,
which will be interpreted by the unversioned hooks as a network pressure
kick, prompting a resub and continuing the loop. Instead, we now no-op
on unversioned, unsupported watches, waiting for the subscriber to
rewatch after it processes the versioning OTA. This will silently break
groups for the subscriber until the reach the latest OTA, but is
preferable to nacking, and kicking them permanently
2021-04-02 20:38:22 +10:00
Liam Fitzgerald
eb131e64a8
metadata: prevent crash
2021-04-02 15:24:26 +10:00
Liam Fitzgerald
4d659be7cf
metadata: fix JSON conversions
2021-04-02 14:35:41 +10:00
Philip Monk
cc92433622
naive: detach from arvo
2021-04-01 19:31:50 -07:00
Liam Fitzgerald
615be57b7b
Post: refactor permission variations
2021-04-02 11:48:09 +10:00
Logan Allen
5953c9a58f
graph-view: add %vip field to %create-group-feed
2021-04-01 16:08:30 -05:00
Philip Monk
c7ce435a3e
naive: add nonces to transactions
2021-04-01 00:05:12 -07:00
Philip Monk
ce08324597
naive: add batch transaction type
2021-03-31 20:28:13 -07:00
Philip Monk
f277eaadb2
naive: remove unnecessary checks
2021-03-31 19:47:40 -07:00
Philip Monk
26226916a0
naive: make all errors explicit, remove +mule
2021-03-31 18:55:49 -07:00
Philip Monk
9149f45521
naive: catch all parser errors explicitly
2021-03-31 18:30:15 -07:00
Philip Monk
5a761caac6
naive: factor out stdlib dependencies
2021-03-31 18:17:37 -07:00
Philip Monk
063c51a8fc
naive: cleanup
2021-03-31 16:21:37 -07:00
Liam Fitzgerald
95bf313ff9
group-view: add %started update
2021-03-29 14:27:28 -04:00
Matilde Park
b7e52edd58
Merge branch 'pre-release/next-userspace' into release/next-userspace
2021-03-26 14:43:28 -04:00
Liam Fitzgerald
996174f85f
push-hook: add version scries
2021-03-26 16:58:02 +10:00
Liam Fitzgerald
9323f19108
graph-store: fix JSON
2021-03-25 14:45:16 +10:00
Liam Fitzgerald
248255c697
graph-store: fix crash in JSON
2021-03-25 14:10:28 +10:00
Liam Fitzgerald
7b378f435d
pull-hook: delay scry in on-load
2021-03-25 11:32:32 +10:00
Liam Fitzgerald
3b3d86aa6c
pull-hook: delay scry in on-load
2021-03-25 11:28:20 +10:00
Matilde Park
7fd4928d96
Merge branch 'release/next-js' into release/next-userspace
2021-03-24 19:10:27 -04:00
Liam Fitzgerald
ce1520ab1a
pull-hook: fix crash
2021-03-25 09:01:22 +10:00
Logan Allen
58bf89d834
Merge branch 'release/next-userspace' into la/group-feed
2021-03-24 14:51:49 -05:00
Liam Fitzgerald
dd44377624
interface: update transclusion for reference content
2021-03-24 13:11:48 +10:00
Liam Fitzgerald
c186bad1c1
graph-store: +on-load
2021-03-24 13:09:58 +10:00
Liam Fitzgerald
b1e86b42ba
interface: fix private permalinks
2021-03-24 13:09:55 +10:00
Liam Fitzgerald
54b3982b42
graph-store: upgrade reference content
...
This commit changes the type of update:graph-store and as such, a new
mark has been created. graph-store now consumes and produces
%graph-update-1. This new mark type is backwards incompatible with the
previous mark.
2021-03-24 13:06:26 +10:00
Logan Allen
9de66bc5af
Merge branch 'release/next-userspace' into la/group-feed
2021-03-23 21:13:12 -05:00
Liam Fitzgerald
4f0d84f4ee
Merge branch 'origin/pre-release/next-userspace' into release/next-userspace
2021-03-23 10:48:11 +10:00
Logan Allen
2e45f4fd99
Merge branch 'release/next-userspace' into la/group-feed
2021-03-22 12:36:34 -05:00
Liam Fitzgerald
ceafee33ab
hooks: address L review
2021-03-22 09:54:59 +10:00
Liam Fitzgerald
e2d10367af
hark-store: give set instead of count in initial
...
When we receive a notification, it might not affect our count because
it’ll get merged on the server side, but we unconditionally increment
our count on the client if the notification hasn’t been loaded yet.
Addresses this by storing a set of time, index so we can compute whether
or not the notification is merged or unloaded and change the count
accordingly.
Fixes urbit/landscape#276
2021-03-19 11:28:30 +10:00
Liam Fitzgerald
21bc8130ed
hooks: fix unversioned path destructure
2021-03-19 10:24:35 +10:00
Liam Fitzgerald
938ba80e9e
hooks: rewatch unversioned on nack
2021-03-19 10:12:50 +10:00
Liam Fitzgerald
ee12180a5d
hooks: allow unversioned subscriptions for migrate
2021-03-19 10:12:50 +10:00
Liam Fitzgerald
23e772ece5
hooks: fix remaining bugs
2021-03-19 10:12:49 +10:00
Liam Fitzgerald
0878104538
versioning: address review, add tests
2021-03-19 10:12:49 +10:00
Liam Fitzgerald
c99b452fff
version: add mark
2021-03-19 10:05:09 +10:00
Liam Fitzgerald
1832ce1d60
pull-hook: resume sub-ahead
2021-03-19 10:05:09 +10:00
Liam Fitzgerald
46eea8f3d4
pull-hook: resume pub-ahead
2021-03-19 10:05:08 +10:00
Liam Fitzgerald
35bbb358f2
push-hook: version proxied pokes
2021-03-19 10:05:08 +10:00
Liam Fitzgerald
153d0ff347
hooks: fix remaining bugs
2021-03-19 10:05:07 +10:00
Liam Fitzgerald
200944e91a
push-hook: proper versioning
2021-03-19 10:05:06 +10:00
Liam Fitzgerald
e5d75cac25
pull-hook: version mismatch suspend
2021-03-19 10:05:06 +10:00
Liam Fitzgerald
72fe65acd9
hooks: add versioning support
2021-03-19 10:05:02 +10:00
Philip Monk
7ef8efa7b5
naive: cleanup
2021-03-18 13:32:32 -07:00
Philip Monk
0c79d73f68
naive: minimum l1/deposit/l2 tests
2021-03-17 18:09:24 -07:00
Philip Monk
c8f8d8b36d
naive: add first test
2021-03-17 17:27:30 -07:00
Philip Monk
47fd56824b
naive: compiles
2021-03-17 16:42:39 -07:00
L
bcc43efdb0
Merge pull request #4584 from urbit/la/host-messages-transformed
...
push-hook: transform all messages, even the host's
2021-03-17 13:02:58 -05:00
L
fe7fdbcff2
Merge pull request #4596 from urbit/la/signatures-work
...
graph-store signatures: turn them on and correctly validate them
2021-03-17 13:02:43 -05:00