Commit Graph

375 Commits

Author SHA1 Message Date
Liam Fitzgerald
9cbc218731
ted/glob: add exponential retry
Fixes urbit/urbit#4958
2021-06-15 07:58:02 +10:00
yosoyubik
4c4e0e70b8 naive: fix gas limit for l2 batch transaction 2021-06-14 17:21:57 +02:00
yosoyubik
e513768b90 naive: wip scale gas limit with roll size 2021-06-11 16:41:17 +02:00
Philip Monk
ee0141f5ab
btc-rpc: make build 2021-06-08 14:47:05 -10:00
raghu
6d4c9ab16f work: fix argument 2021-06-07 22:54:26 -04:00
yosoyubik
5859642363 naive: pack tx in send thread in correct order 2021-06-05 13:56:42 +02:00
Logan Allen
06f2aedc72 graph-push-hook/thread: shave off 20ms from nest checks by getting rid of tmi problem with types 2021-06-03 13:19:33 -05:00
yosoyubik
52af4ad1c3 naive: remove unused batch-function hash 2021-06-01 14:09:48 +02:00
yosoyubik
520225056a naive: send signature and raw tx for every tx in the roll
this assumes that the naive contract has a "fallback" function:

https://docs.soliditylang.org/en/v0.5.3/contracts.html#fallback-function
2021-05-29 14:57:57 +02:00
yosoyubik
8b51b526d3 naive: add get-next-nonce thread 2021-05-29 14:40:13 +02:00
yosoyubik
8851e52f45 naive: add eth-get-balance 2021-05-29 14:22:33 +02:00
ixv
332652e0d1 glob: generalize 2021-05-26 18:30:18 -07:00
Isaac Visintainer
d8f1e731e1 btc: post merge cleanup 2021-05-26 18:30:17 -07:00
yosoyubik
766e2ab610 naive: capture rpc errors when sending l2 batches 2021-05-22 08:10:30 +02:00
yosoyubik
937cc2ce44 naive: add aggregator sur 2021-05-21 15:07:08 +02:00
yosoyubik
5862aa07ce naive: wip aggregator send thread 2021-05-21 12:16:57 +02: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
Philip Monk
b1091d0e98
Merge remote-tracking branch 'origin/master' into philip/naive 2021-04-28 20:30:07 -07:00
Logan Allen
d5ed85efa8 Merge branch 'master' into la/ref-trans-graph 2021-04-28 12:53:06 -05:00
Philip Monk
781cdf3960
naive: alter signatures to match personal_sign 2021-04-27 17:26:34 -07:00
Philip Monk
1b5bc0f476
naive: snapshot improvements 2021-04-20 21:57:04 -07:00
Philip Monk
05b281e247
Merge remote-tracking branch 'origin/yu/zoom-step' into philip/naive 2021-04-20 18:21:50 -07:00
yosoyubik
5271061809 eth-watcher: reduce zoom-step between public and launch blocks 2021-04-17 13:59:54 +02:00
Philip Monk
c915839e9d
naive: fetch l2 batches from chain 2021-04-15 01:02:58 -07:00
Logan Allen
b97b68024e -graph-add-nodes: make it compile and work with +maybe-post 2021-04-14 16:23:22 -05:00
Logan Allen
90fbaf6650 graph-update mark upgrade from 1 -> 2 2021-04-14 15:51:37 -05:00
Liam Fitzgerald
64a62e9f85
Merge branch 'lf/fix-sane' 2021-04-13 15:58:23 +10:00
Philip Monk
0fbbd3aa28
naive: add app/naive to download from ethereum 2021-04-08 00:36:34 -07:00
Jōshin
4aa9bba5b3
gcp: isConfigured doesn't touch store
Makes the thread return a simple boolean; almost as simple as just
returning %.y or %.n.

gcpManager now stores whether GCP is configured as a private variable.

Also fixes some type errors in gcp.
2021-04-06 19:08:53 +00:00
Liam Fitzgerald
31717ae908
sane: don't kick unsubscribed
Fixes urbit/landscape#735
2021-04-06 11:47:48 +10:00
Logan Allen
15f92702f2 graph-disable-group-feed: archive the graph if necessary 2021-04-01 18:57:36 -05:00
Logan Allen
5953c9a58f graph-view: add %vip field to %create-group-feed 2021-04-01 16:08:30 -05:00
Logan Allen
58bf89d834 Merge branch 'release/next-userspace' into la/group-feed 2021-03-24 14:51:49 -05: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
74662a9fb4 metadata: updated all mark usage from %0 to incompatible %1 2021-03-23 21:53:51 -05:00
Logan Allen
9de66bc5af Merge branch 'release/next-userspace' into la/group-feed 2021-03-23 21:13:12 -05:00
Liam Fitzgerald
0864b99e3f
Post: prompt for permissions 2021-03-23 14:04:32 +10: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
bdfa1650cf interface: fix up issues from zustand merge 2021-03-22 15:11:28 -05:00
Logan Allen
2e45f4fd99 Merge branch 'release/next-userspace' into la/group-feed 2021-03-22 12:36:34 -05:00
Philip Monk
a7150007ef
Merge pull request #4528 from taalhavras/desk-diff
ddiff: add thread for diffing desks
2021-03-19 16:45:00 -07:00
raghu
60a2de143c renaming ddiff to diff 2021-03-19 19:43:39 -04:00
Liam Fitzgerald
34469532e4
hooks: cleanup stale mark references 2021-03-19 10:12:51 +10:00
Liam Fitzgerald
37ab1b7b2a
md-hooks: upgrade for versioning 2021-03-19 10:05:08 +10:00
Liam Fitzgerald
4b305b5450
graph-hooks: upgrade for versioning 2021-03-19 10:05:07 +10:00
Logan Allen
6e9146bd58 thread: change name from disable-group-feed to dismiss-group-feed 2021-03-16 13:07:36 -05:00
Logan Allen
5a29e0bbcb graph-view: add json conversion and -graph-dismiss-group-feed thread 2021-03-16 13:01:17 -05:00
Logan Allen
c874849203 metadata + post validator + -graph-create-group-feed: end to end create group feed 2021-03-15 17:28:45 -05:00
Logan Allen
5c69e92da4 -graph-add-nodes: sign nodes 2021-03-12 10:53:54 -06:00
Logan Allen
b58e30fba7 metadata-store, observe-hook, threads: auto-joining group feeds works for groups you're already a part of, and so does group feed creation 2021-03-11 15:37:29 -06:00
Logan Allen
6d88c471bc -group and -graph threads: update to use new module data structure 2021-03-10 17:22:24 -06:00
raghu
20bcb37989 ddiff: always show full beam in diffs 2021-03-09 22:34:20 -05:00
Logan Allen
59da9e1f49 Merge branch 'release/next-userspace' into la/group-feed 2021-03-09 13:22:25 -06:00
Logan Allen
b2759b9f36 Merge branch 'release/next-js' into la/release-2021-03-04 2021-03-08 14:11:54 -06:00
raghu
a7165e0f85 ddiff: c/r 2021-03-05 17:09:24 -05:00
Logan Allen
45b2ea4096 interface + -group-create thread: group homepage asks if you want to enable feed 2021-03-05 15:21:41 -06:00
Philip Monk
538a5eaf15
threads: make compile
mostly by deleting them
2021-03-04 19:35:31 -08:00
Philip Monk
f5ce79da9d
marks: fixup
Many of the marks were broken, and staticizing the marks revealed this.
This makes them build.
2021-03-04 19:21:34 -08:00
Philip Monk
a0146f4a44
clay: add %e, %f requests
For static naves, casts respectively
2021-03-04 18:28:16 -08:00
Logan Allen
69fa1296be graph-threads: make %groupify and %restore compile 2021-03-04 19:09:41 -06:00
Philip Monk
6e3d1680a7
Merge remote-tracking branch 'origin/master' into release/next-sys 2021-03-03 17:54:57 -08:00
Logan Allen
379e1840bc -graph-add-nodes: scry properly within a thread 2021-03-02 15:55:58 -06:00
raghu
76a189f544 ddiff: add generator 2021-03-02 15:05:27 -05:00
Logan Allen
e7ad46db15 -graph-add-nodes: add commented out signature support 2021-03-02 13:10:40 -06:00
J
c1b259af5b interface, gcp: don't spam the console with 500s
Options here were: make the get-token thread try to return a unit, or
write a different thread to check whether GCP Storage seemed to be
configured and poll on that thread, or move the whole thing into a Gall
app.

The compromise between time-to-implement and overall cleanliness seemed
to be to write a different thread that just checks whether the settings
fields have been poked. Unfortunately this means GcpManager is now a
somewhat hefty JavaScript state machine.

Took out the logic to check whether S3 was configured in GcpManager,
since it was really only there to prevent spamming the console with
500s. If you have both S3 and GCP Storage configured for some reason,
you will now use GCP per the logic in useStorage.
2021-02-26 23:42:57 +00:00
Logan Allen
7c18df399c interface: beginnings of api/reducer integration 2021-02-26 16:59:13 -06:00
Logan Allen
b2ef9044a6 -graph-add-nodes: return (map index hash) upon completion and finish out the json conversion 2021-02-26 14:05:11 -06:00
Logan Allen
c5e846d573 -graph-add-nodes: %graph-add-nodes thread that adds a hash to each node being added 2021-02-25 15:56:59 -06:00
J
0a23c0f4a4 -get-gcp-token: docs, formatting
Correct expiry from @da -> @dr, and set max cols to 72.
2021-02-24 21:26:59 +00:00
J
2a82da55ca -get-gcp-token: error messages
Don't dump extra console output on thread failure. Say 'gcp' in failures
to aid debugging.
2021-02-24 20:37:37 +00:00
J
03e99f52c9 gcp: make expiry relative
This indeed makes it easier on the Landscape side. It also makes it
easier to coerce from the JSON Google gives us, so a win all around.
2021-02-24 20:35:24 +00:00
J
328159da67 -get-gcp-token: renamed from -get-gcp-jwt 2021-02-24 00:49:47 +00:00
J
d94f35aa5c gcp: add token type
Also use it in -get-gcp-jwt.
2021-02-24 00:49:47 +00:00
J
a8113182a8 -get-gcp-jwt: vertical 2021-02-23 23:48:50 +00:00
J
6a07130f0d -get-gcp-jwt: correct scope, clean up call
It turns out 'devstorage.read_write' also gives us an access token
instead of a JWT, and is probably more the thing that we want.

Took the opportunity to make scope a macro to clean up the make-jwt call
site.
2021-02-23 23:12:48 +00:00
J
aa93ac49c1 -get-gcp-jwt: sot -> jot, moar vertical
Since we only have one JWT (the thing we produce is an "access token",
not a JWT), we can just call it jot.
2021-02-23 23:03:07 +00:00
J
61d8030ec9 -get-gcp-jwt: documentation, clearer return faces 2021-02-23 22:53:42 +00:00
J
9f43fef85d -get-gcp-jwt: returns time of expiry
Couldn't bring myself to pass in a relative date without a base, so we
instead pass now into get-access-token, and return the time of expiry.
2021-02-23 22:40:05 +00:00
J
b0bb659f12 -get-gcp-jwt: @dr expires_in, cleanup
The expiry field we get from Google is not a timestamp, but a count of
seconds after which the token is invalid (hence, 'expires_in'). We
represent this as a @dr by multiplying the integer we get from Google by
~1s. (Perhaps it will wind up being easier on the Landscape side to
consume the raw integer, but we may as well start off more
type-correct.)

Also cleans up some names now that I'm less confused about how the token
API works, and makes some syntax more vertical.
2021-02-23 22:34:48 +00:00
J
d978e6a551 -get-gcp-jwt: produces an access token
The correct scope to ask for is not devstorage.editor, but
cloud-platform. This will, rather than returning a signed JWT from
Google that looks like it works but doesn't, return a JSON object
containing an access token and expiration time.
2021-02-23 22:18:59 +00:00
J
860343e3d4 -get-gcp-jwt: clean up references, use +ot
Moves =, closer to call sites so it's clearer what's coming from where.
Also uses +ot, allowing a less horrifying +sign-jwt. This also seems to
not jump back and forth between tapes and cords as much, for what that's
worth.
2021-02-23 21:14:35 +00:00
Jōshin
ac40b5cf24 -get-gcp-jwt: produce a JWT for use in GCP Storage 2021-02-23 21:13:30 +00:00
Joe Bryan
9c9f0d68c4 test: report and continue on build failures 2021-02-19 20:36:05 -08:00
Liam Fitzgerald
66d9fd8426
sane: fix accidental self kick
Does not remove ourselves from the group when run. Additionally adds
card preview support to the inside app pokes.

Fixes urbit/landscape#442
2021-02-16 12:24:30 +10:00
L
071fcc621b
Merge pull request #4398 from urbit/lf/spider-code
ted: add -code thread
2021-02-10 13:20:07 -06:00
Liam Fitzgerald
b6935d50d6
-graph-delete: fix syntax error 2021-02-10 17:20:32 +10:00
Liam Fitzgerald
a1eda0469b
ted: add -code thread 2021-02-09 10:28:49 +10:00
Logan Allen
3a7c201e80 Merge branch 'release/next-userspace' into la/push-hook-list-resource 2021-02-03 11:52:38 -06:00
L
ac759b7d96
Merge pull request #4365 from urbit/lf/revive-invites
Invites: update for new group-view
2021-02-02 18:58:58 -06:00
Liam Fitzgerald
e17bf31859
group-view: add -group-invite thread 2021-02-03 09:52:00 +10:00
Liam Fitzgerald
c16f2365bf
Merge remote-tracking branch 'origin/release/next-userspace' into lf/graph-permissioning 2021-02-02 10:40:40 +10:00
Logan Allen
e1b1e1abf7 group-threads: contact push/pull hooks added to group lifecycle 2021-02-01 16:19:25 -06:00
Liam Fitzgerald
ee1ab3b131
metadata, groups: update for %groups metadata 2021-02-01 17:54:37 +10:00
Liam Fitzgerald
97502838d6
Merge remote-tracking branch 'origin/la/contact-store' into lf/join-cleanup 2021-02-01 17:01:02 +10:00
Liam Fitzgerald
e6d66b205a
group,graph-view: fixup calling convention for awaiting threads 2021-02-01 16:27:38 +10:00
Liam Fitzgerald
2730eb6c09
graph-view: refactor threads to call into %group-view 2021-02-01 14:07:39 +10:00
Liam Fitzgerald
d5bfe028e8
group-view: add leave, delete threads 2021-02-01 13:43:40 +10:00
Liam Fitzgerald
a6e1459395
group-view: add %create thread 2021-02-01 13:25:00 +10:00
Logan Allen
7b82c55b59 graph-delete thread: fix %metadata-store scry and %hook reference to %push-hook 2021-01-29 16:58:44 -06:00
Logan Allen
13bad6b16c graph-create thread: fix metadata to metadatum rename 2021-01-29 16:52:04 -06:00
Logan Allen
691409eda9 metadata-store: compiles 2021-01-29 16:38:32 -06:00
Logan Allen
72e036bae3 Merge branch 'release/next-userspace' into la/contact-store 2021-01-29 14:48:39 -06:00
Liam Fitzgerald
aa62d18d2f
ChannelSettings: refine delete/remove logic and buttons 2021-01-28 14:59:26 +10:00
Matilde Park
78940cb10f Merge branch 'release/next-js' into mp/contacts/ui-detail 2021-01-26 16:51:46 -05:00
Liam Fitzgerald
4b6637ec9a
graph-hooks: %remove-nodes permissioning 2021-01-26 14:47:35 +10:00
Liam Fitzgerald
ccbe4f9ad3
Merge remote-tracking branch 'origin/release/next-userspace' into lf/md-modernize 2021-01-25 14:00:07 +10:00
Matilde Park
d3c52c5e19 Merge branch 'release/next-js' into release/next-userspace 2021-01-22 17:01:28 -05:00
matildepark
84d23a9308
Merge pull request #4239 from urbit/m/graph-join-backoff
graph: make the join thread back off
2021-01-21 13:27:59 -05:00
Liam Fitzgerald
3bf03ffc9b
graph-join: crash on backoff and fix scry mold 2021-01-21 10:43:25 +10:00
Matilde Park
31def6f57a Merge branch 'release/next-js' into release/next-userspace 2021-01-20 12:47:31 -05:00
Logan Allen
1eb99bfdcd contact-store: wrote out all the JSON conversions and store compiles 2021-01-19 13:59:11 -06:00
Liam Fitzgerald
5d9955c0ce
Merge remote-tracking branch 'origin/release/next-js' into lf/md-modernize 2021-01-15 14:53:10 +10:00
Liam Fitzgerald
2cfa0f073f
Merge remote-tracking branch 'origin/release/next-userspace' into lf/md-modernize 2021-01-14 13:37:55 +10:00
Liam Fitzgerald
541efa5ff9
various, metadata: update metadata interactions 2021-01-14 11:04:15 +10:00
Liam Fitzgerald
2cd5e462b0
Merge remote-tracking branch 'origin/release/next-userspace' into lf/app-sane 2021-01-12 14:29:22 +10:00
fang
69704c6a80
graph: make the join thread back off
Pushes the pathological case back a bit, but doesn't make it stop trying.
2021-01-06 23:22:54 +01:00
Logan Allen
c99bf65d81 graph-delete thread: properly remove entry from metadata-store and hook 2021-01-06 15:32:16 -06:00
Liam Fitzgerald
06ed5af3f4
graph-store: add -eval thread 2020-12-11 15:52:17 +10:00
Liam Fitzgerald
bce1b3e65e
group-pull-hook: remove group on nack 2020-12-11 14:57:20 +10:00
Liam Fitzgerald
f8452af94e
Merge remote-tracking branch 'origin/release/next-userspace' into lf/chat-graph 2020-12-11 11:50:18 +10:00
Logan Allen
b281b9c91f group-on-leave: soften de-path 2020-12-10 13:49:51 -06:00
Liam Fitzgerald
c29b3d8167
chat: address migration of missing owner in unmanaged groups 2020-12-10 13:52:25 +10:00
Liam Fitzgerald
fc189a7c13
graph-store: on overwrite, archive existing graph 2020-12-10 12:36:59 +10:00
Logan Allen
7802a7f8d9 Merge branch 'release/next-userspace' into lf/chat-graph 2020-12-09 15:45:26 -06:00
Liam Fitzgerald
8c4b453ed4
Merge remote-tracking branch 'origin/release/next-userspace' into lf/app-sane 2020-12-08 13:14:26 +10:00
Joe Bryan
aaf506ce8a Merge branch 'jb/motion' into jb/motion-merge
* jb/motion:
  pill: solid
  zuse: remove %crud from vane-task
  arvo: full vane names in $sign
  aqua: build again (still broken)
  arvo: reform of the scry reform
2020-12-07 18:52:51 -08:00
fang
d98c59e73a
zuse: lift moves out of +able 2020-12-08 01:47:06 +01:00
Joe Bryan
17736990ed arvo: full vane names in $sign 2020-12-07 16:30:22 -08:00
fang
eab88170e2
Merge branch 'jb/motion' into m/de-thereum 2020-12-07 13:42:00 +01:00
Joe Bryan
5a82f1d4c0 Merge branch 'na-release/candidate' into jb/motion
* na-release/candidate: (36 commits)
  ames: don't crash on forward-lane scry
  jael: cleanup per review
  jael: don't signal breach if first hearing of ship
  pill: update
  vere: compile
  lens: don't de-base64
  vere: make import flow not use base64 encoding
  version: strip trailing newline
  pill: mainnet
  Revert "zuse: change to ropsten"
  chat-hook: fix another poke-import issue
  chat-hook: fix poke-import issue
  apps: reorder maps, sets, and jugs
  apps: reorder maps, sets, and jugs
  kiln: add base-hash and our scries
  lens: fix change lost in merge
  graph-store: leave try-rejoin wire when subscription succeeds
  graphs: import-export
  chat: import/export
  invites: import/export
  ...
2020-12-07 00:27:58 -08:00
Liam Fitzgerald
f4c2dedba2
hark-graph-hook: autowatch unmanaged graphs 2020-12-07 13:55:55 +10:00
fang
25a55c0f63
various: ethereum, azimuth, json-rpc out of zuse
Moves them into files in /lib, and updates dependents accordingly.
2020-12-06 17:26:52 +01:00
Joe Bryan
205c9a8620 zuse: removes en/de-beam (now in arvo) 2020-12-06 03:33:43 -08:00
Philip Monk
b9fe6af976
jael: don't signal breach if first hearing of ship
When you first boot, if you try talk to someone before your azimuth is
up-to-date (for example by import), then if they've ever breached
(twice) then you'll get breach notification, cancelling your message.

This changes is it so that if we haven't heard anything about this ship,
we don't signal a breach.

The implementation complexity is primarily because we need
eth-watcher/azimuth-tracker to produce an update of a list instead of a
list of updates.  This way, Jael can keep a "state as of the beginning
of this move" variable to check when deciding whether to signal a
breach.
2020-12-04 23:08:47 -08:00
Philip Monk
0de3e76055
glob: update to 0v6.cmrce.5ass7.5gfqi.7c8cg.mdo7n 2020-12-04 17:59:15 -08:00
fang
3be0ab5030
ted: update straggler threads for vase unit change
Also cleans up a duplicate case in a ?-.
2020-12-04 13:45:35 +01:00
Joe Bryan
bbaeafe751
Merge pull request #4036 from urbit/m/listless-generators
various: start threads with unit of tuple args
2020-12-04 00:21:00 -08:00
Matilde Park
78c22ae5c4 Merge branch 'na-release/candidate' into release/next-userspace 2020-12-03 20:55:16 -05:00
Philip Monk
1213e298db
Merge remote-tracking branch 'origin/na-release/candidate' into philip/testnet 2020-12-03 17:16:02 -08:00
Joe Bryan
4a825df15b Merge branch 'na-release/candidate' into jb/atom-gates
* na-release/candidate:
  kh: use Word8 for Tint true color values
  arvo: remove unused app files, libraries, and imports
  webterm: improve line-spacing in certain browsers
  vere: avoid +scot call for color value rendering
  kh: support 24-bit %klr colors
  vere: support 24-bit %klr colors
  webterm: update mar and js to support 24-bit color
  tests: fix ames tests
  pill: update ivory pill
  dojo: correct mark conversion scry path
  pill: solid
  aqua/ph: fix comet test
  ames: flat packet format
  hoon, dill: Add 24-bit true color
2020-12-03 14:17:23 -08:00
Joe Bryan
ce053facd5
Merge pull request #4051 from urbit/ted/ames-flat-revised
Ames flat packet format
2020-12-03 14:12:56 -08:00
Logan Allen
275144c72a observe-hook: add %group-on-remove-member thread 2020-12-03 13:32:06 -06:00
Liam Fitzgerald
2caf1dac24
group-push-hook: kick members who are not subscribed
If a ship breaches, it may no longer be subscribed to the group, but
still be in it. This causes DM breakage amongst other things. To fix it,
we loop over the incoming subscriptions and kick everyone who is a part
of a group, but not subscribed to it.
2020-12-03 16:00:57 +10:00
Isaac Visintainer
2cf6af586d Merge branch 'na-release/candidate' into philip/testnet 2020-12-02 21:10:15 -08:00
Logan Allen
1913cdf4f1 arvo: remove unused app files, libraries, and imports 2020-12-02 14:05:04 -06:00
Joe Bryan
b5ec0c30f0 hoon: renames +new-end, +new-lsh, +new-rsh 2020-12-02 01:00:09 -08:00
Isaac Visintainer
e672c7348b Merge branch 'ixv/data-migration' into philip/testnet 2020-12-02 00:29:14 -08:00
Joe Bryan
bec63413b0 hoon: adds +new-rsh, switches all +rsh call sites 2020-12-02 00:21:51 -08:00
Joe Bryan
4f9cba2baf hoon: adds +new-end, switches all +end call sites 2020-12-02 00:21:12 -08:00
Isaac Visintainer
f5137a5114 userspace: data migration testing utilities 2020-12-01 17:38:51 -08:00