Skip to content

Commit

Permalink
integrate sei
Browse files Browse the repository at this point in the history
  • Loading branch information
hedi-edelbloute committed Oct 3, 2023
1 parent 173d7d6 commit ec87fe0
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/cli/src/live-common-setup-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ setSupportedCurrencies([
"umee",
"desmos",
"onomy",
"sei_network",
"persistence",
"quicksilver",
"internet_computer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ setSupportedCurrencies([
"umee",
"desmos",
"onomy",
"sei_network",
"quicksilver",
"persistence",
"avalanche_c_chain",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const StepChooseCurrency = ({ currency, setCurrency }: StepProps) => {
const umee = useFeature("currencyUmee");
const desmos = useFeature("currencyDesmos");
const onomy = useFeature("currencyOnomy");
const seiNetwork = useFeature("currencySeiNetwork");
const quicksilver = useFeature("currencyQuicksilver");
const persistence = useFeature("currencyPersistence");
const avaxCChain = useFeature("currencyAvalancheCChain");
Expand Down Expand Up @@ -77,6 +78,7 @@ const StepChooseCurrency = ({ currency, setCurrency }: StepProps) => {
umee,
desmos,
onomy,
sei_network: seiNetwork,
quicksilver,
persistence,
avalanche_c_chain: avaxCChain,
Expand Down Expand Up @@ -113,6 +115,7 @@ const StepChooseCurrency = ({ currency, setCurrency }: StepProps) => {
umee,
desmos,
onomy,
seiNetwork,
quicksilver,
persistence,
avaxCChain,
Expand Down
1 change: 1 addition & 0 deletions apps/ledger-live-mobile/src/live-common-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ setSupportedCurrencies([
"umee",
"desmos",
"onomy",
"sei_network",
"quicksilver",
"persistence",
"bitcoin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default function AddAccountsSelectCrypto({ navigation, route }: Props) {
const umee = useFeature("currencyUmee");
const desmos = useFeature("currencyDesmos");
const onomy = useFeature("currencyOnomy");
const seiNetwork = useFeature("currencySeiNetwork");
const quicksilver = useFeature("currencyQuicksilver");
const persistence = useFeature("currencyPersistence");
const avaxCChain = useFeature("currencyAvalancheCChain");
Expand Down Expand Up @@ -97,6 +98,7 @@ export default function AddAccountsSelectCrypto({ navigation, route }: Props) {
desmos,
secret_network: secretNetwork,
onomy,
sei_network: seiNetwork,
quicksilver,
persistence,
avalanche_c_chain: avaxCChain,
Expand Down Expand Up @@ -133,6 +135,7 @@ export default function AddAccountsSelectCrypto({ navigation, route }: Props) {
desmos,
secretNetwork,
onomy,
seiNetwork,
quicksilver,
persistence,
avaxCChain,
Expand Down
1 change: 1 addition & 0 deletions apps/web-tools/live-common-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ setSupportedCurrencies([
"umee",
"desmos",
"onomy",
"sei_network",
"quicksilver",
"persistence",
"bitcoin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ setSupportedCurrencies([
"umee",
"desmos",
"onomy",
"sei_network",
"quicksilver",
"persistence",
"bitcoin",
Expand Down
1 change: 1 addition & 0 deletions libs/ledger-live-common/src/account/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const getVotesCount = (
return (mainAccount as TronAccount)?.tronResources?.votes.length || 0;
case "axelar":
case "onomy":
case "sei_network":
case "quicksilver":
case "stride":
case "persistence":
Expand Down
4 changes: 4 additions & 0 deletions libs/ledger-live-common/src/config/defaultConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ const defaultConfig = {
lcd: "https://lcd.secret.express",
minGasPrice: 0.25,
},
sei_network: {
lcd: "https://sei-api.polkachu.com",
minGasPrice: 0.1,
},
stargaze: {
lcd: "https://stargaze-api.polkachu.com",
minGasPrice: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe("cryptoFactory test", () => {
"desmos",
"nyx",
"onomy",
"sei_network",
"persistence",
"quicksilver",
"secret_network",
Expand Down
11 changes: 11 additions & 0 deletions libs/ledger-live-common/src/families/cosmos/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,16 @@ const onomy = {
}),
};

const seiMinimalTransactionAmount = new BigNumber(5000);
const sei = {
...generateGenericCosmosTest("sei_network", false, {
minViableAmount: onomyMinimalTransactionAmount,
mutations: cosmosLikeMutations(seiMinimalTransactionAmount),
testTimeout: 8 * 60 * 1000,
skipOperationHistory: true,
}),
};

const axelarMinimalTransactionAmount = new BigNumber(10000);
const axelar = {
...generateGenericCosmosTest("axelar", false, {
Expand Down Expand Up @@ -580,6 +590,7 @@ export default {
quicksilver,
onomy,
secretNetwork,
sei,
stargaze,
coreum,
injective,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const CURRENCY_DEFAULT_FEATURES = {
currencyQuicksilver: DEFAULT_FEATURE,
currencyRsk: DEFAULT_FEATURE,
currencySecretNetwork: DEFAULT_FEATURE,
currencySeiNetwork: DEFAULT_FEATURE,
currencyStacks: DEFAULT_FEATURE,
currencyStargaze: DEFAULT_FEATURE,
currencySyscoin: DEFAULT_FEATURE,
Expand Down
1 change: 1 addition & 0 deletions libs/ledgerjs/packages/types-live/src/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export type CurrencyFeatures = {
currencySyscoin: DefaultFeature;
currencyAxelar: DefaultFeature;
currencySecretNetwork: DefaultFeature;
currencySeiNetwork: DefaultFeature;
currencyDesmos: DefaultFeature;
currencyUmee: DefaultFeature;
currencyStargaze: DefaultFeature;
Expand Down

2 comments on commit ec87fe0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Bot] Testing with 'Nitrogen' 💰 1 miss funds ($0.00) ⏲ 5.1s

💰 1 specs may miss funds: sei_network

What is the bot and how does it work? Everything is documented here!

⚠️ 1 spec hints
  • Spec sei_network:
    • There are not enough accounts to cover all mutations. Please increase the account target to at least 7 accounts
Details of the 0 mutations

Spec sei_network (failed)

Spec sei_network found 1 SeiNetwork accounts (preload: 266ms). Will use Cosmos 2.35.13 on nanoS 2.1.0
SeiNetwork 1 cross: 0 SEI (0ops) (sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v on 44'/118'/0'/0/0) #0 js:2:sei_network:sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v:

This SEED does not have SeiNetwork. Please send funds to sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v

Details of the 6 uncovered mutations

Spec sei_network (6)

  • send some:
  • send max:
  • delegate new validators:
  • undelegate:
  • redelegate:
  • claim rewards:
Portfolio ($0.00) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
sei_network (1) 0 ops , 0 SEI ($0.00) sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v
SeiNetwork 1 cross: 0 SEI (0ops) (sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v on 44'/118'/0'/0/0) #0 js:2:sei_network:sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v:
Performance ⏲ 5.1s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 266ms 1262ms N/A N/A N/A N/A N/A N/A
sei_network (0) 266ms 1262ms N/A N/A N/A N/A N/A N/A

What is the bot and how does it work? Everything is documented here!

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Bot] Testing with 'Nitrogen' ❌ 2 txs 💰 1 miss funds ($0.00) ⏲ 8.4s

💰 1 specs may miss funds: sei_network

What is the bot and how does it work? Everything is documented here!

❌ 2 mutation errors
necessary accounts resynced in 0.38ms
▬ Cosmos 2.35.13 on nanoS 2.1.0
→ FROM SeiNetwork 1 cross: 2 SEI (1ops) (sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v on 44'/118'/0'/0/0) #0 js:2:sei_network:sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v: 2 SEI spendable. 

⚠️ Invariant Violation: No abandonseed available for sei_network

necessary accounts resynced in 0.37ms
▬ Cosmos 2.35.13 on nanoS 2.1.0
→ FROM SeiNetwork 2: 0 SEI (0ops) (sei1qvtnzptp30maznnhdg30xl2jtdq2shpn2s5qd6 on 44'/118'/1'/0/0) #1 js:2:sei_network:sei1qvtnzptp30maznnhdg30xl2jtdq2shpn2s5qd6: 0 SEI spendable. 

⚠️ Invariant Violation: No abandonseed available for sei_network

⚠️ 2 spec hints
  • Spec sei_network:
    • There are not enough accounts to cover all mutations. Please increase the account target to at least 7 accounts
    • No mutation were found possible. Yet there are funds in the accounts, please investigate.
Details of the 2 mutations

Spec sei_network (2)

Spec sei_network found 2 SeiNetwork accounts (preload: 326ms). Will use Cosmos 2.35.13 on nanoS 2.1.0
SeiNetwork 1 cross: 2 SEI (1ops) (sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v on 44'/118'/0'/0/0) #0 js:2:sei_network:sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v:
SeiNetwork 2: 0 SEI (0ops) (sei1qvtnzptp30maznnhdg30xl2jtdq2shpn2s5qd6 on 44'/118'/1'/0/0) #1 js:2:sei_network:sei1qvtnzptp30maznnhdg30xl2jtdq2shpn2s5qd6:
necessary accounts resynced in 0.38ms
▬ Cosmos 2.35.13 on nanoS 2.1.0
→ FROM SeiNetwork 1 cross: 2 SEI (1ops) (sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v on 44'/118'/0'/0/0) #0 js:2:sei_network:sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v: 2 SEI spendable. 

⚠️ Invariant Violation: No abandonseed available for sei_network

necessary accounts resynced in 0.37ms
▬ Cosmos 2.35.13 on nanoS 2.1.0
→ FROM SeiNetwork 2: 0 SEI (0ops) (sei1qvtnzptp30maznnhdg30xl2jtdq2shpn2s5qd6 on 44'/118'/1'/0/0) #1 js:2:sei_network:sei1qvtnzptp30maznnhdg30xl2jtdq2shpn2s5qd6: 0 SEI spendable. 

⚠️ Invariant Violation: No abandonseed available for sei_network


Details of the 6 uncovered mutations

Spec sei_network (6)

  • send some:
  • send max:
  • delegate new validators:
  • undelegate:
  • redelegate:
  • claim rewards:
Portfolio ($0.00) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
sei_network (2) 1 ops , 2 SEI ($0.00) ⚠️ 16 sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v
SeiNetwork 1 cross: 2 SEI (1ops) (sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v on 44'/118'/0'/0/0) #0 js:2:sei_network:sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v:
SeiNetwork 2: 0 SEI (0ops) (sei1qvtnzptp30maznnhdg30xl2jtdq2shpn2s5qd6 on 44'/118'/1'/0/0) #1 js:2:sei_network:sei1qvtnzptp30maznnhdg30xl2jtdq2shpn2s5qd6:
Performance ⏲ 8.4s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 326ms 1601ms 0.74ms N/A N/A N/A N/A N/A
sei_network (1) 326ms 1601ms 0.74ms N/A N/A N/A N/A N/A

What is the bot and how does it work? Everything is documented here!

Please sign in to comment.