Skip to content

Commit

Permalink
Merge pull request #9 from InjectiveLabs/dev
Browse files Browse the repository at this point in the history
#PR9
  • Loading branch information
bangjelkoski authored Oct 21, 2024
2 parents fb3d860 + 2afd8c6 commit 94058a5
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/develop/cheat-sheet/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ inj1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqe2hm49

This is effectively the Injective `0x0...` address converted into `bech32`.

## Creating Proposals on Testnet

To successfully pass the proposal for testnet, `YOUR_DEPOSIT` should be slightly less than `min_deposit`
value (for example, `40000000000000000000inj`). After that you should contact the Injective dev team. Dev team will
top up your deposit to `min_deposit` and vote for your proposal.

## Creating Transactions

### Via APIs
Expand Down
61 changes: 61 additions & 0 deletions docs/develop/modules/injective/oracle/04_proposals.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,67 @@ title: Governance Proposals

# Governance Proposals

## GrantProviderPrivilegeProposal

Oracle provider privileges can be granted to your account through a `GrantBandOraclePrivilegeProposal`. After the governance proposal is passed, you will be able to relay price feeds using your provider.


```protobuf
// Grant Privileges
message GrantProviderPrivilegeProposal {
option (amino.name) = "oracle/GrantProviderPrivilegeProposal";
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content";
string title = 1;
string description = 2;
string provider = 3;
repeated string relayers = 4;
}
```

You can submit your proposal according to the example:

```bash
injectived tx oracle grant-provider-privilege-proposal YOUR_PROVIDER \
YOUR_ADDRESS_HERE \
--title="TITLE OF THE PROPOSAL" \
--description="Registering PROVIDER as an oracle provider" \
--chain-id=injective-888 \
--from=local_key \
--node=https://testnet.sentry.tm.injective.network:443 \
--gas-prices=160000000inj \
--gas=20000000 \
--deposit="40000000000000000000inj"
```


To successfully pass the proposal for **testnet**, `YOUR_DEPOSIT` should be slightly less than `min_deposit`
value (for example, `40000000000000000000inj`). After that you should contact the Injective dev team. Dev team will
top up your deposit to `min_deposit` and vote for your proposal.

## RevokeProviderPrivilegeProposal

Oracle provider privileges can be revoked from your account through a `RevokeProviderPrivilegeProposal`.

```protobuf
// Revoke Privileges
message RevokeProviderPrivilegeProposal {
option (amino.name) = "oracle/RevokeProviderPrivilegeProposal";
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content";
string title = 1;
string description = 2;
string provider = 3;
repeated string relayers = 5;
}
```

## GrantBandOraclePrivilegeProposal

Band Oracle privileges can be granted to Relayer accounts of Band provider through a `GrantBandOraclePrivilegeProposal`.
Expand Down

0 comments on commit 94058a5

Please sign in to comment.