Skip to content

Commit ac03053

Browse files
committed
update definitions, rename MPTokenHolder to Holder, remove LockedAmount
1 parent 200ccf7 commit ac03053

File tree

11 files changed

+1209
-1236
lines changed

11 files changed

+1209
-1236
lines changed

tests/integration/transactions/test_clawback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async def test_basic_functionality(self, client):
149149
# mpt_issuance_id=mpt_issuance_id,
150150
# value="500",
151151
# ),
152-
# mptoken_holder=wallet2.classic_address,
152+
# holder=wallet2.classic_address,
153153
# ),
154154
# WALLET,
155155
# client,

tests/integration/transactions/test_mptoken_authorize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
# auth_tx2 = MPTokenAuthorize(
7979
# account=WALLET.classic_address,
8080
# mptoken_issuance_id=mpt_issuance_id,
81-
# mptoken_holder=wallet2.classic_address,
81+
# holder=wallet2.classic_address,
8282
# )
8383

8484
# auth_res2 = await sign_and_reliable_submission_async(

tests/unit/core/binarycodec/test_main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ def test_lowercase(self):
243243
"06FC7DE374089D50F81AAE13E7BBF3D0E694769331E14F55351B38D0148018EA"
244244
).lower(),
245245
"PreviousTxnLgrSeq": 32253063,
246-
"index": "000319BAE0A618A7D3BB492F17E98E5D92EA0C6458AFEBED44206B5B4798A840",
247246
}
248247

249248
self.assertEqual(decode(lower), decode(s))

tests/unit/models/transactions/test_clawback.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ def test_holder_is_issuer(self):
2929
amount=_ISSUED_CURRENCY_AMOUNT,
3030
)
3131

32-
def test_cannot_have_mptoken_holder(self):
32+
def test_cannot_holder(self):
3333
with self.assertRaises(XRPLModelException):
3434
Clawback(
3535
account=_ACCOUNT,
3636
amount=_ISSUED_CURRENCY_AMOUNT,
37-
mptoken_holder=_ACCOUNT,
37+
holder=_ACCOUNT,
3838
)
3939

40-
def test_invalid_mptoken_holder(self):
40+
def test_invalid_holder(self):
4141
with self.assertRaises(XRPLModelException):
4242
Clawback(
4343
account=_ACCOUNT,
4444
amount=_MPT_AMOUNT,
45-
mptoken_holder=_ACCOUNT,
45+
holder=_ACCOUNT,
4646
)
4747

48-
def test_missing_mptoken_holder(self):
48+
def test_missing_holder(self):
4949
with self.assertRaises(XRPLModelException):
5050
Clawback(
5151
account=_ACCOUNT,

tests/unit/models/transactions/test_mptoken_authorize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ def test_tx_is_valid(self):
1414
)
1515
self.assertTrue(tx.is_valid())
1616

17-
def test_mptoken_holder(self):
17+
def test_holder(self):
1818
tx = MPTokenAuthorize(
1919
account=_ACCOUNT,
20-
mptoken_holder="rajgkBmMxmz161r8bWYH7CQAFZP5bA9oSG",
20+
holder="rajgkBmMxmz161r8bWYH7CQAFZP5bA9oSG",
2121
mptoken_issuance_id=_TOKEN_ID,
2222
)
2323
self.assertTrue(tx.is_valid())

tests/unit/models/transactions/test_mptoken_issuance_set.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ def test_tx_is_valid(self):
1717
)
1818
self.assertTrue(tx.is_valid())
1919

20-
def test_tx_with_mptoken_holder(self):
20+
def test_tx_with_holder(self):
2121
tx = MPTokenIssuanceSet(
2222
account=_ACCOUNT,
2323
mptoken_issuance_id=_TOKEN_ID,
24-
mptoken_holder="rajgkBmMxmz161r8bWYH7CQAFZP5bA9oSG",
24+
holder="rajgkBmMxmz161r8bWYH7CQAFZP5bA9oSG",
2525
flags=MPTokenIssuanceSetFlag.TF_MPT_LOCK,
2626
)
2727
self.assertTrue(tx.is_valid())
@@ -31,7 +31,7 @@ def test_tx_without_flags(self):
3131
tx = MPTokenIssuanceSet(
3232
account=_ACCOUNT,
3333
mptoken_issuance_id=_TOKEN_ID,
34-
mptoken_holder="rajgkBmMxmz161r8bWYH7CQAFZP5bA9oSG",
34+
holder="rajgkBmMxmz161r8bWYH7CQAFZP5bA9oSG",
3535
)
3636
self.assertTrue(tx.is_valid())
3737

@@ -40,7 +40,7 @@ def test_tx_with_flag_conflict(self):
4040
MPTokenIssuanceSet(
4141
account=_ACCOUNT,
4242
mptoken_issuance_id=_TOKEN_ID,
43-
mptoken_holder="rajgkBmMxmz161r8bWYH7CQAFZP5bA9oSG",
43+
holder="rajgkBmMxmz161r8bWYH7CQAFZP5bA9oSG",
4444
flags=MPTokenIssuanceSetFlag.TF_MPT_LOCK
4545
| MPTokenIssuanceSetFlag.TF_MPT_UNLOCK,
4646
)

0 commit comments

Comments
 (0)