dependabot[bot]
bb931ab2f5
build(deps): bump github.com/nats-io/nats.go from 1.27.1 to 1.30.2
...
Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go ) from 1.27.1 to 1.30.2.
- [Release notes](https://github.com/nats-io/nats.go/releases )
- [Commits](https://github.com/nats-io/nats.go/compare/v1.27.1...v1.30.2 )
---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 19:18:01 +00:00
dependabot[bot]
8b116f8a0f
build(deps): bump github.com/redis/go-redis/v9 from 9.0.4 to 9.0.5 ( #95 )
...
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis ) from 9.0.4 to 9.0.5.
- [Release notes](https://github.com/redis/go-redis/releases )
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/redis/go-redis/compare/v9.0.4...v9.0.5 )
---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 14:35:49 +08:00
dependabot[bot]
888fb4ce11
build(deps): bump github.com/go-playground/validator/v10 ( #96 )
...
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator ) from 10.13.0 to 10.14.1.
- [Release notes](https://github.com/go-playground/validator/releases )
- [Commits](https://github.com/go-playground/validator/compare/v10.13.0...v10.14.1 )
---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 14:34:43 +08:00
dependabot[bot]
27b300db93
build(deps): bump github.com/nats-io/nats.go from 1.25.0 to 1.27.1 ( #99 )
...
Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go ) from 1.25.0 to 1.27.1.
- [Release notes](https://github.com/nats-io/nats.go/releases )
- [Commits](https://github.com/nats-io/nats.go/compare/v1.25.0...v1.27.1 )
---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 14:33:52 +08:00
dependabot[bot]
788cf66fc7
build(deps): bump github.com/VictoriaMetrics/metrics ( #93 )
...
Bumps [github.com/VictoriaMetrics/metrics](https://github.com/VictoriaMetrics/metrics ) from 1.23.1 to 1.24.0.
- [Commits](https://github.com/VictoriaMetrics/metrics/compare/v1.23.1...v1.24.0 )
---
updated-dependencies:
- dependency-name: github.com/VictoriaMetrics/metrics
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 14:33:19 +08:00
dependabot[bot]
d2cb0796c8
build(deps): bump github.com/jackc/tern/v2 from 2.1.0 to 2.1.1 ( #98 )
...
Bumps [github.com/jackc/tern/v2](https://github.com/jackc/tern ) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/jackc/tern/releases )
- [Changelog](https://github.com/jackc/tern/blob/master/.goreleaser.yaml )
- [Commits](https://github.com/jackc/tern/compare/v2.1.0...v2.1.1 )
---
updated-dependencies:
- dependency-name: github.com/jackc/tern/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 14:33:09 +08:00
9e1d62a014
feat: add transfer authorization ( #100 )
...
* wip: add transfer auithorization
* feat: update transferAuthPayload
* switch to MAX_INT for value and use revoke flag
* tranfer handler: fix nonce rollback on EOA account
* feat: switch to session based session transfer auth
* Demurrage contracts require setting the approval value to 0 before updating the value after the initial limit is set
* This implementation auto-revokes every 15 min after arequest is created. Subsequent requests will fail untill the value is set back to 0
* feat: settable approve session timeout
2023-07-10 14:32:05 +08:00
98ff897049
fix: tune gas params (celoutils v1.4.0)
2023-06-08 12:08:58 +08:00
8dc0dcf12d
fix: use celoutils.SafeGasLimit in place
...
* Gas limit is now 1M for all custodial related txs
* Precise value to be determined after testing phase is over
2023-05-28 20:43:43 +08:00
dependabot[bot]
f84b90f411
build(deps): bump github.com/go-playground/validator/v10 ( #86 )
...
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator ) from 10.12.0 to 10.13.0.
- [Release notes](https://github.com/go-playground/validator/releases )
- [Commits](https://github.com/go-playground/validator/compare/v10.12.0...v10.13.0 )
---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 15:23:40 +03:00
dependabot[bot]
83113c8411
build(deps): bump github.com/swaggo/swag from 1.8.12 to 1.16.1 ( #83 )
...
Bumps [github.com/swaggo/swag](https://github.com/swaggo/swag ) from 1.8.12 to 1.16.1.
- [Release notes](https://github.com/swaggo/swag/releases )
- [Changelog](https://github.com/swaggo/swag/blob/master/.goreleaser.yml )
- [Commits](https://github.com/swaggo/swag/compare/v1.8.12...v1.16.1 )
---
updated-dependencies:
- dependency-name: github.com/swaggo/swag
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 15:23:25 +03:00
dependabot[bot]
6ccc27685c
build(deps): bump github.com/jackc/tern/v2 from 2.0.1 to 2.1.0 ( #82 )
...
Bumps [github.com/jackc/tern/v2](https://github.com/jackc/tern ) from 2.0.1 to 2.1.0.
- [Release notes](https://github.com/jackc/tern/releases )
- [Changelog](https://github.com/jackc/tern/blob/master/.goreleaser.yaml )
- [Commits](https://github.com/jackc/tern/compare/v2.0.1...v2.1.0 )
---
updated-dependencies:
- dependency-name: github.com/jackc/tern/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 15:23:10 +03:00
dependabot[bot]
e821da13d4
build(deps): bump github.com/bsm/redislock from 0.9.2 to 0.9.3 ( #87 )
...
Bumps [github.com/bsm/redislock](https://github.com/bsm/redislock ) from 0.9.2 to 0.9.3.
- [Release notes](https://github.com/bsm/redislock/releases )
- [Changelog](https://github.com/bsm/redislock/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bsm/redislock/compare/v0.9.2...v0.9.3 )
---
updated-dependencies:
- dependency-name: github.com/bsm/redislock
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 15:22:56 +03:00
dependabot[bot]
2b42da206b
build(deps): bump github.com/redis/go-redis/v9 from 9.0.3 to 9.0.4 ( #88 )
...
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis ) from 9.0.3 to 9.0.4.
- [Release notes](https://github.com/redis/go-redis/releases )
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/redis/go-redis/compare/v9.0.3...v9.0.4 )
---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 15:22:38 +03:00
b9d3c219c8
fix (braking change): gas refill params ( #89 )
...
NOTE: This needs the db to be nuked if you are running a test cluster
* updated gas refilling logic to reflect EthFaucet contract
* fully dependant on on-chain contract to refill and unlock gas
* minor fixes to nonce bootstrapper
Ideal Values:
INITIAL GIFT = 0.015
THRESHOLD = 0.01
TIME = 12 * 60 * 60
# Sample for 30 txs
EXTREME LOW = 0.00675
LOW GAS USAGE = 0.00694605
RISING = 0.0135
HIGH = 0.027
2023-05-16 15:20:01 +03:00
8ef2311d8e
fix: export TxStatus struct
2023-04-14 08:05:05 +00:00
e91f82c08a
docs: add godocs comments to all routes
...
* disable serving docs by default
2023-04-14 07:57:43 +00:00
dependabot[bot]
223656b2bc
build(deps): bump github.com/bsm/redislock from 0.9.1 to 0.9.2 ( #80 )
...
Bumps [github.com/bsm/redislock](https://github.com/bsm/redislock ) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/bsm/redislock/releases )
- [Changelog](https://github.com/bsm/redislock/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bsm/redislock/compare/v0.9.1...v0.9.2 )
---
updated-dependencies:
- dependency-name: github.com/bsm/redislock
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 15:19:56 +03:00
dependabot[bot]
0218831bd9
build(deps): bump github.com/knadh/koanf/v2 from 2.0.0 to 2.0.1 ( #81 )
...
Bumps [github.com/knadh/koanf/v2](https://github.com/knadh/koanf ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/knadh/koanf/releases )
- [Commits](https://github.com/knadh/koanf/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: github.com/knadh/koanf/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 15:18:48 +03:00
dependabot[bot]
b2df62f0df
build(deps): bump golang.org/x/crypto from 0.7.0 to 0.8.0 ( #79 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/golang/crypto/releases )
- [Commits](https://github.com/golang/crypto/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 15:18:30 +03:00
dependabot[bot]
d9acaa9583
build(deps): bump github.com/redis/go-redis/v9 from 9.0.2 to 9.0.3 ( #77 )
...
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis ) from 9.0.2 to 9.0.3.
- [Release notes](https://github.com/redis/go-redis/releases )
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/redis/go-redis/compare/v9.0.2...v9.0.3 )
---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 15:18:19 +03:00
d51e74883d
docs: add swagger auto generator
...
* to generate docs, run `make docs`
* endpoint /swagger/
2023-04-13 11:55:07 +00:00
0e5db7f06f
feat: add nonce bootstrapper
...
Useful for rebuilding the nonce cache automatically.
* uses otx_sign as the first source
* can fallback to chain nonce value of the 1st source is corrupted
2023-04-13 10:38:23 +00:00
b137088d38
sub: update handlers for latest CHAIN.* events
...
* Minor fixes and improvements
2023-04-11 10:18:06 +00:00
21a17d2735
feat: add SLA package which defines a global ctx timeout
2023-04-11 10:15:33 +00:00
eba329eefa
refactor (store): consolidate all pg store related actions
...
* All postgres related functions now live in internal/store.
* Updated queries.sql file to match struct order (readibility)
* Moved keystore -> store
* Moved queries -> store
* Removed pkg/postgres
2023-04-11 10:14:49 +00:00
82294b96f8
refactor: pgx supports big.Int type conversion internally
2023-04-06 06:31:07 +00:00
e67a42ede3
fix: config.toml and dev docker-compose
2023-04-06 06:12:37 +00:00
a98fe958a3
refactor: remove unecessary publisher component
...
* clients should now rely on the CHAIn.* subjects
2023-04-06 06:08:38 +00:00
e203c49049
major refactor: use proxy contract and gas faucet (see notes)
...
* remove uncessary tasks and task handlers
* reafctor custodial container
* refactor gas refiller. Gas refiller can queue at a later time to match cooldown
* refactor sub handler to process chain events
2023-03-29 16:10:58 +00:00
448b142f7c
refactor: nonce store interface
...
* A nonce value can now be bootstrapped externally from any source
* Removed unecessary SetNewAccountNonce method
2023-03-29 07:37:59 +00:00
750fdd9c1f
fix: global lock middleware func signature
2023-03-28 06:55:51 +00:00
5f5678e25b
refactor: use echo ctx only for cancellation/propagation
2023-03-28 06:39:44 +00:00
ef5bd1860f
deps(go-playground-validator): use inbuilt eth_addr_checksum validator on routes
2023-03-28 06:30:29 +00:00
ac5567bc56
deps: update
2023-03-28 06:27:15 +00:00
2d5e41eb81
chore: cleanup unecessary checksum fn
2023-03-28 06:27:15 +00:00
dependabot[bot]
fc49f2387d
build(deps): bump github.com/go-playground/validator/v10 ( #72 )
...
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator ) from 10.11.2 to 10.12.0.
- [Release notes](https://github.com/go-playground/validator/releases )
- [Commits](https://github.com/go-playground/validator/compare/v10.11.2...v10.12.0 )
---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 09:26:35 +03:00
dependabot[bot]
81a3bb7e3c
build(deps): bump github.com/nats-io/nats.go from 1.24.0 to 1.25.0 ( #73 )
...
Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go ) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/nats-io/nats.go/releases )
- [Commits](https://github.com/nats-io/nats.go/compare/v1.24.0...v1.25.0 )
---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 09:14:10 +03:00
0235f25f81
ci: fix outputs
2023-03-16 12:11:03 +00:00
04e5d3c20f
major: breaking changes, fixes
...
* add global lock
* fix lock contention
* update redis client and server -> v7
* add network status API
* upgrade deps
Squashed commit of the following:
commit 9d95f2e8f8
Author: Mohammed Sohail <sohailsameja@gmail.com>
Date: Thu Mar 16 11:12:06 2023 +0000
feat: add updated_at postgres fn + trigger
* closes #66
commit 144d5018ea
Author: Mohammed Sohail <sohailsameja@gmail.com>
Date: Thu Mar 16 08:48:45 2023 +0000
feat: add network account status (nonce, balance)
commit 5679a675f3
Author: Mohammed Sohail <sohailsameja@gmail.com>
Date: Thu Mar 16 08:01:58 2023 +0000
fix: system global lock
* add middleware to entire API group
* setNX system lock key
commit ee907dddbc
Author: Mohammed Sohail <sohailsameja@gmail.com>
Date: Thu Mar 16 07:34:29 2023 +0000
feat: add system global lock to be triggered manually
commit ad58d1da47
Author: Mohammed Sohail <sohailsameja@gmail.com>
Date: Tue Mar 14 16:02:25 2023 +0000
feat: add lock retry strategy
* previouly we relied on the task being re-queued which generally reduces the throughput of tasks
commit f4e3aedf33
Author: Mohammed Sohail <sohailsameja@gmail.com>
Date: Tue Mar 14 15:45:06 2023 +0000
tasker: add support for reporting panics
commit b8ebf88f36
Author: Mohammed Sohail <sohailsameja@gmail.com>
Date: Tue Mar 14 15:40:50 2023 +0000
pkg: bump go-redis -> v9
commit 4a0bf88322
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue Mar 14 18:15:05 2023 +0300
build(deps): bump github.com/jackc/tern/v2 from 2.0.0 to 2.0.1 (#69 )
Bumps [github.com/jackc/tern/v2](https://github.com/jackc/tern ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/jackc/tern/releases )
- [Changelog](https://github.com/jackc/tern/blob/master/.goreleaser.yaml )
- [Commits](https://github.com/jackc/tern/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: github.com/jackc/tern/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
commit 5328d271c1
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue Mar 14 18:14:45 2023 +0300
build(deps): bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#70 )
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/crypto/releases )
- [Commits](https://github.com/golang/crypto/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
commit 7ce80f9e6d
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue Mar 14 18:13:59 2023 +0300
build(deps): bump github.com/grassrootseconomics/celoutils (#71 )
Bumps [github.com/grassrootseconomics/celoutils](https://github.com/grassrootseconomics/celoutils ) from 1.0.0 to 1.1.1.
- [Release notes](https://github.com/grassrootseconomics/celoutils/releases )
- [Commits](https://github.com/grassrootseconomics/celoutils/compare/v1.0.0...v1.1.1 )
---
updated-dependencies:
- dependency-name: github.com/grassrootseconomics/celoutils
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 12:03:51 +00:00
ea53214e2b
fix: docker default host bind
2023-03-09 08:25:11 +00:00
ee07e61457
fix: README title
2023-03-08 15:01:13 +00:00
fe9d217b60
docs: add README, add Makefile
...
dev: add Makefile
docs: add README
fix: Makefile
2023-03-08 14:58:18 +00:00
bbd4b57fa8
pkg: fix missing deps
2023-03-08 12:09:34 +00:00
b1572cfba7
chore: cleanup repo
2023-03-08 10:13:11 +00:00
0fd35f9668
build: update ci build stages
2023-03-08 10:02:56 +00:00
5a94a38805
fix: deepsource suggestions
2023-03-08 06:59:10 +00:00
0ef18b4e3e
fix: ununsed logg param
2023-03-08 06:51:48 +00:00
341a760f02
feat: (wip) add account activation and gas quota lock
...
* This is a crude lock that restricts each account to the set gas quota.
2023-03-08 06:49:09 +00:00
ec14328d49
hotfix: gift gas correct enum for otx type
2023-03-06 10:06:49 +00:00