forked from 0xrjman/substrate-go
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Platdot-network/meta-v14
Support metadata v14
- Loading branch information
Showing
33 changed files
with
371 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
package pallets | ||
|
||
import "github.com/centrifuge/go-substrate-rpc-client/v3/types" | ||
import "github.com/Platdot-Network/go-substrate-rpc-client/v3/types" | ||
|
||
type AssetId types.U32 | ||
type Balance types.U128 | ||
|
||
/// XAssets Type | ||
type Swap struct { | ||
Swap_PairCreated []EventPairCreated | ||
Swap_LiquidityAdded []EventLiquidityAdded | ||
Swap_LiquidityRemoved []EventLiquidityRemoved | ||
Swap_TokenSwap []EventTokenSwap | ||
Swap_PairCreated []EventPairCreated | ||
Swap_LiquidityAdded []EventLiquidityAdded | ||
Swap_LiquidityRemoved []EventLiquidityRemoved | ||
Swap_TokenSwap []EventTokenSwap | ||
} | ||
|
||
/// Create a trading pair. \[creator, asset_id, asset_id\] | ||
type EventPairCreated struct { | ||
Phase types.Phase | ||
Creator types.AccountID | ||
AssetA AssetId | ||
AssetB AssetId | ||
Topics []types.Hash | ||
Phase types.Phase | ||
Creator types.AccountID | ||
AssetA AssetId | ||
AssetB AssetId | ||
Topics []types.Hash | ||
} | ||
|
||
/// Add liquidity. \[owner, asset_id, asset_id\] | ||
type EventLiquidityAdded struct { | ||
Phase types.Phase | ||
Owner types.AccountID | ||
AssetA AssetId | ||
AssetB AssetId | ||
Topics []types.Hash | ||
Phase types.Phase | ||
Owner types.AccountID | ||
AssetA AssetId | ||
AssetB AssetId | ||
Topics []types.Hash | ||
} | ||
|
||
/// Remove liquidity. \[owner, recipient, asset_id, asset_id, amount\] | ||
type EventLiquidityRemoved struct { | ||
Phase types.Phase | ||
Owner types.AccountID | ||
Recipient types.AccountID | ||
AssetA AssetId | ||
AssetB AssetId | ||
Amount Balance | ||
Topics []types.Hash | ||
Phase types.Phase | ||
Owner types.AccountID | ||
Recipient types.AccountID | ||
AssetA AssetId | ||
AssetB AssetId | ||
Amount Balance | ||
Topics []types.Hash | ||
} | ||
|
||
/// Transact in trading \[owner, recipient, swap_path\] | ||
type EventTokenSwap struct { | ||
Phase types.Phase | ||
Owner types.AccountID | ||
Recipient types.AccountID | ||
SwapPath []AssetId | ||
Topics []types.Hash | ||
} | ||
Phase types.Phase | ||
Owner types.AccountID | ||
Recipient types.AccountID | ||
SwapPath []AssetId | ||
Topics []types.Hash | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.