Skip to content

Commit

Permalink
feat: gasless
Browse files Browse the repository at this point in the history
  • Loading branch information
dmy147 committed May 15, 2024
1 parent e038928 commit f064198
Show file tree
Hide file tree
Showing 16 changed files with 757 additions and 213 deletions.
2 changes: 1 addition & 1 deletion apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@rabby-wallet/eth-walletconnect-keyring": "2.1.3",
"@rabby-wallet/object-multiplex": "workspace:^",
"@rabby-wallet/persist-store": "workspace:^",
"@rabby-wallet/rabby-api": "0.7.12",
"@rabby-wallet/rabby-api": "0.7.14",
"@rabby-wallet/rabby-security-engine": "^1.1.17",
"@rabby-wallet/rabby-swap": "0.0.36",
"@rabby-wallet/service-address": "workspace:^",
Expand Down
Binary file added apps/mobile/src/assets/icons/sign/tx/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions apps/mobile/src/assets/icons/sign/tx/bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions apps/mobile/src/assets/icons/sign/tx/gas-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions apps/mobile/src/assets/icons/sign/tx/gas-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions apps/mobile/src/assets/icons/sign/tx/rabby.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion apps/mobile/src/assets/locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"gasLimitNotEnough": "Gas limit is less than 21000. Transaction can't be submitted",
"gasLimitLessThanExpect": "Gas limit is low. There is 1% chance that the transaction may fail.",
"gasLimitLessThanGasUsed": "Gas limit is too low. There is 95% chance that the transaction may fail.",
"nativeTokenNotEngouthForGas": "You do not have enough gas in your wallet",
"nativeTokenNotEngouthForGas": "Gas balance is not enough for transaction",
"nonceLowerThanExpect": "Nonce is too low, the minimum should be {{0}}",
"canOnlyUseImportedAddress": "You can only use imported addresses to sign",
"multiSigChainNotMatch": "Multi-signature addresses are not on this chain and cannot initiate transactions",
Expand Down Expand Up @@ -298,6 +298,12 @@
"ledgerConnected": "Ledger is connected",
"importedByLedger": "Imported by Ledger",
"signAndSubmitButton": "Sign and Create",
"gasless": {
"unavailable": "Gas balance is not enough for this transaction",
"notEnough": "Gas balance is not enough",
"GetFreeGasToSign": "Get Free Gas to sign",
"rabbyPayGas": "Rabby'll pay for the gas needed – just sign on"
},
"walletConnect": {
"connectedButCantSign": "Connected but unable to sign.",
"switchToCorrectAddress": "Please switch to the correct address in mobile wallet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export interface Props {
children?: React.ReactNode;
chain?: Chain;
submitText?: string;
gasLess?: boolean;
}

export const ActionsContainer: React.FC<
Expand Down
Loading

0 comments on commit f064198

Please sign in to comment.