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

MPT #2661

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open

MPT #2661

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
2f04983
initial commit
shawnxie999 Feb 13, 2024
cd73e1b
wip
shawnxie999 Feb 14, 2024
da51954
revert bad changes
shawnxie999 Feb 15, 2024
0d2af85
definitions
shawnxie999 Feb 15, 2024
2ee5d88
export
shawnxie999 Feb 15, 2024
134b977
MPT create (wip)
shawnxie999 Feb 16, 2024
ba890ca
issuancecreate
shawnxie999 Feb 21, 2024
54648a8
destroy tx
shawnxie999 Feb 21, 2024
05a831c
mptset tx
shawnxie999 Feb 21, 2024
24dc137
authorize tx
shawnxie999 Feb 22, 2024
7ea0aba
payment + clawback (wip)
shawnxie999 Mar 6, 2024
229a0c7
wip
shawnxie999 Mar 7, 2024
cfc7979
fix binary codec test fail
shawnxie999 Mar 7, 2024
d53ef0e
has192 test
shawnxie999 Mar 7, 2024
034bebb
amount simple serialization test
shawnxie999 Mar 7, 2024
8449439
fix test
shawnxie999 Mar 8, 2024
a11a395
some amount tests
shawnxie999 Mar 11, 2024
0ff4169
more tests
shawnxie999 Mar 12, 2024
02d78ee
some hex value tests
shawnxie999 Mar 12, 2024
11ce368
negative amount test
shawnxie999 Mar 13, 2024
3d56868
rename mptDecimalToHex
shawnxie999 Mar 14, 2024
a9d5a9b
history.md
shawnxie999 Apr 22, 2024
3093e38
only apply mptamount for payment and claw
shawnxie999 Apr 22, 2024
58aca14
fix test and update to latest definition
shawnxie999 Jul 8, 2024
5e55b80
Merge remote-tracking branch 'upstream/main' into mpt
shawnxie999 Jul 9, 2024
542c201
update definitoin.json
shawnxie999 Aug 21, 2024
637347c
add object type def and filter by type
shawnxie999 Aug 21, 2024
7d43a14
add mpt payment
shawnxie999 Aug 21, 2024
e885c3a
fix bad comment and improvements
shawnxie999 Aug 21, 2024
613c306
Merge branch 'main' into mpt
shawnxie999 Aug 22, 2024
ca53e51
update definition with ledgerstatefix
shawnxie999 Sep 4, 2024
25ea3d3
wip
shawnxie999 Sep 13, 2024
a6f3738
binary codec test
shawnxie999 Sep 13, 2024
cb92806
tests
shawnxie999 Oct 1, 2024
d367a83
Merge pull request #1 from shawnxie999/mpt-base10
shawnxie999 Oct 1, 2024
f69fc74
update definitions.json
shawnxie999 Oct 9, 2024
6461315
Merge remote-tracking branch 'upstream/main' into mpt
shawnxie999 Oct 9, 2024
458f0b8
fix failed test
shawnxie999 Oct 9, 2024
32ea011
fix lint
shawnxie999 Oct 9, 2024
7529657
fix lint errors
shawnxie999 Oct 9, 2024
46c66e5
fix more lint
shawnxie999 Oct 9, 2024
9bfb200
const to let
shawnxie999 Oct 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 92 additions & 2 deletions packages/ripple-binary-codec/src/enums/definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"PathSet": 18,
"Vector256": 19,
"UInt96": 20,
"UInt192": 21,
"Hash192": 21,
"UInt384": 22,
"UInt512": 23,
"Issue": 24,
Expand Down Expand Up @@ -53,6 +53,8 @@
"AMM": 121,
"DID": 73,
"Oracle": 128,
"MPTokenIssuance": 126,
"MPToken": 127,
"Any": -3,
"Child": -2,
"Nickname": 110,
Expand Down Expand Up @@ -260,6 +262,16 @@
"type": "UInt8"
}
],
[
"AssetScale",
{
"nth": 20,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt8"
}
],
[
"LedgerEntryType",
{
Expand Down Expand Up @@ -370,6 +382,16 @@
"type": "UInt16"
}
],
[
"LedgerFixType",
{
"nth": 21,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt16"
}
],
[
"NetworkID",
{
Expand Down Expand Up @@ -1070,6 +1092,36 @@
"type": "UInt64"
}
],
[
"MaximumAmount",
{
"nth": 24,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt64"
}
],
[
"OutstandingAmount",
{
"nth": 25,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt64"
}
],
[
"MPTAmount",
{
"nth": 26,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt64"
}
],
[
"EmailHash",
{
Expand Down Expand Up @@ -1120,6 +1172,16 @@
"type": "Hash160"
}
],
[
"MPTokenIssuanceID",
{
"nth": 1,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash192"
}
],
[
"LedgerHash",
{
Expand Down Expand Up @@ -1980,6 +2042,16 @@
"type": "Blob"
}
],
[
"MPTokenMetadata",
{
"nth": 30,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "Blob"
}
],
[
"Account",
{
Expand Down Expand Up @@ -2070,6 +2142,16 @@
"type": "AccountID"
}
],
[
"MPTokenHolder",
{
"nth": 11,
"isVLEncoded": true,
"isSerialized": true,
"isSigningField": true,
"type": "AccountID"
}
],
[
"HookAccount",
{
Expand Down Expand Up @@ -2808,6 +2890,7 @@
"temEMPTY_DID": -254,
"temARRAY_EMPTY": -253,
"temARRAY_TOO_LARGE": -252,
"temBAD_TRANSFER_FEE": -251,

"tefFAILURE": -199,
"tefALREADY": -198,
Expand All @@ -2830,6 +2913,7 @@
"tefTOO_BIG": -181,
"tefNO_TICKET": -180,
"tefNFTOKEN_IS_NOT_TRANSFERABLE": -179,
"tefINVALID_LEDGER_FIX_TYPE": -178,

"terRETRY": -99,
"terFUNDS_SPENT": -98,
Expand Down Expand Up @@ -2923,7 +3007,8 @@
"tecINVALID_UPDATE_TIME": 188,
"tecTOKEN_PAIR_NOT_FOUND": 189,
"tecARRAY_EMPTY": 190,
"tecARRAY_TOO_LARGE": 191
"tecARRAY_TOO_LARGE": 191,
"tecLOCKED": 192
},
"TRANSACTION_TYPES": {
"Invalid": -1,
Expand Down Expand Up @@ -2974,6 +3059,11 @@
"DIDDelete": 50,
"OracleSet": 51,
"OracleDelete": 52,
"LedgerStateFix": 53,
"MPTokenIssuanceCreate": 54,
"MPTokenIssuanceDestroy": 55,
"MPTokenAuthorize": 56,
"MPTokenIssuanceSet": 57,
"EnableAmendment": 100,
"SetFee": 101,
"UNLModify": 102
Expand Down
Loading
Loading