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

Added cREAL to cli #9056

Merged
merged 43 commits into from
Dec 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
5997543
GrandaMento comment fixes & clearer revert msgs - N01 and N02 (#8473)
yorhodes Aug 5, 2021
1815b1d
GrandaMento - Add hardcoded max for veto period - L07 (#8474)
yorhodes Aug 5, 2021
2ffa4da
GrandaMento - Lock in veto period in proposal - L01 (#8472)
yorhodes Aug 5, 2021
10233f6
Check if executing a proposal would overflow (#8500)
m-chrzan Aug 11, 2021
75e4c40
Move GrandaMento from liquidity dir to stability (#8300)
tkporter Jul 26, 2021
7e7569f
cBRL contract from contracts.v5 tag
luisgj Oct 19, 2021
64a4a45
Added constitution parameters to cREAL
martinvol Oct 26, 2021
9c1f981
Changing cREAL parameters
martinvol Oct 27, 2021
5aa77e2
Update packages/protocol/releaseData/initializationData/creal_deploy.…
martinvol Oct 27, 2021
97fec1c
Merge remote-tracking branch 'origin/patch-3' into martinvol/migrations
martinvol Oct 30, 2021
a427632
Added migrations cREAL
martinvol Oct 30, 2021
c144640
Added integration tests and migrations config
martinvol Oct 30, 2021
b268346
Merge pull request #1 from martinvol/patch-2
luisgj Nov 1, 2021
466a52a
Merge pull request #2 from martinvol/patch-3
luisgj Nov 1, 2021
95816c9
lint
martinvol Nov 2, 2021
2407c25
Merge branch 'rc/v6' into martinvol/migrations
martinvol Nov 2, 2021
ecae15a
Merge pull request #3 from martinvol/martinvol/migrations
martinvol Nov 2, 2021
2958943
Update packages/protocol/test/common/integration.ts
martinvol Nov 2, 2021
89fcede
Removed json
martinvol Nov 3, 2021
035dddc
retigger CI
martinvol Nov 3, 2021
b0f4a12
Changed base RELEASE_TAG
martinvol Nov 3, 2021
5ebade0
Added release5-report.json
martinvol Nov 3, 2021
a60635a
new line
martinvol Nov 3, 2021
452db85
Added CR6 script
martinvol Nov 3, 2021
f4abaa6
Fixed typos
martinvol Nov 7, 2021
c2ddce5
contractkit now knows BRL exists
martinvol Nov 7, 2021
c608350
WIP cli
martinvol Nov 9, 2021
85ba946
added release6.json
martinvol Nov 9, 2021
632d727
Merge branch 'master' of github.com:celo-org/celo-monorepo into creal…
martinvol Nov 9, 2021
588f1b4
add cREAL as default for env tests
martinvol Nov 12, 2021
d2f20a7
Added cREAL release data
martinvol Nov 17, 2021
e4d56d8
Merge branch 'cREAL_cli' of https://github.com/luisgj/celo-monorepo i…
martinvol Dec 3, 2021
865dbc7
Merge branch 'luisgj-cREAL_cli' into martinvol/creal_cli
martinvol Dec 3, 2021
7f05e85
Update packages/env-tests/src/monorepoRun.ts
martinvol Dec 7, 2021
e7c7009
Update packages/env-tests/src/monorepoRun.ts
martinvol Dec 7, 2021
11cb7be
Update packages/env-tests/src/tests/exchange.ts
martinvol Dec 7, 2021
3d458df
Update packages/env-tests/src/tests/exchange.ts
martinvol Dec 7, 2021
01bb5a8
Update packages/env-tests/src/tests/exchange.ts
martinvol Dec 7, 2021
2509144
Rooled back env test run
martinvol Dec 7, 2021
2210ca6
Merge branch 'master' of github.com:celo-org/celo-monorepo into marti…
martinvol Dec 7, 2021
2cfc43b
Update packages/sdk/contractkit/src/wrappers/StableToken.test.ts
martinvol Dec 8, 2021
030dc3d
Added commands and docs
martinvol Dec 8, 2021
232cc6c
Merge branch 'master' into martinvol/creal_cli_update
martinvol Dec 9, 2021
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 packages/cli/src/commands/exchange/reals.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { StableToken } from '@celo/contractkit'
import ExchangeStableBase from '../../exchange-stable-base'
import { Flags } from '../../utils/command'
export default class ExchangeEuros extends ExchangeStableBase {
static description = 'Exchange Celo Brazilian Real (cBRL) for CELO via the stability mechanism'

static flags = {
...ExchangeStableBase.flags,
from: Flags.address({
required: true,
description: 'The address with Celo Brazilian Real to exchange',
}),
value: Flags.wei({
required: true,
description: 'The value of Celo Brazilian Real to exchange for CELO',
}),
}

static examples = [
'reals --value 10000000000000 --from 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d',
'reals --value 10000000000000 --forAtLeast 50000000000000 --from 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d',
]

async init() {
this._stableCurrency = StableToken.cREAL
await super.init()
}
}
19 changes: 19 additions & 0 deletions packages/cli/src/commands/transfer/reals.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { StableToken } from '@celo/contractkit'
import { TransferStableBase } from '../../transfer-stable-base'

export default class TransferEuros extends TransferStableBase {
static description = 'Transfer Celo Brazilian Real (cREAL) to a specified address.'

static flags = {
...TransferStableBase.flags,
}

static examples = [
'reals --from 0xa0Af2E71cECc248f4a7fD606F203467B500Dd53B --to 0x5409ed021d9299bf6814279a6a1411a7e866a631 --value 1000000000000000000',
]

async init() {
this._stableCurrency = StableToken.cREAL
await super.init()
}
}
31 changes: 31 additions & 0 deletions packages/docs/command-line-interface/exchange.md

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

26 changes: 26 additions & 0 deletions packages/docs/command-line-interface/transfer.md

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