Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
467 commits
Select commit Hold shift + click to select a range
1716c78
feat: add ProtoCodec method for core client
ironman0x7b2 Feb 3, 2025
f019878
feat: implemented encode, decode and other methods for add session re…
ironman0x7b2 Feb 3, 2025
72198fd
fix: YAML from JSON util function
ironman0x7b2 Feb 4, 2025
5ed782e
feat: add abci event utils
ironman0x7b2 Feb 6, 2025
17902ba
feat: add retry logic and broadcast block method
ironman0x7b2 Feb 6, 2025
02d0f50
feat: add start session tx method for nodes and subscriptions
ironman0x7b2 Feb 6, 2025
11de32a
chore: return both response and result in broadcast tx block method
ironman0x7b2 Feb 6, 2025
e80e5e3
chore: use hex bytes for byte slice
ironman0x7b2 Feb 8, 2025
55a3bcf
feat: implement uuid related methods in v2ray
ironman0x7b2 Feb 8, 2025
4428328
chore: add not found error
ironman0x7b2 Feb 16, 2025
bcf669d
chore: retry only if the error is account sequence mismatch
ironman0x7b2 Feb 16, 2025
29cd2eb
chore: do not check the response status code
ironman0x7b2 Feb 17, 2025
6429c3c
chore: renamed query retries field name
ironman0x7b2 Feb 17, 2025
3168b16
feat: add retry related fields for tx broadcast and query
ironman0x7b2 Feb 17, 2025
79729d6
feat: add max runs field in worker
ironman0x7b2 Feb 19, 2025
583d8af
chore: use hd path as param for key creation
ironman0x7b2 Feb 20, 2025
1ac7d88
feat: implement WireGuard client config related methods
ironman0x7b2 Feb 20, 2025
d93167a
chore: use netip prefix instead netip addr for peer
ironman0x7b2 Feb 21, 2025
62e08fd
feat: add peer client config
ironman0x7b2 Feb 21, 2025
f8be4cf
feat: add split tunneling and kill-switch related methods for WireGuard
ironman0x7b2 Feb 21, 2025
96c1baa
chore: simplify the PostUp and PreDown method logics
ironman0x7b2 Feb 21, 2025
bd15c64
feat: add default wireguard client config
ironman0x7b2 Feb 21, 2025
157d00a
feat: implement client from config funcs
ironman0x7b2 Feb 21, 2025
8631321
feat: add port to tag in v2ray module
ironman0x7b2 Feb 23, 2025
3cda921
feat: add v2ray client config
ironman0x7b2 Feb 23, 2025
f02661d
chore: split v2ray and wireguard config files
ironman0x7b2 Feb 24, 2025
c0b0a85
feat: add client config flags
ironman0x7b2 Feb 24, 2025
d69f62f
chore: split post-up, post-down and pre-up rules into multiple lines
ironman0x7b2 Feb 24, 2025
c2ed8ad
chore(deps): bump sentinelhub version
ironman0x7b2 Mar 16, 2025
87efa37
chore(deps): bump github.com/golang/glog from 1.2.2 to 1.2.4 (#71)
ironman0x7b2 Mar 16, 2025
b7906c2
chore(deps): bump github.com/bgentry/speakeasy
dependabot[bot] Mar 16, 2025
479f5df
chore(deps): bump github.com/bgentry/speakeasy from 0.1.1-0.202209100…
ironman0x7b2 Mar 16, 2025
13b7979
chore: removed stdout and stderr for command executions
ironman0x7b2 Mar 19, 2025
b47feeb
feat: pass proxy addr to geoip clients
ironman0x7b2 Mar 19, 2025
b7c850d
chore: use default hd path and tx from name if none provided in key r…
ironman0x7b2 Mar 19, 2025
b8a6d46
chore: fix key error messages
ironman0x7b2 Mar 19, 2025
cb68400
feat: add authz granter address in config and use it for transactions
ironman0x7b2 Mar 20, 2025
5700ef5
feat: use proper from name for node client
ironman0x7b2 Mar 20, 2025
8b83528
chore: fix not found error for authz and feegrant allowances
ironman0x7b2 Mar 25, 2025
2b3d6a6
chore(deps): updated sentinelhub to renamed version
ironman0x7b2 Jun 18, 2025
bc6d5c8
chore: fix node start session method params
ironman0x7b2 Jun 18, 2025
570b039
chore(deps): bump golang.org/x/crypto from 0.32.0 to 0.39.0
dependabot[bot] Jun 18, 2025
430ac0a
chore(deps): bump github.com/rs/zerolog from 1.33.0 to 1.34.0
dependabot[bot] Jun 19, 2025
78b3d24
chore(deps): bump github.com/rs/zerolog from 1.33.0 to 1.34.0 (#87)
ironman0x7b2 Jun 20, 2025
6ce6e47
chore(deps): bump golang.org/x/crypto from 0.32.0 to 0.39.0 (#86)
ironman0x7b2 Jun 20, 2025
a6109d1
chore(deps): bump github.com/avast/retry-go/v4 from 4.6.0 to 4.6.1
dependabot[bot] Jun 20, 2025
c2a5926
chore(deps): bump cosmossdk.io/log from 1.5.0 to 1.6.0
dependabot[bot] Jun 20, 2025
7b6e260
chore(deps): bump cosmossdk.io/log from 1.5.0 to 1.6.0 (#89)
ironman0x7b2 Jun 28, 2025
244a82c
chore(deps): bump github.com/avast/retry-go/v4 from 4.6.0 to 4.6.1 (#88)
ironman0x7b2 Jun 28, 2025
ce85c5c
chore(deps): bump google.golang.org/protobuf from 1.36.5 to 1.36.6
dependabot[bot] Jun 30, 2025
ceae135
chore(deps): bump github.com/shirou/gopsutil/v4 from 4.24.11 to 4.25.6
dependabot[bot] Jul 1, 2025
4011cec
chore(deps): bump github.com/shirou/gopsutil/v4 from 4.24.11 to 4.25.…
ironman0x7b2 Jul 6, 2025
0af1c6e
chore(deps): bump google.golang.org/protobuf from 1.36.5 to 1.36.6 (#91)
ironman0x7b2 Jul 6, 2025
6339221
feat: move pem related code to libraries package
ironman0x7b2 Jul 6, 2025
831521b
feat: implemented pki package under crypto lib and removed tls package
ironman0x7b2 Jul 6, 2025
198ad4f
feat: implemented openvpn server service
ironman0x7b2 Jul 7, 2025
fd29b4b
feat: added OpenVPN server config and template
ironman0x7b2 Jul 7, 2025
1c71e49
feat: add OpenVPN server metadata struct
ironman0x7b2 Jul 7, 2025
5925d9b
feat: add OpenVPN server request and response types
ironman0x7b2 Jul 7, 2025
5dcf172
feat: add OpenVPN service type to service type enum
ironman0x7b2 Jul 7, 2025
aaace98
chore: renamed strings join field in template func map
ironman0x7b2 Jul 7, 2025
5c28ea8
chore(deps): bump google.golang.org/grpc from 1.71.0 to 1.73.0
dependabot[bot] Jul 7, 2025
c888643
chore(deps): bump github.com/v2fly/v2ray-core/v5 from 5.23.0 to 5.37.0
dependabot[bot] Jul 7, 2025
f08021e
chore(deps): bump google.golang.org/grpc from 1.71.0 to 1.73.0 (#93)
ironman0x7b2 Jul 8, 2025
d1f8011
chore(deps): bump github.com/v2fly/v2ray-core/v5 from 5.23.0 to 5.37.…
ironman0x7b2 Jul 8, 2025
51eb536
chore(deps): remove replace tag for hysteria from go.mod
ironman0x7b2 Jul 8, 2025
8e3727d
chore(deps): bump github.com/showwin/speedtest-go from 1.7.9 to 1.7.10
dependabot[bot] Jul 8, 2025
1e67a8d
chore(deps): bump github.com/showwin/speedtest-go from 1.7.9 to 1.7.1…
ironman0x7b2 Jul 8, 2025
73619dc
chore(deps): bump golang.org/x/crypto from 0.39.0 to 0.40.0
dependabot[bot] Jul 11, 2025
0d0ec27
chore: added ServiceRequest and removed existing requests for service…
ironman0x7b2 Jul 11, 2025
c6caf1b
chore: changed data field type to byte slice instead string
ironman0x7b2 Jul 11, 2025
524b590
feat: added support for parsing the service requests in byte slice fo…
ironman0x7b2 Jul 13, 2025
35da8ec
chore: renamed Handhsake to InitHandshake
ironman0x7b2 Jul 13, 2025
7740d0f
fix: init handshake url endpoint
ironman0x7b2 Jul 14, 2025
035302a
chore(deps): bump golang.org/x/crypto from 0.39.0 to 0.40.0 (#98)
ironman0x7b2 Jul 16, 2025
f8b02ff
feat: implemented init method for WireGuard server and client
ironman0x7b2 Jul 16, 2025
ec35957
feat: implemented init method for V2ray server and client
ironman0x7b2 Jul 16, 2025
b01340b
feat: implemented init method for OpenVPN server
ironman0x7b2 Jul 16, 2025
c616add
feat: add init method for service interface
ironman0x7b2 Jul 16, 2025
1322054
chore: moved peer manager assignment to PreUp method
ironman0x7b2 Jul 16, 2025
5c35c86
chore: removed pki dir from openvpn app configuration file
ironman0x7b2 Jul 17, 2025
7dd4ee3
fix: incorrect network addr conversion
ironman0x7b2 Jul 17, 2025
01f09b0
chore(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7
dependabot[bot] Jul 17, 2025
df6fd71
chore(deps): bump google.golang.org/grpc from 1.73.0 to 1.74.0
dependabot[bot] Jul 17, 2025
ad649bd
feat: add IsFileExist utility function
ironman0x7b2 Jul 19, 2025
49dab0d
chore(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7 (#99)
ironman0x7b2 Jul 19, 2025
5964155
chore(deps): bump google.golang.org/grpc from 1.73.0 to 1.74.0 (#100)
ironman0x7b2 Jul 19, 2025
2f95f91
chore: removed log config
ironman0x7b2 Jul 19, 2025
8da5833
chore(deps): update sentinelhub to commit a560b0a6db8e
ironman0x7b2 Jul 22, 2025
815a2c3
fix: mnemonic warning while adding a key
ironman0x7b2 Jul 22, 2025
48cc7da
chore: use P384 curve instead P256
ironman0x7b2 Jul 23, 2025
ac0b4f6
chore(deps): bump google.golang.org/grpc from 1.74.0 to 1.74.2
dependabot[bot] Jul 23, 2025
bad6b05
feat: add cmux library for serving api on both tls and non-tls
ironman0x7b2 Jul 23, 2025
0b3e18f
chore: renamed few node info fields
ironman0x7b2 Jul 23, 2025
6e97c46
chore: removed group and user config from OpenVPN template
ironman0x7b2 Jul 23, 2025
8facbee
chore(deps): bump sentinelhub to commit 9ff6fcf35896
ironman0x7b2 Jul 24, 2025
c0fe0ed
chore: renamed ServiceRequest to PeerRequest and modified ServerServi…
ironman0x7b2 Jul 24, 2025
c0be320
feat: include status field in server config
ironman0x7b2 Jul 24, 2025
96305b6
fix: skip the peer if the id is UNDEF
ironman0x7b2 Jul 24, 2025
d826438
feat: added netip and safe libraries and using them in services
ironman0x7b2 Jul 26, 2025
5fdc0dd
chore(deps): bump google.golang.org/grpc from 1.74.0 to 1.74.2 (#102)
ironman0x7b2 Jul 26, 2025
1e96370
feat: add country code to the geo ip location
ironman0x7b2 Jul 26, 2025
928744c
fix: create pool set only for non-empty addrs
ironman0x7b2 Jul 26, 2025
f18061b
chore(deps): bump github.com/v2fly/v2ray-core/v5 from 5.37.0 to 5.38.0
dependabot[bot] Jul 28, 2025
c194c83
chore(deps): bump github.com/shirou/gopsutil/v4 from 4.25.6 to 4.25.7
dependabot[bot] Aug 1, 2025
6818cd6
feat: run background processing for updating the peer statistics
ironman0x7b2 Aug 3, 2025
78c7cfc
feat: add context to cmux listener
ironman0x7b2 Aug 3, 2025
6e66e89
chore: removed context from stop methods of service
ironman0x7b2 Aug 4, 2025
fa4b8cb
feat: add context to speedtest run func
ironman0x7b2 Aug 4, 2025
8d3093d
feat: add context to scheduler
ironman0x7b2 Aug 4, 2025
ee05ded
chore(deps): bump github.com/shirou/gopsutil/v4 from 4.25.6 to 4.25.7…
ironman0x7b2 Aug 4, 2025
b8caa3b
chore(deps): bump github.com/v2fly/v2ray-core/v5 from 5.37.0 to 5.38.…
ironman0x7b2 Aug 4, 2025
e5d636e
fix: ignore net/http errors when context is cancelled
ironman0x7b2 Aug 5, 2025
8512786
fix: openvpn peer statistics reset issue
ironman0x7b2 Aug 5, 2025
843dc02
chore: return nil in case context is cancelled
ironman0x7b2 Aug 5, 2025
5046e96
feat: added ErrorIs utility function
ironman0x7b2 Aug 5, 2025
9eadd25
chore: exec command wait do not return error in case context canceled
ironman0x7b2 Aug 5, 2025
bfd79a2
chore: using time.After instead time.Ticker for syncing peer statistics
ironman0x7b2 Aug 6, 2025
e0f76f0
fix: nil pointer checks
ironman0x7b2 Aug 6, 2025
221c7a1
fix: return error in case of unexpected process kill
ironman0x7b2 Aug 6, 2025
b178adb
feat: add request param to service PreUp method instead context
ironman0x7b2 Aug 6, 2025
a9e3636
fix: add missed exited unexpectedly eror
ironman0x7b2 Aug 7, 2025
ecb7f40
fix: v2ray app config template path
ironman0x7b2 Aug 7, 2025
27cae9f
fix: incorrect peer set in v2ray peers map
ironman0x7b2 Aug 7, 2025
ca71353
chore(deps): bump google.golang.org/protobuf from 1.36.6 to 1.36.7
dependabot[bot] Aug 7, 2025
c7bfaac
chore(deps): bump golang.org/x/crypto from 0.40.0 to 0.41.0
dependabot[bot] Aug 8, 2025
167b5d7
chore(deps): bump golang.org/x/crypto from 0.40.0 to 0.41.0 (#107)
ironman0x7b2 Aug 9, 2025
2a85410
chore(deps): bump google.golang.org/protobuf from 1.36.6 to 1.36.7 (#…
ironman0x7b2 Aug 9, 2025
eeb61ce
chore: add more description to the config fields
ironman0x7b2 Aug 12, 2025
c946ea2
chore: removed tls cert and key fields from v2ray app config
ironman0x7b2 Aug 13, 2025
fc9d2ed
fix: incorrect v2ray tls settings
ironman0x7b2 Aug 13, 2025
01b5cd3
feat: optimized v2ray gRPC client by utilising same connection every …
ironman0x7b2 Aug 13, 2025
e8d4902
feat: added range update and delete methods for safe map
ironman0x7b2 Aug 13, 2025
d80f573
feat: add basic rate limiter middleware for http server
ironman0x7b2 Aug 13, 2025
343af07
fix: incorrect tag and metadata management
ironman0x7b2 Aug 14, 2025
141954a
feat: implemented safe grpc client conn for fixing the data race issues
ironman0x7b2 Aug 14, 2025
1162ac2
chore(deps): bump github.com/gin-gonic/gin from 1.8.1 to 1.9.1
dependabot[bot] Aug 14, 2025
0913f32
chore(deps): bump github.com/gin-gonic/gin from 1.8.1 to 1.9.1 (#108)
ironman0x7b2 Aug 14, 2025
c26d613
chore(deps): bump golang.org/x/time from 0.8.0 to 0.12.0
dependabot[bot] Aug 14, 2025
281c62d
chore(deps): bump github.com/gin-gonic/gin from 1.9.1 to 1.10.1
dependabot[bot] Aug 14, 2025
5bad9bf
chore: added context to the error messages
ironman0x7b2 Aug 15, 2025
68d74a9
chore(deps): bump golang.org/x/time from 0.8.0 to 0.12.0 (#109)
ironman0x7b2 Aug 15, 2025
d531c8a
chore(deps): bump github.com/gin-gonic/gin from 1.9.1 to 1.10.1 (#110)
ironman0x7b2 Aug 15, 2025
ffef90b
chore(deps): bump sentinelhub to version v12.0.0-rc11
ironman0x7b2 Aug 15, 2025
3266e10
fix: uplink and downlink bytes terminology
ironman0x7b2 Aug 15, 2025
e6eac45
chore: return key not found error in KeyAddr method
ironman0x7b2 Aug 17, 2025
1e9f376
chore: changed default worker retry attempts to 5 from 1
ironman0x7b2 Aug 18, 2025
c09c37f
chore(deps): bump actions/checkout from 4 to 5
dependabot[bot] Aug 18, 2025
aaa1f60
chore: added rw_mutex and seal fields to client
ironman0x7b2 Aug 19, 2025
498bbe9
fix: inconsistent speed result field names
ironman0x7b2 Aug 19, 2025
6d1219a
chore(deps): bump cosmossdk.io/log from 1.6.0 to 1.6.1
dependabot[bot] Aug 19, 2025
8186819
chore(deps): bump google.golang.org/protobuf from 1.36.7 to 1.36.8
dependabot[bot] Aug 20, 2025
53ef138
feat: added module parameter related methods
ironman0x7b2 Aug 21, 2025
9552fed
chore(deps): bump github.com/go-viper/mapstructure/v2
dependabot[bot] Aug 21, 2025
a57694c
chore: removed keyring config validation in keys command
ironman0x7b2 Aug 22, 2025
37a7862
fix: vless encryption and decryption settings
ironman0x7b2 Aug 22, 2025
be0717b
chore: removed timeout and proxy addr for GeoIP client
ironman0x7b2 Aug 22, 2025
6a4db20
feat: improved peer statistics, error messages and server service sig…
ironman0x7b2 Aug 23, 2025
bc15949
chore(deps): bump actions/checkout from 4 to 5 (#111)
ironman0x7b2 Aug 23, 2025
f151542
chore(deps): bump cosmossdk.io/log from 1.6.0 to 1.6.1 (#112)
ironman0x7b2 Aug 23, 2025
d103e92
chore(deps): bump google.golang.org/protobuf from 1.36.7 to 1.36.8 (#…
ironman0x7b2 Aug 23, 2025
cadee86
chore(deps): bump github.com/go-viper/mapstructure/v2 from 2.3.0 to 2…
ironman0x7b2 Aug 23, 2025
82024aa
chore: added warn log for OnError method in scheduler worker
ironman0x7b2 Aug 23, 2025
001396b
fix: WireGuard peer stats update issue
ironman0x7b2 Aug 23, 2025
6b6a867
chore: pass context to retry.Do method
ironman0x7b2 Aug 23, 2025
3d1ec9d
chore: optimized V2ray sync peers operation
ironman0x7b2 Aug 24, 2025
2ef9aa0
chore(deps): bump google.golang.org/grpc from 1.74.2 to 1.75.0
dependabot[bot] Aug 26, 2025
944c68b
chore: removed unnecessary context params
ironman0x7b2 Aug 26, 2025
2664536
fix: ignore few errors
ironman0x7b2 Aug 26, 2025
25c3b2c
feat: added viper in the service configs
ironman0x7b2 Aug 28, 2025
33ec977
fix: add missing flag name replacer
ironman0x7b2 Aug 29, 2025
4cfb2db
chore: wrap context error with errgroup.Wait error and added log leve…
ironman0x7b2 Aug 29, 2025
8a88659
chore(deps): bump google.golang.org/grpc from 1.74.2 to 1.75.0 (#115)
ironman0x7b2 Aug 29, 2025
3d17755
chore: changed v2ray client routing balancer strategy to leastping
ironman0x7b2 Aug 29, 2025
52f97cd
feat: add app package with context, errors and Run func
ironman0x7b2 Aug 30, 2025
651f983
fix: use context.Cause to check the actual reason for ctx done
ironman0x7b2 Aug 31, 2025
3791fb3
chore: simplified app errors
ironman0x7b2 Aug 31, 2025
fe5a4d7
chore(deps): bump github.com/spf13/cobra from 1.9.1 to 1.10.1
dependabot[bot] Sep 3, 2025
9e84a32
feat: add process package with lifecycle manager
ironman0x7b2 Sep 3, 2025
13a22b0
chore(deps): bump github.com/spf13/cobra from 1.9.1 to 1.10.1 (#117)
ironman0x7b2 Sep 3, 2025
56149fb
chore: add mutex in process manager
ironman0x7b2 Sep 4, 2025
b6981ed
chore(deps): bump github.com/shirou/gopsutil/v4 from 4.25.7 to 4.25.8
dependabot[bot] Sep 4, 2025
bfb20d9
feat: embed process manager for CMux server
ironman0x7b2 Sep 4, 2025
1a88b1a
chore(deps): bump github.com/shirou/gopsutil/v4 from 4.25.7 to 4.25.8…
ironman0x7b2 Sep 4, 2025
29ee289
chore(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10
dependabot[bot] Sep 4, 2025
4ffd483
chore(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10 (#118)
ironman0x7b2 Sep 4, 2025
fb04f11
feat: embed process manager for scheduler
ironman0x7b2 Sep 4, 2025
3e0ebc1
feat: embed process manager for WireGuard services
ironman0x7b2 Sep 5, 2025
4563459
feat: embed process manager for V2Ray services
ironman0x7b2 Sep 5, 2025
295f82f
feat: embed process manager for OpenVPN services
ironman0x7b2 Sep 5, 2025
e69b36a
feat: add setup method for process manager
ironman0x7b2 Sep 5, 2025
7f1ad45
chore: using sentinel errors for run and shutdown errors
ironman0x7b2 Sep 5, 2025
da9e935
feat: added more state codes for better life cycle management
ironman0x7b2 Sep 6, 2025
c3335be
chore: check context done in setup
ironman0x7b2 Sep 6, 2025
0b770c8
chore: do not store context in struct
ironman0x7b2 Sep 7, 2025
30ff3d1
fix: lint issues
ironman0x7b2 Sep 7, 2025
49d2714
chore: take context as an param for Run func
ironman0x7b2 Sep 7, 2025
2047e57
fix: more lint errors
ironman0x7b2 Sep 7, 2025
13fa559
chore: moved config package to core
ironman0x7b2 Sep 7, 2025
024384d
fix: retry broadcast tx in case of timeout
ironman0x7b2 Sep 8, 2025
aa70670
chore: changed golangci-lint config type to yaml
ironman0x7b2 Sep 8, 2025
debc418
chore: renamed incorrect name QueryGRPC to QueryABCI
ironman0x7b2 Sep 8, 2025
8bfd231
chore(deps): bump golang.org/x/time from 0.12.0 to 0.13.0
dependabot[bot] Sep 8, 2025
4f1b992
chore(deps): bump golang.org/x/time from 0.12.0 to 0.13.0 (#121)
ironman0x7b2 Sep 8, 2025
279bc93
chore(deps): bump golang.org/x/sync from 0.16.0 to 0.17.0
dependabot[bot] Sep 8, 2025
3a50a35
chore(deps): bump golang.org/x/sync from 0.16.0 to 0.17.0 (#120)
ironman0x7b2 Sep 8, 2025
41904a6
chore: update GitHub CodeQL workflow
ironman0x7b2 Sep 8, 2025
90c4690
chore(deps): bump actions/setup-go from 5 to 6
dependabot[bot] Sep 8, 2025
4105ab0
chore(deps): bump actions/setup-go from 5 to 6 (#122)
ironman0x7b2 Sep 8, 2025
cf9ccd1
chore(deps): bump google.golang.org/protobuf from 1.36.8 to 1.36.9
dependabot[bot] Sep 9, 2025
29f6c0a
chore(deps): bump sentinelhub version to commit 1f5a34c051d2
ironman0x7b2 Sep 12, 2025
1cfc1b5
chore(deps): bump golang.org/x/crypto from 0.41.0 to 0.42.0
dependabot[bot] Sep 12, 2025
6a61e5a
fix: OpenVPN server template empty lines
ironman0x7b2 Sep 14, 2025
d83efd3
chore: run iptables commands when OpenVPN server is up and down
ironman0x7b2 Sep 14, 2025
6fbd10c
fix: incorrect retry attempts count
ironman0x7b2 Sep 15, 2025
091ff85
feat: add methods for query block and block results
ironman0x7b2 Sep 15, 2025
21c9450
Create code-quality.yml
ironman0x7b2 Sep 16, 2025
9f601a9
chore(deps): bump google.golang.org/protobuf from 1.36.8 to 1.36.9 (#…
ironman0x7b2 Sep 16, 2025
180c50a
chore(deps): bump golang.org/x/crypto from 0.41.0 to 0.42.0 (#125)
ironman0x7b2 Sep 16, 2025
b1c9db1
chore: use standard package for HTTP client
ironman0x7b2 Sep 17, 2025
10f05c9
feat: use custom transport with headers for RPC HTTP client
ironman0x7b2 Sep 17, 2025
3fa5f82
chore: pass context to cleanup routine
ironman0x7b2 Sep 18, 2025
46412cb
Update code-quality.yml
ironman0x7b2 Sep 18, 2025
c107edd
chore(deps): bump github.com/gin-gonic/gin from 1.10.1 to 1.11.0
dependabot[bot] Sep 22, 2025
63d48a9
chore(deps): update sentinelhub to v12.0.0-rc.13
ironman0x7b2 Sep 29, 2025
996411a
chore(deps): bump github.com/gin-gonic/gin from 1.10.1 to 1.11.0 (#128)
ironman0x7b2 Sep 29, 2025
c1eb5b7
chore: change golangci-lint timeout to 5m
ironman0x7b2 Sep 29, 2025
cf2fd41
chore(deps): bump github.com/v2fly/v2ray-core/v5 from 5.38.0 to 5.39.0
dependabot[bot] Sep 29, 2025
a8485a1
chore(deps): bump github.com/v2fly/v2ray-core/v5 from 5.38.0 to 5.39.…
ironman0x7b2 Sep 29, 2025
afd7dac
fix: incorrect number of attempts tracking
ironman0x7b2 Oct 3, 2025
dc26162
fix: minimum go version
ironman0x7b2 Oct 3, 2025
115f361
fix: parsing session ID from events
ironman0x7b2 Oct 4, 2025
4de6a6d
feat: add osmosis oracle package for spot price
ironman0x7b2 Oct 6, 2025
dfed0bd
feat: add oracle asset related methods
ironman0x7b2 Oct 7, 2025
220914d
feat: implement QuotePriceFunc for updating the quote value of a price
ironman0x7b2 Oct 7, 2025
775b77b
feat: add oracle interface
ironman0x7b2 Oct 7, 2025
69b835c
chore: include HTTP client and API key fields in CoinGecko
ironman0x7b2 Oct 8, 2025
ad8d420
feat: embed assets and use in coingecko and osmosis for asset metadata
ironman0x7b2 Oct 8, 2025
50ae4bd
chore(deps): bump github/codeql-action from 3 to 4
dependabot[bot] Oct 13, 2025
d7dcaef
chore(deps): bump github.com/v2fly/v2ray-core/v5 from 5.39.0 to 5.41.0
dependabot[bot] Oct 15, 2025
81519ab
chore(deps): bump github.com/v2fly/v2ray-core/v5 from 5.39.0 to 5.41.…
ironman0x7b2 Oct 19, 2025
c8ae7ea
chore(deps): bump github/codeql-action from 3 to 4 (#135)
ironman0x7b2 Oct 19, 2025
7ee067f
chore(deps): bump golang.org/x/time from 0.13.0 to 0.14.0
dependabot[bot] Oct 19, 2025
267dbf9
chore(deps): bump github.com/shirou/gopsutil/v4 from 4.25.8 to 4.25.9
dependabot[bot] Oct 19, 2025
ae1ac08
chore(deps): bump github.com/shirou/gopsutil/v4 from 4.25.8 to 4.25.9…
ironman0x7b2 Oct 19, 2025
18ab246
chore(deps): bump golang.org/x/time from 0.13.0 to 0.14.0 (#133)
ironman0x7b2 Oct 19, 2025
2649922
chore(deps): bump github.com/sentinel-official/sentinelhub to v12.0.0
ironman0x7b2 Oct 19, 2025
ae65264
chore(deps): bump github.com/avast/retry-go/v4 from 4.6.1 to 4.7.0
dependabot[bot] Oct 20, 2025
f6b58c0
chore(deps): bump github.com/avast/retry-go/v4 from 4.6.1 to 4.7.0 (#…
ironman0x7b2 Oct 25, 2025
8a0a4e3
chore: update the oracle assets.json
ironman0x7b2 Oct 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: retry only if the error is account sequence mismatch
  • Loading branch information
ironman0x7b2 committed Feb 16, 2025
commit bcf669d88be288e5ea48d424b4b9ea43b940fc5d
5 changes: 5 additions & 0 deletions core/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ func IsCodeNotFound(err error) error {

return err
}

// IsWrongSequenceError checks if the error message indicates an account sequence mismatch error.
func IsWrongSequenceError(err error) bool {
return strings.Contains(strings.ToLower(err.Error()), "incorrect account sequence")
}
15 changes: 11 additions & 4 deletions core/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package core

import (
"context"
"errors"
"fmt"
"time"

Expand Down Expand Up @@ -173,6 +172,13 @@ func (c *Client) signTx(txb client.TxBuilder, key *keyring.Record, acc auth.Acco

// broadcastTxSync broadcasts a signed transaction synchronously and returns the broadcast result.
func (c *Client) broadcastTxSync(ctx context.Context, msgs ...cosmossdk.Msg) (*core.ResultBroadcastTx, error) {
// Validate each message and return an error if any fail.
for i, msg := range msgs {
if err := msg.ValidateBasic(); err != nil {
return nil, fmt.Errorf("failed to validate message at index %d: %w", i, err)
}
}

// Retrieve the signing key using the configured sender name.
key, err := c.Key(c.txFromName)
if err != nil {
Expand Down Expand Up @@ -249,11 +255,12 @@ func (c *Client) BroadcastTxSync(ctx context.Context, msgs ...cosmossdk.Msg) (*c

// retryIfFunc determines whether a retry should occur based on the error.
retryIfFunc := func(err error) bool {
if errors.Is(err, ErrNotFound) {
return false
// Retry if the error is an account sequence mismatch.
if IsWrongSequenceError(err) {
return true
}

return true
return false
}

// Retry broadcasting the transaction with defined attempts and delay.
Expand Down