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

Credentials #2829

Merged
merged 77 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
c929e51
create credentials obj, modify depositpreauth
achowdhry-ripple Nov 14, 2024
55f92d2
structrure of transaction models
achowdhry-ripple Nov 14, 2024
63a4228
initial validation methods and modify transactions affected by deposi…
achowdhry-ripple Nov 14, 2024
fd6b92a
cleanup and add new transactions to list
achowdhry-ripple Nov 14, 2024
398bfd4
binarycodec and add amendments to config
achowdhry-ripple Nov 15, 2024
b1bdf27
methods account for credentials
achowdhry-ripple Nov 15, 2024
4c3080b
binary codec update
achowdhry-ripple Nov 15, 2024
0214322
add amendments to config
achowdhry-ripple Nov 15, 2024
eb7acd7
error validation for credentials actions
achowdhry-ripple Nov 15, 2024
e79dd3c
core logic of error validation completed
achowdhry-ripple Nov 15, 2024
b50066b
type checking in error validation
achowdhry-ripple Nov 18, 2024
4eb3142
init test files and field type validations
achowdhry-ripple Nov 20, 2024
fdd23ac
basic tests for crud transactions
achowdhry-ripple Nov 21, 2024
fe916f8
cred delete tests
achowdhry-ripple Nov 21, 2024
85a5d98
cred accept unit tests
achowdhry-ripple Nov 25, 2024
3d88dcc
cred create and accept unit tests
achowdhry-ripple Nov 25, 2024
c37d0e1
cred delete unit tests
achowdhry-ripple Nov 25, 2024
ac5a08a
depositPreauth unit tests
achowdhry-ripple Nov 25, 2024
86e3877
generic checks for payment, paymentchannelclaim, escrowfinish credent…
achowdhry-ripple Nov 25, 2024
5c71393
ledger entry update
achowdhry-ripple Nov 25, 2024
0ce1521
lint errors
achowdhry-ripple Nov 25, 2024
9ff421b
cleanup and use helper methods
achowdhry-ripple Nov 25, 2024
6e3cf3d
fix lint bug
achowdhry-ripple Nov 25, 2024
d328725
init integration tests for new transactions
achowdhry-ripple Nov 26, 2024
b472808
fix build error, integration test docker update
achowdhry-ripple Nov 26, 2024
350b3fb
unit test fixes -- all pass now
achowdhry-ripple Nov 26, 2024
1fe6707
integration test layout complete
achowdhry-ripple Nov 27, 2024
0c1f6b3
integration command
achowdhry-ripple Dec 2, 2024
5f71338
integration tests run
achowdhry-ripple Dec 2, 2024
f7113a0
cicd command edit
achowdhry-ripple Dec 2, 2024
e5e772a
lint and cleanup
achowdhry-ripple Dec 2, 2024
f323f95
modified history markdown
achowdhry-ripple Dec 2, 2024
6197506
deposit preauth integration update
achowdhry-ripple Dec 2, 2024
7c665b9
update docs with new docker command
achowdhry-ripple Dec 2, 2024
351b1c2
fix validation for string id credential arrays
achowdhry-ripple Dec 3, 2024
18a04b3
exports
achowdhry-ripple Dec 5, 2024
41e125e
add flag
achowdhry-ripple Dec 5, 2024
f82e974
lint
achowdhry-ripple Dec 6, 2024
231173d
fix typo in contributing doc
achowdhry-ripple Dec 6, 2024
414e45a
docstring typos
achowdhry-ripple Dec 6, 2024
e6941fa
readable string
achowdhry-ripple Dec 6, 2024
425bf7a
fix test'
achowdhry-ripple Dec 6, 2024
38e81f7
review comment fixes
achowdhry-ripple Dec 18, 2024
c353b4e
txn duplicate fix
achowdhry-ripple Dec 18, 2024
44b9449
Apply suggestions from code review
achowdhry-ripple Dec 18, 2024
0388a52
Apply suggestions from code review
achowdhry-ripple Dec 18, 2024
e67404e
Apply suggestions from code review
achowdhry-ripple Dec 18, 2024
a13e43c
typo in auto suggest
achowdhry-ripple Dec 18, 2024
d1aa99d
rebase
achowdhry-ripple Dec 18, 2024
99cbf20
readd definitions after rebase
achowdhry-ripple Dec 18, 2024
68e14a5
cleanup list val
achowdhry-ripple Dec 18, 2024
1dec273
unit tests fixed and running
achowdhry-ripple Dec 18, 2024
f30f9f5
lint
achowdhry-ripple Dec 18, 2024
250a67c
refactor authcred check to work
achowdhry-ripple Dec 19, 2024
0dc3594
Update packages/xrpl/src/models/transactions/payment.ts
achowdhry-ripple Dec 19, 2024
0b2cbb3
typo
achowdhry-ripple Dec 19, 2024
e75783c
Update .ci-config/rippled.cfg
achowdhry-ripple Dec 19, 2024
77a1915
update rippled version
achowdhry-ripple Dec 19, 2024
e9ff56b
optional field nits
achowdhry-ripple Dec 19, 2024
d54d291
add to response depositauthorize
achowdhry-ripple Dec 19, 2024
72300d8
Update packages/xrpl/src/models/transactions/CredentialCreate.ts
achowdhry-ripple Dec 19, 2024
2a96c26
Update packages/xrpl/src/models/transactions/CredentialDelete.ts
achowdhry-ripple Dec 19, 2024
1116f2c
Update packages/xrpl/src/models/transactions/accountDelete.ts
achowdhry-ripple Dec 19, 2024
ae0e2e1
Apply suggestions from code review
achowdhry-ripple Dec 19, 2024
26c25df
cleanups
achowdhry-ripple Dec 19, 2024
70cbb5a
unit test fix
achowdhry-ripple Dec 19, 2024
2b3bf81
more escrowfinish tests
achowdhry-ripple Dec 19, 2024
0ea8a45
clearer error message
achowdhry-ripple Dec 19, 2024
1c6431a
re add statement
achowdhry-ripple Dec 19, 2024
be41ae9
undo autodeleted mandates
achowdhry-ripple Dec 19, 2024
9a5d813
remove extraneous integration tests for now
achowdhry-ripple Dec 20, 2024
4bcf387
lint
achowdhry-ripple Dec 20, 2024
1812f61
Update .ci-config/rippled.cfg
achowdhry-ripple Dec 20, 2024
730b57e
Update packages/xrpl/src/models/transactions/common.ts
achowdhry-ripple Dec 20, 2024
f6ab8af
added tests
achowdhry-ripple Dec 20, 2024
4b6b74b
Merge branch 'main' into verifiable-credentials
achowdhry-ripple Dec 20, 2024
bfb9d06
typo
achowdhry-ripple Dec 20, 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
73 changes: 0 additions & 73 deletions packages/xrpl/test/integration/transactions/depositPreauth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,77 +155,4 @@ describe('DepositPreauth', function () {
},
TIMEOUT,
)

it(
'Invalid multiple of auth and unauth provided',
async () => {
const subjectWallet = await generateFundedWallet(testContext.client)

const credentialCreateTx: CredentialCreate = {
TransactionType: 'CredentialCreate',
Account: testContext.wallet.classicAddress,
Subject: subjectWallet.classicAddress,
CredentialType: stringToHex('Test Credential Type'),
}

await testTransaction(
testContext.client,
credentialCreateTx,
testContext.wallet,
)

const credentialAcceptTx: CredentialAccept = {
TransactionType: 'CredentialAccept',
Account: subjectWallet.classicAddress,
Issuer: testContext.wallet.classicAddress,
CredentialType: stringToHex('Test Credential Type'),
}

await testTransaction(
testContext.client,
credentialAcceptTx,
subjectWallet,
)

const authorizeCredentialObj: AuthorizeCredential = {
Credential: {
Issuer: testContext.wallet.classicAddress,
CredentialType: stringToHex('Test Credential Type'),
},
}

const wallet2 = Wallet.generate()
await fundAccount(testContext.client, wallet2)
const tx: DepositPreauth = {
TransactionType: 'DepositPreauth',
Account: testContext.wallet.classicAddress,
AuthorizeCredentials: [authorizeCredentialObj],
UnauthorizeCredentials: [authorizeCredentialObj],
}
await testTransaction(testContext.client, tx, testContext.wallet)
achowdhry-ripple marked this conversation as resolved.
Show resolved Hide resolved
},
TIMEOUT,
)

it(
'Nonexistent Credential to authorize',
async () => {
const authorizeCredentialObj: AuthorizeCredential = {
Credential: {
Issuer: testContext.wallet.classicAddress,
CredentialType: stringToHex('Test Credential Type'),
},
}

const wallet2 = Wallet.generate()
await fundAccount(testContext.client, wallet2)
const tx: DepositPreauth = {
TransactionType: 'DepositPreauth',
Account: testContext.wallet.classicAddress,
AuthorizeCredentials: [authorizeCredentialObj],
}
await testTransaction(testContext.client, tx, testContext.wallet)
},
TIMEOUT,
)
})
Loading