Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test env #103

Draft
wants to merge 72 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
d6447e2
Init commit
nhannamsiu Aug 17, 2021
5207f52
Merge branch 'master' of https://github.com/InjectiveLabs/peggo into …
mankenavenkatesh Nov 16, 2021
c0cb909
Merge branch 'master' of https://github.com/InjectiveLabs/peggo into …
nhannamsiu Jan 20, 2022
e682844
Merge pull request #61 from InjectiveLabs/f/change-expiry-function
albertchon Jun 16, 2022
d7243a9
Merge pull request #64 from InjectiveLabs/f/change-expiry-function
mankenavenkatesh Jun 17, 2022
ade8906
Merge pull request #68 from InjectiveLabs/master
albertchon Jul 5, 2022
3eedb36
Merge pull request #77 from InjectiveLabs/master
albertchon Jan 26, 2023
b007736
add new files from test-patch
dbrajovic Dec 20, 2023
d1bcda5
add new changes in existing files from test-patch
dbrajovic Dec 20, 2023
3bacf35
Merge branch 'fix/bump-sdk-go' into test-env
dbrajovic Dec 20, 2023
c29528d
connect to local injective node during startup
dbrajovic Dec 20, 2023
c6d4494
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
df05057
use dummy coingecko
dbrajovic Dec 21, 2023
6cfd225
clean up oracle.go
dbrajovic Dec 21, 2023
ac8a031
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
2791e34
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
95ca6c6
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
27dad6e
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
6b76083
clean up signer.go
dbrajovic Dec 21, 2023
ad72725
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
71189a2
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
eab032b
Merge branch 'release-prod' into test-env
dbrajovic Dec 21, 2023
d73345d
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
4559085
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
7a0d90c
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
5305c57
Merge branch 'cleanup' into test-env
dbrajovic Dec 21, 2023
b6084a9
Merge branch 'cleanup' into test-env
dbrajovic Dec 22, 2023
dc4e69b
Merge branch 'cleanup' into test-env
dbrajovic Dec 22, 2023
ba4077d
Merge branch 'cleanup' into test-env
dbrajovic Dec 22, 2023
33a1069
Merge branch 'cleanup' into test-env
dbrajovic Dec 22, 2023
6a01626
Merge branch 'cleanup' into test-env
dbrajovic Dec 26, 2023
162d583
Merge branch 'cleanup' into test-env
dbrajovic Dec 26, 2023
93a165e
Merge branch 'cleanup' into test-env
dbrajovic Dec 27, 2023
dcde3cd
Merge branch 'cleanup' into test-env
dbrajovic Dec 27, 2023
4284c0b
Merge branch 'cleanup' into test-env
dbrajovic Dec 28, 2023
905212f
Merge branch 'cleanup' into test-env
dbrajovic Dec 28, 2023
0d626f2
remove redundant parameters
dbrajovic Dec 28, 2023
7942b80
Merge branch 'cleanup' into test-env
dbrajovic Dec 28, 2023
5c5f609
Merge branch 'cleanup' into test-env
dbrajovic Dec 28, 2023
1a13376
remove redundant network methods
dbrajovic Dec 29, 2023
8e62300
Merge branch 'cleanup' into test-env
dbrajovic Dec 29, 2023
f3bc6c8
Merge branch 'cleanup' into test-env
dbrajovic Dec 29, 2023
0b990f7
Merge branch 'cleanup' into test-env
dbrajovic Dec 29, 2023
362074f
Merge branch 'cleanup' into test-env
dbrajovic Dec 29, 2023
cbd7894
cleanup
dbrajovic Jan 4, 2024
602092d
Merge branch 'cleanup' into test-env
dbrajovic Jan 4, 2024
14bc5d6
Merge branch 'cleanup' into test-env
dbrajovic Jan 4, 2024
904dadb
Merge branch 'cleanup' into test-env
dbrajovic Jan 4, 2024
925d275
Merge branch 'master' into test-env
dbrajovic Jan 15, 2024
f45bad1
ensure oracle catches first peggy event
dbrajovic Jan 17, 2024
60455ba
fix test readme and script
dbrajovic Jan 29, 2024
98f636b
update testing readme
dbrajovic Jan 29, 2024
a0b5035
cleanup
dbrajovic May 22, 2024
92d9695
Merge branch 'test-env' into test-env-refactor
dbrajovic May 22, 2024
8add9b1
Merge branch 'refactor-and-log' into test-env-refactor
dbrajovic May 23, 2024
cde42b3
Merge branch 'refactor-and-log' into test-env-refactor
dbrajovic May 23, 2024
64480e0
Merge branch 'master' into test-env
dbrajovic Jun 3, 2024
dc4bb6e
Merge branch 'master' into test-env
dbrajovic Jun 3, 2024
ab6955b
Merge branch 'master' into test-env
dbrajovic Jun 3, 2024
b1b39ad
update scripts
dbrajovic Jun 3, 2024
591d4f7
Merge branch 'master' into test-env
dbrajovic Oct 7, 2024
c7e3f39
Merge branch 'fix/update-dependencies' into test-env-update
dbrajovic Oct 7, 2024
14d00dc
Merge branch 'fix/update-dependencies' into test-env-update
dbrajovic Oct 7, 2024
9bcf5c1
Merge branch 'fix/update-dependencies' into test-env-update
dbrajovic Oct 16, 2024
2e2d7d8
remove cosmos token mint hack
dbrajovic Oct 16, 2024
a711f26
chore: update test scripts
dbrajovic Oct 16, 2024
5985181
Merge branch 'master' into test-env-master
dbrajovic Oct 17, 2024
cea2630
Merge branch 'master' into test-env
dbrajovic Nov 15, 2024
8d2d350
chore: update scripts
dbrajovic Nov 15, 2024
1190095
fix: remove field from peggy_params.json
dbrajovic Nov 15, 2024
1d461b3
chore: update params.json
dbrajovic Dec 10, 2024
5518bb8
chore: clean up scripts
dbrajovic Dec 11, 2024
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
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release prod docker image
on:
push:
branches: [release-prod]

jobs:
docker-release:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout peggo
uses: actions/checkout@master
with:
repository: InjectiveLabs/peggo
ref: release-prod
token: ${{ secrets.GH_TOKEN }}
path: ./peggo
- name: Build image
run: |
cd peggo
docker build -t public.ecr.aws/l9h3g6c6/peggo:prod .
- name: Push image
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_KEY }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET }}
aws configure set region us-east-1
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/l9h3g6c6
docker push public.ecr.aws/l9h3g6c6/peggo:prod
2 changes: 1 addition & 1 deletion cmd/peggo/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func orchestratorCmd(cmd *cli.Cmd) {
peggo, err := orchestrator.NewOrchestrator(
cosmosNetwork,
ethNetwork,
pricefeed.NewCoingeckoPriceFeed(100, &pricefeed.Config{BaseURL: *cfg.coingeckoApi}),
pricefeed.NewDummyCoingeckoFeed(),
orchestratorCfg,
)
orShutdown(err)
Expand Down
28 changes: 28 additions & 0 deletions orchestrator/pricefeed/dummy_coingecko.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package pricefeed

import (
"errors"
"github.com/ethereum/go-ethereum/common"
)

type DummyCoingeckoFeed struct {
tokens map[string]string // token_addr -> denom
}

func NewDummyCoingeckoFeed() DummyCoingeckoFeed {
return DummyCoingeckoFeed{
tokens: map[string]string{
"0x7E5C521F8515017487750c13C3bF3B15f3f5f654": "inj",
"0x1ccec198630F2024c64C0aFC5aE2427bc8e2dce8": "wut",
},
}
}

func (f DummyCoingeckoFeed) QueryUSDPrice(address common.Address) (float64, error) {
switch f.tokens[address.Hex()] {
case "inj", "wut":
return 10, nil
default:
return 0, errors.New("unknown token")
}
}
26 changes: 13 additions & 13 deletions solidity/wrappers/CosmosToken.sol/wrapper.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion solidity/wrappers/HashingTest.sol/wrapper.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading