Commit Graph

209 Commits

Author SHA1 Message Date
emizzle 95beb5b5da fix: use settings dbColumnName and dbTableName values
Use the Settings type's dbColumnName and dbTableName values in the `createSettings` query instead of hardcoding the names. This allows for changes, is strongly-typed, and prevents errors.
2021-01-07 17:07:54 -06:00
emizzle 28107dc6dd feat: dapp permissions CRUD
feat: add toDbValue that handles sequences, so we don't have to manually encode sequences to bytes.
2021-01-07 15:54:37 -06:00
Vitaliy Vlasov 121a29a086 Messages/Chats CRUD 2021-01-07 14:33:27 -06:00
Michael Bradley, Jr 519ba09d67 ci: on macOS, make `ar` on the PATH an alias for `llvm-ar`
See: https://github.com/nim-lang/Nim/issues/15589
2021-01-07 14:29:46 -06:00
Vitaliy Vlasov d559f70f23 Add accounts CRUD
Post-rebase adjustments

Fix test errors
2021-01-07 14:29:46 -06:00
Iuri Matias 983402d5fd feat: custom tokens CRUD 2021-01-06 08:24:28 -05:00
Michael Bradley, Jr a56aca1ab1 fix: remove procs that are no longer spec'd by libstatus.h 2021-01-05 15:43:46 -06:00
Michael Bradley, Jr 363857461e ci: revise cache key so that a bump in any submodule will cause a cache miss 2021-01-05 15:43:46 -06:00
Jonathan Rainville f51abf3b83 feat: add function to sign a message 2021-01-05 13:12:25 -05:00
Jonathan Rainville cedbaa45b5 feat: add derive pub key function 2021-01-05 13:12:25 -05:00
Jonathan Rainville 034756b7b0 feat: add createAccount function to create a random account 2021-01-05 13:12:25 -05:00
Iuri Matias 3efa466491
Merge pull request #105 from status-im/feat/contacts
feat: contacts
2021-01-05 12:16:14 -05:00
Richard Ramos 7d553b6338
fix: missing migrations and bump status-go 2021-01-05 11:49:01 -04:00
emizzle 2bf3001894
feat: Add EnsVerificationRetries as a column in the DB 2021-01-05 11:49:00 -04:00
Richard Ramos 6605a5e608
feat: contacts
Contacts CRUD

fix: code review pt1
2021-01-05 11:48:55 -04:00
Iuri Matias 6ec7ae077a
Merge pull request #86 from status-im/feat/bip32
feat: bip32
2021-01-05 10:38:05 -05:00
Iuri Matias cd5d47239c
Merge pull request #80 from status-im/feat/log-inout
feat: open/close db connection and connect to web3 when calling a login()/logout() proc
2021-01-05 10:33:17 -05:00
Richard Ramos 2fff052482
fix: add missing module 2021-01-05 10:21:45 -04:00
Richard Ramos c58167c5eb
fix: adding missing lib 2021-01-05 09:42:37 -04:00
Richard Ramos 02b80a7db8
test: eip1581 2021-01-05 09:42:36 -04:00
Richard Ramos 60f697a03a
fix: code review 2021-01-05 09:42:34 -04:00
Richard Ramos 2ba3c35b96
feat: bip32 keys 2021-01-05 09:41:21 -04:00
Richard Ramos 3269e35cb0
fix: tmp db path 2021-01-05 09:32:38 -04:00
Richard Ramos 50503194d2
fix: invalid network 2021-01-05 09:29:28 -04:00
Richard Ramos bcb3e6d5c8
fix: db initialization 2021-01-05 09:05:58 -04:00
Richard Ramos 4d88163de1
feat: open/close db connection and connect to web3 when calling a login()/logout() proc 2021-01-05 09:05:56 -04:00
Michael Bradley, Jr b429d7057b ci: remove Go version workaround for Windows from GitHub Actions workflow
The workaround is not needed if Go is installed as a package in the msys2
environment.
2021-01-04 10:51:48 -06:00
Michael Bradley, Jr ab3f83f274 feat: mailservers CRUD 2020-12-22 15:20:20 -06:00
RichΛrd 5a5e7532d6
feat: migrations (#83)
* feat: migrations
* Verify if there are more migrations executed in the db than in the code
* fix - code review
* fix: missing text
* test: cat content of sql_scripts.nim
* fix: unwanted stdout/stderr in sql_scripts.nim

Co-authored-by: Michael Bradley, Jr <michaelsbradleyjr@gmail.com>
2020-12-22 16:24:58 -04:00
emizzle 5e36681002 fix: Change networks to seq[Network]
- Support serialization
- Add unit tests
2020-12-20 17:48:55 -06:00
emizzle 75a4a014ab feat: update to new apis 2020-12-20 17:48:55 -06:00
Michael Bradley, Jr 56343e42f7 build: adjust Makefile, GitHub Actions workflow, and nim_status.nimble 2020-12-20 17:48:55 -06:00
Michael Bradley, Jr 6802ff99cc build: bump nim-sqlcipher to version with updated apis 2020-12-20 17:48:55 -06:00
Michael Bradley, Jr a35c48e33d chore: bump nim-waku in vendor/ and adjust imports 2020-12-18 13:46:20 -06:00
Michael Bradley, Jr a6cd5a1a11
chore: remove stray `:` 2020-12-16 21:44:07 -06:00
Michael Bradley, Jr ac3c013078 ci: refactor GitHub Actions workflow in same manner as nim-sqlcipher's refactored workflow
See:
* https://github.com/status-im/nim-sqlcipher/pull/12
* https://github.com/status-im/nim-sqlcipher/pull/22

It is now assumed (and effectively required) that builds of nim-status (and
nim-sqlcipher) on Windows will be done in an msys2 environment.
2020-12-16 12:58:36 -06:00
RichΛrd f56f8834d2
feat: pass requests done via callRPC to infura (#114) 2020-12-04 17:35:35 -04:00
emizzle 222684de21 fix: enable all tests 2020-11-26 12:41:18 +11:00
emizzle 08e5f38664 chore: bump nim-sqlcipher 2020-11-26 12:31:35 +11:00
emizzle 76379b4125 feat: support column names
Support getting row data by column name.

fix: change intVal of 0 to false, combine bool type tests

fix: try forcing val to be read through toOption

feat: handle bool option conversion

feat: switch from using a custom `toOption` proc to using the `fromDbValue` procs defined in nim-sqlcipher. The `fromDbValue` overload that creates `Option[T]` was changed so that we can handle cases when we have null values for `sqliteText` and `sqliteInteger`.

Support typecasting a row (seq[DbColumn]) in to an object type.

Update to execQuery, remove need to cast row

chore: bump nim-sqlcipher
2020-11-26 12:05:28 +11:00
Michael Bradley, Jr 64ddc90780 WIP: echo the row seq 2020-11-26 11:49:43 +11:00
Michael Bradley, Jr 0c24935e9b WIP: try emizzle's suggestion 2020-11-26 11:49:43 +11:00
Michael Bradley, Jr 723928be27 ci: on Windows download/use Go v1.14.11 as workaround for known "usability regression" in v1.14.12 2020-11-26 11:49:43 +11:00
Michael Bradley, Jr 8f1637c789 refactor: on Windows some paths passed via variables need to be transformed with cygpath 2020-11-26 11:49:43 +11:00
Michael Bradley, Jr c340071785 fix: clean-sqlcipher target should remove dirs in vendor/nim-sqlcipher instead of vendor/nim-sqlcipher/sqlcipher 2020-11-26 11:49:43 +11:00
Michael Bradley, Jr a319c561d1 fix: delete nim_status.nims
Added by mistake.
2020-11-26 11:49:43 +11:00
Richard Ramos 2a3599c94a fix: code review pt. 2 2020-11-26 11:49:43 +11:00
Richard Ramos 247ebd61a4 fix: code review pt.1 2020-11-26 11:49:43 +11:00
Richard Ramos c536ae205d feat: save settings 2020-11-26 11:49:43 +11:00
Richard Ramos a727016068 feat: createSettings and getSettings 2020-11-26 11:49:43 +11:00