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

Batch inscriptions #2504

Merged
merged 120 commits into from
Oct 24, 2023
Merged
Changes from 1 commit
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
ad80a35
basic case done; still a lot of refactoring and tests needed
raphjaph Oct 5, 2023
f58f62d
clippy and fmt
raphjaph Oct 5, 2023
2fd489a
quick fix
raphjaph Oct 5, 2023
5690564
quick fix
raphjaph Oct 5, 2023
876fe59
Merge branch 'master' of github.com:ordinals/ord into implement-point…
raphjaph Oct 7, 2023
26a2d7e
many tests
raphjaph Oct 8, 2023
a4a5e4d
Batch inscribe using new pointer feature
raphjaph Oct 8, 2023
f39d7e7
remove
raphjaph Oct 8, 2023
99e0ac3
Change name
casey Oct 8, 2023
36ba67b
Add pointer test
casey Oct 8, 2023
31e0a45
Add duplicate pointer field test
casey Oct 8, 2023
dd152e0
Add unit test for pointer field
casey Oct 8, 2023
ef8b7ee
Use .. in pattern match
casey Oct 8, 2023
6bc7f86
Fix u64 formatting
casey Oct 8, 2023
d517859
add fee test
raphjaph Oct 8, 2023
63537e7
Don't pass pointer to from_file
casey Oct 8, 2023
fc96846
quick fix
raphjaph Oct 8, 2023
5be7e3f
quick fix
raphjaph Oct 8, 2023
2f029b3
quick fix
raphjaph Oct 8, 2023
5b88ce1
quick fix
raphjaph Oct 8, 2023
71ad237
Add inscribe into fee test
casey Oct 8, 2023
ca92167
Add reduced_subsidy test
casey Oct 9, 2023
ba1d158
Merge branch 'implement-pointer-spec' into batch-inscriptions
raphjaph Oct 9, 2023
18475bc
Merge branch 'master' into batch-inscriptions
raphjaph Oct 9, 2023
5f1c3fe
Merge branch 'master' of github.com:ordinals/ord into batch-inscriptions
raphjaph Oct 10, 2023
1b3b7e6
Merge branch 'batch-inscriptions' of github.com:ordinals/ord into bat…
raphjaph Oct 10, 2023
ec12956
Basic batch file parsing
raphjaph Oct 10, 2023
8770fdd
placate clippy
raphjaph Oct 10, 2023
e6bbaff
add mode
raphjaph Oct 10, 2023
882d6a8
add mode for real
raphjaph Oct 10, 2023
294ae51
quick fix
raphjaph Oct 10, 2023
a3766e5
more test
raphjaph Oct 10, 2023
65780e5
quick fix
raphjaph Oct 10, 2023
af33a9a
Merge branch 'master' of github.com:ordinals/ord into batch-inscriptions
raphjaph Oct 10, 2023
0b477e0
add everything to config file
raphjaph Oct 10, 2023
17ffd7b
add comments
raphjaph Oct 10, 2023
137827b
pointers
raphjaph Oct 10, 2023
5151267
first proper test
raphjaph Oct 10, 2023
187a7c3
more tests
raphjaph Oct 10, 2023
c0003d8
forgot the file
raphjaph Oct 10, 2023
adbaa4e
add skeleton for docs
raphjaph Oct 10, 2023
ef0c93c
quick fix
raphjaph Oct 10, 2023
53baca1
refactor
raphjaph Oct 11, 2023
db677e7
Merge branch 'master' of github.com:ordinals/ord into batch-inscriptions
raphjaph Oct 13, 2023
825dac8
pass in fee-rate and dry run as flags
raphjaph Oct 13, 2023
ff51b30
respect the dry run flag
raphjaph Oct 13, 2023
309117d
quick fix
raphjaph Oct 13, 2023
274dfdc
quick fix
raphjaph Oct 13, 2023
d71df79
quick fix
raphjaph Oct 13, 2023
7bb41d2
merging
raphjaph Oct 13, 2023
3c95658
quick fix
raphjaph Oct 13, 2023
64ca67d
it works
raphjaph Oct 13, 2023
ed59334
Merge branch 'master' of github.com:ordinals/ord into batch-inscriptions
raphjaph Oct 13, 2023
be98d1a
placate clippy
raphjaph Oct 13, 2023
1ff482d
quick fix
raphjaph Oct 13, 2023
fca4a9a
quick fix
raphjaph Oct 13, 2023
58f13a1
Merge branch 'master' of github.com:ordinals/ord into batch-inscriptions
raphjaph Oct 18, 2023
0e94707
add separate-outputs mode
raphjaph Oct 18, 2023
62a6151
Remove default from mode, rename variants with serde attributes
casey Oct 19, 2023
85bb50f
Pull out batch inscribe into method
casey Oct 19, 2023
22895b1
Use correct output type, fix errors
casey Oct 19, 2023
55c73fc
Add postage to batch config
casey Oct 19, 2023
0d39859
Calculate total postage correctly
casey Oct 19, 2023
cfdb137
Add --satpoint flag
casey Oct 19, 2023
802d60c
Add reinscribe flag to batch inscribe
casey Oct 19, 2023
243294a
Don't add metadata if inscription has none
casey Oct 19, 2023
46809e9
Pass commit_fee_rate
casey Oct 19, 2023
84404fa
Add assert that satpoint can only be used when making a single inscri…
casey Oct 19, 2023
8ebbe8a
Respect no-backup an destination flags
casey Oct 19, 2023
2ce9160
Pass in metadata
casey Oct 19, 2023
1ad57ab
Cleanup
casey Oct 19, 2023
9c0093b
Remove dead code
casey Oct 19, 2023
2214909
Merge branch 'master' of github.com:ordinals/ord into batch-inscriptions
raphjaph Oct 20, 2023
61e085b
quick fix
raphjaph Oct 20, 2023
37ba453
Update docs
raphjaph Oct 20, 2023
740e650
Move everything into Batch
casey Oct 20, 2023
6e78d80
Change inscribe command output to vec
casey Oct 20, 2023
1a0e283
Refactor batch inscribe tests to use inscribe --batch
casey Oct 20, 2023
d13501c
Start replacing shim
casey Oct 20, 2023
60a673e
Remove shim
casey Oct 20, 2023
896ca96
More refactoring
casey Oct 20, 2023
725960c
Merge branch 'batch-inscriptions' of github.com:ordinals/ord into bat…
raphjaph Oct 20, 2023
ce2ba35
Fix
casey Oct 20, 2023
ecb951f
Merge branch 'batch-inscriptions' of github.com:ordinals/ord into bat…
raphjaph Oct 20, 2023
89aed0b
BatchConfig -> Batchfile
casey Oct 21, 2023
81ce2fa
Sort structs
casey Oct 21, 2023
d2db2d9
Move batch tests under inscribe
casey Oct 21, 2023
d846674
Spaces
casey Oct 21, 2023
a4e0092
put parent id inside parent info struct
raphjaph Oct 22, 2023
bec4a0e
add conflicts with flags
raphjaph Oct 22, 2023
c1fcd0c
reactivate tessts
raphjaph Oct 22, 2023
ae327f0
refactoring hard
raphjaph Oct 23, 2023
f065302
Add InscriptionTemplate
casey Oct 23, 2023
eda983a
Stuff
casey Oct 23, 2023
e6a0ab3
Nuke old batch_inscribe.rs
casey Oct 23, 2023
fea8c7f
Add example batchfile test
casey Oct 23, 2023
cf01ebb
batch -> inscriptions
casey Oct 23, 2023
b879f4c
inscription -> file
casey Oct 23, 2023
7ab8417
Use flag for inscription
casey Oct 23, 2023
243661c
Move batch inscriptions into guide
casey Oct 24, 2023
055a878
Remove serde from feerate
casey Oct 24, 2023
6dea91b
Calculate total postage in create_batch_inscription_transactions
casey Oct 24, 2023
30bbc0f
Calculate total postage in create_batch_inscription_transactions
casey Oct 24, 2023
8b0a47d
Pass utxos by reference
casey Oct 24, 2023
8a79fe5
Move backup recovery key
casey Oct 24, 2023
1378cd9
Move function
casey Oct 24, 2023
5ea6cf7
Make assertion clearer
casey Oct 24, 2023
c3b0bbd
Cleanup
casey Oct 24, 2023
09deb93
Merge branch 'master' into batch-inscriptions
casey Oct 24, 2023
0d2f911
Strip trailing bytes from pointer
casey Oct 24, 2023
a0123df
Encode pointer value without trailing zeros
casey Oct 24, 2023
eb04854
Add test that flags conflict
casey Oct 24, 2023
4d41c00
Test unknown field
casey Oct 24, 2023
e0dfdbd
Test for empty batchfile
casey Oct 24, 2023
d070c0f
Test value of separate outputs
casey Oct 24, 2023
5aba621
Test non-default postage
casey Oct 24, 2023
0d7339c
Test metadata and metaprotocol
casey Oct 24, 2023
130a7ca
test for unique outpoints
casey Oct 24, 2023
1925fe0
Remove dbg
casey Oct 24, 2023
09ad079
move batch inscribing into dedicated section
casey Oct 24, 2023
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
Prev Previous commit
Next Next commit
Add unit test for pointer field
casey committed Oct 8, 2023
commit dd152e0f40813017dda660b7abb6a2c34872e33a
14 changes: 14 additions & 0 deletions src/envelope.rs
Original file line number Diff line number Diff line change
@@ -752,6 +752,20 @@ mod tests {
);
}

#[test]
fn pointer_field_is_recognized() {
assert_eq!(
parse(&[envelope(&[b"ord", &[2], &[1]])]),
vec![ParsedEnvelope {
payload: Inscription {
pointer: Some(vec![1]),
..Default::default()
},
..Default::default()
}],
);
}

#[test]
fn duplicate_pointer_field_makes_inscription_unbound() {
assert_eq!(