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

Add Liberland #606

Merged
merged 5 commits into from
Aug 29, 2023
Merged

Add Liberland #606

merged 5 commits into from
Aug 29, 2023

Conversation

peachbits
Copy link
Contributor

@peachbits peachbits commented Aug 25, 2023


@peachbits peachbits marked this pull request as draft August 25, 2023 00:52
Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

Approved with a few small changes.

const transfer = await this.api.tx.balances.transferKeepAlive(
publicAddress,
nativeAmount
const edgeMetaToken = this.allTokens.find(
Copy link
Contributor

Choose a reason for hiding this comment

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

Call this one edgeToken

/*
HACK: We cannot query transactions if a currency doesn't have a subscanBaseUrl
*/
if (this.networkInfo.subscanBaseUrl === '') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional: Could we make subscanBaseUrl: string | undefined? I really don't like blank-string checks, if we can use undefined instead.

Comment on lines 27 to 46
// Basic currency information:
currencyCode: 'LLD',
displayName: 'Liberland',
pluginId: 'liberland',
walletType: 'wallet:liberland',

defaultSettings: {},

addressExplorer: '',
transactionExplorer:
'https://polkadot.js.org/apps/?rpc=wss%%3A%%2F%%2Fmainnet.liberland.org%%2F#/explorer/query/%s',

denominations: [
// An array of Objects of the possible denominations for this currency
{
name: 'LLD',
multiplier: '1000000000000',
symbol: ''
}
],
metaTokens: makeMetaTokens(builtinTokens) // Deprecated
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete the // Basic currency information: and // An array of Objects of the possible denominations for this currency comments, and move defaultSettings to the deprecated section:

 // Deprecated:
 defaultSettings: {},
 metaTokens: makeMetaTokens(builtinTokens)

Comment on lines 27 to 46
// Basic currency information:
currencyCode: 'LDN',
displayName: 'Liberland Testnet',
pluginId: 'liberlandtestnet',
walletType: 'wallet:liberlandtestnet',

defaultSettings: {},

addressExplorer: '',
transactionExplorer:
'https://polkadot.js.org/apps/?rpc=wss%%3A%%2F%%2Ftestchain.liberland.org%%2F#/explorer/query/%s',

denominations: [
// An array of Objects of the possible denominations for this currency
{
name: 'LDN',
multiplier: '1000000000000',
symbol: ''
}
],
metaTokens: makeMetaTokens(builtinTokens) // Deprecated
Copy link
Contributor

Choose a reason for hiding this comment

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

Same thing here: Delete the // Basic currency information: and // An array of Objects of the possible denominations for this currency comments, and move defaultSettings to the deprecated section:

 // Deprecated:
 defaultSettings: {},
 metaTokens: makeMetaTokens(builtinTokens)

Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

I approve these fixups!

@swansontec swansontec marked this pull request as ready for review August 29, 2023 17:09
@swansontec swansontec merged commit acb9457 into master Aug 29, 2023
1 of 2 checks passed
@swansontec swansontec deleted the liverlandTemp branch August 29, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants